OZE_Sensor.list 2.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753
  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 00018430 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000104 080186d0 080186d0 000196d0 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 080187d4 080187d4 000197d4 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 080187dc 080187dc 000197dc 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 080187e0 080187e0 000197e0 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000098 24000000 080187e4 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 000130ec 240000a0 0801887c 0001a0a0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 2401318c 0801887c 0001a18c 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a098 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 0003516a 00000000 00000000 0001a0c6 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 00006463 00000000 00000000 0004f230 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002478 00000000 00000000 00055698 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003ef04 00000000 00000000 00057b10 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 00031813 00000000 00000000 00096a14 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 00186a2c 00000000 00000000 000c8227 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024ec53 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c1d 00000000 00000000 0024ec96 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 00009d14 00000000 00000000 002508b4 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025a5c8 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: 080186b8 .word 0x080186b8
  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: 080186b8 .word 0x080186b8
  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 ffc2 bl 800b5b4 <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 f878 bl 8014734 <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 fb6e bl 8005e04 <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 ffd1 bl 800b71c <HAL_IWDG_Refresh>
  643. #endif
  644. /* USER CODE END 2 */
  645. /* Init scheduler */
  646. osKernelInitialize();
  647. 800077a: f013 fc6b bl 8014054 <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 fd73 bl 8014270 <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 fd6a bl 8014270 <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 fd61 bl 8014270 <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 fd58 bl 8014270 <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 fc8c bl 80140e8 <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 ffa0 bl 800b71c <HAL_IWDG_Refresh>
  709. #endif
  710. UartTasksInit();
  711. 80007dc: f004 f938 bl 8004a50 <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 fdf2 bl 80033cc <PositionControlTaskInit>
  720. /* USER CODE BEGIN RTOS_EVENTS */
  721. /* add events, ... */
  722. /* USER CODE END RTOS_EVENTS */
  723. /* Start scheduler */
  724. osKernelStart();
  725. 80007e8: f013 fc58 bl 801409c <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: 0801874c .word 0x0801874c
  735. 80007fc: 08001d15 .word 0x08001d15
  736. 8000800: 240006e4 .word 0x240006e4
  737. 8000804: 0801875c .word 0x0801875c
  738. 8000808: 08001d2d .word 0x08001d2d
  739. 800080c: 24000714 .word 0x24000714
  740. 8000810: 0801876c .word 0x0801876c
  741. 8000814: 08001d49 .word 0x08001d49
  742. 8000818: 24000744 .word 0x24000744
  743. 800081c: 0801877c .word 0x0801877c
  744. 8000820: 08001d85 .word 0x08001d85
  745. 8000824: 24000774 .word 0x24000774
  746. 8000828: 08018728 .word 0x08018728
  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 fda8 bl 8018398 <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 fda2 bl 8018398 <memset>
  771. /** Supply configuration update enable
  772. */
  773. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  774. 8000854: 2002 movs r0, #2
  775. 8000856: f00a fffb bl 800b850 <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 f878 bl 800b9d0 <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 fcb7 bl 800c284 <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 fd2b bl 8018398 <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 f852 bl 800ca20 <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 fca5 bl 8006364 <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 fdb6 bl 80075a0 <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 fef9 bl 8006858 <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 feeb bl 8006858 <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 fedd bl 8006858 <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 fecf bl 8006858 <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 fec0 bl 8006858 <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 feb1 bl 8006858 <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 fea2 bl 8006858 <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 fcd6 bl 80074d8 <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 fbc1 bl 8006364 <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 fe22 bl 8006858 <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 fe14 bl 8006858 <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 fe06 bl 8006858 <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 fc3a bl 80074d8 <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 fb30 bl 8006364 <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 fd91 bl 8006858 <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 fd83 bl 8006858 <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 fd75 bl 8006858 <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 fd67 bl 8006858 <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 fd58 bl 8006858 <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 fb8c bl 80074d8 <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 fc97 bl 800775c <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 ff56 bl 8007d30 <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 fa75 bl 8018398 <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 f941 bl 800813c <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 fa30 bl 8008344 <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 fa25 bl 8008344 <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 fba4 bl 800b67e <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 fa41 bl 800f3e4 <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 f9f7 bl 8018398 <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 fba6 bl 800f728 <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 f8f9 bl 80111f0 <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 f8cd bl 80101cc <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 f94b bl 801130c <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 fa05 bl 80044a4 <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 f9cd bl 800f4a8 <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 f965 bl 80103f4 <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 fcf3 bl 800fb20 <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 f84c bl 80111f0 <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 ff8a bl 8010092 <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 ff7f bl 8010092 <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 fa96 bl 800f728 <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 ffeb bl 80111f0 <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 ffc5 bl 80101cc <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 ffb0 bl 80101cc <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 ff9d bl 80101cc <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 ff8a bl 80101cc <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 f8dd bl 80044a4 <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 f8a4 bl 800f4a8 <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: f00f f83c bl 80103f4 <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 fbca bl 800fb20 <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 ff23 bl 80111f0 <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 fe61 bl 8010092 <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 fe56 bl 8010092 <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: f00e f82a bl 800f4a8 <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 ffc2 bl 80103f4 <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 feb0 bl 80111f0 <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 ffa5 bl 8011444 <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 fc45 bl 8013d96 <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 fc7a bl 8013e12 <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 fbfb bl 8013d24 <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 ff55 bl 8011444 <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 fbf5 bl 8013d96 <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 fc2a bl 8013e12 <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 fbab bl 8013d24 <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 faef bl 8007bf0 <HAL_NVIC_SetPriority>
  3074. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  3075. 8001612: 200b movs r0, #11
  3076. 8001614: f006 fb06 bl 8007c24 <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 fae7 bl 8007bf0 <HAL_NVIC_SetPriority>
  3083. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  3084. 8001622: 200c movs r0, #12
  3085. 8001624: f006 fafe bl 8007c24 <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 fadf bl 8007bf0 <HAL_NVIC_SetPriority>
  3092. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  3093. 8001632: 200d movs r0, #13
  3094. 8001634: f006 faf6 bl 8007c24 <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 ff65 bl 800b5e4 <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 ff60 bl 800b5e4 <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 fd89 bl 800b254 <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 fd7b bl 800b254 <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 fd6f bl 800b254 <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 fd61 bl 800b254 <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 fa2a bl 8007bf0 <HAL_NVIC_SetPriority>
  3277. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3278. 800179c: 2017 movs r0, #23
  3279. 800179e: f006 fa41 bl 8007c24 <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 fa22 bl 8007bf0 <HAL_NVIC_SetPriority>
  3285. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3286. 80017ac: 2028 movs r0, #40 @ 0x28
  3287. 80017ae: f006 fa39 bl 8007c24 <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 fbe6 bl 8002fac <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 ff77 bl 8014734 <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 ff2c bl 80066a8 <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 ff35 bl 8014734 <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 feea bl 80066a8 <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 fef3 bl 8014734 <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 fea8 bl 80066a8 <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 fd2c bl 80143c4 <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 fe07 bl 80105e4 <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 fdee bl 80105e4 <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 fe67 bl 8014734 <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 fda7 bl 80105e4 <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 fd8e bl 80105e4 <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 fe05 bl 8014734 <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 fddb bl 800b71c <HAL_IWDG_Refresh>
  3875. #endif
  3876. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3877. 8001b66: 2102 movs r1, #2
  3878. 8001b68: 2000 movs r0, #0
  3879. 8001b6a: f001 fa3d bl 8002fe8 <SelectCurrentSensorGain>
  3880. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3881. 8001b6e: 2102 movs r1, #2
  3882. 8001b70: 2001 movs r0, #1
  3883. 8001b72: f001 fa39 bl 8002fe8 <SelectCurrentSensorGain>
  3884. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3885. 8001b76: 2102 movs r1, #2
  3886. 8001b78: 2002 movs r0, #2
  3887. 8001b7a: f001 fa35 bl 8002fe8 <SelectCurrentSensorGain>
  3888. EnableCurrentSensors();
  3889. 8001b7e: f001 fa27 bl 8002fd0 <EnableCurrentSensors>
  3890. osDelay(pdMS_TO_TICKS(100));
  3891. 8001b82: 2064 movs r0, #100 @ 0x64
  3892. 8001b84: f012 fb43 bl 801420e <osDelay>
  3893. #ifdef WATCHDOG_ENABLED
  3894. HAL_IWDG_Refresh(&hiwdg1);
  3895. 8001b88: 4854 ldr r0, [pc, #336] @ (8001cdc <StartDefaultTask+0x184>)
  3896. 8001b8a: f009 fdc7 bl 800b71c <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 fce2 bl 800f558 <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 fd4a bl 800f638 <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 fd42 bl 800f638 <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: f00e f80f bl 800fbe4 <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: f00e f806 bl 800fbe4 <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 fffd bl 800fbe4 <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 fff4 bl 800fbe4 <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 fd4c bl 80066a8 <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 fd42 bl 80066a8 <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 fd38 bl 80066a8 <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 feb4 bl 80079b0 <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 fd67 bl 800b71c <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 fadd bl 801420e <osDelay>
  4022. #ifdef WATCHDOG_ENABLED
  4023. HAL_IWDG_Refresh(&hiwdg1);
  4024. 8001c54: 4821 ldr r0, [pc, #132] @ (8001cdc <StartDefaultTask+0x184>)
  4025. 8001c56: f009 fd61 bl 800b71c <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 fd23 bl 80106a8 <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 fd1c bl 80106a8 <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 fc5d bl 801453e <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 fc9d bl 80145d4 <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 fd03 bl 80106a8 <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 fcfc bl 80106a8 <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 fc3d bl 801453e <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 fc7d bl 80145d4 <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 f933 bl 8002f88 <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 fe5c bl 800f9f4 <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 fac7 bl 80032f2 <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 fe44 bl 800f9f4 <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 fe40 bl 800f9f4 <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 faa9 bl 80032f2 <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 fe26 bl 800f9f4 <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 fe22 bl 800f9f4 <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 ff35 bl 8007c40 <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 ff53 bl 8007cb0 <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 ff41 bl 8007cb0 <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 ff31 bl 8007cb0 <HAL_MPU_ConfigRegion>
  4333. /* Enables the MPU */
  4334. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4335. 8001e4e: 2004 movs r0, #4
  4336. 8001e50: f005 ff0e bl 8007c70 <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: f004 f801 bl 8005e7c <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 faa7 bl 8014432 <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 faa1 bl 8014432 <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 fa9b bl 8014432 <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 fa95 bl 8014432 <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 fb9b bl 801464e <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 fb93 bl 801464e <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 fb8b bl 801464e <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 fa26 bl 8018398 <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 fa1f bl 8018398 <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 fa18 bl 8018398 <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 f8a6 bl 80140e8 <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 f89c bl 80140e8 <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 f892 bl 80140e8 <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 fb3d bl 801464e <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 f9d8 bl 8018398 <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 f874 bl 80140e8 <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 fb1f bl 801464e <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 f9bb bl 8018398 <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 f857 bl 80140e8 <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 f975 bl 8018398 <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 f96b bl 8018398 <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 fb8b bl 80147f4 <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 fa29 bl 801453e <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 fa64 bl 80145d4 <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 f975 bl 801453e <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 f975 bl 80145d4 <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 f90b bl 801453e <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 f92e bl 80145d4 <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 f8c3 bl 801453e <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 f902 bl 80145d4 <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 ffb1 bl 8018398 <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 ffa7 bl 8018398 <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 f9c7 bl 80147f4 <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 f865 bl 801453e <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 f8a0 bl 80145d4 <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: f012 f843 bl 801453e <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 f868 bl 80145d4 <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 ff71 bl 801453e <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 ff8d bl 80145d4 <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 fe2d bl 8018398 <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 fe26 bl 8018398 <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 fe1f bl 8018398 <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 fe18 bl 8018398 <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 fe0e bl 8018398 <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: f012 f833 bl 80147f4 <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 fec5 bl 801453e <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 ff04 bl 80145d4 <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 fdbb bl 801453e <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 fdca bl 80145d4 <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 fd77 bl 800b5b4 <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 fe2d bl 8014734 <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 fd27 bl 801453e <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 fd62 bl 80145d4 <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 fe63 bl 80147f4 <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 fd01 bl 801453e <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 f9c2 bl 8003080 <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 f99f bl 8003080 <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 fc40 bl 80145d4 <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 fd2a bl 80147f4 <osMessageQueueGet>
  6056. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  6057. 8002da0: 4b6b ldr r3, [pc, #428] @ (8002f50 <EncoderTask+0x1d0>)
  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 fbc8 bl 801453e <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: d162 bne.n 8002e80 <EncoderTask+0x100>
  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: 4b64 ldr r3, [pc, #400] @ (8002f54 <EncoderTask+0x1d4>)
  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: 4b61 ldr r3, [pc, #388] @ (8002f54 <EncoderTask+0x1d4>)
  6079. 8002dd0: edc3 7a03 vstr s15, [r3, #12]
  6080. 8002dd4: e01b b.n 8002e0e <EncoderTask+0x8e>
  6081. } else {
  6082. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  6083. 8002dd6: 4b5f ldr r3, [pc, #380] @ (8002f54 <EncoderTask+0x1d4>)
  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: 4b5b ldr r3, [pc, #364] @ (8002f54 <EncoderTask+0x1d4>)
  6088. 8002de6: edc3 7a03 vstr s15, [r3, #12]
  6089. if(sensorsInfo.pvEncoderX < 0)
  6090. 8002dea: 4b5a ldr r3, [pc, #360] @ (8002f54 <EncoderTask+0x1d4>)
  6091. 8002dec: edd3 7a03 vldr s15, [r3, #12]
  6092. 8002df0: eef5 7ac0 vcmpe.f32 s15, #0.0
  6093. 8002df4: eef1 fa10 vmrs APSR_nzcv, fpscr
  6094. 8002df8: d509 bpl.n 8002e0e <EncoderTask+0x8e>
  6095. {
  6096. sensorsInfo.pvEncoderX = 360.0 + sensorsInfo.pvEncoderX;
  6097. 8002dfa: 4b56 ldr r3, [pc, #344] @ (8002f54 <EncoderTask+0x1d4>)
  6098. 8002dfc: edd3 7a03 vldr s15, [r3, #12]
  6099. 8002e00: ed9f 7a55 vldr s14, [pc, #340] @ 8002f58 <EncoderTask+0x1d8>
  6100. 8002e04: ee77 7a87 vadd.f32 s15, s15, s14
  6101. 8002e08: 4b52 ldr r3, [pc, #328] @ (8002f54 <EncoderTask+0x1d4>)
  6102. 8002e0a: edc3 7a03 vstr s15, [r3, #12]
  6103. }
  6104. }
  6105. sensorsInfo.pvEncoderX = fmodf(sensorsInfo.pvEncoderX, 360.0);
  6106. 8002e0e: 4b51 ldr r3, [pc, #324] @ (8002f54 <EncoderTask+0x1d4>)
  6107. 8002e10: edd3 7a03 vldr s15, [r3, #12]
  6108. 8002e14: eddf 0a50 vldr s1, [pc, #320] @ 8002f58 <EncoderTask+0x1d8>
  6109. 8002e18: eeb0 0a67 vmov.f32 s0, s15
  6110. 8002e1c: f015 fbaa bl 8018574 <fmodf>
  6111. 8002e20: eef0 7a40 vmov.f32 s15, s0
  6112. 8002e24: 4b4b ldr r3, [pc, #300] @ (8002f54 <EncoderTask+0x1d4>)
  6113. 8002e26: edc3 7a03 vstr s15, [r3, #12]
  6114. float currentPercentPos = 100 * sensorsInfo.pvEncoderX / MAX_X_AXE_ANGLE;
  6115. 8002e2a: 4b4a ldr r3, [pc, #296] @ (8002f54 <EncoderTask+0x1d4>)
  6116. 8002e2c: edd3 7a03 vldr s15, [r3, #12]
  6117. 8002e30: ed9f 7a4a vldr s14, [pc, #296] @ 8002f5c <EncoderTask+0x1dc>
  6118. 8002e34: ee27 7a87 vmul.f32 s14, s15, s14
  6119. 8002e38: eddf 6a47 vldr s13, [pc, #284] @ 8002f58 <EncoderTask+0x1d8>
  6120. 8002e3c: eec7 7a26 vdiv.f32 s15, s14, s13
  6121. 8002e40: edc7 7a03 vstr s15, [r7, #12]
  6122. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6123. 8002e44: edd7 7a03 vldr s15, [r7, #12]
  6124. 8002e48: eef5 7ac0 vcmpe.f32 s15, #0.0
  6125. 8002e4c: eef1 fa10 vmrs APSR_nzcv, fpscr
  6126. 8002e50: d502 bpl.n 8002e58 <EncoderTask+0xd8>
  6127. 8002e52: f04f 0300 mov.w r3, #0
  6128. 8002e56: e000 b.n 8002e5a <EncoderTask+0xda>
  6129. 8002e58: 68fb ldr r3, [r7, #12]
  6130. 8002e5a: 60fb str r3, [r7, #12]
  6131. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6132. 8002e5c: edd7 7a03 vldr s15, [r7, #12]
  6133. 8002e60: ed9f 7a3e vldr s14, [pc, #248] @ 8002f5c <EncoderTask+0x1dc>
  6134. 8002e64: eef4 7ac7 vcmpe.f32 s15, s14
  6135. 8002e68: eef1 fa10 vmrs APSR_nzcv, fpscr
  6136. 8002e6c: dd01 ble.n 8002e72 <EncoderTask+0xf2>
  6137. 8002e6e: 4b3c ldr r3, [pc, #240] @ (8002f60 <EncoderTask+0x1e0>)
  6138. 8002e70: e000 b.n 8002e74 <EncoderTask+0xf4>
  6139. 8002e72: 68fb ldr r3, [r7, #12]
  6140. 8002e74: 4a37 ldr r2, [pc, #220] @ (8002f54 <EncoderTask+0x1d4>)
  6141. 8002e76: 6313 str r3, [r2, #48] @ 0x30
  6142. DbgLEDToggle(DBG_LED2);
  6143. 8002e78: 2020 movs r0, #32
  6144. 8002e7a: f000 f897 bl 8002fac <DbgLEDToggle>
  6145. 8002e7e: e061 b.n 8002f44 <EncoderTask+0x1c4>
  6146. } else {
  6147. if (encoderData.direction == encoderCW) {
  6148. 8002e80: 7a7b ldrb r3, [r7, #9]
  6149. 8002e82: 2b00 cmp r3, #0
  6150. 8002e84: d10a bne.n 8002e9c <EncoderTask+0x11c>
  6151. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  6152. 8002e86: 4b33 ldr r3, [pc, #204] @ (8002f54 <EncoderTask+0x1d4>)
  6153. 8002e88: edd3 7a04 vldr s15, [r3, #16]
  6154. 8002e8c: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6155. 8002e90: ee77 7a87 vadd.f32 s15, s15, s14
  6156. 8002e94: 4b2f ldr r3, [pc, #188] @ (8002f54 <EncoderTask+0x1d4>)
  6157. 8002e96: edc3 7a04 vstr s15, [r3, #16]
  6158. 8002e9a: e01b b.n 8002ed4 <EncoderTask+0x154>
  6159. } else {
  6160. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  6161. 8002e9c: 4b2d ldr r3, [pc, #180] @ (8002f54 <EncoderTask+0x1d4>)
  6162. 8002e9e: edd3 7a04 vldr s15, [r3, #16]
  6163. 8002ea2: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6164. 8002ea6: ee77 7ac7 vsub.f32 s15, s15, s14
  6165. 8002eaa: 4b2a ldr r3, [pc, #168] @ (8002f54 <EncoderTask+0x1d4>)
  6166. 8002eac: edc3 7a04 vstr s15, [r3, #16]
  6167. if(sensorsInfo.pvEncoderY < 0)
  6168. 8002eb0: 4b28 ldr r3, [pc, #160] @ (8002f54 <EncoderTask+0x1d4>)
  6169. 8002eb2: edd3 7a04 vldr s15, [r3, #16]
  6170. 8002eb6: eef5 7ac0 vcmpe.f32 s15, #0.0
  6171. 8002eba: eef1 fa10 vmrs APSR_nzcv, fpscr
  6172. 8002ebe: d509 bpl.n 8002ed4 <EncoderTask+0x154>
  6173. {
  6174. sensorsInfo.pvEncoderY = 360.0 + sensorsInfo.pvEncoderY;
  6175. 8002ec0: 4b24 ldr r3, [pc, #144] @ (8002f54 <EncoderTask+0x1d4>)
  6176. 8002ec2: edd3 7a04 vldr s15, [r3, #16]
  6177. 8002ec6: ed9f 7a24 vldr s14, [pc, #144] @ 8002f58 <EncoderTask+0x1d8>
  6178. 8002eca: ee77 7a87 vadd.f32 s15, s15, s14
  6179. 8002ece: 4b21 ldr r3, [pc, #132] @ (8002f54 <EncoderTask+0x1d4>)
  6180. 8002ed0: edc3 7a04 vstr s15, [r3, #16]
  6181. }
  6182. }
  6183. sensorsInfo.pvEncoderY = fmodf(sensorsInfo.pvEncoderY, 360.0);
  6184. 8002ed4: 4b1f ldr r3, [pc, #124] @ (8002f54 <EncoderTask+0x1d4>)
  6185. 8002ed6: edd3 7a04 vldr s15, [r3, #16]
  6186. 8002eda: eddf 0a1f vldr s1, [pc, #124] @ 8002f58 <EncoderTask+0x1d8>
  6187. 8002ede: eeb0 0a67 vmov.f32 s0, s15
  6188. 8002ee2: f015 fb47 bl 8018574 <fmodf>
  6189. 8002ee6: eef0 7a40 vmov.f32 s15, s0
  6190. 8002eea: 4b1a ldr r3, [pc, #104] @ (8002f54 <EncoderTask+0x1d4>)
  6191. 8002eec: edc3 7a04 vstr s15, [r3, #16]
  6192. float currentPercentPos = 100 * sensorsInfo.pvEncoderY / MAX_X_AXE_ANGLE;
  6193. 8002ef0: 4b18 ldr r3, [pc, #96] @ (8002f54 <EncoderTask+0x1d4>)
  6194. 8002ef2: edd3 7a04 vldr s15, [r3, #16]
  6195. 8002ef6: ed9f 7a19 vldr s14, [pc, #100] @ 8002f5c <EncoderTask+0x1dc>
  6196. 8002efa: ee27 7a87 vmul.f32 s14, s15, s14
  6197. 8002efe: eddf 6a16 vldr s13, [pc, #88] @ 8002f58 <EncoderTask+0x1d8>
  6198. 8002f02: eec7 7a26 vdiv.f32 s15, s14, s13
  6199. 8002f06: edc7 7a04 vstr s15, [r7, #16]
  6200. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6201. 8002f0a: edd7 7a04 vldr s15, [r7, #16]
  6202. 8002f0e: eef5 7ac0 vcmpe.f32 s15, #0.0
  6203. 8002f12: eef1 fa10 vmrs APSR_nzcv, fpscr
  6204. 8002f16: d502 bpl.n 8002f1e <EncoderTask+0x19e>
  6205. 8002f18: f04f 0300 mov.w r3, #0
  6206. 8002f1c: e000 b.n 8002f20 <EncoderTask+0x1a0>
  6207. 8002f1e: 693b ldr r3, [r7, #16]
  6208. 8002f20: 613b str r3, [r7, #16]
  6209. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6210. 8002f22: edd7 7a04 vldr s15, [r7, #16]
  6211. 8002f26: ed9f 7a0d vldr s14, [pc, #52] @ 8002f5c <EncoderTask+0x1dc>
  6212. 8002f2a: eef4 7ac7 vcmpe.f32 s15, s14
  6213. 8002f2e: eef1 fa10 vmrs APSR_nzcv, fpscr
  6214. 8002f32: dd01 ble.n 8002f38 <EncoderTask+0x1b8>
  6215. 8002f34: 4b0a ldr r3, [pc, #40] @ (8002f60 <EncoderTask+0x1e0>)
  6216. 8002f36: e000 b.n 8002f3a <EncoderTask+0x1ba>
  6217. 8002f38: 693b ldr r3, [r7, #16]
  6218. 8002f3a: 4a06 ldr r2, [pc, #24] @ (8002f54 <EncoderTask+0x1d4>)
  6219. 8002f3c: 6313 str r3, [r2, #48] @ 0x30
  6220. DbgLEDToggle(DBG_LED3);
  6221. 8002f3e: 2040 movs r0, #64 @ 0x40
  6222. 8002f40: f000 f834 bl 8002fac <DbgLEDToggle>
  6223. }
  6224. osMutexRelease (sensorsInfoMutex);
  6225. 8002f44: 4b02 ldr r3, [pc, #8] @ (8002f50 <EncoderTask+0x1d0>)
  6226. 8002f46: 681b ldr r3, [r3, #0]
  6227. 8002f48: 4618 mov r0, r3
  6228. 8002f4a: f011 fb43 bl 80145d4 <osMutexRelease>
  6229. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6230. 8002f4e: e71f b.n 8002d90 <EncoderTask+0x10>
  6231. 8002f50: 2400081c .word 0x2400081c
  6232. 8002f54: 24000860 .word 0x24000860
  6233. 8002f58: 43b40000 .word 0x43b40000
  6234. 8002f5c: 42c80000 .word 0x42c80000
  6235. 8002f60: 42c80000 .word 0x42c80000
  6236. 08002f64 <DbgLEDOn>:
  6237. #include <stdlib.h>
  6238. #include "peripherial.h"
  6239. void DbgLEDOn (uint8_t ledNumber) {
  6240. 8002f64: b580 push {r7, lr}
  6241. 8002f66: b082 sub sp, #8
  6242. 8002f68: af00 add r7, sp, #0
  6243. 8002f6a: 4603 mov r3, r0
  6244. 8002f6c: 71fb strb r3, [r7, #7]
  6245. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  6246. 8002f6e: 79fb ldrb r3, [r7, #7]
  6247. 8002f70: b29b uxth r3, r3
  6248. 8002f72: 2201 movs r2, #1
  6249. 8002f74: 4619 mov r1, r3
  6250. 8002f76: 4803 ldr r0, [pc, #12] @ (8002f84 <DbgLEDOn+0x20>)
  6251. 8002f78: f008 fb34 bl 800b5e4 <HAL_GPIO_WritePin>
  6252. }
  6253. 8002f7c: bf00 nop
  6254. 8002f7e: 3708 adds r7, #8
  6255. 8002f80: 46bd mov sp, r7
  6256. 8002f82: bd80 pop {r7, pc}
  6257. 8002f84: 58020c00 .word 0x58020c00
  6258. 08002f88 <DbgLEDOff>:
  6259. void DbgLEDOff (uint8_t ledNumber) {
  6260. 8002f88: b580 push {r7, lr}
  6261. 8002f8a: b082 sub sp, #8
  6262. 8002f8c: af00 add r7, sp, #0
  6263. 8002f8e: 4603 mov r3, r0
  6264. 8002f90: 71fb strb r3, [r7, #7]
  6265. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  6266. 8002f92: 79fb ldrb r3, [r7, #7]
  6267. 8002f94: b29b uxth r3, r3
  6268. 8002f96: 2200 movs r2, #0
  6269. 8002f98: 4619 mov r1, r3
  6270. 8002f9a: 4803 ldr r0, [pc, #12] @ (8002fa8 <DbgLEDOff+0x20>)
  6271. 8002f9c: f008 fb22 bl 800b5e4 <HAL_GPIO_WritePin>
  6272. }
  6273. 8002fa0: bf00 nop
  6274. 8002fa2: 3708 adds r7, #8
  6275. 8002fa4: 46bd mov sp, r7
  6276. 8002fa6: bd80 pop {r7, pc}
  6277. 8002fa8: 58020c00 .word 0x58020c00
  6278. 08002fac <DbgLEDToggle>:
  6279. void DbgLEDToggle (uint8_t ledNumber) {
  6280. 8002fac: b580 push {r7, lr}
  6281. 8002fae: b082 sub sp, #8
  6282. 8002fb0: af00 add r7, sp, #0
  6283. 8002fb2: 4603 mov r3, r0
  6284. 8002fb4: 71fb strb r3, [r7, #7]
  6285. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  6286. 8002fb6: 79fb ldrb r3, [r7, #7]
  6287. 8002fb8: b29b uxth r3, r3
  6288. 8002fba: 4619 mov r1, r3
  6289. 8002fbc: 4803 ldr r0, [pc, #12] @ (8002fcc <DbgLEDToggle+0x20>)
  6290. 8002fbe: f008 fb2a bl 800b616 <HAL_GPIO_TogglePin>
  6291. }
  6292. 8002fc2: bf00 nop
  6293. 8002fc4: 3708 adds r7, #8
  6294. 8002fc6: 46bd mov sp, r7
  6295. 8002fc8: bd80 pop {r7, pc}
  6296. 8002fca: bf00 nop
  6297. 8002fcc: 58020c00 .word 0x58020c00
  6298. 08002fd0 <EnableCurrentSensors>:
  6299. void EnableCurrentSensors (void) {
  6300. 8002fd0: b580 push {r7, lr}
  6301. 8002fd2: af00 add r7, sp, #0
  6302. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  6303. 8002fd4: 2201 movs r2, #1
  6304. 8002fd6: f44f 4100 mov.w r1, #32768 @ 0x8000
  6305. 8002fda: 4802 ldr r0, [pc, #8] @ (8002fe4 <EnableCurrentSensors+0x14>)
  6306. 8002fdc: f008 fb02 bl 800b5e4 <HAL_GPIO_WritePin>
  6307. }
  6308. 8002fe0: bf00 nop
  6309. 8002fe2: bd80 pop {r7, pc}
  6310. 8002fe4: 58021000 .word 0x58021000
  6311. 08002fe8 <SelectCurrentSensorGain>:
  6312. void DisableCurrentSensors (void) {
  6313. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  6314. }
  6315. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  6316. 8002fe8: b580 push {r7, lr}
  6317. 8002fea: b084 sub sp, #16
  6318. 8002fec: af00 add r7, sp, #0
  6319. 8002fee: 4603 mov r3, r0
  6320. 8002ff0: 460a mov r2, r1
  6321. 8002ff2: 71fb strb r3, [r7, #7]
  6322. 8002ff4: 4613 mov r3, r2
  6323. 8002ff6: 71bb strb r3, [r7, #6]
  6324. uint8_t gpioOffset = 0;
  6325. 8002ff8: 2300 movs r3, #0
  6326. 8002ffa: 73fb strb r3, [r7, #15]
  6327. switch (sensor) {
  6328. 8002ffc: 79fb ldrb r3, [r7, #7]
  6329. 8002ffe: 2b02 cmp r3, #2
  6330. 8003000: d00c beq.n 800301c <SelectCurrentSensorGain+0x34>
  6331. 8003002: 2b02 cmp r3, #2
  6332. 8003004: dc0d bgt.n 8003022 <SelectCurrentSensorGain+0x3a>
  6333. 8003006: 2b00 cmp r3, #0
  6334. 8003008: d002 beq.n 8003010 <SelectCurrentSensorGain+0x28>
  6335. 800300a: 2b01 cmp r3, #1
  6336. 800300c: d003 beq.n 8003016 <SelectCurrentSensorGain+0x2e>
  6337. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6338. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6339. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6340. default: break;
  6341. 800300e: e008 b.n 8003022 <SelectCurrentSensorGain+0x3a>
  6342. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6343. 8003010: 2307 movs r3, #7
  6344. 8003012: 73fb strb r3, [r7, #15]
  6345. 8003014: e006 b.n 8003024 <SelectCurrentSensorGain+0x3c>
  6346. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6347. 8003016: 2309 movs r3, #9
  6348. 8003018: 73fb strb r3, [r7, #15]
  6349. 800301a: e003 b.n 8003024 <SelectCurrentSensorGain+0x3c>
  6350. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6351. 800301c: 230d movs r3, #13
  6352. 800301e: 73fb strb r3, [r7, #15]
  6353. 8003020: e000 b.n 8003024 <SelectCurrentSensorGain+0x3c>
  6354. default: break;
  6355. 8003022: bf00 nop
  6356. }
  6357. if (gpioOffset > 0) {
  6358. 8003024: 7bfb ldrb r3, [r7, #15]
  6359. 8003026: 2b00 cmp r3, #0
  6360. 8003028: d023 beq.n 8003072 <SelectCurrentSensorGain+0x8a>
  6361. uint16_t gain0Gpio = 1 << gpioOffset;
  6362. 800302a: 7bfb ldrb r3, [r7, #15]
  6363. 800302c: 2201 movs r2, #1
  6364. 800302e: fa02 f303 lsl.w r3, r2, r3
  6365. 8003032: 81bb strh r3, [r7, #12]
  6366. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  6367. 8003034: 7bfb ldrb r3, [r7, #15]
  6368. 8003036: 3301 adds r3, #1
  6369. 8003038: 2201 movs r2, #1
  6370. 800303a: fa02 f303 lsl.w r3, r2, r3
  6371. 800303e: 817b strh r3, [r7, #10]
  6372. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6373. 8003040: 79bb ldrb r3, [r7, #6]
  6374. 8003042: b29b uxth r3, r3
  6375. 8003044: f003 0301 and.w r3, r3, #1
  6376. 8003048: 813b strh r3, [r7, #8]
  6377. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6378. 800304a: 893b ldrh r3, [r7, #8]
  6379. 800304c: b2da uxtb r2, r3
  6380. 800304e: 89bb ldrh r3, [r7, #12]
  6381. 8003050: 4619 mov r1, r3
  6382. 8003052: 480a ldr r0, [pc, #40] @ (800307c <SelectCurrentSensorGain+0x94>)
  6383. 8003054: f008 fac6 bl 800b5e4 <HAL_GPIO_WritePin>
  6384. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6385. 8003058: 79bb ldrb r3, [r7, #6]
  6386. 800305a: 085b lsrs r3, r3, #1
  6387. 800305c: b2db uxtb r3, r3
  6388. 800305e: f003 0301 and.w r3, r3, #1
  6389. 8003062: 813b strh r3, [r7, #8]
  6390. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6391. 8003064: 893b ldrh r3, [r7, #8]
  6392. 8003066: b2da uxtb r2, r3
  6393. 8003068: 897b ldrh r3, [r7, #10]
  6394. 800306a: 4619 mov r1, r3
  6395. 800306c: 4803 ldr r0, [pc, #12] @ (800307c <SelectCurrentSensorGain+0x94>)
  6396. 800306e: f008 fab9 bl 800b5e4 <HAL_GPIO_WritePin>
  6397. }
  6398. }
  6399. 8003072: bf00 nop
  6400. 8003074: 3710 adds r7, #16
  6401. 8003076: 46bd mov sp, r7
  6402. 8003078: bd80 pop {r7, pc}
  6403. 800307a: bf00 nop
  6404. 800307c: 58021000 .word 0x58021000
  6405. 08003080 <MotorControl>:
  6406. uint8_t
  6407. 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) {
  6408. 8003080: b580 push {r7, lr}
  6409. 8003082: b088 sub sp, #32
  6410. 8003084: af02 add r7, sp, #8
  6411. 8003086: 60f8 str r0, [r7, #12]
  6412. 8003088: 60b9 str r1, [r7, #8]
  6413. 800308a: 4611 mov r1, r2
  6414. 800308c: 461a mov r2, r3
  6415. 800308e: 460b mov r3, r1
  6416. 8003090: 71fb strb r3, [r7, #7]
  6417. 8003092: 4613 mov r3, r2
  6418. 8003094: 71bb strb r3, [r7, #6]
  6419. uint32_t motorStatus = 0;
  6420. 8003096: 2300 movs r3, #0
  6421. 8003098: 617b str r3, [r7, #20]
  6422. MotorDriverState setMotorState = HiZ;
  6423. 800309a: 2300 movs r3, #0
  6424. 800309c: 74fb strb r3, [r7, #19]
  6425. HAL_TIM_PWM_Stop (htim, channel1);
  6426. 800309e: 79fb ldrb r3, [r7, #7]
  6427. 80030a0: 4619 mov r1, r3
  6428. 80030a2: 68f8 ldr r0, [r7, #12]
  6429. 80030a4: f00c fca6 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6430. HAL_TIM_PWM_Stop (htim, channel2);
  6431. 80030a8: 79bb ldrb r3, [r7, #6]
  6432. 80030aa: 4619 mov r1, r3
  6433. 80030ac: 68f8 ldr r0, [r7, #12]
  6434. 80030ae: f00c fca1 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6435. if (motorTimerPeriod > 0) {
  6436. 80030b2: 6abb ldr r3, [r7, #40] @ 0x28
  6437. 80030b4: 2b00 cmp r3, #0
  6438. 80030b6: f340 808c ble.w 80031d2 <MotorControl+0x152>
  6439. if (motorPWMPulse > 0) {
  6440. 80030ba: 6a7b ldr r3, [r7, #36] @ 0x24
  6441. 80030bc: 2b00 cmp r3, #0
  6442. 80030be: dd2c ble.n 800311a <MotorControl+0x9a>
  6443. // Forward
  6444. if (switchLimiterUpStat == 0) {
  6445. 80030c0: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6446. 80030c4: 2b00 cmp r3, #0
  6447. 80030c6: d11d bne.n 8003104 <MotorControl+0x84>
  6448. setMotorState = Forward;
  6449. 80030c8: 2301 movs r3, #1
  6450. 80030ca: 74fb strb r3, [r7, #19]
  6451. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6452. 80030cc: 79f9 ldrb r1, [r7, #7]
  6453. 80030ce: 79b8 ldrb r0, [r7, #6]
  6454. 80030d0: 6a7b ldr r3, [r7, #36] @ 0x24
  6455. 80030d2: ea83 72e3 eor.w r2, r3, r3, asr #31
  6456. 80030d6: eba2 72e3 sub.w r2, r2, r3, asr #31
  6457. 80030da: 4613 mov r3, r2
  6458. 80030dc: 009b lsls r3, r3, #2
  6459. 80030de: 4413 add r3, r2
  6460. 80030e0: 005b lsls r3, r3, #1
  6461. 80030e2: 9301 str r3, [sp, #4]
  6462. 80030e4: 7cfb ldrb r3, [r7, #19]
  6463. 80030e6: 9300 str r3, [sp, #0]
  6464. 80030e8: 4603 mov r3, r0
  6465. 80030ea: 460a mov r2, r1
  6466. 80030ec: 68b9 ldr r1, [r7, #8]
  6467. 80030ee: 68f8 ldr r0, [r7, #12]
  6468. 80030f0: f000 f8ff bl 80032f2 <MotorAction>
  6469. HAL_TIM_PWM_Start (htim, channel1);
  6470. 80030f4: 79fb ldrb r3, [r7, #7]
  6471. 80030f6: 4619 mov r1, r3
  6472. 80030f8: 68f8 ldr r0, [r7, #12]
  6473. 80030fa: f00c fb6d bl 800f7d8 <HAL_TIM_PWM_Start>
  6474. motorStatus = 1;
  6475. 80030fe: 2301 movs r3, #1
  6476. 8003100: 617b str r3, [r7, #20]
  6477. 8003102: e004 b.n 800310e <MotorControl+0x8e>
  6478. } else {
  6479. HAL_TIM_PWM_Stop (htim, channel1);
  6480. 8003104: 79fb ldrb r3, [r7, #7]
  6481. 8003106: 4619 mov r1, r3
  6482. 8003108: 68f8 ldr r0, [r7, #12]
  6483. 800310a: f00c fc73 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6484. }
  6485. HAL_TIM_PWM_Stop (htim, channel2);
  6486. 800310e: 79bb ldrb r3, [r7, #6]
  6487. 8003110: 4619 mov r1, r3
  6488. 8003112: 68f8 ldr r0, [r7, #12]
  6489. 8003114: f00c fc6e bl 800f9f4 <HAL_TIM_PWM_Stop>
  6490. 8003118: e051 b.n 80031be <MotorControl+0x13e>
  6491. } else if (motorPWMPulse < 0) {
  6492. 800311a: 6a7b ldr r3, [r7, #36] @ 0x24
  6493. 800311c: 2b00 cmp r3, #0
  6494. 800311e: da2c bge.n 800317a <MotorControl+0xfa>
  6495. // Reverse
  6496. if (switchLimiterDownStat == 0) {
  6497. 8003120: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6498. 8003124: 2b00 cmp r3, #0
  6499. 8003126: d11d bne.n 8003164 <MotorControl+0xe4>
  6500. setMotorState = Reverse;
  6501. 8003128: 2302 movs r3, #2
  6502. 800312a: 74fb strb r3, [r7, #19]
  6503. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6504. 800312c: 79f9 ldrb r1, [r7, #7]
  6505. 800312e: 79b8 ldrb r0, [r7, #6]
  6506. 8003130: 6a7b ldr r3, [r7, #36] @ 0x24
  6507. 8003132: ea83 72e3 eor.w r2, r3, r3, asr #31
  6508. 8003136: eba2 72e3 sub.w r2, r2, r3, asr #31
  6509. 800313a: 4613 mov r3, r2
  6510. 800313c: 009b lsls r3, r3, #2
  6511. 800313e: 4413 add r3, r2
  6512. 8003140: 005b lsls r3, r3, #1
  6513. 8003142: 9301 str r3, [sp, #4]
  6514. 8003144: 7cfb ldrb r3, [r7, #19]
  6515. 8003146: 9300 str r3, [sp, #0]
  6516. 8003148: 4603 mov r3, r0
  6517. 800314a: 460a mov r2, r1
  6518. 800314c: 68b9 ldr r1, [r7, #8]
  6519. 800314e: 68f8 ldr r0, [r7, #12]
  6520. 8003150: f000 f8cf bl 80032f2 <MotorAction>
  6521. HAL_TIM_PWM_Start (htim, channel2);
  6522. 8003154: 79bb ldrb r3, [r7, #6]
  6523. 8003156: 4619 mov r1, r3
  6524. 8003158: 68f8 ldr r0, [r7, #12]
  6525. 800315a: f00c fb3d bl 800f7d8 <HAL_TIM_PWM_Start>
  6526. motorStatus = 1;
  6527. 800315e: 2301 movs r3, #1
  6528. 8003160: 617b str r3, [r7, #20]
  6529. 8003162: e004 b.n 800316e <MotorControl+0xee>
  6530. } else {
  6531. HAL_TIM_PWM_Stop (htim, channel2);
  6532. 8003164: 79bb ldrb r3, [r7, #6]
  6533. 8003166: 4619 mov r1, r3
  6534. 8003168: 68f8 ldr r0, [r7, #12]
  6535. 800316a: f00c fc43 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6536. }
  6537. HAL_TIM_PWM_Stop (htim, channel1);
  6538. 800316e: 79fb ldrb r3, [r7, #7]
  6539. 8003170: 4619 mov r1, r3
  6540. 8003172: 68f8 ldr r0, [r7, #12]
  6541. 8003174: f00c fc3e bl 800f9f4 <HAL_TIM_PWM_Stop>
  6542. 8003178: e021 b.n 80031be <MotorControl+0x13e>
  6543. } else {
  6544. // Brake
  6545. setMotorState = Brake;
  6546. 800317a: 2303 movs r3, #3
  6547. 800317c: 74fb strb r3, [r7, #19]
  6548. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6549. 800317e: 79f9 ldrb r1, [r7, #7]
  6550. 8003180: 79b8 ldrb r0, [r7, #6]
  6551. 8003182: 6a7b ldr r3, [r7, #36] @ 0x24
  6552. 8003184: ea83 72e3 eor.w r2, r3, r3, asr #31
  6553. 8003188: eba2 72e3 sub.w r2, r2, r3, asr #31
  6554. 800318c: 4613 mov r3, r2
  6555. 800318e: 009b lsls r3, r3, #2
  6556. 8003190: 4413 add r3, r2
  6557. 8003192: 005b lsls r3, r3, #1
  6558. 8003194: 9301 str r3, [sp, #4]
  6559. 8003196: 7cfb ldrb r3, [r7, #19]
  6560. 8003198: 9300 str r3, [sp, #0]
  6561. 800319a: 4603 mov r3, r0
  6562. 800319c: 460a mov r2, r1
  6563. 800319e: 68b9 ldr r1, [r7, #8]
  6564. 80031a0: 68f8 ldr r0, [r7, #12]
  6565. 80031a2: f000 f8a6 bl 80032f2 <MotorAction>
  6566. HAL_TIM_PWM_Start (htim, channel1);
  6567. 80031a6: 79fb ldrb r3, [r7, #7]
  6568. 80031a8: 4619 mov r1, r3
  6569. 80031aa: 68f8 ldr r0, [r7, #12]
  6570. 80031ac: f00c fb14 bl 800f7d8 <HAL_TIM_PWM_Start>
  6571. HAL_TIM_PWM_Start (htim, channel2);
  6572. 80031b0: 79bb ldrb r3, [r7, #6]
  6573. 80031b2: 4619 mov r1, r3
  6574. 80031b4: 68f8 ldr r0, [r7, #12]
  6575. 80031b6: f00c fb0f bl 800f7d8 <HAL_TIM_PWM_Start>
  6576. motorStatus = 0;
  6577. 80031ba: 2300 movs r3, #0
  6578. 80031bc: 617b str r3, [r7, #20]
  6579. }
  6580. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6581. 80031be: 6abb ldr r3, [r7, #40] @ 0x28
  6582. 80031c0: f44f 727a mov.w r2, #1000 @ 0x3e8
  6583. 80031c4: fb02 f303 mul.w r3, r2, r3
  6584. 80031c8: 4619 mov r1, r3
  6585. 80031ca: 6a38 ldr r0, [r7, #32]
  6586. 80031cc: f011 f8cc bl 8014368 <osTimerStart>
  6587. 80031d0: e089 b.n 80032e6 <MotorControl+0x266>
  6588. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6589. 80031d2: 6abb ldr r3, [r7, #40] @ 0x28
  6590. 80031d4: 2b00 cmp r3, #0
  6591. 80031d6: d126 bne.n 8003226 <MotorControl+0x1a6>
  6592. 80031d8: 6a7b ldr r3, [r7, #36] @ 0x24
  6593. 80031da: 2b00 cmp r3, #0
  6594. 80031dc: d123 bne.n 8003226 <MotorControl+0x1a6>
  6595. MotorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6596. 80031de: 79f9 ldrb r1, [r7, #7]
  6597. 80031e0: 79b8 ldrb r0, [r7, #6]
  6598. 80031e2: 6a7b ldr r3, [r7, #36] @ 0x24
  6599. 80031e4: ea83 72e3 eor.w r2, r3, r3, asr #31
  6600. 80031e8: eba2 72e3 sub.w r2, r2, r3, asr #31
  6601. 80031ec: 4613 mov r3, r2
  6602. 80031ee: 009b lsls r3, r3, #2
  6603. 80031f0: 4413 add r3, r2
  6604. 80031f2: 005b lsls r3, r3, #1
  6605. 80031f4: 9301 str r3, [sp, #4]
  6606. 80031f6: 2300 movs r3, #0
  6607. 80031f8: 9300 str r3, [sp, #0]
  6608. 80031fa: 4603 mov r3, r0
  6609. 80031fc: 460a mov r2, r1
  6610. 80031fe: 68b9 ldr r1, [r7, #8]
  6611. 8003200: 68f8 ldr r0, [r7, #12]
  6612. 8003202: f000 f876 bl 80032f2 <MotorAction>
  6613. HAL_TIM_PWM_Stop (htim, channel1);
  6614. 8003206: 79fb ldrb r3, [r7, #7]
  6615. 8003208: 4619 mov r1, r3
  6616. 800320a: 68f8 ldr r0, [r7, #12]
  6617. 800320c: f00c fbf2 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6618. HAL_TIM_PWM_Stop (htim, channel2);
  6619. 8003210: 79bb ldrb r3, [r7, #6]
  6620. 8003212: 4619 mov r1, r3
  6621. 8003214: 68f8 ldr r0, [r7, #12]
  6622. 8003216: f00c fbed bl 800f9f4 <HAL_TIM_PWM_Stop>
  6623. osTimerStop (motorTimerHandle);
  6624. 800321a: 6a38 ldr r0, [r7, #32]
  6625. 800321c: f011 f8d2 bl 80143c4 <osTimerStop>
  6626. motorStatus = 0;
  6627. 8003220: 2300 movs r3, #0
  6628. 8003222: 617b str r3, [r7, #20]
  6629. 8003224: e05f b.n 80032e6 <MotorControl+0x266>
  6630. } else if (motorTimerPeriod == -1) {
  6631. 8003226: 6abb ldr r3, [r7, #40] @ 0x28
  6632. 8003228: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6633. 800322c: d15b bne.n 80032e6 <MotorControl+0x266>
  6634. if (motorPWMPulse > 0) {
  6635. 800322e: 6a7b ldr r3, [r7, #36] @ 0x24
  6636. 8003230: 2b00 cmp r3, #0
  6637. 8003232: dd2c ble.n 800328e <MotorControl+0x20e>
  6638. // Forward
  6639. if (switchLimiterUpStat == 0) {
  6640. 8003234: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6641. 8003238: 2b00 cmp r3, #0
  6642. 800323a: d11d bne.n 8003278 <MotorControl+0x1f8>
  6643. setMotorState = Forward;
  6644. 800323c: 2301 movs r3, #1
  6645. 800323e: 74fb strb r3, [r7, #19]
  6646. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6647. 8003240: 79f9 ldrb r1, [r7, #7]
  6648. 8003242: 79b8 ldrb r0, [r7, #6]
  6649. 8003244: 6a7b ldr r3, [r7, #36] @ 0x24
  6650. 8003246: ea83 72e3 eor.w r2, r3, r3, asr #31
  6651. 800324a: eba2 72e3 sub.w r2, r2, r3, asr #31
  6652. 800324e: 4613 mov r3, r2
  6653. 8003250: 009b lsls r3, r3, #2
  6654. 8003252: 4413 add r3, r2
  6655. 8003254: 005b lsls r3, r3, #1
  6656. 8003256: 9301 str r3, [sp, #4]
  6657. 8003258: 7cfb ldrb r3, [r7, #19]
  6658. 800325a: 9300 str r3, [sp, #0]
  6659. 800325c: 4603 mov r3, r0
  6660. 800325e: 460a mov r2, r1
  6661. 8003260: 68b9 ldr r1, [r7, #8]
  6662. 8003262: 68f8 ldr r0, [r7, #12]
  6663. 8003264: f000 f845 bl 80032f2 <MotorAction>
  6664. HAL_TIM_PWM_Start (htim, channel1);
  6665. 8003268: 79fb ldrb r3, [r7, #7]
  6666. 800326a: 4619 mov r1, r3
  6667. 800326c: 68f8 ldr r0, [r7, #12]
  6668. 800326e: f00c fab3 bl 800f7d8 <HAL_TIM_PWM_Start>
  6669. motorStatus = 1;
  6670. 8003272: 2301 movs r3, #1
  6671. 8003274: 617b str r3, [r7, #20]
  6672. 8003276: e004 b.n 8003282 <MotorControl+0x202>
  6673. } else {
  6674. HAL_TIM_PWM_Stop (htim, channel1);
  6675. 8003278: 79fb ldrb r3, [r7, #7]
  6676. 800327a: 4619 mov r1, r3
  6677. 800327c: 68f8 ldr r0, [r7, #12]
  6678. 800327e: f00c fbb9 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6679. }
  6680. HAL_TIM_PWM_Stop (htim, channel2);
  6681. 8003282: 79bb ldrb r3, [r7, #6]
  6682. 8003284: 4619 mov r1, r3
  6683. 8003286: 68f8 ldr r0, [r7, #12]
  6684. 8003288: f00c fbb4 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6685. 800328c: e02b b.n 80032e6 <MotorControl+0x266>
  6686. } else {
  6687. // Reverse
  6688. if (switchLimiterDownStat == 0) {
  6689. 800328e: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6690. 8003292: 2b00 cmp r3, #0
  6691. 8003294: d11d bne.n 80032d2 <MotorControl+0x252>
  6692. setMotorState = Reverse;
  6693. 8003296: 2302 movs r3, #2
  6694. 8003298: 74fb strb r3, [r7, #19]
  6695. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6696. 800329a: 79f9 ldrb r1, [r7, #7]
  6697. 800329c: 79b8 ldrb r0, [r7, #6]
  6698. 800329e: 6a7b ldr r3, [r7, #36] @ 0x24
  6699. 80032a0: ea83 72e3 eor.w r2, r3, r3, asr #31
  6700. 80032a4: eba2 72e3 sub.w r2, r2, r3, asr #31
  6701. 80032a8: 4613 mov r3, r2
  6702. 80032aa: 009b lsls r3, r3, #2
  6703. 80032ac: 4413 add r3, r2
  6704. 80032ae: 005b lsls r3, r3, #1
  6705. 80032b0: 9301 str r3, [sp, #4]
  6706. 80032b2: 7cfb ldrb r3, [r7, #19]
  6707. 80032b4: 9300 str r3, [sp, #0]
  6708. 80032b6: 4603 mov r3, r0
  6709. 80032b8: 460a mov r2, r1
  6710. 80032ba: 68b9 ldr r1, [r7, #8]
  6711. 80032bc: 68f8 ldr r0, [r7, #12]
  6712. 80032be: f000 f818 bl 80032f2 <MotorAction>
  6713. HAL_TIM_PWM_Start (htim, channel2);
  6714. 80032c2: 79bb ldrb r3, [r7, #6]
  6715. 80032c4: 4619 mov r1, r3
  6716. 80032c6: 68f8 ldr r0, [r7, #12]
  6717. 80032c8: f00c fa86 bl 800f7d8 <HAL_TIM_PWM_Start>
  6718. motorStatus = 1;
  6719. 80032cc: 2301 movs r3, #1
  6720. 80032ce: 617b str r3, [r7, #20]
  6721. 80032d0: e004 b.n 80032dc <MotorControl+0x25c>
  6722. } else {
  6723. HAL_TIM_PWM_Stop (htim, channel2);
  6724. 80032d2: 79bb ldrb r3, [r7, #6]
  6725. 80032d4: 4619 mov r1, r3
  6726. 80032d6: 68f8 ldr r0, [r7, #12]
  6727. 80032d8: f00c fb8c bl 800f9f4 <HAL_TIM_PWM_Stop>
  6728. }
  6729. HAL_TIM_PWM_Stop (htim, channel1);
  6730. 80032dc: 79fb ldrb r3, [r7, #7]
  6731. 80032de: 4619 mov r1, r3
  6732. 80032e0: 68f8 ldr r0, [r7, #12]
  6733. 80032e2: f00c fb87 bl 800f9f4 <HAL_TIM_PWM_Stop>
  6734. }
  6735. }
  6736. return motorStatus;
  6737. 80032e6: 697b ldr r3, [r7, #20]
  6738. 80032e8: b2db uxtb r3, r3
  6739. }
  6740. 80032ea: 4618 mov r0, r3
  6741. 80032ec: 3718 adds r7, #24
  6742. 80032ee: 46bd mov sp, r7
  6743. 80032f0: bd80 pop {r7, pc}
  6744. 080032f2 <MotorAction>:
  6745. void MotorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6746. 80032f2: b580 push {r7, lr}
  6747. 80032f4: b084 sub sp, #16
  6748. 80032f6: af00 add r7, sp, #0
  6749. 80032f8: 60f8 str r0, [r7, #12]
  6750. 80032fa: 60b9 str r1, [r7, #8]
  6751. 80032fc: 607a str r2, [r7, #4]
  6752. 80032fe: 603b str r3, [r7, #0]
  6753. timerConf->Pulse = pulse;
  6754. 8003300: 68bb ldr r3, [r7, #8]
  6755. 8003302: 69fa ldr r2, [r7, #28]
  6756. 8003304: 605a str r2, [r3, #4]
  6757. switch (setState) {
  6758. 8003306: 7e3b ldrb r3, [r7, #24]
  6759. 8003308: 2b02 cmp r3, #2
  6760. 800330a: dc02 bgt.n 8003312 <MotorAction+0x20>
  6761. 800330c: 2b00 cmp r3, #0
  6762. 800330e: da03 bge.n 8003318 <MotorAction+0x26>
  6763. 8003310: e038 b.n 8003384 <MotorAction+0x92>
  6764. 8003312: 2b03 cmp r3, #3
  6765. 8003314: d01b beq.n 800334e <MotorAction+0x5c>
  6766. 8003316: e035 b.n 8003384 <MotorAction+0x92>
  6767. case Forward:
  6768. case Reverse:
  6769. case HiZ:
  6770. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6771. 8003318: 68bb ldr r3, [r7, #8]
  6772. 800331a: 2200 movs r2, #0
  6773. 800331c: 609a str r2, [r3, #8]
  6774. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6775. 800331e: 687a ldr r2, [r7, #4]
  6776. 8003320: 68b9 ldr r1, [r7, #8]
  6777. 8003322: 68f8 ldr r0, [r7, #12]
  6778. 8003324: f00c ff52 bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6779. 8003328: 4603 mov r3, r0
  6780. 800332a: 2b00 cmp r3, #0
  6781. 800332c: d001 beq.n 8003332 <MotorAction+0x40>
  6782. Error_Handler ();
  6783. 800332e: f7fe fdcd bl 8001ecc <Error_Handler>
  6784. }
  6785. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6786. 8003332: 68bb ldr r3, [r7, #8]
  6787. 8003334: 2200 movs r2, #0
  6788. 8003336: 609a str r2, [r3, #8]
  6789. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6790. 8003338: 683a ldr r2, [r7, #0]
  6791. 800333a: 68b9 ldr r1, [r7, #8]
  6792. 800333c: 68f8 ldr r0, [r7, #12]
  6793. 800333e: f00c ff45 bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6794. 8003342: 4603 mov r3, r0
  6795. 8003344: 2b00 cmp r3, #0
  6796. 8003346: d038 beq.n 80033ba <MotorAction+0xc8>
  6797. Error_Handler ();
  6798. 8003348: f7fe fdc0 bl 8001ecc <Error_Handler>
  6799. }
  6800. break;
  6801. 800334c: e035 b.n 80033ba <MotorAction+0xc8>
  6802. case Brake:
  6803. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6804. 800334e: 68bb ldr r3, [r7, #8]
  6805. 8003350: 2202 movs r2, #2
  6806. 8003352: 609a str r2, [r3, #8]
  6807. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6808. 8003354: 687a ldr r2, [r7, #4]
  6809. 8003356: 68b9 ldr r1, [r7, #8]
  6810. 8003358: 68f8 ldr r0, [r7, #12]
  6811. 800335a: f00c ff37 bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6812. 800335e: 4603 mov r3, r0
  6813. 8003360: 2b00 cmp r3, #0
  6814. 8003362: d001 beq.n 8003368 <MotorAction+0x76>
  6815. Error_Handler ();
  6816. 8003364: f7fe fdb2 bl 8001ecc <Error_Handler>
  6817. }
  6818. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6819. 8003368: 68bb ldr r3, [r7, #8]
  6820. 800336a: 2202 movs r2, #2
  6821. 800336c: 609a str r2, [r3, #8]
  6822. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6823. 800336e: 683a ldr r2, [r7, #0]
  6824. 8003370: 68b9 ldr r1, [r7, #8]
  6825. 8003372: 68f8 ldr r0, [r7, #12]
  6826. 8003374: f00c ff2a bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6827. 8003378: 4603 mov r3, r0
  6828. 800337a: 2b00 cmp r3, #0
  6829. 800337c: d01f beq.n 80033be <MotorAction+0xcc>
  6830. Error_Handler ();
  6831. 800337e: f7fe fda5 bl 8001ecc <Error_Handler>
  6832. }
  6833. break;
  6834. 8003382: e01c b.n 80033be <MotorAction+0xcc>
  6835. default:
  6836. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6837. 8003384: 68bb ldr r3, [r7, #8]
  6838. 8003386: 2200 movs r2, #0
  6839. 8003388: 609a str r2, [r3, #8]
  6840. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6841. 800338a: 687a ldr r2, [r7, #4]
  6842. 800338c: 68b9 ldr r1, [r7, #8]
  6843. 800338e: 68f8 ldr r0, [r7, #12]
  6844. 8003390: f00c ff1c bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6845. 8003394: 4603 mov r3, r0
  6846. 8003396: 2b00 cmp r3, #0
  6847. 8003398: d001 beq.n 800339e <MotorAction+0xac>
  6848. Error_Handler ();
  6849. 800339a: f7fe fd97 bl 8001ecc <Error_Handler>
  6850. }
  6851. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6852. 800339e: 68bb ldr r3, [r7, #8]
  6853. 80033a0: 2200 movs r2, #0
  6854. 80033a2: 609a str r2, [r3, #8]
  6855. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6856. 80033a4: 683a ldr r2, [r7, #0]
  6857. 80033a6: 68b9 ldr r1, [r7, #8]
  6858. 80033a8: 68f8 ldr r0, [r7, #12]
  6859. 80033aa: f00c ff0f bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  6860. 80033ae: 4603 mov r3, r0
  6861. 80033b0: 2b00 cmp r3, #0
  6862. 80033b2: d006 beq.n 80033c2 <MotorAction+0xd0>
  6863. Error_Handler ();
  6864. 80033b4: f7fe fd8a bl 8001ecc <Error_Handler>
  6865. }
  6866. break;
  6867. 80033b8: e003 b.n 80033c2 <MotorAction+0xd0>
  6868. break;
  6869. 80033ba: bf00 nop
  6870. 80033bc: e002 b.n 80033c4 <MotorAction+0xd2>
  6871. break;
  6872. 80033be: bf00 nop
  6873. 80033c0: e000 b.n 80033c4 <MotorAction+0xd2>
  6874. break;
  6875. 80033c2: bf00 nop
  6876. }
  6877. }
  6878. 80033c4: bf00 nop
  6879. 80033c6: 3710 adds r7, #16
  6880. 80033c8: 46bd mov sp, r7
  6881. 80033ca: bd80 pop {r7, pc}
  6882. 080033cc <PositionControlTaskInit>:
  6883. extern osTimerId_t motorXTimerHandle;
  6884. extern osTimerId_t motorYTimerHandle;
  6885. extern TIM_HandleTypeDef htim3;
  6886. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  6887. void PositionControlTaskInit (void) {
  6888. 80033cc: b580 push {r7, lr}
  6889. 80033ce: b08a sub sp, #40 @ 0x28
  6890. 80033d0: af00 add r7, sp, #0
  6891. positionSettingMutex = osMutexNew (NULL);
  6892. 80033d2: 2000 movs r0, #0
  6893. 80033d4: f011 f82d bl 8014432 <osMutexNew>
  6894. 80033d8: 4603 mov r3, r0
  6895. 80033da: 4a42 ldr r2, [pc, #264] @ (80034e4 <PositionControlTaskInit+0x118>)
  6896. 80033dc: 6013 str r3, [r2, #0]
  6897. osThreadAttr_t osThreadAttrPositionControlTask = { 0 };
  6898. 80033de: 1d3b adds r3, r7, #4
  6899. 80033e0: 2224 movs r2, #36 @ 0x24
  6900. 80033e2: 2100 movs r1, #0
  6901. 80033e4: 4618 mov r0, r3
  6902. 80033e6: f014 ffd7 bl 8018398 <memset>
  6903. osThreadAttrPositionControlTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  6904. 80033ea: f44f 6380 mov.w r3, #1024 @ 0x400
  6905. 80033ee: 61bb str r3, [r7, #24]
  6906. osThreadAttrPositionControlTask.priority = (osPriority_t)osPriorityNormal;
  6907. 80033f0: 2318 movs r3, #24
  6908. 80033f2: 61fb str r3, [r7, #28]
  6909. positionXControlTaskInitArg.channel1 = TIM_CHANNEL_1;
  6910. 80033f4: 4b3c ldr r3, [pc, #240] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6911. 80033f6: 2200 movs r2, #0
  6912. 80033f8: 721a strb r2, [r3, #8]
  6913. positionXControlTaskInitArg.channel2 = TIM_CHANNEL_2;
  6914. 80033fa: 4b3b ldr r3, [pc, #236] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6915. 80033fc: 2204 movs r2, #4
  6916. 80033fe: 725a strb r2, [r3, #9]
  6917. positionXControlTaskInitArg.htim = &htim3;
  6918. 8003400: 4b39 ldr r3, [pc, #228] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6919. 8003402: 4a3a ldr r2, [pc, #232] @ (80034ec <PositionControlTaskInit+0x120>)
  6920. 8003404: 601a str r2, [r3, #0]
  6921. positionXControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6922. 8003406: 4b38 ldr r3, [pc, #224] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6923. 8003408: 4a39 ldr r2, [pc, #228] @ (80034f0 <PositionControlTaskInit+0x124>)
  6924. 800340a: 605a str r2, [r3, #4]
  6925. positionXControlTaskInitArg.motorTimerHandle = motorXTimerHandle;
  6926. 800340c: 4b39 ldr r3, [pc, #228] @ (80034f4 <PositionControlTaskInit+0x128>)
  6927. 800340e: 681b ldr r3, [r3, #0]
  6928. 8003410: 4a35 ldr r2, [pc, #212] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6929. 8003412: 60d3 str r3, [r2, #12]
  6930. positionXControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6931. 8003414: 2200 movs r2, #0
  6932. 8003416: 2104 movs r1, #4
  6933. 8003418: 2010 movs r0, #16
  6934. 800341a: f011 f918 bl 801464e <osMessageQueueNew>
  6935. 800341e: 4603 mov r3, r0
  6936. 8003420: 4a31 ldr r2, [pc, #196] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6937. 8003422: 6113 str r3, [r2, #16]
  6938. positionXControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitXSwitchCenter);
  6939. 8003424: 4b30 ldr r3, [pc, #192] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6940. 8003426: 4a34 ldr r2, [pc, #208] @ (80034f8 <PositionControlTaskInit+0x12c>)
  6941. 8003428: 61da str r2, [r3, #28]
  6942. positionXControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitXSwitchUp);
  6943. 800342a: 4b2f ldr r3, [pc, #188] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6944. 800342c: 4a33 ldr r2, [pc, #204] @ (80034fc <PositionControlTaskInit+0x130>)
  6945. 800342e: 615a str r2, [r3, #20]
  6946. positionXControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitXSwitchDown);
  6947. 8003430: 4b2d ldr r3, [pc, #180] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6948. 8003432: 4a33 ldr r2, [pc, #204] @ (8003500 <PositionControlTaskInit+0x134>)
  6949. 8003434: 619a str r2, [r3, #24]
  6950. positionXControlTaskInitArg.currentPosition = &(sensorsInfo.currentXPosition);
  6951. 8003436: 4b2c ldr r3, [pc, #176] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6952. 8003438: 4a32 ldr r2, [pc, #200] @ (8003504 <PositionControlTaskInit+0x138>)
  6953. 800343a: 621a str r2, [r3, #32]
  6954. positionXControlTaskInitArg.motorStatus = &(sensorsInfo.motorXStatus);
  6955. 800343c: 4b2a ldr r3, [pc, #168] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6956. 800343e: 4a32 ldr r2, [pc, #200] @ (8003508 <PositionControlTaskInit+0x13c>)
  6957. 8003440: 629a str r2, [r3, #40] @ 0x28
  6958. positionXControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorXPeakCurrent);
  6959. 8003442: 4b29 ldr r3, [pc, #164] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6960. 8003444: 4a31 ldr r2, [pc, #196] @ (800350c <PositionControlTaskInit+0x140>)
  6961. 8003446: 62da str r2, [r3, #44] @ 0x2c
  6962. positionXControlTaskInitArg.positionSetting = &positionXSetting;
  6963. 8003448: 4b27 ldr r3, [pc, #156] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6964. 800344a: 4a31 ldr r2, [pc, #196] @ (8003510 <PositionControlTaskInit+0x144>)
  6965. 800344c: 625a str r2, [r3, #36] @ 0x24
  6966. positionXControlTaskInitArg.axe = 'X';
  6967. 800344e: 4b26 ldr r3, [pc, #152] @ (80034e8 <PositionControlTaskInit+0x11c>)
  6968. 8003450: 2258 movs r2, #88 @ 0x58
  6969. 8003452: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6970. positionYControlTaskInitArg.channel1 = TIM_CHANNEL_3;
  6971. 8003456: 4b2f ldr r3, [pc, #188] @ (8003514 <PositionControlTaskInit+0x148>)
  6972. 8003458: 2208 movs r2, #8
  6973. 800345a: 721a strb r2, [r3, #8]
  6974. positionYControlTaskInitArg.channel2 = TIM_CHANNEL_4;
  6975. 800345c: 4b2d ldr r3, [pc, #180] @ (8003514 <PositionControlTaskInit+0x148>)
  6976. 800345e: 220c movs r2, #12
  6977. 8003460: 725a strb r2, [r3, #9]
  6978. positionYControlTaskInitArg.htim = &htim3;
  6979. 8003462: 4b2c ldr r3, [pc, #176] @ (8003514 <PositionControlTaskInit+0x148>)
  6980. 8003464: 4a21 ldr r2, [pc, #132] @ (80034ec <PositionControlTaskInit+0x120>)
  6981. 8003466: 601a str r2, [r3, #0]
  6982. positionYControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6983. 8003468: 4b2a ldr r3, [pc, #168] @ (8003514 <PositionControlTaskInit+0x148>)
  6984. 800346a: 4a21 ldr r2, [pc, #132] @ (80034f0 <PositionControlTaskInit+0x124>)
  6985. 800346c: 605a str r2, [r3, #4]
  6986. positionYControlTaskInitArg.motorTimerHandle = motorYTimerHandle;
  6987. 800346e: 4b2a ldr r3, [pc, #168] @ (8003518 <PositionControlTaskInit+0x14c>)
  6988. 8003470: 681b ldr r3, [r3, #0]
  6989. 8003472: 4a28 ldr r2, [pc, #160] @ (8003514 <PositionControlTaskInit+0x148>)
  6990. 8003474: 60d3 str r3, [r2, #12]
  6991. positionYControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6992. 8003476: 2200 movs r2, #0
  6993. 8003478: 2104 movs r1, #4
  6994. 800347a: 2010 movs r0, #16
  6995. 800347c: f011 f8e7 bl 801464e <osMessageQueueNew>
  6996. 8003480: 4603 mov r3, r0
  6997. 8003482: 4a24 ldr r2, [pc, #144] @ (8003514 <PositionControlTaskInit+0x148>)
  6998. 8003484: 6113 str r3, [r2, #16]
  6999. positionYControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitYSwitchCenter);
  7000. 8003486: 4b23 ldr r3, [pc, #140] @ (8003514 <PositionControlTaskInit+0x148>)
  7001. 8003488: 4a24 ldr r2, [pc, #144] @ (800351c <PositionControlTaskInit+0x150>)
  7002. 800348a: 61da str r2, [r3, #28]
  7003. positionYControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitYSwitchUp);
  7004. 800348c: 4b21 ldr r3, [pc, #132] @ (8003514 <PositionControlTaskInit+0x148>)
  7005. 800348e: 4a24 ldr r2, [pc, #144] @ (8003520 <PositionControlTaskInit+0x154>)
  7006. 8003490: 615a str r2, [r3, #20]
  7007. positionYControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitYSwitchDown);
  7008. 8003492: 4b20 ldr r3, [pc, #128] @ (8003514 <PositionControlTaskInit+0x148>)
  7009. 8003494: 4a23 ldr r2, [pc, #140] @ (8003524 <PositionControlTaskInit+0x158>)
  7010. 8003496: 619a str r2, [r3, #24]
  7011. positionYControlTaskInitArg.currentPosition = &(sensorsInfo.currentYPosition);
  7012. 8003498: 4b1e ldr r3, [pc, #120] @ (8003514 <PositionControlTaskInit+0x148>)
  7013. 800349a: 4a23 ldr r2, [pc, #140] @ (8003528 <PositionControlTaskInit+0x15c>)
  7014. 800349c: 621a str r2, [r3, #32]
  7015. positionYControlTaskInitArg.motorStatus = &(sensorsInfo.motorYStatus);
  7016. 800349e: 4b1d ldr r3, [pc, #116] @ (8003514 <PositionControlTaskInit+0x148>)
  7017. 80034a0: 4a22 ldr r2, [pc, #136] @ (800352c <PositionControlTaskInit+0x160>)
  7018. 80034a2: 629a str r2, [r3, #40] @ 0x28
  7019. positionYControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorYPeakCurrent);
  7020. 80034a4: 4b1b ldr r3, [pc, #108] @ (8003514 <PositionControlTaskInit+0x148>)
  7021. 80034a6: 4a22 ldr r2, [pc, #136] @ (8003530 <PositionControlTaskInit+0x164>)
  7022. 80034a8: 62da str r2, [r3, #44] @ 0x2c
  7023. positionXControlTaskInitArg.positionSetting = &positionYSetting;
  7024. 80034aa: 4b0f ldr r3, [pc, #60] @ (80034e8 <PositionControlTaskInit+0x11c>)
  7025. 80034ac: 4a21 ldr r2, [pc, #132] @ (8003534 <PositionControlTaskInit+0x168>)
  7026. 80034ae: 625a str r2, [r3, #36] @ 0x24
  7027. positionYControlTaskInitArg.axe = 'Y';
  7028. 80034b0: 4b18 ldr r3, [pc, #96] @ (8003514 <PositionControlTaskInit+0x148>)
  7029. 80034b2: 2259 movs r2, #89 @ 0x59
  7030. 80034b4: f883 2030 strb.w r2, [r3, #48] @ 0x30
  7031. positionXControlTaskHandle = osThreadNew (PositionControlTask, &positionXControlTaskInitArg, &osThreadAttrPositionControlTask);
  7032. 80034b8: 1d3b adds r3, r7, #4
  7033. 80034ba: 461a mov r2, r3
  7034. 80034bc: 490a ldr r1, [pc, #40] @ (80034e8 <PositionControlTaskInit+0x11c>)
  7035. 80034be: 481e ldr r0, [pc, #120] @ (8003538 <PositionControlTaskInit+0x16c>)
  7036. 80034c0: f010 fe12 bl 80140e8 <osThreadNew>
  7037. 80034c4: 4603 mov r3, r0
  7038. 80034c6: 4a1d ldr r2, [pc, #116] @ (800353c <PositionControlTaskInit+0x170>)
  7039. 80034c8: 6013 str r3, [r2, #0]
  7040. positionYControlTaskHandle = osThreadNew (PositionControlTask, &positionYControlTaskInitArg, &osThreadAttrPositionControlTask);
  7041. 80034ca: 1d3b adds r3, r7, #4
  7042. 80034cc: 461a mov r2, r3
  7043. 80034ce: 4911 ldr r1, [pc, #68] @ (8003514 <PositionControlTaskInit+0x148>)
  7044. 80034d0: 4819 ldr r0, [pc, #100] @ (8003538 <PositionControlTaskInit+0x16c>)
  7045. 80034d2: f010 fe09 bl 80140e8 <osThreadNew>
  7046. 80034d6: 4603 mov r3, r0
  7047. 80034d8: 4a19 ldr r2, [pc, #100] @ (8003540 <PositionControlTaskInit+0x174>)
  7048. 80034da: 6013 str r3, [r2, #0]
  7049. }
  7050. 80034dc: bf00 nop
  7051. 80034de: 3728 adds r7, #40 @ 0x28
  7052. 80034e0: 46bd mov sp, r7
  7053. 80034e2: bd80 pop {r7, pc}
  7054. 80034e4: 240008a8 .word 0x240008a8
  7055. 80034e8: 240008b4 .word 0x240008b4
  7056. 80034ec: 240004d4 .word 0x240004d4
  7057. 80034f0: 240007c0 .word 0x240007c0
  7058. 80034f4: 24000744 .word 0x24000744
  7059. 80034f8: 2400088a .word 0x2400088a
  7060. 80034fc: 24000888 .word 0x24000888
  7061. 8003500: 24000889 .word 0x24000889
  7062. 8003504: 24000890 .word 0x24000890
  7063. 8003508: 24000874 .word 0x24000874
  7064. 800350c: 24000880 .word 0x24000880
  7065. 8003510: 240008a0 .word 0x240008a0
  7066. 8003514: 240008e8 .word 0x240008e8
  7067. 8003518: 24000774 .word 0x24000774
  7068. 800351c: 2400088d .word 0x2400088d
  7069. 8003520: 2400088b .word 0x2400088b
  7070. 8003524: 2400088c .word 0x2400088c
  7071. 8003528: 24000894 .word 0x24000894
  7072. 800352c: 24000875 .word 0x24000875
  7073. 8003530: 24000884 .word 0x24000884
  7074. 8003534: 240008a4 .word 0x240008a4
  7075. 8003538: 08003545 .word 0x08003545
  7076. 800353c: 240008ac .word 0x240008ac
  7077. 8003540: 240008b0 .word 0x240008b0
  7078. 08003544 <PositionControlTask>:
  7079. void PositionControlTask (void* argument) {
  7080. 8003544: b5f0 push {r4, r5, r6, r7, lr}
  7081. 8003546: b097 sub sp, #92 @ 0x5c
  7082. 8003548: af06 add r7, sp, #24
  7083. 800354a: 6078 str r0, [r7, #4]
  7084. const int32_t PositionControlTaskTimeOut = 100;
  7085. 800354c: 2364 movs r3, #100 @ 0x64
  7086. 800354e: 623b str r3, [r7, #32]
  7087. PositionControlTaskInitArg* posCtrlTaskArg = (PositionControlTaskInitArg*)argument;
  7088. 8003550: 687b ldr r3, [r7, #4]
  7089. 8003552: 61fb str r3, [r7, #28]
  7090. PositionControlTaskData posCtrlData = { 0 };
  7091. 8003554: f04f 0300 mov.w r3, #0
  7092. 8003558: 60bb str r3, [r7, #8]
  7093. uint32_t motorStatus = 0;
  7094. 800355a: 2300 movs r3, #0
  7095. 800355c: 61bb str r3, [r7, #24]
  7096. osStatus_t queueSatus;
  7097. int32_t pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7098. 800355e: 233c movs r3, #60 @ 0x3c
  7099. 8003560: 63fb str r3, [r7, #60] @ 0x3c
  7100. int32_t sign = 0;
  7101. 8003562: 2300 movs r3, #0
  7102. 8003564: 63bb str r3, [r7, #56] @ 0x38
  7103. MovementPhases movementPhase = idlePhase;
  7104. 8003566: 2300 movs r3, #0
  7105. 8003568: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7106. float startPosition = 0;
  7107. 800356c: f04f 0300 mov.w r3, #0
  7108. 8003570: 633b str r3, [r7, #48] @ 0x30
  7109. float prevPosition = 0;
  7110. 8003572: f04f 0300 mov.w r3, #0
  7111. 8003576: 62fb str r3, [r7, #44] @ 0x2c
  7112. int32_t timeLeftMS = 0;
  7113. 8003578: 2300 movs r3, #0
  7114. 800357a: 62bb str r3, [r7, #40] @ 0x28
  7115. int32_t moveCmdTimeoutCounter = 0;
  7116. 800357c: 2300 movs r3, #0
  7117. 800357e: 627b str r3, [r7, #36] @ 0x24
  7118. while (pdTRUE) {
  7119. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7120. 8003580: 69fb ldr r3, [r7, #28]
  7121. 8003582: 6918 ldr r0, [r3, #16]
  7122. 8003584: 6a3b ldr r3, [r7, #32]
  7123. 8003586: f44f 727a mov.w r2, #1000 @ 0x3e8
  7124. 800358a: fb02 f303 mul.w r3, r2, r3
  7125. 800358e: 4aa1 ldr r2, [pc, #644] @ (8003814 <PositionControlTask+0x2d0>)
  7126. 8003590: fba2 2303 umull r2, r3, r2, r3
  7127. 8003594: 099b lsrs r3, r3, #6
  7128. 8003596: f107 0108 add.w r1, r7, #8
  7129. 800359a: 2200 movs r2, #0
  7130. 800359c: f011 f92a bl 80147f4 <osMessageQueueGet>
  7131. 80035a0: 6178 str r0, [r7, #20]
  7132. if (queueSatus == osOK) {
  7133. 80035a2: 697b ldr r3, [r7, #20]
  7134. 80035a4: 2b00 cmp r3, #0
  7135. 80035a6: d14a bne.n 800363e <PositionControlTask+0xfa>
  7136. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7137. 80035a8: 4b9b ldr r3, [pc, #620] @ (8003818 <PositionControlTask+0x2d4>)
  7138. 80035aa: 681b ldr r3, [r3, #0]
  7139. 80035ac: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7140. 80035b0: 4618 mov r0, r3
  7141. 80035b2: f010 ffc4 bl 801453e <osMutexAcquire>
  7142. 80035b6: 4603 mov r3, r0
  7143. 80035b8: 2b00 cmp r3, #0
  7144. 80035ba: d1e1 bne.n 8003580 <PositionControlTask+0x3c>
  7145. float posDiff = posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition;
  7146. 80035bc: ed97 7a02 vldr s14, [r7, #8]
  7147. 80035c0: 69fb ldr r3, [r7, #28]
  7148. 80035c2: 6a1b ldr r3, [r3, #32]
  7149. 80035c4: edd3 7a00 vldr s15, [r3]
  7150. 80035c8: ee77 7a67 vsub.f32 s15, s14, s15
  7151. 80035cc: edc7 7a03 vstr s15, [r7, #12]
  7152. if (posDiff != 0) {
  7153. 80035d0: edd7 7a03 vldr s15, [r7, #12]
  7154. 80035d4: eef5 7a40 vcmp.f32 s15, #0.0
  7155. 80035d8: eef1 fa10 vmrs APSR_nzcv, fpscr
  7156. 80035dc: d016 beq.n 800360c <PositionControlTask+0xc8>
  7157. sign = posDiff > 0 ? 1 : -1;
  7158. 80035de: edd7 7a03 vldr s15, [r7, #12]
  7159. 80035e2: eef5 7ac0 vcmpe.f32 s15, #0.0
  7160. 80035e6: eef1 fa10 vmrs APSR_nzcv, fpscr
  7161. 80035ea: dd01 ble.n 80035f0 <PositionControlTask+0xac>
  7162. 80035ec: 2301 movs r3, #1
  7163. 80035ee: e001 b.n 80035f4 <PositionControlTask+0xb0>
  7164. 80035f0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  7165. 80035f4: 63bb str r3, [r7, #56] @ 0x38
  7166. startPosition = *posCtrlTaskArg->currentPosition;
  7167. 80035f6: 69fb ldr r3, [r7, #28]
  7168. 80035f8: 6a1b ldr r3, [r3, #32]
  7169. 80035fa: 681b ldr r3, [r3, #0]
  7170. 80035fc: 633b str r3, [r7, #48] @ 0x30
  7171. movementPhase = startPhase;
  7172. 80035fe: 2301 movs r3, #1
  7173. 8003600: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7174. moveCmdTimeoutCounter = 0;
  7175. 8003604: 2300 movs r3, #0
  7176. 8003606: 627b str r3, [r7, #36] @ 0x24
  7177. timeLeftMS = 0;
  7178. 8003608: 2300 movs r3, #0
  7179. 800360a: 62bb str r3, [r7, #40] @ 0x28
  7180. #ifdef DBG_POSITION
  7181. printf ("Axe %c start phase\n", posCtrlTaskArg->axe);
  7182. #endif
  7183. }
  7184. osMutexRelease (sensorsInfoMutex);
  7185. 800360c: 4b82 ldr r3, [pc, #520] @ (8003818 <PositionControlTask+0x2d4>)
  7186. 800360e: 681b ldr r3, [r3, #0]
  7187. 8003610: 4618 mov r0, r3
  7188. 8003612: f010 ffdf bl 80145d4 <osMutexRelease>
  7189. if (osMutexAcquire (positionSettingMutex, osWaitForever) == osOK) {
  7190. 8003616: 4b81 ldr r3, [pc, #516] @ (800381c <PositionControlTask+0x2d8>)
  7191. 8003618: 681b ldr r3, [r3, #0]
  7192. 800361a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7193. 800361e: 4618 mov r0, r3
  7194. 8003620: f010 ff8d bl 801453e <osMutexAcquire>
  7195. 8003624: 4603 mov r3, r0
  7196. 8003626: 2b00 cmp r3, #0
  7197. 8003628: d1aa bne.n 8003580 <PositionControlTask+0x3c>
  7198. *positionXControlTaskInitArg.positionSetting = posCtrlData.positionSettingValue;
  7199. 800362a: 4b7d ldr r3, [pc, #500] @ (8003820 <PositionControlTask+0x2dc>)
  7200. 800362c: 6a5b ldr r3, [r3, #36] @ 0x24
  7201. 800362e: 68ba ldr r2, [r7, #8]
  7202. 8003630: 601a str r2, [r3, #0]
  7203. osMutexRelease (positionSettingMutex);
  7204. 8003632: 4b7a ldr r3, [pc, #488] @ (800381c <PositionControlTask+0x2d8>)
  7205. 8003634: 681b ldr r3, [r3, #0]
  7206. 8003636: 4618 mov r0, r3
  7207. 8003638: f010 ffcc bl 80145d4 <osMutexRelease>
  7208. 800363c: e7a0 b.n 8003580 <PositionControlTask+0x3c>
  7209. }
  7210. }
  7211. } else if (queueSatus == osErrorTimeout) {
  7212. 800363e: 697b ldr r3, [r7, #20]
  7213. 8003640: f113 0f02 cmn.w r3, #2
  7214. 8003644: d19c bne.n 8003580 <PositionControlTask+0x3c>
  7215. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7216. 8003646: 4b74 ldr r3, [pc, #464] @ (8003818 <PositionControlTask+0x2d4>)
  7217. 8003648: 681b ldr r3, [r3, #0]
  7218. 800364a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7219. 800364e: 4618 mov r0, r3
  7220. 8003650: f010 ff75 bl 801453e <osMutexAcquire>
  7221. 8003654: 4603 mov r3, r0
  7222. 8003656: 2b00 cmp r3, #0
  7223. 8003658: d192 bne.n 8003580 <PositionControlTask+0x3c>
  7224. if (((*posCtrlTaskArg->motorStatus != 0) && (movementPhase != idlePhase)) || (movementPhase == startPhase) ) {
  7225. 800365a: 69fb ldr r3, [r7, #28]
  7226. 800365c: 6a9b ldr r3, [r3, #40] @ 0x28
  7227. 800365e: 781b ldrb r3, [r3, #0]
  7228. 8003660: 2b00 cmp r3, #0
  7229. 8003662: d003 beq.n 800366c <PositionControlTask+0x128>
  7230. 8003664: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7231. 8003668: 2b00 cmp r3, #0
  7232. 800366a: d104 bne.n 8003676 <PositionControlTask+0x132>
  7233. 800366c: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7234. 8003670: 2b01 cmp r3, #1
  7235. 8003672: f040 81c4 bne.w 80039fe <PositionControlTask+0x4ba>
  7236. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7237. 8003676: 69fb ldr r3, [r7, #28]
  7238. 8003678: 699b ldr r3, [r3, #24]
  7239. 800367a: 781b ldrb r3, [r3, #0]
  7240. 800367c: 2b01 cmp r3, #1
  7241. 800367e: d104 bne.n 800368a <PositionControlTask+0x146>
  7242. 8003680: 69fb ldr r3, [r7, #28]
  7243. 8003682: 695b ldr r3, [r3, #20]
  7244. 8003684: 781b ldrb r3, [r3, #0]
  7245. 8003686: 2b01 cmp r3, #1
  7246. 8003688: d009 beq.n 800369e <PositionControlTask+0x15a>
  7247. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7248. 800368a: 69fb ldr r3, [r7, #28]
  7249. 800368c: 695b ldr r3, [r3, #20]
  7250. 800368e: 781b ldrb r3, [r3, #0]
  7251. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7252. 8003690: 2b01 cmp r3, #1
  7253. 8003692: d12a bne.n 80036ea <PositionControlTask+0x1a6>
  7254. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7255. 8003694: 69fb ldr r3, [r7, #28]
  7256. 8003696: 69db ldr r3, [r3, #28]
  7257. 8003698: 781b ldrb r3, [r3, #0]
  7258. 800369a: 2b01 cmp r3, #1
  7259. 800369c: d125 bne.n 80036ea <PositionControlTask+0x1a6>
  7260. movementPhase = idlePhase;
  7261. 800369e: 2300 movs r3, #0
  7262. 80036a0: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7263. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7264. 80036a4: 69fb ldr r3, [r7, #28]
  7265. 80036a6: 6818 ldr r0, [r3, #0]
  7266. 80036a8: 69fb ldr r3, [r7, #28]
  7267. 80036aa: 685c ldr r4, [r3, #4]
  7268. 80036ac: 69fb ldr r3, [r7, #28]
  7269. 80036ae: 7a1d ldrb r5, [r3, #8]
  7270. 80036b0: 69fb ldr r3, [r7, #28]
  7271. 80036b2: 7a5e ldrb r6, [r3, #9]
  7272. 80036b4: 69fb ldr r3, [r7, #28]
  7273. 80036b6: 68db ldr r3, [r3, #12]
  7274. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7275. 80036b8: 69fa ldr r2, [r7, #28]
  7276. 80036ba: 6952 ldr r2, [r2, #20]
  7277. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7278. 80036bc: 7812 ldrb r2, [r2, #0]
  7279. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7280. 80036be: 69f9 ldr r1, [r7, #28]
  7281. 80036c0: 6989 ldr r1, [r1, #24]
  7282. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7283. 80036c2: 7809 ldrb r1, [r1, #0]
  7284. 80036c4: 9104 str r1, [sp, #16]
  7285. 80036c6: 9203 str r2, [sp, #12]
  7286. 80036c8: 2200 movs r2, #0
  7287. 80036ca: 9202 str r2, [sp, #8]
  7288. 80036cc: 2200 movs r2, #0
  7289. 80036ce: 9201 str r2, [sp, #4]
  7290. 80036d0: 9300 str r3, [sp, #0]
  7291. 80036d2: 4633 mov r3, r6
  7292. 80036d4: 462a mov r2, r5
  7293. 80036d6: 4621 mov r1, r4
  7294. 80036d8: f7ff fcd2 bl 8003080 <MotorControl>
  7295. 80036dc: 4603 mov r3, r0
  7296. 80036de: 61bb str r3, [r7, #24]
  7297. *posCtrlTaskArg->motorStatus = motorStatus;
  7298. 80036e0: 69fb ldr r3, [r7, #28]
  7299. 80036e2: 6a9b ldr r3, [r3, #40] @ 0x28
  7300. 80036e4: 69ba ldr r2, [r7, #24]
  7301. 80036e6: b2d2 uxtb r2, r2
  7302. 80036e8: 701a strb r2, [r3, #0]
  7303. printf ("Axe %c limiters wrong state - idle phase\n", posCtrlTaskArg->axe);
  7304. #endif
  7305. }
  7306. timeLeftMS += PositionControlTaskTimeOut;
  7307. 80036ea: 6aba ldr r2, [r7, #40] @ 0x28
  7308. 80036ec: 6a3b ldr r3, [r7, #32]
  7309. 80036ee: 4413 add r3, r2
  7310. 80036f0: 62bb str r3, [r7, #40] @ 0x28
  7311. if (prevPosition == *posCtrlTaskArg->currentPosition) {
  7312. 80036f2: 69fb ldr r3, [r7, #28]
  7313. 80036f4: 6a1b ldr r3, [r3, #32]
  7314. 80036f6: edd3 7a00 vldr s15, [r3]
  7315. 80036fa: ed97 7a0b vldr s14, [r7, #44] @ 0x2c
  7316. 80036fe: eeb4 7a67 vcmp.f32 s14, s15
  7317. 8003702: eef1 fa10 vmrs APSR_nzcv, fpscr
  7318. 8003706: d104 bne.n 8003712 <PositionControlTask+0x1ce>
  7319. moveCmdTimeoutCounter += PositionControlTaskTimeOut;
  7320. 8003708: 6a7a ldr r2, [r7, #36] @ 0x24
  7321. 800370a: 6a3b ldr r3, [r7, #32]
  7322. 800370c: 4413 add r3, r2
  7323. 800370e: 627b str r3, [r7, #36] @ 0x24
  7324. 8003710: e001 b.n 8003716 <PositionControlTask+0x1d2>
  7325. } else {
  7326. moveCmdTimeoutCounter = 0;
  7327. 8003712: 2300 movs r3, #0
  7328. 8003714: 627b str r3, [r7, #36] @ 0x24
  7329. }
  7330. prevPosition = *posCtrlTaskArg->currentPosition;
  7331. 8003716: 69fb ldr r3, [r7, #28]
  7332. 8003718: 6a1b ldr r3, [r3, #32]
  7333. 800371a: 681b ldr r3, [r3, #0]
  7334. 800371c: 62fb str r3, [r7, #44] @ 0x2c
  7335. if (moveCmdTimeoutCounter > NO_MOVE_TIMEOUT_MS) {
  7336. 800371e: 6a7b ldr r3, [r7, #36] @ 0x24
  7337. 8003720: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7338. 8003724: dd25 ble.n 8003772 <PositionControlTask+0x22e>
  7339. movementPhase = idlePhase;
  7340. 8003726: 2300 movs r3, #0
  7341. 8003728: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7342. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7343. 800372c: 69fb ldr r3, [r7, #28]
  7344. 800372e: 6818 ldr r0, [r3, #0]
  7345. 8003730: 69fb ldr r3, [r7, #28]
  7346. 8003732: 685c ldr r4, [r3, #4]
  7347. 8003734: 69fb ldr r3, [r7, #28]
  7348. 8003736: 7a1d ldrb r5, [r3, #8]
  7349. 8003738: 69fb ldr r3, [r7, #28]
  7350. 800373a: 7a5e ldrb r6, [r3, #9]
  7351. 800373c: 69fb ldr r3, [r7, #28]
  7352. 800373e: 68db ldr r3, [r3, #12]
  7353. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7354. 8003740: 69fa ldr r2, [r7, #28]
  7355. 8003742: 6952 ldr r2, [r2, #20]
  7356. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7357. 8003744: 7812 ldrb r2, [r2, #0]
  7358. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7359. 8003746: 69f9 ldr r1, [r7, #28]
  7360. 8003748: 6989 ldr r1, [r1, #24]
  7361. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7362. 800374a: 7809 ldrb r1, [r1, #0]
  7363. 800374c: 9104 str r1, [sp, #16]
  7364. 800374e: 9203 str r2, [sp, #12]
  7365. 8003750: 2200 movs r2, #0
  7366. 8003752: 9202 str r2, [sp, #8]
  7367. 8003754: 2200 movs r2, #0
  7368. 8003756: 9201 str r2, [sp, #4]
  7369. 8003758: 9300 str r3, [sp, #0]
  7370. 800375a: 4633 mov r3, r6
  7371. 800375c: 462a mov r2, r5
  7372. 800375e: 4621 mov r1, r4
  7373. 8003760: f7ff fc8e bl 8003080 <MotorControl>
  7374. 8003764: 4603 mov r3, r0
  7375. 8003766: 61bb str r3, [r7, #24]
  7376. *posCtrlTaskArg->motorStatus = motorStatus;
  7377. 8003768: 69fb ldr r3, [r7, #28]
  7378. 800376a: 6a9b ldr r3, [r3, #40] @ 0x28
  7379. 800376c: 69ba ldr r2, [r7, #24]
  7380. 800376e: b2d2 uxtb r2, r2
  7381. 8003770: 701a strb r2, [r3, #0]
  7382. #ifdef DBG_POSITION
  7383. printf ("Axe %c no movement idle phase\n", posCtrlTaskArg->axe);
  7384. #endif
  7385. }
  7386. switch (movementPhase) {
  7387. 8003772: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7388. 8003776: 3b01 subs r3, #1
  7389. 8003778: 2b04 cmp r3, #4
  7390. 800377a: f200 8138 bhi.w 80039ee <PositionControlTask+0x4aa>
  7391. 800377e: a201 add r2, pc, #4 @ (adr r2, 8003784 <PositionControlTask+0x240>)
  7392. 8003780: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  7393. 8003784: 08003799 .word 0x08003799
  7394. 8003788: 08003825 .word 0x08003825
  7395. 800378c: 080038af .word 0x080038af
  7396. 8003790: 080038fd .word 0x080038fd
  7397. 8003794: 0800395f .word 0x0800395f
  7398. case startPhase:
  7399. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7400. 8003798: 69fb ldr r3, [r7, #28]
  7401. 800379a: 681c ldr r4, [r3, #0]
  7402. 800379c: 69fb ldr r3, [r7, #28]
  7403. 800379e: 685d ldr r5, [r3, #4]
  7404. 80037a0: 69fb ldr r3, [r7, #28]
  7405. 80037a2: 7a1e ldrb r6, [r3, #8]
  7406. 80037a4: 69fb ldr r3, [r7, #28]
  7407. 80037a6: f893 c009 ldrb.w ip, [r3, #9]
  7408. 80037aa: 69fb ldr r3, [r7, #28]
  7409. 80037ac: 68db ldr r3, [r3, #12]
  7410. 80037ae: 6bba ldr r2, [r7, #56] @ 0x38
  7411. 80037b0: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7412. 80037b2: fb01 f202 mul.w r2, r1, r2
  7413. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7414. 80037b6: 69f9 ldr r1, [r7, #28]
  7415. 80037b8: 6949 ldr r1, [r1, #20]
  7416. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7417. 80037ba: 7809 ldrb r1, [r1, #0]
  7418. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7419. 80037bc: 69f8 ldr r0, [r7, #28]
  7420. 80037be: 6980 ldr r0, [r0, #24]
  7421. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7422. 80037c0: 7800 ldrb r0, [r0, #0]
  7423. 80037c2: 9004 str r0, [sp, #16]
  7424. 80037c4: 9103 str r1, [sp, #12]
  7425. 80037c6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7426. 80037ca: 9102 str r1, [sp, #8]
  7427. 80037cc: 9201 str r2, [sp, #4]
  7428. 80037ce: 9300 str r3, [sp, #0]
  7429. 80037d0: 4663 mov r3, ip
  7430. 80037d2: 4632 mov r2, r6
  7431. 80037d4: 4629 mov r1, r5
  7432. 80037d6: 4620 mov r0, r4
  7433. 80037d8: f7ff fc52 bl 8003080 <MotorControl>
  7434. 80037dc: 4603 mov r3, r0
  7435. 80037de: 61bb str r3, [r7, #24]
  7436. *posCtrlTaskArg->motorStatus = motorStatus;
  7437. 80037e0: 69fb ldr r3, [r7, #28]
  7438. 80037e2: 6a9b ldr r3, [r3, #40] @ 0x28
  7439. 80037e4: 69ba ldr r2, [r7, #24]
  7440. 80037e6: b2d2 uxtb r2, r2
  7441. 80037e8: 701a strb r2, [r3, #0]
  7442. if (motorStatus == 1) {
  7443. 80037ea: 69bb ldr r3, [r7, #24]
  7444. 80037ec: 2b01 cmp r3, #1
  7445. 80037ee: d10c bne.n 800380a <PositionControlTask+0x2c6>
  7446. *posCtrlTaskArg->motorPeakCurrent = 0.0;
  7447. 80037f0: 69fb ldr r3, [r7, #28]
  7448. 80037f2: 6adb ldr r3, [r3, #44] @ 0x2c
  7449. 80037f4: f04f 0200 mov.w r2, #0
  7450. 80037f8: 601a str r2, [r3, #0]
  7451. #ifdef DBG_POSITION
  7452. printf ("Axe %c speed up phase\n", posCtrlTaskArg->axe);
  7453. #endif
  7454. movementPhase = speedUpPhase;
  7455. 80037fa: 2302 movs r3, #2
  7456. 80037fc: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7457. timeLeftMS = 0;
  7458. 8003800: 2300 movs r3, #0
  7459. 8003802: 62bb str r3, [r7, #40] @ 0x28
  7460. moveCmdTimeoutCounter = 0;
  7461. 8003804: 2300 movs r3, #0
  7462. 8003806: 627b str r3, [r7, #36] @ 0x24
  7463. #ifdef DBG_POSITION
  7464. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7465. #endif
  7466. }
  7467. break;
  7468. 8003808: e0f8 b.n 80039fc <PositionControlTask+0x4b8>
  7469. movementPhase = idlePhase;
  7470. 800380a: 2300 movs r3, #0
  7471. 800380c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7472. break;
  7473. 8003810: e0f4 b.n 80039fc <PositionControlTask+0x4b8>
  7474. 8003812: bf00 nop
  7475. 8003814: 10624dd3 .word 0x10624dd3
  7476. 8003818: 2400081c .word 0x2400081c
  7477. 800381c: 240008a8 .word 0x240008a8
  7478. 8003820: 240008b4 .word 0x240008b4
  7479. case speedUpPhase:
  7480. if ((abs (*posCtrlTaskArg->currentPosition - startPosition) >= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7481. 8003824: 69fb ldr r3, [r7, #28]
  7482. 8003826: 6a1b ldr r3, [r3, #32]
  7483. 8003828: ed93 7a00 vldr s14, [r3]
  7484. 800382c: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  7485. 8003830: ee77 7a67 vsub.f32 s15, s14, s15
  7486. 8003834: eefd 7ae7 vcvt.s32.f32 s15, s15
  7487. 8003838: ee17 3a90 vmov r3, s15
  7488. 800383c: 2b00 cmp r3, #0
  7489. 800383e: bfb8 it lt
  7490. 8003840: 425b neglt r3, r3
  7491. 8003842: 2b04 cmp r3, #4
  7492. 8003844: dc04 bgt.n 8003850 <PositionControlTask+0x30c>
  7493. 8003846: 6abb ldr r3, [r7, #40] @ 0x28
  7494. 8003848: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7495. 800384c: f2c0 80d1 blt.w 80039f2 <PositionControlTask+0x4ae>
  7496. pwmValue = MOTOR_HIGH_SPEED_PWM_VALUE;
  7497. 8003850: 2364 movs r3, #100 @ 0x64
  7498. 8003852: 63fb str r3, [r7, #60] @ 0x3c
  7499. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7500. 8003854: 69fb ldr r3, [r7, #28]
  7501. 8003856: 681c ldr r4, [r3, #0]
  7502. 8003858: 69fb ldr r3, [r7, #28]
  7503. 800385a: 685d ldr r5, [r3, #4]
  7504. 800385c: 69fb ldr r3, [r7, #28]
  7505. 800385e: 7a1e ldrb r6, [r3, #8]
  7506. 8003860: 69fb ldr r3, [r7, #28]
  7507. 8003862: f893 c009 ldrb.w ip, [r3, #9]
  7508. 8003866: 69fb ldr r3, [r7, #28]
  7509. 8003868: 68db ldr r3, [r3, #12]
  7510. 800386a: 6bba ldr r2, [r7, #56] @ 0x38
  7511. 800386c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7512. 800386e: fb01 f202 mul.w r2, r1, r2
  7513. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7514. 8003872: 69f9 ldr r1, [r7, #28]
  7515. 8003874: 6949 ldr r1, [r1, #20]
  7516. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7517. 8003876: 7809 ldrb r1, [r1, #0]
  7518. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7519. 8003878: 69f8 ldr r0, [r7, #28]
  7520. 800387a: 6980 ldr r0, [r0, #24]
  7521. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7522. 800387c: 7800 ldrb r0, [r0, #0]
  7523. 800387e: 9004 str r0, [sp, #16]
  7524. 8003880: 9103 str r1, [sp, #12]
  7525. 8003882: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7526. 8003886: 9102 str r1, [sp, #8]
  7527. 8003888: 9201 str r2, [sp, #4]
  7528. 800388a: 9300 str r3, [sp, #0]
  7529. 800388c: 4663 mov r3, ip
  7530. 800388e: 4632 mov r2, r6
  7531. 8003890: 4629 mov r1, r5
  7532. 8003892: 4620 mov r0, r4
  7533. 8003894: f7ff fbf4 bl 8003080 <MotorControl>
  7534. 8003898: 4603 mov r3, r0
  7535. 800389a: 61bb str r3, [r7, #24]
  7536. *posCtrlTaskArg->motorStatus = motorStatus;
  7537. 800389c: 69fb ldr r3, [r7, #28]
  7538. 800389e: 6a9b ldr r3, [r3, #40] @ 0x28
  7539. 80038a0: 69ba ldr r2, [r7, #24]
  7540. 80038a2: b2d2 uxtb r2, r2
  7541. 80038a4: 701a strb r2, [r3, #0]
  7542. movementPhase = movePhase;
  7543. 80038a6: 2303 movs r3, #3
  7544. 80038a8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7545. #ifdef DBG_POSITION
  7546. printf ("Axe %c move phase\n", posCtrlTaskArg->axe);
  7547. #endif
  7548. }
  7549. break;
  7550. 80038ac: e0a1 b.n 80039f2 <PositionControlTask+0x4ae>
  7551. case movePhase:
  7552. if (abs (*posCtrlTaskArg->currentPosition - *posCtrlTaskArg->positionSetting) <= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) {
  7553. 80038ae: 69fb ldr r3, [r7, #28]
  7554. 80038b0: 6a1b ldr r3, [r3, #32]
  7555. 80038b2: ed93 7a00 vldr s14, [r3]
  7556. 80038b6: 69fb ldr r3, [r7, #28]
  7557. 80038b8: 6a5b ldr r3, [r3, #36] @ 0x24
  7558. 80038ba: edd3 7a00 vldr s15, [r3]
  7559. 80038be: ee77 7a67 vsub.f32 s15, s14, s15
  7560. 80038c2: eefd 7ae7 vcvt.s32.f32 s15, s15
  7561. 80038c6: ee17 3a90 vmov r3, s15
  7562. 80038ca: f113 0f05 cmn.w r3, #5
  7563. 80038ce: f2c0 8092 blt.w 80039f6 <PositionControlTask+0x4b2>
  7564. 80038d2: 69fb ldr r3, [r7, #28]
  7565. 80038d4: 6a1b ldr r3, [r3, #32]
  7566. 80038d6: ed93 7a00 vldr s14, [r3]
  7567. 80038da: 69fb ldr r3, [r7, #28]
  7568. 80038dc: 6a5b ldr r3, [r3, #36] @ 0x24
  7569. 80038de: edd3 7a00 vldr s15, [r3]
  7570. 80038e2: ee77 7a67 vsub.f32 s15, s14, s15
  7571. 80038e6: eefd 7ae7 vcvt.s32.f32 s15, s15
  7572. 80038ea: ee17 3a90 vmov r3, s15
  7573. 80038ee: 2b05 cmp r3, #5
  7574. 80038f0: f300 8081 bgt.w 80039f6 <PositionControlTask+0x4b2>
  7575. movementPhase = slowDownPhase;
  7576. 80038f4: 2304 movs r3, #4
  7577. 80038f6: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7578. #ifdef DBG_POSITION
  7579. printf ("Axe %c slow down phase\n", posCtrlTaskArg->axe);
  7580. #endif
  7581. }
  7582. break;
  7583. 80038fa: e07c b.n 80039f6 <PositionControlTask+0x4b2>
  7584. case slowDownPhase:
  7585. pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7586. 80038fc: 233c movs r3, #60 @ 0x3c
  7587. 80038fe: 63fb str r3, [r7, #60] @ 0x3c
  7588. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7589. 8003900: 69fb ldr r3, [r7, #28]
  7590. 8003902: 681c ldr r4, [r3, #0]
  7591. 8003904: 69fb ldr r3, [r7, #28]
  7592. 8003906: 685d ldr r5, [r3, #4]
  7593. 8003908: 69fb ldr r3, [r7, #28]
  7594. 800390a: 7a1e ldrb r6, [r3, #8]
  7595. 800390c: 69fb ldr r3, [r7, #28]
  7596. 800390e: f893 c009 ldrb.w ip, [r3, #9]
  7597. 8003912: 69fb ldr r3, [r7, #28]
  7598. 8003914: 68db ldr r3, [r3, #12]
  7599. 8003916: 6bba ldr r2, [r7, #56] @ 0x38
  7600. 8003918: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7601. 800391a: fb01 f202 mul.w r2, r1, r2
  7602. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7603. 800391e: 69f9 ldr r1, [r7, #28]
  7604. 8003920: 6949 ldr r1, [r1, #20]
  7605. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7606. 8003922: 7809 ldrb r1, [r1, #0]
  7607. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7608. 8003924: 69f8 ldr r0, [r7, #28]
  7609. 8003926: 6980 ldr r0, [r0, #24]
  7610. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7611. 8003928: 7800 ldrb r0, [r0, #0]
  7612. 800392a: 9004 str r0, [sp, #16]
  7613. 800392c: 9103 str r1, [sp, #12]
  7614. 800392e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7615. 8003932: 9102 str r1, [sp, #8]
  7616. 8003934: 9201 str r2, [sp, #4]
  7617. 8003936: 9300 str r3, [sp, #0]
  7618. 8003938: 4663 mov r3, ip
  7619. 800393a: 4632 mov r2, r6
  7620. 800393c: 4629 mov r1, r5
  7621. 800393e: 4620 mov r0, r4
  7622. 8003940: f7ff fb9e bl 8003080 <MotorControl>
  7623. 8003944: 4603 mov r3, r0
  7624. 8003946: 61bb str r3, [r7, #24]
  7625. *posCtrlTaskArg->motorStatus = motorStatus;
  7626. 8003948: 69fb ldr r3, [r7, #28]
  7627. 800394a: 6a9b ldr r3, [r3, #40] @ 0x28
  7628. 800394c: 69ba ldr r2, [r7, #24]
  7629. 800394e: b2d2 uxtb r2, r2
  7630. 8003950: 701a strb r2, [r3, #0]
  7631. movementPhase = stopPhase;
  7632. 8003952: 2305 movs r3, #5
  7633. 8003954: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7634. timeLeftMS = 0;
  7635. 8003958: 2300 movs r3, #0
  7636. 800395a: 62bb str r3, [r7, #40] @ 0x28
  7637. #ifdef DBG_POSITION
  7638. printf ("Axe %c stop phase\n", posCtrlTaskArg->axe);
  7639. #endif
  7640. break;
  7641. 800395c: e04e b.n 80039fc <PositionControlTask+0x4b8>
  7642. case stopPhase:
  7643. float posDiff = sign > 0 ? posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition : *posCtrlTaskArg->currentPosition - posCtrlData.positionSettingValue;
  7644. 800395e: 6bbb ldr r3, [r7, #56] @ 0x38
  7645. 8003960: 2b00 cmp r3, #0
  7646. 8003962: dd08 ble.n 8003976 <PositionControlTask+0x432>
  7647. 8003964: ed97 7a02 vldr s14, [r7, #8]
  7648. 8003968: 69fb ldr r3, [r7, #28]
  7649. 800396a: 6a1b ldr r3, [r3, #32]
  7650. 800396c: edd3 7a00 vldr s15, [r3]
  7651. 8003970: ee77 7a67 vsub.f32 s15, s14, s15
  7652. 8003974: e007 b.n 8003986 <PositionControlTask+0x442>
  7653. 8003976: 69fb ldr r3, [r7, #28]
  7654. 8003978: 6a1b ldr r3, [r3, #32]
  7655. 800397a: ed93 7a00 vldr s14, [r3]
  7656. 800397e: edd7 7a02 vldr s15, [r7, #8]
  7657. 8003982: ee77 7a67 vsub.f32 s15, s14, s15
  7658. 8003986: edc7 7a04 vstr s15, [r7, #16]
  7659. if ((posDiff <= 0) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7660. 800398a: edd7 7a04 vldr s15, [r7, #16]
  7661. 800398e: eef5 7ac0 vcmpe.f32 s15, #0.0
  7662. 8003992: eef1 fa10 vmrs APSR_nzcv, fpscr
  7663. 8003996: d903 bls.n 80039a0 <PositionControlTask+0x45c>
  7664. 8003998: 6abb ldr r3, [r7, #40] @ 0x28
  7665. 800399a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7666. 800399e: db2c blt.n 80039fa <PositionControlTask+0x4b6>
  7667. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7668. 80039a0: 69fb ldr r3, [r7, #28]
  7669. 80039a2: 6818 ldr r0, [r3, #0]
  7670. 80039a4: 69fb ldr r3, [r7, #28]
  7671. 80039a6: 685c ldr r4, [r3, #4]
  7672. 80039a8: 69fb ldr r3, [r7, #28]
  7673. 80039aa: 7a1d ldrb r5, [r3, #8]
  7674. 80039ac: 69fb ldr r3, [r7, #28]
  7675. 80039ae: 7a5e ldrb r6, [r3, #9]
  7676. 80039b0: 69fb ldr r3, [r7, #28]
  7677. 80039b2: 68db ldr r3, [r3, #12]
  7678. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7679. 80039b4: 69fa ldr r2, [r7, #28]
  7680. 80039b6: 6952 ldr r2, [r2, #20]
  7681. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7682. 80039b8: 7812 ldrb r2, [r2, #0]
  7683. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7684. 80039ba: 69f9 ldr r1, [r7, #28]
  7685. 80039bc: 6989 ldr r1, [r1, #24]
  7686. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7687. 80039be: 7809 ldrb r1, [r1, #0]
  7688. 80039c0: 9104 str r1, [sp, #16]
  7689. 80039c2: 9203 str r2, [sp, #12]
  7690. 80039c4: 2200 movs r2, #0
  7691. 80039c6: 9202 str r2, [sp, #8]
  7692. 80039c8: 2200 movs r2, #0
  7693. 80039ca: 9201 str r2, [sp, #4]
  7694. 80039cc: 9300 str r3, [sp, #0]
  7695. 80039ce: 4633 mov r3, r6
  7696. 80039d0: 462a mov r2, r5
  7697. 80039d2: 4621 mov r1, r4
  7698. 80039d4: f7ff fb54 bl 8003080 <MotorControl>
  7699. 80039d8: 4603 mov r3, r0
  7700. 80039da: 61bb str r3, [r7, #24]
  7701. *posCtrlTaskArg->motorStatus = motorStatus;
  7702. 80039dc: 69fb ldr r3, [r7, #28]
  7703. 80039de: 6a9b ldr r3, [r3, #40] @ 0x28
  7704. 80039e0: 69ba ldr r2, [r7, #24]
  7705. 80039e2: b2d2 uxtb r2, r2
  7706. 80039e4: 701a strb r2, [r3, #0]
  7707. movementPhase = idlePhase;
  7708. 80039e6: 2300 movs r3, #0
  7709. 80039e8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7710. #ifdef DBG_POSITION
  7711. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7712. #endif
  7713. }
  7714. break;
  7715. 80039ec: e005 b.n 80039fa <PositionControlTask+0x4b6>
  7716. default: break;
  7717. 80039ee: bf00 nop
  7718. 80039f0: e011 b.n 8003a16 <PositionControlTask+0x4d2>
  7719. break;
  7720. 80039f2: bf00 nop
  7721. 80039f4: e00f b.n 8003a16 <PositionControlTask+0x4d2>
  7722. break;
  7723. 80039f6: bf00 nop
  7724. 80039f8: e00d b.n 8003a16 <PositionControlTask+0x4d2>
  7725. break;
  7726. 80039fa: bf00 nop
  7727. switch (movementPhase) {
  7728. 80039fc: e00b b.n 8003a16 <PositionControlTask+0x4d2>
  7729. }
  7730. } else {
  7731. if ((*posCtrlTaskArg->motorStatus == 0) && (movementPhase != idlePhase)) {
  7732. 80039fe: 69fb ldr r3, [r7, #28]
  7733. 8003a00: 6a9b ldr r3, [r3, #40] @ 0x28
  7734. 8003a02: 781b ldrb r3, [r3, #0]
  7735. 8003a04: 2b00 cmp r3, #0
  7736. 8003a06: d106 bne.n 8003a16 <PositionControlTask+0x4d2>
  7737. 8003a08: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7738. 8003a0c: 2b00 cmp r3, #0
  7739. 8003a0e: d002 beq.n 8003a16 <PositionControlTask+0x4d2>
  7740. movementPhase = idlePhase;
  7741. 8003a10: 2300 movs r3, #0
  7742. 8003a12: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7743. #ifdef DBG_POSITION
  7744. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7745. #endif
  7746. }
  7747. }
  7748. osMutexRelease (sensorsInfoMutex);
  7749. 8003a16: 4b03 ldr r3, [pc, #12] @ (8003a24 <PositionControlTask+0x4e0>)
  7750. 8003a18: 681b ldr r3, [r3, #0]
  7751. 8003a1a: 4618 mov r0, r3
  7752. 8003a1c: f010 fdda bl 80145d4 <osMutexRelease>
  7753. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7754. 8003a20: e5ae b.n 8003580 <PositionControlTask+0x3c>
  7755. 8003a22: bf00 nop
  7756. 8003a24: 2400081c .word 0x2400081c
  7757. 08003a28 <WriteDataToBuffer>:
  7758. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7759. }
  7760. *buffPos = newBuffPos;
  7761. }
  7762. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  7763. 8003a28: b480 push {r7}
  7764. 8003a2a: b089 sub sp, #36 @ 0x24
  7765. 8003a2c: af00 add r7, sp, #0
  7766. 8003a2e: 60f8 str r0, [r7, #12]
  7767. 8003a30: 60b9 str r1, [r7, #8]
  7768. 8003a32: 607a str r2, [r7, #4]
  7769. 8003a34: 70fb strb r3, [r7, #3]
  7770. uint32_t* uDataPtr = data;
  7771. 8003a36: 687b ldr r3, [r7, #4]
  7772. 8003a38: 61bb str r3, [r7, #24]
  7773. uint32_t uData = *uDataPtr;
  7774. 8003a3a: 69bb ldr r3, [r7, #24]
  7775. 8003a3c: 681b ldr r3, [r3, #0]
  7776. 8003a3e: 617b str r3, [r7, #20]
  7777. uint8_t i = 0;
  7778. 8003a40: 2300 movs r3, #0
  7779. 8003a42: 77fb strb r3, [r7, #31]
  7780. uint8_t newBuffPos = *buffPos;
  7781. 8003a44: 68bb ldr r3, [r7, #8]
  7782. 8003a46: 881b ldrh r3, [r3, #0]
  7783. 8003a48: 77bb strb r3, [r7, #30]
  7784. for (i = 0; i < dataSize; i++) {
  7785. 8003a4a: 2300 movs r3, #0
  7786. 8003a4c: 77fb strb r3, [r7, #31]
  7787. 8003a4e: e00e b.n 8003a6e <WriteDataToBuffer+0x46>
  7788. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7789. 8003a50: 7ffb ldrb r3, [r7, #31]
  7790. 8003a52: 00db lsls r3, r3, #3
  7791. 8003a54: 697a ldr r2, [r7, #20]
  7792. 8003a56: 40da lsrs r2, r3
  7793. 8003a58: 7fbb ldrb r3, [r7, #30]
  7794. 8003a5a: 1c59 adds r1, r3, #1
  7795. 8003a5c: 77b9 strb r1, [r7, #30]
  7796. 8003a5e: 4619 mov r1, r3
  7797. 8003a60: 68fb ldr r3, [r7, #12]
  7798. 8003a62: 440b add r3, r1
  7799. 8003a64: b2d2 uxtb r2, r2
  7800. 8003a66: 701a strb r2, [r3, #0]
  7801. for (i = 0; i < dataSize; i++) {
  7802. 8003a68: 7ffb ldrb r3, [r7, #31]
  7803. 8003a6a: 3301 adds r3, #1
  7804. 8003a6c: 77fb strb r3, [r7, #31]
  7805. 8003a6e: 7ffa ldrb r2, [r7, #31]
  7806. 8003a70: 78fb ldrb r3, [r7, #3]
  7807. 8003a72: 429a cmp r2, r3
  7808. 8003a74: d3ec bcc.n 8003a50 <WriteDataToBuffer+0x28>
  7809. }
  7810. *buffPos = newBuffPos;
  7811. 8003a76: 7fbb ldrb r3, [r7, #30]
  7812. 8003a78: b29a uxth r2, r3
  7813. 8003a7a: 68bb ldr r3, [r7, #8]
  7814. 8003a7c: 801a strh r2, [r3, #0]
  7815. }
  7816. 8003a7e: bf00 nop
  7817. 8003a80: 3724 adds r7, #36 @ 0x24
  7818. 8003a82: 46bd mov sp, r7
  7819. 8003a84: f85d 7b04 ldr.w r7, [sp], #4
  7820. 8003a88: 4770 bx lr
  7821. 08003a8a <ReadFloatFromBuffer>:
  7822. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7823. {
  7824. 8003a8a: b480 push {r7}
  7825. 8003a8c: b087 sub sp, #28
  7826. 8003a8e: af00 add r7, sp, #0
  7827. 8003a90: 60f8 str r0, [r7, #12]
  7828. 8003a92: 60b9 str r1, [r7, #8]
  7829. 8003a94: 607a str r2, [r7, #4]
  7830. uint32_t* word = (uint32_t *)data;
  7831. 8003a96: 687b ldr r3, [r7, #4]
  7832. 8003a98: 617b str r3, [r7, #20]
  7833. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7834. 8003a9a: 68bb ldr r3, [r7, #8]
  7835. 8003a9c: 881b ldrh r3, [r3, #0]
  7836. 8003a9e: 3303 adds r3, #3
  7837. 8003aa0: 68fa ldr r2, [r7, #12]
  7838. 8003aa2: 4413 add r3, r2
  7839. 8003aa4: 781b ldrb r3, [r3, #0]
  7840. 8003aa6: 061a lsls r2, r3, #24
  7841. 8003aa8: 68bb ldr r3, [r7, #8]
  7842. 8003aaa: 881b ldrh r3, [r3, #0]
  7843. 8003aac: 3302 adds r3, #2
  7844. 8003aae: 68f9 ldr r1, [r7, #12]
  7845. 8003ab0: 440b add r3, r1
  7846. 8003ab2: 781b ldrb r3, [r3, #0]
  7847. 8003ab4: 041b lsls r3, r3, #16
  7848. 8003ab6: 431a orrs r2, r3
  7849. 8003ab8: 68bb ldr r3, [r7, #8]
  7850. 8003aba: 881b ldrh r3, [r3, #0]
  7851. 8003abc: 3301 adds r3, #1
  7852. 8003abe: 68f9 ldr r1, [r7, #12]
  7853. 8003ac0: 440b add r3, r1
  7854. 8003ac2: 781b ldrb r3, [r3, #0]
  7855. 8003ac4: 021b lsls r3, r3, #8
  7856. 8003ac6: 4313 orrs r3, r2
  7857. 8003ac8: 68ba ldr r2, [r7, #8]
  7858. 8003aca: 8812 ldrh r2, [r2, #0]
  7859. 8003acc: 4611 mov r1, r2
  7860. 8003ace: 68fa ldr r2, [r7, #12]
  7861. 8003ad0: 440a add r2, r1
  7862. 8003ad2: 7812 ldrb r2, [r2, #0]
  7863. 8003ad4: 4313 orrs r3, r2
  7864. 8003ad6: 461a mov r2, r3
  7865. 8003ad8: 697b ldr r3, [r7, #20]
  7866. 8003ada: 601a str r2, [r3, #0]
  7867. *buffPos += sizeof(float);
  7868. 8003adc: 68bb ldr r3, [r7, #8]
  7869. 8003ade: 881b ldrh r3, [r3, #0]
  7870. 8003ae0: 3304 adds r3, #4
  7871. 8003ae2: b29a uxth r2, r3
  7872. 8003ae4: 68bb ldr r3, [r7, #8]
  7873. 8003ae6: 801a strh r2, [r3, #0]
  7874. }
  7875. 8003ae8: bf00 nop
  7876. 8003aea: 371c adds r7, #28
  7877. 8003aec: 46bd mov sp, r7
  7878. 8003aee: f85d 7b04 ldr.w r7, [sp], #4
  7879. 8003af2: 4770 bx lr
  7880. 08003af4 <ReadWordFromBufer>:
  7881. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7882. *buffPos += sizeof(uint16_t);
  7883. }
  7884. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  7885. {
  7886. 8003af4: b480 push {r7}
  7887. 8003af6: b085 sub sp, #20
  7888. 8003af8: af00 add r7, sp, #0
  7889. 8003afa: 60f8 str r0, [r7, #12]
  7890. 8003afc: 60b9 str r1, [r7, #8]
  7891. 8003afe: 607a str r2, [r7, #4]
  7892. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7893. 8003b00: 68bb ldr r3, [r7, #8]
  7894. 8003b02: 881b ldrh r3, [r3, #0]
  7895. 8003b04: 3303 adds r3, #3
  7896. 8003b06: 68fa ldr r2, [r7, #12]
  7897. 8003b08: 4413 add r3, r2
  7898. 8003b0a: 781b ldrb r3, [r3, #0]
  7899. 8003b0c: 061a lsls r2, r3, #24
  7900. 8003b0e: 68bb ldr r3, [r7, #8]
  7901. 8003b10: 881b ldrh r3, [r3, #0]
  7902. 8003b12: 3302 adds r3, #2
  7903. 8003b14: 68f9 ldr r1, [r7, #12]
  7904. 8003b16: 440b add r3, r1
  7905. 8003b18: 781b ldrb r3, [r3, #0]
  7906. 8003b1a: 041b lsls r3, r3, #16
  7907. 8003b1c: 431a orrs r2, r3
  7908. 8003b1e: 68bb ldr r3, [r7, #8]
  7909. 8003b20: 881b ldrh r3, [r3, #0]
  7910. 8003b22: 3301 adds r3, #1
  7911. 8003b24: 68f9 ldr r1, [r7, #12]
  7912. 8003b26: 440b add r3, r1
  7913. 8003b28: 781b ldrb r3, [r3, #0]
  7914. 8003b2a: 021b lsls r3, r3, #8
  7915. 8003b2c: 4313 orrs r3, r2
  7916. 8003b2e: 68ba ldr r2, [r7, #8]
  7917. 8003b30: 8812 ldrh r2, [r2, #0]
  7918. 8003b32: 4611 mov r1, r2
  7919. 8003b34: 68fa ldr r2, [r7, #12]
  7920. 8003b36: 440a add r2, r1
  7921. 8003b38: 7812 ldrb r2, [r2, #0]
  7922. 8003b3a: 4313 orrs r3, r2
  7923. 8003b3c: 461a mov r2, r3
  7924. 8003b3e: 687b ldr r3, [r7, #4]
  7925. 8003b40: 601a str r2, [r3, #0]
  7926. *buffPos += sizeof(uint32_t);
  7927. 8003b42: 68bb ldr r3, [r7, #8]
  7928. 8003b44: 881b ldrh r3, [r3, #0]
  7929. 8003b46: 3304 adds r3, #4
  7930. 8003b48: b29a uxth r2, r3
  7931. 8003b4a: 68bb ldr r3, [r7, #8]
  7932. 8003b4c: 801a strh r2, [r3, #0]
  7933. }
  7934. 8003b4e: bf00 nop
  7935. 8003b50: 3714 adds r7, #20
  7936. 8003b52: 46bd mov sp, r7
  7937. 8003b54: f85d 7b04 ldr.w r7, [sp], #4
  7938. 8003b58: 4770 bx lr
  7939. ...
  7940. 08003b5c <PrepareRespFrame>:
  7941. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7942. return txBufferPos;
  7943. }
  7944. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7945. 8003b5c: b580 push {r7, lr}
  7946. 8003b5e: b084 sub sp, #16
  7947. 8003b60: af00 add r7, sp, #0
  7948. 8003b62: 6078 str r0, [r7, #4]
  7949. 8003b64: 4608 mov r0, r1
  7950. 8003b66: 4611 mov r1, r2
  7951. 8003b68: 461a mov r2, r3
  7952. 8003b6a: 4603 mov r3, r0
  7953. 8003b6c: 807b strh r3, [r7, #2]
  7954. 8003b6e: 460b mov r3, r1
  7955. 8003b70: 707b strb r3, [r7, #1]
  7956. 8003b72: 4613 mov r3, r2
  7957. 8003b74: 703b strb r3, [r7, #0]
  7958. uint16_t crc = 0;
  7959. 8003b76: 2300 movs r3, #0
  7960. 8003b78: 81bb strh r3, [r7, #12]
  7961. uint16_t txBufferPos = 0;
  7962. 8003b7a: 2300 movs r3, #0
  7963. 8003b7c: 81fb strh r3, [r7, #14]
  7964. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7965. 8003b7e: 787b ldrb r3, [r7, #1]
  7966. 8003b80: b21a sxth r2, r3
  7967. 8003b82: 4b43 ldr r3, [pc, #268] @ (8003c90 <PrepareRespFrame+0x134>)
  7968. 8003b84: 4313 orrs r3, r2
  7969. 8003b86: b21b sxth r3, r3
  7970. 8003b88: 817b strh r3, [r7, #10]
  7971. memset (txBuffer, 0x00, dataLength);
  7972. 8003b8a: 8bbb ldrh r3, [r7, #28]
  7973. 8003b8c: 461a mov r2, r3
  7974. 8003b8e: 2100 movs r1, #0
  7975. 8003b90: 6878 ldr r0, [r7, #4]
  7976. 8003b92: f014 fc01 bl 8018398 <memset>
  7977. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7978. 8003b96: 89fb ldrh r3, [r7, #14]
  7979. 8003b98: 1c5a adds r2, r3, #1
  7980. 8003b9a: 81fa strh r2, [r7, #14]
  7981. 8003b9c: 461a mov r2, r3
  7982. 8003b9e: 687b ldr r3, [r7, #4]
  7983. 8003ba0: 4413 add r3, r2
  7984. 8003ba2: 22aa movs r2, #170 @ 0xaa
  7985. 8003ba4: 701a strb r2, [r3, #0]
  7986. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7987. 8003ba6: 89fb ldrh r3, [r7, #14]
  7988. 8003ba8: 1c5a adds r2, r3, #1
  7989. 8003baa: 81fa strh r2, [r7, #14]
  7990. 8003bac: 461a mov r2, r3
  7991. 8003bae: 687b ldr r3, [r7, #4]
  7992. 8003bb0: 4413 add r3, r2
  7993. 8003bb2: 887a ldrh r2, [r7, #2]
  7994. 8003bb4: b2d2 uxtb r2, r2
  7995. 8003bb6: 701a strb r2, [r3, #0]
  7996. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7997. 8003bb8: 887b ldrh r3, [r7, #2]
  7998. 8003bba: 0a1b lsrs r3, r3, #8
  7999. 8003bbc: b29a uxth r2, r3
  8000. 8003bbe: 89fb ldrh r3, [r7, #14]
  8001. 8003bc0: 1c59 adds r1, r3, #1
  8002. 8003bc2: 81f9 strh r1, [r7, #14]
  8003. 8003bc4: 4619 mov r1, r3
  8004. 8003bc6: 687b ldr r3, [r7, #4]
  8005. 8003bc8: 440b add r3, r1
  8006. 8003bca: b2d2 uxtb r2, r2
  8007. 8003bcc: 701a strb r2, [r3, #0]
  8008. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  8009. 8003bce: 89fb ldrh r3, [r7, #14]
  8010. 8003bd0: 1c5a adds r2, r3, #1
  8011. 8003bd2: 81fa strh r2, [r7, #14]
  8012. 8003bd4: 461a mov r2, r3
  8013. 8003bd6: 687b ldr r3, [r7, #4]
  8014. 8003bd8: 4413 add r3, r2
  8015. 8003bda: 897a ldrh r2, [r7, #10]
  8016. 8003bdc: b2d2 uxtb r2, r2
  8017. 8003bde: 701a strb r2, [r3, #0]
  8018. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  8019. 8003be0: 897b ldrh r3, [r7, #10]
  8020. 8003be2: 0a1b lsrs r3, r3, #8
  8021. 8003be4: b29a uxth r2, r3
  8022. 8003be6: 89fb ldrh r3, [r7, #14]
  8023. 8003be8: 1c59 adds r1, r3, #1
  8024. 8003bea: 81f9 strh r1, [r7, #14]
  8025. 8003bec: 4619 mov r1, r3
  8026. 8003bee: 687b ldr r3, [r7, #4]
  8027. 8003bf0: 440b add r3, r1
  8028. 8003bf2: b2d2 uxtb r2, r2
  8029. 8003bf4: 701a strb r2, [r3, #0]
  8030. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  8031. 8003bf6: 89fb ldrh r3, [r7, #14]
  8032. 8003bf8: 1c5a adds r2, r3, #1
  8033. 8003bfa: 81fa strh r2, [r7, #14]
  8034. 8003bfc: 461a mov r2, r3
  8035. 8003bfe: 687b ldr r3, [r7, #4]
  8036. 8003c00: 4413 add r3, r2
  8037. 8003c02: 8bba ldrh r2, [r7, #28]
  8038. 8003c04: b2d2 uxtb r2, r2
  8039. 8003c06: 701a strb r2, [r3, #0]
  8040. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  8041. 8003c08: 8bbb ldrh r3, [r7, #28]
  8042. 8003c0a: 0a1b lsrs r3, r3, #8
  8043. 8003c0c: b29a uxth r2, r3
  8044. 8003c0e: 89fb ldrh r3, [r7, #14]
  8045. 8003c10: 1c59 adds r1, r3, #1
  8046. 8003c12: 81f9 strh r1, [r7, #14]
  8047. 8003c14: 4619 mov r1, r3
  8048. 8003c16: 687b ldr r3, [r7, #4]
  8049. 8003c18: 440b add r3, r1
  8050. 8003c1a: b2d2 uxtb r2, r2
  8051. 8003c1c: 701a strb r2, [r3, #0]
  8052. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  8053. 8003c1e: 89fb ldrh r3, [r7, #14]
  8054. 8003c20: 1c5a adds r2, r3, #1
  8055. 8003c22: 81fa strh r2, [r7, #14]
  8056. 8003c24: 461a mov r2, r3
  8057. 8003c26: 687b ldr r3, [r7, #4]
  8058. 8003c28: 4413 add r3, r2
  8059. 8003c2a: 783a ldrb r2, [r7, #0]
  8060. 8003c2c: 701a strb r2, [r3, #0]
  8061. if (dataLength > 0) {
  8062. 8003c2e: 8bbb ldrh r3, [r7, #28]
  8063. 8003c30: 2b00 cmp r3, #0
  8064. 8003c32: d00b beq.n 8003c4c <PrepareRespFrame+0xf0>
  8065. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  8066. 8003c34: 89fb ldrh r3, [r7, #14]
  8067. 8003c36: 687a ldr r2, [r7, #4]
  8068. 8003c38: 4413 add r3, r2
  8069. 8003c3a: 8bba ldrh r2, [r7, #28]
  8070. 8003c3c: 69b9 ldr r1, [r7, #24]
  8071. 8003c3e: 4618 mov r0, r3
  8072. 8003c40: f014 fc34 bl 80184ac <memcpy>
  8073. txBufferPos += dataLength;
  8074. 8003c44: 89fa ldrh r2, [r7, #14]
  8075. 8003c46: 8bbb ldrh r3, [r7, #28]
  8076. 8003c48: 4413 add r3, r2
  8077. 8003c4a: 81fb strh r3, [r7, #14]
  8078. }
  8079. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  8080. 8003c4c: 89fb ldrh r3, [r7, #14]
  8081. 8003c4e: 461a mov r2, r3
  8082. 8003c50: 6879 ldr r1, [r7, #4]
  8083. 8003c52: 4810 ldr r0, [pc, #64] @ (8003c94 <PrepareRespFrame+0x138>)
  8084. 8003c54: f004 f8d0 bl 8007df8 <HAL_CRC_Calculate>
  8085. 8003c58: 4603 mov r3, r0
  8086. 8003c5a: 81bb strh r3, [r7, #12]
  8087. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  8088. 8003c5c: 89fb ldrh r3, [r7, #14]
  8089. 8003c5e: 1c5a adds r2, r3, #1
  8090. 8003c60: 81fa strh r2, [r7, #14]
  8091. 8003c62: 461a mov r2, r3
  8092. 8003c64: 687b ldr r3, [r7, #4]
  8093. 8003c66: 4413 add r3, r2
  8094. 8003c68: 89ba ldrh r2, [r7, #12]
  8095. 8003c6a: b2d2 uxtb r2, r2
  8096. 8003c6c: 701a strb r2, [r3, #0]
  8097. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  8098. 8003c6e: 89bb ldrh r3, [r7, #12]
  8099. 8003c70: 0a1b lsrs r3, r3, #8
  8100. 8003c72: b29a uxth r2, r3
  8101. 8003c74: 89fb ldrh r3, [r7, #14]
  8102. 8003c76: 1c59 adds r1, r3, #1
  8103. 8003c78: 81f9 strh r1, [r7, #14]
  8104. 8003c7a: 4619 mov r1, r3
  8105. 8003c7c: 687b ldr r3, [r7, #4]
  8106. 8003c7e: 440b add r3, r1
  8107. 8003c80: b2d2 uxtb r2, r2
  8108. 8003c82: 701a strb r2, [r3, #0]
  8109. return txBufferPos;
  8110. 8003c84: 89fb ldrh r3, [r7, #14]
  8111. }
  8112. 8003c86: 4618 mov r0, r3
  8113. 8003c88: 3710 adds r7, #16
  8114. 8003c8a: 46bd mov sp, r7
  8115. 8003c8c: bd80 pop {r7, pc}
  8116. 8003c8e: bf00 nop
  8117. 8003c90: ffff8000 .word 0xffff8000
  8118. 8003c94: 240003e0 .word 0x240003e0
  8119. 08003c98 <HAL_MspInit>:
  8120. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  8121. /**
  8122. * Initializes the Global MSP.
  8123. */
  8124. void HAL_MspInit(void)
  8125. {
  8126. 8003c98: b580 push {r7, lr}
  8127. 8003c9a: b086 sub sp, #24
  8128. 8003c9c: af00 add r7, sp, #0
  8129. /* USER CODE BEGIN MspInit 0 */
  8130. /* USER CODE END MspInit 0 */
  8131. PWREx_AVDTypeDef sConfigAVD = {0};
  8132. 8003c9e: f107 0310 add.w r3, r7, #16
  8133. 8003ca2: 2200 movs r2, #0
  8134. 8003ca4: 601a str r2, [r3, #0]
  8135. 8003ca6: 605a str r2, [r3, #4]
  8136. PWR_PVDTypeDef sConfigPVD = {0};
  8137. 8003ca8: f107 0308 add.w r3, r7, #8
  8138. 8003cac: 2200 movs r2, #0
  8139. 8003cae: 601a str r2, [r3, #0]
  8140. 8003cb0: 605a str r2, [r3, #4]
  8141. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8142. 8003cb2: 4b26 ldr r3, [pc, #152] @ (8003d4c <HAL_MspInit+0xb4>)
  8143. 8003cb4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8144. 8003cb8: 4a24 ldr r2, [pc, #144] @ (8003d4c <HAL_MspInit+0xb4>)
  8145. 8003cba: f043 0302 orr.w r3, r3, #2
  8146. 8003cbe: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8147. 8003cc2: 4b22 ldr r3, [pc, #136] @ (8003d4c <HAL_MspInit+0xb4>)
  8148. 8003cc4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8149. 8003cc8: f003 0302 and.w r3, r3, #2
  8150. 8003ccc: 607b str r3, [r7, #4]
  8151. 8003cce: 687b ldr r3, [r7, #4]
  8152. /* System interrupt init*/
  8153. /* PendSV_IRQn interrupt configuration */
  8154. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  8155. 8003cd0: 2200 movs r2, #0
  8156. 8003cd2: 210f movs r1, #15
  8157. 8003cd4: f06f 0001 mvn.w r0, #1
  8158. 8003cd8: f003 ff8a bl 8007bf0 <HAL_NVIC_SetPriority>
  8159. /* Peripheral interrupt init */
  8160. /* RCC_IRQn interrupt configuration */
  8161. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  8162. 8003cdc: 2200 movs r2, #0
  8163. 8003cde: 2105 movs r1, #5
  8164. 8003ce0: 2005 movs r0, #5
  8165. 8003ce2: f003 ff85 bl 8007bf0 <HAL_NVIC_SetPriority>
  8166. HAL_NVIC_EnableIRQ(RCC_IRQn);
  8167. 8003ce6: 2005 movs r0, #5
  8168. 8003ce8: f003 ff9c bl 8007c24 <HAL_NVIC_EnableIRQ>
  8169. /** AVD Configuration
  8170. */
  8171. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  8172. 8003cec: f44f 23c0 mov.w r3, #393216 @ 0x60000
  8173. 8003cf0: 613b str r3, [r7, #16]
  8174. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  8175. 8003cf2: 2300 movs r3, #0
  8176. 8003cf4: 617b str r3, [r7, #20]
  8177. HAL_PWREx_ConfigAVD(&sConfigAVD);
  8178. 8003cf6: f107 0310 add.w r3, r7, #16
  8179. 8003cfa: 4618 mov r0, r3
  8180. 8003cfc: f007 fde2 bl 800b8c4 <HAL_PWREx_ConfigAVD>
  8181. /** Enable the AVD Output
  8182. */
  8183. HAL_PWREx_EnableAVD();
  8184. 8003d00: f007 fe56 bl 800b9b0 <HAL_PWREx_EnableAVD>
  8185. /** PVD Configuration
  8186. */
  8187. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  8188. 8003d04: 23c0 movs r3, #192 @ 0xc0
  8189. 8003d06: 60bb str r3, [r7, #8]
  8190. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  8191. 8003d08: 2300 movs r3, #0
  8192. 8003d0a: 60fb str r3, [r7, #12]
  8193. HAL_PWR_ConfigPVD(&sConfigPVD);
  8194. 8003d0c: f107 0308 add.w r3, r7, #8
  8195. 8003d10: 4618 mov r0, r3
  8196. 8003d12: f007 fd13 bl 800b73c <HAL_PWR_ConfigPVD>
  8197. /** Enable the PVD Output
  8198. */
  8199. HAL_PWR_EnablePVD();
  8200. 8003d16: f007 fd8b bl 800b830 <HAL_PWR_EnablePVD>
  8201. /** Enable the VREF clock
  8202. */
  8203. __HAL_RCC_VREF_CLK_ENABLE();
  8204. 8003d1a: 4b0c ldr r3, [pc, #48] @ (8003d4c <HAL_MspInit+0xb4>)
  8205. 8003d1c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8206. 8003d20: 4a0a ldr r2, [pc, #40] @ (8003d4c <HAL_MspInit+0xb4>)
  8207. 8003d22: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  8208. 8003d26: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8209. 8003d2a: 4b08 ldr r3, [pc, #32] @ (8003d4c <HAL_MspInit+0xb4>)
  8210. 8003d2c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8211. 8003d30: f403 4300 and.w r3, r3, #32768 @ 0x8000
  8212. 8003d34: 603b str r3, [r7, #0]
  8213. 8003d36: 683b ldr r3, [r7, #0]
  8214. /** Disable the Internal Voltage Reference buffer
  8215. */
  8216. HAL_SYSCFG_DisableVREFBUF();
  8217. 8003d38: f002 f8e0 bl 8005efc <HAL_SYSCFG_DisableVREFBUF>
  8218. /** Configure the internal voltage reference buffer high impedance mode
  8219. */
  8220. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  8221. 8003d3c: 2002 movs r0, #2
  8222. 8003d3e: f002 f8c9 bl 8005ed4 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  8223. /* USER CODE BEGIN MspInit 1 */
  8224. /* USER CODE END MspInit 1 */
  8225. }
  8226. 8003d42: bf00 nop
  8227. 8003d44: 3718 adds r7, #24
  8228. 8003d46: 46bd mov sp, r7
  8229. 8003d48: bd80 pop {r7, pc}
  8230. 8003d4a: bf00 nop
  8231. 8003d4c: 58024400 .word 0x58024400
  8232. 08003d50 <HAL_ADC_MspInit>:
  8233. * This function configures the hardware resources used in this example
  8234. * @param hadc: ADC handle pointer
  8235. * @retval None
  8236. */
  8237. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  8238. {
  8239. 8003d50: b580 push {r7, lr}
  8240. 8003d52: b092 sub sp, #72 @ 0x48
  8241. 8003d54: af00 add r7, sp, #0
  8242. 8003d56: 6078 str r0, [r7, #4]
  8243. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8244. 8003d58: f107 0334 add.w r3, r7, #52 @ 0x34
  8245. 8003d5c: 2200 movs r2, #0
  8246. 8003d5e: 601a str r2, [r3, #0]
  8247. 8003d60: 605a str r2, [r3, #4]
  8248. 8003d62: 609a str r2, [r3, #8]
  8249. 8003d64: 60da str r2, [r3, #12]
  8250. 8003d66: 611a str r2, [r3, #16]
  8251. if(hadc->Instance==ADC1)
  8252. 8003d68: 687b ldr r3, [r7, #4]
  8253. 8003d6a: 681b ldr r3, [r3, #0]
  8254. 8003d6c: 4a9d ldr r2, [pc, #628] @ (8003fe4 <HAL_ADC_MspInit+0x294>)
  8255. 8003d6e: 4293 cmp r3, r2
  8256. 8003d70: f040 8099 bne.w 8003ea6 <HAL_ADC_MspInit+0x156>
  8257. {
  8258. /* USER CODE BEGIN ADC1_MspInit 0 */
  8259. /* USER CODE END ADC1_MspInit 0 */
  8260. /* Peripheral clock enable */
  8261. HAL_RCC_ADC12_CLK_ENABLED++;
  8262. 8003d74: 4b9c ldr r3, [pc, #624] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8263. 8003d76: 681b ldr r3, [r3, #0]
  8264. 8003d78: 3301 adds r3, #1
  8265. 8003d7a: 4a9b ldr r2, [pc, #620] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8266. 8003d7c: 6013 str r3, [r2, #0]
  8267. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8268. 8003d7e: 4b9a ldr r3, [pc, #616] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8269. 8003d80: 681b ldr r3, [r3, #0]
  8270. 8003d82: 2b01 cmp r3, #1
  8271. 8003d84: d10e bne.n 8003da4 <HAL_ADC_MspInit+0x54>
  8272. __HAL_RCC_ADC12_CLK_ENABLE();
  8273. 8003d86: 4b99 ldr r3, [pc, #612] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8274. 8003d88: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8275. 8003d8c: 4a97 ldr r2, [pc, #604] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8276. 8003d8e: f043 0320 orr.w r3, r3, #32
  8277. 8003d92: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8278. 8003d96: 4b95 ldr r3, [pc, #596] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8279. 8003d98: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8280. 8003d9c: f003 0320 and.w r3, r3, #32
  8281. 8003da0: 633b str r3, [r7, #48] @ 0x30
  8282. 8003da2: 6b3b ldr r3, [r7, #48] @ 0x30
  8283. }
  8284. __HAL_RCC_GPIOA_CLK_ENABLE();
  8285. 8003da4: 4b91 ldr r3, [pc, #580] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8286. 8003da6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8287. 8003daa: 4a90 ldr r2, [pc, #576] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8288. 8003dac: f043 0301 orr.w r3, r3, #1
  8289. 8003db0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8290. 8003db4: 4b8d ldr r3, [pc, #564] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8291. 8003db6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8292. 8003dba: f003 0301 and.w r3, r3, #1
  8293. 8003dbe: 62fb str r3, [r7, #44] @ 0x2c
  8294. 8003dc0: 6afb ldr r3, [r7, #44] @ 0x2c
  8295. __HAL_RCC_GPIOC_CLK_ENABLE();
  8296. 8003dc2: 4b8a ldr r3, [pc, #552] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8297. 8003dc4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8298. 8003dc8: 4a88 ldr r2, [pc, #544] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8299. 8003dca: f043 0304 orr.w r3, r3, #4
  8300. 8003dce: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8301. 8003dd2: 4b86 ldr r3, [pc, #536] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8302. 8003dd4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8303. 8003dd8: f003 0304 and.w r3, r3, #4
  8304. 8003ddc: 62bb str r3, [r7, #40] @ 0x28
  8305. 8003dde: 6abb ldr r3, [r7, #40] @ 0x28
  8306. __HAL_RCC_GPIOB_CLK_ENABLE();
  8307. 8003de0: 4b82 ldr r3, [pc, #520] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8308. 8003de2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8309. 8003de6: 4a81 ldr r2, [pc, #516] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8310. 8003de8: f043 0302 orr.w r3, r3, #2
  8311. 8003dec: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8312. 8003df0: 4b7e ldr r3, [pc, #504] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8313. 8003df2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8314. 8003df6: f003 0302 and.w r3, r3, #2
  8315. 8003dfa: 627b str r3, [r7, #36] @ 0x24
  8316. 8003dfc: 6a7b ldr r3, [r7, #36] @ 0x24
  8317. PA3 ------> ADC1_INP15
  8318. PA7 ------> ADC1_INP7
  8319. PC5 ------> ADC1_INP8
  8320. PB0 ------> ADC1_INP9
  8321. */
  8322. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  8323. 8003dfe: 238f movs r3, #143 @ 0x8f
  8324. 8003e00: 637b str r3, [r7, #52] @ 0x34
  8325. |GPIO_PIN_7;
  8326. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8327. 8003e02: 2303 movs r3, #3
  8328. 8003e04: 63bb str r3, [r7, #56] @ 0x38
  8329. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8330. 8003e06: 2300 movs r3, #0
  8331. 8003e08: 63fb str r3, [r7, #60] @ 0x3c
  8332. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8333. 8003e0a: f107 0334 add.w r3, r7, #52 @ 0x34
  8334. 8003e0e: 4619 mov r1, r3
  8335. 8003e10: 4877 ldr r0, [pc, #476] @ (8003ff0 <HAL_ADC_MspInit+0x2a0>)
  8336. 8003e12: f007 fa1f bl 800b254 <HAL_GPIO_Init>
  8337. GPIO_InitStruct.Pin = GPIO_PIN_5;
  8338. 8003e16: 2320 movs r3, #32
  8339. 8003e18: 637b str r3, [r7, #52] @ 0x34
  8340. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8341. 8003e1a: 2303 movs r3, #3
  8342. 8003e1c: 63bb str r3, [r7, #56] @ 0x38
  8343. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8344. 8003e1e: 2300 movs r3, #0
  8345. 8003e20: 63fb str r3, [r7, #60] @ 0x3c
  8346. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8347. 8003e22: f107 0334 add.w r3, r7, #52 @ 0x34
  8348. 8003e26: 4619 mov r1, r3
  8349. 8003e28: 4872 ldr r0, [pc, #456] @ (8003ff4 <HAL_ADC_MspInit+0x2a4>)
  8350. 8003e2a: f007 fa13 bl 800b254 <HAL_GPIO_Init>
  8351. GPIO_InitStruct.Pin = GPIO_PIN_0;
  8352. 8003e2e: 2301 movs r3, #1
  8353. 8003e30: 637b str r3, [r7, #52] @ 0x34
  8354. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8355. 8003e32: 2303 movs r3, #3
  8356. 8003e34: 63bb str r3, [r7, #56] @ 0x38
  8357. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8358. 8003e36: 2300 movs r3, #0
  8359. 8003e38: 63fb str r3, [r7, #60] @ 0x3c
  8360. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8361. 8003e3a: f107 0334 add.w r3, r7, #52 @ 0x34
  8362. 8003e3e: 4619 mov r1, r3
  8363. 8003e40: 486d ldr r0, [pc, #436] @ (8003ff8 <HAL_ADC_MspInit+0x2a8>)
  8364. 8003e42: f007 fa07 bl 800b254 <HAL_GPIO_Init>
  8365. /* ADC1 DMA Init */
  8366. /* ADC1 Init */
  8367. hdma_adc1.Instance = DMA1_Stream0;
  8368. 8003e46: 4b6d ldr r3, [pc, #436] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8369. 8003e48: 4a6d ldr r2, [pc, #436] @ (8004000 <HAL_ADC_MspInit+0x2b0>)
  8370. 8003e4a: 601a str r2, [r3, #0]
  8371. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  8372. 8003e4c: 4b6b ldr r3, [pc, #428] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8373. 8003e4e: 2209 movs r2, #9
  8374. 8003e50: 605a str r2, [r3, #4]
  8375. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8376. 8003e52: 4b6a ldr r3, [pc, #424] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8377. 8003e54: 2200 movs r2, #0
  8378. 8003e56: 609a str r2, [r3, #8]
  8379. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  8380. 8003e58: 4b68 ldr r3, [pc, #416] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8381. 8003e5a: 2200 movs r2, #0
  8382. 8003e5c: 60da str r2, [r3, #12]
  8383. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  8384. 8003e5e: 4b67 ldr r3, [pc, #412] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8385. 8003e60: f44f 6280 mov.w r2, #1024 @ 0x400
  8386. 8003e64: 611a str r2, [r3, #16]
  8387. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8388. 8003e66: 4b65 ldr r3, [pc, #404] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8389. 8003e68: f44f 6200 mov.w r2, #2048 @ 0x800
  8390. 8003e6c: 615a str r2, [r3, #20]
  8391. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8392. 8003e6e: 4b63 ldr r3, [pc, #396] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8393. 8003e70: f44f 5200 mov.w r2, #8192 @ 0x2000
  8394. 8003e74: 619a str r2, [r3, #24]
  8395. hdma_adc1.Init.Mode = DMA_NORMAL;
  8396. 8003e76: 4b61 ldr r3, [pc, #388] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8397. 8003e78: 2200 movs r2, #0
  8398. 8003e7a: 61da str r2, [r3, #28]
  8399. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  8400. 8003e7c: 4b5f ldr r3, [pc, #380] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8401. 8003e7e: 2200 movs r2, #0
  8402. 8003e80: 621a str r2, [r3, #32]
  8403. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8404. 8003e82: 4b5e ldr r3, [pc, #376] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8405. 8003e84: 2200 movs r2, #0
  8406. 8003e86: 625a str r2, [r3, #36] @ 0x24
  8407. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  8408. 8003e88: 485c ldr r0, [pc, #368] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8409. 8003e8a: f004 fba7 bl 80085dc <HAL_DMA_Init>
  8410. 8003e8e: 4603 mov r3, r0
  8411. 8003e90: 2b00 cmp r3, #0
  8412. 8003e92: d001 beq.n 8003e98 <HAL_ADC_MspInit+0x148>
  8413. {
  8414. Error_Handler();
  8415. 8003e94: f7fe f81a bl 8001ecc <Error_Handler>
  8416. }
  8417. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  8418. 8003e98: 687b ldr r3, [r7, #4]
  8419. 8003e9a: 4a58 ldr r2, [pc, #352] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8420. 8003e9c: 64da str r2, [r3, #76] @ 0x4c
  8421. 8003e9e: 4a57 ldr r2, [pc, #348] @ (8003ffc <HAL_ADC_MspInit+0x2ac>)
  8422. 8003ea0: 687b ldr r3, [r7, #4]
  8423. 8003ea2: 6393 str r3, [r2, #56] @ 0x38
  8424. /* USER CODE BEGIN ADC3_MspInit 1 */
  8425. /* USER CODE END ADC3_MspInit 1 */
  8426. }
  8427. }
  8428. 8003ea4: e11e b.n 80040e4 <HAL_ADC_MspInit+0x394>
  8429. else if(hadc->Instance==ADC2)
  8430. 8003ea6: 687b ldr r3, [r7, #4]
  8431. 8003ea8: 681b ldr r3, [r3, #0]
  8432. 8003eaa: 4a56 ldr r2, [pc, #344] @ (8004004 <HAL_ADC_MspInit+0x2b4>)
  8433. 8003eac: 4293 cmp r3, r2
  8434. 8003eae: f040 80af bne.w 8004010 <HAL_ADC_MspInit+0x2c0>
  8435. HAL_RCC_ADC12_CLK_ENABLED++;
  8436. 8003eb2: 4b4d ldr r3, [pc, #308] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8437. 8003eb4: 681b ldr r3, [r3, #0]
  8438. 8003eb6: 3301 adds r3, #1
  8439. 8003eb8: 4a4b ldr r2, [pc, #300] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8440. 8003eba: 6013 str r3, [r2, #0]
  8441. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8442. 8003ebc: 4b4a ldr r3, [pc, #296] @ (8003fe8 <HAL_ADC_MspInit+0x298>)
  8443. 8003ebe: 681b ldr r3, [r3, #0]
  8444. 8003ec0: 2b01 cmp r3, #1
  8445. 8003ec2: d10e bne.n 8003ee2 <HAL_ADC_MspInit+0x192>
  8446. __HAL_RCC_ADC12_CLK_ENABLE();
  8447. 8003ec4: 4b49 ldr r3, [pc, #292] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8448. 8003ec6: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8449. 8003eca: 4a48 ldr r2, [pc, #288] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8450. 8003ecc: f043 0320 orr.w r3, r3, #32
  8451. 8003ed0: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8452. 8003ed4: 4b45 ldr r3, [pc, #276] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8453. 8003ed6: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8454. 8003eda: f003 0320 and.w r3, r3, #32
  8455. 8003ede: 623b str r3, [r7, #32]
  8456. 8003ee0: 6a3b ldr r3, [r7, #32]
  8457. __HAL_RCC_GPIOA_CLK_ENABLE();
  8458. 8003ee2: 4b42 ldr r3, [pc, #264] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8459. 8003ee4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8460. 8003ee8: 4a40 ldr r2, [pc, #256] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8461. 8003eea: f043 0301 orr.w r3, r3, #1
  8462. 8003eee: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8463. 8003ef2: 4b3e ldr r3, [pc, #248] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8464. 8003ef4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8465. 8003ef8: f003 0301 and.w r3, r3, #1
  8466. 8003efc: 61fb str r3, [r7, #28]
  8467. 8003efe: 69fb ldr r3, [r7, #28]
  8468. __HAL_RCC_GPIOC_CLK_ENABLE();
  8469. 8003f00: 4b3a ldr r3, [pc, #232] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8470. 8003f02: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8471. 8003f06: 4a39 ldr r2, [pc, #228] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8472. 8003f08: f043 0304 orr.w r3, r3, #4
  8473. 8003f0c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8474. 8003f10: 4b36 ldr r3, [pc, #216] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8475. 8003f12: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8476. 8003f16: f003 0304 and.w r3, r3, #4
  8477. 8003f1a: 61bb str r3, [r7, #24]
  8478. 8003f1c: 69bb ldr r3, [r7, #24]
  8479. __HAL_RCC_GPIOB_CLK_ENABLE();
  8480. 8003f1e: 4b33 ldr r3, [pc, #204] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8481. 8003f20: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8482. 8003f24: 4a31 ldr r2, [pc, #196] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8483. 8003f26: f043 0302 orr.w r3, r3, #2
  8484. 8003f2a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8485. 8003f2e: 4b2f ldr r3, [pc, #188] @ (8003fec <HAL_ADC_MspInit+0x29c>)
  8486. 8003f30: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8487. 8003f34: f003 0302 and.w r3, r3, #2
  8488. 8003f38: 617b str r3, [r7, #20]
  8489. 8003f3a: 697b ldr r3, [r7, #20]
  8490. GPIO_InitStruct.Pin = GPIO_PIN_6;
  8491. 8003f3c: 2340 movs r3, #64 @ 0x40
  8492. 8003f3e: 637b str r3, [r7, #52] @ 0x34
  8493. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8494. 8003f40: 2303 movs r3, #3
  8495. 8003f42: 63bb str r3, [r7, #56] @ 0x38
  8496. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8497. 8003f44: 2300 movs r3, #0
  8498. 8003f46: 63fb str r3, [r7, #60] @ 0x3c
  8499. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8500. 8003f48: f107 0334 add.w r3, r7, #52 @ 0x34
  8501. 8003f4c: 4619 mov r1, r3
  8502. 8003f4e: 4828 ldr r0, [pc, #160] @ (8003ff0 <HAL_ADC_MspInit+0x2a0>)
  8503. 8003f50: f007 f980 bl 800b254 <HAL_GPIO_Init>
  8504. GPIO_InitStruct.Pin = GPIO_PIN_4;
  8505. 8003f54: 2310 movs r3, #16
  8506. 8003f56: 637b str r3, [r7, #52] @ 0x34
  8507. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8508. 8003f58: 2303 movs r3, #3
  8509. 8003f5a: 63bb str r3, [r7, #56] @ 0x38
  8510. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8511. 8003f5c: 2300 movs r3, #0
  8512. 8003f5e: 63fb str r3, [r7, #60] @ 0x3c
  8513. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8514. 8003f60: f107 0334 add.w r3, r7, #52 @ 0x34
  8515. 8003f64: 4619 mov r1, r3
  8516. 8003f66: 4823 ldr r0, [pc, #140] @ (8003ff4 <HAL_ADC_MspInit+0x2a4>)
  8517. 8003f68: f007 f974 bl 800b254 <HAL_GPIO_Init>
  8518. GPIO_InitStruct.Pin = GPIO_PIN_1;
  8519. 8003f6c: 2302 movs r3, #2
  8520. 8003f6e: 637b str r3, [r7, #52] @ 0x34
  8521. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8522. 8003f70: 2303 movs r3, #3
  8523. 8003f72: 63bb str r3, [r7, #56] @ 0x38
  8524. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8525. 8003f74: 2300 movs r3, #0
  8526. 8003f76: 63fb str r3, [r7, #60] @ 0x3c
  8527. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8528. 8003f78: f107 0334 add.w r3, r7, #52 @ 0x34
  8529. 8003f7c: 4619 mov r1, r3
  8530. 8003f7e: 481e ldr r0, [pc, #120] @ (8003ff8 <HAL_ADC_MspInit+0x2a8>)
  8531. 8003f80: f007 f968 bl 800b254 <HAL_GPIO_Init>
  8532. hdma_adc2.Instance = DMA1_Stream1;
  8533. 8003f84: 4b20 ldr r3, [pc, #128] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8534. 8003f86: 4a21 ldr r2, [pc, #132] @ (800400c <HAL_ADC_MspInit+0x2bc>)
  8535. 8003f88: 601a str r2, [r3, #0]
  8536. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  8537. 8003f8a: 4b1f ldr r3, [pc, #124] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8538. 8003f8c: 220a movs r2, #10
  8539. 8003f8e: 605a str r2, [r3, #4]
  8540. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8541. 8003f90: 4b1d ldr r3, [pc, #116] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8542. 8003f92: 2200 movs r2, #0
  8543. 8003f94: 609a str r2, [r3, #8]
  8544. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  8545. 8003f96: 4b1c ldr r3, [pc, #112] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8546. 8003f98: 2200 movs r2, #0
  8547. 8003f9a: 60da str r2, [r3, #12]
  8548. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  8549. 8003f9c: 4b1a ldr r3, [pc, #104] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8550. 8003f9e: f44f 6280 mov.w r2, #1024 @ 0x400
  8551. 8003fa2: 611a str r2, [r3, #16]
  8552. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8553. 8003fa4: 4b18 ldr r3, [pc, #96] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8554. 8003fa6: f44f 6200 mov.w r2, #2048 @ 0x800
  8555. 8003faa: 615a str r2, [r3, #20]
  8556. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8557. 8003fac: 4b16 ldr r3, [pc, #88] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8558. 8003fae: f44f 5200 mov.w r2, #8192 @ 0x2000
  8559. 8003fb2: 619a str r2, [r3, #24]
  8560. hdma_adc2.Init.Mode = DMA_NORMAL;
  8561. 8003fb4: 4b14 ldr r3, [pc, #80] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8562. 8003fb6: 2200 movs r2, #0
  8563. 8003fb8: 61da str r2, [r3, #28]
  8564. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  8565. 8003fba: 4b13 ldr r3, [pc, #76] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8566. 8003fbc: 2200 movs r2, #0
  8567. 8003fbe: 621a str r2, [r3, #32]
  8568. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8569. 8003fc0: 4b11 ldr r3, [pc, #68] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8570. 8003fc2: 2200 movs r2, #0
  8571. 8003fc4: 625a str r2, [r3, #36] @ 0x24
  8572. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  8573. 8003fc6: 4810 ldr r0, [pc, #64] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8574. 8003fc8: f004 fb08 bl 80085dc <HAL_DMA_Init>
  8575. 8003fcc: 4603 mov r3, r0
  8576. 8003fce: 2b00 cmp r3, #0
  8577. 8003fd0: d001 beq.n 8003fd6 <HAL_ADC_MspInit+0x286>
  8578. Error_Handler();
  8579. 8003fd2: f7fd ff7b bl 8001ecc <Error_Handler>
  8580. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  8581. 8003fd6: 687b ldr r3, [r7, #4]
  8582. 8003fd8: 4a0b ldr r2, [pc, #44] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8583. 8003fda: 64da str r2, [r3, #76] @ 0x4c
  8584. 8003fdc: 4a0a ldr r2, [pc, #40] @ (8004008 <HAL_ADC_MspInit+0x2b8>)
  8585. 8003fde: 687b ldr r3, [r7, #4]
  8586. 8003fe0: 6393 str r3, [r2, #56] @ 0x38
  8587. }
  8588. 8003fe2: e07f b.n 80040e4 <HAL_ADC_MspInit+0x394>
  8589. 8003fe4: 40022000 .word 0x40022000
  8590. 8003fe8: 2400091c .word 0x2400091c
  8591. 8003fec: 58024400 .word 0x58024400
  8592. 8003ff0: 58020000 .word 0x58020000
  8593. 8003ff4: 58020800 .word 0x58020800
  8594. 8003ff8: 58020400 .word 0x58020400
  8595. 8003ffc: 2400024c .word 0x2400024c
  8596. 8004000: 40020010 .word 0x40020010
  8597. 8004004: 40022100 .word 0x40022100
  8598. 8004008: 240002c4 .word 0x240002c4
  8599. 800400c: 40020028 .word 0x40020028
  8600. else if(hadc->Instance==ADC3)
  8601. 8004010: 687b ldr r3, [r7, #4]
  8602. 8004012: 681b ldr r3, [r3, #0]
  8603. 8004014: 4a35 ldr r2, [pc, #212] @ (80040ec <HAL_ADC_MspInit+0x39c>)
  8604. 8004016: 4293 cmp r3, r2
  8605. 8004018: d164 bne.n 80040e4 <HAL_ADC_MspInit+0x394>
  8606. __HAL_RCC_ADC3_CLK_ENABLE();
  8607. 800401a: 4b35 ldr r3, [pc, #212] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8608. 800401c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8609. 8004020: 4a33 ldr r2, [pc, #204] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8610. 8004022: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  8611. 8004026: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8612. 800402a: 4b31 ldr r3, [pc, #196] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8613. 800402c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8614. 8004030: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  8615. 8004034: 613b str r3, [r7, #16]
  8616. 8004036: 693b ldr r3, [r7, #16]
  8617. __HAL_RCC_GPIOC_CLK_ENABLE();
  8618. 8004038: 4b2d ldr r3, [pc, #180] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8619. 800403a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8620. 800403e: 4a2c ldr r2, [pc, #176] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8621. 8004040: f043 0304 orr.w r3, r3, #4
  8622. 8004044: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8623. 8004048: 4b29 ldr r3, [pc, #164] @ (80040f0 <HAL_ADC_MspInit+0x3a0>)
  8624. 800404a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8625. 800404e: f003 0304 and.w r3, r3, #4
  8626. 8004052: 60fb str r3, [r7, #12]
  8627. 8004054: 68fb ldr r3, [r7, #12]
  8628. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8629. 8004056: 2303 movs r3, #3
  8630. 8004058: 637b str r3, [r7, #52] @ 0x34
  8631. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8632. 800405a: 2303 movs r3, #3
  8633. 800405c: 63bb str r3, [r7, #56] @ 0x38
  8634. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8635. 800405e: 2300 movs r3, #0
  8636. 8004060: 63fb str r3, [r7, #60] @ 0x3c
  8637. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8638. 8004062: f107 0334 add.w r3, r7, #52 @ 0x34
  8639. 8004066: 4619 mov r1, r3
  8640. 8004068: 4822 ldr r0, [pc, #136] @ (80040f4 <HAL_ADC_MspInit+0x3a4>)
  8641. 800406a: f007 f8f3 bl 800b254 <HAL_GPIO_Init>
  8642. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  8643. 800406e: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  8644. 8004072: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  8645. 8004076: f001 ff51 bl 8005f1c <HAL_SYSCFG_AnalogSwitchConfig>
  8646. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  8647. 800407a: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  8648. 800407e: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  8649. 8004082: f001 ff4b bl 8005f1c <HAL_SYSCFG_AnalogSwitchConfig>
  8650. hdma_adc3.Instance = DMA1_Stream2;
  8651. 8004086: 4b1c ldr r3, [pc, #112] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8652. 8004088: 4a1c ldr r2, [pc, #112] @ (80040fc <HAL_ADC_MspInit+0x3ac>)
  8653. 800408a: 601a str r2, [r3, #0]
  8654. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  8655. 800408c: 4b1a ldr r3, [pc, #104] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8656. 800408e: 2273 movs r2, #115 @ 0x73
  8657. 8004090: 605a str r2, [r3, #4]
  8658. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8659. 8004092: 4b19 ldr r3, [pc, #100] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8660. 8004094: 2200 movs r2, #0
  8661. 8004096: 609a str r2, [r3, #8]
  8662. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  8663. 8004098: 4b17 ldr r3, [pc, #92] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8664. 800409a: 2200 movs r2, #0
  8665. 800409c: 60da str r2, [r3, #12]
  8666. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  8667. 800409e: 4b16 ldr r3, [pc, #88] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8668. 80040a0: f44f 6280 mov.w r2, #1024 @ 0x400
  8669. 80040a4: 611a str r2, [r3, #16]
  8670. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8671. 80040a6: 4b14 ldr r3, [pc, #80] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8672. 80040a8: f44f 6200 mov.w r2, #2048 @ 0x800
  8673. 80040ac: 615a str r2, [r3, #20]
  8674. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8675. 80040ae: 4b12 ldr r3, [pc, #72] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8676. 80040b0: f44f 5200 mov.w r2, #8192 @ 0x2000
  8677. 80040b4: 619a str r2, [r3, #24]
  8678. hdma_adc3.Init.Mode = DMA_NORMAL;
  8679. 80040b6: 4b10 ldr r3, [pc, #64] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8680. 80040b8: 2200 movs r2, #0
  8681. 80040ba: 61da str r2, [r3, #28]
  8682. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  8683. 80040bc: 4b0e ldr r3, [pc, #56] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8684. 80040be: 2200 movs r2, #0
  8685. 80040c0: 621a str r2, [r3, #32]
  8686. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8687. 80040c2: 4b0d ldr r3, [pc, #52] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8688. 80040c4: 2200 movs r2, #0
  8689. 80040c6: 625a str r2, [r3, #36] @ 0x24
  8690. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  8691. 80040c8: 480b ldr r0, [pc, #44] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8692. 80040ca: f004 fa87 bl 80085dc <HAL_DMA_Init>
  8693. 80040ce: 4603 mov r3, r0
  8694. 80040d0: 2b00 cmp r3, #0
  8695. 80040d2: d001 beq.n 80040d8 <HAL_ADC_MspInit+0x388>
  8696. Error_Handler();
  8697. 80040d4: f7fd fefa bl 8001ecc <Error_Handler>
  8698. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  8699. 80040d8: 687b ldr r3, [r7, #4]
  8700. 80040da: 4a07 ldr r2, [pc, #28] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8701. 80040dc: 64da str r2, [r3, #76] @ 0x4c
  8702. 80040de: 4a06 ldr r2, [pc, #24] @ (80040f8 <HAL_ADC_MspInit+0x3a8>)
  8703. 80040e0: 687b ldr r3, [r7, #4]
  8704. 80040e2: 6393 str r3, [r2, #56] @ 0x38
  8705. }
  8706. 80040e4: bf00 nop
  8707. 80040e6: 3748 adds r7, #72 @ 0x48
  8708. 80040e8: 46bd mov sp, r7
  8709. 80040ea: bd80 pop {r7, pc}
  8710. 80040ec: 58026000 .word 0x58026000
  8711. 80040f0: 58024400 .word 0x58024400
  8712. 80040f4: 58020800 .word 0x58020800
  8713. 80040f8: 2400033c .word 0x2400033c
  8714. 80040fc: 40020040 .word 0x40020040
  8715. 08004100 <HAL_COMP_MspInit>:
  8716. * This function configures the hardware resources used in this example
  8717. * @param hcomp: COMP handle pointer
  8718. * @retval None
  8719. */
  8720. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  8721. {
  8722. 8004100: b580 push {r7, lr}
  8723. 8004102: b08a sub sp, #40 @ 0x28
  8724. 8004104: af00 add r7, sp, #0
  8725. 8004106: 6078 str r0, [r7, #4]
  8726. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8727. 8004108: f107 0314 add.w r3, r7, #20
  8728. 800410c: 2200 movs r2, #0
  8729. 800410e: 601a str r2, [r3, #0]
  8730. 8004110: 605a str r2, [r3, #4]
  8731. 8004112: 609a str r2, [r3, #8]
  8732. 8004114: 60da str r2, [r3, #12]
  8733. 8004116: 611a str r2, [r3, #16]
  8734. if(hcomp->Instance==COMP1)
  8735. 8004118: 687b ldr r3, [r7, #4]
  8736. 800411a: 681b ldr r3, [r3, #0]
  8737. 800411c: 4a18 ldr r2, [pc, #96] @ (8004180 <HAL_COMP_MspInit+0x80>)
  8738. 800411e: 4293 cmp r3, r2
  8739. 8004120: d129 bne.n 8004176 <HAL_COMP_MspInit+0x76>
  8740. {
  8741. /* USER CODE BEGIN COMP1_MspInit 0 */
  8742. /* USER CODE END COMP1_MspInit 0 */
  8743. /* Peripheral clock enable */
  8744. __HAL_RCC_COMP12_CLK_ENABLE();
  8745. 8004122: 4b18 ldr r3, [pc, #96] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8746. 8004124: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8747. 8004128: 4a16 ldr r2, [pc, #88] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8748. 800412a: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  8749. 800412e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8750. 8004132: 4b14 ldr r3, [pc, #80] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8751. 8004134: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8752. 8004138: f403 4380 and.w r3, r3, #16384 @ 0x4000
  8753. 800413c: 613b str r3, [r7, #16]
  8754. 800413e: 693b ldr r3, [r7, #16]
  8755. __HAL_RCC_GPIOB_CLK_ENABLE();
  8756. 8004140: 4b10 ldr r3, [pc, #64] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8757. 8004142: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8758. 8004146: 4a0f ldr r2, [pc, #60] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8759. 8004148: f043 0302 orr.w r3, r3, #2
  8760. 800414c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8761. 8004150: 4b0c ldr r3, [pc, #48] @ (8004184 <HAL_COMP_MspInit+0x84>)
  8762. 8004152: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8763. 8004156: f003 0302 and.w r3, r3, #2
  8764. 800415a: 60fb str r3, [r7, #12]
  8765. 800415c: 68fb ldr r3, [r7, #12]
  8766. /**COMP1 GPIO Configuration
  8767. PB2 ------> COMP1_INP
  8768. */
  8769. GPIO_InitStruct.Pin = GPIO_PIN_2;
  8770. 800415e: 2304 movs r3, #4
  8771. 8004160: 617b str r3, [r7, #20]
  8772. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8773. 8004162: 2303 movs r3, #3
  8774. 8004164: 61bb str r3, [r7, #24]
  8775. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8776. 8004166: 2300 movs r3, #0
  8777. 8004168: 61fb str r3, [r7, #28]
  8778. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8779. 800416a: f107 0314 add.w r3, r7, #20
  8780. 800416e: 4619 mov r1, r3
  8781. 8004170: 4805 ldr r0, [pc, #20] @ (8004188 <HAL_COMP_MspInit+0x88>)
  8782. 8004172: f007 f86f bl 800b254 <HAL_GPIO_Init>
  8783. /* USER CODE BEGIN COMP1_MspInit 1 */
  8784. /* USER CODE END COMP1_MspInit 1 */
  8785. }
  8786. }
  8787. 8004176: bf00 nop
  8788. 8004178: 3728 adds r7, #40 @ 0x28
  8789. 800417a: 46bd mov sp, r7
  8790. 800417c: bd80 pop {r7, pc}
  8791. 800417e: bf00 nop
  8792. 8004180: 5800380c .word 0x5800380c
  8793. 8004184: 58024400 .word 0x58024400
  8794. 8004188: 58020400 .word 0x58020400
  8795. 0800418c <HAL_CRC_MspInit>:
  8796. * This function configures the hardware resources used in this example
  8797. * @param hcrc: CRC handle pointer
  8798. * @retval None
  8799. */
  8800. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  8801. {
  8802. 800418c: b480 push {r7}
  8803. 800418e: b085 sub sp, #20
  8804. 8004190: af00 add r7, sp, #0
  8805. 8004192: 6078 str r0, [r7, #4]
  8806. if(hcrc->Instance==CRC)
  8807. 8004194: 687b ldr r3, [r7, #4]
  8808. 8004196: 681b ldr r3, [r3, #0]
  8809. 8004198: 4a0b ldr r2, [pc, #44] @ (80041c8 <HAL_CRC_MspInit+0x3c>)
  8810. 800419a: 4293 cmp r3, r2
  8811. 800419c: d10e bne.n 80041bc <HAL_CRC_MspInit+0x30>
  8812. {
  8813. /* USER CODE BEGIN CRC_MspInit 0 */
  8814. /* USER CODE END CRC_MspInit 0 */
  8815. /* Peripheral clock enable */
  8816. __HAL_RCC_CRC_CLK_ENABLE();
  8817. 800419e: 4b0b ldr r3, [pc, #44] @ (80041cc <HAL_CRC_MspInit+0x40>)
  8818. 80041a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8819. 80041a4: 4a09 ldr r2, [pc, #36] @ (80041cc <HAL_CRC_MspInit+0x40>)
  8820. 80041a6: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  8821. 80041aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8822. 80041ae: 4b07 ldr r3, [pc, #28] @ (80041cc <HAL_CRC_MspInit+0x40>)
  8823. 80041b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8824. 80041b4: f403 2300 and.w r3, r3, #524288 @ 0x80000
  8825. 80041b8: 60fb str r3, [r7, #12]
  8826. 80041ba: 68fb ldr r3, [r7, #12]
  8827. /* USER CODE BEGIN CRC_MspInit 1 */
  8828. /* USER CODE END CRC_MspInit 1 */
  8829. }
  8830. }
  8831. 80041bc: bf00 nop
  8832. 80041be: 3714 adds r7, #20
  8833. 80041c0: 46bd mov sp, r7
  8834. 80041c2: f85d 7b04 ldr.w r7, [sp], #4
  8835. 80041c6: 4770 bx lr
  8836. 80041c8: 58024c00 .word 0x58024c00
  8837. 80041cc: 58024400 .word 0x58024400
  8838. 080041d0 <HAL_DAC_MspInit>:
  8839. * This function configures the hardware resources used in this example
  8840. * @param hdac: DAC handle pointer
  8841. * @retval None
  8842. */
  8843. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  8844. {
  8845. 80041d0: b580 push {r7, lr}
  8846. 80041d2: b08a sub sp, #40 @ 0x28
  8847. 80041d4: af00 add r7, sp, #0
  8848. 80041d6: 6078 str r0, [r7, #4]
  8849. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8850. 80041d8: f107 0314 add.w r3, r7, #20
  8851. 80041dc: 2200 movs r2, #0
  8852. 80041de: 601a str r2, [r3, #0]
  8853. 80041e0: 605a str r2, [r3, #4]
  8854. 80041e2: 609a str r2, [r3, #8]
  8855. 80041e4: 60da str r2, [r3, #12]
  8856. 80041e6: 611a str r2, [r3, #16]
  8857. if(hdac->Instance==DAC1)
  8858. 80041e8: 687b ldr r3, [r7, #4]
  8859. 80041ea: 681b ldr r3, [r3, #0]
  8860. 80041ec: 4a1c ldr r2, [pc, #112] @ (8004260 <HAL_DAC_MspInit+0x90>)
  8861. 80041ee: 4293 cmp r3, r2
  8862. 80041f0: d131 bne.n 8004256 <HAL_DAC_MspInit+0x86>
  8863. {
  8864. /* USER CODE BEGIN DAC1_MspInit 0 */
  8865. /* USER CODE END DAC1_MspInit 0 */
  8866. /* Peripheral clock enable */
  8867. __HAL_RCC_DAC12_CLK_ENABLE();
  8868. 80041f2: 4b1c ldr r3, [pc, #112] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8869. 80041f4: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8870. 80041f8: 4a1a ldr r2, [pc, #104] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8871. 80041fa: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  8872. 80041fe: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8873. 8004202: 4b18 ldr r3, [pc, #96] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8874. 8004204: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8875. 8004208: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  8876. 800420c: 613b str r3, [r7, #16]
  8877. 800420e: 693b ldr r3, [r7, #16]
  8878. __HAL_RCC_GPIOA_CLK_ENABLE();
  8879. 8004210: 4b14 ldr r3, [pc, #80] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8880. 8004212: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8881. 8004216: 4a13 ldr r2, [pc, #76] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8882. 8004218: f043 0301 orr.w r3, r3, #1
  8883. 800421c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8884. 8004220: 4b10 ldr r3, [pc, #64] @ (8004264 <HAL_DAC_MspInit+0x94>)
  8885. 8004222: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8886. 8004226: f003 0301 and.w r3, r3, #1
  8887. 800422a: 60fb str r3, [r7, #12]
  8888. 800422c: 68fb ldr r3, [r7, #12]
  8889. /**DAC1 GPIO Configuration
  8890. PA4 ------> DAC1_OUT1
  8891. PA5 ------> DAC1_OUT2
  8892. */
  8893. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  8894. 800422e: 2330 movs r3, #48 @ 0x30
  8895. 8004230: 617b str r3, [r7, #20]
  8896. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8897. 8004232: 2303 movs r3, #3
  8898. 8004234: 61bb str r3, [r7, #24]
  8899. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8900. 8004236: 2300 movs r3, #0
  8901. 8004238: 61fb str r3, [r7, #28]
  8902. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8903. 800423a: f107 0314 add.w r3, r7, #20
  8904. 800423e: 4619 mov r1, r3
  8905. 8004240: 4809 ldr r0, [pc, #36] @ (8004268 <HAL_DAC_MspInit+0x98>)
  8906. 8004242: f007 f807 bl 800b254 <HAL_GPIO_Init>
  8907. /* DAC1 interrupt Init */
  8908. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  8909. 8004246: 2200 movs r2, #0
  8910. 8004248: 2105 movs r1, #5
  8911. 800424a: 2036 movs r0, #54 @ 0x36
  8912. 800424c: f003 fcd0 bl 8007bf0 <HAL_NVIC_SetPriority>
  8913. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8914. 8004250: 2036 movs r0, #54 @ 0x36
  8915. 8004252: f003 fce7 bl 8007c24 <HAL_NVIC_EnableIRQ>
  8916. /* USER CODE BEGIN DAC1_MspInit 1 */
  8917. /* USER CODE END DAC1_MspInit 1 */
  8918. }
  8919. }
  8920. 8004256: bf00 nop
  8921. 8004258: 3728 adds r7, #40 @ 0x28
  8922. 800425a: 46bd mov sp, r7
  8923. 800425c: bd80 pop {r7, pc}
  8924. 800425e: bf00 nop
  8925. 8004260: 40007400 .word 0x40007400
  8926. 8004264: 58024400 .word 0x58024400
  8927. 8004268: 58020000 .word 0x58020000
  8928. 0800426c <HAL_RNG_MspInit>:
  8929. * This function configures the hardware resources used in this example
  8930. * @param hrng: RNG handle pointer
  8931. * @retval None
  8932. */
  8933. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  8934. {
  8935. 800426c: b580 push {r7, lr}
  8936. 800426e: b0b4 sub sp, #208 @ 0xd0
  8937. 8004270: af00 add r7, sp, #0
  8938. 8004272: 6078 str r0, [r7, #4]
  8939. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8940. 8004274: f107 0310 add.w r3, r7, #16
  8941. 8004278: 22c0 movs r2, #192 @ 0xc0
  8942. 800427a: 2100 movs r1, #0
  8943. 800427c: 4618 mov r0, r3
  8944. 800427e: f014 f88b bl 8018398 <memset>
  8945. if(hrng->Instance==RNG)
  8946. 8004282: 687b ldr r3, [r7, #4]
  8947. 8004284: 681b ldr r3, [r3, #0]
  8948. 8004286: 4a14 ldr r2, [pc, #80] @ (80042d8 <HAL_RNG_MspInit+0x6c>)
  8949. 8004288: 4293 cmp r3, r2
  8950. 800428a: d121 bne.n 80042d0 <HAL_RNG_MspInit+0x64>
  8951. /* USER CODE END RNG_MspInit 0 */
  8952. /** Initializes the peripherals clock
  8953. */
  8954. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  8955. 800428c: f44f 3200 mov.w r2, #131072 @ 0x20000
  8956. 8004290: f04f 0300 mov.w r3, #0
  8957. 8004294: e9c7 2304 strd r2, r3, [r7, #16]
  8958. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  8959. 8004298: 2300 movs r3, #0
  8960. 800429a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8961. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8962. 800429e: f107 0310 add.w r3, r7, #16
  8963. 80042a2: 4618 mov r0, r3
  8964. 80042a4: f008 fbbc bl 800ca20 <HAL_RCCEx_PeriphCLKConfig>
  8965. 80042a8: 4603 mov r3, r0
  8966. 80042aa: 2b00 cmp r3, #0
  8967. 80042ac: d001 beq.n 80042b2 <HAL_RNG_MspInit+0x46>
  8968. {
  8969. Error_Handler();
  8970. 80042ae: f7fd fe0d bl 8001ecc <Error_Handler>
  8971. }
  8972. /* Peripheral clock enable */
  8973. __HAL_RCC_RNG_CLK_ENABLE();
  8974. 80042b2: 4b0a ldr r3, [pc, #40] @ (80042dc <HAL_RNG_MspInit+0x70>)
  8975. 80042b4: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8976. 80042b8: 4a08 ldr r2, [pc, #32] @ (80042dc <HAL_RNG_MspInit+0x70>)
  8977. 80042ba: f043 0340 orr.w r3, r3, #64 @ 0x40
  8978. 80042be: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  8979. 80042c2: 4b06 ldr r3, [pc, #24] @ (80042dc <HAL_RNG_MspInit+0x70>)
  8980. 80042c4: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8981. 80042c8: f003 0340 and.w r3, r3, #64 @ 0x40
  8982. 80042cc: 60fb str r3, [r7, #12]
  8983. 80042ce: 68fb ldr r3, [r7, #12]
  8984. /* USER CODE BEGIN RNG_MspInit 1 */
  8985. /* USER CODE END RNG_MspInit 1 */
  8986. }
  8987. }
  8988. 80042d0: bf00 nop
  8989. 80042d2: 37d0 adds r7, #208 @ 0xd0
  8990. 80042d4: 46bd mov sp, r7
  8991. 80042d6: bd80 pop {r7, pc}
  8992. 80042d8: 48021800 .word 0x48021800
  8993. 80042dc: 58024400 .word 0x58024400
  8994. 080042e0 <HAL_TIM_PWM_MspInit>:
  8995. * This function configures the hardware resources used in this example
  8996. * @param htim_pwm: TIM_PWM handle pointer
  8997. * @retval None
  8998. */
  8999. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  9000. {
  9001. 80042e0: b480 push {r7}
  9002. 80042e2: b085 sub sp, #20
  9003. 80042e4: af00 add r7, sp, #0
  9004. 80042e6: 6078 str r0, [r7, #4]
  9005. if(htim_pwm->Instance==TIM1)
  9006. 80042e8: 687b ldr r3, [r7, #4]
  9007. 80042ea: 681b ldr r3, [r3, #0]
  9008. 80042ec: 4a16 ldr r2, [pc, #88] @ (8004348 <HAL_TIM_PWM_MspInit+0x68>)
  9009. 80042ee: 4293 cmp r3, r2
  9010. 80042f0: d10f bne.n 8004312 <HAL_TIM_PWM_MspInit+0x32>
  9011. {
  9012. /* USER CODE BEGIN TIM1_MspInit 0 */
  9013. /* USER CODE END TIM1_MspInit 0 */
  9014. /* Peripheral clock enable */
  9015. __HAL_RCC_TIM1_CLK_ENABLE();
  9016. 80042f2: 4b16 ldr r3, [pc, #88] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9017. 80042f4: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9018. 80042f8: 4a14 ldr r2, [pc, #80] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9019. 80042fa: f043 0301 orr.w r3, r3, #1
  9020. 80042fe: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9021. 8004302: 4b12 ldr r3, [pc, #72] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9022. 8004304: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9023. 8004308: f003 0301 and.w r3, r3, #1
  9024. 800430c: 60fb str r3, [r7, #12]
  9025. 800430e: 68fb ldr r3, [r7, #12]
  9026. /* USER CODE BEGIN TIM3_MspInit 1 */
  9027. /* USER CODE END TIM3_MspInit 1 */
  9028. }
  9029. }
  9030. 8004310: e013 b.n 800433a <HAL_TIM_PWM_MspInit+0x5a>
  9031. else if(htim_pwm->Instance==TIM3)
  9032. 8004312: 687b ldr r3, [r7, #4]
  9033. 8004314: 681b ldr r3, [r3, #0]
  9034. 8004316: 4a0e ldr r2, [pc, #56] @ (8004350 <HAL_TIM_PWM_MspInit+0x70>)
  9035. 8004318: 4293 cmp r3, r2
  9036. 800431a: d10e bne.n 800433a <HAL_TIM_PWM_MspInit+0x5a>
  9037. __HAL_RCC_TIM3_CLK_ENABLE();
  9038. 800431c: 4b0b ldr r3, [pc, #44] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9039. 800431e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9040. 8004322: 4a0a ldr r2, [pc, #40] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9041. 8004324: f043 0302 orr.w r3, r3, #2
  9042. 8004328: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9043. 800432c: 4b07 ldr r3, [pc, #28] @ (800434c <HAL_TIM_PWM_MspInit+0x6c>)
  9044. 800432e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9045. 8004332: f003 0302 and.w r3, r3, #2
  9046. 8004336: 60bb str r3, [r7, #8]
  9047. 8004338: 68bb ldr r3, [r7, #8]
  9048. }
  9049. 800433a: bf00 nop
  9050. 800433c: 3714 adds r7, #20
  9051. 800433e: 46bd mov sp, r7
  9052. 8004340: f85d 7b04 ldr.w r7, [sp], #4
  9053. 8004344: 4770 bx lr
  9054. 8004346: bf00 nop
  9055. 8004348: 40010000 .word 0x40010000
  9056. 800434c: 58024400 .word 0x58024400
  9057. 8004350: 40000400 .word 0x40000400
  9058. 08004354 <HAL_TIM_Base_MspInit>:
  9059. * This function configures the hardware resources used in this example
  9060. * @param htim_base: TIM_Base handle pointer
  9061. * @retval None
  9062. */
  9063. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  9064. {
  9065. 8004354: b580 push {r7, lr}
  9066. 8004356: b08c sub sp, #48 @ 0x30
  9067. 8004358: af00 add r7, sp, #0
  9068. 800435a: 6078 str r0, [r7, #4]
  9069. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9070. 800435c: f107 031c add.w r3, r7, #28
  9071. 8004360: 2200 movs r2, #0
  9072. 8004362: 601a str r2, [r3, #0]
  9073. 8004364: 605a str r2, [r3, #4]
  9074. 8004366: 609a str r2, [r3, #8]
  9075. 8004368: 60da str r2, [r3, #12]
  9076. 800436a: 611a str r2, [r3, #16]
  9077. if(htim_base->Instance==TIM2)
  9078. 800436c: 687b ldr r3, [r7, #4]
  9079. 800436e: 681b ldr r3, [r3, #0]
  9080. 8004370: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  9081. 8004374: d137 bne.n 80043e6 <HAL_TIM_Base_MspInit+0x92>
  9082. {
  9083. /* USER CODE BEGIN TIM2_MspInit 0 */
  9084. /* USER CODE END TIM2_MspInit 0 */
  9085. /* Peripheral clock enable */
  9086. __HAL_RCC_TIM2_CLK_ENABLE();
  9087. 8004376: 4b46 ldr r3, [pc, #280] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9088. 8004378: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9089. 800437c: 4a44 ldr r2, [pc, #272] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9090. 800437e: f043 0301 orr.w r3, r3, #1
  9091. 8004382: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9092. 8004386: 4b42 ldr r3, [pc, #264] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9093. 8004388: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9094. 800438c: f003 0301 and.w r3, r3, #1
  9095. 8004390: 61bb str r3, [r7, #24]
  9096. 8004392: 69bb ldr r3, [r7, #24]
  9097. __HAL_RCC_GPIOB_CLK_ENABLE();
  9098. 8004394: 4b3e ldr r3, [pc, #248] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9099. 8004396: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9100. 800439a: 4a3d ldr r2, [pc, #244] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9101. 800439c: f043 0302 orr.w r3, r3, #2
  9102. 80043a0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9103. 80043a4: 4b3a ldr r3, [pc, #232] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9104. 80043a6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9105. 80043aa: f003 0302 and.w r3, r3, #2
  9106. 80043ae: 617b str r3, [r7, #20]
  9107. 80043b0: 697b ldr r3, [r7, #20]
  9108. /**TIM2 GPIO Configuration
  9109. PB10 ------> TIM2_CH3
  9110. PB11 ------> TIM2_CH4
  9111. */
  9112. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  9113. 80043b2: f44f 6340 mov.w r3, #3072 @ 0xc00
  9114. 80043b6: 61fb str r3, [r7, #28]
  9115. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9116. 80043b8: 2302 movs r3, #2
  9117. 80043ba: 623b str r3, [r7, #32]
  9118. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9119. 80043bc: 2300 movs r3, #0
  9120. 80043be: 627b str r3, [r7, #36] @ 0x24
  9121. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9122. 80043c0: 2300 movs r3, #0
  9123. 80043c2: 62bb str r3, [r7, #40] @ 0x28
  9124. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  9125. 80043c4: 2301 movs r3, #1
  9126. 80043c6: 62fb str r3, [r7, #44] @ 0x2c
  9127. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9128. 80043c8: f107 031c add.w r3, r7, #28
  9129. 80043cc: 4619 mov r1, r3
  9130. 80043ce: 4831 ldr r0, [pc, #196] @ (8004494 <HAL_TIM_Base_MspInit+0x140>)
  9131. 80043d0: f006 ff40 bl 800b254 <HAL_GPIO_Init>
  9132. /* TIM2 interrupt Init */
  9133. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  9134. 80043d4: 2200 movs r2, #0
  9135. 80043d6: 2105 movs r1, #5
  9136. 80043d8: 201c movs r0, #28
  9137. 80043da: f003 fc09 bl 8007bf0 <HAL_NVIC_SetPriority>
  9138. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  9139. 80043de: 201c movs r0, #28
  9140. 80043e0: f003 fc20 bl 8007c24 <HAL_NVIC_EnableIRQ>
  9141. /* USER CODE BEGIN TIM8_MspInit 1 */
  9142. /* USER CODE END TIM8_MspInit 1 */
  9143. }
  9144. }
  9145. 80043e4: e050 b.n 8004488 <HAL_TIM_Base_MspInit+0x134>
  9146. else if(htim_base->Instance==TIM4)
  9147. 80043e6: 687b ldr r3, [r7, #4]
  9148. 80043e8: 681b ldr r3, [r3, #0]
  9149. 80043ea: 4a2b ldr r2, [pc, #172] @ (8004498 <HAL_TIM_Base_MspInit+0x144>)
  9150. 80043ec: 4293 cmp r3, r2
  9151. 80043ee: d137 bne.n 8004460 <HAL_TIM_Base_MspInit+0x10c>
  9152. __HAL_RCC_TIM4_CLK_ENABLE();
  9153. 80043f0: 4b27 ldr r3, [pc, #156] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9154. 80043f2: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9155. 80043f6: 4a26 ldr r2, [pc, #152] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9156. 80043f8: f043 0304 orr.w r3, r3, #4
  9157. 80043fc: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9158. 8004400: 4b23 ldr r3, [pc, #140] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9159. 8004402: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9160. 8004406: f003 0304 and.w r3, r3, #4
  9161. 800440a: 613b str r3, [r7, #16]
  9162. 800440c: 693b ldr r3, [r7, #16]
  9163. __HAL_RCC_GPIOD_CLK_ENABLE();
  9164. 800440e: 4b20 ldr r3, [pc, #128] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9165. 8004410: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9166. 8004414: 4a1e ldr r2, [pc, #120] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9167. 8004416: f043 0308 orr.w r3, r3, #8
  9168. 800441a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9169. 800441e: 4b1c ldr r3, [pc, #112] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9170. 8004420: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9171. 8004424: f003 0308 and.w r3, r3, #8
  9172. 8004428: 60fb str r3, [r7, #12]
  9173. 800442a: 68fb ldr r3, [r7, #12]
  9174. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9175. 800442c: f44f 4340 mov.w r3, #49152 @ 0xc000
  9176. 8004430: 61fb str r3, [r7, #28]
  9177. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9178. 8004432: 2302 movs r3, #2
  9179. 8004434: 623b str r3, [r7, #32]
  9180. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9181. 8004436: 2300 movs r3, #0
  9182. 8004438: 627b str r3, [r7, #36] @ 0x24
  9183. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9184. 800443a: 2300 movs r3, #0
  9185. 800443c: 62bb str r3, [r7, #40] @ 0x28
  9186. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  9187. 800443e: 2302 movs r3, #2
  9188. 8004440: 62fb str r3, [r7, #44] @ 0x2c
  9189. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  9190. 8004442: f107 031c add.w r3, r7, #28
  9191. 8004446: 4619 mov r1, r3
  9192. 8004448: 4814 ldr r0, [pc, #80] @ (800449c <HAL_TIM_Base_MspInit+0x148>)
  9193. 800444a: f006 ff03 bl 800b254 <HAL_GPIO_Init>
  9194. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  9195. 800444e: 2200 movs r2, #0
  9196. 8004450: 2105 movs r1, #5
  9197. 8004452: 201e movs r0, #30
  9198. 8004454: f003 fbcc bl 8007bf0 <HAL_NVIC_SetPriority>
  9199. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  9200. 8004458: 201e movs r0, #30
  9201. 800445a: f003 fbe3 bl 8007c24 <HAL_NVIC_EnableIRQ>
  9202. }
  9203. 800445e: e013 b.n 8004488 <HAL_TIM_Base_MspInit+0x134>
  9204. else if(htim_base->Instance==TIM8)
  9205. 8004460: 687b ldr r3, [r7, #4]
  9206. 8004462: 681b ldr r3, [r3, #0]
  9207. 8004464: 4a0e ldr r2, [pc, #56] @ (80044a0 <HAL_TIM_Base_MspInit+0x14c>)
  9208. 8004466: 4293 cmp r3, r2
  9209. 8004468: d10e bne.n 8004488 <HAL_TIM_Base_MspInit+0x134>
  9210. __HAL_RCC_TIM8_CLK_ENABLE();
  9211. 800446a: 4b09 ldr r3, [pc, #36] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9212. 800446c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9213. 8004470: 4a07 ldr r2, [pc, #28] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9214. 8004472: f043 0302 orr.w r3, r3, #2
  9215. 8004476: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9216. 800447a: 4b05 ldr r3, [pc, #20] @ (8004490 <HAL_TIM_Base_MspInit+0x13c>)
  9217. 800447c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9218. 8004480: f003 0302 and.w r3, r3, #2
  9219. 8004484: 60bb str r3, [r7, #8]
  9220. 8004486: 68bb ldr r3, [r7, #8]
  9221. }
  9222. 8004488: bf00 nop
  9223. 800448a: 3730 adds r7, #48 @ 0x30
  9224. 800448c: 46bd mov sp, r7
  9225. 800448e: bd80 pop {r7, pc}
  9226. 8004490: 58024400 .word 0x58024400
  9227. 8004494: 58020400 .word 0x58020400
  9228. 8004498: 40000800 .word 0x40000800
  9229. 800449c: 58020c00 .word 0x58020c00
  9230. 80044a0: 40010400 .word 0x40010400
  9231. 080044a4 <HAL_TIM_MspPostInit>:
  9232. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  9233. {
  9234. 80044a4: b580 push {r7, lr}
  9235. 80044a6: b08a sub sp, #40 @ 0x28
  9236. 80044a8: af00 add r7, sp, #0
  9237. 80044aa: 6078 str r0, [r7, #4]
  9238. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9239. 80044ac: f107 0314 add.w r3, r7, #20
  9240. 80044b0: 2200 movs r2, #0
  9241. 80044b2: 601a str r2, [r3, #0]
  9242. 80044b4: 605a str r2, [r3, #4]
  9243. 80044b6: 609a str r2, [r3, #8]
  9244. 80044b8: 60da str r2, [r3, #12]
  9245. 80044ba: 611a str r2, [r3, #16]
  9246. if(htim->Instance==TIM1)
  9247. 80044bc: 687b ldr r3, [r7, #4]
  9248. 80044be: 681b ldr r3, [r3, #0]
  9249. 80044c0: 4a26 ldr r2, [pc, #152] @ (800455c <HAL_TIM_MspPostInit+0xb8>)
  9250. 80044c2: 4293 cmp r3, r2
  9251. 80044c4: d120 bne.n 8004508 <HAL_TIM_MspPostInit+0x64>
  9252. {
  9253. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  9254. /* USER CODE END TIM1_MspPostInit 0 */
  9255. __HAL_RCC_GPIOA_CLK_ENABLE();
  9256. 80044c6: 4b26 ldr r3, [pc, #152] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9257. 80044c8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9258. 80044cc: 4a24 ldr r2, [pc, #144] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9259. 80044ce: f043 0301 orr.w r3, r3, #1
  9260. 80044d2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9261. 80044d6: 4b22 ldr r3, [pc, #136] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9262. 80044d8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9263. 80044dc: f003 0301 and.w r3, r3, #1
  9264. 80044e0: 613b str r3, [r7, #16]
  9265. 80044e2: 693b ldr r3, [r7, #16]
  9266. /**TIM1 GPIO Configuration
  9267. PA9 ------> TIM1_CH2
  9268. */
  9269. GPIO_InitStruct.Pin = GPIO_PIN_9;
  9270. 80044e4: f44f 7300 mov.w r3, #512 @ 0x200
  9271. 80044e8: 617b str r3, [r7, #20]
  9272. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9273. 80044ea: 2302 movs r3, #2
  9274. 80044ec: 61bb str r3, [r7, #24]
  9275. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9276. 80044ee: 2300 movs r3, #0
  9277. 80044f0: 61fb str r3, [r7, #28]
  9278. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9279. 80044f2: 2300 movs r3, #0
  9280. 80044f4: 623b str r3, [r7, #32]
  9281. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  9282. 80044f6: 2301 movs r3, #1
  9283. 80044f8: 627b str r3, [r7, #36] @ 0x24
  9284. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  9285. 80044fa: f107 0314 add.w r3, r7, #20
  9286. 80044fe: 4619 mov r1, r3
  9287. 8004500: 4818 ldr r0, [pc, #96] @ (8004564 <HAL_TIM_MspPostInit+0xc0>)
  9288. 8004502: f006 fea7 bl 800b254 <HAL_GPIO_Init>
  9289. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  9290. /* USER CODE END TIM3_MspPostInit 1 */
  9291. }
  9292. }
  9293. 8004506: e024 b.n 8004552 <HAL_TIM_MspPostInit+0xae>
  9294. else if(htim->Instance==TIM3)
  9295. 8004508: 687b ldr r3, [r7, #4]
  9296. 800450a: 681b ldr r3, [r3, #0]
  9297. 800450c: 4a16 ldr r2, [pc, #88] @ (8004568 <HAL_TIM_MspPostInit+0xc4>)
  9298. 800450e: 4293 cmp r3, r2
  9299. 8004510: d11f bne.n 8004552 <HAL_TIM_MspPostInit+0xae>
  9300. __HAL_RCC_GPIOC_CLK_ENABLE();
  9301. 8004512: 4b13 ldr r3, [pc, #76] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9302. 8004514: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9303. 8004518: 4a11 ldr r2, [pc, #68] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9304. 800451a: f043 0304 orr.w r3, r3, #4
  9305. 800451e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9306. 8004522: 4b0f ldr r3, [pc, #60] @ (8004560 <HAL_TIM_MspPostInit+0xbc>)
  9307. 8004524: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9308. 8004528: f003 0304 and.w r3, r3, #4
  9309. 800452c: 60fb str r3, [r7, #12]
  9310. 800452e: 68fb ldr r3, [r7, #12]
  9311. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  9312. 8004530: f44f 7370 mov.w r3, #960 @ 0x3c0
  9313. 8004534: 617b str r3, [r7, #20]
  9314. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9315. 8004536: 2302 movs r3, #2
  9316. 8004538: 61bb str r3, [r7, #24]
  9317. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9318. 800453a: 2300 movs r3, #0
  9319. 800453c: 61fb str r3, [r7, #28]
  9320. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  9321. 800453e: 2301 movs r3, #1
  9322. 8004540: 623b str r3, [r7, #32]
  9323. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  9324. 8004542: 2302 movs r3, #2
  9325. 8004544: 627b str r3, [r7, #36] @ 0x24
  9326. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  9327. 8004546: f107 0314 add.w r3, r7, #20
  9328. 800454a: 4619 mov r1, r3
  9329. 800454c: 4807 ldr r0, [pc, #28] @ (800456c <HAL_TIM_MspPostInit+0xc8>)
  9330. 800454e: f006 fe81 bl 800b254 <HAL_GPIO_Init>
  9331. }
  9332. 8004552: bf00 nop
  9333. 8004554: 3728 adds r7, #40 @ 0x28
  9334. 8004556: 46bd mov sp, r7
  9335. 8004558: bd80 pop {r7, pc}
  9336. 800455a: bf00 nop
  9337. 800455c: 40010000 .word 0x40010000
  9338. 8004560: 58024400 .word 0x58024400
  9339. 8004564: 58020000 .word 0x58020000
  9340. 8004568: 40000400 .word 0x40000400
  9341. 800456c: 58020800 .word 0x58020800
  9342. 08004570 <HAL_UART_MspInit>:
  9343. * This function configures the hardware resources used in this example
  9344. * @param huart: UART handle pointer
  9345. * @retval None
  9346. */
  9347. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  9348. {
  9349. 8004570: b580 push {r7, lr}
  9350. 8004572: b0bc sub sp, #240 @ 0xf0
  9351. 8004574: af00 add r7, sp, #0
  9352. 8004576: 6078 str r0, [r7, #4]
  9353. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9354. 8004578: f107 03dc add.w r3, r7, #220 @ 0xdc
  9355. 800457c: 2200 movs r2, #0
  9356. 800457e: 601a str r2, [r3, #0]
  9357. 8004580: 605a str r2, [r3, #4]
  9358. 8004582: 609a str r2, [r3, #8]
  9359. 8004584: 60da str r2, [r3, #12]
  9360. 8004586: 611a str r2, [r3, #16]
  9361. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  9362. 8004588: f107 0318 add.w r3, r7, #24
  9363. 800458c: 22c0 movs r2, #192 @ 0xc0
  9364. 800458e: 2100 movs r1, #0
  9365. 8004590: 4618 mov r0, r3
  9366. 8004592: f013 ff01 bl 8018398 <memset>
  9367. if(huart->Instance==UART8)
  9368. 8004596: 687b ldr r3, [r7, #4]
  9369. 8004598: 681b ldr r3, [r3, #0]
  9370. 800459a: 4a55 ldr r2, [pc, #340] @ (80046f0 <HAL_UART_MspInit+0x180>)
  9371. 800459c: 4293 cmp r3, r2
  9372. 800459e: d14e bne.n 800463e <HAL_UART_MspInit+0xce>
  9373. /* USER CODE END UART8_MspInit 0 */
  9374. /** Initializes the peripherals clock
  9375. */
  9376. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  9377. 80045a0: f04f 0202 mov.w r2, #2
  9378. 80045a4: f04f 0300 mov.w r3, #0
  9379. 80045a8: e9c7 2306 strd r2, r3, [r7, #24]
  9380. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  9381. 80045ac: 2300 movs r3, #0
  9382. 80045ae: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  9383. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9384. 80045b2: f107 0318 add.w r3, r7, #24
  9385. 80045b6: 4618 mov r0, r3
  9386. 80045b8: f008 fa32 bl 800ca20 <HAL_RCCEx_PeriphCLKConfig>
  9387. 80045bc: 4603 mov r3, r0
  9388. 80045be: 2b00 cmp r3, #0
  9389. 80045c0: d001 beq.n 80045c6 <HAL_UART_MspInit+0x56>
  9390. {
  9391. Error_Handler();
  9392. 80045c2: f7fd fc83 bl 8001ecc <Error_Handler>
  9393. }
  9394. /* Peripheral clock enable */
  9395. __HAL_RCC_UART8_CLK_ENABLE();
  9396. 80045c6: 4b4b ldr r3, [pc, #300] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9397. 80045c8: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9398. 80045cc: 4a49 ldr r2, [pc, #292] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9399. 80045ce: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  9400. 80045d2: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9401. 80045d6: 4b47 ldr r3, [pc, #284] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9402. 80045d8: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9403. 80045dc: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  9404. 80045e0: 617b str r3, [r7, #20]
  9405. 80045e2: 697b ldr r3, [r7, #20]
  9406. __HAL_RCC_GPIOE_CLK_ENABLE();
  9407. 80045e4: 4b43 ldr r3, [pc, #268] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9408. 80045e6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9409. 80045ea: 4a42 ldr r2, [pc, #264] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9410. 80045ec: f043 0310 orr.w r3, r3, #16
  9411. 80045f0: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9412. 80045f4: 4b3f ldr r3, [pc, #252] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9413. 80045f6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9414. 80045fa: f003 0310 and.w r3, r3, #16
  9415. 80045fe: 613b str r3, [r7, #16]
  9416. 8004600: 693b ldr r3, [r7, #16]
  9417. /**UART8 GPIO Configuration
  9418. PE0 ------> UART8_RX
  9419. PE1 ------> UART8_TX
  9420. */
  9421. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  9422. 8004602: 2303 movs r3, #3
  9423. 8004604: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9424. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9425. 8004608: 2302 movs r3, #2
  9426. 800460a: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9427. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9428. 800460e: 2300 movs r3, #0
  9429. 8004610: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9430. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9431. 8004614: 2300 movs r3, #0
  9432. 8004616: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9433. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  9434. 800461a: 2308 movs r3, #8
  9435. 800461c: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9436. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  9437. 8004620: f107 03dc add.w r3, r7, #220 @ 0xdc
  9438. 8004624: 4619 mov r1, r3
  9439. 8004626: 4834 ldr r0, [pc, #208] @ (80046f8 <HAL_UART_MspInit+0x188>)
  9440. 8004628: f006 fe14 bl 800b254 <HAL_GPIO_Init>
  9441. /* UART8 interrupt Init */
  9442. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  9443. 800462c: 2200 movs r2, #0
  9444. 800462e: 2105 movs r1, #5
  9445. 8004630: 2053 movs r0, #83 @ 0x53
  9446. 8004632: f003 fadd bl 8007bf0 <HAL_NVIC_SetPriority>
  9447. HAL_NVIC_EnableIRQ(UART8_IRQn);
  9448. 8004636: 2053 movs r0, #83 @ 0x53
  9449. 8004638: f003 faf4 bl 8007c24 <HAL_NVIC_EnableIRQ>
  9450. /* USER CODE BEGIN USART1_MspInit 1 */
  9451. /* USER CODE END USART1_MspInit 1 */
  9452. }
  9453. }
  9454. 800463c: e053 b.n 80046e6 <HAL_UART_MspInit+0x176>
  9455. else if(huart->Instance==USART1)
  9456. 800463e: 687b ldr r3, [r7, #4]
  9457. 8004640: 681b ldr r3, [r3, #0]
  9458. 8004642: 4a2e ldr r2, [pc, #184] @ (80046fc <HAL_UART_MspInit+0x18c>)
  9459. 8004644: 4293 cmp r3, r2
  9460. 8004646: d14e bne.n 80046e6 <HAL_UART_MspInit+0x176>
  9461. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  9462. 8004648: f04f 0201 mov.w r2, #1
  9463. 800464c: f04f 0300 mov.w r3, #0
  9464. 8004650: e9c7 2306 strd r2, r3, [r7, #24]
  9465. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  9466. 8004654: 2300 movs r3, #0
  9467. 8004656: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  9468. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9469. 800465a: f107 0318 add.w r3, r7, #24
  9470. 800465e: 4618 mov r0, r3
  9471. 8004660: f008 f9de bl 800ca20 <HAL_RCCEx_PeriphCLKConfig>
  9472. 8004664: 4603 mov r3, r0
  9473. 8004666: 2b00 cmp r3, #0
  9474. 8004668: d001 beq.n 800466e <HAL_UART_MspInit+0xfe>
  9475. Error_Handler();
  9476. 800466a: f7fd fc2f bl 8001ecc <Error_Handler>
  9477. __HAL_RCC_USART1_CLK_ENABLE();
  9478. 800466e: 4b21 ldr r3, [pc, #132] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9479. 8004670: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9480. 8004674: 4a1f ldr r2, [pc, #124] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9481. 8004676: f043 0310 orr.w r3, r3, #16
  9482. 800467a: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9483. 800467e: 4b1d ldr r3, [pc, #116] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9484. 8004680: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9485. 8004684: f003 0310 and.w r3, r3, #16
  9486. 8004688: 60fb str r3, [r7, #12]
  9487. 800468a: 68fb ldr r3, [r7, #12]
  9488. __HAL_RCC_GPIOB_CLK_ENABLE();
  9489. 800468c: 4b19 ldr r3, [pc, #100] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9490. 800468e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9491. 8004692: 4a18 ldr r2, [pc, #96] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9492. 8004694: f043 0302 orr.w r3, r3, #2
  9493. 8004698: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9494. 800469c: 4b15 ldr r3, [pc, #84] @ (80046f4 <HAL_UART_MspInit+0x184>)
  9495. 800469e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9496. 80046a2: f003 0302 and.w r3, r3, #2
  9497. 80046a6: 60bb str r3, [r7, #8]
  9498. 80046a8: 68bb ldr r3, [r7, #8]
  9499. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9500. 80046aa: f44f 4340 mov.w r3, #49152 @ 0xc000
  9501. 80046ae: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9502. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9503. 80046b2: 2302 movs r3, #2
  9504. 80046b4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9505. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9506. 80046b8: 2300 movs r3, #0
  9507. 80046ba: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9508. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9509. 80046be: 2300 movs r3, #0
  9510. 80046c0: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9511. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  9512. 80046c4: 2304 movs r3, #4
  9513. 80046c6: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9514. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9515. 80046ca: f107 03dc add.w r3, r7, #220 @ 0xdc
  9516. 80046ce: 4619 mov r1, r3
  9517. 80046d0: 480b ldr r0, [pc, #44] @ (8004700 <HAL_UART_MspInit+0x190>)
  9518. 80046d2: f006 fdbf bl 800b254 <HAL_GPIO_Init>
  9519. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  9520. 80046d6: 2200 movs r2, #0
  9521. 80046d8: 2105 movs r1, #5
  9522. 80046da: 2025 movs r0, #37 @ 0x25
  9523. 80046dc: f003 fa88 bl 8007bf0 <HAL_NVIC_SetPriority>
  9524. HAL_NVIC_EnableIRQ(USART1_IRQn);
  9525. 80046e0: 2025 movs r0, #37 @ 0x25
  9526. 80046e2: f003 fa9f bl 8007c24 <HAL_NVIC_EnableIRQ>
  9527. }
  9528. 80046e6: bf00 nop
  9529. 80046e8: 37f0 adds r7, #240 @ 0xf0
  9530. 80046ea: 46bd mov sp, r7
  9531. 80046ec: bd80 pop {r7, pc}
  9532. 80046ee: bf00 nop
  9533. 80046f0: 40007c00 .word 0x40007c00
  9534. 80046f4: 58024400 .word 0x58024400
  9535. 80046f8: 58021000 .word 0x58021000
  9536. 80046fc: 40011000 .word 0x40011000
  9537. 8004700: 58020400 .word 0x58020400
  9538. 08004704 <HAL_InitTick>:
  9539. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  9540. * @param TickPriority: Tick interrupt priority.
  9541. * @retval HAL status
  9542. */
  9543. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  9544. {
  9545. 8004704: b580 push {r7, lr}
  9546. 8004706: b090 sub sp, #64 @ 0x40
  9547. 8004708: af00 add r7, sp, #0
  9548. 800470a: 6078 str r0, [r7, #4]
  9549. uint32_t uwTimclock, uwAPB1Prescaler;
  9550. uint32_t uwPrescalerValue;
  9551. uint32_t pFLatency;
  9552. /*Configure the TIM6 IRQ priority */
  9553. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  9554. 800470c: 687b ldr r3, [r7, #4]
  9555. 800470e: 2b0f cmp r3, #15
  9556. 8004710: d827 bhi.n 8004762 <HAL_InitTick+0x5e>
  9557. {
  9558. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  9559. 8004712: 2200 movs r2, #0
  9560. 8004714: 6879 ldr r1, [r7, #4]
  9561. 8004716: 2036 movs r0, #54 @ 0x36
  9562. 8004718: f003 fa6a bl 8007bf0 <HAL_NVIC_SetPriority>
  9563. /* Enable the TIM6 global Interrupt */
  9564. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  9565. 800471c: 2036 movs r0, #54 @ 0x36
  9566. 800471e: f003 fa81 bl 8007c24 <HAL_NVIC_EnableIRQ>
  9567. uwTickPrio = TickPriority;
  9568. 8004722: 4a29 ldr r2, [pc, #164] @ (80047c8 <HAL_InitTick+0xc4>)
  9569. 8004724: 687b ldr r3, [r7, #4]
  9570. 8004726: 6013 str r3, [r2, #0]
  9571. {
  9572. return HAL_ERROR;
  9573. }
  9574. /* Enable TIM6 clock */
  9575. __HAL_RCC_TIM6_CLK_ENABLE();
  9576. 8004728: 4b28 ldr r3, [pc, #160] @ (80047cc <HAL_InitTick+0xc8>)
  9577. 800472a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9578. 800472e: 4a27 ldr r2, [pc, #156] @ (80047cc <HAL_InitTick+0xc8>)
  9579. 8004730: f043 0310 orr.w r3, r3, #16
  9580. 8004734: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9581. 8004738: 4b24 ldr r3, [pc, #144] @ (80047cc <HAL_InitTick+0xc8>)
  9582. 800473a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9583. 800473e: f003 0310 and.w r3, r3, #16
  9584. 8004742: 60fb str r3, [r7, #12]
  9585. 8004744: 68fb ldr r3, [r7, #12]
  9586. /* Get clock configuration */
  9587. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  9588. 8004746: f107 0210 add.w r2, r7, #16
  9589. 800474a: f107 0314 add.w r3, r7, #20
  9590. 800474e: 4611 mov r1, r2
  9591. 8004750: 4618 mov r0, r3
  9592. 8004752: f008 f923 bl 800c99c <HAL_RCC_GetClockConfig>
  9593. /* Get APB1 prescaler */
  9594. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  9595. 8004756: 6abb ldr r3, [r7, #40] @ 0x28
  9596. 8004758: 63bb str r3, [r7, #56] @ 0x38
  9597. /* Compute TIM6 clock */
  9598. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  9599. 800475a: 6bbb ldr r3, [r7, #56] @ 0x38
  9600. 800475c: 2b00 cmp r3, #0
  9601. 800475e: d106 bne.n 800476e <HAL_InitTick+0x6a>
  9602. 8004760: e001 b.n 8004766 <HAL_InitTick+0x62>
  9603. return HAL_ERROR;
  9604. 8004762: 2301 movs r3, #1
  9605. 8004764: e02b b.n 80047be <HAL_InitTick+0xba>
  9606. {
  9607. uwTimclock = HAL_RCC_GetPCLK1Freq();
  9608. 8004766: f008 f8ed bl 800c944 <HAL_RCC_GetPCLK1Freq>
  9609. 800476a: 63f8 str r0, [r7, #60] @ 0x3c
  9610. 800476c: e004 b.n 8004778 <HAL_InitTick+0x74>
  9611. }
  9612. else
  9613. {
  9614. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  9615. 800476e: f008 f8e9 bl 800c944 <HAL_RCC_GetPCLK1Freq>
  9616. 8004772: 4603 mov r3, r0
  9617. 8004774: 005b lsls r3, r3, #1
  9618. 8004776: 63fb str r3, [r7, #60] @ 0x3c
  9619. }
  9620. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  9621. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  9622. 8004778: 6bfb ldr r3, [r7, #60] @ 0x3c
  9623. 800477a: 4a15 ldr r2, [pc, #84] @ (80047d0 <HAL_InitTick+0xcc>)
  9624. 800477c: fba2 2303 umull r2, r3, r2, r3
  9625. 8004780: 0c9b lsrs r3, r3, #18
  9626. 8004782: 3b01 subs r3, #1
  9627. 8004784: 637b str r3, [r7, #52] @ 0x34
  9628. /* Initialize TIM6 */
  9629. htim6.Instance = TIM6;
  9630. 8004786: 4b13 ldr r3, [pc, #76] @ (80047d4 <HAL_InitTick+0xd0>)
  9631. 8004788: 4a13 ldr r2, [pc, #76] @ (80047d8 <HAL_InitTick+0xd4>)
  9632. 800478a: 601a str r2, [r3, #0]
  9633. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  9634. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  9635. + ClockDivision = 0
  9636. + Counter direction = Up
  9637. */
  9638. htim6.Init.Period = (1000000U / 1000U) - 1U;
  9639. 800478c: 4b11 ldr r3, [pc, #68] @ (80047d4 <HAL_InitTick+0xd0>)
  9640. 800478e: f240 32e7 movw r2, #999 @ 0x3e7
  9641. 8004792: 60da str r2, [r3, #12]
  9642. htim6.Init.Prescaler = uwPrescalerValue;
  9643. 8004794: 4a0f ldr r2, [pc, #60] @ (80047d4 <HAL_InitTick+0xd0>)
  9644. 8004796: 6b7b ldr r3, [r7, #52] @ 0x34
  9645. 8004798: 6053 str r3, [r2, #4]
  9646. htim6.Init.ClockDivision = 0;
  9647. 800479a: 4b0e ldr r3, [pc, #56] @ (80047d4 <HAL_InitTick+0xd0>)
  9648. 800479c: 2200 movs r2, #0
  9649. 800479e: 611a str r2, [r3, #16]
  9650. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  9651. 80047a0: 4b0c ldr r3, [pc, #48] @ (80047d4 <HAL_InitTick+0xd0>)
  9652. 80047a2: 2200 movs r2, #0
  9653. 80047a4: 609a str r2, [r3, #8]
  9654. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  9655. 80047a6: 480b ldr r0, [pc, #44] @ (80047d4 <HAL_InitTick+0xd0>)
  9656. 80047a8: f00a fe7e bl 800f4a8 <HAL_TIM_Base_Init>
  9657. 80047ac: 4603 mov r3, r0
  9658. 80047ae: 2b00 cmp r3, #0
  9659. 80047b0: d104 bne.n 80047bc <HAL_InitTick+0xb8>
  9660. {
  9661. /* Start the TIM time Base generation in interrupt mode */
  9662. return HAL_TIM_Base_Start_IT(&htim6);
  9663. 80047b2: 4808 ldr r0, [pc, #32] @ (80047d4 <HAL_InitTick+0xd0>)
  9664. 80047b4: f00a ff40 bl 800f638 <HAL_TIM_Base_Start_IT>
  9665. 80047b8: 4603 mov r3, r0
  9666. 80047ba: e000 b.n 80047be <HAL_InitTick+0xba>
  9667. }
  9668. /* Return function status */
  9669. return HAL_ERROR;
  9670. 80047bc: 2301 movs r3, #1
  9671. }
  9672. 80047be: 4618 mov r0, r3
  9673. 80047c0: 3740 adds r7, #64 @ 0x40
  9674. 80047c2: 46bd mov sp, r7
  9675. 80047c4: bd80 pop {r7, pc}
  9676. 80047c6: bf00 nop
  9677. 80047c8: 2400003c .word 0x2400003c
  9678. 80047cc: 58024400 .word 0x58024400
  9679. 80047d0: 431bde83 .word 0x431bde83
  9680. 80047d4: 24000920 .word 0x24000920
  9681. 80047d8: 40001000 .word 0x40001000
  9682. 080047dc <NMI_Handler>:
  9683. /******************************************************************************/
  9684. /**
  9685. * @brief This function handles Non maskable interrupt.
  9686. */
  9687. void NMI_Handler(void)
  9688. {
  9689. 80047dc: b480 push {r7}
  9690. 80047de: af00 add r7, sp, #0
  9691. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  9692. /* USER CODE END NonMaskableInt_IRQn 0 */
  9693. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  9694. while (1)
  9695. 80047e0: bf00 nop
  9696. 80047e2: e7fd b.n 80047e0 <NMI_Handler+0x4>
  9697. 080047e4 <HardFault_Handler>:
  9698. /**
  9699. * @brief This function handles Hard fault interrupt.
  9700. */
  9701. void HardFault_Handler(void)
  9702. {
  9703. 80047e4: b480 push {r7}
  9704. 80047e6: af00 add r7, sp, #0
  9705. /* USER CODE BEGIN HardFault_IRQn 0 */
  9706. /* USER CODE END HardFault_IRQn 0 */
  9707. while (1)
  9708. 80047e8: bf00 nop
  9709. 80047ea: e7fd b.n 80047e8 <HardFault_Handler+0x4>
  9710. 080047ec <MemManage_Handler>:
  9711. /**
  9712. * @brief This function handles Memory management fault.
  9713. */
  9714. void MemManage_Handler(void)
  9715. {
  9716. 80047ec: b480 push {r7}
  9717. 80047ee: af00 add r7, sp, #0
  9718. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  9719. /* USER CODE END MemoryManagement_IRQn 0 */
  9720. while (1)
  9721. 80047f0: bf00 nop
  9722. 80047f2: e7fd b.n 80047f0 <MemManage_Handler+0x4>
  9723. 080047f4 <BusFault_Handler>:
  9724. /**
  9725. * @brief This function handles Pre-fetch fault, memory access fault.
  9726. */
  9727. void BusFault_Handler(void)
  9728. {
  9729. 80047f4: b480 push {r7}
  9730. 80047f6: af00 add r7, sp, #0
  9731. /* USER CODE BEGIN BusFault_IRQn 0 */
  9732. /* USER CODE END BusFault_IRQn 0 */
  9733. while (1)
  9734. 80047f8: bf00 nop
  9735. 80047fa: e7fd b.n 80047f8 <BusFault_Handler+0x4>
  9736. 080047fc <UsageFault_Handler>:
  9737. /**
  9738. * @brief This function handles Undefined instruction or illegal state.
  9739. */
  9740. void UsageFault_Handler(void)
  9741. {
  9742. 80047fc: b480 push {r7}
  9743. 80047fe: af00 add r7, sp, #0
  9744. /* USER CODE BEGIN UsageFault_IRQn 0 */
  9745. /* USER CODE END UsageFault_IRQn 0 */
  9746. while (1)
  9747. 8004800: bf00 nop
  9748. 8004802: e7fd b.n 8004800 <UsageFault_Handler+0x4>
  9749. 08004804 <DebugMon_Handler>:
  9750. /**
  9751. * @brief This function handles Debug monitor.
  9752. */
  9753. void DebugMon_Handler(void)
  9754. {
  9755. 8004804: b480 push {r7}
  9756. 8004806: af00 add r7, sp, #0
  9757. /* USER CODE END DebugMonitor_IRQn 0 */
  9758. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  9759. /* USER CODE END DebugMonitor_IRQn 1 */
  9760. }
  9761. 8004808: bf00 nop
  9762. 800480a: 46bd mov sp, r7
  9763. 800480c: f85d 7b04 ldr.w r7, [sp], #4
  9764. 8004810: 4770 bx lr
  9765. 08004812 <RCC_IRQHandler>:
  9766. /**
  9767. * @brief This function handles RCC global interrupt.
  9768. */
  9769. void RCC_IRQHandler(void)
  9770. {
  9771. 8004812: b480 push {r7}
  9772. 8004814: af00 add r7, sp, #0
  9773. /* USER CODE END RCC_IRQn 0 */
  9774. /* USER CODE BEGIN RCC_IRQn 1 */
  9775. /* USER CODE END RCC_IRQn 1 */
  9776. }
  9777. 8004816: bf00 nop
  9778. 8004818: 46bd mov sp, r7
  9779. 800481a: f85d 7b04 ldr.w r7, [sp], #4
  9780. 800481e: 4770 bx lr
  9781. 08004820 <DMA1_Stream0_IRQHandler>:
  9782. /**
  9783. * @brief This function handles DMA1 stream0 global interrupt.
  9784. */
  9785. void DMA1_Stream0_IRQHandler(void)
  9786. {
  9787. 8004820: b580 push {r7, lr}
  9788. 8004822: af00 add r7, sp, #0
  9789. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  9790. /* USER CODE END DMA1_Stream0_IRQn 0 */
  9791. HAL_DMA_IRQHandler(&hdma_adc1);
  9792. 8004824: 4802 ldr r0, [pc, #8] @ (8004830 <DMA1_Stream0_IRQHandler+0x10>)
  9793. 8004826: f005 fa03 bl 8009c30 <HAL_DMA_IRQHandler>
  9794. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  9795. /* USER CODE END DMA1_Stream0_IRQn 1 */
  9796. }
  9797. 800482a: bf00 nop
  9798. 800482c: bd80 pop {r7, pc}
  9799. 800482e: bf00 nop
  9800. 8004830: 2400024c .word 0x2400024c
  9801. 08004834 <DMA1_Stream1_IRQHandler>:
  9802. /**
  9803. * @brief This function handles DMA1 stream1 global interrupt.
  9804. */
  9805. void DMA1_Stream1_IRQHandler(void)
  9806. {
  9807. 8004834: b580 push {r7, lr}
  9808. 8004836: af00 add r7, sp, #0
  9809. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  9810. /* USER CODE END DMA1_Stream1_IRQn 0 */
  9811. HAL_DMA_IRQHandler(&hdma_adc2);
  9812. 8004838: 4802 ldr r0, [pc, #8] @ (8004844 <DMA1_Stream1_IRQHandler+0x10>)
  9813. 800483a: f005 f9f9 bl 8009c30 <HAL_DMA_IRQHandler>
  9814. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  9815. /* USER CODE END DMA1_Stream1_IRQn 1 */
  9816. }
  9817. 800483e: bf00 nop
  9818. 8004840: bd80 pop {r7, pc}
  9819. 8004842: bf00 nop
  9820. 8004844: 240002c4 .word 0x240002c4
  9821. 08004848 <DMA1_Stream2_IRQHandler>:
  9822. /**
  9823. * @brief This function handles DMA1 stream2 global interrupt.
  9824. */
  9825. void DMA1_Stream2_IRQHandler(void)
  9826. {
  9827. 8004848: b580 push {r7, lr}
  9828. 800484a: af00 add r7, sp, #0
  9829. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  9830. /* USER CODE END DMA1_Stream2_IRQn 0 */
  9831. HAL_DMA_IRQHandler(&hdma_adc3);
  9832. 800484c: 4802 ldr r0, [pc, #8] @ (8004858 <DMA1_Stream2_IRQHandler+0x10>)
  9833. 800484e: f005 f9ef bl 8009c30 <HAL_DMA_IRQHandler>
  9834. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  9835. /* USER CODE END DMA1_Stream2_IRQn 1 */
  9836. }
  9837. 8004852: bf00 nop
  9838. 8004854: bd80 pop {r7, pc}
  9839. 8004856: bf00 nop
  9840. 8004858: 2400033c .word 0x2400033c
  9841. 0800485c <EXTI9_5_IRQHandler>:
  9842. /**
  9843. * @brief This function handles EXTI line[9:5] interrupts.
  9844. */
  9845. void EXTI9_5_IRQHandler(void)
  9846. {
  9847. 800485c: b580 push {r7, lr}
  9848. 800485e: af00 add r7, sp, #0
  9849. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  9850. /* USER CODE END EXTI9_5_IRQn 0 */
  9851. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  9852. 8004860: f44f 7080 mov.w r0, #256 @ 0x100
  9853. 8004864: f006 fef1 bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9854. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  9855. 8004868: f44f 7000 mov.w r0, #512 @ 0x200
  9856. 800486c: f006 feed bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9857. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  9858. /* USER CODE END EXTI9_5_IRQn 1 */
  9859. }
  9860. 8004870: bf00 nop
  9861. 8004872: bd80 pop {r7, pc}
  9862. 08004874 <TIM2_IRQHandler>:
  9863. /**
  9864. * @brief This function handles TIM2 global interrupt.
  9865. */
  9866. void TIM2_IRQHandler(void)
  9867. {
  9868. 8004874: b580 push {r7, lr}
  9869. 8004876: af00 add r7, sp, #0
  9870. /* USER CODE BEGIN TIM2_IRQn 0 */
  9871. /* USER CODE END TIM2_IRQn 0 */
  9872. HAL_TIM_IRQHandler(&htim2);
  9873. 8004878: 4802 ldr r0, [pc, #8] @ (8004884 <TIM2_IRQHandler+0x10>)
  9874. 800487a: f00b fb03 bl 800fe84 <HAL_TIM_IRQHandler>
  9875. /* USER CODE BEGIN TIM2_IRQn 1 */
  9876. /* USER CODE END TIM2_IRQn 1 */
  9877. }
  9878. 800487e: bf00 nop
  9879. 8004880: bd80 pop {r7, pc}
  9880. 8004882: bf00 nop
  9881. 8004884: 24000488 .word 0x24000488
  9882. 08004888 <TIM4_IRQHandler>:
  9883. /**
  9884. * @brief This function handles TIM4 global interrupt.
  9885. */
  9886. void TIM4_IRQHandler(void)
  9887. {
  9888. 8004888: b580 push {r7, lr}
  9889. 800488a: af00 add r7, sp, #0
  9890. /* USER CODE BEGIN TIM4_IRQn 0 */
  9891. /* USER CODE END TIM4_IRQn 0 */
  9892. HAL_TIM_IRQHandler(&htim4);
  9893. 800488c: 4802 ldr r0, [pc, #8] @ (8004898 <TIM4_IRQHandler+0x10>)
  9894. 800488e: f00b faf9 bl 800fe84 <HAL_TIM_IRQHandler>
  9895. /* USER CODE BEGIN TIM4_IRQn 1 */
  9896. /* USER CODE END TIM4_IRQn 1 */
  9897. }
  9898. 8004892: bf00 nop
  9899. 8004894: bd80 pop {r7, pc}
  9900. 8004896: bf00 nop
  9901. 8004898: 24000520 .word 0x24000520
  9902. 0800489c <USART1_IRQHandler>:
  9903. /**
  9904. * @brief This function handles USART1 global interrupt.
  9905. */
  9906. void USART1_IRQHandler(void)
  9907. {
  9908. 800489c: b580 push {r7, lr}
  9909. 800489e: af00 add r7, sp, #0
  9910. /* USER CODE BEGIN USART1_IRQn 0 */
  9911. /* USER CODE END USART1_IRQn 0 */
  9912. HAL_UART_IRQHandler(&huart1);
  9913. 80048a0: 4802 ldr r0, [pc, #8] @ (80048ac <USART1_IRQHandler+0x10>)
  9914. 80048a2: f00c feb3 bl 801160c <HAL_UART_IRQHandler>
  9915. /* USER CODE BEGIN USART1_IRQn 1 */
  9916. /* USER CODE END USART1_IRQn 1 */
  9917. }
  9918. 80048a6: bf00 nop
  9919. 80048a8: bd80 pop {r7, pc}
  9920. 80048aa: bf00 nop
  9921. 80048ac: 2400064c .word 0x2400064c
  9922. 080048b0 <EXTI15_10_IRQHandler>:
  9923. /**
  9924. * @brief This function handles EXTI line[15:10] interrupts.
  9925. */
  9926. void EXTI15_10_IRQHandler(void)
  9927. {
  9928. 80048b0: b580 push {r7, lr}
  9929. 80048b2: af00 add r7, sp, #0
  9930. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  9931. /* USER CODE END EXTI15_10_IRQn 0 */
  9932. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  9933. 80048b4: f44f 6080 mov.w r0, #1024 @ 0x400
  9934. 80048b8: f006 fec7 bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9935. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  9936. 80048bc: f44f 6000 mov.w r0, #2048 @ 0x800
  9937. 80048c0: f006 fec3 bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9938. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  9939. 80048c4: f44f 5080 mov.w r0, #4096 @ 0x1000
  9940. 80048c8: f006 febf bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9941. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  9942. 80048cc: f44f 5000 mov.w r0, #8192 @ 0x2000
  9943. 80048d0: f006 febb bl 800b64a <HAL_GPIO_EXTI_IRQHandler>
  9944. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  9945. /* USER CODE END EXTI15_10_IRQn 1 */
  9946. }
  9947. 80048d4: bf00 nop
  9948. 80048d6: bd80 pop {r7, pc}
  9949. 080048d8 <TIM6_DAC_IRQHandler>:
  9950. /**
  9951. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  9952. */
  9953. void TIM6_DAC_IRQHandler(void)
  9954. {
  9955. 80048d8: b580 push {r7, lr}
  9956. 80048da: af00 add r7, sp, #0
  9957. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  9958. /* USER CODE END TIM6_DAC_IRQn 0 */
  9959. if (hdac1.State != HAL_DAC_STATE_RESET) {
  9960. 80048dc: 4b06 ldr r3, [pc, #24] @ (80048f8 <TIM6_DAC_IRQHandler+0x20>)
  9961. 80048de: 791b ldrb r3, [r3, #4]
  9962. 80048e0: b2db uxtb r3, r3
  9963. 80048e2: 2b00 cmp r3, #0
  9964. 80048e4: d002 beq.n 80048ec <TIM6_DAC_IRQHandler+0x14>
  9965. HAL_DAC_IRQHandler(&hdac1);
  9966. 80048e6: 4804 ldr r0, [pc, #16] @ (80048f8 <TIM6_DAC_IRQHandler+0x20>)
  9967. 80048e8: f003 fca1 bl 800822e <HAL_DAC_IRQHandler>
  9968. }
  9969. HAL_TIM_IRQHandler(&htim6);
  9970. 80048ec: 4803 ldr r0, [pc, #12] @ (80048fc <TIM6_DAC_IRQHandler+0x24>)
  9971. 80048ee: f00b fac9 bl 800fe84 <HAL_TIM_IRQHandler>
  9972. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  9973. /* USER CODE END TIM6_DAC_IRQn 1 */
  9974. }
  9975. 80048f2: bf00 nop
  9976. 80048f4: bd80 pop {r7, pc}
  9977. 80048f6: bf00 nop
  9978. 80048f8: 24000404 .word 0x24000404
  9979. 80048fc: 24000920 .word 0x24000920
  9980. 08004900 <UART8_IRQHandler>:
  9981. /**
  9982. * @brief This function handles UART8 global interrupt.
  9983. */
  9984. void UART8_IRQHandler(void)
  9985. {
  9986. 8004900: b580 push {r7, lr}
  9987. 8004902: af00 add r7, sp, #0
  9988. /* USER CODE BEGIN UART8_IRQn 0 */
  9989. /* USER CODE END UART8_IRQn 0 */
  9990. HAL_UART_IRQHandler(&huart8);
  9991. 8004904: 4802 ldr r0, [pc, #8] @ (8004910 <UART8_IRQHandler+0x10>)
  9992. 8004906: f00c fe81 bl 801160c <HAL_UART_IRQHandler>
  9993. /* USER CODE BEGIN UART8_IRQn 1 */
  9994. /* USER CODE END UART8_IRQn 1 */
  9995. }
  9996. 800490a: bf00 nop
  9997. 800490c: bd80 pop {r7, pc}
  9998. 800490e: bf00 nop
  9999. 8004910: 240005b8 .word 0x240005b8
  10000. 08004914 <SystemInit>:
  10001. * configuration.
  10002. * @param None
  10003. * @retval None
  10004. */
  10005. void SystemInit (void)
  10006. {
  10007. 8004914: b480 push {r7}
  10008. 8004916: af00 add r7, sp, #0
  10009. __IO uint32_t tmpreg;
  10010. #endif /* DATA_IN_D2_SRAM */
  10011. /* FPU settings ------------------------------------------------------------*/
  10012. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  10013. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  10014. 8004918: 4b37 ldr r3, [pc, #220] @ (80049f8 <SystemInit+0xe4>)
  10015. 800491a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  10016. 800491e: 4a36 ldr r2, [pc, #216] @ (80049f8 <SystemInit+0xe4>)
  10017. 8004920: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  10018. 8004924: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  10019. #endif
  10020. /* Reset the RCC clock configuration to the default reset state ------------*/
  10021. /* Increasing the CPU frequency */
  10022. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  10023. 8004928: 4b34 ldr r3, [pc, #208] @ (80049fc <SystemInit+0xe8>)
  10024. 800492a: 681b ldr r3, [r3, #0]
  10025. 800492c: f003 030f and.w r3, r3, #15
  10026. 8004930: 2b06 cmp r3, #6
  10027. 8004932: d807 bhi.n 8004944 <SystemInit+0x30>
  10028. {
  10029. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  10030. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  10031. 8004934: 4b31 ldr r3, [pc, #196] @ (80049fc <SystemInit+0xe8>)
  10032. 8004936: 681b ldr r3, [r3, #0]
  10033. 8004938: f023 030f bic.w r3, r3, #15
  10034. 800493c: 4a2f ldr r2, [pc, #188] @ (80049fc <SystemInit+0xe8>)
  10035. 800493e: f043 0307 orr.w r3, r3, #7
  10036. 8004942: 6013 str r3, [r2, #0]
  10037. }
  10038. /* Set HSION bit */
  10039. RCC->CR |= RCC_CR_HSION;
  10040. 8004944: 4b2e ldr r3, [pc, #184] @ (8004a00 <SystemInit+0xec>)
  10041. 8004946: 681b ldr r3, [r3, #0]
  10042. 8004948: 4a2d ldr r2, [pc, #180] @ (8004a00 <SystemInit+0xec>)
  10043. 800494a: f043 0301 orr.w r3, r3, #1
  10044. 800494e: 6013 str r3, [r2, #0]
  10045. /* Reset CFGR register */
  10046. RCC->CFGR = 0x00000000;
  10047. 8004950: 4b2b ldr r3, [pc, #172] @ (8004a00 <SystemInit+0xec>)
  10048. 8004952: 2200 movs r2, #0
  10049. 8004954: 611a str r2, [r3, #16]
  10050. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  10051. RCC->CR &= 0xEAF6ED7FU;
  10052. 8004956: 4b2a ldr r3, [pc, #168] @ (8004a00 <SystemInit+0xec>)
  10053. 8004958: 681a ldr r2, [r3, #0]
  10054. 800495a: 4929 ldr r1, [pc, #164] @ (8004a00 <SystemInit+0xec>)
  10055. 800495c: 4b29 ldr r3, [pc, #164] @ (8004a04 <SystemInit+0xf0>)
  10056. 800495e: 4013 ands r3, r2
  10057. 8004960: 600b str r3, [r1, #0]
  10058. /* Decreasing the number of wait states because of lower CPU frequency */
  10059. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  10060. 8004962: 4b26 ldr r3, [pc, #152] @ (80049fc <SystemInit+0xe8>)
  10061. 8004964: 681b ldr r3, [r3, #0]
  10062. 8004966: f003 0308 and.w r3, r3, #8
  10063. 800496a: 2b00 cmp r3, #0
  10064. 800496c: d007 beq.n 800497e <SystemInit+0x6a>
  10065. {
  10066. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  10067. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  10068. 800496e: 4b23 ldr r3, [pc, #140] @ (80049fc <SystemInit+0xe8>)
  10069. 8004970: 681b ldr r3, [r3, #0]
  10070. 8004972: f023 030f bic.w r3, r3, #15
  10071. 8004976: 4a21 ldr r2, [pc, #132] @ (80049fc <SystemInit+0xe8>)
  10072. 8004978: f043 0307 orr.w r3, r3, #7
  10073. 800497c: 6013 str r3, [r2, #0]
  10074. }
  10075. #if defined(D3_SRAM_BASE)
  10076. /* Reset D1CFGR register */
  10077. RCC->D1CFGR = 0x00000000;
  10078. 800497e: 4b20 ldr r3, [pc, #128] @ (8004a00 <SystemInit+0xec>)
  10079. 8004980: 2200 movs r2, #0
  10080. 8004982: 619a str r2, [r3, #24]
  10081. /* Reset D2CFGR register */
  10082. RCC->D2CFGR = 0x00000000;
  10083. 8004984: 4b1e ldr r3, [pc, #120] @ (8004a00 <SystemInit+0xec>)
  10084. 8004986: 2200 movs r2, #0
  10085. 8004988: 61da str r2, [r3, #28]
  10086. /* Reset D3CFGR register */
  10087. RCC->D3CFGR = 0x00000000;
  10088. 800498a: 4b1d ldr r3, [pc, #116] @ (8004a00 <SystemInit+0xec>)
  10089. 800498c: 2200 movs r2, #0
  10090. 800498e: 621a str r2, [r3, #32]
  10091. /* Reset SRDCFGR register */
  10092. RCC->SRDCFGR = 0x00000000;
  10093. #endif
  10094. /* Reset PLLCKSELR register */
  10095. RCC->PLLCKSELR = 0x02020200;
  10096. 8004990: 4b1b ldr r3, [pc, #108] @ (8004a00 <SystemInit+0xec>)
  10097. 8004992: 4a1d ldr r2, [pc, #116] @ (8004a08 <SystemInit+0xf4>)
  10098. 8004994: 629a str r2, [r3, #40] @ 0x28
  10099. /* Reset PLLCFGR register */
  10100. RCC->PLLCFGR = 0x01FF0000;
  10101. 8004996: 4b1a ldr r3, [pc, #104] @ (8004a00 <SystemInit+0xec>)
  10102. 8004998: 4a1c ldr r2, [pc, #112] @ (8004a0c <SystemInit+0xf8>)
  10103. 800499a: 62da str r2, [r3, #44] @ 0x2c
  10104. /* Reset PLL1DIVR register */
  10105. RCC->PLL1DIVR = 0x01010280;
  10106. 800499c: 4b18 ldr r3, [pc, #96] @ (8004a00 <SystemInit+0xec>)
  10107. 800499e: 4a1c ldr r2, [pc, #112] @ (8004a10 <SystemInit+0xfc>)
  10108. 80049a0: 631a str r2, [r3, #48] @ 0x30
  10109. /* Reset PLL1FRACR register */
  10110. RCC->PLL1FRACR = 0x00000000;
  10111. 80049a2: 4b17 ldr r3, [pc, #92] @ (8004a00 <SystemInit+0xec>)
  10112. 80049a4: 2200 movs r2, #0
  10113. 80049a6: 635a str r2, [r3, #52] @ 0x34
  10114. /* Reset PLL2DIVR register */
  10115. RCC->PLL2DIVR = 0x01010280;
  10116. 80049a8: 4b15 ldr r3, [pc, #84] @ (8004a00 <SystemInit+0xec>)
  10117. 80049aa: 4a19 ldr r2, [pc, #100] @ (8004a10 <SystemInit+0xfc>)
  10118. 80049ac: 639a str r2, [r3, #56] @ 0x38
  10119. /* Reset PLL2FRACR register */
  10120. RCC->PLL2FRACR = 0x00000000;
  10121. 80049ae: 4b14 ldr r3, [pc, #80] @ (8004a00 <SystemInit+0xec>)
  10122. 80049b0: 2200 movs r2, #0
  10123. 80049b2: 63da str r2, [r3, #60] @ 0x3c
  10124. /* Reset PLL3DIVR register */
  10125. RCC->PLL3DIVR = 0x01010280;
  10126. 80049b4: 4b12 ldr r3, [pc, #72] @ (8004a00 <SystemInit+0xec>)
  10127. 80049b6: 4a16 ldr r2, [pc, #88] @ (8004a10 <SystemInit+0xfc>)
  10128. 80049b8: 641a str r2, [r3, #64] @ 0x40
  10129. /* Reset PLL3FRACR register */
  10130. RCC->PLL3FRACR = 0x00000000;
  10131. 80049ba: 4b11 ldr r3, [pc, #68] @ (8004a00 <SystemInit+0xec>)
  10132. 80049bc: 2200 movs r2, #0
  10133. 80049be: 645a str r2, [r3, #68] @ 0x44
  10134. /* Reset HSEBYP bit */
  10135. RCC->CR &= 0xFFFBFFFFU;
  10136. 80049c0: 4b0f ldr r3, [pc, #60] @ (8004a00 <SystemInit+0xec>)
  10137. 80049c2: 681b ldr r3, [r3, #0]
  10138. 80049c4: 4a0e ldr r2, [pc, #56] @ (8004a00 <SystemInit+0xec>)
  10139. 80049c6: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  10140. 80049ca: 6013 str r3, [r2, #0]
  10141. /* Disable all interrupts */
  10142. RCC->CIER = 0x00000000;
  10143. 80049cc: 4b0c ldr r3, [pc, #48] @ (8004a00 <SystemInit+0xec>)
  10144. 80049ce: 2200 movs r2, #0
  10145. 80049d0: 661a str r2, [r3, #96] @ 0x60
  10146. #if (STM32H7_DEV_ID == 0x450UL)
  10147. /* dual core CM7 or single core line */
  10148. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  10149. 80049d2: 4b10 ldr r3, [pc, #64] @ (8004a14 <SystemInit+0x100>)
  10150. 80049d4: 681a ldr r2, [r3, #0]
  10151. 80049d6: 4b10 ldr r3, [pc, #64] @ (8004a18 <SystemInit+0x104>)
  10152. 80049d8: 4013 ands r3, r2
  10153. 80049da: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  10154. 80049de: d202 bcs.n 80049e6 <SystemInit+0xd2>
  10155. {
  10156. /* if stm32h7 revY*/
  10157. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  10158. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  10159. 80049e0: 4b0e ldr r3, [pc, #56] @ (8004a1c <SystemInit+0x108>)
  10160. 80049e2: 2201 movs r2, #1
  10161. 80049e4: 601a str r2, [r3, #0]
  10162. /*
  10163. * Disable the FMC bank1 (enabled after reset).
  10164. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  10165. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  10166. */
  10167. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  10168. 80049e6: 4b0e ldr r3, [pc, #56] @ (8004a20 <SystemInit+0x10c>)
  10169. 80049e8: f243 02d2 movw r2, #12498 @ 0x30d2
  10170. 80049ec: 601a str r2, [r3, #0]
  10171. #if defined(USER_VECT_TAB_ADDRESS)
  10172. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  10173. #endif /* USER_VECT_TAB_ADDRESS */
  10174. #endif /*DUAL_CORE && CORE_CM4*/
  10175. }
  10176. 80049ee: bf00 nop
  10177. 80049f0: 46bd mov sp, r7
  10178. 80049f2: f85d 7b04 ldr.w r7, [sp], #4
  10179. 80049f6: 4770 bx lr
  10180. 80049f8: e000ed00 .word 0xe000ed00
  10181. 80049fc: 52002000 .word 0x52002000
  10182. 8004a00: 58024400 .word 0x58024400
  10183. 8004a04: eaf6ed7f .word 0xeaf6ed7f
  10184. 8004a08: 02020200 .word 0x02020200
  10185. 8004a0c: 01ff0000 .word 0x01ff0000
  10186. 8004a10: 01010280 .word 0x01010280
  10187. 8004a14: 5c001000 .word 0x5c001000
  10188. 8004a18: ffff0000 .word 0xffff0000
  10189. 8004a1c: 51008108 .word 0x51008108
  10190. 8004a20: 52004000 .word 0x52004000
  10191. 08004a24 <__NVIC_SystemReset>:
  10192. {
  10193. 8004a24: b480 push {r7}
  10194. 8004a26: af00 add r7, sp, #0
  10195. __ASM volatile ("dsb 0xF":::"memory");
  10196. 8004a28: f3bf 8f4f dsb sy
  10197. }
  10198. 8004a2c: bf00 nop
  10199. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  10200. 8004a2e: 4b06 ldr r3, [pc, #24] @ (8004a48 <__NVIC_SystemReset+0x24>)
  10201. 8004a30: 68db ldr r3, [r3, #12]
  10202. 8004a32: f403 62e0 and.w r2, r3, #1792 @ 0x700
  10203. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  10204. 8004a36: 4904 ldr r1, [pc, #16] @ (8004a48 <__NVIC_SystemReset+0x24>)
  10205. 8004a38: 4b04 ldr r3, [pc, #16] @ (8004a4c <__NVIC_SystemReset+0x28>)
  10206. 8004a3a: 4313 orrs r3, r2
  10207. 8004a3c: 60cb str r3, [r1, #12]
  10208. __ASM volatile ("dsb 0xF":::"memory");
  10209. 8004a3e: f3bf 8f4f dsb sy
  10210. }
  10211. 8004a42: bf00 nop
  10212. __NOP();
  10213. 8004a44: bf00 nop
  10214. 8004a46: e7fd b.n 8004a44 <__NVIC_SystemReset+0x20>
  10215. 8004a48: e000ed00 .word 0xe000ed00
  10216. 8004a4c: 05fa0004 .word 0x05fa0004
  10217. 08004a50 <UartTasksInit>:
  10218. uint8_t outputDataBuffer[OUTPUT_DATA_BUFF_SIZE];
  10219. uint16_t outputDataBufferPos = 0;
  10220. extern RNG_HandleTypeDef hrng;
  10221. void UartTasksInit (void) {
  10222. 8004a50: b580 push {r7, lr}
  10223. 8004a52: af00 add r7, sp, #0
  10224. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  10225. 8004a54: 4b24 ldr r3, [pc, #144] @ (8004ae8 <UartTasksInit+0x98>)
  10226. 8004a56: 4a25 ldr r2, [pc, #148] @ (8004aec <UartTasksInit+0x9c>)
  10227. 8004a58: 601a str r2, [r3, #0]
  10228. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  10229. 8004a5a: 4b23 ldr r3, [pc, #140] @ (8004ae8 <UartTasksInit+0x98>)
  10230. 8004a5c: f44f 7280 mov.w r2, #256 @ 0x100
  10231. 8004a60: 809a strh r2, [r3, #4]
  10232. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  10233. 8004a62: 4b21 ldr r3, [pc, #132] @ (8004ae8 <UartTasksInit+0x98>)
  10234. 8004a64: 4a22 ldr r2, [pc, #136] @ (8004af0 <UartTasksInit+0xa0>)
  10235. 8004a66: 609a str r2, [r3, #8]
  10236. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  10237. 8004a68: 4b1f ldr r3, [pc, #124] @ (8004ae8 <UartTasksInit+0x98>)
  10238. 8004a6a: f44f 7280 mov.w r2, #256 @ 0x100
  10239. 8004a6e: 809a strh r2, [r3, #4]
  10240. uart1TaskData.frameData = uart1TaskFrameData;
  10241. 8004a70: 4b1d ldr r3, [pc, #116] @ (8004ae8 <UartTasksInit+0x98>)
  10242. 8004a72: 4a20 ldr r2, [pc, #128] @ (8004af4 <UartTasksInit+0xa4>)
  10243. 8004a74: 611a str r2, [r3, #16]
  10244. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  10245. 8004a76: 4b1c ldr r3, [pc, #112] @ (8004ae8 <UartTasksInit+0x98>)
  10246. 8004a78: f44f 7280 mov.w r2, #256 @ 0x100
  10247. 8004a7c: 829a strh r2, [r3, #20]
  10248. uart1TaskData.huart = &huart1;
  10249. 8004a7e: 4b1a ldr r3, [pc, #104] @ (8004ae8 <UartTasksInit+0x98>)
  10250. 8004a80: 4a1d ldr r2, [pc, #116] @ (8004af8 <UartTasksInit+0xa8>)
  10251. 8004a82: 631a str r2, [r3, #48] @ 0x30
  10252. uart1TaskData.uartNumber = 1;
  10253. 8004a84: 4b18 ldr r3, [pc, #96] @ (8004ae8 <UartTasksInit+0x98>)
  10254. 8004a86: 2201 movs r2, #1
  10255. 8004a88: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10256. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  10257. 8004a8c: 4b16 ldr r3, [pc, #88] @ (8004ae8 <UartTasksInit+0x98>)
  10258. 8004a8e: 4a1b ldr r2, [pc, #108] @ (8004afc <UartTasksInit+0xac>)
  10259. 8004a90: 629a str r2, [r3, #40] @ 0x28
  10260. uart1TaskData.processRxDataMsgBuffer = NULL;
  10261. 8004a92: 4b15 ldr r3, [pc, #84] @ (8004ae8 <UartTasksInit+0x98>)
  10262. 8004a94: 2200 movs r2, #0
  10263. 8004a96: 625a str r2, [r3, #36] @ 0x24
  10264. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  10265. 8004a98: 4b19 ldr r3, [pc, #100] @ (8004b00 <UartTasksInit+0xb0>)
  10266. 8004a9a: 4a1a ldr r2, [pc, #104] @ (8004b04 <UartTasksInit+0xb4>)
  10267. 8004a9c: 601a str r2, [r3, #0]
  10268. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  10269. 8004a9e: 4b18 ldr r3, [pc, #96] @ (8004b00 <UartTasksInit+0xb0>)
  10270. 8004aa0: f44f 7280 mov.w r2, #256 @ 0x100
  10271. 8004aa4: 809a strh r2, [r3, #4]
  10272. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  10273. 8004aa6: 4b16 ldr r3, [pc, #88] @ (8004b00 <UartTasksInit+0xb0>)
  10274. 8004aa8: 4a17 ldr r2, [pc, #92] @ (8004b08 <UartTasksInit+0xb8>)
  10275. 8004aaa: 609a str r2, [r3, #8]
  10276. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  10277. 8004aac: 4b14 ldr r3, [pc, #80] @ (8004b00 <UartTasksInit+0xb0>)
  10278. 8004aae: f44f 7280 mov.w r2, #256 @ 0x100
  10279. 8004ab2: 809a strh r2, [r3, #4]
  10280. uart8TaskData.frameData = uart8TaskFrameData;
  10281. 8004ab4: 4b12 ldr r3, [pc, #72] @ (8004b00 <UartTasksInit+0xb0>)
  10282. 8004ab6: 4a15 ldr r2, [pc, #84] @ (8004b0c <UartTasksInit+0xbc>)
  10283. 8004ab8: 611a str r2, [r3, #16]
  10284. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  10285. 8004aba: 4b11 ldr r3, [pc, #68] @ (8004b00 <UartTasksInit+0xb0>)
  10286. 8004abc: f44f 7280 mov.w r2, #256 @ 0x100
  10287. 8004ac0: 829a strh r2, [r3, #20]
  10288. uart8TaskData.huart = &huart8;
  10289. 8004ac2: 4b0f ldr r3, [pc, #60] @ (8004b00 <UartTasksInit+0xb0>)
  10290. 8004ac4: 4a12 ldr r2, [pc, #72] @ (8004b10 <UartTasksInit+0xc0>)
  10291. 8004ac6: 631a str r2, [r3, #48] @ 0x30
  10292. uart8TaskData.uartNumber = 8;
  10293. 8004ac8: 4b0d ldr r3, [pc, #52] @ (8004b00 <UartTasksInit+0xb0>)
  10294. 8004aca: 2208 movs r2, #8
  10295. 8004acc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10296. uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  10297. 8004ad0: 4b0b ldr r3, [pc, #44] @ (8004b00 <UartTasksInit+0xb0>)
  10298. 8004ad2: 4a10 ldr r2, [pc, #64] @ (8004b14 <UartTasksInit+0xc4>)
  10299. 8004ad4: 629a str r2, [r3, #40] @ 0x28
  10300. uart8TaskData.processRxDataMsgBuffer = NULL;
  10301. 8004ad6: 4b0a ldr r3, [pc, #40] @ (8004b00 <UartTasksInit+0xb0>)
  10302. 8004ad8: 2200 movs r2, #0
  10303. 8004ada: 625a str r2, [r3, #36] @ 0x24
  10304. #ifdef USE_UART8_INSTEAD_UART1
  10305. UartTaskCreate (&uart8TaskData);
  10306. #else
  10307. UartTaskCreate (&uart1TaskData);
  10308. 8004adc: 4802 ldr r0, [pc, #8] @ (8004ae8 <UartTasksInit+0x98>)
  10309. 8004ade: f000 f81b bl 8004b18 <UartTaskCreate>
  10310. #endif
  10311. }
  10312. 8004ae2: bf00 nop
  10313. 8004ae4: bd80 pop {r7, pc}
  10314. 8004ae6: bf00 nop
  10315. 8004ae8: 24000f6c .word 0x24000f6c
  10316. 8004aec: 2400096c .word 0x2400096c
  10317. 8004af0: 24000a6c .word 0x24000a6c
  10318. 8004af4: 24000b6c .word 0x24000b6c
  10319. 8004af8: 2400064c .word 0x2400064c
  10320. 8004afc: 080051c1 .word 0x080051c1
  10321. 8004b00: 24000fa4 .word 0x24000fa4
  10322. 8004b04: 24000c6c .word 0x24000c6c
  10323. 8004b08: 24000d6c .word 0x24000d6c
  10324. 8004b0c: 24000e6c .word 0x24000e6c
  10325. 8004b10: 240005b8 .word 0x240005b8
  10326. 8004b14: 080051a5 .word 0x080051a5
  10327. 08004b18 <UartTaskCreate>:
  10328. void UartTaskCreate (UartTaskData* uartTaskData) {
  10329. 8004b18: b580 push {r7, lr}
  10330. 8004b1a: b08c sub sp, #48 @ 0x30
  10331. 8004b1c: af00 add r7, sp, #0
  10332. 8004b1e: 6078 str r0, [r7, #4]
  10333. osThreadAttr_t osThreadAttrRxUart = { 0 };
  10334. 8004b20: f107 030c add.w r3, r7, #12
  10335. 8004b24: 2224 movs r2, #36 @ 0x24
  10336. 8004b26: 2100 movs r1, #0
  10337. 8004b28: 4618 mov r0, r3
  10338. 8004b2a: f013 fc35 bl 8018398 <memset>
  10339. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  10340. 8004b2e: f44f 6380 mov.w r3, #1024 @ 0x400
  10341. 8004b32: 623b str r3, [r7, #32]
  10342. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  10343. 8004b34: 2328 movs r3, #40 @ 0x28
  10344. 8004b36: 627b str r3, [r7, #36] @ 0x24
  10345. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  10346. 8004b38: f107 030c add.w r3, r7, #12
  10347. 8004b3c: 461a mov r2, r3
  10348. 8004b3e: 6879 ldr r1, [r7, #4]
  10349. 8004b40: 4804 ldr r0, [pc, #16] @ (8004b54 <UartTaskCreate+0x3c>)
  10350. 8004b42: f00f fad1 bl 80140e8 <osThreadNew>
  10351. 8004b46: 4602 mov r2, r0
  10352. 8004b48: 687b ldr r3, [r7, #4]
  10353. 8004b4a: 619a str r2, [r3, #24]
  10354. }
  10355. 8004b4c: bf00 nop
  10356. 8004b4e: 3730 adds r7, #48 @ 0x30
  10357. 8004b50: 46bd mov sp, r7
  10358. 8004b52: bd80 pop {r7, pc}
  10359. 8004b54: 08004c6d .word 0x08004c6d
  10360. 08004b58 <HAL_UART_RxCpltCallback>:
  10361. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  10362. 8004b58: b480 push {r7}
  10363. 8004b5a: b083 sub sp, #12
  10364. 8004b5c: af00 add r7, sp, #0
  10365. 8004b5e: 6078 str r0, [r7, #4]
  10366. }
  10367. 8004b60: bf00 nop
  10368. 8004b62: 370c adds r7, #12
  10369. 8004b64: 46bd mov sp, r7
  10370. 8004b66: f85d 7b04 ldr.w r7, [sp], #4
  10371. 8004b6a: 4770 bx lr
  10372. 08004b6c <HAL_UARTEx_RxEventCallback>:
  10373. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  10374. 8004b6c: b580 push {r7, lr}
  10375. 8004b6e: b082 sub sp, #8
  10376. 8004b70: af00 add r7, sp, #0
  10377. 8004b72: 6078 str r0, [r7, #4]
  10378. 8004b74: 460b mov r3, r1
  10379. 8004b76: 807b strh r3, [r7, #2]
  10380. if (huart->Instance == USART1) {
  10381. 8004b78: 687b ldr r3, [r7, #4]
  10382. 8004b7a: 681b ldr r3, [r3, #0]
  10383. 8004b7c: 4a0c ldr r2, [pc, #48] @ (8004bb0 <HAL_UARTEx_RxEventCallback+0x44>)
  10384. 8004b7e: 4293 cmp r3, r2
  10385. 8004b80: d106 bne.n 8004b90 <HAL_UARTEx_RxEventCallback+0x24>
  10386. HandleUartRxCallback (&uart1TaskData, huart, Size);
  10387. 8004b82: 887b ldrh r3, [r7, #2]
  10388. 8004b84: 461a mov r2, r3
  10389. 8004b86: 6879 ldr r1, [r7, #4]
  10390. 8004b88: 480a ldr r0, [pc, #40] @ (8004bb4 <HAL_UARTEx_RxEventCallback+0x48>)
  10391. 8004b8a: f000 f823 bl 8004bd4 <HandleUartRxCallback>
  10392. } else if (huart->Instance == UART8) {
  10393. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10394. }
  10395. }
  10396. 8004b8e: e00a b.n 8004ba6 <HAL_UARTEx_RxEventCallback+0x3a>
  10397. } else if (huart->Instance == UART8) {
  10398. 8004b90: 687b ldr r3, [r7, #4]
  10399. 8004b92: 681b ldr r3, [r3, #0]
  10400. 8004b94: 4a08 ldr r2, [pc, #32] @ (8004bb8 <HAL_UARTEx_RxEventCallback+0x4c>)
  10401. 8004b96: 4293 cmp r3, r2
  10402. 8004b98: d105 bne.n 8004ba6 <HAL_UARTEx_RxEventCallback+0x3a>
  10403. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10404. 8004b9a: 887b ldrh r3, [r7, #2]
  10405. 8004b9c: 461a mov r2, r3
  10406. 8004b9e: 6879 ldr r1, [r7, #4]
  10407. 8004ba0: 4806 ldr r0, [pc, #24] @ (8004bbc <HAL_UARTEx_RxEventCallback+0x50>)
  10408. 8004ba2: f000 f817 bl 8004bd4 <HandleUartRxCallback>
  10409. }
  10410. 8004ba6: bf00 nop
  10411. 8004ba8: 3708 adds r7, #8
  10412. 8004baa: 46bd mov sp, r7
  10413. 8004bac: bd80 pop {r7, pc}
  10414. 8004bae: bf00 nop
  10415. 8004bb0: 40011000 .word 0x40011000
  10416. 8004bb4: 24000f6c .word 0x24000f6c
  10417. 8004bb8: 40007c00 .word 0x40007c00
  10418. 8004bbc: 24000fa4 .word 0x24000fa4
  10419. 08004bc0 <HAL_UART_TxCpltCallback>:
  10420. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  10421. 8004bc0: b480 push {r7}
  10422. 8004bc2: b083 sub sp, #12
  10423. 8004bc4: af00 add r7, sp, #0
  10424. 8004bc6: 6078 str r0, [r7, #4]
  10425. if (huart->Instance == UART8) {
  10426. }
  10427. }
  10428. 8004bc8: bf00 nop
  10429. 8004bca: 370c adds r7, #12
  10430. 8004bcc: 46bd mov sp, r7
  10431. 8004bce: f85d 7b04 ldr.w r7, [sp], #4
  10432. 8004bd2: 4770 bx lr
  10433. 08004bd4 <HandleUartRxCallback>:
  10434. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  10435. 8004bd4: b580 push {r7, lr}
  10436. 8004bd6: b088 sub sp, #32
  10437. 8004bd8: af02 add r7, sp, #8
  10438. 8004bda: 60f8 str r0, [r7, #12]
  10439. 8004bdc: 60b9 str r1, [r7, #8]
  10440. 8004bde: 4613 mov r3, r2
  10441. 8004be0: 80fb strh r3, [r7, #6]
  10442. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  10443. 8004be2: 2300 movs r3, #0
  10444. 8004be4: 617b str r3, [r7, #20]
  10445. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10446. 8004be6: 68fb ldr r3, [r7, #12]
  10447. 8004be8: 6a1b ldr r3, [r3, #32]
  10448. 8004bea: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10449. 8004bee: 4618 mov r0, r3
  10450. 8004bf0: f00f fca5 bl 801453e <osMutexAcquire>
  10451. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  10452. 8004bf4: 68fb ldr r3, [r7, #12]
  10453. 8004bf6: 691b ldr r3, [r3, #16]
  10454. 8004bf8: 68fa ldr r2, [r7, #12]
  10455. 8004bfa: 8ad2 ldrh r2, [r2, #22]
  10456. 8004bfc: 1898 adds r0, r3, r2
  10457. 8004bfe: 68fb ldr r3, [r7, #12]
  10458. 8004c00: 681b ldr r3, [r3, #0]
  10459. 8004c02: 88fa ldrh r2, [r7, #6]
  10460. 8004c04: 4619 mov r1, r3
  10461. 8004c06: f013 fc51 bl 80184ac <memcpy>
  10462. uartTaskData->frameBytesCount += Size;
  10463. 8004c0a: 68fb ldr r3, [r7, #12]
  10464. 8004c0c: 8ada ldrh r2, [r3, #22]
  10465. 8004c0e: 88fb ldrh r3, [r7, #6]
  10466. 8004c10: 4413 add r3, r2
  10467. 8004c12: b29a uxth r2, r3
  10468. 8004c14: 68fb ldr r3, [r7, #12]
  10469. 8004c16: 82da strh r2, [r3, #22]
  10470. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10471. 8004c18: 68fb ldr r3, [r7, #12]
  10472. 8004c1a: 6a1b ldr r3, [r3, #32]
  10473. 8004c1c: 4618 mov r0, r3
  10474. 8004c1e: f00f fcd9 bl 80145d4 <osMutexRelease>
  10475. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  10476. 8004c22: 68fb ldr r3, [r7, #12]
  10477. 8004c24: 6998 ldr r0, [r3, #24]
  10478. 8004c26: 88f9 ldrh r1, [r7, #6]
  10479. 8004c28: f107 0314 add.w r3, r7, #20
  10480. 8004c2c: 9300 str r3, [sp, #0]
  10481. 8004c2e: 2300 movs r3, #0
  10482. 8004c30: 2203 movs r2, #3
  10483. 8004c32: f012 f9c9 bl 8016fc8 <xTaskGenericNotifyFromISR>
  10484. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10485. 8004c36: 68fb ldr r3, [r7, #12]
  10486. 8004c38: 6b18 ldr r0, [r3, #48] @ 0x30
  10487. 8004c3a: 68fb ldr r3, [r7, #12]
  10488. 8004c3c: 6819 ldr r1, [r3, #0]
  10489. 8004c3e: 68fb ldr r3, [r7, #12]
  10490. 8004c40: 889b ldrh r3, [r3, #4]
  10491. 8004c42: 461a mov r2, r3
  10492. 8004c44: f00f f923 bl 8013e8e <HAL_UARTEx_ReceiveToIdle_IT>
  10493. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  10494. 8004c48: 697b ldr r3, [r7, #20]
  10495. 8004c4a: 2b00 cmp r3, #0
  10496. 8004c4c: d007 beq.n 8004c5e <HandleUartRxCallback+0x8a>
  10497. 8004c4e: 4b06 ldr r3, [pc, #24] @ (8004c68 <HandleUartRxCallback+0x94>)
  10498. 8004c50: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  10499. 8004c54: 601a str r2, [r3, #0]
  10500. 8004c56: f3bf 8f4f dsb sy
  10501. 8004c5a: f3bf 8f6f isb sy
  10502. }
  10503. 8004c5e: bf00 nop
  10504. 8004c60: 3718 adds r7, #24
  10505. 8004c62: 46bd mov sp, r7
  10506. 8004c64: bd80 pop {r7, pc}
  10507. 8004c66: bf00 nop
  10508. 8004c68: e000ed04 .word 0xe000ed04
  10509. 08004c6c <UartRxTask>:
  10510. void UartRxTask (void* argument) {
  10511. 8004c6c: b580 push {r7, lr}
  10512. 8004c6e: b0d2 sub sp, #328 @ 0x148
  10513. 8004c70: af02 add r7, sp, #8
  10514. 8004c72: f507 73a0 add.w r3, r7, #320 @ 0x140
  10515. 8004c76: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10516. 8004c7a: 6018 str r0, [r3, #0]
  10517. UartTaskData* uartTaskData = (UartTaskData*)argument;
  10518. 8004c7c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10519. 8004c80: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10520. 8004c84: 681b ldr r3, [r3, #0]
  10521. 8004c86: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10522. SerialProtocolFrameData spFrameData = { 0 };
  10523. 8004c8a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10524. 8004c8e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10525. 8004c92: 4618 mov r0, r3
  10526. 8004c94: f44f 7386 mov.w r3, #268 @ 0x10c
  10527. 8004c98: 461a mov r2, r3
  10528. 8004c9a: 2100 movs r1, #0
  10529. 8004c9c: f013 fb7c bl 8018398 <memset>
  10530. uint32_t bytesRec = 0;
  10531. 8004ca0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10532. 8004ca4: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10533. 8004ca8: 2200 movs r2, #0
  10534. 8004caa: 601a str r2, [r3, #0]
  10535. uint32_t crc = 0;
  10536. 8004cac: 2300 movs r3, #0
  10537. 8004cae: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  10538. uint16_t frameCommandRaw = 0x0000;
  10539. 8004cb2: 2300 movs r3, #0
  10540. 8004cb4: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10541. uint16_t frameBytesCount = 0;
  10542. 8004cb8: 2300 movs r3, #0
  10543. 8004cba: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10544. uint16_t frameCrc = 0;
  10545. 8004cbe: 2300 movs r3, #0
  10546. 8004cc0: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10547. uint16_t frameTotalLength = 0;
  10548. 8004cc4: 2300 movs r3, #0
  10549. 8004cc6: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10550. uint16_t dataToSend = 0;
  10551. 8004cca: 2300 movs r3, #0
  10552. 8004ccc: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10553. portBASE_TYPE crcPass = pdFAIL;
  10554. 8004cd0: 2300 movs r3, #0
  10555. 8004cd2: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10556. portBASE_TYPE proceed = pdFALSE;
  10557. 8004cd6: 2300 movs r3, #0
  10558. 8004cd8: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10559. portBASE_TYPE frameTimeout = pdFAIL;
  10560. 8004cdc: 2300 movs r3, #0
  10561. 8004cde: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10562. enum SerialReceiverStates receverState = srWaitForHeader;
  10563. 8004ce2: 2300 movs r3, #0
  10564. 8004ce4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10565. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  10566. 8004ce8: 2000 movs r0, #0
  10567. 8004cea: f00f fba2 bl 8014432 <osMutexNew>
  10568. 8004cee: 4602 mov r2, r0
  10569. 8004cf0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10570. 8004cf4: 621a str r2, [r3, #32]
  10571. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10572. 8004cf6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10573. 8004cfa: 6b18 ldr r0, [r3, #48] @ 0x30
  10574. 8004cfc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10575. 8004d00: 6819 ldr r1, [r3, #0]
  10576. 8004d02: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10577. 8004d06: 889b ldrh r3, [r3, #4]
  10578. 8004d08: 461a mov r2, r3
  10579. 8004d0a: f00f f8c0 bl 8013e8e <HAL_UARTEx_ReceiveToIdle_IT>
  10580. while (pdTRUE) {
  10581. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10582. 8004d0e: f107 020c add.w r2, r7, #12
  10583. 8004d12: f44f 63fa mov.w r3, #2000 @ 0x7d0
  10584. 8004d16: 2100 movs r1, #0
  10585. 8004d18: 2000 movs r0, #0
  10586. 8004d1a: f012 f833 bl 8016d84 <xTaskNotifyWait>
  10587. 8004d1e: 4603 mov r3, r0
  10588. 8004d20: 2b00 cmp r3, #0
  10589. 8004d22: bf0c ite eq
  10590. 8004d24: 2301 moveq r3, #1
  10591. 8004d26: 2300 movne r3, #0
  10592. 8004d28: b2db uxtb r3, r3
  10593. 8004d2a: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10594. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10595. 8004d2e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10596. 8004d32: 6a1b ldr r3, [r3, #32]
  10597. 8004d34: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10598. 8004d38: 4618 mov r0, r3
  10599. 8004d3a: f00f fc00 bl 801453e <osMutexAcquire>
  10600. frameBytesCount = uartTaskData->frameBytesCount;
  10601. 8004d3e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10602. 8004d42: 8adb ldrh r3, [r3, #22]
  10603. 8004d44: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10604. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10605. 8004d48: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10606. 8004d4c: 6a1b ldr r3, [r3, #32]
  10607. 8004d4e: 4618 mov r0, r3
  10608. 8004d50: f00f fc40 bl 80145d4 <osMutexRelease>
  10609. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  10610. 8004d54: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10611. 8004d58: 2b01 cmp r3, #1
  10612. 8004d5a: d10a bne.n 8004d72 <UartRxTask+0x106>
  10613. 8004d5c: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10614. 8004d60: 2b00 cmp r3, #0
  10615. 8004d62: d006 beq.n 8004d72 <UartRxTask+0x106>
  10616. receverState = srFail;
  10617. 8004d64: 2304 movs r3, #4
  10618. 8004d66: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10619. proceed = pdTRUE;
  10620. 8004d6a: 2301 movs r3, #1
  10621. 8004d6c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10622. 8004d70: e01b b.n 8004daa <UartRxTask+0x13e>
  10623. } else {
  10624. if (frameTimeout == pdFALSE) {
  10625. 8004d72: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10626. 8004d76: 2b00 cmp r3, #0
  10627. 8004d78: d103 bne.n 8004d82 <UartRxTask+0x116>
  10628. proceed = pdTRUE;
  10629. 8004d7a: 2301 movs r3, #1
  10630. 8004d7c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10631. 8004d80: e206 b.n 8005190 <UartRxTask+0x524>
  10632. #ifdef SERIAL_PROTOCOL_DBG
  10633. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  10634. #endif
  10635. } else {
  10636. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  10637. 8004d82: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10638. 8004d86: 6b1b ldr r3, [r3, #48] @ 0x30
  10639. 8004d88: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  10640. 8004d8c: 2b20 cmp r3, #32
  10641. 8004d8e: f040 81ff bne.w 8005190 <UartRxTask+0x524>
  10642. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10643. 8004d92: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10644. 8004d96: 6b18 ldr r0, [r3, #48] @ 0x30
  10645. 8004d98: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10646. 8004d9c: 6819 ldr r1, [r3, #0]
  10647. 8004d9e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10648. 8004da2: 889b ldrh r3, [r3, #4]
  10649. 8004da4: 461a mov r2, r3
  10650. 8004da6: f00f f872 bl 8013e8e <HAL_UARTEx_ReceiveToIdle_IT>
  10651. }
  10652. }
  10653. }
  10654. while (proceed) {
  10655. 8004daa: e1f1 b.n 8005190 <UartRxTask+0x524>
  10656. switch (receverState) {
  10657. 8004dac: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  10658. 8004db0: 2b04 cmp r3, #4
  10659. 8004db2: f200 81c8 bhi.w 8005146 <UartRxTask+0x4da>
  10660. 8004db6: a201 add r2, pc, #4 @ (adr r2, 8004dbc <UartRxTask+0x150>)
  10661. 8004db8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10662. 8004dbc: 08004dd1 .word 0x08004dd1
  10663. 8004dc0: 08004f33 .word 0x08004f33
  10664. 8004dc4: 08004f17 .word 0x08004f17
  10665. 8004dc8: 08004fc3 .word 0x08004fc3
  10666. 8004dcc: 0800506f .word 0x0800506f
  10667. case srWaitForHeader:
  10668. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10669. 8004dd0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10670. 8004dd4: 6a1b ldr r3, [r3, #32]
  10671. 8004dd6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10672. 8004dda: 4618 mov r0, r3
  10673. 8004ddc: f00f fbaf bl 801453e <osMutexAcquire>
  10674. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  10675. 8004de0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10676. 8004de4: 691b ldr r3, [r3, #16]
  10677. 8004de6: 781b ldrb r3, [r3, #0]
  10678. 8004de8: 2baa cmp r3, #170 @ 0xaa
  10679. 8004dea: f040 8082 bne.w 8004ef2 <UartRxTask+0x286>
  10680. if (frameBytesCount > FRAME_ID_LENGTH) {
  10681. 8004dee: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10682. 8004df2: 2b02 cmp r3, #2
  10683. 8004df4: d914 bls.n 8004e20 <UartRxTask+0x1b4>
  10684. spFrameData.frameHeader.frameId =
  10685. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  10686. 8004df6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10687. 8004dfa: 691b ldr r3, [r3, #16]
  10688. 8004dfc: 3302 adds r3, #2
  10689. 8004dfe: 781b ldrb r3, [r3, #0]
  10690. 8004e00: 021b lsls r3, r3, #8
  10691. 8004e02: b21a sxth r2, r3
  10692. 8004e04: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10693. 8004e08: 691b ldr r3, [r3, #16]
  10694. 8004e0a: 3301 adds r3, #1
  10695. 8004e0c: 781b ldrb r3, [r3, #0]
  10696. 8004e0e: b21b sxth r3, r3
  10697. 8004e10: 4313 orrs r3, r2
  10698. 8004e12: b21b sxth r3, r3
  10699. 8004e14: b29a uxth r2, r3
  10700. spFrameData.frameHeader.frameId =
  10701. 8004e16: f507 73a0 add.w r3, r7, #320 @ 0x140
  10702. 8004e1a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10703. 8004e1e: 801a strh r2, [r3, #0]
  10704. }
  10705. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  10706. 8004e20: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10707. 8004e24: 2b04 cmp r3, #4
  10708. 8004e26: d923 bls.n 8004e70 <UartRxTask+0x204>
  10709. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  10710. 8004e28: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10711. 8004e2c: 691b ldr r3, [r3, #16]
  10712. 8004e2e: 3304 adds r3, #4
  10713. 8004e30: 781b ldrb r3, [r3, #0]
  10714. 8004e32: 021b lsls r3, r3, #8
  10715. 8004e34: b21a sxth r2, r3
  10716. 8004e36: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10717. 8004e3a: 691b ldr r3, [r3, #16]
  10718. 8004e3c: 3303 adds r3, #3
  10719. 8004e3e: 781b ldrb r3, [r3, #0]
  10720. 8004e40: b21b sxth r3, r3
  10721. 8004e42: 4313 orrs r3, r2
  10722. 8004e44: b21b sxth r3, r3
  10723. 8004e46: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10724. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  10725. 8004e4a: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  10726. 8004e4e: b2da uxtb r2, r3
  10727. 8004e50: f507 73a0 add.w r3, r7, #320 @ 0x140
  10728. 8004e54: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10729. 8004e58: 709a strb r2, [r3, #2]
  10730. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  10731. 8004e5a: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  10732. 8004e5e: 13db asrs r3, r3, #15
  10733. 8004e60: b21b sxth r3, r3
  10734. 8004e62: f003 0201 and.w r2, r3, #1
  10735. 8004e66: f507 73a0 add.w r3, r7, #320 @ 0x140
  10736. 8004e6a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10737. 8004e6e: 609a str r2, [r3, #8]
  10738. }
  10739. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  10740. 8004e70: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10741. 8004e74: 2b05 cmp r3, #5
  10742. 8004e76: d913 bls.n 8004ea0 <UartRxTask+0x234>
  10743. 8004e78: f507 73a0 add.w r3, r7, #320 @ 0x140
  10744. 8004e7c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10745. 8004e80: 789b ldrb r3, [r3, #2]
  10746. 8004e82: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10747. 8004e86: 2b00 cmp r3, #0
  10748. 8004e88: d00a beq.n 8004ea0 <UartRxTask+0x234>
  10749. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10750. 8004e8a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10751. 8004e8e: 691b ldr r3, [r3, #16]
  10752. 8004e90: 3305 adds r3, #5
  10753. 8004e92: 781b ldrb r3, [r3, #0]
  10754. 8004e94: b25a sxtb r2, r3
  10755. 8004e96: f507 73a0 add.w r3, r7, #320 @ 0x140
  10756. 8004e9a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10757. 8004e9e: 70da strb r2, [r3, #3]
  10758. }
  10759. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10760. 8004ea0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10761. 8004ea4: 2b07 cmp r3, #7
  10762. 8004ea6: d920 bls.n 8004eea <UartRxTask+0x27e>
  10763. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10764. 8004ea8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10765. 8004eac: 691b ldr r3, [r3, #16]
  10766. 8004eae: 3306 adds r3, #6
  10767. 8004eb0: 781b ldrb r3, [r3, #0]
  10768. 8004eb2: 021b lsls r3, r3, #8
  10769. 8004eb4: b21a sxth r2, r3
  10770. 8004eb6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10771. 8004eba: 691b ldr r3, [r3, #16]
  10772. 8004ebc: 3305 adds r3, #5
  10773. 8004ebe: 781b ldrb r3, [r3, #0]
  10774. 8004ec0: b21b sxth r3, r3
  10775. 8004ec2: 4313 orrs r3, r2
  10776. 8004ec4: b21b sxth r3, r3
  10777. 8004ec6: b29a uxth r2, r3
  10778. 8004ec8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10779. 8004ecc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10780. 8004ed0: 809a strh r2, [r3, #4]
  10781. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10782. 8004ed2: f507 73a0 add.w r3, r7, #320 @ 0x140
  10783. 8004ed6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10784. 8004eda: 889b ldrh r3, [r3, #4]
  10785. 8004edc: 330a adds r3, #10
  10786. 8004ede: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10787. receverState = srRecieveData;
  10788. 8004ee2: 2302 movs r3, #2
  10789. 8004ee4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10790. 8004ee8: e00e b.n 8004f08 <UartRxTask+0x29c>
  10791. } else {
  10792. proceed = pdFALSE;
  10793. 8004eea: 2300 movs r3, #0
  10794. 8004eec: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10795. 8004ef0: e00a b.n 8004f08 <UartRxTask+0x29c>
  10796. }
  10797. } else {
  10798. if (frameBytesCount > 0) {
  10799. 8004ef2: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10800. 8004ef6: 2b00 cmp r3, #0
  10801. 8004ef8: d003 beq.n 8004f02 <UartRxTask+0x296>
  10802. receverState = srFail;
  10803. 8004efa: 2304 movs r3, #4
  10804. 8004efc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10805. 8004f00: e002 b.n 8004f08 <UartRxTask+0x29c>
  10806. } else {
  10807. proceed = pdFALSE;
  10808. 8004f02: 2300 movs r3, #0
  10809. 8004f04: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10810. }
  10811. }
  10812. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10813. 8004f08: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10814. 8004f0c: 6a1b ldr r3, [r3, #32]
  10815. 8004f0e: 4618 mov r0, r3
  10816. 8004f10: f00f fb60 bl 80145d4 <osMutexRelease>
  10817. break;
  10818. 8004f14: e13c b.n 8005190 <UartRxTask+0x524>
  10819. case srRecieveData:
  10820. if (frameBytesCount >= frameTotalLength) {
  10821. 8004f16: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10822. 8004f1a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10823. 8004f1e: 429a cmp r2, r3
  10824. 8004f20: d303 bcc.n 8004f2a <UartRxTask+0x2be>
  10825. receverState = srCheckCrc;
  10826. 8004f22: 2301 movs r3, #1
  10827. 8004f24: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10828. } else {
  10829. proceed = pdFALSE;
  10830. }
  10831. break;
  10832. 8004f28: e132 b.n 8005190 <UartRxTask+0x524>
  10833. proceed = pdFALSE;
  10834. 8004f2a: 2300 movs r3, #0
  10835. 8004f2c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10836. break;
  10837. 8004f30: e12e b.n 8005190 <UartRxTask+0x524>
  10838. case srCheckCrc:
  10839. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10840. 8004f32: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10841. 8004f36: 6a1b ldr r3, [r3, #32]
  10842. 8004f38: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10843. 8004f3c: 4618 mov r0, r3
  10844. 8004f3e: f00f fafe bl 801453e <osMutexAcquire>
  10845. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10846. 8004f42: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10847. 8004f46: 691a ldr r2, [r3, #16]
  10848. 8004f48: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10849. 8004f4c: 3b01 subs r3, #1
  10850. 8004f4e: 4413 add r3, r2
  10851. 8004f50: 781b ldrb r3, [r3, #0]
  10852. 8004f52: 021b lsls r3, r3, #8
  10853. 8004f54: b21a sxth r2, r3
  10854. 8004f56: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10855. 8004f5a: 6919 ldr r1, [r3, #16]
  10856. 8004f5c: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10857. 8004f60: 3b02 subs r3, #2
  10858. 8004f62: 440b add r3, r1
  10859. 8004f64: 781b ldrb r3, [r3, #0]
  10860. 8004f66: b21b sxth r3, r3
  10861. 8004f68: 4313 orrs r3, r2
  10862. 8004f6a: b21b sxth r3, r3
  10863. 8004f6c: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10864. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10865. 8004f70: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10866. 8004f74: 6919 ldr r1, [r3, #16]
  10867. 8004f76: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10868. 8004f7a: 3b02 subs r3, #2
  10869. 8004f7c: 461a mov r2, r3
  10870. 8004f7e: 4887 ldr r0, [pc, #540] @ (800519c <UartRxTask+0x530>)
  10871. 8004f80: f002 ff3a bl 8007df8 <HAL_CRC_Calculate>
  10872. 8004f84: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10873. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10874. 8004f88: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10875. 8004f8c: 6a1b ldr r3, [r3, #32]
  10876. 8004f8e: 4618 mov r0, r3
  10877. 8004f90: f00f fb20 bl 80145d4 <osMutexRelease>
  10878. crcPass = frameCrc == crc;
  10879. 8004f94: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10880. 8004f98: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10881. 8004f9c: 429a cmp r2, r3
  10882. 8004f9e: bf0c ite eq
  10883. 8004fa0: 2301 moveq r3, #1
  10884. 8004fa2: 2300 movne r3, #0
  10885. 8004fa4: b2db uxtb r3, r3
  10886. 8004fa6: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10887. if (crcPass) {
  10888. 8004faa: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10889. 8004fae: 2b00 cmp r3, #0
  10890. 8004fb0: d003 beq.n 8004fba <UartRxTask+0x34e>
  10891. #ifdef SERIAL_PROTOCOL_DBG
  10892. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10893. #endif
  10894. receverState = srExecuteCmd;
  10895. 8004fb2: 2303 movs r3, #3
  10896. 8004fb4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10897. } else {
  10898. receverState = srFail;
  10899. }
  10900. break;
  10901. 8004fb8: e0ea b.n 8005190 <UartRxTask+0x524>
  10902. receverState = srFail;
  10903. 8004fba: 2304 movs r3, #4
  10904. 8004fbc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10905. break;
  10906. 8004fc0: e0e6 b.n 8005190 <UartRxTask+0x524>
  10907. case srExecuteCmd:
  10908. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10909. 8004fc2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10910. 8004fc6: 6a9b ldr r3, [r3, #40] @ 0x28
  10911. 8004fc8: 2b00 cmp r3, #0
  10912. 8004fca: d104 bne.n 8004fd6 <UartRxTask+0x36a>
  10913. 8004fcc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10914. 8004fd0: 6a5b ldr r3, [r3, #36] @ 0x24
  10915. 8004fd2: 2b00 cmp r3, #0
  10916. 8004fd4: d01e beq.n 8005014 <UartRxTask+0x3a8>
  10917. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10918. 8004fd6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10919. 8004fda: 6a1b ldr r3, [r3, #32]
  10920. 8004fdc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10921. 8004fe0: 4618 mov r0, r3
  10922. 8004fe2: f00f faac bl 801453e <osMutexAcquire>
  10923. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10924. 8004fe6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10925. 8004fea: 691b ldr r3, [r3, #16]
  10926. 8004fec: f103 0108 add.w r1, r3, #8
  10927. 8004ff0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10928. 8004ff4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10929. 8004ff8: 889b ldrh r3, [r3, #4]
  10930. 8004ffa: 461a mov r2, r3
  10931. 8004ffc: f107 0310 add.w r3, r7, #16
  10932. 8005000: 330c adds r3, #12
  10933. 8005002: 4618 mov r0, r3
  10934. 8005004: f013 fa52 bl 80184ac <memcpy>
  10935. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10936. 8005008: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10937. 800500c: 6a1b ldr r3, [r3, #32]
  10938. 800500e: 4618 mov r0, r3
  10939. 8005010: f00f fae0 bl 80145d4 <osMutexRelease>
  10940. }
  10941. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10942. 8005014: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10943. 8005018: 6a5b ldr r3, [r3, #36] @ 0x24
  10944. 800501a: 2b00 cmp r3, #0
  10945. 800501c: d015 beq.n 800504a <UartRxTask+0x3de>
  10946. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10947. 800501e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10948. 8005022: 6a58 ldr r0, [r3, #36] @ 0x24
  10949. 8005024: f507 73a0 add.w r3, r7, #320 @ 0x140
  10950. 8005028: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10951. 800502c: 889b ldrh r3, [r3, #4]
  10952. 800502e: f103 020c add.w r2, r3, #12
  10953. 8005032: f107 0110 add.w r1, r7, #16
  10954. 8005036: 23c8 movs r3, #200 @ 0xc8
  10955. 8005038: f010 fcee bl 8015a18 <xStreamBufferSend>
  10956. 800503c: 4603 mov r3, r0
  10957. 800503e: 2b00 cmp r3, #0
  10958. 8005040: d103 bne.n 800504a <UartRxTask+0x3de>
  10959. receverState = srFail;
  10960. 8005042: 2304 movs r3, #4
  10961. 8005044: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10962. break;
  10963. 8005048: e0a2 b.n 8005190 <UartRxTask+0x524>
  10964. }
  10965. }
  10966. if (uartTaskData->processDataCb != NULL) {
  10967. 800504a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10968. 800504e: 6a9b ldr r3, [r3, #40] @ 0x28
  10969. 8005050: 2b00 cmp r3, #0
  10970. 8005052: d008 beq.n 8005066 <UartRxTask+0x3fa>
  10971. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10972. 8005054: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10973. 8005058: 6a9b ldr r3, [r3, #40] @ 0x28
  10974. 800505a: f107 0210 add.w r2, r7, #16
  10975. 800505e: 4611 mov r1, r2
  10976. 8005060: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10977. 8005064: 4798 blx r3
  10978. }
  10979. receverState = srFinish;
  10980. 8005066: 2305 movs r3, #5
  10981. 8005068: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10982. break;
  10983. 800506c: e090 b.n 8005190 <UartRxTask+0x524>
  10984. case srFail:
  10985. dataToSend = 0;
  10986. 800506e: 2300 movs r3, #0
  10987. 8005070: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10988. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10989. 8005074: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10990. 8005078: 2b01 cmp r3, #1
  10991. 800507a: d11c bne.n 80050b6 <UartRxTask+0x44a>
  10992. 800507c: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10993. 8005080: 2b02 cmp r3, #2
  10994. 8005082: d918 bls.n 80050b6 <UartRxTask+0x44a>
  10995. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10996. 8005084: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10997. 8005088: 6898 ldr r0, [r3, #8]
  10998. 800508a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10999. 800508e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11000. 8005092: 8819 ldrh r1, [r3, #0]
  11001. 8005094: f507 73a0 add.w r3, r7, #320 @ 0x140
  11002. 8005098: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11003. 800509c: 789a ldrb r2, [r3, #2]
  11004. 800509e: 2300 movs r3, #0
  11005. 80050a0: 9301 str r3, [sp, #4]
  11006. 80050a2: 2300 movs r3, #0
  11007. 80050a4: 9300 str r3, [sp, #0]
  11008. 80050a6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  11009. 80050aa: f7fe fd57 bl 8003b5c <PrepareRespFrame>
  11010. 80050ae: 4603 mov r3, r0
  11011. 80050b0: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  11012. 80050b4: e034 b.n 8005120 <UartRxTask+0x4b4>
  11013. #ifdef SERIAL_PROTOCOL_DBG
  11014. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  11015. #endif
  11016. } else if (!crcPass) {
  11017. 80050b6: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  11018. 80050ba: 2b00 cmp r3, #0
  11019. 80050bc: d118 bne.n 80050f0 <UartRxTask+0x484>
  11020. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  11021. 80050be: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11022. 80050c2: 6898 ldr r0, [r3, #8]
  11023. 80050c4: f507 73a0 add.w r3, r7, #320 @ 0x140
  11024. 80050c8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11025. 80050cc: 8819 ldrh r1, [r3, #0]
  11026. 80050ce: f507 73a0 add.w r3, r7, #320 @ 0x140
  11027. 80050d2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11028. 80050d6: 789a ldrb r2, [r3, #2]
  11029. 80050d8: 2300 movs r3, #0
  11030. 80050da: 9301 str r3, [sp, #4]
  11031. 80050dc: 2300 movs r3, #0
  11032. 80050de: 9300 str r3, [sp, #0]
  11033. 80050e0: f06f 0301 mvn.w r3, #1
  11034. 80050e4: f7fe fd3a bl 8003b5c <PrepareRespFrame>
  11035. 80050e8: 4603 mov r3, r0
  11036. 80050ea: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  11037. 80050ee: e017 b.n 8005120 <UartRxTask+0x4b4>
  11038. #ifdef SERIAL_PROTOCOL_DBG
  11039. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  11040. #endif
  11041. } else {
  11042. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  11043. 80050f0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11044. 80050f4: 6898 ldr r0, [r3, #8]
  11045. 80050f6: f507 73a0 add.w r3, r7, #320 @ 0x140
  11046. 80050fa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11047. 80050fe: 8819 ldrh r1, [r3, #0]
  11048. 8005100: f507 73a0 add.w r3, r7, #320 @ 0x140
  11049. 8005104: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11050. 8005108: 789a ldrb r2, [r3, #2]
  11051. 800510a: 2300 movs r3, #0
  11052. 800510c: 9301 str r3, [sp, #4]
  11053. 800510e: 2300 movs r3, #0
  11054. 8005110: 9300 str r3, [sp, #0]
  11055. 8005112: f06f 0303 mvn.w r3, #3
  11056. 8005116: f7fe fd21 bl 8003b5c <PrepareRespFrame>
  11057. 800511a: 4603 mov r3, r0
  11058. 800511c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  11059. }
  11060. if (dataToSend > 0) {
  11061. 8005120: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  11062. 8005124: 2b00 cmp r3, #0
  11063. 8005126: d00a beq.n 800513e <UartRxTask+0x4d2>
  11064. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11065. 8005128: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11066. 800512c: 6b18 ldr r0, [r3, #48] @ 0x30
  11067. 800512e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11068. 8005132: 689b ldr r3, [r3, #8]
  11069. 8005134: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  11070. 8005138: 4619 mov r1, r3
  11071. 800513a: f00c f9d3 bl 80114e4 <HAL_UART_Transmit_IT>
  11072. }
  11073. #ifdef SERIAL_PROTOCOL_DBG
  11074. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  11075. #endif
  11076. receverState = srFinish;
  11077. 800513e: 2305 movs r3, #5
  11078. 8005140: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11079. break;
  11080. 8005144: e024 b.n 8005190 <UartRxTask+0x524>
  11081. case srFinish:
  11082. default:
  11083. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  11084. 8005146: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11085. 800514a: 6a1b ldr r3, [r3, #32]
  11086. 800514c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11087. 8005150: 4618 mov r0, r3
  11088. 8005152: f00f f9f4 bl 801453e <osMutexAcquire>
  11089. uartTaskData->frameBytesCount = 0;
  11090. 8005156: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11091. 800515a: 2200 movs r2, #0
  11092. 800515c: 82da strh r2, [r3, #22]
  11093. osMutexRelease (uartTaskData->rxDataBufferMutex);
  11094. 800515e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11095. 8005162: 6a1b ldr r3, [r3, #32]
  11096. 8005164: 4618 mov r0, r3
  11097. 8005166: f00f fa35 bl 80145d4 <osMutexRelease>
  11098. spFrameData.frameHeader.frameCommand = spUnknown;
  11099. 800516a: f507 73a0 add.w r3, r7, #320 @ 0x140
  11100. 800516e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11101. 8005172: 2212 movs r2, #18
  11102. 8005174: 709a strb r2, [r3, #2]
  11103. frameTotalLength = 0;
  11104. 8005176: 2300 movs r3, #0
  11105. 8005178: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  11106. outputDataBufferPos = 0;
  11107. 800517c: 4b08 ldr r3, [pc, #32] @ (80051a0 <UartRxTask+0x534>)
  11108. 800517e: 2200 movs r2, #0
  11109. 8005180: 801a strh r2, [r3, #0]
  11110. receverState = srWaitForHeader;
  11111. 8005182: 2300 movs r3, #0
  11112. 8005184: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11113. proceed = pdFALSE;
  11114. 8005188: 2300 movs r3, #0
  11115. 800518a: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  11116. break;
  11117. 800518e: bf00 nop
  11118. while (proceed) {
  11119. 8005190: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  11120. 8005194: 2b00 cmp r3, #0
  11121. 8005196: f47f ae09 bne.w 8004dac <UartRxTask+0x140>
  11122. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  11123. 800519a: e5b8 b.n 8004d0e <UartRxTask+0xa2>
  11124. 800519c: 240003e0 .word 0x240003e0
  11125. 80051a0: 2400105c .word 0x2400105c
  11126. 080051a4 <Uart8ReceivedDataProcessCallback>:
  11127. }
  11128. }
  11129. }
  11130. }
  11131. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11132. 80051a4: b580 push {r7, lr}
  11133. 80051a6: b082 sub sp, #8
  11134. 80051a8: af00 add r7, sp, #0
  11135. 80051aa: 6078 str r0, [r7, #4]
  11136. 80051ac: 6039 str r1, [r7, #0]
  11137. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  11138. 80051ae: 6839 ldr r1, [r7, #0]
  11139. 80051b0: 6878 ldr r0, [r7, #4]
  11140. 80051b2: f000 f805 bl 80051c0 <Uart1ReceivedDataProcessCallback>
  11141. }
  11142. 80051b6: bf00 nop
  11143. 80051b8: 3708 adds r7, #8
  11144. 80051ba: 46bd mov sp, r7
  11145. 80051bc: bd80 pop {r7, pc}
  11146. ...
  11147. 080051c0 <Uart1ReceivedDataProcessCallback>:
  11148. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11149. 80051c0: b590 push {r4, r7, lr}
  11150. 80051c2: b0ad sub sp, #180 @ 0xb4
  11151. 80051c4: af06 add r7, sp, #24
  11152. 80051c6: 6078 str r0, [r7, #4]
  11153. 80051c8: 6039 str r1, [r7, #0]
  11154. UartTaskData* uartTaskData = (UartTaskData*)arg;
  11155. 80051ca: 687b ldr r3, [r7, #4]
  11156. 80051cc: 677b str r3, [r7, #116] @ 0x74
  11157. uint16_t dataToSend = 0;
  11158. 80051ce: 2300 movs r3, #0
  11159. 80051d0: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  11160. outputDataBufferPos = 0;
  11161. 80051d4: 4b64 ldr r3, [pc, #400] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11162. 80051d6: 2200 movs r2, #0
  11163. 80051d8: 801a strh r2, [r3, #0]
  11164. uint16_t inputDataBufferPos = 0;
  11165. 80051da: 2300 movs r3, #0
  11166. 80051dc: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  11167. SerialProtocolRespStatus respStatus = spUnknownCommand;
  11168. 80051e0: 23fd movs r3, #253 @ 0xfd
  11169. 80051e2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11170. switch (spFrameData->frameHeader.frameCommand) {
  11171. 80051e6: 683b ldr r3, [r7, #0]
  11172. 80051e8: 789b ldrb r3, [r3, #2]
  11173. 80051ea: 2b11 cmp r3, #17
  11174. 80051ec: f200 85a2 bhi.w 8005d34 <Uart1ReceivedDataProcessCallback+0xb74>
  11175. 80051f0: a201 add r2, pc, #4 @ (adr r2, 80051f8 <Uart1ReceivedDataProcessCallback+0x38>)
  11176. 80051f2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  11177. 80051f6: bf00 nop
  11178. 80051f8: 08005241 .word 0x08005241
  11179. 80051fc: 08005379 .word 0x08005379
  11180. 8005200: 080054f3 .word 0x080054f3
  11181. 8005204: 08005629 .word 0x08005629
  11182. 8005208: 080056cb .word 0x080056cb
  11183. 800520c: 080057e9 .word 0x080057e9
  11184. 8005210: 0800583f .word 0x0800583f
  11185. 8005214: 0800576d .word 0x0800576d
  11186. 8005218: 08005895 .word 0x08005895
  11187. 800521c: 08005935 .word 0x08005935
  11188. 8005220: 08005981 .word 0x08005981
  11189. 8005224: 080059cd .word 0x080059cd
  11190. 8005228: 08005a2f .word 0x08005a2f
  11191. 800522c: 08005a93 .word 0x08005a93
  11192. 8005230: 08005af5 .word 0x08005af5
  11193. 8005234: 08005b59 .word 0x08005b59
  11194. 8005238: 08005b61 .word 0x08005b61
  11195. 800523c: 08005c65 .word 0x08005c65
  11196. case spGetElectricalMeasurments:
  11197. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11198. 8005240: 4b4a ldr r3, [pc, #296] @ (800536c <Uart1ReceivedDataProcessCallback+0x1ac>)
  11199. 8005242: 681b ldr r3, [r3, #0]
  11200. 8005244: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11201. 8005248: 4618 mov r0, r3
  11202. 800524a: f00f f978 bl 801453e <osMutexAcquire>
  11203. 800524e: 4603 mov r3, r0
  11204. 8005250: 2b00 cmp r3, #0
  11205. 8005252: f040 8083 bne.w 800535c <Uart1ReceivedDataProcessCallback+0x19c>
  11206. for (int i = 0; i < 3; i++) {
  11207. 8005256: 2300 movs r3, #0
  11208. 8005258: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11209. 800525c: e00e b.n 800527c <Uart1ReceivedDataProcessCallback+0xbc>
  11210. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  11211. 800525e: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11212. 8005262: 009b lsls r3, r3, #2
  11213. 8005264: 4a42 ldr r2, [pc, #264] @ (8005370 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11214. 8005266: 441a add r2, r3
  11215. 8005268: 2304 movs r3, #4
  11216. 800526a: 493f ldr r1, [pc, #252] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11217. 800526c: 4841 ldr r0, [pc, #260] @ (8005374 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11218. 800526e: f7fe fbdb bl 8003a28 <WriteDataToBuffer>
  11219. for (int i = 0; i < 3; i++) {
  11220. 8005272: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11221. 8005276: 3301 adds r3, #1
  11222. 8005278: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11223. 800527c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11224. 8005280: 2b02 cmp r3, #2
  11225. 8005282: ddec ble.n 800525e <Uart1ReceivedDataProcessCallback+0x9e>
  11226. }
  11227. for (int i = 0; i < 3; i++) {
  11228. 8005284: 2300 movs r3, #0
  11229. 8005286: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11230. 800528a: e010 b.n 80052ae <Uart1ReceivedDataProcessCallback+0xee>
  11231. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  11232. 800528c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11233. 8005290: 3302 adds r3, #2
  11234. 8005292: 009b lsls r3, r3, #2
  11235. 8005294: 4a36 ldr r2, [pc, #216] @ (8005370 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11236. 8005296: 4413 add r3, r2
  11237. 8005298: 1d1a adds r2, r3, #4
  11238. 800529a: 2304 movs r3, #4
  11239. 800529c: 4932 ldr r1, [pc, #200] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11240. 800529e: 4835 ldr r0, [pc, #212] @ (8005374 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11241. 80052a0: f7fe fbc2 bl 8003a28 <WriteDataToBuffer>
  11242. for (int i = 0; i < 3; i++) {
  11243. 80052a4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11244. 80052a8: 3301 adds r3, #1
  11245. 80052aa: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11246. 80052ae: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11247. 80052b2: 2b02 cmp r3, #2
  11248. 80052b4: ddea ble.n 800528c <Uart1ReceivedDataProcessCallback+0xcc>
  11249. }
  11250. for (int i = 0; i < 3; i++) {
  11251. 80052b6: 2300 movs r3, #0
  11252. 80052b8: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11253. 80052bc: e00f b.n 80052de <Uart1ReceivedDataProcessCallback+0x11e>
  11254. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  11255. 80052be: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11256. 80052c2: 3306 adds r3, #6
  11257. 80052c4: 009b lsls r3, r3, #2
  11258. 80052c6: 4a2a ldr r2, [pc, #168] @ (8005370 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11259. 80052c8: 441a add r2, r3
  11260. 80052ca: 2304 movs r3, #4
  11261. 80052cc: 4926 ldr r1, [pc, #152] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11262. 80052ce: 4829 ldr r0, [pc, #164] @ (8005374 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11263. 80052d0: f7fe fbaa bl 8003a28 <WriteDataToBuffer>
  11264. for (int i = 0; i < 3; i++) {
  11265. 80052d4: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11266. 80052d8: 3301 adds r3, #1
  11267. 80052da: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11268. 80052de: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11269. 80052e2: 2b02 cmp r3, #2
  11270. 80052e4: ddeb ble.n 80052be <Uart1ReceivedDataProcessCallback+0xfe>
  11271. }
  11272. for (int i = 0; i < 3; i++) {
  11273. 80052e6: 2300 movs r3, #0
  11274. 80052e8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11275. 80052ec: e010 b.n 8005310 <Uart1ReceivedDataProcessCallback+0x150>
  11276. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  11277. 80052ee: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11278. 80052f2: 3308 adds r3, #8
  11279. 80052f4: 009b lsls r3, r3, #2
  11280. 80052f6: 4a1e ldr r2, [pc, #120] @ (8005370 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11281. 80052f8: 4413 add r3, r2
  11282. 80052fa: 1d1a adds r2, r3, #4
  11283. 80052fc: 2304 movs r3, #4
  11284. 80052fe: 491a ldr r1, [pc, #104] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11285. 8005300: 481c ldr r0, [pc, #112] @ (8005374 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11286. 8005302: f7fe fb91 bl 8003a28 <WriteDataToBuffer>
  11287. for (int i = 0; i < 3; i++) {
  11288. 8005306: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11289. 800530a: 3301 adds r3, #1
  11290. 800530c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11291. 8005310: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11292. 8005314: 2b02 cmp r3, #2
  11293. 8005316: ddea ble.n 80052ee <Uart1ReceivedDataProcessCallback+0x12e>
  11294. }
  11295. for (int i = 0; i < 3; i++) {
  11296. 8005318: 2300 movs r3, #0
  11297. 800531a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11298. 800531e: e00f b.n 8005340 <Uart1ReceivedDataProcessCallback+0x180>
  11299. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  11300. 8005320: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11301. 8005324: 330c adds r3, #12
  11302. 8005326: 009b lsls r3, r3, #2
  11303. 8005328: 4a11 ldr r2, [pc, #68] @ (8005370 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11304. 800532a: 441a add r2, r3
  11305. 800532c: 2304 movs r3, #4
  11306. 800532e: 490e ldr r1, [pc, #56] @ (8005368 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11307. 8005330: 4810 ldr r0, [pc, #64] @ (8005374 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11308. 8005332: f7fe fb79 bl 8003a28 <WriteDataToBuffer>
  11309. for (int i = 0; i < 3; i++) {
  11310. 8005336: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11311. 800533a: 3301 adds r3, #1
  11312. 800533c: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11313. 8005340: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11314. 8005344: 2b02 cmp r3, #2
  11315. 8005346: ddeb ble.n 8005320 <Uart1ReceivedDataProcessCallback+0x160>
  11316. }
  11317. osMutexRelease (resMeasurementsMutex);
  11318. 8005348: 4b08 ldr r3, [pc, #32] @ (800536c <Uart1ReceivedDataProcessCallback+0x1ac>)
  11319. 800534a: 681b ldr r3, [r3, #0]
  11320. 800534c: 4618 mov r0, r3
  11321. 800534e: f00f f941 bl 80145d4 <osMutexRelease>
  11322. respStatus = spOK;
  11323. 8005352: 2300 movs r3, #0
  11324. 8005354: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11325. } else {
  11326. respStatus = spInternalError;
  11327. }
  11328. break;
  11329. 8005358: f000 bcf3 b.w 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11330. respStatus = spInternalError;
  11331. 800535c: 23fc movs r3, #252 @ 0xfc
  11332. 800535e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11333. break;
  11334. 8005362: f000 bcee b.w 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11335. 8005366: bf00 nop
  11336. 8005368: 2400105c .word 0x2400105c
  11337. 800536c: 24000818 .word 0x24000818
  11338. 8005370: 24000824 .word 0x24000824
  11339. 8005374: 24000fdc .word 0x24000fdc
  11340. case spGetSensorMeasurments:
  11341. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11342. 8005378: 4b8d ldr r3, [pc, #564] @ (80055b0 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11343. 800537a: 681b ldr r3, [r3, #0]
  11344. 800537c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11345. 8005380: 4618 mov r0, r3
  11346. 8005382: f00f f8dc bl 801453e <osMutexAcquire>
  11347. 8005386: 4603 mov r3, r0
  11348. 8005388: 2b00 cmp r3, #0
  11349. 800538a: f040 80ad bne.w 80054e8 <Uart1ReceivedDataProcessCallback+0x328>
  11350. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  11351. 800538e: 2304 movs r3, #4
  11352. 8005390: 4a88 ldr r2, [pc, #544] @ (80055b4 <Uart1ReceivedDataProcessCallback+0x3f4>)
  11353. 8005392: 4989 ldr r1, [pc, #548] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11354. 8005394: 4889 ldr r0, [pc, #548] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11355. 8005396: f7fe fb47 bl 8003a28 <WriteDataToBuffer>
  11356. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  11357. 800539a: 2304 movs r3, #4
  11358. 800539c: 4a88 ldr r2, [pc, #544] @ (80055c0 <Uart1ReceivedDataProcessCallback+0x400>)
  11359. 800539e: 4986 ldr r1, [pc, #536] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11360. 80053a0: 4886 ldr r0, [pc, #536] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11361. 80053a2: f7fe fb41 bl 8003a28 <WriteDataToBuffer>
  11362. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  11363. 80053a6: 2304 movs r3, #4
  11364. 80053a8: 4a86 ldr r2, [pc, #536] @ (80055c4 <Uart1ReceivedDataProcessCallback+0x404>)
  11365. 80053aa: 4983 ldr r1, [pc, #524] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11366. 80053ac: 4883 ldr r0, [pc, #524] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11367. 80053ae: f7fe fb3b bl 8003a28 <WriteDataToBuffer>
  11368. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  11369. 80053b2: 2304 movs r3, #4
  11370. 80053b4: 4a84 ldr r2, [pc, #528] @ (80055c8 <Uart1ReceivedDataProcessCallback+0x408>)
  11371. 80053b6: 4980 ldr r1, [pc, #512] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11372. 80053b8: 4880 ldr r0, [pc, #512] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11373. 80053ba: f7fe fb35 bl 8003a28 <WriteDataToBuffer>
  11374. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  11375. 80053be: 2304 movs r3, #4
  11376. 80053c0: 4a82 ldr r2, [pc, #520] @ (80055cc <Uart1ReceivedDataProcessCallback+0x40c>)
  11377. 80053c2: 497d ldr r1, [pc, #500] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11378. 80053c4: 487d ldr r0, [pc, #500] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11379. 80053c6: f7fe fb2f bl 8003a28 <WriteDataToBuffer>
  11380. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  11381. 80053ca: 2301 movs r3, #1
  11382. 80053cc: 4a80 ldr r2, [pc, #512] @ (80055d0 <Uart1ReceivedDataProcessCallback+0x410>)
  11383. 80053ce: 497a ldr r1, [pc, #488] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11384. 80053d0: 487a ldr r0, [pc, #488] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11385. 80053d2: f7fe fb29 bl 8003a28 <WriteDataToBuffer>
  11386. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  11387. 80053d6: 2301 movs r3, #1
  11388. 80053d8: 4a7e ldr r2, [pc, #504] @ (80055d4 <Uart1ReceivedDataProcessCallback+0x414>)
  11389. 80053da: 4977 ldr r1, [pc, #476] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11390. 80053dc: 4877 ldr r0, [pc, #476] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11391. 80053de: f7fe fb23 bl 8003a28 <WriteDataToBuffer>
  11392. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  11393. 80053e2: 2304 movs r3, #4
  11394. 80053e4: 4a7c ldr r2, [pc, #496] @ (80055d8 <Uart1ReceivedDataProcessCallback+0x418>)
  11395. 80053e6: 4974 ldr r1, [pc, #464] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11396. 80053e8: 4874 ldr r0, [pc, #464] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11397. 80053ea: f7fe fb1d bl 8003a28 <WriteDataToBuffer>
  11398. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  11399. 80053ee: 2304 movs r3, #4
  11400. 80053f0: 4a7a ldr r2, [pc, #488] @ (80055dc <Uart1ReceivedDataProcessCallback+0x41c>)
  11401. 80053f2: 4971 ldr r1, [pc, #452] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11402. 80053f4: 4871 ldr r0, [pc, #452] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11403. 80053f6: f7fe fb17 bl 8003a28 <WriteDataToBuffer>
  11404. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  11405. 80053fa: 2304 movs r3, #4
  11406. 80053fc: 4a78 ldr r2, [pc, #480] @ (80055e0 <Uart1ReceivedDataProcessCallback+0x420>)
  11407. 80053fe: 496e ldr r1, [pc, #440] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11408. 8005400: 486e ldr r0, [pc, #440] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11409. 8005402: f7fe fb11 bl 8003a28 <WriteDataToBuffer>
  11410. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  11411. 8005406: 2304 movs r3, #4
  11412. 8005408: 4a76 ldr r2, [pc, #472] @ (80055e4 <Uart1ReceivedDataProcessCallback+0x424>)
  11413. 800540a: 496b ldr r1, [pc, #428] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11414. 800540c: 486b ldr r0, [pc, #428] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11415. 800540e: f7fe fb0b bl 8003a28 <WriteDataToBuffer>
  11416. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  11417. 8005412: 2301 movs r3, #1
  11418. 8005414: 4a74 ldr r2, [pc, #464] @ (80055e8 <Uart1ReceivedDataProcessCallback+0x428>)
  11419. 8005416: 4968 ldr r1, [pc, #416] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11420. 8005418: 4868 ldr r0, [pc, #416] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11421. 800541a: f7fe fb05 bl 8003a28 <WriteDataToBuffer>
  11422. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  11423. 800541e: 2301 movs r3, #1
  11424. 8005420: 4a72 ldr r2, [pc, #456] @ (80055ec <Uart1ReceivedDataProcessCallback+0x42c>)
  11425. 8005422: 4965 ldr r1, [pc, #404] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11426. 8005424: 4865 ldr r0, [pc, #404] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11427. 8005426: f7fe faff bl 8003a28 <WriteDataToBuffer>
  11428. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  11429. 800542a: 2301 movs r3, #1
  11430. 800542c: 4a70 ldr r2, [pc, #448] @ (80055f0 <Uart1ReceivedDataProcessCallback+0x430>)
  11431. 800542e: 4962 ldr r1, [pc, #392] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11432. 8005430: 4862 ldr r0, [pc, #392] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11433. 8005432: f7fe faf9 bl 8003a28 <WriteDataToBuffer>
  11434. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  11435. 8005436: 2301 movs r3, #1
  11436. 8005438: 4a6e ldr r2, [pc, #440] @ (80055f4 <Uart1ReceivedDataProcessCallback+0x434>)
  11437. 800543a: 495f ldr r1, [pc, #380] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11438. 800543c: 485f ldr r0, [pc, #380] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11439. 800543e: f7fe faf3 bl 8003a28 <WriteDataToBuffer>
  11440. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  11441. 8005442: 2301 movs r3, #1
  11442. 8005444: 4a6c ldr r2, [pc, #432] @ (80055f8 <Uart1ReceivedDataProcessCallback+0x438>)
  11443. 8005446: 495c ldr r1, [pc, #368] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11444. 8005448: 485c ldr r0, [pc, #368] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11445. 800544a: f7fe faed bl 8003a28 <WriteDataToBuffer>
  11446. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  11447. 800544e: 2301 movs r3, #1
  11448. 8005450: 4a6a ldr r2, [pc, #424] @ (80055fc <Uart1ReceivedDataProcessCallback+0x43c>)
  11449. 8005452: 4959 ldr r1, [pc, #356] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11450. 8005454: 4859 ldr r0, [pc, #356] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11451. 8005456: f7fe fae7 bl 8003a28 <WriteDataToBuffer>
  11452. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  11453. 800545a: 4869 ldr r0, [pc, #420] @ (8005600 <Uart1ReceivedDataProcessCallback+0x440>)
  11454. 800545c: f002 faf2 bl 8007a44 <HAL_COMP_GetOutputLevel>
  11455. 8005460: 4603 mov r3, r0
  11456. 8005462: 2b01 cmp r3, #1
  11457. 8005464: bf0c ite eq
  11458. 8005466: 2301 moveq r3, #1
  11459. 8005468: 2300 movne r3, #0
  11460. 800546a: b2db uxtb r3, r3
  11461. 800546c: f887 3047 strb.w r3, [r7, #71] @ 0x47
  11462. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  11463. 8005470: f897 3047 ldrb.w r3, [r7, #71] @ 0x47
  11464. 8005474: 005c lsls r4, r3, #1
  11465. 8005476: 2108 movs r1, #8
  11466. 8005478: 4862 ldr r0, [pc, #392] @ (8005604 <Uart1ReceivedDataProcessCallback+0x444>)
  11467. 800547a: f006 f89b bl 800b5b4 <HAL_GPIO_ReadPin>
  11468. 800547e: 4603 mov r3, r0
  11469. 8005480: 4323 orrs r3, r4
  11470. 8005482: f003 0301 and.w r3, r3, #1
  11471. 8005486: 2b00 cmp r3, #0
  11472. 8005488: bf0c ite eq
  11473. 800548a: 2301 moveq r3, #1
  11474. 800548c: 2300 movne r3, #0
  11475. 800548e: b2db uxtb r3, r3
  11476. 8005490: 461a mov r2, r3
  11477. 8005492: 4b48 ldr r3, [pc, #288] @ (80055b4 <Uart1ReceivedDataProcessCallback+0x3f4>)
  11478. 8005494: f883 202e strb.w r2, [r3, #46] @ 0x2e
  11479. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  11480. 8005498: 2301 movs r3, #1
  11481. 800549a: 4a5b ldr r2, [pc, #364] @ (8005608 <Uart1ReceivedDataProcessCallback+0x448>)
  11482. 800549c: 4946 ldr r1, [pc, #280] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11483. 800549e: 4847 ldr r0, [pc, #284] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11484. 80054a0: f7fe fac2 bl 8003a28 <WriteDataToBuffer>
  11485. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentXPosition, sizeof (float));
  11486. 80054a4: 2304 movs r3, #4
  11487. 80054a6: 4a59 ldr r2, [pc, #356] @ (800560c <Uart1ReceivedDataProcessCallback+0x44c>)
  11488. 80054a8: 4943 ldr r1, [pc, #268] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11489. 80054aa: 4844 ldr r0, [pc, #272] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11490. 80054ac: f7fe fabc bl 8003a28 <WriteDataToBuffer>
  11491. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentYPosition, sizeof (float));
  11492. 80054b0: 2304 movs r3, #4
  11493. 80054b2: 4a57 ldr r2, [pc, #348] @ (8005610 <Uart1ReceivedDataProcessCallback+0x450>)
  11494. 80054b4: 4940 ldr r1, [pc, #256] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11495. 80054b6: 4841 ldr r0, [pc, #260] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11496. 80054b8: f7fe fab6 bl 8003a28 <WriteDataToBuffer>
  11497. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionXWeak, sizeof (uint8_t));
  11498. 80054bc: 2301 movs r3, #1
  11499. 80054be: 4a55 ldr r2, [pc, #340] @ (8005614 <Uart1ReceivedDataProcessCallback+0x454>)
  11500. 80054c0: 493d ldr r1, [pc, #244] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11501. 80054c2: 483e ldr r0, [pc, #248] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11502. 80054c4: f7fe fab0 bl 8003a28 <WriteDataToBuffer>
  11503. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionYWeak, sizeof (uint8_t));
  11504. 80054c8: 2301 movs r3, #1
  11505. 80054ca: 4a53 ldr r2, [pc, #332] @ (8005618 <Uart1ReceivedDataProcessCallback+0x458>)
  11506. 80054cc: 493a ldr r1, [pc, #232] @ (80055b8 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11507. 80054ce: 483b ldr r0, [pc, #236] @ (80055bc <Uart1ReceivedDataProcessCallback+0x3fc>)
  11508. 80054d0: f7fe faaa bl 8003a28 <WriteDataToBuffer>
  11509. osMutexRelease (sensorsInfoMutex);
  11510. 80054d4: 4b36 ldr r3, [pc, #216] @ (80055b0 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11511. 80054d6: 681b ldr r3, [r3, #0]
  11512. 80054d8: 4618 mov r0, r3
  11513. 80054da: f00f f87b bl 80145d4 <osMutexRelease>
  11514. respStatus = spOK;
  11515. 80054de: 2300 movs r3, #0
  11516. 80054e0: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11517. } else {
  11518. respStatus = spInternalError;
  11519. }
  11520. break;
  11521. 80054e4: f000 bc2d b.w 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11522. respStatus = spInternalError;
  11523. 80054e8: 23fc movs r3, #252 @ 0xfc
  11524. 80054ea: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11525. break;
  11526. 80054ee: f000 bc28 b.w 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11527. case spSetFanSpeed:
  11528. osTimerStop (fanTimerHandle);
  11529. 80054f2: 4b4a ldr r3, [pc, #296] @ (800561c <Uart1ReceivedDataProcessCallback+0x45c>)
  11530. 80054f4: 681b ldr r3, [r3, #0]
  11531. 80054f6: 4618 mov r0, r3
  11532. 80054f8: f00e ff64 bl 80143c4 <osTimerStop>
  11533. int32_t fanTimerPeriod = 0;
  11534. 80054fc: 2300 movs r3, #0
  11535. 80054fe: 643b str r3, [r7, #64] @ 0x40
  11536. uint32_t pulse = 0;
  11537. 8005500: 2300 movs r3, #0
  11538. 8005502: 63fb str r3, [r7, #60] @ 0x3c
  11539. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  11540. 8005504: 683b ldr r3, [r7, #0]
  11541. 8005506: 330c adds r3, #12
  11542. 8005508: f107 023c add.w r2, r7, #60 @ 0x3c
  11543. 800550c: f107 0144 add.w r1, r7, #68 @ 0x44
  11544. 8005510: 4618 mov r0, r3
  11545. 8005512: f7fe faef bl 8003af4 <ReadWordFromBufer>
  11546. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  11547. 8005516: 683b ldr r3, [r7, #0]
  11548. 8005518: 330c adds r3, #12
  11549. 800551a: f107 0240 add.w r2, r7, #64 @ 0x40
  11550. 800551e: f107 0144 add.w r1, r7, #68 @ 0x44
  11551. 8005522: 4618 mov r0, r3
  11552. 8005524: f7fe fae6 bl 8003af4 <ReadWordFromBufer>
  11553. fanTimerConfigOC.Pulse = pulse * 10;
  11554. 8005528: 6bfa ldr r2, [r7, #60] @ 0x3c
  11555. 800552a: 4613 mov r3, r2
  11556. 800552c: 009b lsls r3, r3, #2
  11557. 800552e: 4413 add r3, r2
  11558. 8005530: 005b lsls r3, r3, #1
  11559. 8005532: 461a mov r2, r3
  11560. 8005534: 4b3a ldr r3, [pc, #232] @ (8005620 <Uart1ReceivedDataProcessCallback+0x460>)
  11561. 8005536: 605a str r2, [r3, #4]
  11562. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  11563. 8005538: 2204 movs r2, #4
  11564. 800553a: 4939 ldr r1, [pc, #228] @ (8005620 <Uart1ReceivedDataProcessCallback+0x460>)
  11565. 800553c: 4839 ldr r0, [pc, #228] @ (8005624 <Uart1ReceivedDataProcessCallback+0x464>)
  11566. 800553e: f00a fe45 bl 80101cc <HAL_TIM_PWM_ConfigChannel>
  11567. 8005542: 4603 mov r3, r0
  11568. 8005544: 2b00 cmp r3, #0
  11569. 8005546: d001 beq.n 800554c <Uart1ReceivedDataProcessCallback+0x38c>
  11570. Error_Handler ();
  11571. 8005548: f7fc fcc0 bl 8001ecc <Error_Handler>
  11572. }
  11573. if (fanTimerPeriod > 0) {
  11574. 800554c: 6c3b ldr r3, [r7, #64] @ 0x40
  11575. 800554e: 2b00 cmp r3, #0
  11576. 8005550: dd0f ble.n 8005572 <Uart1ReceivedDataProcessCallback+0x3b2>
  11577. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  11578. 8005552: 4b32 ldr r3, [pc, #200] @ (800561c <Uart1ReceivedDataProcessCallback+0x45c>)
  11579. 8005554: 681a ldr r2, [r3, #0]
  11580. 8005556: 6c3b ldr r3, [r7, #64] @ 0x40
  11581. 8005558: f44f 717a mov.w r1, #1000 @ 0x3e8
  11582. 800555c: fb01 f303 mul.w r3, r1, r3
  11583. 8005560: 4619 mov r1, r3
  11584. 8005562: 4610 mov r0, r2
  11585. 8005564: f00e ff00 bl 8014368 <osTimerStart>
  11586. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11587. 8005568: 2104 movs r1, #4
  11588. 800556a: 482e ldr r0, [pc, #184] @ (8005624 <Uart1ReceivedDataProcessCallback+0x464>)
  11589. 800556c: f00a f934 bl 800f7d8 <HAL_TIM_PWM_Start>
  11590. 8005570: e019 b.n 80055a6 <Uart1ReceivedDataProcessCallback+0x3e6>
  11591. } else if (fanTimerPeriod == 0) {
  11592. 8005572: 6c3b ldr r3, [r7, #64] @ 0x40
  11593. 8005574: 2b00 cmp r3, #0
  11594. 8005576: d109 bne.n 800558c <Uart1ReceivedDataProcessCallback+0x3cc>
  11595. osTimerStop (fanTimerHandle);
  11596. 8005578: 4b28 ldr r3, [pc, #160] @ (800561c <Uart1ReceivedDataProcessCallback+0x45c>)
  11597. 800557a: 681b ldr r3, [r3, #0]
  11598. 800557c: 4618 mov r0, r3
  11599. 800557e: f00e ff21 bl 80143c4 <osTimerStop>
  11600. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  11601. 8005582: 2104 movs r1, #4
  11602. 8005584: 4827 ldr r0, [pc, #156] @ (8005624 <Uart1ReceivedDataProcessCallback+0x464>)
  11603. 8005586: f00a fa35 bl 800f9f4 <HAL_TIM_PWM_Stop>
  11604. 800558a: e00c b.n 80055a6 <Uart1ReceivedDataProcessCallback+0x3e6>
  11605. } else if (fanTimerPeriod == -1) {
  11606. 800558c: 6c3b ldr r3, [r7, #64] @ 0x40
  11607. 800558e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11608. 8005592: d108 bne.n 80055a6 <Uart1ReceivedDataProcessCallback+0x3e6>
  11609. osTimerStop (fanTimerHandle);
  11610. 8005594: 4b21 ldr r3, [pc, #132] @ (800561c <Uart1ReceivedDataProcessCallback+0x45c>)
  11611. 8005596: 681b ldr r3, [r3, #0]
  11612. 8005598: 4618 mov r0, r3
  11613. 800559a: f00e ff13 bl 80143c4 <osTimerStop>
  11614. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11615. 800559e: 2104 movs r1, #4
  11616. 80055a0: 4820 ldr r0, [pc, #128] @ (8005624 <Uart1ReceivedDataProcessCallback+0x464>)
  11617. 80055a2: f00a f919 bl 800f7d8 <HAL_TIM_PWM_Start>
  11618. }
  11619. respStatus = spOK;
  11620. 80055a6: 2300 movs r3, #0
  11621. 80055a8: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11622. break;
  11623. 80055ac: e3c9 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11624. 80055ae: bf00 nop
  11625. 80055b0: 2400081c .word 0x2400081c
  11626. 80055b4: 24000860 .word 0x24000860
  11627. 80055b8: 2400105c .word 0x2400105c
  11628. 80055bc: 24000fdc .word 0x24000fdc
  11629. 80055c0: 24000864 .word 0x24000864
  11630. 80055c4: 24000868 .word 0x24000868
  11631. 80055c8: 2400086c .word 0x2400086c
  11632. 80055cc: 24000870 .word 0x24000870
  11633. 80055d0: 24000874 .word 0x24000874
  11634. 80055d4: 24000875 .word 0x24000875
  11635. 80055d8: 24000878 .word 0x24000878
  11636. 80055dc: 2400087c .word 0x2400087c
  11637. 80055e0: 24000880 .word 0x24000880
  11638. 80055e4: 24000884 .word 0x24000884
  11639. 80055e8: 24000888 .word 0x24000888
  11640. 80055ec: 24000889 .word 0x24000889
  11641. 80055f0: 2400088a .word 0x2400088a
  11642. 80055f4: 2400088b .word 0x2400088b
  11643. 80055f8: 2400088c .word 0x2400088c
  11644. 80055fc: 2400088d .word 0x2400088d
  11645. 8005600: 240003b4 .word 0x240003b4
  11646. 8005604: 58020c00 .word 0x58020c00
  11647. 8005608: 2400088e .word 0x2400088e
  11648. 800560c: 24000890 .word 0x24000890
  11649. 8005610: 24000894 .word 0x24000894
  11650. 8005614: 24000898 .word 0x24000898
  11651. 8005618: 24000899 .word 0x24000899
  11652. 800561c: 24000714 .word 0x24000714
  11653. 8005620: 240007a4 .word 0x240007a4
  11654. 8005624: 2400043c .word 0x2400043c
  11655. case spSetMotorXOn:
  11656. int32_t motorXPWMPulse = 0;
  11657. 8005628: 2300 movs r3, #0
  11658. 800562a: 63bb str r3, [r7, #56] @ 0x38
  11659. int32_t motorXTimerPeriod = 0;
  11660. 800562c: 2300 movs r3, #0
  11661. 800562e: 637b str r3, [r7, #52] @ 0x34
  11662. uint32_t motorXStatus = 0;
  11663. 8005630: 2300 movs r3, #0
  11664. 8005632: 64bb str r3, [r7, #72] @ 0x48
  11665. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  11666. 8005634: 683b ldr r3, [r7, #0]
  11667. 8005636: 330c adds r3, #12
  11668. 8005638: f107 0238 add.w r2, r7, #56 @ 0x38
  11669. 800563c: f107 0144 add.w r1, r7, #68 @ 0x44
  11670. 8005640: 4618 mov r0, r3
  11671. 8005642: f7fe fa57 bl 8003af4 <ReadWordFromBufer>
  11672. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  11673. 8005646: 683b ldr r3, [r7, #0]
  11674. 8005648: 330c adds r3, #12
  11675. 800564a: f107 0234 add.w r2, r7, #52 @ 0x34
  11676. 800564e: f107 0144 add.w r1, r7, #68 @ 0x44
  11677. 8005652: 4618 mov r0, r3
  11678. 8005654: f7fe fa4e bl 8003af4 <ReadWordFromBufer>
  11679. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11680. 8005658: 4bab ldr r3, [pc, #684] @ (8005908 <Uart1ReceivedDataProcessCallback+0x748>)
  11681. 800565a: 681b ldr r3, [r3, #0]
  11682. 800565c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11683. 8005660: 4618 mov r0, r3
  11684. 8005662: f00e ff6c bl 801453e <osMutexAcquire>
  11685. 8005666: 4603 mov r3, r0
  11686. 8005668: 2b00 cmp r3, #0
  11687. 800566a: d12a bne.n 80056c2 <Uart1ReceivedDataProcessCallback+0x502>
  11688. motorXStatus =
  11689. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  11690. 800566c: 4ba7 ldr r3, [pc, #668] @ (800590c <Uart1ReceivedDataProcessCallback+0x74c>)
  11691. 800566e: 681b ldr r3, [r3, #0]
  11692. 8005670: 6bba ldr r2, [r7, #56] @ 0x38
  11693. 8005672: 6b79 ldr r1, [r7, #52] @ 0x34
  11694. 8005674: 48a6 ldr r0, [pc, #664] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11695. 8005676: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  11696. 800567a: 4ca5 ldr r4, [pc, #660] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11697. 800567c: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  11698. 8005680: 9404 str r4, [sp, #16]
  11699. 8005682: 9003 str r0, [sp, #12]
  11700. 8005684: 9102 str r1, [sp, #8]
  11701. 8005686: 9201 str r2, [sp, #4]
  11702. 8005688: 9300 str r3, [sp, #0]
  11703. 800568a: 2304 movs r3, #4
  11704. 800568c: 2200 movs r2, #0
  11705. 800568e: 49a1 ldr r1, [pc, #644] @ (8005914 <Uart1ReceivedDataProcessCallback+0x754>)
  11706. 8005690: 48a1 ldr r0, [pc, #644] @ (8005918 <Uart1ReceivedDataProcessCallback+0x758>)
  11707. 8005692: f7fd fcf5 bl 8003080 <MotorControl>
  11708. 8005696: 4603 mov r3, r0
  11709. motorXStatus =
  11710. 8005698: 64bb str r3, [r7, #72] @ 0x48
  11711. sensorsInfo.motorXStatus = motorXStatus;
  11712. 800569a: 6cbb ldr r3, [r7, #72] @ 0x48
  11713. 800569c: b2da uxtb r2, r3
  11714. 800569e: 4b9c ldr r3, [pc, #624] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11715. 80056a0: 751a strb r2, [r3, #20]
  11716. if (motorXStatus == 1) {
  11717. 80056a2: 6cbb ldr r3, [r7, #72] @ 0x48
  11718. 80056a4: 2b01 cmp r3, #1
  11719. 80056a6: d103 bne.n 80056b0 <Uart1ReceivedDataProcessCallback+0x4f0>
  11720. sensorsInfo.motorXPeakCurrent = 0.0;
  11721. 80056a8: 4b99 ldr r3, [pc, #612] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11722. 80056aa: f04f 0200 mov.w r2, #0
  11723. 80056ae: 621a str r2, [r3, #32]
  11724. }
  11725. osMutexRelease (sensorsInfoMutex);
  11726. 80056b0: 4b95 ldr r3, [pc, #596] @ (8005908 <Uart1ReceivedDataProcessCallback+0x748>)
  11727. 80056b2: 681b ldr r3, [r3, #0]
  11728. 80056b4: 4618 mov r0, r3
  11729. 80056b6: f00e ff8d bl 80145d4 <osMutexRelease>
  11730. respStatus = spOK;
  11731. 80056ba: 2300 movs r3, #0
  11732. 80056bc: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11733. } else {
  11734. respStatus = spInternalError;
  11735. }
  11736. break;
  11737. 80056c0: e33f b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11738. respStatus = spInternalError;
  11739. 80056c2: 23fc movs r3, #252 @ 0xfc
  11740. 80056c4: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11741. break;
  11742. 80056c8: e33b b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11743. case spSetMotorYOn:
  11744. int32_t motorYPWMPulse = 0;
  11745. 80056ca: 2300 movs r3, #0
  11746. 80056cc: 633b str r3, [r7, #48] @ 0x30
  11747. int32_t motorYTimerPeriod = 0;
  11748. 80056ce: 2300 movs r3, #0
  11749. 80056d0: 62fb str r3, [r7, #44] @ 0x2c
  11750. uint32_t motorYStatus = 0;
  11751. 80056d2: 2300 movs r3, #0
  11752. 80056d4: 64fb str r3, [r7, #76] @ 0x4c
  11753. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  11754. 80056d6: 683b ldr r3, [r7, #0]
  11755. 80056d8: 330c adds r3, #12
  11756. 80056da: f107 0230 add.w r2, r7, #48 @ 0x30
  11757. 80056de: f107 0144 add.w r1, r7, #68 @ 0x44
  11758. 80056e2: 4618 mov r0, r3
  11759. 80056e4: f7fe fa06 bl 8003af4 <ReadWordFromBufer>
  11760. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  11761. 80056e8: 683b ldr r3, [r7, #0]
  11762. 80056ea: 330c adds r3, #12
  11763. 80056ec: f107 022c add.w r2, r7, #44 @ 0x2c
  11764. 80056f0: f107 0144 add.w r1, r7, #68 @ 0x44
  11765. 80056f4: 4618 mov r0, r3
  11766. 80056f6: f7fe f9fd bl 8003af4 <ReadWordFromBufer>
  11767. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11768. 80056fa: 4b83 ldr r3, [pc, #524] @ (8005908 <Uart1ReceivedDataProcessCallback+0x748>)
  11769. 80056fc: 681b ldr r3, [r3, #0]
  11770. 80056fe: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11771. 8005702: 4618 mov r0, r3
  11772. 8005704: f00e ff1b bl 801453e <osMutexAcquire>
  11773. 8005708: 4603 mov r3, r0
  11774. 800570a: 2b00 cmp r3, #0
  11775. 800570c: d12a bne.n 8005764 <Uart1ReceivedDataProcessCallback+0x5a4>
  11776. motorYStatus =
  11777. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  11778. 800570e: 4b83 ldr r3, [pc, #524] @ (800591c <Uart1ReceivedDataProcessCallback+0x75c>)
  11779. 8005710: 681b ldr r3, [r3, #0]
  11780. 8005712: 6b3a ldr r2, [r7, #48] @ 0x30
  11781. 8005714: 6af9 ldr r1, [r7, #44] @ 0x2c
  11782. 8005716: 487e ldr r0, [pc, #504] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11783. 8005718: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  11784. 800571c: 4c7c ldr r4, [pc, #496] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11785. 800571e: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  11786. 8005722: 9404 str r4, [sp, #16]
  11787. 8005724: 9003 str r0, [sp, #12]
  11788. 8005726: 9102 str r1, [sp, #8]
  11789. 8005728: 9201 str r2, [sp, #4]
  11790. 800572a: 9300 str r3, [sp, #0]
  11791. 800572c: 230c movs r3, #12
  11792. 800572e: 2208 movs r2, #8
  11793. 8005730: 4978 ldr r1, [pc, #480] @ (8005914 <Uart1ReceivedDataProcessCallback+0x754>)
  11794. 8005732: 4879 ldr r0, [pc, #484] @ (8005918 <Uart1ReceivedDataProcessCallback+0x758>)
  11795. 8005734: f7fd fca4 bl 8003080 <MotorControl>
  11796. 8005738: 4603 mov r3, r0
  11797. motorYStatus =
  11798. 800573a: 64fb str r3, [r7, #76] @ 0x4c
  11799. sensorsInfo.motorYStatus = motorYStatus;
  11800. 800573c: 6cfb ldr r3, [r7, #76] @ 0x4c
  11801. 800573e: b2da uxtb r2, r3
  11802. 8005740: 4b73 ldr r3, [pc, #460] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11803. 8005742: 755a strb r2, [r3, #21]
  11804. if (motorYStatus == 1) {
  11805. 8005744: 6cfb ldr r3, [r7, #76] @ 0x4c
  11806. 8005746: 2b01 cmp r3, #1
  11807. 8005748: d103 bne.n 8005752 <Uart1ReceivedDataProcessCallback+0x592>
  11808. sensorsInfo.motorYPeakCurrent = 0.0;
  11809. 800574a: 4b71 ldr r3, [pc, #452] @ (8005910 <Uart1ReceivedDataProcessCallback+0x750>)
  11810. 800574c: f04f 0200 mov.w r2, #0
  11811. 8005750: 625a str r2, [r3, #36] @ 0x24
  11812. }
  11813. osMutexRelease (sensorsInfoMutex);
  11814. 8005752: 4b6d ldr r3, [pc, #436] @ (8005908 <Uart1ReceivedDataProcessCallback+0x748>)
  11815. 8005754: 681b ldr r3, [r3, #0]
  11816. 8005756: 4618 mov r0, r3
  11817. 8005758: f00e ff3c bl 80145d4 <osMutexRelease>
  11818. respStatus = spOK;
  11819. 800575c: 2300 movs r3, #0
  11820. 800575e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11821. } else {
  11822. respStatus = spInternalError;
  11823. }
  11824. break;
  11825. 8005762: e2ee b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11826. respStatus = spInternalError;
  11827. 8005764: 23fc movs r3, #252 @ 0xfc
  11828. 8005766: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11829. break;
  11830. 800576a: e2ea b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11831. case spSetDiodeOn:
  11832. osTimerStop (debugLedTimerHandle);
  11833. 800576c: 4b6c ldr r3, [pc, #432] @ (8005920 <Uart1ReceivedDataProcessCallback+0x760>)
  11834. 800576e: 681b ldr r3, [r3, #0]
  11835. 8005770: 4618 mov r0, r3
  11836. 8005772: f00e fe27 bl 80143c4 <osTimerStop>
  11837. int32_t dbgLedTimerPeriod = 0;
  11838. 8005776: 2300 movs r3, #0
  11839. 8005778: 62bb str r3, [r7, #40] @ 0x28
  11840. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  11841. 800577a: 683b ldr r3, [r7, #0]
  11842. 800577c: 330c adds r3, #12
  11843. 800577e: f107 0228 add.w r2, r7, #40 @ 0x28
  11844. 8005782: f107 0144 add.w r1, r7, #68 @ 0x44
  11845. 8005786: 4618 mov r0, r3
  11846. 8005788: f7fe f9b4 bl 8003af4 <ReadWordFromBufer>
  11847. if (dbgLedTimerPeriod > 0) {
  11848. 800578c: 6abb ldr r3, [r7, #40] @ 0x28
  11849. 800578e: 2b00 cmp r3, #0
  11850. 8005790: dd0e ble.n 80057b0 <Uart1ReceivedDataProcessCallback+0x5f0>
  11851. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  11852. 8005792: 4b63 ldr r3, [pc, #396] @ (8005920 <Uart1ReceivedDataProcessCallback+0x760>)
  11853. 8005794: 681a ldr r2, [r3, #0]
  11854. 8005796: 6abb ldr r3, [r7, #40] @ 0x28
  11855. 8005798: f44f 717a mov.w r1, #1000 @ 0x3e8
  11856. 800579c: fb01 f303 mul.w r3, r1, r3
  11857. 80057a0: 4619 mov r1, r3
  11858. 80057a2: 4610 mov r0, r2
  11859. 80057a4: f00e fde0 bl 8014368 <osTimerStart>
  11860. DbgLEDOn (DBG_LED1);
  11861. 80057a8: 2010 movs r0, #16
  11862. 80057aa: f7fd fbdb bl 8002f64 <DbgLEDOn>
  11863. 80057ae: e017 b.n 80057e0 <Uart1ReceivedDataProcessCallback+0x620>
  11864. } else if (dbgLedTimerPeriod == 0) {
  11865. 80057b0: 6abb ldr r3, [r7, #40] @ 0x28
  11866. 80057b2: 2b00 cmp r3, #0
  11867. 80057b4: d108 bne.n 80057c8 <Uart1ReceivedDataProcessCallback+0x608>
  11868. osTimerStop (debugLedTimerHandle);
  11869. 80057b6: 4b5a ldr r3, [pc, #360] @ (8005920 <Uart1ReceivedDataProcessCallback+0x760>)
  11870. 80057b8: 681b ldr r3, [r3, #0]
  11871. 80057ba: 4618 mov r0, r3
  11872. 80057bc: f00e fe02 bl 80143c4 <osTimerStop>
  11873. DbgLEDOff (DBG_LED1);
  11874. 80057c0: 2010 movs r0, #16
  11875. 80057c2: f7fd fbe1 bl 8002f88 <DbgLEDOff>
  11876. 80057c6: e00b b.n 80057e0 <Uart1ReceivedDataProcessCallback+0x620>
  11877. } else if (dbgLedTimerPeriod == -1) {
  11878. 80057c8: 6abb ldr r3, [r7, #40] @ 0x28
  11879. 80057ca: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11880. 80057ce: d107 bne.n 80057e0 <Uart1ReceivedDataProcessCallback+0x620>
  11881. osTimerStop (debugLedTimerHandle);
  11882. 80057d0: 4b53 ldr r3, [pc, #332] @ (8005920 <Uart1ReceivedDataProcessCallback+0x760>)
  11883. 80057d2: 681b ldr r3, [r3, #0]
  11884. 80057d4: 4618 mov r0, r3
  11885. 80057d6: f00e fdf5 bl 80143c4 <osTimerStop>
  11886. DbgLEDOn (DBG_LED1);
  11887. 80057da: 2010 movs r0, #16
  11888. 80057dc: f7fd fbc2 bl 8002f64 <DbgLEDOn>
  11889. }
  11890. respStatus = spOK;
  11891. 80057e0: 2300 movs r3, #0
  11892. 80057e2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11893. break;
  11894. 80057e6: e2ac b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11895. case spSetmotorXMaxCurrent:
  11896. float motorXMaxCurrent = 0;
  11897. 80057e8: f04f 0300 mov.w r3, #0
  11898. 80057ec: 627b str r3, [r7, #36] @ 0x24
  11899. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  11900. 80057ee: 683b ldr r3, [r7, #0]
  11901. 80057f0: 330c adds r3, #12
  11902. 80057f2: f107 0224 add.w r2, r7, #36 @ 0x24
  11903. 80057f6: f107 0144 add.w r1, r7, #68 @ 0x44
  11904. 80057fa: 4618 mov r0, r3
  11905. 80057fc: f7fe f97a bl 8003af4 <ReadWordFromBufer>
  11906. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  11907. 8005800: edd7 7a09 vldr s15, [r7, #36] @ 0x24
  11908. 8005804: ed9f 7a47 vldr s14, [pc, #284] @ 8005924 <Uart1ReceivedDataProcessCallback+0x764>
  11909. 8005808: ee67 7a87 vmul.f32 s15, s15, s14
  11910. 800580c: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11911. 8005810: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11912. 8005814: ee86 7b05 vdiv.f64 d7, d6, d5
  11913. 8005818: eefc 7bc7 vcvt.u32.f64 s15, d7
  11914. 800581c: ee17 3a90 vmov r3, s15
  11915. 8005820: 653b str r3, [r7, #80] @ 0x50
  11916. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  11917. 8005822: 6d3b ldr r3, [r7, #80] @ 0x50
  11918. 8005824: 2200 movs r2, #0
  11919. 8005826: 2100 movs r1, #0
  11920. 8005828: 483f ldr r0, [pc, #252] @ (8005928 <Uart1ReceivedDataProcessCallback+0x768>)
  11921. 800582a: f002 fd56 bl 80082da <HAL_DAC_SetValue>
  11922. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  11923. 800582e: 2100 movs r1, #0
  11924. 8005830: 483d ldr r0, [pc, #244] @ (8005928 <Uart1ReceivedDataProcessCallback+0x768>)
  11925. 8005832: f002 fca5 bl 8008180 <HAL_DAC_Start>
  11926. respStatus = spOK;
  11927. 8005836: 2300 movs r3, #0
  11928. 8005838: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11929. break;
  11930. 800583c: e281 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11931. case spSetmotorYMaxCurrent:
  11932. float motorYMaxCurrent = 0;
  11933. 800583e: f04f 0300 mov.w r3, #0
  11934. 8005842: 623b str r3, [r7, #32]
  11935. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11936. 8005844: 683b ldr r3, [r7, #0]
  11937. 8005846: 330c adds r3, #12
  11938. 8005848: f107 0220 add.w r2, r7, #32
  11939. 800584c: f107 0144 add.w r1, r7, #68 @ 0x44
  11940. 8005850: 4618 mov r0, r3
  11941. 8005852: f7fe f94f bl 8003af4 <ReadWordFromBufer>
  11942. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11943. 8005856: edd7 7a08 vldr s15, [r7, #32]
  11944. 800585a: ed9f 7a32 vldr s14, [pc, #200] @ 8005924 <Uart1ReceivedDataProcessCallback+0x764>
  11945. 800585e: ee67 7a87 vmul.f32 s15, s15, s14
  11946. 8005862: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11947. 8005866: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11948. 800586a: ee86 7b05 vdiv.f64 d7, d6, d5
  11949. 800586e: eefc 7bc7 vcvt.u32.f64 s15, d7
  11950. 8005872: ee17 3a90 vmov r3, s15
  11951. 8005876: 657b str r3, [r7, #84] @ 0x54
  11952. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11953. 8005878: 6d7b ldr r3, [r7, #84] @ 0x54
  11954. 800587a: 2200 movs r2, #0
  11955. 800587c: 2110 movs r1, #16
  11956. 800587e: 482a ldr r0, [pc, #168] @ (8005928 <Uart1ReceivedDataProcessCallback+0x768>)
  11957. 8005880: f002 fd2b bl 80082da <HAL_DAC_SetValue>
  11958. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11959. 8005884: 2110 movs r1, #16
  11960. 8005886: 4828 ldr r0, [pc, #160] @ (8005928 <Uart1ReceivedDataProcessCallback+0x768>)
  11961. 8005888: f002 fc7a bl 8008180 <HAL_DAC_Start>
  11962. respStatus = spOK;
  11963. 800588c: 2300 movs r3, #0
  11964. 800588e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11965. break;
  11966. 8005892: e256 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  11967. case spClearPeakMeasurments:
  11968. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11969. 8005894: 4b25 ldr r3, [pc, #148] @ (800592c <Uart1ReceivedDataProcessCallback+0x76c>)
  11970. 8005896: 681b ldr r3, [r3, #0]
  11971. 8005898: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11972. 800589c: 4618 mov r0, r3
  11973. 800589e: f00e fe4e bl 801453e <osMutexAcquire>
  11974. 80058a2: 4603 mov r3, r0
  11975. 80058a4: 2b00 cmp r3, #0
  11976. 80058a6: d12a bne.n 80058fe <Uart1ReceivedDataProcessCallback+0x73e>
  11977. for (int i = 0; i < 3; i++) {
  11978. 80058a8: 2300 movs r3, #0
  11979. 80058aa: 67fb str r3, [r7, #124] @ 0x7c
  11980. 80058ac: e01b b.n 80058e6 <Uart1ReceivedDataProcessCallback+0x726>
  11981. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11982. 80058ae: 4a20 ldr r2, [pc, #128] @ (8005930 <Uart1ReceivedDataProcessCallback+0x770>)
  11983. 80058b0: 6ffb ldr r3, [r7, #124] @ 0x7c
  11984. 80058b2: 009b lsls r3, r3, #2
  11985. 80058b4: 4413 add r3, r2
  11986. 80058b6: 681a ldr r2, [r3, #0]
  11987. 80058b8: 491d ldr r1, [pc, #116] @ (8005930 <Uart1ReceivedDataProcessCallback+0x770>)
  11988. 80058ba: 6ffb ldr r3, [r7, #124] @ 0x7c
  11989. 80058bc: 3302 adds r3, #2
  11990. 80058be: 009b lsls r3, r3, #2
  11991. 80058c0: 440b add r3, r1
  11992. 80058c2: 3304 adds r3, #4
  11993. 80058c4: 601a str r2, [r3, #0]
  11994. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11995. 80058c6: 4a1a ldr r2, [pc, #104] @ (8005930 <Uart1ReceivedDataProcessCallback+0x770>)
  11996. 80058c8: 6ffb ldr r3, [r7, #124] @ 0x7c
  11997. 80058ca: 3306 adds r3, #6
  11998. 80058cc: 009b lsls r3, r3, #2
  11999. 80058ce: 4413 add r3, r2
  12000. 80058d0: 681a ldr r2, [r3, #0]
  12001. 80058d2: 4917 ldr r1, [pc, #92] @ (8005930 <Uart1ReceivedDataProcessCallback+0x770>)
  12002. 80058d4: 6ffb ldr r3, [r7, #124] @ 0x7c
  12003. 80058d6: 3308 adds r3, #8
  12004. 80058d8: 009b lsls r3, r3, #2
  12005. 80058da: 440b add r3, r1
  12006. 80058dc: 3304 adds r3, #4
  12007. 80058de: 601a str r2, [r3, #0]
  12008. for (int i = 0; i < 3; i++) {
  12009. 80058e0: 6ffb ldr r3, [r7, #124] @ 0x7c
  12010. 80058e2: 3301 adds r3, #1
  12011. 80058e4: 67fb str r3, [r7, #124] @ 0x7c
  12012. 80058e6: 6ffb ldr r3, [r7, #124] @ 0x7c
  12013. 80058e8: 2b02 cmp r3, #2
  12014. 80058ea: dde0 ble.n 80058ae <Uart1ReceivedDataProcessCallback+0x6ee>
  12015. }
  12016. osMutexRelease (resMeasurementsMutex);
  12017. 80058ec: 4b0f ldr r3, [pc, #60] @ (800592c <Uart1ReceivedDataProcessCallback+0x76c>)
  12018. 80058ee: 681b ldr r3, [r3, #0]
  12019. 80058f0: 4618 mov r0, r3
  12020. 80058f2: f00e fe6f bl 80145d4 <osMutexRelease>
  12021. respStatus = spOK;
  12022. 80058f6: 2300 movs r3, #0
  12023. 80058f8: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12024. } else {
  12025. respStatus = spInternalError;
  12026. }
  12027. break;
  12028. 80058fc: e221 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12029. respStatus = spInternalError;
  12030. 80058fe: 23fc movs r3, #252 @ 0xfc
  12031. 8005900: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12032. break;
  12033. 8005904: e21d b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12034. 8005906: bf00 nop
  12035. 8005908: 2400081c .word 0x2400081c
  12036. 800590c: 24000744 .word 0x24000744
  12037. 8005910: 24000860 .word 0x24000860
  12038. 8005914: 240007c0 .word 0x240007c0
  12039. 8005918: 240004d4 .word 0x240004d4
  12040. 800591c: 24000774 .word 0x24000774
  12041. 8005920: 240006e4 .word 0x240006e4
  12042. 8005924: 457ff000 .word 0x457ff000
  12043. 8005928: 24000404 .word 0x24000404
  12044. 800592c: 24000818 .word 0x24000818
  12045. 8005930: 24000824 .word 0x24000824
  12046. case spSetEncoderXValue:
  12047. float enocoderXValue = 0;
  12048. 8005934: f04f 0300 mov.w r3, #0
  12049. 8005938: 61fb str r3, [r7, #28]
  12050. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  12051. 800593a: 683b ldr r3, [r7, #0]
  12052. 800593c: 330c adds r3, #12
  12053. 800593e: f107 021c add.w r2, r7, #28
  12054. 8005942: f107 0144 add.w r1, r7, #68 @ 0x44
  12055. 8005946: 4618 mov r0, r3
  12056. 8005948: f7fe f8d4 bl 8003af4 <ReadWordFromBufer>
  12057. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12058. 800594c: 4bbc ldr r3, [pc, #752] @ (8005c40 <Uart1ReceivedDataProcessCallback+0xa80>)
  12059. 800594e: 681b ldr r3, [r3, #0]
  12060. 8005950: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12061. 8005954: 4618 mov r0, r3
  12062. 8005956: f00e fdf2 bl 801453e <osMutexAcquire>
  12063. 800595a: 4603 mov r3, r0
  12064. 800595c: 2b00 cmp r3, #0
  12065. 800595e: d10b bne.n 8005978 <Uart1ReceivedDataProcessCallback+0x7b8>
  12066. sensorsInfo.pvEncoderX = enocoderXValue;
  12067. 8005960: 69fb ldr r3, [r7, #28]
  12068. 8005962: 4ab8 ldr r2, [pc, #736] @ (8005c44 <Uart1ReceivedDataProcessCallback+0xa84>)
  12069. 8005964: 60d3 str r3, [r2, #12]
  12070. osMutexRelease (sensorsInfoMutex);
  12071. 8005966: 4bb6 ldr r3, [pc, #728] @ (8005c40 <Uart1ReceivedDataProcessCallback+0xa80>)
  12072. 8005968: 681b ldr r3, [r3, #0]
  12073. 800596a: 4618 mov r0, r3
  12074. 800596c: f00e fe32 bl 80145d4 <osMutexRelease>
  12075. respStatus = spOK;
  12076. 8005970: 2300 movs r3, #0
  12077. 8005972: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12078. } else {
  12079. respStatus = spInternalError;
  12080. }
  12081. break;
  12082. 8005976: e1e4 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12083. respStatus = spInternalError;
  12084. 8005978: 23fc movs r3, #252 @ 0xfc
  12085. 800597a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12086. break;
  12087. 800597e: e1e0 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12088. case spSetEncoderYValue:
  12089. float enocoderYValue = 0;
  12090. 8005980: f04f 0300 mov.w r3, #0
  12091. 8005984: 61bb str r3, [r7, #24]
  12092. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  12093. 8005986: 683b ldr r3, [r7, #0]
  12094. 8005988: 330c adds r3, #12
  12095. 800598a: f107 0218 add.w r2, r7, #24
  12096. 800598e: f107 0144 add.w r1, r7, #68 @ 0x44
  12097. 8005992: 4618 mov r0, r3
  12098. 8005994: f7fe f8ae bl 8003af4 <ReadWordFromBufer>
  12099. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12100. 8005998: 4ba9 ldr r3, [pc, #676] @ (8005c40 <Uart1ReceivedDataProcessCallback+0xa80>)
  12101. 800599a: 681b ldr r3, [r3, #0]
  12102. 800599c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12103. 80059a0: 4618 mov r0, r3
  12104. 80059a2: f00e fdcc bl 801453e <osMutexAcquire>
  12105. 80059a6: 4603 mov r3, r0
  12106. 80059a8: 2b00 cmp r3, #0
  12107. 80059aa: d10b bne.n 80059c4 <Uart1ReceivedDataProcessCallback+0x804>
  12108. sensorsInfo.pvEncoderY = enocoderYValue;
  12109. 80059ac: 69bb ldr r3, [r7, #24]
  12110. 80059ae: 4aa5 ldr r2, [pc, #660] @ (8005c44 <Uart1ReceivedDataProcessCallback+0xa84>)
  12111. 80059b0: 6113 str r3, [r2, #16]
  12112. osMutexRelease (sensorsInfoMutex);
  12113. 80059b2: 4ba3 ldr r3, [pc, #652] @ (8005c40 <Uart1ReceivedDataProcessCallback+0xa80>)
  12114. 80059b4: 681b ldr r3, [r3, #0]
  12115. 80059b6: 4618 mov r0, r3
  12116. 80059b8: f00e fe0c bl 80145d4 <osMutexRelease>
  12117. respStatus = spOK;
  12118. 80059bc: 2300 movs r3, #0
  12119. 80059be: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12120. } else {
  12121. respStatus = spInternalError;
  12122. }
  12123. break;
  12124. 80059c2: e1be b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12125. respStatus = spInternalError;
  12126. 80059c4: 23fc movs r3, #252 @ 0xfc
  12127. 80059c6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12128. break;
  12129. 80059ca: e1ba b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12130. case spSetVoltageMeasGains:
  12131. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12132. 80059cc: 4b9e ldr r3, [pc, #632] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12133. 80059ce: 681b ldr r3, [r3, #0]
  12134. 80059d0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12135. 80059d4: 4618 mov r0, r3
  12136. 80059d6: f00e fdb2 bl 801453e <osMutexAcquire>
  12137. 80059da: 4603 mov r3, r0
  12138. 80059dc: 2b00 cmp r3, #0
  12139. 80059de: d122 bne.n 8005a26 <Uart1ReceivedDataProcessCallback+0x866>
  12140. for (uint8_t i = 0; i < 3; i++) {
  12141. 80059e0: 2300 movs r3, #0
  12142. 80059e2: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12143. 80059e6: e011 b.n 8005a0c <Uart1ReceivedDataProcessCallback+0x84c>
  12144. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  12145. 80059e8: 683b ldr r3, [r7, #0]
  12146. 80059ea: f103 000c add.w r0, r3, #12
  12147. 80059ee: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12148. 80059f2: 00db lsls r3, r3, #3
  12149. 80059f4: 4a95 ldr r2, [pc, #596] @ (8005c4c <Uart1ReceivedDataProcessCallback+0xa8c>)
  12150. 80059f6: 441a add r2, r3
  12151. 80059f8: f107 0344 add.w r3, r7, #68 @ 0x44
  12152. 80059fc: 4619 mov r1, r3
  12153. 80059fe: f7fe f879 bl 8003af4 <ReadWordFromBufer>
  12154. for (uint8_t i = 0; i < 3; i++) {
  12155. 8005a02: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12156. 8005a06: 3301 adds r3, #1
  12157. 8005a08: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12158. 8005a0c: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12159. 8005a10: 2b02 cmp r3, #2
  12160. 8005a12: d9e9 bls.n 80059e8 <Uart1ReceivedDataProcessCallback+0x828>
  12161. }
  12162. osMutexRelease (resMeasurementsMutex);
  12163. 8005a14: 4b8c ldr r3, [pc, #560] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12164. 8005a16: 681b ldr r3, [r3, #0]
  12165. 8005a18: 4618 mov r0, r3
  12166. 8005a1a: f00e fddb bl 80145d4 <osMutexRelease>
  12167. respStatus = spOK;
  12168. 8005a1e: 2300 movs r3, #0
  12169. 8005a20: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12170. } else {
  12171. respStatus = spInternalError;
  12172. }
  12173. break;
  12174. 8005a24: e18d b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12175. respStatus = spInternalError;
  12176. 8005a26: 23fc movs r3, #252 @ 0xfc
  12177. 8005a28: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12178. break;
  12179. 8005a2c: e189 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12180. case spSetVoltageMeasOffsets:
  12181. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12182. 8005a2e: 4b86 ldr r3, [pc, #536] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12183. 8005a30: 681b ldr r3, [r3, #0]
  12184. 8005a32: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12185. 8005a36: 4618 mov r0, r3
  12186. 8005a38: f00e fd81 bl 801453e <osMutexAcquire>
  12187. 8005a3c: 4603 mov r3, r0
  12188. 8005a3e: 2b00 cmp r3, #0
  12189. 8005a40: d123 bne.n 8005a8a <Uart1ReceivedDataProcessCallback+0x8ca>
  12190. for (uint8_t i = 0; i < 3; i++) {
  12191. 8005a42: 2300 movs r3, #0
  12192. 8005a44: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12193. 8005a48: e012 b.n 8005a70 <Uart1ReceivedDataProcessCallback+0x8b0>
  12194. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  12195. 8005a4a: 683b ldr r3, [r7, #0]
  12196. 8005a4c: f103 000c add.w r0, r3, #12
  12197. 8005a50: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12198. 8005a54: 00db lsls r3, r3, #3
  12199. 8005a56: 4a7d ldr r2, [pc, #500] @ (8005c4c <Uart1ReceivedDataProcessCallback+0xa8c>)
  12200. 8005a58: 4413 add r3, r2
  12201. 8005a5a: 1d1a adds r2, r3, #4
  12202. 8005a5c: f107 0344 add.w r3, r7, #68 @ 0x44
  12203. 8005a60: 4619 mov r1, r3
  12204. 8005a62: f7fe f847 bl 8003af4 <ReadWordFromBufer>
  12205. for (uint8_t i = 0; i < 3; i++) {
  12206. 8005a66: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12207. 8005a6a: 3301 adds r3, #1
  12208. 8005a6c: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12209. 8005a70: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12210. 8005a74: 2b02 cmp r3, #2
  12211. 8005a76: d9e8 bls.n 8005a4a <Uart1ReceivedDataProcessCallback+0x88a>
  12212. }
  12213. osMutexRelease (resMeasurementsMutex);
  12214. 8005a78: 4b73 ldr r3, [pc, #460] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12215. 8005a7a: 681b ldr r3, [r3, #0]
  12216. 8005a7c: 4618 mov r0, r3
  12217. 8005a7e: f00e fda9 bl 80145d4 <osMutexRelease>
  12218. respStatus = spOK;
  12219. 8005a82: 2300 movs r3, #0
  12220. 8005a84: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12221. } else {
  12222. respStatus = spInternalError;
  12223. }
  12224. break;
  12225. 8005a88: e15b b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12226. respStatus = spInternalError;
  12227. 8005a8a: 23fc movs r3, #252 @ 0xfc
  12228. 8005a8c: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12229. break;
  12230. 8005a90: e157 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12231. case spSetCurrentMeasGains:
  12232. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12233. 8005a92: 4b6d ldr r3, [pc, #436] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12234. 8005a94: 681b ldr r3, [r3, #0]
  12235. 8005a96: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12236. 8005a9a: 4618 mov r0, r3
  12237. 8005a9c: f00e fd4f bl 801453e <osMutexAcquire>
  12238. 8005aa0: 4603 mov r3, r0
  12239. 8005aa2: 2b00 cmp r3, #0
  12240. 8005aa4: d122 bne.n 8005aec <Uart1ReceivedDataProcessCallback+0x92c>
  12241. for (uint8_t i = 0; i < 3; i++) {
  12242. 8005aa6: 2300 movs r3, #0
  12243. 8005aa8: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12244. 8005aac: e011 b.n 8005ad2 <Uart1ReceivedDataProcessCallback+0x912>
  12245. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  12246. 8005aae: 683b ldr r3, [r7, #0]
  12247. 8005ab0: f103 000c add.w r0, r3, #12
  12248. 8005ab4: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12249. 8005ab8: 00db lsls r3, r3, #3
  12250. 8005aba: 4a65 ldr r2, [pc, #404] @ (8005c50 <Uart1ReceivedDataProcessCallback+0xa90>)
  12251. 8005abc: 441a add r2, r3
  12252. 8005abe: f107 0344 add.w r3, r7, #68 @ 0x44
  12253. 8005ac2: 4619 mov r1, r3
  12254. 8005ac4: f7fe f816 bl 8003af4 <ReadWordFromBufer>
  12255. for (uint8_t i = 0; i < 3; i++) {
  12256. 8005ac8: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12257. 8005acc: 3301 adds r3, #1
  12258. 8005ace: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12259. 8005ad2: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12260. 8005ad6: 2b02 cmp r3, #2
  12261. 8005ad8: d9e9 bls.n 8005aae <Uart1ReceivedDataProcessCallback+0x8ee>
  12262. }
  12263. osMutexRelease (resMeasurementsMutex);
  12264. 8005ada: 4b5b ldr r3, [pc, #364] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12265. 8005adc: 681b ldr r3, [r3, #0]
  12266. 8005ade: 4618 mov r0, r3
  12267. 8005ae0: f00e fd78 bl 80145d4 <osMutexRelease>
  12268. respStatus = spOK;
  12269. 8005ae4: 2300 movs r3, #0
  12270. 8005ae6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12271. } else {
  12272. respStatus = spInternalError;
  12273. }
  12274. break;
  12275. 8005aea: e12a b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12276. respStatus = spInternalError;
  12277. 8005aec: 23fc movs r3, #252 @ 0xfc
  12278. 8005aee: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12279. break;
  12280. 8005af2: e126 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12281. case spSetCurrentMeasOffsets:
  12282. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12283. 8005af4: 4b54 ldr r3, [pc, #336] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12284. 8005af6: 681b ldr r3, [r3, #0]
  12285. 8005af8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12286. 8005afc: 4618 mov r0, r3
  12287. 8005afe: f00e fd1e bl 801453e <osMutexAcquire>
  12288. 8005b02: 4603 mov r3, r0
  12289. 8005b04: 2b00 cmp r3, #0
  12290. 8005b06: d123 bne.n 8005b50 <Uart1ReceivedDataProcessCallback+0x990>
  12291. for (uint8_t i = 0; i < 3; i++) {
  12292. 8005b08: 2300 movs r3, #0
  12293. 8005b0a: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12294. 8005b0e: e012 b.n 8005b36 <Uart1ReceivedDataProcessCallback+0x976>
  12295. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  12296. 8005b10: 683b ldr r3, [r7, #0]
  12297. 8005b12: f103 000c add.w r0, r3, #12
  12298. 8005b16: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12299. 8005b1a: 00db lsls r3, r3, #3
  12300. 8005b1c: 4a4c ldr r2, [pc, #304] @ (8005c50 <Uart1ReceivedDataProcessCallback+0xa90>)
  12301. 8005b1e: 4413 add r3, r2
  12302. 8005b20: 1d1a adds r2, r3, #4
  12303. 8005b22: f107 0344 add.w r3, r7, #68 @ 0x44
  12304. 8005b26: 4619 mov r1, r3
  12305. 8005b28: f7fd ffe4 bl 8003af4 <ReadWordFromBufer>
  12306. for (uint8_t i = 0; i < 3; i++) {
  12307. 8005b2c: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12308. 8005b30: 3301 adds r3, #1
  12309. 8005b32: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12310. 8005b36: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12311. 8005b3a: 2b02 cmp r3, #2
  12312. 8005b3c: d9e8 bls.n 8005b10 <Uart1ReceivedDataProcessCallback+0x950>
  12313. }
  12314. osMutexRelease (resMeasurementsMutex);
  12315. 8005b3e: 4b42 ldr r3, [pc, #264] @ (8005c48 <Uart1ReceivedDataProcessCallback+0xa88>)
  12316. 8005b40: 681b ldr r3, [r3, #0]
  12317. 8005b42: 4618 mov r0, r3
  12318. 8005b44: f00e fd46 bl 80145d4 <osMutexRelease>
  12319. respStatus = spOK;
  12320. 8005b48: 2300 movs r3, #0
  12321. 8005b4a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12322. } else {
  12323. respStatus = spInternalError;
  12324. }
  12325. break;
  12326. 8005b4e: e0f8 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12327. respStatus = spInternalError;
  12328. 8005b50: 23fc movs r3, #252 @ 0xfc
  12329. 8005b52: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12330. break;
  12331. 8005b56: e0f4 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12332. __ASM volatile ("cpsid i" : : : "memory");
  12333. 8005b58: b672 cpsid i
  12334. }
  12335. 8005b5a: bf00 nop
  12336. case spResetSystem:
  12337. __disable_irq();
  12338. NVIC_SystemReset();
  12339. 8005b5c: f7fe ff62 bl 8004a24 <__NVIC_SystemReset>
  12340. break;
  12341. case spSetPositonX:
  12342. PositionControlTaskData posXData = { 0 };
  12343. 8005b60: f04f 0300 mov.w r3, #0
  12344. 8005b64: 617b str r3, [r7, #20]
  12345. if (positionXControlTaskInitArg.positionSettingQueue != NULL)
  12346. 8005b66: 4b3b ldr r3, [pc, #236] @ (8005c54 <Uart1ReceivedDataProcessCallback+0xa94>)
  12347. 8005b68: 691b ldr r3, [r3, #16]
  12348. 8005b6a: 2b00 cmp r3, #0
  12349. 8005b6c: f000 80e6 beq.w 8005d3c <Uart1ReceivedDataProcessCallback+0xb7c>
  12350. {
  12351. float posXPercent = 0;
  12352. 8005b70: f04f 0300 mov.w r3, #0
  12353. 8005b74: 60fb str r3, [r7, #12]
  12354. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posXPercent);
  12355. 8005b76: 683b ldr r3, [r7, #0]
  12356. 8005b78: 330c adds r3, #12
  12357. 8005b7a: f107 020c add.w r2, r7, #12
  12358. 8005b7e: f107 0144 add.w r1, r7, #68 @ 0x44
  12359. 8005b82: 4618 mov r0, r3
  12360. 8005b84: f7fd ff81 bl 8003a8a <ReadFloatFromBuffer>
  12361. float posXDegress = MAX_X_AXE_ANGLE * posXPercent * 0.01;
  12362. 8005b88: edd7 7a03 vldr s15, [r7, #12]
  12363. 8005b8c: ed9f 7a32 vldr s14, [pc, #200] @ 8005c58 <Uart1ReceivedDataProcessCallback+0xa98>
  12364. 8005b90: ee67 7a87 vmul.f32 s15, s15, s14
  12365. 8005b94: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12366. 8005b98: ed9f 6b27 vldr d6, [pc, #156] @ 8005c38 <Uart1ReceivedDataProcessCallback+0xa78>
  12367. 8005b9c: ee27 7b06 vmul.f64 d7, d7, d6
  12368. 8005ba0: eef7 7bc7 vcvt.f32.f64 s15, d7
  12369. 8005ba4: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  12370. float angleDelta = 360 / ENCODER_X_IMP_PER_TURN;
  12371. 8005ba8: 4b2c ldr r3, [pc, #176] @ (8005c5c <Uart1ReceivedDataProcessCallback+0xa9c>)
  12372. 8005baa: 65fb str r3, [r7, #92] @ 0x5c
  12373. float rest = fmodf(posXDegress, angleDelta);
  12374. 8005bac: edd7 0a17 vldr s1, [r7, #92] @ 0x5c
  12375. 8005bb0: ed97 0a18 vldr s0, [r7, #96] @ 0x60
  12376. 8005bb4: f012 fcde bl 8018574 <fmodf>
  12377. 8005bb8: ed87 0a16 vstr s0, [r7, #88] @ 0x58
  12378. if ( rest > (angleDelta/2))
  12379. 8005bbc: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  12380. 8005bc0: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12381. 8005bc4: eec7 7a26 vdiv.f32 s15, s14, s13
  12382. 8005bc8: ed97 7a16 vldr s14, [r7, #88] @ 0x58
  12383. 8005bcc: eeb4 7ae7 vcmpe.f32 s14, s15
  12384. 8005bd0: eef1 fa10 vmrs APSR_nzcv, fpscr
  12385. 8005bd4: dd14 ble.n 8005c00 <Uart1ReceivedDataProcessCallback+0xa40>
  12386. {
  12387. posXData.positionSettingValue = 100 * (posXDegress - rest + angleDelta) / MAX_X_AXE_ANGLE;
  12388. 8005bd6: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12389. 8005bda: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12390. 8005bde: ee37 7a67 vsub.f32 s14, s14, s15
  12391. 8005be2: edd7 7a17 vldr s15, [r7, #92] @ 0x5c
  12392. 8005be6: ee77 7a27 vadd.f32 s15, s14, s15
  12393. 8005bea: ed9f 7a1d vldr s14, [pc, #116] @ 8005c60 <Uart1ReceivedDataProcessCallback+0xaa0>
  12394. 8005bee: ee27 7a87 vmul.f32 s14, s15, s14
  12395. 8005bf2: eddf 6a19 vldr s13, [pc, #100] @ 8005c58 <Uart1ReceivedDataProcessCallback+0xa98>
  12396. 8005bf6: eec7 7a26 vdiv.f32 s15, s14, s13
  12397. 8005bfa: edc7 7a05 vstr s15, [r7, #20]
  12398. 8005bfe: e00f b.n 8005c20 <Uart1ReceivedDataProcessCallback+0xa60>
  12399. }
  12400. else
  12401. {
  12402. posXData.positionSettingValue = 100 * (posXDegress - rest) / MAX_X_AXE_ANGLE;
  12403. 8005c00: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12404. 8005c04: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12405. 8005c08: ee77 7a67 vsub.f32 s15, s14, s15
  12406. 8005c0c: ed9f 7a14 vldr s14, [pc, #80] @ 8005c60 <Uart1ReceivedDataProcessCallback+0xaa0>
  12407. 8005c10: ee27 7a87 vmul.f32 s14, s15, s14
  12408. 8005c14: eddf 6a10 vldr s13, [pc, #64] @ 8005c58 <Uart1ReceivedDataProcessCallback+0xa98>
  12409. 8005c18: eec7 7a26 vdiv.f32 s15, s14, s13
  12410. 8005c1c: edc7 7a05 vstr s15, [r7, #20]
  12411. }
  12412. osMessageQueuePut(positionXControlTaskInitArg.positionSettingQueue, &posXData, 0, 0);
  12413. 8005c20: 4b0c ldr r3, [pc, #48] @ (8005c54 <Uart1ReceivedDataProcessCallback+0xa94>)
  12414. 8005c22: 6918 ldr r0, [r3, #16]
  12415. 8005c24: f107 0114 add.w r1, r7, #20
  12416. 8005c28: 2300 movs r3, #0
  12417. 8005c2a: 2200 movs r2, #0
  12418. 8005c2c: f00e fd82 bl 8014734 <osMessageQueuePut>
  12419. }
  12420. break;
  12421. 8005c30: e084 b.n 8005d3c <Uart1ReceivedDataProcessCallback+0xb7c>
  12422. 8005c32: bf00 nop
  12423. 8005c34: f3af 8000 nop.w
  12424. 8005c38: 47ae147b .word 0x47ae147b
  12425. 8005c3c: 3f847ae1 .word 0x3f847ae1
  12426. 8005c40: 2400081c .word 0x2400081c
  12427. 8005c44: 24000860 .word 0x24000860
  12428. 8005c48: 24000818 .word 0x24000818
  12429. 8005c4c: 24000000 .word 0x24000000
  12430. 8005c50: 24000018 .word 0x24000018
  12431. 8005c54: 240008b4 .word 0x240008b4
  12432. 8005c58: 43b40000 .word 0x43b40000
  12433. 8005c5c: 41900000 .word 0x41900000
  12434. 8005c60: 42c80000 .word 0x42c80000
  12435. case spSetPositonY:
  12436. PositionControlTaskData posYData = { 0 };
  12437. 8005c64: f04f 0300 mov.w r3, #0
  12438. 8005c68: 613b str r3, [r7, #16]
  12439. if (positionYControlTaskInitArg.positionSettingQueue != NULL)
  12440. 8005c6a: 4b4b ldr r3, [pc, #300] @ (8005d98 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12441. 8005c6c: 691b ldr r3, [r3, #16]
  12442. 8005c6e: 2b00 cmp r3, #0
  12443. 8005c70: d066 beq.n 8005d40 <Uart1ReceivedDataProcessCallback+0xb80>
  12444. {
  12445. float posYPercent = 0;
  12446. 8005c72: f04f 0300 mov.w r3, #0
  12447. 8005c76: 60bb str r3, [r7, #8]
  12448. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posYPercent);
  12449. 8005c78: 683b ldr r3, [r7, #0]
  12450. 8005c7a: 330c adds r3, #12
  12451. 8005c7c: f107 0208 add.w r2, r7, #8
  12452. 8005c80: f107 0144 add.w r1, r7, #68 @ 0x44
  12453. 8005c84: 4618 mov r0, r3
  12454. 8005c86: f7fd ff00 bl 8003a8a <ReadFloatFromBuffer>
  12455. float posYDegress = MAX_Y_AXE_ANGLE * posYPercent * 0.01;
  12456. 8005c8a: edd7 7a02 vldr s15, [r7, #8]
  12457. 8005c8e: ed9f 7a43 vldr s14, [pc, #268] @ 8005d9c <Uart1ReceivedDataProcessCallback+0xbdc>
  12458. 8005c92: ee67 7a87 vmul.f32 s15, s15, s14
  12459. 8005c96: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12460. 8005c9a: ed9f 6b3d vldr d6, [pc, #244] @ 8005d90 <Uart1ReceivedDataProcessCallback+0xbd0>
  12461. 8005c9e: ee27 7b06 vmul.f64 d7, d7, d6
  12462. 8005ca2: eef7 7bc7 vcvt.f32.f64 s15, d7
  12463. 8005ca6: edc7 7a1b vstr s15, [r7, #108] @ 0x6c
  12464. float angleDelta = 360 / ENCODER_Y_IMP_PER_TURN;
  12465. 8005caa: 4b3d ldr r3, [pc, #244] @ (8005da0 <Uart1ReceivedDataProcessCallback+0xbe0>)
  12466. 8005cac: 66bb str r3, [r7, #104] @ 0x68
  12467. float rest = fmodf(posYDegress, angleDelta);
  12468. 8005cae: edd7 0a1a vldr s1, [r7, #104] @ 0x68
  12469. 8005cb2: ed97 0a1b vldr s0, [r7, #108] @ 0x6c
  12470. 8005cb6: f012 fc5d bl 8018574 <fmodf>
  12471. 8005cba: ed87 0a19 vstr s0, [r7, #100] @ 0x64
  12472. if ( rest > (angleDelta/2))
  12473. 8005cbe: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  12474. 8005cc2: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12475. 8005cc6: eec7 7a26 vdiv.f32 s15, s14, s13
  12476. 8005cca: ed97 7a19 vldr s14, [r7, #100] @ 0x64
  12477. 8005cce: eeb4 7ae7 vcmpe.f32 s14, s15
  12478. 8005cd2: eef1 fa10 vmrs APSR_nzcv, fpscr
  12479. 8005cd6: dd14 ble.n 8005d02 <Uart1ReceivedDataProcessCallback+0xb42>
  12480. {
  12481. posYData.positionSettingValue = 100 * (posYDegress - rest + angleDelta) / MAX_Y_AXE_ANGLE;
  12482. 8005cd8: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12483. 8005cdc: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12484. 8005ce0: ee37 7a67 vsub.f32 s14, s14, s15
  12485. 8005ce4: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  12486. 8005ce8: ee77 7a27 vadd.f32 s15, s14, s15
  12487. 8005cec: ed9f 7a2d vldr s14, [pc, #180] @ 8005da4 <Uart1ReceivedDataProcessCallback+0xbe4>
  12488. 8005cf0: ee27 7a87 vmul.f32 s14, s15, s14
  12489. 8005cf4: eddf 6a29 vldr s13, [pc, #164] @ 8005d9c <Uart1ReceivedDataProcessCallback+0xbdc>
  12490. 8005cf8: eec7 7a26 vdiv.f32 s15, s14, s13
  12491. 8005cfc: edc7 7a04 vstr s15, [r7, #16]
  12492. 8005d00: e00f b.n 8005d22 <Uart1ReceivedDataProcessCallback+0xb62>
  12493. }
  12494. else
  12495. {
  12496. posYData.positionSettingValue = 100 * (posYDegress - rest) / MAX_Y_AXE_ANGLE;
  12497. 8005d02: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12498. 8005d06: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12499. 8005d0a: ee77 7a67 vsub.f32 s15, s14, s15
  12500. 8005d0e: ed9f 7a25 vldr s14, [pc, #148] @ 8005da4 <Uart1ReceivedDataProcessCallback+0xbe4>
  12501. 8005d12: ee27 7a87 vmul.f32 s14, s15, s14
  12502. 8005d16: eddf 6a21 vldr s13, [pc, #132] @ 8005d9c <Uart1ReceivedDataProcessCallback+0xbdc>
  12503. 8005d1a: eec7 7a26 vdiv.f32 s15, s14, s13
  12504. 8005d1e: edc7 7a04 vstr s15, [r7, #16]
  12505. }
  12506. osMessageQueuePut(positionYControlTaskInitArg.positionSettingQueue, &posYData, 0, 0);
  12507. 8005d22: 4b1d ldr r3, [pc, #116] @ (8005d98 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12508. 8005d24: 6918 ldr r0, [r3, #16]
  12509. 8005d26: f107 0110 add.w r1, r7, #16
  12510. 8005d2a: 2300 movs r3, #0
  12511. 8005d2c: 2200 movs r2, #0
  12512. 8005d2e: f00e fd01 bl 8014734 <osMessageQueuePut>
  12513. }
  12514. break;
  12515. 8005d32: e005 b.n 8005d40 <Uart1ReceivedDataProcessCallback+0xb80>
  12516. default: respStatus = spUnknownCommand; break;
  12517. 8005d34: 23fd movs r3, #253 @ 0xfd
  12518. 8005d36: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12519. 8005d3a: e002 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12520. break;
  12521. 8005d3c: bf00 nop
  12522. 8005d3e: e000 b.n 8005d42 <Uart1ReceivedDataProcessCallback+0xb82>
  12523. break;
  12524. 8005d40: bf00 nop
  12525. }
  12526. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  12527. 8005d42: 6f7b ldr r3, [r7, #116] @ 0x74
  12528. 8005d44: 6898 ldr r0, [r3, #8]
  12529. 8005d46: 683b ldr r3, [r7, #0]
  12530. 8005d48: 8819 ldrh r1, [r3, #0]
  12531. 8005d4a: 683b ldr r3, [r7, #0]
  12532. 8005d4c: 789a ldrb r2, [r3, #2]
  12533. 8005d4e: 4b16 ldr r3, [pc, #88] @ (8005da8 <Uart1ReceivedDataProcessCallback+0xbe8>)
  12534. 8005d50: 881b ldrh r3, [r3, #0]
  12535. 8005d52: f997 4097 ldrsb.w r4, [r7, #151] @ 0x97
  12536. 8005d56: 9301 str r3, [sp, #4]
  12537. 8005d58: 4b14 ldr r3, [pc, #80] @ (8005dac <Uart1ReceivedDataProcessCallback+0xbec>)
  12538. 8005d5a: 9300 str r3, [sp, #0]
  12539. 8005d5c: 4623 mov r3, r4
  12540. 8005d5e: f7fd fefd bl 8003b5c <PrepareRespFrame>
  12541. 8005d62: 4603 mov r3, r0
  12542. 8005d64: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  12543. if (dataToSend > 0) {
  12544. 8005d68: f8b7 3072 ldrh.w r3, [r7, #114] @ 0x72
  12545. 8005d6c: 2b00 cmp r3, #0
  12546. 8005d6e: d008 beq.n 8005d82 <Uart1ReceivedDataProcessCallback+0xbc2>
  12547. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  12548. 8005d70: 6f7b ldr r3, [r7, #116] @ 0x74
  12549. 8005d72: 6b18 ldr r0, [r3, #48] @ 0x30
  12550. 8005d74: 6f7b ldr r3, [r7, #116] @ 0x74
  12551. 8005d76: 689b ldr r3, [r3, #8]
  12552. 8005d78: f8b7 2072 ldrh.w r2, [r7, #114] @ 0x72
  12553. 8005d7c: 4619 mov r1, r3
  12554. 8005d7e: f00b fbb1 bl 80114e4 <HAL_UART_Transmit_IT>
  12555. }
  12556. #ifdef SERIAL_PROTOCOL_DBG
  12557. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  12558. #endif
  12559. }
  12560. 8005d82: bf00 nop
  12561. 8005d84: 379c adds r7, #156 @ 0x9c
  12562. 8005d86: 46bd mov sp, r7
  12563. 8005d88: bd90 pop {r4, r7, pc}
  12564. 8005d8a: bf00 nop
  12565. 8005d8c: f3af 8000 nop.w
  12566. 8005d90: 47ae147b .word 0x47ae147b
  12567. 8005d94: 3f847ae1 .word 0x3f847ae1
  12568. 8005d98: 240008e8 .word 0x240008e8
  12569. 8005d9c: 43b40000 .word 0x43b40000
  12570. 8005da0: 41900000 .word 0x41900000
  12571. 8005da4: 42c80000 .word 0x42c80000
  12572. 8005da8: 2400105c .word 0x2400105c
  12573. 8005dac: 24000fdc .word 0x24000fdc
  12574. 08005db0 <Reset_Handler>:
  12575. .section .text.Reset_Handler
  12576. .weak Reset_Handler
  12577. .type Reset_Handler, %function
  12578. Reset_Handler:
  12579. ldr sp, =_estack /* set stack pointer */
  12580. 8005db0: f8df d034 ldr.w sp, [pc, #52] @ 8005de8 <LoopFillZerobss+0xe>
  12581. /* Call the clock system initialization function.*/
  12582. bl SystemInit
  12583. 8005db4: f7fe fdae bl 8004914 <SystemInit>
  12584. /* Copy the data segment initializers from flash to SRAM */
  12585. ldr r0, =_sdata
  12586. 8005db8: 480c ldr r0, [pc, #48] @ (8005dec <LoopFillZerobss+0x12>)
  12587. ldr r1, =_edata
  12588. 8005dba: 490d ldr r1, [pc, #52] @ (8005df0 <LoopFillZerobss+0x16>)
  12589. ldr r2, =_sidata
  12590. 8005dbc: 4a0d ldr r2, [pc, #52] @ (8005df4 <LoopFillZerobss+0x1a>)
  12591. movs r3, #0
  12592. 8005dbe: 2300 movs r3, #0
  12593. b LoopCopyDataInit
  12594. 8005dc0: e002 b.n 8005dc8 <LoopCopyDataInit>
  12595. 08005dc2 <CopyDataInit>:
  12596. CopyDataInit:
  12597. ldr r4, [r2, r3]
  12598. 8005dc2: 58d4 ldr r4, [r2, r3]
  12599. str r4, [r0, r3]
  12600. 8005dc4: 50c4 str r4, [r0, r3]
  12601. adds r3, r3, #4
  12602. 8005dc6: 3304 adds r3, #4
  12603. 08005dc8 <LoopCopyDataInit>:
  12604. LoopCopyDataInit:
  12605. adds r4, r0, r3
  12606. 8005dc8: 18c4 adds r4, r0, r3
  12607. cmp r4, r1
  12608. 8005dca: 428c cmp r4, r1
  12609. bcc CopyDataInit
  12610. 8005dcc: d3f9 bcc.n 8005dc2 <CopyDataInit>
  12611. /* Zero fill the bss segment. */
  12612. ldr r2, =_sbss
  12613. 8005dce: 4a0a ldr r2, [pc, #40] @ (8005df8 <LoopFillZerobss+0x1e>)
  12614. ldr r4, =_ebss
  12615. 8005dd0: 4c0a ldr r4, [pc, #40] @ (8005dfc <LoopFillZerobss+0x22>)
  12616. movs r3, #0
  12617. 8005dd2: 2300 movs r3, #0
  12618. b LoopFillZerobss
  12619. 8005dd4: e001 b.n 8005dda <LoopFillZerobss>
  12620. 08005dd6 <FillZerobss>:
  12621. FillZerobss:
  12622. str r3, [r2]
  12623. 8005dd6: 6013 str r3, [r2, #0]
  12624. adds r2, r2, #4
  12625. 8005dd8: 3204 adds r2, #4
  12626. 08005dda <LoopFillZerobss>:
  12627. LoopFillZerobss:
  12628. cmp r2, r4
  12629. 8005dda: 42a2 cmp r2, r4
  12630. bcc FillZerobss
  12631. 8005ddc: d3fb bcc.n 8005dd6 <FillZerobss>
  12632. /* Call static constructors */
  12633. bl __libc_init_array
  12634. 8005dde: f012 fb3f bl 8018460 <__libc_init_array>
  12635. /* Call the application's entry point.*/
  12636. bl main
  12637. 8005de2: f7fa fc37 bl 8000654 <main>
  12638. bx lr
  12639. 8005de6: 4770 bx lr
  12640. ldr sp, =_estack /* set stack pointer */
  12641. 8005de8: 24060000 .word 0x24060000
  12642. ldr r0, =_sdata
  12643. 8005dec: 24000000 .word 0x24000000
  12644. ldr r1, =_edata
  12645. 8005df0: 24000098 .word 0x24000098
  12646. ldr r2, =_sidata
  12647. 8005df4: 080187e4 .word 0x080187e4
  12648. ldr r2, =_sbss
  12649. 8005df8: 240000a0 .word 0x240000a0
  12650. ldr r4, =_ebss
  12651. 8005dfc: 2401318c .word 0x2401318c
  12652. 08005e00 <ADC3_IRQHandler>:
  12653. * @retval None
  12654. */
  12655. .section .text.Default_Handler,"ax",%progbits
  12656. Default_Handler:
  12657. Infinite_Loop:
  12658. b Infinite_Loop
  12659. 8005e00: e7fe b.n 8005e00 <ADC3_IRQHandler>
  12660. ...
  12661. 08005e04 <HAL_Init>:
  12662. * need to ensure that the SysTick time base is always set to 1 millisecond
  12663. * to have correct HAL operation.
  12664. * @retval HAL status
  12665. */
  12666. HAL_StatusTypeDef HAL_Init(void)
  12667. {
  12668. 8005e04: b580 push {r7, lr}
  12669. 8005e06: b082 sub sp, #8
  12670. 8005e08: af00 add r7, sp, #0
  12671. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  12672. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  12673. #endif /* DUAL_CORE && CORE_CM4 */
  12674. /* Set Interrupt Group Priority */
  12675. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  12676. 8005e0a: 2003 movs r0, #3
  12677. 8005e0c: f001 fee5 bl 8007bda <HAL_NVIC_SetPriorityGrouping>
  12678. /* Update the SystemCoreClock global variable */
  12679. #if defined(RCC_D1CFGR_D1CPRE)
  12680. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  12681. 8005e10: f006 fbee bl 800c5f0 <HAL_RCC_GetSysClockFreq>
  12682. 8005e14: 4602 mov r2, r0
  12683. 8005e16: 4b15 ldr r3, [pc, #84] @ (8005e6c <HAL_Init+0x68>)
  12684. 8005e18: 699b ldr r3, [r3, #24]
  12685. 8005e1a: 0a1b lsrs r3, r3, #8
  12686. 8005e1c: f003 030f and.w r3, r3, #15
  12687. 8005e20: 4913 ldr r1, [pc, #76] @ (8005e70 <HAL_Init+0x6c>)
  12688. 8005e22: 5ccb ldrb r3, [r1, r3]
  12689. 8005e24: f003 031f and.w r3, r3, #31
  12690. 8005e28: fa22 f303 lsr.w r3, r2, r3
  12691. 8005e2c: 607b str r3, [r7, #4]
  12692. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  12693. #endif
  12694. /* Update the SystemD2Clock global variable */
  12695. #if defined(RCC_D1CFGR_HPRE)
  12696. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  12697. 8005e2e: 4b0f ldr r3, [pc, #60] @ (8005e6c <HAL_Init+0x68>)
  12698. 8005e30: 699b ldr r3, [r3, #24]
  12699. 8005e32: f003 030f and.w r3, r3, #15
  12700. 8005e36: 4a0e ldr r2, [pc, #56] @ (8005e70 <HAL_Init+0x6c>)
  12701. 8005e38: 5cd3 ldrb r3, [r2, r3]
  12702. 8005e3a: f003 031f and.w r3, r3, #31
  12703. 8005e3e: 687a ldr r2, [r7, #4]
  12704. 8005e40: fa22 f303 lsr.w r3, r2, r3
  12705. 8005e44: 4a0b ldr r2, [pc, #44] @ (8005e74 <HAL_Init+0x70>)
  12706. 8005e46: 6013 str r3, [r2, #0]
  12707. #endif
  12708. #if defined(DUAL_CORE) && defined(CORE_CM4)
  12709. SystemCoreClock = SystemD2Clock;
  12710. #else
  12711. SystemCoreClock = common_system_clock;
  12712. 8005e48: 4a0b ldr r2, [pc, #44] @ (8005e78 <HAL_Init+0x74>)
  12713. 8005e4a: 687b ldr r3, [r7, #4]
  12714. 8005e4c: 6013 str r3, [r2, #0]
  12715. #endif /* DUAL_CORE && CORE_CM4 */
  12716. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  12717. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  12718. 8005e4e: 2005 movs r0, #5
  12719. 8005e50: f7fe fc58 bl 8004704 <HAL_InitTick>
  12720. 8005e54: 4603 mov r3, r0
  12721. 8005e56: 2b00 cmp r3, #0
  12722. 8005e58: d001 beq.n 8005e5e <HAL_Init+0x5a>
  12723. {
  12724. return HAL_ERROR;
  12725. 8005e5a: 2301 movs r3, #1
  12726. 8005e5c: e002 b.n 8005e64 <HAL_Init+0x60>
  12727. }
  12728. /* Init the low level hardware */
  12729. HAL_MspInit();
  12730. 8005e5e: f7fd ff1b bl 8003c98 <HAL_MspInit>
  12731. /* Return function status */
  12732. return HAL_OK;
  12733. 8005e62: 2300 movs r3, #0
  12734. }
  12735. 8005e64: 4618 mov r0, r3
  12736. 8005e66: 3708 adds r7, #8
  12737. 8005e68: 46bd mov sp, r7
  12738. 8005e6a: bd80 pop {r7, pc}
  12739. 8005e6c: 58024400 .word 0x58024400
  12740. 8005e70: 0801878c .word 0x0801878c
  12741. 8005e74: 24000038 .word 0x24000038
  12742. 8005e78: 24000034 .word 0x24000034
  12743. 08005e7c <HAL_IncTick>:
  12744. * @note This function is declared as __weak to be overwritten in case of other
  12745. * implementations in user file.
  12746. * @retval None
  12747. */
  12748. __weak void HAL_IncTick(void)
  12749. {
  12750. 8005e7c: b480 push {r7}
  12751. 8005e7e: af00 add r7, sp, #0
  12752. uwTick += (uint32_t)uwTickFreq;
  12753. 8005e80: 4b06 ldr r3, [pc, #24] @ (8005e9c <HAL_IncTick+0x20>)
  12754. 8005e82: 781b ldrb r3, [r3, #0]
  12755. 8005e84: 461a mov r2, r3
  12756. 8005e86: 4b06 ldr r3, [pc, #24] @ (8005ea0 <HAL_IncTick+0x24>)
  12757. 8005e88: 681b ldr r3, [r3, #0]
  12758. 8005e8a: 4413 add r3, r2
  12759. 8005e8c: 4a04 ldr r2, [pc, #16] @ (8005ea0 <HAL_IncTick+0x24>)
  12760. 8005e8e: 6013 str r3, [r2, #0]
  12761. }
  12762. 8005e90: bf00 nop
  12763. 8005e92: 46bd mov sp, r7
  12764. 8005e94: f85d 7b04 ldr.w r7, [sp], #4
  12765. 8005e98: 4770 bx lr
  12766. 8005e9a: bf00 nop
  12767. 8005e9c: 24000040 .word 0x24000040
  12768. 8005ea0: 24001060 .word 0x24001060
  12769. 08005ea4 <HAL_GetTick>:
  12770. * @note This function is declared as __weak to be overwritten in case of other
  12771. * implementations in user file.
  12772. * @retval tick value
  12773. */
  12774. __weak uint32_t HAL_GetTick(void)
  12775. {
  12776. 8005ea4: b480 push {r7}
  12777. 8005ea6: af00 add r7, sp, #0
  12778. return uwTick;
  12779. 8005ea8: 4b03 ldr r3, [pc, #12] @ (8005eb8 <HAL_GetTick+0x14>)
  12780. 8005eaa: 681b ldr r3, [r3, #0]
  12781. }
  12782. 8005eac: 4618 mov r0, r3
  12783. 8005eae: 46bd mov sp, r7
  12784. 8005eb0: f85d 7b04 ldr.w r7, [sp], #4
  12785. 8005eb4: 4770 bx lr
  12786. 8005eb6: bf00 nop
  12787. 8005eb8: 24001060 .word 0x24001060
  12788. 08005ebc <HAL_GetREVID>:
  12789. /**
  12790. * @brief Returns the device revision identifier.
  12791. * @retval Device revision identifier
  12792. */
  12793. uint32_t HAL_GetREVID(void)
  12794. {
  12795. 8005ebc: b480 push {r7}
  12796. 8005ebe: af00 add r7, sp, #0
  12797. return((DBGMCU->IDCODE) >> 16);
  12798. 8005ec0: 4b03 ldr r3, [pc, #12] @ (8005ed0 <HAL_GetREVID+0x14>)
  12799. 8005ec2: 681b ldr r3, [r3, #0]
  12800. 8005ec4: 0c1b lsrs r3, r3, #16
  12801. }
  12802. 8005ec6: 4618 mov r0, r3
  12803. 8005ec8: 46bd mov sp, r7
  12804. 8005eca: f85d 7b04 ldr.w r7, [sp], #4
  12805. 8005ece: 4770 bx lr
  12806. 8005ed0: 5c001000 .word 0x5c001000
  12807. 08005ed4 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  12808. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  12809. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  12810. * @retval None
  12811. */
  12812. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  12813. {
  12814. 8005ed4: b480 push {r7}
  12815. 8005ed6: b083 sub sp, #12
  12816. 8005ed8: af00 add r7, sp, #0
  12817. 8005eda: 6078 str r0, [r7, #4]
  12818. /* Check the parameters */
  12819. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  12820. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  12821. 8005edc: 4b06 ldr r3, [pc, #24] @ (8005ef8 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12822. 8005ede: 681b ldr r3, [r3, #0]
  12823. 8005ee0: f023 0202 bic.w r2, r3, #2
  12824. 8005ee4: 4904 ldr r1, [pc, #16] @ (8005ef8 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12825. 8005ee6: 687b ldr r3, [r7, #4]
  12826. 8005ee8: 4313 orrs r3, r2
  12827. 8005eea: 600b str r3, [r1, #0]
  12828. }
  12829. 8005eec: bf00 nop
  12830. 8005eee: 370c adds r7, #12
  12831. 8005ef0: 46bd mov sp, r7
  12832. 8005ef2: f85d 7b04 ldr.w r7, [sp], #4
  12833. 8005ef6: 4770 bx lr
  12834. 8005ef8: 58003c00 .word 0x58003c00
  12835. 08005efc <HAL_SYSCFG_DisableVREFBUF>:
  12836. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  12837. *
  12838. * @retval None
  12839. */
  12840. void HAL_SYSCFG_DisableVREFBUF(void)
  12841. {
  12842. 8005efc: b480 push {r7}
  12843. 8005efe: af00 add r7, sp, #0
  12844. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  12845. 8005f00: 4b05 ldr r3, [pc, #20] @ (8005f18 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12846. 8005f02: 681b ldr r3, [r3, #0]
  12847. 8005f04: 4a04 ldr r2, [pc, #16] @ (8005f18 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12848. 8005f06: f023 0301 bic.w r3, r3, #1
  12849. 8005f0a: 6013 str r3, [r2, #0]
  12850. }
  12851. 8005f0c: bf00 nop
  12852. 8005f0e: 46bd mov sp, r7
  12853. 8005f10: f85d 7b04 ldr.w r7, [sp], #4
  12854. 8005f14: 4770 bx lr
  12855. 8005f16: bf00 nop
  12856. 8005f18: 58003c00 .word 0x58003c00
  12857. 08005f1c <HAL_SYSCFG_AnalogSwitchConfig>:
  12858. * @arg SYSCFG_SWITCH_PC3_CLOSE
  12859. * @retval None
  12860. */
  12861. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  12862. {
  12863. 8005f1c: b480 push {r7}
  12864. 8005f1e: b083 sub sp, #12
  12865. 8005f20: af00 add r7, sp, #0
  12866. 8005f22: 6078 str r0, [r7, #4]
  12867. 8005f24: 6039 str r1, [r7, #0]
  12868. /* Check the parameter */
  12869. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  12870. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  12871. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  12872. 8005f26: 4b07 ldr r3, [pc, #28] @ (8005f44 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12873. 8005f28: 685a ldr r2, [r3, #4]
  12874. 8005f2a: 687b ldr r3, [r7, #4]
  12875. 8005f2c: 43db mvns r3, r3
  12876. 8005f2e: 401a ands r2, r3
  12877. 8005f30: 4904 ldr r1, [pc, #16] @ (8005f44 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12878. 8005f32: 683b ldr r3, [r7, #0]
  12879. 8005f34: 4313 orrs r3, r2
  12880. 8005f36: 604b str r3, [r1, #4]
  12881. }
  12882. 8005f38: bf00 nop
  12883. 8005f3a: 370c adds r7, #12
  12884. 8005f3c: 46bd mov sp, r7
  12885. 8005f3e: f85d 7b04 ldr.w r7, [sp], #4
  12886. 8005f42: 4770 bx lr
  12887. 8005f44: 58000400 .word 0x58000400
  12888. 08005f48 <LL_ADC_SetCommonClock>:
  12889. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  12890. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  12891. * @retval None
  12892. */
  12893. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  12894. {
  12895. 8005f48: b480 push {r7}
  12896. 8005f4a: b083 sub sp, #12
  12897. 8005f4c: af00 add r7, sp, #0
  12898. 8005f4e: 6078 str r0, [r7, #4]
  12899. 8005f50: 6039 str r1, [r7, #0]
  12900. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  12901. 8005f52: 687b ldr r3, [r7, #4]
  12902. 8005f54: 689b ldr r3, [r3, #8]
  12903. 8005f56: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  12904. 8005f5a: 683b ldr r3, [r7, #0]
  12905. 8005f5c: 431a orrs r2, r3
  12906. 8005f5e: 687b ldr r3, [r7, #4]
  12907. 8005f60: 609a str r2, [r3, #8]
  12908. }
  12909. 8005f62: bf00 nop
  12910. 8005f64: 370c adds r7, #12
  12911. 8005f66: 46bd mov sp, r7
  12912. 8005f68: f85d 7b04 ldr.w r7, [sp], #4
  12913. 8005f6c: 4770 bx lr
  12914. 08005f6e <LL_ADC_SetCommonPathInternalCh>:
  12915. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12916. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12917. * @retval None
  12918. */
  12919. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  12920. {
  12921. 8005f6e: b480 push {r7}
  12922. 8005f70: b083 sub sp, #12
  12923. 8005f72: af00 add r7, sp, #0
  12924. 8005f74: 6078 str r0, [r7, #4]
  12925. 8005f76: 6039 str r1, [r7, #0]
  12926. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  12927. 8005f78: 687b ldr r3, [r7, #4]
  12928. 8005f7a: 689b ldr r3, [r3, #8]
  12929. 8005f7c: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  12930. 8005f80: 683b ldr r3, [r7, #0]
  12931. 8005f82: 431a orrs r2, r3
  12932. 8005f84: 687b ldr r3, [r7, #4]
  12933. 8005f86: 609a str r2, [r3, #8]
  12934. }
  12935. 8005f88: bf00 nop
  12936. 8005f8a: 370c adds r7, #12
  12937. 8005f8c: 46bd mov sp, r7
  12938. 8005f8e: f85d 7b04 ldr.w r7, [sp], #4
  12939. 8005f92: 4770 bx lr
  12940. 08005f94 <LL_ADC_GetCommonPathInternalCh>:
  12941. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  12942. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12943. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12944. */
  12945. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  12946. {
  12947. 8005f94: b480 push {r7}
  12948. 8005f96: b083 sub sp, #12
  12949. 8005f98: af00 add r7, sp, #0
  12950. 8005f9a: 6078 str r0, [r7, #4]
  12951. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  12952. 8005f9c: 687b ldr r3, [r7, #4]
  12953. 8005f9e: 689b ldr r3, [r3, #8]
  12954. 8005fa0: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  12955. }
  12956. 8005fa4: 4618 mov r0, r3
  12957. 8005fa6: 370c adds r7, #12
  12958. 8005fa8: 46bd mov sp, r7
  12959. 8005faa: f85d 7b04 ldr.w r7, [sp], #4
  12960. 8005fae: 4770 bx lr
  12961. 08005fb0 <LL_ADC_SetOffset>:
  12962. * Other channels are slow channels (conversion rate: refer to reference manual).
  12963. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  12964. * @retval None
  12965. */
  12966. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  12967. {
  12968. 8005fb0: b480 push {r7}
  12969. 8005fb2: b087 sub sp, #28
  12970. 8005fb4: af00 add r7, sp, #0
  12971. 8005fb6: 60f8 str r0, [r7, #12]
  12972. 8005fb8: 60b9 str r1, [r7, #8]
  12973. 8005fba: 607a str r2, [r7, #4]
  12974. 8005fbc: 603b str r3, [r7, #0]
  12975. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12976. 8005fbe: 68fb ldr r3, [r7, #12]
  12977. 8005fc0: 3360 adds r3, #96 @ 0x60
  12978. 8005fc2: 461a mov r2, r3
  12979. 8005fc4: 68bb ldr r3, [r7, #8]
  12980. 8005fc6: 009b lsls r3, r3, #2
  12981. 8005fc8: 4413 add r3, r2
  12982. 8005fca: 617b str r3, [r7, #20]
  12983. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12984. }
  12985. else
  12986. #endif /* ADC_VER_V5_V90 */
  12987. {
  12988. MODIFY_REG(*preg,
  12989. 8005fcc: 697b ldr r3, [r7, #20]
  12990. 8005fce: 681b ldr r3, [r3, #0]
  12991. 8005fd0: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  12992. 8005fd4: 687b ldr r3, [r7, #4]
  12993. 8005fd6: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  12994. 8005fda: 683b ldr r3, [r7, #0]
  12995. 8005fdc: 430b orrs r3, r1
  12996. 8005fde: 431a orrs r2, r3
  12997. 8005fe0: 697b ldr r3, [r7, #20]
  12998. 8005fe2: 601a str r2, [r3, #0]
  12999. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  13000. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  13001. }
  13002. }
  13003. 8005fe4: bf00 nop
  13004. 8005fe6: 371c adds r7, #28
  13005. 8005fe8: 46bd mov sp, r7
  13006. 8005fea: f85d 7b04 ldr.w r7, [sp], #4
  13007. 8005fee: 4770 bx lr
  13008. 08005ff0 <LL_ADC_SetDataRightShift>:
  13009. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  13010. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  13011. * @retval Returned None
  13012. */
  13013. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  13014. {
  13015. 8005ff0: b480 push {r7}
  13016. 8005ff2: b085 sub sp, #20
  13017. 8005ff4: af00 add r7, sp, #0
  13018. 8005ff6: 60f8 str r0, [r7, #12]
  13019. 8005ff8: 60b9 str r1, [r7, #8]
  13020. 8005ffa: 607a str r2, [r7, #4]
  13021. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  13022. 8005ffc: 68fb ldr r3, [r7, #12]
  13023. 8005ffe: 691b ldr r3, [r3, #16]
  13024. 8006000: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  13025. 8006004: 68bb ldr r3, [r7, #8]
  13026. 8006006: f003 031f and.w r3, r3, #31
  13027. 800600a: 6879 ldr r1, [r7, #4]
  13028. 800600c: fa01 f303 lsl.w r3, r1, r3
  13029. 8006010: 431a orrs r2, r3
  13030. 8006012: 68fb ldr r3, [r7, #12]
  13031. 8006014: 611a str r2, [r3, #16]
  13032. }
  13033. 8006016: bf00 nop
  13034. 8006018: 3714 adds r7, #20
  13035. 800601a: 46bd mov sp, r7
  13036. 800601c: f85d 7b04 ldr.w r7, [sp], #4
  13037. 8006020: 4770 bx lr
  13038. 08006022 <LL_ADC_SetOffsetSignedSaturation>:
  13039. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  13040. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  13041. * @retval Returned None
  13042. */
  13043. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  13044. {
  13045. 8006022: b480 push {r7}
  13046. 8006024: b087 sub sp, #28
  13047. 8006026: af00 add r7, sp, #0
  13048. 8006028: 60f8 str r0, [r7, #12]
  13049. 800602a: 60b9 str r1, [r7, #8]
  13050. 800602c: 607a str r2, [r7, #4]
  13051. /* Function not available on this instance */
  13052. }
  13053. else
  13054. #endif /* ADC_VER_V5_V90 */
  13055. {
  13056. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  13057. 800602e: 68fb ldr r3, [r7, #12]
  13058. 8006030: 3360 adds r3, #96 @ 0x60
  13059. 8006032: 461a mov r2, r3
  13060. 8006034: 68bb ldr r3, [r7, #8]
  13061. 8006036: 009b lsls r3, r3, #2
  13062. 8006038: 4413 add r3, r2
  13063. 800603a: 617b str r3, [r7, #20]
  13064. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  13065. 800603c: 697b ldr r3, [r7, #20]
  13066. 800603e: 681b ldr r3, [r3, #0]
  13067. 8006040: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  13068. 8006044: 687b ldr r3, [r7, #4]
  13069. 8006046: 431a orrs r2, r3
  13070. 8006048: 697b ldr r3, [r7, #20]
  13071. 800604a: 601a str r2, [r3, #0]
  13072. }
  13073. }
  13074. 800604c: bf00 nop
  13075. 800604e: 371c adds r7, #28
  13076. 8006050: 46bd mov sp, r7
  13077. 8006052: f85d 7b04 ldr.w r7, [sp], #4
  13078. 8006056: 4770 bx lr
  13079. 08006058 <LL_ADC_REG_IsTriggerSourceSWStart>:
  13080. * @param ADCx ADC instance
  13081. * @retval Value "0" if trigger source external trigger
  13082. * Value "1" if trigger source SW start.
  13083. */
  13084. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  13085. {
  13086. 8006058: b480 push {r7}
  13087. 800605a: b083 sub sp, #12
  13088. 800605c: af00 add r7, sp, #0
  13089. 800605e: 6078 str r0, [r7, #4]
  13090. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  13091. 8006060: 687b ldr r3, [r7, #4]
  13092. 8006062: 68db ldr r3, [r3, #12]
  13093. 8006064: f403 6340 and.w r3, r3, #3072 @ 0xc00
  13094. 8006068: 2b00 cmp r3, #0
  13095. 800606a: d101 bne.n 8006070 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  13096. 800606c: 2301 movs r3, #1
  13097. 800606e: e000 b.n 8006072 <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  13098. 8006070: 2300 movs r3, #0
  13099. }
  13100. 8006072: 4618 mov r0, r3
  13101. 8006074: 370c adds r7, #12
  13102. 8006076: 46bd mov sp, r7
  13103. 8006078: f85d 7b04 ldr.w r7, [sp], #4
  13104. 800607c: 4770 bx lr
  13105. 0800607e <LL_ADC_REG_SetSequencerRanks>:
  13106. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  13107. * Other channels are slow channels (conversion rate: refer to reference manual).
  13108. * @retval None
  13109. */
  13110. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  13111. {
  13112. 800607e: b480 push {r7}
  13113. 8006080: b087 sub sp, #28
  13114. 8006082: af00 add r7, sp, #0
  13115. 8006084: 60f8 str r0, [r7, #12]
  13116. 8006086: 60b9 str r1, [r7, #8]
  13117. 8006088: 607a str r2, [r7, #4]
  13118. /* Set bits with content of parameter "Channel" with bits position */
  13119. /* in register and register position depending on parameter "Rank". */
  13120. /* Parameters "Rank" and "Channel" are used with masks because containing */
  13121. /* other bits reserved for other purpose. */
  13122. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  13123. 800608a: 68fb ldr r3, [r7, #12]
  13124. 800608c: 3330 adds r3, #48 @ 0x30
  13125. 800608e: 461a mov r2, r3
  13126. 8006090: 68bb ldr r3, [r7, #8]
  13127. 8006092: 0a1b lsrs r3, r3, #8
  13128. 8006094: 009b lsls r3, r3, #2
  13129. 8006096: f003 030c and.w r3, r3, #12
  13130. 800609a: 4413 add r3, r2
  13131. 800609c: 617b str r3, [r7, #20]
  13132. MODIFY_REG(*preg,
  13133. 800609e: 697b ldr r3, [r7, #20]
  13134. 80060a0: 681a ldr r2, [r3, #0]
  13135. 80060a2: 68bb ldr r3, [r7, #8]
  13136. 80060a4: f003 031f and.w r3, r3, #31
  13137. 80060a8: 211f movs r1, #31
  13138. 80060aa: fa01 f303 lsl.w r3, r1, r3
  13139. 80060ae: 43db mvns r3, r3
  13140. 80060b0: 401a ands r2, r3
  13141. 80060b2: 687b ldr r3, [r7, #4]
  13142. 80060b4: 0e9b lsrs r3, r3, #26
  13143. 80060b6: f003 011f and.w r1, r3, #31
  13144. 80060ba: 68bb ldr r3, [r7, #8]
  13145. 80060bc: f003 031f and.w r3, r3, #31
  13146. 80060c0: fa01 f303 lsl.w r3, r1, r3
  13147. 80060c4: 431a orrs r2, r3
  13148. 80060c6: 697b ldr r3, [r7, #20]
  13149. 80060c8: 601a str r2, [r3, #0]
  13150. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  13151. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  13152. }
  13153. 80060ca: bf00 nop
  13154. 80060cc: 371c adds r7, #28
  13155. 80060ce: 46bd mov sp, r7
  13156. 80060d0: f85d 7b04 ldr.w r7, [sp], #4
  13157. 80060d4: 4770 bx lr
  13158. 080060d6 <LL_ADC_REG_SetDataTransferMode>:
  13159. * @param ADCx ADC instance
  13160. * @param DataTransferMode Select Data Management configuration
  13161. * @retval None
  13162. */
  13163. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  13164. {
  13165. 80060d6: b480 push {r7}
  13166. 80060d8: b083 sub sp, #12
  13167. 80060da: af00 add r7, sp, #0
  13168. 80060dc: 6078 str r0, [r7, #4]
  13169. 80060de: 6039 str r1, [r7, #0]
  13170. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  13171. 80060e0: 687b ldr r3, [r7, #4]
  13172. 80060e2: 68db ldr r3, [r3, #12]
  13173. 80060e4: f023 0203 bic.w r2, r3, #3
  13174. 80060e8: 683b ldr r3, [r7, #0]
  13175. 80060ea: 431a orrs r2, r3
  13176. 80060ec: 687b ldr r3, [r7, #4]
  13177. 80060ee: 60da str r2, [r3, #12]
  13178. }
  13179. 80060f0: bf00 nop
  13180. 80060f2: 370c adds r7, #12
  13181. 80060f4: 46bd mov sp, r7
  13182. 80060f6: f85d 7b04 ldr.w r7, [sp], #4
  13183. 80060fa: 4770 bx lr
  13184. 080060fc <LL_ADC_SetChannelSamplingTime>:
  13185. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  13186. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  13187. * @retval None
  13188. */
  13189. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  13190. {
  13191. 80060fc: b480 push {r7}
  13192. 80060fe: b087 sub sp, #28
  13193. 8006100: af00 add r7, sp, #0
  13194. 8006102: 60f8 str r0, [r7, #12]
  13195. 8006104: 60b9 str r1, [r7, #8]
  13196. 8006106: 607a str r2, [r7, #4]
  13197. /* Set bits with content of parameter "SamplingTime" with bits position */
  13198. /* in register and register position depending on parameter "Channel". */
  13199. /* Parameter "Channel" is used with masks because containing */
  13200. /* other bits reserved for other purpose. */
  13201. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  13202. 8006108: 68fb ldr r3, [r7, #12]
  13203. 800610a: 3314 adds r3, #20
  13204. 800610c: 461a mov r2, r3
  13205. 800610e: 68bb ldr r3, [r7, #8]
  13206. 8006110: 0e5b lsrs r3, r3, #25
  13207. 8006112: 009b lsls r3, r3, #2
  13208. 8006114: f003 0304 and.w r3, r3, #4
  13209. 8006118: 4413 add r3, r2
  13210. 800611a: 617b str r3, [r7, #20]
  13211. MODIFY_REG(*preg,
  13212. 800611c: 697b ldr r3, [r7, #20]
  13213. 800611e: 681a ldr r2, [r3, #0]
  13214. 8006120: 68bb ldr r3, [r7, #8]
  13215. 8006122: 0d1b lsrs r3, r3, #20
  13216. 8006124: f003 031f and.w r3, r3, #31
  13217. 8006128: 2107 movs r1, #7
  13218. 800612a: fa01 f303 lsl.w r3, r1, r3
  13219. 800612e: 43db mvns r3, r3
  13220. 8006130: 401a ands r2, r3
  13221. 8006132: 68bb ldr r3, [r7, #8]
  13222. 8006134: 0d1b lsrs r3, r3, #20
  13223. 8006136: f003 031f and.w r3, r3, #31
  13224. 800613a: 6879 ldr r1, [r7, #4]
  13225. 800613c: fa01 f303 lsl.w r3, r1, r3
  13226. 8006140: 431a orrs r2, r3
  13227. 8006142: 697b ldr r3, [r7, #20]
  13228. 8006144: 601a str r2, [r3, #0]
  13229. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  13230. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  13231. }
  13232. 8006146: bf00 nop
  13233. 8006148: 371c adds r7, #28
  13234. 800614a: 46bd mov sp, r7
  13235. 800614c: f85d 7b04 ldr.w r7, [sp], #4
  13236. 8006150: 4770 bx lr
  13237. ...
  13238. 08006154 <LL_ADC_SetChannelSingleDiff>:
  13239. * @arg @ref LL_ADC_SINGLE_ENDED
  13240. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  13241. * @retval None
  13242. */
  13243. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  13244. {
  13245. 8006154: b480 push {r7}
  13246. 8006156: b085 sub sp, #20
  13247. 8006158: af00 add r7, sp, #0
  13248. 800615a: 60f8 str r0, [r7, #12]
  13249. 800615c: 60b9 str r1, [r7, #8]
  13250. 800615e: 607a str r2, [r7, #4]
  13251. }
  13252. #else /* ADC_VER_V5_V90 */
  13253. /* Bits of channels in single or differential mode are set only for */
  13254. /* differential mode (for single mode, mask of bits allowed to be set is */
  13255. /* shifted out of range of bits of channels in single or differential mode. */
  13256. MODIFY_REG(ADCx->DIFSEL,
  13257. 8006160: 68fb ldr r3, [r7, #12]
  13258. 8006162: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  13259. 8006166: 68bb ldr r3, [r7, #8]
  13260. 8006168: f3c3 0313 ubfx r3, r3, #0, #20
  13261. 800616c: 43db mvns r3, r3
  13262. 800616e: 401a ands r2, r3
  13263. 8006170: 687b ldr r3, [r7, #4]
  13264. 8006172: f003 0318 and.w r3, r3, #24
  13265. 8006176: 4908 ldr r1, [pc, #32] @ (8006198 <LL_ADC_SetChannelSingleDiff+0x44>)
  13266. 8006178: 40d9 lsrs r1, r3
  13267. 800617a: 68bb ldr r3, [r7, #8]
  13268. 800617c: 400b ands r3, r1
  13269. 800617e: f3c3 0313 ubfx r3, r3, #0, #20
  13270. 8006182: 431a orrs r2, r3
  13271. 8006184: 68fb ldr r3, [r7, #12]
  13272. 8006186: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  13273. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  13274. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  13275. #endif /* ADC_VER_V5_V90 */
  13276. }
  13277. 800618a: bf00 nop
  13278. 800618c: 3714 adds r7, #20
  13279. 800618e: 46bd mov sp, r7
  13280. 8006190: f85d 7b04 ldr.w r7, [sp], #4
  13281. 8006194: 4770 bx lr
  13282. 8006196: bf00 nop
  13283. 8006198: 000fffff .word 0x000fffff
  13284. 0800619c <LL_ADC_GetMultimode>:
  13285. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  13286. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  13287. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  13288. */
  13289. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  13290. {
  13291. 800619c: b480 push {r7}
  13292. 800619e: b083 sub sp, #12
  13293. 80061a0: af00 add r7, sp, #0
  13294. 80061a2: 6078 str r0, [r7, #4]
  13295. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  13296. 80061a4: 687b ldr r3, [r7, #4]
  13297. 80061a6: 689b ldr r3, [r3, #8]
  13298. 80061a8: f003 031f and.w r3, r3, #31
  13299. }
  13300. 80061ac: 4618 mov r0, r3
  13301. 80061ae: 370c adds r7, #12
  13302. 80061b0: 46bd mov sp, r7
  13303. 80061b2: f85d 7b04 ldr.w r7, [sp], #4
  13304. 80061b6: 4770 bx lr
  13305. 080061b8 <LL_ADC_DisableDeepPowerDown>:
  13306. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  13307. * @param ADCx ADC instance
  13308. * @retval None
  13309. */
  13310. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  13311. {
  13312. 80061b8: b480 push {r7}
  13313. 80061ba: b083 sub sp, #12
  13314. 80061bc: af00 add r7, sp, #0
  13315. 80061be: 6078 str r0, [r7, #4]
  13316. /* Note: Write register with some additional bits forced to state reset */
  13317. /* instead of modifying only the selected bit for this function, */
  13318. /* to not interfere with bits with HW property "rs". */
  13319. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  13320. 80061c0: 687b ldr r3, [r7, #4]
  13321. 80061c2: 689a ldr r2, [r3, #8]
  13322. 80061c4: 4b04 ldr r3, [pc, #16] @ (80061d8 <LL_ADC_DisableDeepPowerDown+0x20>)
  13323. 80061c6: 4013 ands r3, r2
  13324. 80061c8: 687a ldr r2, [r7, #4]
  13325. 80061ca: 6093 str r3, [r2, #8]
  13326. }
  13327. 80061cc: bf00 nop
  13328. 80061ce: 370c adds r7, #12
  13329. 80061d0: 46bd mov sp, r7
  13330. 80061d2: f85d 7b04 ldr.w r7, [sp], #4
  13331. 80061d6: 4770 bx lr
  13332. 80061d8: 5fffffc0 .word 0x5fffffc0
  13333. 080061dc <LL_ADC_IsDeepPowerDownEnabled>:
  13334. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  13335. * @param ADCx ADC instance
  13336. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  13337. */
  13338. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  13339. {
  13340. 80061dc: b480 push {r7}
  13341. 80061de: b083 sub sp, #12
  13342. 80061e0: af00 add r7, sp, #0
  13343. 80061e2: 6078 str r0, [r7, #4]
  13344. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  13345. 80061e4: 687b ldr r3, [r7, #4]
  13346. 80061e6: 689b ldr r3, [r3, #8]
  13347. 80061e8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  13348. 80061ec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  13349. 80061f0: d101 bne.n 80061f6 <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  13350. 80061f2: 2301 movs r3, #1
  13351. 80061f4: e000 b.n 80061f8 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  13352. 80061f6: 2300 movs r3, #0
  13353. }
  13354. 80061f8: 4618 mov r0, r3
  13355. 80061fa: 370c adds r7, #12
  13356. 80061fc: 46bd mov sp, r7
  13357. 80061fe: f85d 7b04 ldr.w r7, [sp], #4
  13358. 8006202: 4770 bx lr
  13359. 08006204 <LL_ADC_EnableInternalRegulator>:
  13360. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  13361. * @param ADCx ADC instance
  13362. * @retval None
  13363. */
  13364. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  13365. {
  13366. 8006204: b480 push {r7}
  13367. 8006206: b083 sub sp, #12
  13368. 8006208: af00 add r7, sp, #0
  13369. 800620a: 6078 str r0, [r7, #4]
  13370. /* Note: Write register with some additional bits forced to state reset */
  13371. /* instead of modifying only the selected bit for this function, */
  13372. /* to not interfere with bits with HW property "rs". */
  13373. MODIFY_REG(ADCx->CR,
  13374. 800620c: 687b ldr r3, [r7, #4]
  13375. 800620e: 689a ldr r2, [r3, #8]
  13376. 8006210: 4b05 ldr r3, [pc, #20] @ (8006228 <LL_ADC_EnableInternalRegulator+0x24>)
  13377. 8006212: 4013 ands r3, r2
  13378. 8006214: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  13379. 8006218: 687b ldr r3, [r7, #4]
  13380. 800621a: 609a str r2, [r3, #8]
  13381. ADC_CR_BITS_PROPERTY_RS,
  13382. ADC_CR_ADVREGEN);
  13383. }
  13384. 800621c: bf00 nop
  13385. 800621e: 370c adds r7, #12
  13386. 8006220: 46bd mov sp, r7
  13387. 8006222: f85d 7b04 ldr.w r7, [sp], #4
  13388. 8006226: 4770 bx lr
  13389. 8006228: 6fffffc0 .word 0x6fffffc0
  13390. 0800622c <LL_ADC_IsInternalRegulatorEnabled>:
  13391. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  13392. * @param ADCx ADC instance
  13393. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  13394. */
  13395. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  13396. {
  13397. 800622c: b480 push {r7}
  13398. 800622e: b083 sub sp, #12
  13399. 8006230: af00 add r7, sp, #0
  13400. 8006232: 6078 str r0, [r7, #4]
  13401. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  13402. 8006234: 687b ldr r3, [r7, #4]
  13403. 8006236: 689b ldr r3, [r3, #8]
  13404. 8006238: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  13405. 800623c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13406. 8006240: d101 bne.n 8006246 <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  13407. 8006242: 2301 movs r3, #1
  13408. 8006244: e000 b.n 8006248 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  13409. 8006246: 2300 movs r3, #0
  13410. }
  13411. 8006248: 4618 mov r0, r3
  13412. 800624a: 370c adds r7, #12
  13413. 800624c: 46bd mov sp, r7
  13414. 800624e: f85d 7b04 ldr.w r7, [sp], #4
  13415. 8006252: 4770 bx lr
  13416. 08006254 <LL_ADC_Enable>:
  13417. * @rmtoll CR ADEN LL_ADC_Enable
  13418. * @param ADCx ADC instance
  13419. * @retval None
  13420. */
  13421. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  13422. {
  13423. 8006254: b480 push {r7}
  13424. 8006256: b083 sub sp, #12
  13425. 8006258: af00 add r7, sp, #0
  13426. 800625a: 6078 str r0, [r7, #4]
  13427. /* Note: Write register with some additional bits forced to state reset */
  13428. /* instead of modifying only the selected bit for this function, */
  13429. /* to not interfere with bits with HW property "rs". */
  13430. MODIFY_REG(ADCx->CR,
  13431. 800625c: 687b ldr r3, [r7, #4]
  13432. 800625e: 689a ldr r2, [r3, #8]
  13433. 8006260: 4b05 ldr r3, [pc, #20] @ (8006278 <LL_ADC_Enable+0x24>)
  13434. 8006262: 4013 ands r3, r2
  13435. 8006264: f043 0201 orr.w r2, r3, #1
  13436. 8006268: 687b ldr r3, [r7, #4]
  13437. 800626a: 609a str r2, [r3, #8]
  13438. ADC_CR_BITS_PROPERTY_RS,
  13439. ADC_CR_ADEN);
  13440. }
  13441. 800626c: bf00 nop
  13442. 800626e: 370c adds r7, #12
  13443. 8006270: 46bd mov sp, r7
  13444. 8006272: f85d 7b04 ldr.w r7, [sp], #4
  13445. 8006276: 4770 bx lr
  13446. 8006278: 7fffffc0 .word 0x7fffffc0
  13447. 0800627c <LL_ADC_Disable>:
  13448. * @rmtoll CR ADDIS LL_ADC_Disable
  13449. * @param ADCx ADC instance
  13450. * @retval None
  13451. */
  13452. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  13453. {
  13454. 800627c: b480 push {r7}
  13455. 800627e: b083 sub sp, #12
  13456. 8006280: af00 add r7, sp, #0
  13457. 8006282: 6078 str r0, [r7, #4]
  13458. /* Note: Write register with some additional bits forced to state reset */
  13459. /* instead of modifying only the selected bit for this function, */
  13460. /* to not interfere with bits with HW property "rs". */
  13461. MODIFY_REG(ADCx->CR,
  13462. 8006284: 687b ldr r3, [r7, #4]
  13463. 8006286: 689a ldr r2, [r3, #8]
  13464. 8006288: 4b05 ldr r3, [pc, #20] @ (80062a0 <LL_ADC_Disable+0x24>)
  13465. 800628a: 4013 ands r3, r2
  13466. 800628c: f043 0202 orr.w r2, r3, #2
  13467. 8006290: 687b ldr r3, [r7, #4]
  13468. 8006292: 609a str r2, [r3, #8]
  13469. ADC_CR_BITS_PROPERTY_RS,
  13470. ADC_CR_ADDIS);
  13471. }
  13472. 8006294: bf00 nop
  13473. 8006296: 370c adds r7, #12
  13474. 8006298: 46bd mov sp, r7
  13475. 800629a: f85d 7b04 ldr.w r7, [sp], #4
  13476. 800629e: 4770 bx lr
  13477. 80062a0: 7fffffc0 .word 0x7fffffc0
  13478. 080062a4 <LL_ADC_IsEnabled>:
  13479. * @rmtoll CR ADEN LL_ADC_IsEnabled
  13480. * @param ADCx ADC instance
  13481. * @retval 0: ADC is disabled, 1: ADC is enabled.
  13482. */
  13483. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  13484. {
  13485. 80062a4: b480 push {r7}
  13486. 80062a6: b083 sub sp, #12
  13487. 80062a8: af00 add r7, sp, #0
  13488. 80062aa: 6078 str r0, [r7, #4]
  13489. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  13490. 80062ac: 687b ldr r3, [r7, #4]
  13491. 80062ae: 689b ldr r3, [r3, #8]
  13492. 80062b0: f003 0301 and.w r3, r3, #1
  13493. 80062b4: 2b01 cmp r3, #1
  13494. 80062b6: d101 bne.n 80062bc <LL_ADC_IsEnabled+0x18>
  13495. 80062b8: 2301 movs r3, #1
  13496. 80062ba: e000 b.n 80062be <LL_ADC_IsEnabled+0x1a>
  13497. 80062bc: 2300 movs r3, #0
  13498. }
  13499. 80062be: 4618 mov r0, r3
  13500. 80062c0: 370c adds r7, #12
  13501. 80062c2: 46bd mov sp, r7
  13502. 80062c4: f85d 7b04 ldr.w r7, [sp], #4
  13503. 80062c8: 4770 bx lr
  13504. 080062ca <LL_ADC_IsDisableOngoing>:
  13505. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  13506. * @param ADCx ADC instance
  13507. * @retval 0: no ADC disable command on going.
  13508. */
  13509. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  13510. {
  13511. 80062ca: b480 push {r7}
  13512. 80062cc: b083 sub sp, #12
  13513. 80062ce: af00 add r7, sp, #0
  13514. 80062d0: 6078 str r0, [r7, #4]
  13515. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  13516. 80062d2: 687b ldr r3, [r7, #4]
  13517. 80062d4: 689b ldr r3, [r3, #8]
  13518. 80062d6: f003 0302 and.w r3, r3, #2
  13519. 80062da: 2b02 cmp r3, #2
  13520. 80062dc: d101 bne.n 80062e2 <LL_ADC_IsDisableOngoing+0x18>
  13521. 80062de: 2301 movs r3, #1
  13522. 80062e0: e000 b.n 80062e4 <LL_ADC_IsDisableOngoing+0x1a>
  13523. 80062e2: 2300 movs r3, #0
  13524. }
  13525. 80062e4: 4618 mov r0, r3
  13526. 80062e6: 370c adds r7, #12
  13527. 80062e8: 46bd mov sp, r7
  13528. 80062ea: f85d 7b04 ldr.w r7, [sp], #4
  13529. 80062ee: 4770 bx lr
  13530. 080062f0 <LL_ADC_REG_StartConversion>:
  13531. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  13532. * @param ADCx ADC instance
  13533. * @retval None
  13534. */
  13535. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  13536. {
  13537. 80062f0: b480 push {r7}
  13538. 80062f2: b083 sub sp, #12
  13539. 80062f4: af00 add r7, sp, #0
  13540. 80062f6: 6078 str r0, [r7, #4]
  13541. /* Note: Write register with some additional bits forced to state reset */
  13542. /* instead of modifying only the selected bit for this function, */
  13543. /* to not interfere with bits with HW property "rs". */
  13544. MODIFY_REG(ADCx->CR,
  13545. 80062f8: 687b ldr r3, [r7, #4]
  13546. 80062fa: 689a ldr r2, [r3, #8]
  13547. 80062fc: 4b05 ldr r3, [pc, #20] @ (8006314 <LL_ADC_REG_StartConversion+0x24>)
  13548. 80062fe: 4013 ands r3, r2
  13549. 8006300: f043 0204 orr.w r2, r3, #4
  13550. 8006304: 687b ldr r3, [r7, #4]
  13551. 8006306: 609a str r2, [r3, #8]
  13552. ADC_CR_BITS_PROPERTY_RS,
  13553. ADC_CR_ADSTART);
  13554. }
  13555. 8006308: bf00 nop
  13556. 800630a: 370c adds r7, #12
  13557. 800630c: 46bd mov sp, r7
  13558. 800630e: f85d 7b04 ldr.w r7, [sp], #4
  13559. 8006312: 4770 bx lr
  13560. 8006314: 7fffffc0 .word 0x7fffffc0
  13561. 08006318 <LL_ADC_REG_IsConversionOngoing>:
  13562. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  13563. * @param ADCx ADC instance
  13564. * @retval 0: no conversion is on going on ADC group regular.
  13565. */
  13566. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  13567. {
  13568. 8006318: b480 push {r7}
  13569. 800631a: b083 sub sp, #12
  13570. 800631c: af00 add r7, sp, #0
  13571. 800631e: 6078 str r0, [r7, #4]
  13572. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  13573. 8006320: 687b ldr r3, [r7, #4]
  13574. 8006322: 689b ldr r3, [r3, #8]
  13575. 8006324: f003 0304 and.w r3, r3, #4
  13576. 8006328: 2b04 cmp r3, #4
  13577. 800632a: d101 bne.n 8006330 <LL_ADC_REG_IsConversionOngoing+0x18>
  13578. 800632c: 2301 movs r3, #1
  13579. 800632e: e000 b.n 8006332 <LL_ADC_REG_IsConversionOngoing+0x1a>
  13580. 8006330: 2300 movs r3, #0
  13581. }
  13582. 8006332: 4618 mov r0, r3
  13583. 8006334: 370c adds r7, #12
  13584. 8006336: 46bd mov sp, r7
  13585. 8006338: f85d 7b04 ldr.w r7, [sp], #4
  13586. 800633c: 4770 bx lr
  13587. 0800633e <LL_ADC_INJ_IsConversionOngoing>:
  13588. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  13589. * @param ADCx ADC instance
  13590. * @retval 0: no conversion is on going on ADC group injected.
  13591. */
  13592. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  13593. {
  13594. 800633e: b480 push {r7}
  13595. 8006340: b083 sub sp, #12
  13596. 8006342: af00 add r7, sp, #0
  13597. 8006344: 6078 str r0, [r7, #4]
  13598. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  13599. 8006346: 687b ldr r3, [r7, #4]
  13600. 8006348: 689b ldr r3, [r3, #8]
  13601. 800634a: f003 0308 and.w r3, r3, #8
  13602. 800634e: 2b08 cmp r3, #8
  13603. 8006350: d101 bne.n 8006356 <LL_ADC_INJ_IsConversionOngoing+0x18>
  13604. 8006352: 2301 movs r3, #1
  13605. 8006354: e000 b.n 8006358 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  13606. 8006356: 2300 movs r3, #0
  13607. }
  13608. 8006358: 4618 mov r0, r3
  13609. 800635a: 370c adds r7, #12
  13610. 800635c: 46bd mov sp, r7
  13611. 800635e: f85d 7b04 ldr.w r7, [sp], #4
  13612. 8006362: 4770 bx lr
  13613. 08006364 <HAL_ADC_Init>:
  13614. * without disabling the other ADCs.
  13615. * @param hadc ADC handle
  13616. * @retval HAL status
  13617. */
  13618. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  13619. {
  13620. 8006364: b590 push {r4, r7, lr}
  13621. 8006366: b089 sub sp, #36 @ 0x24
  13622. 8006368: af00 add r7, sp, #0
  13623. 800636a: 6078 str r0, [r7, #4]
  13624. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13625. 800636c: 2300 movs r3, #0
  13626. 800636e: 77fb strb r3, [r7, #31]
  13627. uint32_t tmpCFGR;
  13628. uint32_t tmp_adc_reg_is_conversion_on_going;
  13629. __IO uint32_t wait_loop_index = 0UL;
  13630. 8006370: 2300 movs r3, #0
  13631. 8006372: 60bb str r3, [r7, #8]
  13632. uint32_t tmp_adc_is_conversion_on_going_regular;
  13633. uint32_t tmp_adc_is_conversion_on_going_injected;
  13634. /* Check ADC handle */
  13635. if (hadc == NULL)
  13636. 8006374: 687b ldr r3, [r7, #4]
  13637. 8006376: 2b00 cmp r3, #0
  13638. 8006378: d101 bne.n 800637e <HAL_ADC_Init+0x1a>
  13639. {
  13640. return HAL_ERROR;
  13641. 800637a: 2301 movs r3, #1
  13642. 800637c: e18f b.n 800669e <HAL_ADC_Init+0x33a>
  13643. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  13644. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  13645. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  13646. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  13647. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  13648. 800637e: 687b ldr r3, [r7, #4]
  13649. 8006380: 68db ldr r3, [r3, #12]
  13650. 8006382: 2b00 cmp r3, #0
  13651. /* DISCEN and CONT bits cannot be set at the same time */
  13652. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  13653. /* Actions performed only if ADC is coming from state reset: */
  13654. /* - Initialization of ADC MSP */
  13655. if (hadc->State == HAL_ADC_STATE_RESET)
  13656. 8006384: 687b ldr r3, [r7, #4]
  13657. 8006386: 6d5b ldr r3, [r3, #84] @ 0x54
  13658. 8006388: 2b00 cmp r3, #0
  13659. 800638a: d109 bne.n 80063a0 <HAL_ADC_Init+0x3c>
  13660. /* Init the low level hardware */
  13661. hadc->MspInitCallback(hadc);
  13662. #else
  13663. /* Init the low level hardware */
  13664. HAL_ADC_MspInit(hadc);
  13665. 800638c: 6878 ldr r0, [r7, #4]
  13666. 800638e: f7fd fcdf bl 8003d50 <HAL_ADC_MspInit>
  13667. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  13668. /* Set ADC error code to none */
  13669. ADC_CLEAR_ERRORCODE(hadc);
  13670. 8006392: 687b ldr r3, [r7, #4]
  13671. 8006394: 2200 movs r2, #0
  13672. 8006396: 659a str r2, [r3, #88] @ 0x58
  13673. /* Initialize Lock */
  13674. hadc->Lock = HAL_UNLOCKED;
  13675. 8006398: 687b ldr r3, [r7, #4]
  13676. 800639a: 2200 movs r2, #0
  13677. 800639c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13678. }
  13679. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  13680. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  13681. 80063a0: 687b ldr r3, [r7, #4]
  13682. 80063a2: 681b ldr r3, [r3, #0]
  13683. 80063a4: 4618 mov r0, r3
  13684. 80063a6: f7ff ff19 bl 80061dc <LL_ADC_IsDeepPowerDownEnabled>
  13685. 80063aa: 4603 mov r3, r0
  13686. 80063ac: 2b00 cmp r3, #0
  13687. 80063ae: d004 beq.n 80063ba <HAL_ADC_Init+0x56>
  13688. {
  13689. /* Disable ADC deep power down mode */
  13690. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  13691. 80063b0: 687b ldr r3, [r7, #4]
  13692. 80063b2: 681b ldr r3, [r3, #0]
  13693. 80063b4: 4618 mov r0, r3
  13694. 80063b6: f7ff feff bl 80061b8 <LL_ADC_DisableDeepPowerDown>
  13695. /* System was in deep power down mode, calibration must
  13696. be relaunched or a previously saved calibration factor
  13697. re-applied once the ADC voltage regulator is enabled */
  13698. }
  13699. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13700. 80063ba: 687b ldr r3, [r7, #4]
  13701. 80063bc: 681b ldr r3, [r3, #0]
  13702. 80063be: 4618 mov r0, r3
  13703. 80063c0: f7ff ff34 bl 800622c <LL_ADC_IsInternalRegulatorEnabled>
  13704. 80063c4: 4603 mov r3, r0
  13705. 80063c6: 2b00 cmp r3, #0
  13706. 80063c8: d114 bne.n 80063f4 <HAL_ADC_Init+0x90>
  13707. {
  13708. /* Enable ADC internal voltage regulator */
  13709. LL_ADC_EnableInternalRegulator(hadc->Instance);
  13710. 80063ca: 687b ldr r3, [r7, #4]
  13711. 80063cc: 681b ldr r3, [r3, #0]
  13712. 80063ce: 4618 mov r0, r3
  13713. 80063d0: f7ff ff18 bl 8006204 <LL_ADC_EnableInternalRegulator>
  13714. /* Note: Variable divided by 2 to compensate partially */
  13715. /* CPU processing cycles, scaling in us split to not */
  13716. /* exceed 32 bits register capacity and handle low frequency. */
  13717. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  13718. 80063d4: 4b87 ldr r3, [pc, #540] @ (80065f4 <HAL_ADC_Init+0x290>)
  13719. 80063d6: 681b ldr r3, [r3, #0]
  13720. 80063d8: 099b lsrs r3, r3, #6
  13721. 80063da: 4a87 ldr r2, [pc, #540] @ (80065f8 <HAL_ADC_Init+0x294>)
  13722. 80063dc: fba2 2303 umull r2, r3, r2, r3
  13723. 80063e0: 099b lsrs r3, r3, #6
  13724. 80063e2: 3301 adds r3, #1
  13725. 80063e4: 60bb str r3, [r7, #8]
  13726. while (wait_loop_index != 0UL)
  13727. 80063e6: e002 b.n 80063ee <HAL_ADC_Init+0x8a>
  13728. {
  13729. wait_loop_index--;
  13730. 80063e8: 68bb ldr r3, [r7, #8]
  13731. 80063ea: 3b01 subs r3, #1
  13732. 80063ec: 60bb str r3, [r7, #8]
  13733. while (wait_loop_index != 0UL)
  13734. 80063ee: 68bb ldr r3, [r7, #8]
  13735. 80063f0: 2b00 cmp r3, #0
  13736. 80063f2: d1f9 bne.n 80063e8 <HAL_ADC_Init+0x84>
  13737. }
  13738. /* Verification that ADC voltage regulator is correctly enabled, whether */
  13739. /* or not ADC is coming from state reset (if any potential problem of */
  13740. /* clocking, voltage regulator would not be enabled). */
  13741. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13742. 80063f4: 687b ldr r3, [r7, #4]
  13743. 80063f6: 681b ldr r3, [r3, #0]
  13744. 80063f8: 4618 mov r0, r3
  13745. 80063fa: f7ff ff17 bl 800622c <LL_ADC_IsInternalRegulatorEnabled>
  13746. 80063fe: 4603 mov r3, r0
  13747. 8006400: 2b00 cmp r3, #0
  13748. 8006402: d10d bne.n 8006420 <HAL_ADC_Init+0xbc>
  13749. {
  13750. /* Update ADC state machine to error */
  13751. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13752. 8006404: 687b ldr r3, [r7, #4]
  13753. 8006406: 6d5b ldr r3, [r3, #84] @ 0x54
  13754. 8006408: f043 0210 orr.w r2, r3, #16
  13755. 800640c: 687b ldr r3, [r7, #4]
  13756. 800640e: 655a str r2, [r3, #84] @ 0x54
  13757. /* Set ADC error code to ADC peripheral internal error */
  13758. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  13759. 8006410: 687b ldr r3, [r7, #4]
  13760. 8006412: 6d9b ldr r3, [r3, #88] @ 0x58
  13761. 8006414: f043 0201 orr.w r2, r3, #1
  13762. 8006418: 687b ldr r3, [r7, #4]
  13763. 800641a: 659a str r2, [r3, #88] @ 0x58
  13764. tmp_hal_status = HAL_ERROR;
  13765. 800641c: 2301 movs r3, #1
  13766. 800641e: 77fb strb r3, [r7, #31]
  13767. /* Configuration of ADC parameters if previous preliminary actions are */
  13768. /* correctly completed and if there is no conversion on going on regular */
  13769. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  13770. /* called to update a parameter on the fly). */
  13771. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13772. 8006420: 687b ldr r3, [r7, #4]
  13773. 8006422: 681b ldr r3, [r3, #0]
  13774. 8006424: 4618 mov r0, r3
  13775. 8006426: f7ff ff77 bl 8006318 <LL_ADC_REG_IsConversionOngoing>
  13776. 800642a: 6178 str r0, [r7, #20]
  13777. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  13778. 800642c: 687b ldr r3, [r7, #4]
  13779. 800642e: 6d5b ldr r3, [r3, #84] @ 0x54
  13780. 8006430: f003 0310 and.w r3, r3, #16
  13781. 8006434: 2b00 cmp r3, #0
  13782. 8006436: f040 8129 bne.w 800668c <HAL_ADC_Init+0x328>
  13783. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  13784. 800643a: 697b ldr r3, [r7, #20]
  13785. 800643c: 2b00 cmp r3, #0
  13786. 800643e: f040 8125 bne.w 800668c <HAL_ADC_Init+0x328>
  13787. )
  13788. {
  13789. /* Set ADC state */
  13790. ADC_STATE_CLR_SET(hadc->State,
  13791. 8006442: 687b ldr r3, [r7, #4]
  13792. 8006444: 6d5b ldr r3, [r3, #84] @ 0x54
  13793. 8006446: f423 7381 bic.w r3, r3, #258 @ 0x102
  13794. 800644a: f043 0202 orr.w r2, r3, #2
  13795. 800644e: 687b ldr r3, [r7, #4]
  13796. 8006450: 655a str r2, [r3, #84] @ 0x54
  13797. /* Configuration of common ADC parameters */
  13798. /* Parameters update conditioned to ADC state: */
  13799. /* Parameters that can be updated only when ADC is disabled: */
  13800. /* - clock configuration */
  13801. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13802. 8006452: 687b ldr r3, [r7, #4]
  13803. 8006454: 681b ldr r3, [r3, #0]
  13804. 8006456: 4618 mov r0, r3
  13805. 8006458: f7ff ff24 bl 80062a4 <LL_ADC_IsEnabled>
  13806. 800645c: 4603 mov r3, r0
  13807. 800645e: 2b00 cmp r3, #0
  13808. 8006460: d136 bne.n 80064d0 <HAL_ADC_Init+0x16c>
  13809. {
  13810. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13811. 8006462: 687b ldr r3, [r7, #4]
  13812. 8006464: 681b ldr r3, [r3, #0]
  13813. 8006466: 4a65 ldr r2, [pc, #404] @ (80065fc <HAL_ADC_Init+0x298>)
  13814. 8006468: 4293 cmp r3, r2
  13815. 800646a: d004 beq.n 8006476 <HAL_ADC_Init+0x112>
  13816. 800646c: 687b ldr r3, [r7, #4]
  13817. 800646e: 681b ldr r3, [r3, #0]
  13818. 8006470: 4a63 ldr r2, [pc, #396] @ (8006600 <HAL_ADC_Init+0x29c>)
  13819. 8006472: 4293 cmp r3, r2
  13820. 8006474: d10e bne.n 8006494 <HAL_ADC_Init+0x130>
  13821. 8006476: 4861 ldr r0, [pc, #388] @ (80065fc <HAL_ADC_Init+0x298>)
  13822. 8006478: f7ff ff14 bl 80062a4 <LL_ADC_IsEnabled>
  13823. 800647c: 4604 mov r4, r0
  13824. 800647e: 4860 ldr r0, [pc, #384] @ (8006600 <HAL_ADC_Init+0x29c>)
  13825. 8006480: f7ff ff10 bl 80062a4 <LL_ADC_IsEnabled>
  13826. 8006484: 4603 mov r3, r0
  13827. 8006486: 4323 orrs r3, r4
  13828. 8006488: 2b00 cmp r3, #0
  13829. 800648a: bf0c ite eq
  13830. 800648c: 2301 moveq r3, #1
  13831. 800648e: 2300 movne r3, #0
  13832. 8006490: b2db uxtb r3, r3
  13833. 8006492: e008 b.n 80064a6 <HAL_ADC_Init+0x142>
  13834. 8006494: 485b ldr r0, [pc, #364] @ (8006604 <HAL_ADC_Init+0x2a0>)
  13835. 8006496: f7ff ff05 bl 80062a4 <LL_ADC_IsEnabled>
  13836. 800649a: 4603 mov r3, r0
  13837. 800649c: 2b00 cmp r3, #0
  13838. 800649e: bf0c ite eq
  13839. 80064a0: 2301 moveq r3, #1
  13840. 80064a2: 2300 movne r3, #0
  13841. 80064a4: b2db uxtb r3, r3
  13842. 80064a6: 2b00 cmp r3, #0
  13843. 80064a8: d012 beq.n 80064d0 <HAL_ADC_Init+0x16c>
  13844. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  13845. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  13846. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  13847. /* (set into HAL_ADC_ConfigChannel() or */
  13848. /* HAL_ADCEx_InjectedConfigChannel() ) */
  13849. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  13850. 80064aa: 687b ldr r3, [r7, #4]
  13851. 80064ac: 681b ldr r3, [r3, #0]
  13852. 80064ae: 4a53 ldr r2, [pc, #332] @ (80065fc <HAL_ADC_Init+0x298>)
  13853. 80064b0: 4293 cmp r3, r2
  13854. 80064b2: d004 beq.n 80064be <HAL_ADC_Init+0x15a>
  13855. 80064b4: 687b ldr r3, [r7, #4]
  13856. 80064b6: 681b ldr r3, [r3, #0]
  13857. 80064b8: 4a51 ldr r2, [pc, #324] @ (8006600 <HAL_ADC_Init+0x29c>)
  13858. 80064ba: 4293 cmp r3, r2
  13859. 80064bc: d101 bne.n 80064c2 <HAL_ADC_Init+0x15e>
  13860. 80064be: 4a52 ldr r2, [pc, #328] @ (8006608 <HAL_ADC_Init+0x2a4>)
  13861. 80064c0: e000 b.n 80064c4 <HAL_ADC_Init+0x160>
  13862. 80064c2: 4a52 ldr r2, [pc, #328] @ (800660c <HAL_ADC_Init+0x2a8>)
  13863. 80064c4: 687b ldr r3, [r7, #4]
  13864. 80064c6: 685b ldr r3, [r3, #4]
  13865. 80064c8: 4619 mov r1, r3
  13866. 80064ca: 4610 mov r0, r2
  13867. 80064cc: f7ff fd3c bl 8005f48 <LL_ADC_SetCommonClock>
  13868. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13869. }
  13870. #else
  13871. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  13872. 80064d0: f7ff fcf4 bl 8005ebc <HAL_GetREVID>
  13873. 80064d4: 4603 mov r3, r0
  13874. 80064d6: f241 0203 movw r2, #4099 @ 0x1003
  13875. 80064da: 4293 cmp r3, r2
  13876. 80064dc: d914 bls.n 8006508 <HAL_ADC_Init+0x1a4>
  13877. 80064de: 687b ldr r3, [r7, #4]
  13878. 80064e0: 689b ldr r3, [r3, #8]
  13879. 80064e2: 2b10 cmp r3, #16
  13880. 80064e4: d110 bne.n 8006508 <HAL_ADC_Init+0x1a4>
  13881. {
  13882. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  13883. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13884. 80064e6: 687b ldr r3, [r7, #4]
  13885. 80064e8: 7d5b ldrb r3, [r3, #21]
  13886. 80064ea: 035a lsls r2, r3, #13
  13887. hadc->Init.Overrun |
  13888. 80064ec: 687b ldr r3, [r7, #4]
  13889. 80064ee: 6b1b ldr r3, [r3, #48] @ 0x30
  13890. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13891. 80064f0: 431a orrs r2, r3
  13892. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13893. 80064f2: 687b ldr r3, [r7, #4]
  13894. 80064f4: 689b ldr r3, [r3, #8]
  13895. hadc->Init.Overrun |
  13896. 80064f6: 431a orrs r2, r3
  13897. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13898. 80064f8: 687b ldr r3, [r7, #4]
  13899. 80064fa: 7f1b ldrb r3, [r3, #28]
  13900. 80064fc: 041b lsls r3, r3, #16
  13901. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13902. 80064fe: 4313 orrs r3, r2
  13903. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13904. 8006500: f043 030c orr.w r3, r3, #12
  13905. 8006504: 61bb str r3, [r7, #24]
  13906. 8006506: e00d b.n 8006524 <HAL_ADC_Init+0x1c0>
  13907. }
  13908. else
  13909. {
  13910. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13911. 8006508: 687b ldr r3, [r7, #4]
  13912. 800650a: 7d5b ldrb r3, [r3, #21]
  13913. 800650c: 035a lsls r2, r3, #13
  13914. hadc->Init.Overrun |
  13915. 800650e: 687b ldr r3, [r7, #4]
  13916. 8006510: 6b1b ldr r3, [r3, #48] @ 0x30
  13917. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13918. 8006512: 431a orrs r2, r3
  13919. hadc->Init.Resolution |
  13920. 8006514: 687b ldr r3, [r7, #4]
  13921. 8006516: 689b ldr r3, [r3, #8]
  13922. hadc->Init.Overrun |
  13923. 8006518: 431a orrs r2, r3
  13924. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13925. 800651a: 687b ldr r3, [r7, #4]
  13926. 800651c: 7f1b ldrb r3, [r3, #28]
  13927. 800651e: 041b lsls r3, r3, #16
  13928. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13929. 8006520: 4313 orrs r3, r2
  13930. 8006522: 61bb str r3, [r7, #24]
  13931. }
  13932. #endif /* ADC_VER_V5_3 */
  13933. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  13934. 8006524: 687b ldr r3, [r7, #4]
  13935. 8006526: 7f1b ldrb r3, [r3, #28]
  13936. 8006528: 2b01 cmp r3, #1
  13937. 800652a: d106 bne.n 800653a <HAL_ADC_Init+0x1d6>
  13938. {
  13939. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  13940. 800652c: 687b ldr r3, [r7, #4]
  13941. 800652e: 6a1b ldr r3, [r3, #32]
  13942. 8006530: 3b01 subs r3, #1
  13943. 8006532: 045b lsls r3, r3, #17
  13944. 8006534: 69ba ldr r2, [r7, #24]
  13945. 8006536: 4313 orrs r3, r2
  13946. 8006538: 61bb str r3, [r7, #24]
  13947. /* Enable external trigger if trigger selection is different of software */
  13948. /* start. */
  13949. /* Note: This configuration keeps the hardware feature of parameter */
  13950. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  13951. /* software start. */
  13952. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  13953. 800653a: 687b ldr r3, [r7, #4]
  13954. 800653c: 6a5b ldr r3, [r3, #36] @ 0x24
  13955. 800653e: 2b00 cmp r3, #0
  13956. 8006540: d009 beq.n 8006556 <HAL_ADC_Init+0x1f2>
  13957. {
  13958. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13959. 8006542: 687b ldr r3, [r7, #4]
  13960. 8006544: 6a5b ldr r3, [r3, #36] @ 0x24
  13961. 8006546: f403 7278 and.w r2, r3, #992 @ 0x3e0
  13962. | hadc->Init.ExternalTrigConvEdge
  13963. 800654a: 687b ldr r3, [r7, #4]
  13964. 800654c: 6a9b ldr r3, [r3, #40] @ 0x28
  13965. 800654e: 4313 orrs r3, r2
  13966. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13967. 8006550: 69ba ldr r2, [r7, #24]
  13968. 8006552: 4313 orrs r3, r2
  13969. 8006554: 61bb str r3, [r7, #24]
  13970. /* Update Configuration Register CFGR */
  13971. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13972. }
  13973. #else
  13974. /* Update Configuration Register CFGR */
  13975. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13976. 8006556: 687b ldr r3, [r7, #4]
  13977. 8006558: 681b ldr r3, [r3, #0]
  13978. 800655a: 68da ldr r2, [r3, #12]
  13979. 800655c: 4b2c ldr r3, [pc, #176] @ (8006610 <HAL_ADC_Init+0x2ac>)
  13980. 800655e: 4013 ands r3, r2
  13981. 8006560: 687a ldr r2, [r7, #4]
  13982. 8006562: 6812 ldr r2, [r2, #0]
  13983. 8006564: 69b9 ldr r1, [r7, #24]
  13984. 8006566: 430b orrs r3, r1
  13985. 8006568: 60d3 str r3, [r2, #12]
  13986. /* Parameters that can be updated when ADC is disabled or enabled without */
  13987. /* conversion on going on regular and injected groups: */
  13988. /* - Conversion data management Init.ConversionDataManagement */
  13989. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  13990. /* - Oversampling parameters Init.Oversampling */
  13991. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13992. 800656a: 687b ldr r3, [r7, #4]
  13993. 800656c: 681b ldr r3, [r3, #0]
  13994. 800656e: 4618 mov r0, r3
  13995. 8006570: f7ff fed2 bl 8006318 <LL_ADC_REG_IsConversionOngoing>
  13996. 8006574: 6138 str r0, [r7, #16]
  13997. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13998. 8006576: 687b ldr r3, [r7, #4]
  13999. 8006578: 681b ldr r3, [r3, #0]
  14000. 800657a: 4618 mov r0, r3
  14001. 800657c: f7ff fedf bl 800633e <LL_ADC_INJ_IsConversionOngoing>
  14002. 8006580: 60f8 str r0, [r7, #12]
  14003. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  14004. 8006582: 693b ldr r3, [r7, #16]
  14005. 8006584: 2b00 cmp r3, #0
  14006. 8006586: d15f bne.n 8006648 <HAL_ADC_Init+0x2e4>
  14007. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  14008. 8006588: 68fb ldr r3, [r7, #12]
  14009. 800658a: 2b00 cmp r3, #0
  14010. 800658c: d15c bne.n 8006648 <HAL_ADC_Init+0x2e4>
  14011. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  14012. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14013. }
  14014. #else
  14015. tmpCFGR = (
  14016. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  14017. 800658e: 687b ldr r3, [r7, #4]
  14018. 8006590: 7d1b ldrb r3, [r3, #20]
  14019. 8006592: 039a lsls r2, r3, #14
  14020. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14021. 8006594: 687b ldr r3, [r7, #4]
  14022. 8006596: 6adb ldr r3, [r3, #44] @ 0x2c
  14023. tmpCFGR = (
  14024. 8006598: 4313 orrs r3, r2
  14025. 800659a: 61bb str r3, [r7, #24]
  14026. #endif
  14027. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  14028. 800659c: 687b ldr r3, [r7, #4]
  14029. 800659e: 681b ldr r3, [r3, #0]
  14030. 80065a0: 68da ldr r2, [r3, #12]
  14031. 80065a2: 4b1c ldr r3, [pc, #112] @ (8006614 <HAL_ADC_Init+0x2b0>)
  14032. 80065a4: 4013 ands r3, r2
  14033. 80065a6: 687a ldr r2, [r7, #4]
  14034. 80065a8: 6812 ldr r2, [r2, #0]
  14035. 80065aa: 69b9 ldr r1, [r7, #24]
  14036. 80065ac: 430b orrs r3, r1
  14037. 80065ae: 60d3 str r3, [r2, #12]
  14038. if (hadc->Init.OversamplingMode == ENABLE)
  14039. 80065b0: 687b ldr r3, [r7, #4]
  14040. 80065b2: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  14041. 80065b6: 2b01 cmp r3, #1
  14042. 80065b8: d130 bne.n 800661c <HAL_ADC_Init+0x2b8>
  14043. #endif
  14044. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  14045. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  14046. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  14047. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  14048. 80065ba: 687b ldr r3, [r7, #4]
  14049. 80065bc: 6a5b ldr r3, [r3, #36] @ 0x24
  14050. 80065be: 2b00 cmp r3, #0
  14051. /* - Oversampling Ratio */
  14052. /* - Right bit shift */
  14053. /* - Left bit shift */
  14054. /* - Triggered mode */
  14055. /* - Oversampling mode (continued/resumed) */
  14056. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  14057. 80065c0: 687b ldr r3, [r7, #4]
  14058. 80065c2: 681b ldr r3, [r3, #0]
  14059. 80065c4: 691a ldr r2, [r3, #16]
  14060. 80065c6: 4b14 ldr r3, [pc, #80] @ (8006618 <HAL_ADC_Init+0x2b4>)
  14061. 80065c8: 4013 ands r3, r2
  14062. 80065ca: 687a ldr r2, [r7, #4]
  14063. 80065cc: 6bd2 ldr r2, [r2, #60] @ 0x3c
  14064. 80065ce: 3a01 subs r2, #1
  14065. 80065d0: 0411 lsls r1, r2, #16
  14066. 80065d2: 687a ldr r2, [r7, #4]
  14067. 80065d4: 6c12 ldr r2, [r2, #64] @ 0x40
  14068. 80065d6: 4311 orrs r1, r2
  14069. 80065d8: 687a ldr r2, [r7, #4]
  14070. 80065da: 6c52 ldr r2, [r2, #68] @ 0x44
  14071. 80065dc: 4311 orrs r1, r2
  14072. 80065de: 687a ldr r2, [r7, #4]
  14073. 80065e0: 6c92 ldr r2, [r2, #72] @ 0x48
  14074. 80065e2: 430a orrs r2, r1
  14075. 80065e4: 431a orrs r2, r3
  14076. 80065e6: 687b ldr r3, [r7, #4]
  14077. 80065e8: 681b ldr r3, [r3, #0]
  14078. 80065ea: f042 0201 orr.w r2, r2, #1
  14079. 80065ee: 611a str r2, [r3, #16]
  14080. 80065f0: e01c b.n 800662c <HAL_ADC_Init+0x2c8>
  14081. 80065f2: bf00 nop
  14082. 80065f4: 24000034 .word 0x24000034
  14083. 80065f8: 053e2d63 .word 0x053e2d63
  14084. 80065fc: 40022000 .word 0x40022000
  14085. 8006600: 40022100 .word 0x40022100
  14086. 8006604: 58026000 .word 0x58026000
  14087. 8006608: 40022300 .word 0x40022300
  14088. 800660c: 58026300 .word 0x58026300
  14089. 8006610: fff0c003 .word 0xfff0c003
  14090. 8006614: ffffbffc .word 0xffffbffc
  14091. 8006618: fc00f81e .word 0xfc00f81e
  14092. }
  14093. else
  14094. {
  14095. /* Disable ADC oversampling scope on ADC group regular */
  14096. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  14097. 800661c: 687b ldr r3, [r7, #4]
  14098. 800661e: 681b ldr r3, [r3, #0]
  14099. 8006620: 691a ldr r2, [r3, #16]
  14100. 8006622: 687b ldr r3, [r7, #4]
  14101. 8006624: 681b ldr r3, [r3, #0]
  14102. 8006626: f022 0201 bic.w r2, r2, #1
  14103. 800662a: 611a str r2, [r3, #16]
  14104. }
  14105. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  14106. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  14107. 800662c: 687b ldr r3, [r7, #4]
  14108. 800662e: 681b ldr r3, [r3, #0]
  14109. 8006630: 691b ldr r3, [r3, #16]
  14110. 8006632: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  14111. 8006636: 687b ldr r3, [r7, #4]
  14112. 8006638: 6b5a ldr r2, [r3, #52] @ 0x34
  14113. 800663a: 687b ldr r3, [r7, #4]
  14114. 800663c: 681b ldr r3, [r3, #0]
  14115. 800663e: 430a orrs r2, r1
  14116. 8006640: 611a str r2, [r3, #16]
  14117. /* Configure the BOOST Mode */
  14118. ADC_ConfigureBoostMode(hadc);
  14119. }
  14120. #else
  14121. /* Configure the BOOST Mode */
  14122. ADC_ConfigureBoostMode(hadc);
  14123. 8006642: 6878 ldr r0, [r7, #4]
  14124. 8006644: f000 fde2 bl 800720c <ADC_ConfigureBoostMode>
  14125. /* Note: Scan mode is not present by hardware on this device, but */
  14126. /* emulated by software for alignment over all STM32 devices. */
  14127. /* - if scan mode is enabled, regular channels sequence length is set to */
  14128. /* parameter "NbrOfConversion". */
  14129. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  14130. 8006648: 687b ldr r3, [r7, #4]
  14131. 800664a: 68db ldr r3, [r3, #12]
  14132. 800664c: 2b01 cmp r3, #1
  14133. 800664e: d10c bne.n 800666a <HAL_ADC_Init+0x306>
  14134. {
  14135. /* Set number of ranks in regular group sequencer */
  14136. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  14137. 8006650: 687b ldr r3, [r7, #4]
  14138. 8006652: 681b ldr r3, [r3, #0]
  14139. 8006654: 6b1b ldr r3, [r3, #48] @ 0x30
  14140. 8006656: f023 010f bic.w r1, r3, #15
  14141. 800665a: 687b ldr r3, [r7, #4]
  14142. 800665c: 699b ldr r3, [r3, #24]
  14143. 800665e: 1e5a subs r2, r3, #1
  14144. 8006660: 687b ldr r3, [r7, #4]
  14145. 8006662: 681b ldr r3, [r3, #0]
  14146. 8006664: 430a orrs r2, r1
  14147. 8006666: 631a str r2, [r3, #48] @ 0x30
  14148. 8006668: e007 b.n 800667a <HAL_ADC_Init+0x316>
  14149. }
  14150. else
  14151. {
  14152. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  14153. 800666a: 687b ldr r3, [r7, #4]
  14154. 800666c: 681b ldr r3, [r3, #0]
  14155. 800666e: 6b1a ldr r2, [r3, #48] @ 0x30
  14156. 8006670: 687b ldr r3, [r7, #4]
  14157. 8006672: 681b ldr r3, [r3, #0]
  14158. 8006674: f022 020f bic.w r2, r2, #15
  14159. 8006678: 631a str r2, [r3, #48] @ 0x30
  14160. }
  14161. /* Initialize the ADC state */
  14162. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  14163. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  14164. 800667a: 687b ldr r3, [r7, #4]
  14165. 800667c: 6d5b ldr r3, [r3, #84] @ 0x54
  14166. 800667e: f023 0303 bic.w r3, r3, #3
  14167. 8006682: f043 0201 orr.w r2, r3, #1
  14168. 8006686: 687b ldr r3, [r7, #4]
  14169. 8006688: 655a str r2, [r3, #84] @ 0x54
  14170. 800668a: e007 b.n 800669c <HAL_ADC_Init+0x338>
  14171. }
  14172. else
  14173. {
  14174. /* Update ADC state machine to error */
  14175. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14176. 800668c: 687b ldr r3, [r7, #4]
  14177. 800668e: 6d5b ldr r3, [r3, #84] @ 0x54
  14178. 8006690: f043 0210 orr.w r2, r3, #16
  14179. 8006694: 687b ldr r3, [r7, #4]
  14180. 8006696: 655a str r2, [r3, #84] @ 0x54
  14181. tmp_hal_status = HAL_ERROR;
  14182. 8006698: 2301 movs r3, #1
  14183. 800669a: 77fb strb r3, [r7, #31]
  14184. }
  14185. /* Return function status */
  14186. return tmp_hal_status;
  14187. 800669c: 7ffb ldrb r3, [r7, #31]
  14188. }
  14189. 800669e: 4618 mov r0, r3
  14190. 80066a0: 3724 adds r7, #36 @ 0x24
  14191. 80066a2: 46bd mov sp, r7
  14192. 80066a4: bd90 pop {r4, r7, pc}
  14193. 80066a6: bf00 nop
  14194. 080066a8 <HAL_ADC_Start_DMA>:
  14195. * @param pData Destination Buffer address.
  14196. * @param Length Number of data to be transferred from ADC peripheral to memory
  14197. * @retval HAL status.
  14198. */
  14199. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  14200. {
  14201. 80066a8: b580 push {r7, lr}
  14202. 80066aa: b086 sub sp, #24
  14203. 80066ac: af00 add r7, sp, #0
  14204. 80066ae: 60f8 str r0, [r7, #12]
  14205. 80066b0: 60b9 str r1, [r7, #8]
  14206. 80066b2: 607a str r2, [r7, #4]
  14207. HAL_StatusTypeDef tmp_hal_status;
  14208. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14209. 80066b4: 68fb ldr r3, [r7, #12]
  14210. 80066b6: 681b ldr r3, [r3, #0]
  14211. 80066b8: 4a55 ldr r2, [pc, #340] @ (8006810 <HAL_ADC_Start_DMA+0x168>)
  14212. 80066ba: 4293 cmp r3, r2
  14213. 80066bc: d004 beq.n 80066c8 <HAL_ADC_Start_DMA+0x20>
  14214. 80066be: 68fb ldr r3, [r7, #12]
  14215. 80066c0: 681b ldr r3, [r3, #0]
  14216. 80066c2: 4a54 ldr r2, [pc, #336] @ (8006814 <HAL_ADC_Start_DMA+0x16c>)
  14217. 80066c4: 4293 cmp r3, r2
  14218. 80066c6: d101 bne.n 80066cc <HAL_ADC_Start_DMA+0x24>
  14219. 80066c8: 4b53 ldr r3, [pc, #332] @ (8006818 <HAL_ADC_Start_DMA+0x170>)
  14220. 80066ca: e000 b.n 80066ce <HAL_ADC_Start_DMA+0x26>
  14221. 80066cc: 4b53 ldr r3, [pc, #332] @ (800681c <HAL_ADC_Start_DMA+0x174>)
  14222. 80066ce: 4618 mov r0, r3
  14223. 80066d0: f7ff fd64 bl 800619c <LL_ADC_GetMultimode>
  14224. 80066d4: 6138 str r0, [r7, #16]
  14225. /* Check the parameters */
  14226. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  14227. /* Perform ADC enable and conversion start if no conversion is on going */
  14228. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14229. 80066d6: 68fb ldr r3, [r7, #12]
  14230. 80066d8: 681b ldr r3, [r3, #0]
  14231. 80066da: 4618 mov r0, r3
  14232. 80066dc: f7ff fe1c bl 8006318 <LL_ADC_REG_IsConversionOngoing>
  14233. 80066e0: 4603 mov r3, r0
  14234. 80066e2: 2b00 cmp r3, #0
  14235. 80066e4: f040 808c bne.w 8006800 <HAL_ADC_Start_DMA+0x158>
  14236. {
  14237. /* Process locked */
  14238. __HAL_LOCK(hadc);
  14239. 80066e8: 68fb ldr r3, [r7, #12]
  14240. 80066ea: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14241. 80066ee: 2b01 cmp r3, #1
  14242. 80066f0: d101 bne.n 80066f6 <HAL_ADC_Start_DMA+0x4e>
  14243. 80066f2: 2302 movs r3, #2
  14244. 80066f4: e087 b.n 8006806 <HAL_ADC_Start_DMA+0x15e>
  14245. 80066f6: 68fb ldr r3, [r7, #12]
  14246. 80066f8: 2201 movs r2, #1
  14247. 80066fa: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14248. /* Ensure that multimode regular conversions are not enabled. */
  14249. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  14250. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14251. 80066fe: 693b ldr r3, [r7, #16]
  14252. 8006700: 2b00 cmp r3, #0
  14253. 8006702: d005 beq.n 8006710 <HAL_ADC_Start_DMA+0x68>
  14254. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  14255. 8006704: 693b ldr r3, [r7, #16]
  14256. 8006706: 2b05 cmp r3, #5
  14257. 8006708: d002 beq.n 8006710 <HAL_ADC_Start_DMA+0x68>
  14258. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  14259. 800670a: 693b ldr r3, [r7, #16]
  14260. 800670c: 2b09 cmp r3, #9
  14261. 800670e: d170 bne.n 80067f2 <HAL_ADC_Start_DMA+0x14a>
  14262. )
  14263. {
  14264. /* Enable the ADC peripheral */
  14265. tmp_hal_status = ADC_Enable(hadc);
  14266. 8006710: 68f8 ldr r0, [r7, #12]
  14267. 8006712: f000 fbfd bl 8006f10 <ADC_Enable>
  14268. 8006716: 4603 mov r3, r0
  14269. 8006718: 75fb strb r3, [r7, #23]
  14270. /* Start conversion if ADC is effectively enabled */
  14271. if (tmp_hal_status == HAL_OK)
  14272. 800671a: 7dfb ldrb r3, [r7, #23]
  14273. 800671c: 2b00 cmp r3, #0
  14274. 800671e: d163 bne.n 80067e8 <HAL_ADC_Start_DMA+0x140>
  14275. {
  14276. /* Set ADC state */
  14277. /* - Clear state bitfield related to regular group conversion results */
  14278. /* - Set state bitfield related to regular operation */
  14279. ADC_STATE_CLR_SET(hadc->State,
  14280. 8006720: 68fb ldr r3, [r7, #12]
  14281. 8006722: 6d5a ldr r2, [r3, #84] @ 0x54
  14282. 8006724: 4b3e ldr r3, [pc, #248] @ (8006820 <HAL_ADC_Start_DMA+0x178>)
  14283. 8006726: 4013 ands r3, r2
  14284. 8006728: f443 7280 orr.w r2, r3, #256 @ 0x100
  14285. 800672c: 68fb ldr r3, [r7, #12]
  14286. 800672e: 655a str r2, [r3, #84] @ 0x54
  14287. HAL_ADC_STATE_REG_BUSY);
  14288. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  14289. - if ADC instance is master or if multimode feature is not available
  14290. - if multimode setting is disabled (ADC instance slave in independent mode) */
  14291. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14292. 8006730: 68fb ldr r3, [r7, #12]
  14293. 8006732: 681b ldr r3, [r3, #0]
  14294. 8006734: 4a37 ldr r2, [pc, #220] @ (8006814 <HAL_ADC_Start_DMA+0x16c>)
  14295. 8006736: 4293 cmp r3, r2
  14296. 8006738: d002 beq.n 8006740 <HAL_ADC_Start_DMA+0x98>
  14297. 800673a: 68fb ldr r3, [r7, #12]
  14298. 800673c: 681b ldr r3, [r3, #0]
  14299. 800673e: e000 b.n 8006742 <HAL_ADC_Start_DMA+0x9a>
  14300. 8006740: 4b33 ldr r3, [pc, #204] @ (8006810 <HAL_ADC_Start_DMA+0x168>)
  14301. 8006742: 68fa ldr r2, [r7, #12]
  14302. 8006744: 6812 ldr r2, [r2, #0]
  14303. 8006746: 4293 cmp r3, r2
  14304. 8006748: d002 beq.n 8006750 <HAL_ADC_Start_DMA+0xa8>
  14305. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14306. 800674a: 693b ldr r3, [r7, #16]
  14307. 800674c: 2b00 cmp r3, #0
  14308. 800674e: d105 bne.n 800675c <HAL_ADC_Start_DMA+0xb4>
  14309. )
  14310. {
  14311. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  14312. 8006750: 68fb ldr r3, [r7, #12]
  14313. 8006752: 6d5b ldr r3, [r3, #84] @ 0x54
  14314. 8006754: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  14315. 8006758: 68fb ldr r3, [r7, #12]
  14316. 800675a: 655a str r2, [r3, #84] @ 0x54
  14317. }
  14318. /* Check if a conversion is on going on ADC group injected */
  14319. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  14320. 800675c: 68fb ldr r3, [r7, #12]
  14321. 800675e: 6d5b ldr r3, [r3, #84] @ 0x54
  14322. 8006760: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14323. 8006764: 2b00 cmp r3, #0
  14324. 8006766: d006 beq.n 8006776 <HAL_ADC_Start_DMA+0xce>
  14325. {
  14326. /* Reset ADC error code fields related to regular conversions only */
  14327. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  14328. 8006768: 68fb ldr r3, [r7, #12]
  14329. 800676a: 6d9b ldr r3, [r3, #88] @ 0x58
  14330. 800676c: f023 0206 bic.w r2, r3, #6
  14331. 8006770: 68fb ldr r3, [r7, #12]
  14332. 8006772: 659a str r2, [r3, #88] @ 0x58
  14333. 8006774: e002 b.n 800677c <HAL_ADC_Start_DMA+0xd4>
  14334. }
  14335. else
  14336. {
  14337. /* Reset all ADC error code fields */
  14338. ADC_CLEAR_ERRORCODE(hadc);
  14339. 8006776: 68fb ldr r3, [r7, #12]
  14340. 8006778: 2200 movs r2, #0
  14341. 800677a: 659a str r2, [r3, #88] @ 0x58
  14342. }
  14343. /* Set the DMA transfer complete callback */
  14344. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  14345. 800677c: 68fb ldr r3, [r7, #12]
  14346. 800677e: 6cdb ldr r3, [r3, #76] @ 0x4c
  14347. 8006780: 4a28 ldr r2, [pc, #160] @ (8006824 <HAL_ADC_Start_DMA+0x17c>)
  14348. 8006782: 63da str r2, [r3, #60] @ 0x3c
  14349. /* Set the DMA half transfer complete callback */
  14350. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  14351. 8006784: 68fb ldr r3, [r7, #12]
  14352. 8006786: 6cdb ldr r3, [r3, #76] @ 0x4c
  14353. 8006788: 4a27 ldr r2, [pc, #156] @ (8006828 <HAL_ADC_Start_DMA+0x180>)
  14354. 800678a: 641a str r2, [r3, #64] @ 0x40
  14355. /* Set the DMA error callback */
  14356. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  14357. 800678c: 68fb ldr r3, [r7, #12]
  14358. 800678e: 6cdb ldr r3, [r3, #76] @ 0x4c
  14359. 8006790: 4a26 ldr r2, [pc, #152] @ (800682c <HAL_ADC_Start_DMA+0x184>)
  14360. 8006792: 64da str r2, [r3, #76] @ 0x4c
  14361. /* ADC start (in case of SW start): */
  14362. /* Clear regular group conversion flag and overrun flag */
  14363. /* (To ensure of no unknown state from potential previous ADC */
  14364. /* operations) */
  14365. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  14366. 8006794: 68fb ldr r3, [r7, #12]
  14367. 8006796: 681b ldr r3, [r3, #0]
  14368. 8006798: 221c movs r2, #28
  14369. 800679a: 601a str r2, [r3, #0]
  14370. /* Process unlocked */
  14371. /* Unlock before starting ADC conversions: in case of potential */
  14372. /* interruption, to let the process to ADC IRQ Handler. */
  14373. __HAL_UNLOCK(hadc);
  14374. 800679c: 68fb ldr r3, [r7, #12]
  14375. 800679e: 2200 movs r2, #0
  14376. 80067a0: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14377. /* With DMA, overrun event is always considered as an error even if
  14378. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  14379. ADC_IT_OVR is enabled. */
  14380. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  14381. 80067a4: 68fb ldr r3, [r7, #12]
  14382. 80067a6: 681b ldr r3, [r3, #0]
  14383. 80067a8: 685a ldr r2, [r3, #4]
  14384. 80067aa: 68fb ldr r3, [r7, #12]
  14385. 80067ac: 681b ldr r3, [r3, #0]
  14386. 80067ae: f042 0210 orr.w r2, r2, #16
  14387. 80067b2: 605a str r2, [r3, #4]
  14388. {
  14389. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14390. }
  14391. #else
  14392. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  14393. 80067b4: 68fb ldr r3, [r7, #12]
  14394. 80067b6: 681a ldr r2, [r3, #0]
  14395. 80067b8: 68fb ldr r3, [r7, #12]
  14396. 80067ba: 6adb ldr r3, [r3, #44] @ 0x2c
  14397. 80067bc: 4619 mov r1, r3
  14398. 80067be: 4610 mov r0, r2
  14399. 80067c0: f7ff fc89 bl 80060d6 <LL_ADC_REG_SetDataTransferMode>
  14400. #endif
  14401. /* Start the DMA channel */
  14402. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  14403. 80067c4: 68fb ldr r3, [r7, #12]
  14404. 80067c6: 6cd8 ldr r0, [r3, #76] @ 0x4c
  14405. 80067c8: 68fb ldr r3, [r7, #12]
  14406. 80067ca: 681b ldr r3, [r3, #0]
  14407. 80067cc: 3340 adds r3, #64 @ 0x40
  14408. 80067ce: 4619 mov r1, r3
  14409. 80067d0: 68ba ldr r2, [r7, #8]
  14410. 80067d2: 687b ldr r3, [r7, #4]
  14411. 80067d4: f002 fa5e bl 8008c94 <HAL_DMA_Start_IT>
  14412. 80067d8: 4603 mov r3, r0
  14413. 80067da: 75fb strb r3, [r7, #23]
  14414. /* Enable conversion of regular group. */
  14415. /* If software start has been selected, conversion starts immediately. */
  14416. /* If external trigger has been selected, conversion will start at next */
  14417. /* trigger event. */
  14418. /* Start ADC group regular conversion */
  14419. LL_ADC_REG_StartConversion(hadc->Instance);
  14420. 80067dc: 68fb ldr r3, [r7, #12]
  14421. 80067de: 681b ldr r3, [r3, #0]
  14422. 80067e0: 4618 mov r0, r3
  14423. 80067e2: f7ff fd85 bl 80062f0 <LL_ADC_REG_StartConversion>
  14424. if (tmp_hal_status == HAL_OK)
  14425. 80067e6: e00d b.n 8006804 <HAL_ADC_Start_DMA+0x15c>
  14426. }
  14427. else
  14428. {
  14429. /* Process unlocked */
  14430. __HAL_UNLOCK(hadc);
  14431. 80067e8: 68fb ldr r3, [r7, #12]
  14432. 80067ea: 2200 movs r2, #0
  14433. 80067ec: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14434. if (tmp_hal_status == HAL_OK)
  14435. 80067f0: e008 b.n 8006804 <HAL_ADC_Start_DMA+0x15c>
  14436. }
  14437. }
  14438. else
  14439. {
  14440. tmp_hal_status = HAL_ERROR;
  14441. 80067f2: 2301 movs r3, #1
  14442. 80067f4: 75fb strb r3, [r7, #23]
  14443. /* Process unlocked */
  14444. __HAL_UNLOCK(hadc);
  14445. 80067f6: 68fb ldr r3, [r7, #12]
  14446. 80067f8: 2200 movs r2, #0
  14447. 80067fa: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14448. 80067fe: e001 b.n 8006804 <HAL_ADC_Start_DMA+0x15c>
  14449. }
  14450. }
  14451. else
  14452. {
  14453. tmp_hal_status = HAL_BUSY;
  14454. 8006800: 2302 movs r3, #2
  14455. 8006802: 75fb strb r3, [r7, #23]
  14456. }
  14457. /* Return function status */
  14458. return tmp_hal_status;
  14459. 8006804: 7dfb ldrb r3, [r7, #23]
  14460. }
  14461. 8006806: 4618 mov r0, r3
  14462. 8006808: 3718 adds r7, #24
  14463. 800680a: 46bd mov sp, r7
  14464. 800680c: bd80 pop {r7, pc}
  14465. 800680e: bf00 nop
  14466. 8006810: 40022000 .word 0x40022000
  14467. 8006814: 40022100 .word 0x40022100
  14468. 8006818: 40022300 .word 0x40022300
  14469. 800681c: 58026300 .word 0x58026300
  14470. 8006820: fffff0fe .word 0xfffff0fe
  14471. 8006824: 080070e3 .word 0x080070e3
  14472. 8006828: 080071bb .word 0x080071bb
  14473. 800682c: 080071d7 .word 0x080071d7
  14474. 08006830 <HAL_ADC_ConvHalfCpltCallback>:
  14475. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  14476. * @param hadc ADC handle
  14477. * @retval None
  14478. */
  14479. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  14480. {
  14481. 8006830: b480 push {r7}
  14482. 8006832: b083 sub sp, #12
  14483. 8006834: af00 add r7, sp, #0
  14484. 8006836: 6078 str r0, [r7, #4]
  14485. UNUSED(hadc);
  14486. /* NOTE : This function should not be modified. When the callback is needed,
  14487. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  14488. */
  14489. }
  14490. 8006838: bf00 nop
  14491. 800683a: 370c adds r7, #12
  14492. 800683c: 46bd mov sp, r7
  14493. 800683e: f85d 7b04 ldr.w r7, [sp], #4
  14494. 8006842: 4770 bx lr
  14495. 08006844 <HAL_ADC_ErrorCallback>:
  14496. * (this function is also clearing overrun flag)
  14497. * @param hadc ADC handle
  14498. * @retval None
  14499. */
  14500. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  14501. {
  14502. 8006844: b480 push {r7}
  14503. 8006846: b083 sub sp, #12
  14504. 8006848: af00 add r7, sp, #0
  14505. 800684a: 6078 str r0, [r7, #4]
  14506. UNUSED(hadc);
  14507. /* NOTE : This function should not be modified. When the callback is needed,
  14508. function HAL_ADC_ErrorCallback must be implemented in the user file.
  14509. */
  14510. }
  14511. 800684c: bf00 nop
  14512. 800684e: 370c adds r7, #12
  14513. 8006850: 46bd mov sp, r7
  14514. 8006852: f85d 7b04 ldr.w r7, [sp], #4
  14515. 8006856: 4770 bx lr
  14516. 08006858 <HAL_ADC_ConfigChannel>:
  14517. * @param hadc ADC handle
  14518. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  14519. * @retval HAL status
  14520. */
  14521. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  14522. {
  14523. 8006858: b590 push {r4, r7, lr}
  14524. 800685a: b0a1 sub sp, #132 @ 0x84
  14525. 800685c: af00 add r7, sp, #0
  14526. 800685e: 6078 str r0, [r7, #4]
  14527. 8006860: 6039 str r1, [r7, #0]
  14528. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  14529. 8006862: 2300 movs r3, #0
  14530. 8006864: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14531. uint32_t tmpOffsetShifted;
  14532. uint32_t tmp_config_internal_channel;
  14533. __IO uint32_t wait_loop_index = 0;
  14534. 8006868: 2300 movs r3, #0
  14535. 800686a: 60bb str r3, [r7, #8]
  14536. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  14537. ignored (considered as reset) */
  14538. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  14539. /* Verification of channel number */
  14540. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  14541. 800686c: 683b ldr r3, [r7, #0]
  14542. 800686e: 68db ldr r3, [r3, #12]
  14543. 8006870: 4a65 ldr r2, [pc, #404] @ (8006a08 <HAL_ADC_ConfigChannel+0x1b0>)
  14544. 8006872: 4293 cmp r3, r2
  14545. }
  14546. #endif
  14547. }
  14548. /* Process locked */
  14549. __HAL_LOCK(hadc);
  14550. 8006874: 687b ldr r3, [r7, #4]
  14551. 8006876: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14552. 800687a: 2b01 cmp r3, #1
  14553. 800687c: d101 bne.n 8006882 <HAL_ADC_ConfigChannel+0x2a>
  14554. 800687e: 2302 movs r3, #2
  14555. 8006880: e32e b.n 8006ee0 <HAL_ADC_ConfigChannel+0x688>
  14556. 8006882: 687b ldr r3, [r7, #4]
  14557. 8006884: 2201 movs r2, #1
  14558. 8006886: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14559. /* Parameters update conditioned to ADC state: */
  14560. /* Parameters that can be updated when ADC is disabled or enabled without */
  14561. /* conversion on going on regular group: */
  14562. /* - Channel number */
  14563. /* - Channel rank */
  14564. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14565. 800688a: 687b ldr r3, [r7, #4]
  14566. 800688c: 681b ldr r3, [r3, #0]
  14567. 800688e: 4618 mov r0, r3
  14568. 8006890: f7ff fd42 bl 8006318 <LL_ADC_REG_IsConversionOngoing>
  14569. 8006894: 4603 mov r3, r0
  14570. 8006896: 2b00 cmp r3, #0
  14571. 8006898: f040 8313 bne.w 8006ec2 <HAL_ADC_ConfigChannel+0x66a>
  14572. {
  14573. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  14574. 800689c: 683b ldr r3, [r7, #0]
  14575. 800689e: 681b ldr r3, [r3, #0]
  14576. 80068a0: 2b00 cmp r3, #0
  14577. 80068a2: db2c blt.n 80068fe <HAL_ADC_ConfigChannel+0xa6>
  14578. /* ADC channels preselection */
  14579. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14580. }
  14581. #else
  14582. /* ADC channels preselection */
  14583. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14584. 80068a4: 683b ldr r3, [r7, #0]
  14585. 80068a6: 681b ldr r3, [r3, #0]
  14586. 80068a8: f3c3 0313 ubfx r3, r3, #0, #20
  14587. 80068ac: 2b00 cmp r3, #0
  14588. 80068ae: d108 bne.n 80068c2 <HAL_ADC_ConfigChannel+0x6a>
  14589. 80068b0: 683b ldr r3, [r7, #0]
  14590. 80068b2: 681b ldr r3, [r3, #0]
  14591. 80068b4: 0e9b lsrs r3, r3, #26
  14592. 80068b6: f003 031f and.w r3, r3, #31
  14593. 80068ba: 2201 movs r2, #1
  14594. 80068bc: fa02 f303 lsl.w r3, r2, r3
  14595. 80068c0: e016 b.n 80068f0 <HAL_ADC_ConfigChannel+0x98>
  14596. 80068c2: 683b ldr r3, [r7, #0]
  14597. 80068c4: 681b ldr r3, [r3, #0]
  14598. 80068c6: 667b str r3, [r7, #100] @ 0x64
  14599. uint32_t result;
  14600. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  14601. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  14602. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  14603. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14604. 80068c8: 6e7b ldr r3, [r7, #100] @ 0x64
  14605. 80068ca: fa93 f3a3 rbit r3, r3
  14606. 80068ce: 663b str r3, [r7, #96] @ 0x60
  14607. result |= value & 1U;
  14608. s--;
  14609. }
  14610. result <<= s; /* shift when v's highest bits are zero */
  14611. #endif
  14612. return result;
  14613. 80068d0: 6e3b ldr r3, [r7, #96] @ 0x60
  14614. 80068d2: 66bb str r3, [r7, #104] @ 0x68
  14615. optimisations using the logic "value was passed to __builtin_clz, so it
  14616. is non-zero".
  14617. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  14618. single CLZ instruction.
  14619. */
  14620. if (value == 0U)
  14621. 80068d4: 6ebb ldr r3, [r7, #104] @ 0x68
  14622. 80068d6: 2b00 cmp r3, #0
  14623. 80068d8: d101 bne.n 80068de <HAL_ADC_ConfigChannel+0x86>
  14624. {
  14625. return 32U;
  14626. 80068da: 2320 movs r3, #32
  14627. 80068dc: e003 b.n 80068e6 <HAL_ADC_ConfigChannel+0x8e>
  14628. }
  14629. return __builtin_clz(value);
  14630. 80068de: 6ebb ldr r3, [r7, #104] @ 0x68
  14631. 80068e0: fab3 f383 clz r3, r3
  14632. 80068e4: b2db uxtb r3, r3
  14633. 80068e6: f003 031f and.w r3, r3, #31
  14634. 80068ea: 2201 movs r2, #1
  14635. 80068ec: fa02 f303 lsl.w r3, r2, r3
  14636. 80068f0: 687a ldr r2, [r7, #4]
  14637. 80068f2: 6812 ldr r2, [r2, #0]
  14638. 80068f4: 69d1 ldr r1, [r2, #28]
  14639. 80068f6: 687a ldr r2, [r7, #4]
  14640. 80068f8: 6812 ldr r2, [r2, #0]
  14641. 80068fa: 430b orrs r3, r1
  14642. 80068fc: 61d3 str r3, [r2, #28]
  14643. #endif /* ADC_VER_V5_V90 */
  14644. }
  14645. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  14646. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  14647. 80068fe: 687b ldr r3, [r7, #4]
  14648. 8006900: 6818 ldr r0, [r3, #0]
  14649. 8006902: 683b ldr r3, [r7, #0]
  14650. 8006904: 6859 ldr r1, [r3, #4]
  14651. 8006906: 683b ldr r3, [r7, #0]
  14652. 8006908: 681b ldr r3, [r3, #0]
  14653. 800690a: 461a mov r2, r3
  14654. 800690c: f7ff fbb7 bl 800607e <LL_ADC_REG_SetSequencerRanks>
  14655. /* Parameters update conditioned to ADC state: */
  14656. /* Parameters that can be updated when ADC is disabled or enabled without */
  14657. /* conversion on going on regular group: */
  14658. /* - Channel sampling time */
  14659. /* - Channel offset */
  14660. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  14661. 8006910: 687b ldr r3, [r7, #4]
  14662. 8006912: 681b ldr r3, [r3, #0]
  14663. 8006914: 4618 mov r0, r3
  14664. 8006916: f7ff fcff bl 8006318 <LL_ADC_REG_IsConversionOngoing>
  14665. 800691a: 67b8 str r0, [r7, #120] @ 0x78
  14666. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  14667. 800691c: 687b ldr r3, [r7, #4]
  14668. 800691e: 681b ldr r3, [r3, #0]
  14669. 8006920: 4618 mov r0, r3
  14670. 8006922: f7ff fd0c bl 800633e <LL_ADC_INJ_IsConversionOngoing>
  14671. 8006926: 6778 str r0, [r7, #116] @ 0x74
  14672. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  14673. 8006928: 6fbb ldr r3, [r7, #120] @ 0x78
  14674. 800692a: 2b00 cmp r3, #0
  14675. 800692c: f040 80b8 bne.w 8006aa0 <HAL_ADC_ConfigChannel+0x248>
  14676. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  14677. 8006930: 6f7b ldr r3, [r7, #116] @ 0x74
  14678. 8006932: 2b00 cmp r3, #0
  14679. 8006934: f040 80b4 bne.w 8006aa0 <HAL_ADC_ConfigChannel+0x248>
  14680. )
  14681. {
  14682. /* Set sampling time of the selected ADC channel */
  14683. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  14684. 8006938: 687b ldr r3, [r7, #4]
  14685. 800693a: 6818 ldr r0, [r3, #0]
  14686. 800693c: 683b ldr r3, [r7, #0]
  14687. 800693e: 6819 ldr r1, [r3, #0]
  14688. 8006940: 683b ldr r3, [r7, #0]
  14689. 8006942: 689b ldr r3, [r3, #8]
  14690. 8006944: 461a mov r2, r3
  14691. 8006946: f7ff fbd9 bl 80060fc <LL_ADC_SetChannelSamplingTime>
  14692. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14693. }
  14694. else
  14695. #endif /* ADC_VER_V5_V90 */
  14696. {
  14697. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14698. 800694a: 4b30 ldr r3, [pc, #192] @ (8006a0c <HAL_ADC_ConfigChannel+0x1b4>)
  14699. 800694c: 681b ldr r3, [r3, #0]
  14700. 800694e: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  14701. 8006952: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  14702. 8006956: d10b bne.n 8006970 <HAL_ADC_ConfigChannel+0x118>
  14703. 8006958: 683b ldr r3, [r7, #0]
  14704. 800695a: 695a ldr r2, [r3, #20]
  14705. 800695c: 687b ldr r3, [r7, #4]
  14706. 800695e: 681b ldr r3, [r3, #0]
  14707. 8006960: 68db ldr r3, [r3, #12]
  14708. 8006962: 089b lsrs r3, r3, #2
  14709. 8006964: f003 0307 and.w r3, r3, #7
  14710. 8006968: 005b lsls r3, r3, #1
  14711. 800696a: fa02 f303 lsl.w r3, r2, r3
  14712. 800696e: e01d b.n 80069ac <HAL_ADC_ConfigChannel+0x154>
  14713. 8006970: 687b ldr r3, [r7, #4]
  14714. 8006972: 681b ldr r3, [r3, #0]
  14715. 8006974: 68db ldr r3, [r3, #12]
  14716. 8006976: f003 0310 and.w r3, r3, #16
  14717. 800697a: 2b00 cmp r3, #0
  14718. 800697c: d10b bne.n 8006996 <HAL_ADC_ConfigChannel+0x13e>
  14719. 800697e: 683b ldr r3, [r7, #0]
  14720. 8006980: 695a ldr r2, [r3, #20]
  14721. 8006982: 687b ldr r3, [r7, #4]
  14722. 8006984: 681b ldr r3, [r3, #0]
  14723. 8006986: 68db ldr r3, [r3, #12]
  14724. 8006988: 089b lsrs r3, r3, #2
  14725. 800698a: f003 0307 and.w r3, r3, #7
  14726. 800698e: 005b lsls r3, r3, #1
  14727. 8006990: fa02 f303 lsl.w r3, r2, r3
  14728. 8006994: e00a b.n 80069ac <HAL_ADC_ConfigChannel+0x154>
  14729. 8006996: 683b ldr r3, [r7, #0]
  14730. 8006998: 695a ldr r2, [r3, #20]
  14731. 800699a: 687b ldr r3, [r7, #4]
  14732. 800699c: 681b ldr r3, [r3, #0]
  14733. 800699e: 68db ldr r3, [r3, #12]
  14734. 80069a0: 089b lsrs r3, r3, #2
  14735. 80069a2: f003 0304 and.w r3, r3, #4
  14736. 80069a6: 005b lsls r3, r3, #1
  14737. 80069a8: fa02 f303 lsl.w r3, r2, r3
  14738. 80069ac: 673b str r3, [r7, #112] @ 0x70
  14739. }
  14740. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  14741. 80069ae: 683b ldr r3, [r7, #0]
  14742. 80069b0: 691b ldr r3, [r3, #16]
  14743. 80069b2: 2b04 cmp r3, #4
  14744. 80069b4: d02c beq.n 8006a10 <HAL_ADC_ConfigChannel+0x1b8>
  14745. {
  14746. /* Set ADC selected offset number */
  14747. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  14748. 80069b6: 687b ldr r3, [r7, #4]
  14749. 80069b8: 6818 ldr r0, [r3, #0]
  14750. 80069ba: 683b ldr r3, [r7, #0]
  14751. 80069bc: 6919 ldr r1, [r3, #16]
  14752. 80069be: 683b ldr r3, [r7, #0]
  14753. 80069c0: 681a ldr r2, [r3, #0]
  14754. 80069c2: 6f3b ldr r3, [r7, #112] @ 0x70
  14755. 80069c4: f7ff faf4 bl 8005fb0 <LL_ADC_SetOffset>
  14756. else
  14757. #endif /* ADC_VER_V5_V90 */
  14758. {
  14759. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  14760. /* Set ADC selected offset signed saturation */
  14761. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  14762. 80069c8: 687b ldr r3, [r7, #4]
  14763. 80069ca: 6818 ldr r0, [r3, #0]
  14764. 80069cc: 683b ldr r3, [r7, #0]
  14765. 80069ce: 6919 ldr r1, [r3, #16]
  14766. 80069d0: 683b ldr r3, [r7, #0]
  14767. 80069d2: 7e5b ldrb r3, [r3, #25]
  14768. 80069d4: 2b01 cmp r3, #1
  14769. 80069d6: d102 bne.n 80069de <HAL_ADC_ConfigChannel+0x186>
  14770. 80069d8: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  14771. 80069dc: e000 b.n 80069e0 <HAL_ADC_ConfigChannel+0x188>
  14772. 80069de: 2300 movs r3, #0
  14773. 80069e0: 461a mov r2, r3
  14774. 80069e2: f7ff fb1e bl 8006022 <LL_ADC_SetOffsetSignedSaturation>
  14775. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  14776. /* Set ADC selected offset right shift */
  14777. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  14778. 80069e6: 687b ldr r3, [r7, #4]
  14779. 80069e8: 6818 ldr r0, [r3, #0]
  14780. 80069ea: 683b ldr r3, [r7, #0]
  14781. 80069ec: 6919 ldr r1, [r3, #16]
  14782. 80069ee: 683b ldr r3, [r7, #0]
  14783. 80069f0: 7e1b ldrb r3, [r3, #24]
  14784. 80069f2: 2b01 cmp r3, #1
  14785. 80069f4: d102 bne.n 80069fc <HAL_ADC_ConfigChannel+0x1a4>
  14786. 80069f6: f44f 6300 mov.w r3, #2048 @ 0x800
  14787. 80069fa: e000 b.n 80069fe <HAL_ADC_ConfigChannel+0x1a6>
  14788. 80069fc: 2300 movs r3, #0
  14789. 80069fe: 461a mov r2, r3
  14790. 8006a00: f7ff faf6 bl 8005ff0 <LL_ADC_SetDataRightShift>
  14791. 8006a04: e04c b.n 8006aa0 <HAL_ADC_ConfigChannel+0x248>
  14792. 8006a06: bf00 nop
  14793. 8006a08: 47ff0000 .word 0x47ff0000
  14794. 8006a0c: 5c001000 .word 0x5c001000
  14795. }
  14796. }
  14797. else
  14798. #endif /* ADC_VER_V5_V90 */
  14799. {
  14800. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14801. 8006a10: 687b ldr r3, [r7, #4]
  14802. 8006a12: 681b ldr r3, [r3, #0]
  14803. 8006a14: 6e1b ldr r3, [r3, #96] @ 0x60
  14804. 8006a16: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14805. 8006a1a: 683b ldr r3, [r7, #0]
  14806. 8006a1c: 681b ldr r3, [r3, #0]
  14807. 8006a1e: 069b lsls r3, r3, #26
  14808. 8006a20: 429a cmp r2, r3
  14809. 8006a22: d107 bne.n 8006a34 <HAL_ADC_ConfigChannel+0x1dc>
  14810. {
  14811. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  14812. 8006a24: 687b ldr r3, [r7, #4]
  14813. 8006a26: 681b ldr r3, [r3, #0]
  14814. 8006a28: 6e1a ldr r2, [r3, #96] @ 0x60
  14815. 8006a2a: 687b ldr r3, [r7, #4]
  14816. 8006a2c: 681b ldr r3, [r3, #0]
  14817. 8006a2e: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14818. 8006a32: 661a str r2, [r3, #96] @ 0x60
  14819. }
  14820. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14821. 8006a34: 687b ldr r3, [r7, #4]
  14822. 8006a36: 681b ldr r3, [r3, #0]
  14823. 8006a38: 6e5b ldr r3, [r3, #100] @ 0x64
  14824. 8006a3a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14825. 8006a3e: 683b ldr r3, [r7, #0]
  14826. 8006a40: 681b ldr r3, [r3, #0]
  14827. 8006a42: 069b lsls r3, r3, #26
  14828. 8006a44: 429a cmp r2, r3
  14829. 8006a46: d107 bne.n 8006a58 <HAL_ADC_ConfigChannel+0x200>
  14830. {
  14831. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  14832. 8006a48: 687b ldr r3, [r7, #4]
  14833. 8006a4a: 681b ldr r3, [r3, #0]
  14834. 8006a4c: 6e5a ldr r2, [r3, #100] @ 0x64
  14835. 8006a4e: 687b ldr r3, [r7, #4]
  14836. 8006a50: 681b ldr r3, [r3, #0]
  14837. 8006a52: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14838. 8006a56: 665a str r2, [r3, #100] @ 0x64
  14839. }
  14840. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14841. 8006a58: 687b ldr r3, [r7, #4]
  14842. 8006a5a: 681b ldr r3, [r3, #0]
  14843. 8006a5c: 6e9b ldr r3, [r3, #104] @ 0x68
  14844. 8006a5e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14845. 8006a62: 683b ldr r3, [r7, #0]
  14846. 8006a64: 681b ldr r3, [r3, #0]
  14847. 8006a66: 069b lsls r3, r3, #26
  14848. 8006a68: 429a cmp r2, r3
  14849. 8006a6a: d107 bne.n 8006a7c <HAL_ADC_ConfigChannel+0x224>
  14850. {
  14851. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  14852. 8006a6c: 687b ldr r3, [r7, #4]
  14853. 8006a6e: 681b ldr r3, [r3, #0]
  14854. 8006a70: 6e9a ldr r2, [r3, #104] @ 0x68
  14855. 8006a72: 687b ldr r3, [r7, #4]
  14856. 8006a74: 681b ldr r3, [r3, #0]
  14857. 8006a76: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14858. 8006a7a: 669a str r2, [r3, #104] @ 0x68
  14859. }
  14860. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14861. 8006a7c: 687b ldr r3, [r7, #4]
  14862. 8006a7e: 681b ldr r3, [r3, #0]
  14863. 8006a80: 6edb ldr r3, [r3, #108] @ 0x6c
  14864. 8006a82: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14865. 8006a86: 683b ldr r3, [r7, #0]
  14866. 8006a88: 681b ldr r3, [r3, #0]
  14867. 8006a8a: 069b lsls r3, r3, #26
  14868. 8006a8c: 429a cmp r2, r3
  14869. 8006a8e: d107 bne.n 8006aa0 <HAL_ADC_ConfigChannel+0x248>
  14870. {
  14871. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  14872. 8006a90: 687b ldr r3, [r7, #4]
  14873. 8006a92: 681b ldr r3, [r3, #0]
  14874. 8006a94: 6eda ldr r2, [r3, #108] @ 0x6c
  14875. 8006a96: 687b ldr r3, [r7, #4]
  14876. 8006a98: 681b ldr r3, [r3, #0]
  14877. 8006a9a: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14878. 8006a9e: 66da str r2, [r3, #108] @ 0x6c
  14879. /* Parameters update conditioned to ADC state: */
  14880. /* Parameters that can be updated only when ADC is disabled: */
  14881. /* - Single or differential mode */
  14882. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  14883. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14884. 8006aa0: 687b ldr r3, [r7, #4]
  14885. 8006aa2: 681b ldr r3, [r3, #0]
  14886. 8006aa4: 4618 mov r0, r3
  14887. 8006aa6: f7ff fbfd bl 80062a4 <LL_ADC_IsEnabled>
  14888. 8006aaa: 4603 mov r3, r0
  14889. 8006aac: 2b00 cmp r3, #0
  14890. 8006aae: f040 8211 bne.w 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  14891. {
  14892. /* Set mode single-ended or differential input of the selected ADC channel */
  14893. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  14894. 8006ab2: 687b ldr r3, [r7, #4]
  14895. 8006ab4: 6818 ldr r0, [r3, #0]
  14896. 8006ab6: 683b ldr r3, [r7, #0]
  14897. 8006ab8: 6819 ldr r1, [r3, #0]
  14898. 8006aba: 683b ldr r3, [r7, #0]
  14899. 8006abc: 68db ldr r3, [r3, #12]
  14900. 8006abe: 461a mov r2, r3
  14901. 8006ac0: f7ff fb48 bl 8006154 <LL_ADC_SetChannelSingleDiff>
  14902. /* Configuration of differential mode */
  14903. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  14904. 8006ac4: 683b ldr r3, [r7, #0]
  14905. 8006ac6: 68db ldr r3, [r3, #12]
  14906. 8006ac8: 4aa1 ldr r2, [pc, #644] @ (8006d50 <HAL_ADC_ConfigChannel+0x4f8>)
  14907. 8006aca: 4293 cmp r3, r2
  14908. 8006acc: f040 812e bne.w 8006d2c <HAL_ADC_ConfigChannel+0x4d4>
  14909. {
  14910. /* Set sampling time of the selected ADC channel */
  14911. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  14912. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14913. 8006ad0: 687b ldr r3, [r7, #4]
  14914. 8006ad2: 6818 ldr r0, [r3, #0]
  14915. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14916. 8006ad4: 683b ldr r3, [r7, #0]
  14917. 8006ad6: 681b ldr r3, [r3, #0]
  14918. 8006ad8: f3c3 0313 ubfx r3, r3, #0, #20
  14919. 8006adc: 2b00 cmp r3, #0
  14920. 8006ade: d10b bne.n 8006af8 <HAL_ADC_ConfigChannel+0x2a0>
  14921. 8006ae0: 683b ldr r3, [r7, #0]
  14922. 8006ae2: 681b ldr r3, [r3, #0]
  14923. 8006ae4: 0e9b lsrs r3, r3, #26
  14924. 8006ae6: 3301 adds r3, #1
  14925. 8006ae8: f003 031f and.w r3, r3, #31
  14926. 8006aec: 2b09 cmp r3, #9
  14927. 8006aee: bf94 ite ls
  14928. 8006af0: 2301 movls r3, #1
  14929. 8006af2: 2300 movhi r3, #0
  14930. 8006af4: b2db uxtb r3, r3
  14931. 8006af6: e019 b.n 8006b2c <HAL_ADC_ConfigChannel+0x2d4>
  14932. 8006af8: 683b ldr r3, [r7, #0]
  14933. 8006afa: 681b ldr r3, [r3, #0]
  14934. 8006afc: 65bb str r3, [r7, #88] @ 0x58
  14935. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14936. 8006afe: 6dbb ldr r3, [r7, #88] @ 0x58
  14937. 8006b00: fa93 f3a3 rbit r3, r3
  14938. 8006b04: 657b str r3, [r7, #84] @ 0x54
  14939. return result;
  14940. 8006b06: 6d7b ldr r3, [r7, #84] @ 0x54
  14941. 8006b08: 65fb str r3, [r7, #92] @ 0x5c
  14942. if (value == 0U)
  14943. 8006b0a: 6dfb ldr r3, [r7, #92] @ 0x5c
  14944. 8006b0c: 2b00 cmp r3, #0
  14945. 8006b0e: d101 bne.n 8006b14 <HAL_ADC_ConfigChannel+0x2bc>
  14946. return 32U;
  14947. 8006b10: 2320 movs r3, #32
  14948. 8006b12: e003 b.n 8006b1c <HAL_ADC_ConfigChannel+0x2c4>
  14949. return __builtin_clz(value);
  14950. 8006b14: 6dfb ldr r3, [r7, #92] @ 0x5c
  14951. 8006b16: fab3 f383 clz r3, r3
  14952. 8006b1a: b2db uxtb r3, r3
  14953. 8006b1c: 3301 adds r3, #1
  14954. 8006b1e: f003 031f and.w r3, r3, #31
  14955. 8006b22: 2b09 cmp r3, #9
  14956. 8006b24: bf94 ite ls
  14957. 8006b26: 2301 movls r3, #1
  14958. 8006b28: 2300 movhi r3, #0
  14959. 8006b2a: b2db uxtb r3, r3
  14960. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14961. 8006b2c: 2b00 cmp r3, #0
  14962. 8006b2e: d079 beq.n 8006c24 <HAL_ADC_ConfigChannel+0x3cc>
  14963. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14964. 8006b30: 683b ldr r3, [r7, #0]
  14965. 8006b32: 681b ldr r3, [r3, #0]
  14966. 8006b34: f3c3 0313 ubfx r3, r3, #0, #20
  14967. 8006b38: 2b00 cmp r3, #0
  14968. 8006b3a: d107 bne.n 8006b4c <HAL_ADC_ConfigChannel+0x2f4>
  14969. 8006b3c: 683b ldr r3, [r7, #0]
  14970. 8006b3e: 681b ldr r3, [r3, #0]
  14971. 8006b40: 0e9b lsrs r3, r3, #26
  14972. 8006b42: 3301 adds r3, #1
  14973. 8006b44: 069b lsls r3, r3, #26
  14974. 8006b46: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14975. 8006b4a: e015 b.n 8006b78 <HAL_ADC_ConfigChannel+0x320>
  14976. 8006b4c: 683b ldr r3, [r7, #0]
  14977. 8006b4e: 681b ldr r3, [r3, #0]
  14978. 8006b50: 64fb str r3, [r7, #76] @ 0x4c
  14979. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14980. 8006b52: 6cfb ldr r3, [r7, #76] @ 0x4c
  14981. 8006b54: fa93 f3a3 rbit r3, r3
  14982. 8006b58: 64bb str r3, [r7, #72] @ 0x48
  14983. return result;
  14984. 8006b5a: 6cbb ldr r3, [r7, #72] @ 0x48
  14985. 8006b5c: 653b str r3, [r7, #80] @ 0x50
  14986. if (value == 0U)
  14987. 8006b5e: 6d3b ldr r3, [r7, #80] @ 0x50
  14988. 8006b60: 2b00 cmp r3, #0
  14989. 8006b62: d101 bne.n 8006b68 <HAL_ADC_ConfigChannel+0x310>
  14990. return 32U;
  14991. 8006b64: 2320 movs r3, #32
  14992. 8006b66: e003 b.n 8006b70 <HAL_ADC_ConfigChannel+0x318>
  14993. return __builtin_clz(value);
  14994. 8006b68: 6d3b ldr r3, [r7, #80] @ 0x50
  14995. 8006b6a: fab3 f383 clz r3, r3
  14996. 8006b6e: b2db uxtb r3, r3
  14997. 8006b70: 3301 adds r3, #1
  14998. 8006b72: 069b lsls r3, r3, #26
  14999. 8006b74: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15000. 8006b78: 683b ldr r3, [r7, #0]
  15001. 8006b7a: 681b ldr r3, [r3, #0]
  15002. 8006b7c: f3c3 0313 ubfx r3, r3, #0, #20
  15003. 8006b80: 2b00 cmp r3, #0
  15004. 8006b82: d109 bne.n 8006b98 <HAL_ADC_ConfigChannel+0x340>
  15005. 8006b84: 683b ldr r3, [r7, #0]
  15006. 8006b86: 681b ldr r3, [r3, #0]
  15007. 8006b88: 0e9b lsrs r3, r3, #26
  15008. 8006b8a: 3301 adds r3, #1
  15009. 8006b8c: f003 031f and.w r3, r3, #31
  15010. 8006b90: 2101 movs r1, #1
  15011. 8006b92: fa01 f303 lsl.w r3, r1, r3
  15012. 8006b96: e017 b.n 8006bc8 <HAL_ADC_ConfigChannel+0x370>
  15013. 8006b98: 683b ldr r3, [r7, #0]
  15014. 8006b9a: 681b ldr r3, [r3, #0]
  15015. 8006b9c: 643b str r3, [r7, #64] @ 0x40
  15016. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15017. 8006b9e: 6c3b ldr r3, [r7, #64] @ 0x40
  15018. 8006ba0: fa93 f3a3 rbit r3, r3
  15019. 8006ba4: 63fb str r3, [r7, #60] @ 0x3c
  15020. return result;
  15021. 8006ba6: 6bfb ldr r3, [r7, #60] @ 0x3c
  15022. 8006ba8: 647b str r3, [r7, #68] @ 0x44
  15023. if (value == 0U)
  15024. 8006baa: 6c7b ldr r3, [r7, #68] @ 0x44
  15025. 8006bac: 2b00 cmp r3, #0
  15026. 8006bae: d101 bne.n 8006bb4 <HAL_ADC_ConfigChannel+0x35c>
  15027. return 32U;
  15028. 8006bb0: 2320 movs r3, #32
  15029. 8006bb2: e003 b.n 8006bbc <HAL_ADC_ConfigChannel+0x364>
  15030. return __builtin_clz(value);
  15031. 8006bb4: 6c7b ldr r3, [r7, #68] @ 0x44
  15032. 8006bb6: fab3 f383 clz r3, r3
  15033. 8006bba: b2db uxtb r3, r3
  15034. 8006bbc: 3301 adds r3, #1
  15035. 8006bbe: f003 031f and.w r3, r3, #31
  15036. 8006bc2: 2101 movs r1, #1
  15037. 8006bc4: fa01 f303 lsl.w r3, r1, r3
  15038. 8006bc8: ea42 0103 orr.w r1, r2, r3
  15039. 8006bcc: 683b ldr r3, [r7, #0]
  15040. 8006bce: 681b ldr r3, [r3, #0]
  15041. 8006bd0: f3c3 0313 ubfx r3, r3, #0, #20
  15042. 8006bd4: 2b00 cmp r3, #0
  15043. 8006bd6: d10a bne.n 8006bee <HAL_ADC_ConfigChannel+0x396>
  15044. 8006bd8: 683b ldr r3, [r7, #0]
  15045. 8006bda: 681b ldr r3, [r3, #0]
  15046. 8006bdc: 0e9b lsrs r3, r3, #26
  15047. 8006bde: 3301 adds r3, #1
  15048. 8006be0: f003 021f and.w r2, r3, #31
  15049. 8006be4: 4613 mov r3, r2
  15050. 8006be6: 005b lsls r3, r3, #1
  15051. 8006be8: 4413 add r3, r2
  15052. 8006bea: 051b lsls r3, r3, #20
  15053. 8006bec: e018 b.n 8006c20 <HAL_ADC_ConfigChannel+0x3c8>
  15054. 8006bee: 683b ldr r3, [r7, #0]
  15055. 8006bf0: 681b ldr r3, [r3, #0]
  15056. 8006bf2: 637b str r3, [r7, #52] @ 0x34
  15057. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15058. 8006bf4: 6b7b ldr r3, [r7, #52] @ 0x34
  15059. 8006bf6: fa93 f3a3 rbit r3, r3
  15060. 8006bfa: 633b str r3, [r7, #48] @ 0x30
  15061. return result;
  15062. 8006bfc: 6b3b ldr r3, [r7, #48] @ 0x30
  15063. 8006bfe: 63bb str r3, [r7, #56] @ 0x38
  15064. if (value == 0U)
  15065. 8006c00: 6bbb ldr r3, [r7, #56] @ 0x38
  15066. 8006c02: 2b00 cmp r3, #0
  15067. 8006c04: d101 bne.n 8006c0a <HAL_ADC_ConfigChannel+0x3b2>
  15068. return 32U;
  15069. 8006c06: 2320 movs r3, #32
  15070. 8006c08: e003 b.n 8006c12 <HAL_ADC_ConfigChannel+0x3ba>
  15071. return __builtin_clz(value);
  15072. 8006c0a: 6bbb ldr r3, [r7, #56] @ 0x38
  15073. 8006c0c: fab3 f383 clz r3, r3
  15074. 8006c10: b2db uxtb r3, r3
  15075. 8006c12: 3301 adds r3, #1
  15076. 8006c14: f003 021f and.w r2, r3, #31
  15077. 8006c18: 4613 mov r3, r2
  15078. 8006c1a: 005b lsls r3, r3, #1
  15079. 8006c1c: 4413 add r3, r2
  15080. 8006c1e: 051b lsls r3, r3, #20
  15081. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15082. 8006c20: 430b orrs r3, r1
  15083. 8006c22: e07e b.n 8006d22 <HAL_ADC_ConfigChannel+0x4ca>
  15084. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  15085. 8006c24: 683b ldr r3, [r7, #0]
  15086. 8006c26: 681b ldr r3, [r3, #0]
  15087. 8006c28: f3c3 0313 ubfx r3, r3, #0, #20
  15088. 8006c2c: 2b00 cmp r3, #0
  15089. 8006c2e: d107 bne.n 8006c40 <HAL_ADC_ConfigChannel+0x3e8>
  15090. 8006c30: 683b ldr r3, [r7, #0]
  15091. 8006c32: 681b ldr r3, [r3, #0]
  15092. 8006c34: 0e9b lsrs r3, r3, #26
  15093. 8006c36: 3301 adds r3, #1
  15094. 8006c38: 069b lsls r3, r3, #26
  15095. 8006c3a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15096. 8006c3e: e015 b.n 8006c6c <HAL_ADC_ConfigChannel+0x414>
  15097. 8006c40: 683b ldr r3, [r7, #0]
  15098. 8006c42: 681b ldr r3, [r3, #0]
  15099. 8006c44: 62bb str r3, [r7, #40] @ 0x28
  15100. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15101. 8006c46: 6abb ldr r3, [r7, #40] @ 0x28
  15102. 8006c48: fa93 f3a3 rbit r3, r3
  15103. 8006c4c: 627b str r3, [r7, #36] @ 0x24
  15104. return result;
  15105. 8006c4e: 6a7b ldr r3, [r7, #36] @ 0x24
  15106. 8006c50: 62fb str r3, [r7, #44] @ 0x2c
  15107. if (value == 0U)
  15108. 8006c52: 6afb ldr r3, [r7, #44] @ 0x2c
  15109. 8006c54: 2b00 cmp r3, #0
  15110. 8006c56: d101 bne.n 8006c5c <HAL_ADC_ConfigChannel+0x404>
  15111. return 32U;
  15112. 8006c58: 2320 movs r3, #32
  15113. 8006c5a: e003 b.n 8006c64 <HAL_ADC_ConfigChannel+0x40c>
  15114. return __builtin_clz(value);
  15115. 8006c5c: 6afb ldr r3, [r7, #44] @ 0x2c
  15116. 8006c5e: fab3 f383 clz r3, r3
  15117. 8006c62: b2db uxtb r3, r3
  15118. 8006c64: 3301 adds r3, #1
  15119. 8006c66: 069b lsls r3, r3, #26
  15120. 8006c68: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15121. 8006c6c: 683b ldr r3, [r7, #0]
  15122. 8006c6e: 681b ldr r3, [r3, #0]
  15123. 8006c70: f3c3 0313 ubfx r3, r3, #0, #20
  15124. 8006c74: 2b00 cmp r3, #0
  15125. 8006c76: d109 bne.n 8006c8c <HAL_ADC_ConfigChannel+0x434>
  15126. 8006c78: 683b ldr r3, [r7, #0]
  15127. 8006c7a: 681b ldr r3, [r3, #0]
  15128. 8006c7c: 0e9b lsrs r3, r3, #26
  15129. 8006c7e: 3301 adds r3, #1
  15130. 8006c80: f003 031f and.w r3, r3, #31
  15131. 8006c84: 2101 movs r1, #1
  15132. 8006c86: fa01 f303 lsl.w r3, r1, r3
  15133. 8006c8a: e017 b.n 8006cbc <HAL_ADC_ConfigChannel+0x464>
  15134. 8006c8c: 683b ldr r3, [r7, #0]
  15135. 8006c8e: 681b ldr r3, [r3, #0]
  15136. 8006c90: 61fb str r3, [r7, #28]
  15137. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15138. 8006c92: 69fb ldr r3, [r7, #28]
  15139. 8006c94: fa93 f3a3 rbit r3, r3
  15140. 8006c98: 61bb str r3, [r7, #24]
  15141. return result;
  15142. 8006c9a: 69bb ldr r3, [r7, #24]
  15143. 8006c9c: 623b str r3, [r7, #32]
  15144. if (value == 0U)
  15145. 8006c9e: 6a3b ldr r3, [r7, #32]
  15146. 8006ca0: 2b00 cmp r3, #0
  15147. 8006ca2: d101 bne.n 8006ca8 <HAL_ADC_ConfigChannel+0x450>
  15148. return 32U;
  15149. 8006ca4: 2320 movs r3, #32
  15150. 8006ca6: e003 b.n 8006cb0 <HAL_ADC_ConfigChannel+0x458>
  15151. return __builtin_clz(value);
  15152. 8006ca8: 6a3b ldr r3, [r7, #32]
  15153. 8006caa: fab3 f383 clz r3, r3
  15154. 8006cae: b2db uxtb r3, r3
  15155. 8006cb0: 3301 adds r3, #1
  15156. 8006cb2: f003 031f and.w r3, r3, #31
  15157. 8006cb6: 2101 movs r1, #1
  15158. 8006cb8: fa01 f303 lsl.w r3, r1, r3
  15159. 8006cbc: ea42 0103 orr.w r1, r2, r3
  15160. 8006cc0: 683b ldr r3, [r7, #0]
  15161. 8006cc2: 681b ldr r3, [r3, #0]
  15162. 8006cc4: f3c3 0313 ubfx r3, r3, #0, #20
  15163. 8006cc8: 2b00 cmp r3, #0
  15164. 8006cca: d10d bne.n 8006ce8 <HAL_ADC_ConfigChannel+0x490>
  15165. 8006ccc: 683b ldr r3, [r7, #0]
  15166. 8006cce: 681b ldr r3, [r3, #0]
  15167. 8006cd0: 0e9b lsrs r3, r3, #26
  15168. 8006cd2: 3301 adds r3, #1
  15169. 8006cd4: f003 021f and.w r2, r3, #31
  15170. 8006cd8: 4613 mov r3, r2
  15171. 8006cda: 005b lsls r3, r3, #1
  15172. 8006cdc: 4413 add r3, r2
  15173. 8006cde: 3b1e subs r3, #30
  15174. 8006ce0: 051b lsls r3, r3, #20
  15175. 8006ce2: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15176. 8006ce6: e01b b.n 8006d20 <HAL_ADC_ConfigChannel+0x4c8>
  15177. 8006ce8: 683b ldr r3, [r7, #0]
  15178. 8006cea: 681b ldr r3, [r3, #0]
  15179. 8006cec: 613b str r3, [r7, #16]
  15180. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15181. 8006cee: 693b ldr r3, [r7, #16]
  15182. 8006cf0: fa93 f3a3 rbit r3, r3
  15183. 8006cf4: 60fb str r3, [r7, #12]
  15184. return result;
  15185. 8006cf6: 68fb ldr r3, [r7, #12]
  15186. 8006cf8: 617b str r3, [r7, #20]
  15187. if (value == 0U)
  15188. 8006cfa: 697b ldr r3, [r7, #20]
  15189. 8006cfc: 2b00 cmp r3, #0
  15190. 8006cfe: d101 bne.n 8006d04 <HAL_ADC_ConfigChannel+0x4ac>
  15191. return 32U;
  15192. 8006d00: 2320 movs r3, #32
  15193. 8006d02: e003 b.n 8006d0c <HAL_ADC_ConfigChannel+0x4b4>
  15194. return __builtin_clz(value);
  15195. 8006d04: 697b ldr r3, [r7, #20]
  15196. 8006d06: fab3 f383 clz r3, r3
  15197. 8006d0a: b2db uxtb r3, r3
  15198. 8006d0c: 3301 adds r3, #1
  15199. 8006d0e: f003 021f and.w r2, r3, #31
  15200. 8006d12: 4613 mov r3, r2
  15201. 8006d14: 005b lsls r3, r3, #1
  15202. 8006d16: 4413 add r3, r2
  15203. 8006d18: 3b1e subs r3, #30
  15204. 8006d1a: 051b lsls r3, r3, #20
  15205. 8006d1c: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15206. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15207. 8006d20: 430b orrs r3, r1
  15208. 8006d22: 683a ldr r2, [r7, #0]
  15209. 8006d24: 6892 ldr r2, [r2, #8]
  15210. 8006d26: 4619 mov r1, r3
  15211. 8006d28: f7ff f9e8 bl 80060fc <LL_ADC_SetChannelSamplingTime>
  15212. /* If internal channel selected, enable dedicated internal buffers and */
  15213. /* paths. */
  15214. /* Note: these internal measurement paths can be disabled using */
  15215. /* HAL_ADC_DeInit(). */
  15216. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  15217. 8006d2c: 683b ldr r3, [r7, #0]
  15218. 8006d2e: 681b ldr r3, [r3, #0]
  15219. 8006d30: 2b00 cmp r3, #0
  15220. 8006d32: f280 80cf bge.w 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15221. {
  15222. /* Configuration of common ADC parameters */
  15223. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15224. 8006d36: 687b ldr r3, [r7, #4]
  15225. 8006d38: 681b ldr r3, [r3, #0]
  15226. 8006d3a: 4a06 ldr r2, [pc, #24] @ (8006d54 <HAL_ADC_ConfigChannel+0x4fc>)
  15227. 8006d3c: 4293 cmp r3, r2
  15228. 8006d3e: d004 beq.n 8006d4a <HAL_ADC_ConfigChannel+0x4f2>
  15229. 8006d40: 687b ldr r3, [r7, #4]
  15230. 8006d42: 681b ldr r3, [r3, #0]
  15231. 8006d44: 4a04 ldr r2, [pc, #16] @ (8006d58 <HAL_ADC_ConfigChannel+0x500>)
  15232. 8006d46: 4293 cmp r3, r2
  15233. 8006d48: d10a bne.n 8006d60 <HAL_ADC_ConfigChannel+0x508>
  15234. 8006d4a: 4b04 ldr r3, [pc, #16] @ (8006d5c <HAL_ADC_ConfigChannel+0x504>)
  15235. 8006d4c: e009 b.n 8006d62 <HAL_ADC_ConfigChannel+0x50a>
  15236. 8006d4e: bf00 nop
  15237. 8006d50: 47ff0000 .word 0x47ff0000
  15238. 8006d54: 40022000 .word 0x40022000
  15239. 8006d58: 40022100 .word 0x40022100
  15240. 8006d5c: 40022300 .word 0x40022300
  15241. 8006d60: 4b61 ldr r3, [pc, #388] @ (8006ee8 <HAL_ADC_ConfigChannel+0x690>)
  15242. 8006d62: 4618 mov r0, r3
  15243. 8006d64: f7ff f916 bl 8005f94 <LL_ADC_GetCommonPathInternalCh>
  15244. 8006d68: 66f8 str r0, [r7, #108] @ 0x6c
  15245. /* Software is allowed to change common parameters only when all ADCs */
  15246. /* of the common group are disabled. */
  15247. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15248. 8006d6a: 687b ldr r3, [r7, #4]
  15249. 8006d6c: 681b ldr r3, [r3, #0]
  15250. 8006d6e: 4a5f ldr r2, [pc, #380] @ (8006eec <HAL_ADC_ConfigChannel+0x694>)
  15251. 8006d70: 4293 cmp r3, r2
  15252. 8006d72: d004 beq.n 8006d7e <HAL_ADC_ConfigChannel+0x526>
  15253. 8006d74: 687b ldr r3, [r7, #4]
  15254. 8006d76: 681b ldr r3, [r3, #0]
  15255. 8006d78: 4a5d ldr r2, [pc, #372] @ (8006ef0 <HAL_ADC_ConfigChannel+0x698>)
  15256. 8006d7a: 4293 cmp r3, r2
  15257. 8006d7c: d10e bne.n 8006d9c <HAL_ADC_ConfigChannel+0x544>
  15258. 8006d7e: 485b ldr r0, [pc, #364] @ (8006eec <HAL_ADC_ConfigChannel+0x694>)
  15259. 8006d80: f7ff fa90 bl 80062a4 <LL_ADC_IsEnabled>
  15260. 8006d84: 4604 mov r4, r0
  15261. 8006d86: 485a ldr r0, [pc, #360] @ (8006ef0 <HAL_ADC_ConfigChannel+0x698>)
  15262. 8006d88: f7ff fa8c bl 80062a4 <LL_ADC_IsEnabled>
  15263. 8006d8c: 4603 mov r3, r0
  15264. 8006d8e: 4323 orrs r3, r4
  15265. 8006d90: 2b00 cmp r3, #0
  15266. 8006d92: bf0c ite eq
  15267. 8006d94: 2301 moveq r3, #1
  15268. 8006d96: 2300 movne r3, #0
  15269. 8006d98: b2db uxtb r3, r3
  15270. 8006d9a: e008 b.n 8006dae <HAL_ADC_ConfigChannel+0x556>
  15271. 8006d9c: 4855 ldr r0, [pc, #340] @ (8006ef4 <HAL_ADC_ConfigChannel+0x69c>)
  15272. 8006d9e: f7ff fa81 bl 80062a4 <LL_ADC_IsEnabled>
  15273. 8006da2: 4603 mov r3, r0
  15274. 8006da4: 2b00 cmp r3, #0
  15275. 8006da6: bf0c ite eq
  15276. 8006da8: 2301 moveq r3, #1
  15277. 8006daa: 2300 movne r3, #0
  15278. 8006dac: b2db uxtb r3, r3
  15279. 8006dae: 2b00 cmp r3, #0
  15280. 8006db0: d07d beq.n 8006eae <HAL_ADC_ConfigChannel+0x656>
  15281. {
  15282. /* If the requested internal measurement path has already been enabled, */
  15283. /* bypass the configuration processing. */
  15284. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  15285. 8006db2: 683b ldr r3, [r7, #0]
  15286. 8006db4: 681b ldr r3, [r3, #0]
  15287. 8006db6: 4a50 ldr r2, [pc, #320] @ (8006ef8 <HAL_ADC_ConfigChannel+0x6a0>)
  15288. 8006db8: 4293 cmp r3, r2
  15289. 8006dba: d130 bne.n 8006e1e <HAL_ADC_ConfigChannel+0x5c6>
  15290. 8006dbc: 6efb ldr r3, [r7, #108] @ 0x6c
  15291. 8006dbe: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  15292. 8006dc2: 2b00 cmp r3, #0
  15293. 8006dc4: d12b bne.n 8006e1e <HAL_ADC_ConfigChannel+0x5c6>
  15294. {
  15295. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15296. 8006dc6: 687b ldr r3, [r7, #4]
  15297. 8006dc8: 681b ldr r3, [r3, #0]
  15298. 8006dca: 4a4a ldr r2, [pc, #296] @ (8006ef4 <HAL_ADC_ConfigChannel+0x69c>)
  15299. 8006dcc: 4293 cmp r3, r2
  15300. 8006dce: f040 8081 bne.w 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15301. {
  15302. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  15303. 8006dd2: 687b ldr r3, [r7, #4]
  15304. 8006dd4: 681b ldr r3, [r3, #0]
  15305. 8006dd6: 4a45 ldr r2, [pc, #276] @ (8006eec <HAL_ADC_ConfigChannel+0x694>)
  15306. 8006dd8: 4293 cmp r3, r2
  15307. 8006dda: d004 beq.n 8006de6 <HAL_ADC_ConfigChannel+0x58e>
  15308. 8006ddc: 687b ldr r3, [r7, #4]
  15309. 8006dde: 681b ldr r3, [r3, #0]
  15310. 8006de0: 4a43 ldr r2, [pc, #268] @ (8006ef0 <HAL_ADC_ConfigChannel+0x698>)
  15311. 8006de2: 4293 cmp r3, r2
  15312. 8006de4: d101 bne.n 8006dea <HAL_ADC_ConfigChannel+0x592>
  15313. 8006de6: 4a45 ldr r2, [pc, #276] @ (8006efc <HAL_ADC_ConfigChannel+0x6a4>)
  15314. 8006de8: e000 b.n 8006dec <HAL_ADC_ConfigChannel+0x594>
  15315. 8006dea: 4a3f ldr r2, [pc, #252] @ (8006ee8 <HAL_ADC_ConfigChannel+0x690>)
  15316. 8006dec: 6efb ldr r3, [r7, #108] @ 0x6c
  15317. 8006dee: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  15318. 8006df2: 4619 mov r1, r3
  15319. 8006df4: 4610 mov r0, r2
  15320. 8006df6: f7ff f8ba bl 8005f6e <LL_ADC_SetCommonPathInternalCh>
  15321. /* Delay for temperature sensor stabilization time */
  15322. /* Wait loop initialization and execution */
  15323. /* Note: Variable divided by 2 to compensate partially */
  15324. /* CPU processing cycles, scaling in us split to not */
  15325. /* exceed 32 bits register capacity and handle low frequency. */
  15326. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15327. 8006dfa: 4b41 ldr r3, [pc, #260] @ (8006f00 <HAL_ADC_ConfigChannel+0x6a8>)
  15328. 8006dfc: 681b ldr r3, [r3, #0]
  15329. 8006dfe: 099b lsrs r3, r3, #6
  15330. 8006e00: 4a40 ldr r2, [pc, #256] @ (8006f04 <HAL_ADC_ConfigChannel+0x6ac>)
  15331. 8006e02: fba2 2303 umull r2, r3, r2, r3
  15332. 8006e06: 099b lsrs r3, r3, #6
  15333. 8006e08: 3301 adds r3, #1
  15334. 8006e0a: 005b lsls r3, r3, #1
  15335. 8006e0c: 60bb str r3, [r7, #8]
  15336. while (wait_loop_index != 0UL)
  15337. 8006e0e: e002 b.n 8006e16 <HAL_ADC_ConfigChannel+0x5be>
  15338. {
  15339. wait_loop_index--;
  15340. 8006e10: 68bb ldr r3, [r7, #8]
  15341. 8006e12: 3b01 subs r3, #1
  15342. 8006e14: 60bb str r3, [r7, #8]
  15343. while (wait_loop_index != 0UL)
  15344. 8006e16: 68bb ldr r3, [r7, #8]
  15345. 8006e18: 2b00 cmp r3, #0
  15346. 8006e1a: d1f9 bne.n 8006e10 <HAL_ADC_ConfigChannel+0x5b8>
  15347. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15348. 8006e1c: e05a b.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15349. }
  15350. }
  15351. }
  15352. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  15353. 8006e1e: 683b ldr r3, [r7, #0]
  15354. 8006e20: 681b ldr r3, [r3, #0]
  15355. 8006e22: 4a39 ldr r2, [pc, #228] @ (8006f08 <HAL_ADC_ConfigChannel+0x6b0>)
  15356. 8006e24: 4293 cmp r3, r2
  15357. 8006e26: d11e bne.n 8006e66 <HAL_ADC_ConfigChannel+0x60e>
  15358. 8006e28: 6efb ldr r3, [r7, #108] @ 0x6c
  15359. 8006e2a: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15360. 8006e2e: 2b00 cmp r3, #0
  15361. 8006e30: d119 bne.n 8006e66 <HAL_ADC_ConfigChannel+0x60e>
  15362. {
  15363. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15364. 8006e32: 687b ldr r3, [r7, #4]
  15365. 8006e34: 681b ldr r3, [r3, #0]
  15366. 8006e36: 4a2f ldr r2, [pc, #188] @ (8006ef4 <HAL_ADC_ConfigChannel+0x69c>)
  15367. 8006e38: 4293 cmp r3, r2
  15368. 8006e3a: d14b bne.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15369. {
  15370. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  15371. 8006e3c: 687b ldr r3, [r7, #4]
  15372. 8006e3e: 681b ldr r3, [r3, #0]
  15373. 8006e40: 4a2a ldr r2, [pc, #168] @ (8006eec <HAL_ADC_ConfigChannel+0x694>)
  15374. 8006e42: 4293 cmp r3, r2
  15375. 8006e44: d004 beq.n 8006e50 <HAL_ADC_ConfigChannel+0x5f8>
  15376. 8006e46: 687b ldr r3, [r7, #4]
  15377. 8006e48: 681b ldr r3, [r3, #0]
  15378. 8006e4a: 4a29 ldr r2, [pc, #164] @ (8006ef0 <HAL_ADC_ConfigChannel+0x698>)
  15379. 8006e4c: 4293 cmp r3, r2
  15380. 8006e4e: d101 bne.n 8006e54 <HAL_ADC_ConfigChannel+0x5fc>
  15381. 8006e50: 4a2a ldr r2, [pc, #168] @ (8006efc <HAL_ADC_ConfigChannel+0x6a4>)
  15382. 8006e52: e000 b.n 8006e56 <HAL_ADC_ConfigChannel+0x5fe>
  15383. 8006e54: 4a24 ldr r2, [pc, #144] @ (8006ee8 <HAL_ADC_ConfigChannel+0x690>)
  15384. 8006e56: 6efb ldr r3, [r7, #108] @ 0x6c
  15385. 8006e58: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  15386. 8006e5c: 4619 mov r1, r3
  15387. 8006e5e: 4610 mov r0, r2
  15388. 8006e60: f7ff f885 bl 8005f6e <LL_ADC_SetCommonPathInternalCh>
  15389. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15390. 8006e64: e036 b.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15391. }
  15392. }
  15393. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  15394. 8006e66: 683b ldr r3, [r7, #0]
  15395. 8006e68: 681b ldr r3, [r3, #0]
  15396. 8006e6a: 4a28 ldr r2, [pc, #160] @ (8006f0c <HAL_ADC_ConfigChannel+0x6b4>)
  15397. 8006e6c: 4293 cmp r3, r2
  15398. 8006e6e: d131 bne.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15399. 8006e70: 6efb ldr r3, [r7, #108] @ 0x6c
  15400. 8006e72: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  15401. 8006e76: 2b00 cmp r3, #0
  15402. 8006e78: d12c bne.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15403. {
  15404. if (ADC_VREFINT_INSTANCE(hadc))
  15405. 8006e7a: 687b ldr r3, [r7, #4]
  15406. 8006e7c: 681b ldr r3, [r3, #0]
  15407. 8006e7e: 4a1d ldr r2, [pc, #116] @ (8006ef4 <HAL_ADC_ConfigChannel+0x69c>)
  15408. 8006e80: 4293 cmp r3, r2
  15409. 8006e82: d127 bne.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15410. {
  15411. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  15412. 8006e84: 687b ldr r3, [r7, #4]
  15413. 8006e86: 681b ldr r3, [r3, #0]
  15414. 8006e88: 4a18 ldr r2, [pc, #96] @ (8006eec <HAL_ADC_ConfigChannel+0x694>)
  15415. 8006e8a: 4293 cmp r3, r2
  15416. 8006e8c: d004 beq.n 8006e98 <HAL_ADC_ConfigChannel+0x640>
  15417. 8006e8e: 687b ldr r3, [r7, #4]
  15418. 8006e90: 681b ldr r3, [r3, #0]
  15419. 8006e92: 4a17 ldr r2, [pc, #92] @ (8006ef0 <HAL_ADC_ConfigChannel+0x698>)
  15420. 8006e94: 4293 cmp r3, r2
  15421. 8006e96: d101 bne.n 8006e9c <HAL_ADC_ConfigChannel+0x644>
  15422. 8006e98: 4a18 ldr r2, [pc, #96] @ (8006efc <HAL_ADC_ConfigChannel+0x6a4>)
  15423. 8006e9a: e000 b.n 8006e9e <HAL_ADC_ConfigChannel+0x646>
  15424. 8006e9c: 4a12 ldr r2, [pc, #72] @ (8006ee8 <HAL_ADC_ConfigChannel+0x690>)
  15425. 8006e9e: 6efb ldr r3, [r7, #108] @ 0x6c
  15426. 8006ea0: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  15427. 8006ea4: 4619 mov r1, r3
  15428. 8006ea6: 4610 mov r0, r2
  15429. 8006ea8: f7ff f861 bl 8005f6e <LL_ADC_SetCommonPathInternalCh>
  15430. 8006eac: e012 b.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15431. /* enabled and other ADC of the common group are enabled, internal */
  15432. /* measurement paths cannot be enabled. */
  15433. else
  15434. {
  15435. /* Update ADC state machine to error */
  15436. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15437. 8006eae: 687b ldr r3, [r7, #4]
  15438. 8006eb0: 6d5b ldr r3, [r3, #84] @ 0x54
  15439. 8006eb2: f043 0220 orr.w r2, r3, #32
  15440. 8006eb6: 687b ldr r3, [r7, #4]
  15441. 8006eb8: 655a str r2, [r3, #84] @ 0x54
  15442. tmp_hal_status = HAL_ERROR;
  15443. 8006eba: 2301 movs r3, #1
  15444. 8006ebc: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15445. 8006ec0: e008 b.n 8006ed4 <HAL_ADC_ConfigChannel+0x67c>
  15446. /* channel could be done on neither of the channel configuration structure */
  15447. /* parameters. */
  15448. else
  15449. {
  15450. /* Update ADC state machine to error */
  15451. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15452. 8006ec2: 687b ldr r3, [r7, #4]
  15453. 8006ec4: 6d5b ldr r3, [r3, #84] @ 0x54
  15454. 8006ec6: f043 0220 orr.w r2, r3, #32
  15455. 8006eca: 687b ldr r3, [r7, #4]
  15456. 8006ecc: 655a str r2, [r3, #84] @ 0x54
  15457. tmp_hal_status = HAL_ERROR;
  15458. 8006ece: 2301 movs r3, #1
  15459. 8006ed0: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15460. }
  15461. /* Process unlocked */
  15462. __HAL_UNLOCK(hadc);
  15463. 8006ed4: 687b ldr r3, [r7, #4]
  15464. 8006ed6: 2200 movs r2, #0
  15465. 8006ed8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15466. /* Return function status */
  15467. return tmp_hal_status;
  15468. 8006edc: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15469. }
  15470. 8006ee0: 4618 mov r0, r3
  15471. 8006ee2: 3784 adds r7, #132 @ 0x84
  15472. 8006ee4: 46bd mov sp, r7
  15473. 8006ee6: bd90 pop {r4, r7, pc}
  15474. 8006ee8: 58026300 .word 0x58026300
  15475. 8006eec: 40022000 .word 0x40022000
  15476. 8006ef0: 40022100 .word 0x40022100
  15477. 8006ef4: 58026000 .word 0x58026000
  15478. 8006ef8: cb840000 .word 0xcb840000
  15479. 8006efc: 40022300 .word 0x40022300
  15480. 8006f00: 24000034 .word 0x24000034
  15481. 8006f04: 053e2d63 .word 0x053e2d63
  15482. 8006f08: c7520000 .word 0xc7520000
  15483. 8006f0c: cfb80000 .word 0xcfb80000
  15484. 08006f10 <ADC_Enable>:
  15485. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  15486. * @param hadc ADC handle
  15487. * @retval HAL status.
  15488. */
  15489. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  15490. {
  15491. 8006f10: b580 push {r7, lr}
  15492. 8006f12: b084 sub sp, #16
  15493. 8006f14: af00 add r7, sp, #0
  15494. 8006f16: 6078 str r0, [r7, #4]
  15495. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  15496. /* enabling phase not yet completed: flag ADC ready not yet set). */
  15497. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  15498. /* causes: ADC clock not running, ...). */
  15499. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15500. 8006f18: 687b ldr r3, [r7, #4]
  15501. 8006f1a: 681b ldr r3, [r3, #0]
  15502. 8006f1c: 4618 mov r0, r3
  15503. 8006f1e: f7ff f9c1 bl 80062a4 <LL_ADC_IsEnabled>
  15504. 8006f22: 4603 mov r3, r0
  15505. 8006f24: 2b00 cmp r3, #0
  15506. 8006f26: d16e bne.n 8007006 <ADC_Enable+0xf6>
  15507. {
  15508. /* Check if conditions to enable the ADC are fulfilled */
  15509. 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)
  15510. 8006f28: 687b ldr r3, [r7, #4]
  15511. 8006f2a: 681b ldr r3, [r3, #0]
  15512. 8006f2c: 689a ldr r2, [r3, #8]
  15513. 8006f2e: 4b38 ldr r3, [pc, #224] @ (8007010 <ADC_Enable+0x100>)
  15514. 8006f30: 4013 ands r3, r2
  15515. 8006f32: 2b00 cmp r3, #0
  15516. 8006f34: d00d beq.n 8006f52 <ADC_Enable+0x42>
  15517. {
  15518. /* Update ADC state machine to error */
  15519. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15520. 8006f36: 687b ldr r3, [r7, #4]
  15521. 8006f38: 6d5b ldr r3, [r3, #84] @ 0x54
  15522. 8006f3a: f043 0210 orr.w r2, r3, #16
  15523. 8006f3e: 687b ldr r3, [r7, #4]
  15524. 8006f40: 655a str r2, [r3, #84] @ 0x54
  15525. /* Set ADC error code to ADC peripheral internal error */
  15526. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15527. 8006f42: 687b ldr r3, [r7, #4]
  15528. 8006f44: 6d9b ldr r3, [r3, #88] @ 0x58
  15529. 8006f46: f043 0201 orr.w r2, r3, #1
  15530. 8006f4a: 687b ldr r3, [r7, #4]
  15531. 8006f4c: 659a str r2, [r3, #88] @ 0x58
  15532. return HAL_ERROR;
  15533. 8006f4e: 2301 movs r3, #1
  15534. 8006f50: e05a b.n 8007008 <ADC_Enable+0xf8>
  15535. }
  15536. /* Enable the ADC peripheral */
  15537. LL_ADC_Enable(hadc->Instance);
  15538. 8006f52: 687b ldr r3, [r7, #4]
  15539. 8006f54: 681b ldr r3, [r3, #0]
  15540. 8006f56: 4618 mov r0, r3
  15541. 8006f58: f7ff f97c bl 8006254 <LL_ADC_Enable>
  15542. /* Wait for ADC effectively enabled */
  15543. tickstart = HAL_GetTick();
  15544. 8006f5c: f7fe ffa2 bl 8005ea4 <HAL_GetTick>
  15545. 8006f60: 60f8 str r0, [r7, #12]
  15546. /* Poll for ADC ready flag raised except case of multimode enabled
  15547. and ADC slave selected. */
  15548. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15549. 8006f62: 687b ldr r3, [r7, #4]
  15550. 8006f64: 681b ldr r3, [r3, #0]
  15551. 8006f66: 4a2b ldr r2, [pc, #172] @ (8007014 <ADC_Enable+0x104>)
  15552. 8006f68: 4293 cmp r3, r2
  15553. 8006f6a: d004 beq.n 8006f76 <ADC_Enable+0x66>
  15554. 8006f6c: 687b ldr r3, [r7, #4]
  15555. 8006f6e: 681b ldr r3, [r3, #0]
  15556. 8006f70: 4a29 ldr r2, [pc, #164] @ (8007018 <ADC_Enable+0x108>)
  15557. 8006f72: 4293 cmp r3, r2
  15558. 8006f74: d101 bne.n 8006f7a <ADC_Enable+0x6a>
  15559. 8006f76: 4b29 ldr r3, [pc, #164] @ (800701c <ADC_Enable+0x10c>)
  15560. 8006f78: e000 b.n 8006f7c <ADC_Enable+0x6c>
  15561. 8006f7a: 4b29 ldr r3, [pc, #164] @ (8007020 <ADC_Enable+0x110>)
  15562. 8006f7c: 4618 mov r0, r3
  15563. 8006f7e: f7ff f90d bl 800619c <LL_ADC_GetMultimode>
  15564. 8006f82: 60b8 str r0, [r7, #8]
  15565. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  15566. 8006f84: 687b ldr r3, [r7, #4]
  15567. 8006f86: 681b ldr r3, [r3, #0]
  15568. 8006f88: 4a23 ldr r2, [pc, #140] @ (8007018 <ADC_Enable+0x108>)
  15569. 8006f8a: 4293 cmp r3, r2
  15570. 8006f8c: d002 beq.n 8006f94 <ADC_Enable+0x84>
  15571. 8006f8e: 687b ldr r3, [r7, #4]
  15572. 8006f90: 681b ldr r3, [r3, #0]
  15573. 8006f92: e000 b.n 8006f96 <ADC_Enable+0x86>
  15574. 8006f94: 4b1f ldr r3, [pc, #124] @ (8007014 <ADC_Enable+0x104>)
  15575. 8006f96: 687a ldr r2, [r7, #4]
  15576. 8006f98: 6812 ldr r2, [r2, #0]
  15577. 8006f9a: 4293 cmp r3, r2
  15578. 8006f9c: d02c beq.n 8006ff8 <ADC_Enable+0xe8>
  15579. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  15580. 8006f9e: 68bb ldr r3, [r7, #8]
  15581. 8006fa0: 2b00 cmp r3, #0
  15582. 8006fa2: d130 bne.n 8007006 <ADC_Enable+0xf6>
  15583. )
  15584. {
  15585. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15586. 8006fa4: e028 b.n 8006ff8 <ADC_Enable+0xe8>
  15587. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  15588. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  15589. 4 ADC clock cycle duration */
  15590. /* Note: Test of ADC enabled required due to hardware constraint to */
  15591. /* not enable ADC if already enabled. */
  15592. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15593. 8006fa6: 687b ldr r3, [r7, #4]
  15594. 8006fa8: 681b ldr r3, [r3, #0]
  15595. 8006faa: 4618 mov r0, r3
  15596. 8006fac: f7ff f97a bl 80062a4 <LL_ADC_IsEnabled>
  15597. 8006fb0: 4603 mov r3, r0
  15598. 8006fb2: 2b00 cmp r3, #0
  15599. 8006fb4: d104 bne.n 8006fc0 <ADC_Enable+0xb0>
  15600. {
  15601. LL_ADC_Enable(hadc->Instance);
  15602. 8006fb6: 687b ldr r3, [r7, #4]
  15603. 8006fb8: 681b ldr r3, [r3, #0]
  15604. 8006fba: 4618 mov r0, r3
  15605. 8006fbc: f7ff f94a bl 8006254 <LL_ADC_Enable>
  15606. }
  15607. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  15608. 8006fc0: f7fe ff70 bl 8005ea4 <HAL_GetTick>
  15609. 8006fc4: 4602 mov r2, r0
  15610. 8006fc6: 68fb ldr r3, [r7, #12]
  15611. 8006fc8: 1ad3 subs r3, r2, r3
  15612. 8006fca: 2b02 cmp r3, #2
  15613. 8006fcc: d914 bls.n 8006ff8 <ADC_Enable+0xe8>
  15614. {
  15615. /* New check to avoid false timeout detection in case of preemption */
  15616. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15617. 8006fce: 687b ldr r3, [r7, #4]
  15618. 8006fd0: 681b ldr r3, [r3, #0]
  15619. 8006fd2: 681b ldr r3, [r3, #0]
  15620. 8006fd4: f003 0301 and.w r3, r3, #1
  15621. 8006fd8: 2b01 cmp r3, #1
  15622. 8006fda: d00d beq.n 8006ff8 <ADC_Enable+0xe8>
  15623. {
  15624. /* Update ADC state machine to error */
  15625. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15626. 8006fdc: 687b ldr r3, [r7, #4]
  15627. 8006fde: 6d5b ldr r3, [r3, #84] @ 0x54
  15628. 8006fe0: f043 0210 orr.w r2, r3, #16
  15629. 8006fe4: 687b ldr r3, [r7, #4]
  15630. 8006fe6: 655a str r2, [r3, #84] @ 0x54
  15631. /* Set ADC error code to ADC peripheral internal error */
  15632. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15633. 8006fe8: 687b ldr r3, [r7, #4]
  15634. 8006fea: 6d9b ldr r3, [r3, #88] @ 0x58
  15635. 8006fec: f043 0201 orr.w r2, r3, #1
  15636. 8006ff0: 687b ldr r3, [r7, #4]
  15637. 8006ff2: 659a str r2, [r3, #88] @ 0x58
  15638. return HAL_ERROR;
  15639. 8006ff4: 2301 movs r3, #1
  15640. 8006ff6: e007 b.n 8007008 <ADC_Enable+0xf8>
  15641. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15642. 8006ff8: 687b ldr r3, [r7, #4]
  15643. 8006ffa: 681b ldr r3, [r3, #0]
  15644. 8006ffc: 681b ldr r3, [r3, #0]
  15645. 8006ffe: f003 0301 and.w r3, r3, #1
  15646. 8007002: 2b01 cmp r3, #1
  15647. 8007004: d1cf bne.n 8006fa6 <ADC_Enable+0x96>
  15648. }
  15649. }
  15650. }
  15651. /* Return HAL status */
  15652. return HAL_OK;
  15653. 8007006: 2300 movs r3, #0
  15654. }
  15655. 8007008: 4618 mov r0, r3
  15656. 800700a: 3710 adds r7, #16
  15657. 800700c: 46bd mov sp, r7
  15658. 800700e: bd80 pop {r7, pc}
  15659. 8007010: 8000003f .word 0x8000003f
  15660. 8007014: 40022000 .word 0x40022000
  15661. 8007018: 40022100 .word 0x40022100
  15662. 800701c: 40022300 .word 0x40022300
  15663. 8007020: 58026300 .word 0x58026300
  15664. 08007024 <ADC_Disable>:
  15665. * stopped.
  15666. * @param hadc ADC handle
  15667. * @retval HAL status.
  15668. */
  15669. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  15670. {
  15671. 8007024: b580 push {r7, lr}
  15672. 8007026: b084 sub sp, #16
  15673. 8007028: af00 add r7, sp, #0
  15674. 800702a: 6078 str r0, [r7, #4]
  15675. uint32_t tickstart;
  15676. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  15677. 800702c: 687b ldr r3, [r7, #4]
  15678. 800702e: 681b ldr r3, [r3, #0]
  15679. 8007030: 4618 mov r0, r3
  15680. 8007032: f7ff f94a bl 80062ca <LL_ADC_IsDisableOngoing>
  15681. 8007036: 60f8 str r0, [r7, #12]
  15682. /* Verification if ADC is not already disabled: */
  15683. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  15684. /* disabled. */
  15685. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  15686. 8007038: 687b ldr r3, [r7, #4]
  15687. 800703a: 681b ldr r3, [r3, #0]
  15688. 800703c: 4618 mov r0, r3
  15689. 800703e: f7ff f931 bl 80062a4 <LL_ADC_IsEnabled>
  15690. 8007042: 4603 mov r3, r0
  15691. 8007044: 2b00 cmp r3, #0
  15692. 8007046: d047 beq.n 80070d8 <ADC_Disable+0xb4>
  15693. && (tmp_adc_is_disable_on_going == 0UL)
  15694. 8007048: 68fb ldr r3, [r7, #12]
  15695. 800704a: 2b00 cmp r3, #0
  15696. 800704c: d144 bne.n 80070d8 <ADC_Disable+0xb4>
  15697. )
  15698. {
  15699. /* Check if conditions to disable the ADC are fulfilled */
  15700. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  15701. 800704e: 687b ldr r3, [r7, #4]
  15702. 8007050: 681b ldr r3, [r3, #0]
  15703. 8007052: 689b ldr r3, [r3, #8]
  15704. 8007054: f003 030d and.w r3, r3, #13
  15705. 8007058: 2b01 cmp r3, #1
  15706. 800705a: d10c bne.n 8007076 <ADC_Disable+0x52>
  15707. {
  15708. /* Disable the ADC peripheral */
  15709. LL_ADC_Disable(hadc->Instance);
  15710. 800705c: 687b ldr r3, [r7, #4]
  15711. 800705e: 681b ldr r3, [r3, #0]
  15712. 8007060: 4618 mov r0, r3
  15713. 8007062: f7ff f90b bl 800627c <LL_ADC_Disable>
  15714. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  15715. 8007066: 687b ldr r3, [r7, #4]
  15716. 8007068: 681b ldr r3, [r3, #0]
  15717. 800706a: 2203 movs r2, #3
  15718. 800706c: 601a str r2, [r3, #0]
  15719. return HAL_ERROR;
  15720. }
  15721. /* Wait for ADC effectively disabled */
  15722. /* Get tick count */
  15723. tickstart = HAL_GetTick();
  15724. 800706e: f7fe ff19 bl 8005ea4 <HAL_GetTick>
  15725. 8007072: 60b8 str r0, [r7, #8]
  15726. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15727. 8007074: e029 b.n 80070ca <ADC_Disable+0xa6>
  15728. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15729. 8007076: 687b ldr r3, [r7, #4]
  15730. 8007078: 6d5b ldr r3, [r3, #84] @ 0x54
  15731. 800707a: f043 0210 orr.w r2, r3, #16
  15732. 800707e: 687b ldr r3, [r7, #4]
  15733. 8007080: 655a str r2, [r3, #84] @ 0x54
  15734. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15735. 8007082: 687b ldr r3, [r7, #4]
  15736. 8007084: 6d9b ldr r3, [r3, #88] @ 0x58
  15737. 8007086: f043 0201 orr.w r2, r3, #1
  15738. 800708a: 687b ldr r3, [r7, #4]
  15739. 800708c: 659a str r2, [r3, #88] @ 0x58
  15740. return HAL_ERROR;
  15741. 800708e: 2301 movs r3, #1
  15742. 8007090: e023 b.n 80070da <ADC_Disable+0xb6>
  15743. {
  15744. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  15745. 8007092: f7fe ff07 bl 8005ea4 <HAL_GetTick>
  15746. 8007096: 4602 mov r2, r0
  15747. 8007098: 68bb ldr r3, [r7, #8]
  15748. 800709a: 1ad3 subs r3, r2, r3
  15749. 800709c: 2b02 cmp r3, #2
  15750. 800709e: d914 bls.n 80070ca <ADC_Disable+0xa6>
  15751. {
  15752. /* New check to avoid false timeout detection in case of preemption */
  15753. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15754. 80070a0: 687b ldr r3, [r7, #4]
  15755. 80070a2: 681b ldr r3, [r3, #0]
  15756. 80070a4: 689b ldr r3, [r3, #8]
  15757. 80070a6: f003 0301 and.w r3, r3, #1
  15758. 80070aa: 2b00 cmp r3, #0
  15759. 80070ac: d00d beq.n 80070ca <ADC_Disable+0xa6>
  15760. {
  15761. /* Update ADC state machine to error */
  15762. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15763. 80070ae: 687b ldr r3, [r7, #4]
  15764. 80070b0: 6d5b ldr r3, [r3, #84] @ 0x54
  15765. 80070b2: f043 0210 orr.w r2, r3, #16
  15766. 80070b6: 687b ldr r3, [r7, #4]
  15767. 80070b8: 655a str r2, [r3, #84] @ 0x54
  15768. /* Set ADC error code to ADC peripheral internal error */
  15769. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15770. 80070ba: 687b ldr r3, [r7, #4]
  15771. 80070bc: 6d9b ldr r3, [r3, #88] @ 0x58
  15772. 80070be: f043 0201 orr.w r2, r3, #1
  15773. 80070c2: 687b ldr r3, [r7, #4]
  15774. 80070c4: 659a str r2, [r3, #88] @ 0x58
  15775. return HAL_ERROR;
  15776. 80070c6: 2301 movs r3, #1
  15777. 80070c8: e007 b.n 80070da <ADC_Disable+0xb6>
  15778. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15779. 80070ca: 687b ldr r3, [r7, #4]
  15780. 80070cc: 681b ldr r3, [r3, #0]
  15781. 80070ce: 689b ldr r3, [r3, #8]
  15782. 80070d0: f003 0301 and.w r3, r3, #1
  15783. 80070d4: 2b00 cmp r3, #0
  15784. 80070d6: d1dc bne.n 8007092 <ADC_Disable+0x6e>
  15785. }
  15786. }
  15787. }
  15788. /* Return HAL status */
  15789. return HAL_OK;
  15790. 80070d8: 2300 movs r3, #0
  15791. }
  15792. 80070da: 4618 mov r0, r3
  15793. 80070dc: 3710 adds r7, #16
  15794. 80070de: 46bd mov sp, r7
  15795. 80070e0: bd80 pop {r7, pc}
  15796. 080070e2 <ADC_DMAConvCplt>:
  15797. * @brief DMA transfer complete callback.
  15798. * @param hdma pointer to DMA handle.
  15799. * @retval None
  15800. */
  15801. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  15802. {
  15803. 80070e2: b580 push {r7, lr}
  15804. 80070e4: b084 sub sp, #16
  15805. 80070e6: af00 add r7, sp, #0
  15806. 80070e8: 6078 str r0, [r7, #4]
  15807. /* Retrieve ADC handle corresponding to current DMA handle */
  15808. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15809. 80070ea: 687b ldr r3, [r7, #4]
  15810. 80070ec: 6b9b ldr r3, [r3, #56] @ 0x38
  15811. 80070ee: 60fb str r3, [r7, #12]
  15812. /* Update state machine on conversion status if not in error state */
  15813. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  15814. 80070f0: 68fb ldr r3, [r7, #12]
  15815. 80070f2: 6d5b ldr r3, [r3, #84] @ 0x54
  15816. 80070f4: f003 0350 and.w r3, r3, #80 @ 0x50
  15817. 80070f8: 2b00 cmp r3, #0
  15818. 80070fa: d14b bne.n 8007194 <ADC_DMAConvCplt+0xb2>
  15819. {
  15820. /* Set ADC state */
  15821. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  15822. 80070fc: 68fb ldr r3, [r7, #12]
  15823. 80070fe: 6d5b ldr r3, [r3, #84] @ 0x54
  15824. 8007100: f443 7200 orr.w r2, r3, #512 @ 0x200
  15825. 8007104: 68fb ldr r3, [r7, #12]
  15826. 8007106: 655a str r2, [r3, #84] @ 0x54
  15827. /* Determine whether any further conversion upcoming on group regular */
  15828. /* by external trigger, continuous mode or scan sequence on going */
  15829. /* to disable interruption. */
  15830. /* Is it the end of the regular sequence ? */
  15831. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  15832. 8007108: 68fb ldr r3, [r7, #12]
  15833. 800710a: 681b ldr r3, [r3, #0]
  15834. 800710c: 681b ldr r3, [r3, #0]
  15835. 800710e: f003 0308 and.w r3, r3, #8
  15836. 8007112: 2b00 cmp r3, #0
  15837. 8007114: d021 beq.n 800715a <ADC_DMAConvCplt+0x78>
  15838. {
  15839. /* Are conversions software-triggered ? */
  15840. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  15841. 8007116: 68fb ldr r3, [r7, #12]
  15842. 8007118: 681b ldr r3, [r3, #0]
  15843. 800711a: 4618 mov r0, r3
  15844. 800711c: f7fe ff9c bl 8006058 <LL_ADC_REG_IsTriggerSourceSWStart>
  15845. 8007120: 4603 mov r3, r0
  15846. 8007122: 2b00 cmp r3, #0
  15847. 8007124: d032 beq.n 800718c <ADC_DMAConvCplt+0xaa>
  15848. {
  15849. /* Is CONT bit set ? */
  15850. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  15851. 8007126: 68fb ldr r3, [r7, #12]
  15852. 8007128: 681b ldr r3, [r3, #0]
  15853. 800712a: 68db ldr r3, [r3, #12]
  15854. 800712c: f403 5300 and.w r3, r3, #8192 @ 0x2000
  15855. 8007130: 2b00 cmp r3, #0
  15856. 8007132: d12b bne.n 800718c <ADC_DMAConvCplt+0xaa>
  15857. {
  15858. /* CONT bit is not set, no more conversions expected */
  15859. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15860. 8007134: 68fb ldr r3, [r7, #12]
  15861. 8007136: 6d5b ldr r3, [r3, #84] @ 0x54
  15862. 8007138: f423 7280 bic.w r2, r3, #256 @ 0x100
  15863. 800713c: 68fb ldr r3, [r7, #12]
  15864. 800713e: 655a str r2, [r3, #84] @ 0x54
  15865. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15866. 8007140: 68fb ldr r3, [r7, #12]
  15867. 8007142: 6d5b ldr r3, [r3, #84] @ 0x54
  15868. 8007144: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15869. 8007148: 2b00 cmp r3, #0
  15870. 800714a: d11f bne.n 800718c <ADC_DMAConvCplt+0xaa>
  15871. {
  15872. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15873. 800714c: 68fb ldr r3, [r7, #12]
  15874. 800714e: 6d5b ldr r3, [r3, #84] @ 0x54
  15875. 8007150: f043 0201 orr.w r2, r3, #1
  15876. 8007154: 68fb ldr r3, [r7, #12]
  15877. 8007156: 655a str r2, [r3, #84] @ 0x54
  15878. 8007158: e018 b.n 800718c <ADC_DMAConvCplt+0xaa>
  15879. }
  15880. else
  15881. {
  15882. /* DMA End of Transfer interrupt was triggered but conversions sequence
  15883. is not over. If DMACFG is set to 0, conversions are stopped. */
  15884. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  15885. 800715a: 68fb ldr r3, [r7, #12]
  15886. 800715c: 681b ldr r3, [r3, #0]
  15887. 800715e: 68db ldr r3, [r3, #12]
  15888. 8007160: f003 0303 and.w r3, r3, #3
  15889. 8007164: 2b00 cmp r3, #0
  15890. 8007166: d111 bne.n 800718c <ADC_DMAConvCplt+0xaa>
  15891. {
  15892. /* DMACFG bit is not set, conversions are stopped. */
  15893. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15894. 8007168: 68fb ldr r3, [r7, #12]
  15895. 800716a: 6d5b ldr r3, [r3, #84] @ 0x54
  15896. 800716c: f423 7280 bic.w r2, r3, #256 @ 0x100
  15897. 8007170: 68fb ldr r3, [r7, #12]
  15898. 8007172: 655a str r2, [r3, #84] @ 0x54
  15899. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15900. 8007174: 68fb ldr r3, [r7, #12]
  15901. 8007176: 6d5b ldr r3, [r3, #84] @ 0x54
  15902. 8007178: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15903. 800717c: 2b00 cmp r3, #0
  15904. 800717e: d105 bne.n 800718c <ADC_DMAConvCplt+0xaa>
  15905. {
  15906. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15907. 8007180: 68fb ldr r3, [r7, #12]
  15908. 8007182: 6d5b ldr r3, [r3, #84] @ 0x54
  15909. 8007184: f043 0201 orr.w r2, r3, #1
  15910. 8007188: 68fb ldr r3, [r7, #12]
  15911. 800718a: 655a str r2, [r3, #84] @ 0x54
  15912. /* Conversion complete callback */
  15913. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15914. hadc->ConvCpltCallback(hadc);
  15915. #else
  15916. HAL_ADC_ConvCpltCallback(hadc);
  15917. 800718c: 68f8 ldr r0, [r7, #12]
  15918. 800718e: f7fa fb1b bl 80017c8 <HAL_ADC_ConvCpltCallback>
  15919. {
  15920. /* Call ADC DMA error callback */
  15921. hadc->DMA_Handle->XferErrorCallback(hdma);
  15922. }
  15923. }
  15924. }
  15925. 8007192: e00e b.n 80071b2 <ADC_DMAConvCplt+0xd0>
  15926. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  15927. 8007194: 68fb ldr r3, [r7, #12]
  15928. 8007196: 6d5b ldr r3, [r3, #84] @ 0x54
  15929. 8007198: f003 0310 and.w r3, r3, #16
  15930. 800719c: 2b00 cmp r3, #0
  15931. 800719e: d003 beq.n 80071a8 <ADC_DMAConvCplt+0xc6>
  15932. HAL_ADC_ErrorCallback(hadc);
  15933. 80071a0: 68f8 ldr r0, [r7, #12]
  15934. 80071a2: f7ff fb4f bl 8006844 <HAL_ADC_ErrorCallback>
  15935. }
  15936. 80071a6: e004 b.n 80071b2 <ADC_DMAConvCplt+0xd0>
  15937. hadc->DMA_Handle->XferErrorCallback(hdma);
  15938. 80071a8: 68fb ldr r3, [r7, #12]
  15939. 80071aa: 6cdb ldr r3, [r3, #76] @ 0x4c
  15940. 80071ac: 6cdb ldr r3, [r3, #76] @ 0x4c
  15941. 80071ae: 6878 ldr r0, [r7, #4]
  15942. 80071b0: 4798 blx r3
  15943. }
  15944. 80071b2: bf00 nop
  15945. 80071b4: 3710 adds r7, #16
  15946. 80071b6: 46bd mov sp, r7
  15947. 80071b8: bd80 pop {r7, pc}
  15948. 080071ba <ADC_DMAHalfConvCplt>:
  15949. * @brief DMA half transfer complete callback.
  15950. * @param hdma pointer to DMA handle.
  15951. * @retval None
  15952. */
  15953. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  15954. {
  15955. 80071ba: b580 push {r7, lr}
  15956. 80071bc: b084 sub sp, #16
  15957. 80071be: af00 add r7, sp, #0
  15958. 80071c0: 6078 str r0, [r7, #4]
  15959. /* Retrieve ADC handle corresponding to current DMA handle */
  15960. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15961. 80071c2: 687b ldr r3, [r7, #4]
  15962. 80071c4: 6b9b ldr r3, [r3, #56] @ 0x38
  15963. 80071c6: 60fb str r3, [r7, #12]
  15964. /* Half conversion callback */
  15965. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15966. hadc->ConvHalfCpltCallback(hadc);
  15967. #else
  15968. HAL_ADC_ConvHalfCpltCallback(hadc);
  15969. 80071c8: 68f8 ldr r0, [r7, #12]
  15970. 80071ca: f7ff fb31 bl 8006830 <HAL_ADC_ConvHalfCpltCallback>
  15971. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15972. }
  15973. 80071ce: bf00 nop
  15974. 80071d0: 3710 adds r7, #16
  15975. 80071d2: 46bd mov sp, r7
  15976. 80071d4: bd80 pop {r7, pc}
  15977. 080071d6 <ADC_DMAError>:
  15978. * @brief DMA error callback.
  15979. * @param hdma pointer to DMA handle.
  15980. * @retval None
  15981. */
  15982. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  15983. {
  15984. 80071d6: b580 push {r7, lr}
  15985. 80071d8: b084 sub sp, #16
  15986. 80071da: af00 add r7, sp, #0
  15987. 80071dc: 6078 str r0, [r7, #4]
  15988. /* Retrieve ADC handle corresponding to current DMA handle */
  15989. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15990. 80071de: 687b ldr r3, [r7, #4]
  15991. 80071e0: 6b9b ldr r3, [r3, #56] @ 0x38
  15992. 80071e2: 60fb str r3, [r7, #12]
  15993. /* Set ADC state */
  15994. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  15995. 80071e4: 68fb ldr r3, [r7, #12]
  15996. 80071e6: 6d5b ldr r3, [r3, #84] @ 0x54
  15997. 80071e8: f043 0240 orr.w r2, r3, #64 @ 0x40
  15998. 80071ec: 68fb ldr r3, [r7, #12]
  15999. 80071ee: 655a str r2, [r3, #84] @ 0x54
  16000. /* Set ADC error code to DMA error */
  16001. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  16002. 80071f0: 68fb ldr r3, [r7, #12]
  16003. 80071f2: 6d9b ldr r3, [r3, #88] @ 0x58
  16004. 80071f4: f043 0204 orr.w r2, r3, #4
  16005. 80071f8: 68fb ldr r3, [r7, #12]
  16006. 80071fa: 659a str r2, [r3, #88] @ 0x58
  16007. /* Error callback */
  16008. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  16009. hadc->ErrorCallback(hadc);
  16010. #else
  16011. HAL_ADC_ErrorCallback(hadc);
  16012. 80071fc: 68f8 ldr r0, [r7, #12]
  16013. 80071fe: f7ff fb21 bl 8006844 <HAL_ADC_ErrorCallback>
  16014. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  16015. }
  16016. 8007202: bf00 nop
  16017. 8007204: 3710 adds r7, #16
  16018. 8007206: 46bd mov sp, r7
  16019. 8007208: bd80 pop {r7, pc}
  16020. ...
  16021. 0800720c <ADC_ConfigureBoostMode>:
  16022. * stopped.
  16023. * @param hadc ADC handle
  16024. * @retval None.
  16025. */
  16026. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  16027. {
  16028. 800720c: b580 push {r7, lr}
  16029. 800720e: b084 sub sp, #16
  16030. 8007210: af00 add r7, sp, #0
  16031. 8007212: 6078 str r0, [r7, #4]
  16032. uint32_t freq;
  16033. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  16034. 8007214: 687b ldr r3, [r7, #4]
  16035. 8007216: 681b ldr r3, [r3, #0]
  16036. 8007218: 4a7a ldr r2, [pc, #488] @ (8007404 <ADC_ConfigureBoostMode+0x1f8>)
  16037. 800721a: 4293 cmp r3, r2
  16038. 800721c: d004 beq.n 8007228 <ADC_ConfigureBoostMode+0x1c>
  16039. 800721e: 687b ldr r3, [r7, #4]
  16040. 8007220: 681b ldr r3, [r3, #0]
  16041. 8007222: 4a79 ldr r2, [pc, #484] @ (8007408 <ADC_ConfigureBoostMode+0x1fc>)
  16042. 8007224: 4293 cmp r3, r2
  16043. 8007226: d109 bne.n 800723c <ADC_ConfigureBoostMode+0x30>
  16044. 8007228: 4b78 ldr r3, [pc, #480] @ (800740c <ADC_ConfigureBoostMode+0x200>)
  16045. 800722a: 689b ldr r3, [r3, #8]
  16046. 800722c: f403 3340 and.w r3, r3, #196608 @ 0x30000
  16047. 8007230: 2b00 cmp r3, #0
  16048. 8007232: bf14 ite ne
  16049. 8007234: 2301 movne r3, #1
  16050. 8007236: 2300 moveq r3, #0
  16051. 8007238: b2db uxtb r3, r3
  16052. 800723a: e008 b.n 800724e <ADC_ConfigureBoostMode+0x42>
  16053. 800723c: 4b74 ldr r3, [pc, #464] @ (8007410 <ADC_ConfigureBoostMode+0x204>)
  16054. 800723e: 689b ldr r3, [r3, #8]
  16055. 8007240: f403 3340 and.w r3, r3, #196608 @ 0x30000
  16056. 8007244: 2b00 cmp r3, #0
  16057. 8007246: bf14 ite ne
  16058. 8007248: 2301 movne r3, #1
  16059. 800724a: 2300 moveq r3, #0
  16060. 800724c: b2db uxtb r3, r3
  16061. 800724e: 2b00 cmp r3, #0
  16062. 8007250: d01c beq.n 800728c <ADC_ConfigureBoostMode+0x80>
  16063. {
  16064. freq = HAL_RCC_GetHCLKFreq();
  16065. 8007252: f005 fb47 bl 800c8e4 <HAL_RCC_GetHCLKFreq>
  16066. 8007256: 60f8 str r0, [r7, #12]
  16067. switch (hadc->Init.ClockPrescaler)
  16068. 8007258: 687b ldr r3, [r7, #4]
  16069. 800725a: 685b ldr r3, [r3, #4]
  16070. 800725c: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16071. 8007260: d010 beq.n 8007284 <ADC_ConfigureBoostMode+0x78>
  16072. 8007262: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16073. 8007266: d873 bhi.n 8007350 <ADC_ConfigureBoostMode+0x144>
  16074. 8007268: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  16075. 800726c: d002 beq.n 8007274 <ADC_ConfigureBoostMode+0x68>
  16076. 800726e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  16077. 8007272: d16d bne.n 8007350 <ADC_ConfigureBoostMode+0x144>
  16078. {
  16079. case ADC_CLOCK_SYNC_PCLK_DIV1:
  16080. case ADC_CLOCK_SYNC_PCLK_DIV2:
  16081. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  16082. 8007274: 687b ldr r3, [r7, #4]
  16083. 8007276: 685b ldr r3, [r3, #4]
  16084. 8007278: 0c1b lsrs r3, r3, #16
  16085. 800727a: 68fa ldr r2, [r7, #12]
  16086. 800727c: fbb2 f3f3 udiv r3, r2, r3
  16087. 8007280: 60fb str r3, [r7, #12]
  16088. break;
  16089. 8007282: e068 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16090. case ADC_CLOCK_SYNC_PCLK_DIV4:
  16091. freq /= 4UL;
  16092. 8007284: 68fb ldr r3, [r7, #12]
  16093. 8007286: 089b lsrs r3, r3, #2
  16094. 8007288: 60fb str r3, [r7, #12]
  16095. break;
  16096. 800728a: e064 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16097. break;
  16098. }
  16099. }
  16100. else
  16101. {
  16102. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  16103. 800728c: f44f 2000 mov.w r0, #524288 @ 0x80000
  16104. 8007290: f04f 0100 mov.w r1, #0
  16105. 8007294: f006 fdb2 bl 800ddfc <HAL_RCCEx_GetPeriphCLKFreq>
  16106. 8007298: 60f8 str r0, [r7, #12]
  16107. switch (hadc->Init.ClockPrescaler)
  16108. 800729a: 687b ldr r3, [r7, #4]
  16109. 800729c: 685b ldr r3, [r3, #4]
  16110. 800729e: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16111. 80072a2: d051 beq.n 8007348 <ADC_ConfigureBoostMode+0x13c>
  16112. 80072a4: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16113. 80072a8: d854 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16114. 80072aa: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16115. 80072ae: d047 beq.n 8007340 <ADC_ConfigureBoostMode+0x134>
  16116. 80072b0: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16117. 80072b4: d84e bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16118. 80072b6: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16119. 80072ba: d03d beq.n 8007338 <ADC_ConfigureBoostMode+0x12c>
  16120. 80072bc: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16121. 80072c0: d848 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16122. 80072c2: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16123. 80072c6: d033 beq.n 8007330 <ADC_ConfigureBoostMode+0x124>
  16124. 80072c8: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16125. 80072cc: d842 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16126. 80072ce: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16127. 80072d2: d029 beq.n 8007328 <ADC_ConfigureBoostMode+0x11c>
  16128. 80072d4: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16129. 80072d8: d83c bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16130. 80072da: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16131. 80072de: d01a beq.n 8007316 <ADC_ConfigureBoostMode+0x10a>
  16132. 80072e0: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16133. 80072e4: d836 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16134. 80072e6: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16135. 80072ea: d014 beq.n 8007316 <ADC_ConfigureBoostMode+0x10a>
  16136. 80072ec: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16137. 80072f0: d830 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16138. 80072f2: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16139. 80072f6: d00e beq.n 8007316 <ADC_ConfigureBoostMode+0x10a>
  16140. 80072f8: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16141. 80072fc: d82a bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16142. 80072fe: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16143. 8007302: d008 beq.n 8007316 <ADC_ConfigureBoostMode+0x10a>
  16144. 8007304: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16145. 8007308: d824 bhi.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16146. 800730a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  16147. 800730e: d002 beq.n 8007316 <ADC_ConfigureBoostMode+0x10a>
  16148. 8007310: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  16149. 8007314: d11e bne.n 8007354 <ADC_ConfigureBoostMode+0x148>
  16150. case ADC_CLOCK_ASYNC_DIV4:
  16151. case ADC_CLOCK_ASYNC_DIV6:
  16152. case ADC_CLOCK_ASYNC_DIV8:
  16153. case ADC_CLOCK_ASYNC_DIV10:
  16154. case ADC_CLOCK_ASYNC_DIV12:
  16155. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  16156. 8007316: 687b ldr r3, [r7, #4]
  16157. 8007318: 685b ldr r3, [r3, #4]
  16158. 800731a: 0c9b lsrs r3, r3, #18
  16159. 800731c: 005b lsls r3, r3, #1
  16160. 800731e: 68fa ldr r2, [r7, #12]
  16161. 8007320: fbb2 f3f3 udiv r3, r2, r3
  16162. 8007324: 60fb str r3, [r7, #12]
  16163. break;
  16164. 8007326: e016 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16165. case ADC_CLOCK_ASYNC_DIV16:
  16166. freq /= 16UL;
  16167. 8007328: 68fb ldr r3, [r7, #12]
  16168. 800732a: 091b lsrs r3, r3, #4
  16169. 800732c: 60fb str r3, [r7, #12]
  16170. break;
  16171. 800732e: e012 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16172. case ADC_CLOCK_ASYNC_DIV32:
  16173. freq /= 32UL;
  16174. 8007330: 68fb ldr r3, [r7, #12]
  16175. 8007332: 095b lsrs r3, r3, #5
  16176. 8007334: 60fb str r3, [r7, #12]
  16177. break;
  16178. 8007336: e00e b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16179. case ADC_CLOCK_ASYNC_DIV64:
  16180. freq /= 64UL;
  16181. 8007338: 68fb ldr r3, [r7, #12]
  16182. 800733a: 099b lsrs r3, r3, #6
  16183. 800733c: 60fb str r3, [r7, #12]
  16184. break;
  16185. 800733e: e00a b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16186. case ADC_CLOCK_ASYNC_DIV128:
  16187. freq /= 128UL;
  16188. 8007340: 68fb ldr r3, [r7, #12]
  16189. 8007342: 09db lsrs r3, r3, #7
  16190. 8007344: 60fb str r3, [r7, #12]
  16191. break;
  16192. 8007346: e006 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16193. case ADC_CLOCK_ASYNC_DIV256:
  16194. freq /= 256UL;
  16195. 8007348: 68fb ldr r3, [r7, #12]
  16196. 800734a: 0a1b lsrs r3, r3, #8
  16197. 800734c: 60fb str r3, [r7, #12]
  16198. break;
  16199. 800734e: e002 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16200. break;
  16201. 8007350: bf00 nop
  16202. 8007352: e000 b.n 8007356 <ADC_ConfigureBoostMode+0x14a>
  16203. default:
  16204. break;
  16205. 8007354: bf00 nop
  16206. else /* if(freq > 25000000UL) */
  16207. {
  16208. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16209. }
  16210. #else
  16211. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  16212. 8007356: f7fe fdb1 bl 8005ebc <HAL_GetREVID>
  16213. 800735a: 4603 mov r3, r0
  16214. 800735c: f241 0203 movw r2, #4099 @ 0x1003
  16215. 8007360: 4293 cmp r3, r2
  16216. 8007362: d815 bhi.n 8007390 <ADC_ConfigureBoostMode+0x184>
  16217. {
  16218. if (freq > 20000000UL)
  16219. 8007364: 68fb ldr r3, [r7, #12]
  16220. 8007366: 4a2b ldr r2, [pc, #172] @ (8007414 <ADC_ConfigureBoostMode+0x208>)
  16221. 8007368: 4293 cmp r3, r2
  16222. 800736a: d908 bls.n 800737e <ADC_ConfigureBoostMode+0x172>
  16223. {
  16224. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16225. 800736c: 687b ldr r3, [r7, #4]
  16226. 800736e: 681b ldr r3, [r3, #0]
  16227. 8007370: 689a ldr r2, [r3, #8]
  16228. 8007372: 687b ldr r3, [r7, #4]
  16229. 8007374: 681b ldr r3, [r3, #0]
  16230. 8007376: f442 7280 orr.w r2, r2, #256 @ 0x100
  16231. 800737a: 609a str r2, [r3, #8]
  16232. {
  16233. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16234. }
  16235. }
  16236. #endif /* ADC_VER_V5_3 */
  16237. }
  16238. 800737c: e03e b.n 80073fc <ADC_ConfigureBoostMode+0x1f0>
  16239. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16240. 800737e: 687b ldr r3, [r7, #4]
  16241. 8007380: 681b ldr r3, [r3, #0]
  16242. 8007382: 689a ldr r2, [r3, #8]
  16243. 8007384: 687b ldr r3, [r7, #4]
  16244. 8007386: 681b ldr r3, [r3, #0]
  16245. 8007388: f422 7280 bic.w r2, r2, #256 @ 0x100
  16246. 800738c: 609a str r2, [r3, #8]
  16247. }
  16248. 800738e: e035 b.n 80073fc <ADC_ConfigureBoostMode+0x1f0>
  16249. freq /= 2U; /* divider by 2 for Rev.V */
  16250. 8007390: 68fb ldr r3, [r7, #12]
  16251. 8007392: 085b lsrs r3, r3, #1
  16252. 8007394: 60fb str r3, [r7, #12]
  16253. if (freq <= 6250000UL)
  16254. 8007396: 68fb ldr r3, [r7, #12]
  16255. 8007398: 4a1f ldr r2, [pc, #124] @ (8007418 <ADC_ConfigureBoostMode+0x20c>)
  16256. 800739a: 4293 cmp r3, r2
  16257. 800739c: d808 bhi.n 80073b0 <ADC_ConfigureBoostMode+0x1a4>
  16258. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  16259. 800739e: 687b ldr r3, [r7, #4]
  16260. 80073a0: 681b ldr r3, [r3, #0]
  16261. 80073a2: 689a ldr r2, [r3, #8]
  16262. 80073a4: 687b ldr r3, [r7, #4]
  16263. 80073a6: 681b ldr r3, [r3, #0]
  16264. 80073a8: f422 7240 bic.w r2, r2, #768 @ 0x300
  16265. 80073ac: 609a str r2, [r3, #8]
  16266. }
  16267. 80073ae: e025 b.n 80073fc <ADC_ConfigureBoostMode+0x1f0>
  16268. else if (freq <= 12500000UL)
  16269. 80073b0: 68fb ldr r3, [r7, #12]
  16270. 80073b2: 4a1a ldr r2, [pc, #104] @ (800741c <ADC_ConfigureBoostMode+0x210>)
  16271. 80073b4: 4293 cmp r3, r2
  16272. 80073b6: d80a bhi.n 80073ce <ADC_ConfigureBoostMode+0x1c2>
  16273. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  16274. 80073b8: 687b ldr r3, [r7, #4]
  16275. 80073ba: 681b ldr r3, [r3, #0]
  16276. 80073bc: 689b ldr r3, [r3, #8]
  16277. 80073be: f423 7240 bic.w r2, r3, #768 @ 0x300
  16278. 80073c2: 687b ldr r3, [r7, #4]
  16279. 80073c4: 681b ldr r3, [r3, #0]
  16280. 80073c6: f442 7280 orr.w r2, r2, #256 @ 0x100
  16281. 80073ca: 609a str r2, [r3, #8]
  16282. }
  16283. 80073cc: e016 b.n 80073fc <ADC_ConfigureBoostMode+0x1f0>
  16284. else if (freq <= 25000000UL)
  16285. 80073ce: 68fb ldr r3, [r7, #12]
  16286. 80073d0: 4a13 ldr r2, [pc, #76] @ (8007420 <ADC_ConfigureBoostMode+0x214>)
  16287. 80073d2: 4293 cmp r3, r2
  16288. 80073d4: d80a bhi.n 80073ec <ADC_ConfigureBoostMode+0x1e0>
  16289. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  16290. 80073d6: 687b ldr r3, [r7, #4]
  16291. 80073d8: 681b ldr r3, [r3, #0]
  16292. 80073da: 689b ldr r3, [r3, #8]
  16293. 80073dc: f423 7240 bic.w r2, r3, #768 @ 0x300
  16294. 80073e0: 687b ldr r3, [r7, #4]
  16295. 80073e2: 681b ldr r3, [r3, #0]
  16296. 80073e4: f442 7200 orr.w r2, r2, #512 @ 0x200
  16297. 80073e8: 609a str r2, [r3, #8]
  16298. }
  16299. 80073ea: e007 b.n 80073fc <ADC_ConfigureBoostMode+0x1f0>
  16300. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16301. 80073ec: 687b ldr r3, [r7, #4]
  16302. 80073ee: 681b ldr r3, [r3, #0]
  16303. 80073f0: 689a ldr r2, [r3, #8]
  16304. 80073f2: 687b ldr r3, [r7, #4]
  16305. 80073f4: 681b ldr r3, [r3, #0]
  16306. 80073f6: f442 7240 orr.w r2, r2, #768 @ 0x300
  16307. 80073fa: 609a str r2, [r3, #8]
  16308. }
  16309. 80073fc: bf00 nop
  16310. 80073fe: 3710 adds r7, #16
  16311. 8007400: 46bd mov sp, r7
  16312. 8007402: bd80 pop {r7, pc}
  16313. 8007404: 40022000 .word 0x40022000
  16314. 8007408: 40022100 .word 0x40022100
  16315. 800740c: 40022300 .word 0x40022300
  16316. 8007410: 58026300 .word 0x58026300
  16317. 8007414: 01312d00 .word 0x01312d00
  16318. 8007418: 005f5e10 .word 0x005f5e10
  16319. 800741c: 00bebc20 .word 0x00bebc20
  16320. 8007420: 017d7840 .word 0x017d7840
  16321. 08007424 <LL_ADC_IsEnabled>:
  16322. {
  16323. 8007424: b480 push {r7}
  16324. 8007426: b083 sub sp, #12
  16325. 8007428: af00 add r7, sp, #0
  16326. 800742a: 6078 str r0, [r7, #4]
  16327. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  16328. 800742c: 687b ldr r3, [r7, #4]
  16329. 800742e: 689b ldr r3, [r3, #8]
  16330. 8007430: f003 0301 and.w r3, r3, #1
  16331. 8007434: 2b01 cmp r3, #1
  16332. 8007436: d101 bne.n 800743c <LL_ADC_IsEnabled+0x18>
  16333. 8007438: 2301 movs r3, #1
  16334. 800743a: e000 b.n 800743e <LL_ADC_IsEnabled+0x1a>
  16335. 800743c: 2300 movs r3, #0
  16336. }
  16337. 800743e: 4618 mov r0, r3
  16338. 8007440: 370c adds r7, #12
  16339. 8007442: 46bd mov sp, r7
  16340. 8007444: f85d 7b04 ldr.w r7, [sp], #4
  16341. 8007448: 4770 bx lr
  16342. ...
  16343. 0800744c <LL_ADC_StartCalibration>:
  16344. {
  16345. 800744c: b480 push {r7}
  16346. 800744e: b085 sub sp, #20
  16347. 8007450: af00 add r7, sp, #0
  16348. 8007452: 60f8 str r0, [r7, #12]
  16349. 8007454: 60b9 str r1, [r7, #8]
  16350. 8007456: 607a str r2, [r7, #4]
  16351. MODIFY_REG(ADCx->CR,
  16352. 8007458: 68fb ldr r3, [r7, #12]
  16353. 800745a: 689a ldr r2, [r3, #8]
  16354. 800745c: 4b09 ldr r3, [pc, #36] @ (8007484 <LL_ADC_StartCalibration+0x38>)
  16355. 800745e: 4013 ands r3, r2
  16356. 8007460: 68ba ldr r2, [r7, #8]
  16357. 8007462: f402 3180 and.w r1, r2, #65536 @ 0x10000
  16358. 8007466: 687a ldr r2, [r7, #4]
  16359. 8007468: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  16360. 800746c: 430a orrs r2, r1
  16361. 800746e: 4313 orrs r3, r2
  16362. 8007470: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  16363. 8007474: 68fb ldr r3, [r7, #12]
  16364. 8007476: 609a str r2, [r3, #8]
  16365. }
  16366. 8007478: bf00 nop
  16367. 800747a: 3714 adds r7, #20
  16368. 800747c: 46bd mov sp, r7
  16369. 800747e: f85d 7b04 ldr.w r7, [sp], #4
  16370. 8007482: 4770 bx lr
  16371. 8007484: 3ffeffc0 .word 0x3ffeffc0
  16372. 08007488 <LL_ADC_IsCalibrationOnGoing>:
  16373. {
  16374. 8007488: b480 push {r7}
  16375. 800748a: b083 sub sp, #12
  16376. 800748c: af00 add r7, sp, #0
  16377. 800748e: 6078 str r0, [r7, #4]
  16378. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  16379. 8007490: 687b ldr r3, [r7, #4]
  16380. 8007492: 689b ldr r3, [r3, #8]
  16381. 8007494: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16382. 8007498: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16383. 800749c: d101 bne.n 80074a2 <LL_ADC_IsCalibrationOnGoing+0x1a>
  16384. 800749e: 2301 movs r3, #1
  16385. 80074a0: e000 b.n 80074a4 <LL_ADC_IsCalibrationOnGoing+0x1c>
  16386. 80074a2: 2300 movs r3, #0
  16387. }
  16388. 80074a4: 4618 mov r0, r3
  16389. 80074a6: 370c adds r7, #12
  16390. 80074a8: 46bd mov sp, r7
  16391. 80074aa: f85d 7b04 ldr.w r7, [sp], #4
  16392. 80074ae: 4770 bx lr
  16393. 080074b0 <LL_ADC_REG_IsConversionOngoing>:
  16394. {
  16395. 80074b0: b480 push {r7}
  16396. 80074b2: b083 sub sp, #12
  16397. 80074b4: af00 add r7, sp, #0
  16398. 80074b6: 6078 str r0, [r7, #4]
  16399. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  16400. 80074b8: 687b ldr r3, [r7, #4]
  16401. 80074ba: 689b ldr r3, [r3, #8]
  16402. 80074bc: f003 0304 and.w r3, r3, #4
  16403. 80074c0: 2b04 cmp r3, #4
  16404. 80074c2: d101 bne.n 80074c8 <LL_ADC_REG_IsConversionOngoing+0x18>
  16405. 80074c4: 2301 movs r3, #1
  16406. 80074c6: e000 b.n 80074ca <LL_ADC_REG_IsConversionOngoing+0x1a>
  16407. 80074c8: 2300 movs r3, #0
  16408. }
  16409. 80074ca: 4618 mov r0, r3
  16410. 80074cc: 370c adds r7, #12
  16411. 80074ce: 46bd mov sp, r7
  16412. 80074d0: f85d 7b04 ldr.w r7, [sp], #4
  16413. 80074d4: 4770 bx lr
  16414. ...
  16415. 080074d8 <HAL_ADCEx_Calibration_Start>:
  16416. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  16417. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  16418. * @retval HAL status
  16419. */
  16420. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  16421. {
  16422. 80074d8: b580 push {r7, lr}
  16423. 80074da: b086 sub sp, #24
  16424. 80074dc: af00 add r7, sp, #0
  16425. 80074de: 60f8 str r0, [r7, #12]
  16426. 80074e0: 60b9 str r1, [r7, #8]
  16427. 80074e2: 607a str r2, [r7, #4]
  16428. HAL_StatusTypeDef tmp_hal_status;
  16429. __IO uint32_t wait_loop_index = 0UL;
  16430. 80074e4: 2300 movs r3, #0
  16431. 80074e6: 613b str r3, [r7, #16]
  16432. /* Check the parameters */
  16433. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  16434. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  16435. /* Process locked */
  16436. __HAL_LOCK(hadc);
  16437. 80074e8: 68fb ldr r3, [r7, #12]
  16438. 80074ea: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16439. 80074ee: 2b01 cmp r3, #1
  16440. 80074f0: d101 bne.n 80074f6 <HAL_ADCEx_Calibration_Start+0x1e>
  16441. 80074f2: 2302 movs r3, #2
  16442. 80074f4: e04c b.n 8007590 <HAL_ADCEx_Calibration_Start+0xb8>
  16443. 80074f6: 68fb ldr r3, [r7, #12]
  16444. 80074f8: 2201 movs r2, #1
  16445. 80074fa: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16446. /* Calibration prerequisite: ADC must be disabled. */
  16447. /* Disable the ADC (if not already disabled) */
  16448. tmp_hal_status = ADC_Disable(hadc);
  16449. 80074fe: 68f8 ldr r0, [r7, #12]
  16450. 8007500: f7ff fd90 bl 8007024 <ADC_Disable>
  16451. 8007504: 4603 mov r3, r0
  16452. 8007506: 75fb strb r3, [r7, #23]
  16453. /* Check if ADC is effectively disabled */
  16454. if (tmp_hal_status == HAL_OK)
  16455. 8007508: 7dfb ldrb r3, [r7, #23]
  16456. 800750a: 2b00 cmp r3, #0
  16457. 800750c: d135 bne.n 800757a <HAL_ADCEx_Calibration_Start+0xa2>
  16458. {
  16459. /* Set ADC state */
  16460. ADC_STATE_CLR_SET(hadc->State,
  16461. 800750e: 68fb ldr r3, [r7, #12]
  16462. 8007510: 6d5a ldr r2, [r3, #84] @ 0x54
  16463. 8007512: 4b21 ldr r3, [pc, #132] @ (8007598 <HAL_ADCEx_Calibration_Start+0xc0>)
  16464. 8007514: 4013 ands r3, r2
  16465. 8007516: f043 0202 orr.w r2, r3, #2
  16466. 800751a: 68fb ldr r3, [r7, #12]
  16467. 800751c: 655a str r2, [r3, #84] @ 0x54
  16468. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  16469. HAL_ADC_STATE_BUSY_INTERNAL);
  16470. /* Start ADC calibration in mode single-ended or differential */
  16471. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  16472. 800751e: 68fb ldr r3, [r7, #12]
  16473. 8007520: 681b ldr r3, [r3, #0]
  16474. 8007522: 687a ldr r2, [r7, #4]
  16475. 8007524: 68b9 ldr r1, [r7, #8]
  16476. 8007526: 4618 mov r0, r3
  16477. 8007528: f7ff ff90 bl 800744c <LL_ADC_StartCalibration>
  16478. /* Wait for calibration completion */
  16479. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16480. 800752c: e014 b.n 8007558 <HAL_ADCEx_Calibration_Start+0x80>
  16481. {
  16482. wait_loop_index++;
  16483. 800752e: 693b ldr r3, [r7, #16]
  16484. 8007530: 3301 adds r3, #1
  16485. 8007532: 613b str r3, [r7, #16]
  16486. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  16487. 8007534: 693b ldr r3, [r7, #16]
  16488. 8007536: 4a19 ldr r2, [pc, #100] @ (800759c <HAL_ADCEx_Calibration_Start+0xc4>)
  16489. 8007538: 4293 cmp r3, r2
  16490. 800753a: d30d bcc.n 8007558 <HAL_ADCEx_Calibration_Start+0x80>
  16491. {
  16492. /* Update ADC state machine to error */
  16493. ADC_STATE_CLR_SET(hadc->State,
  16494. 800753c: 68fb ldr r3, [r7, #12]
  16495. 800753e: 6d5b ldr r3, [r3, #84] @ 0x54
  16496. 8007540: f023 0312 bic.w r3, r3, #18
  16497. 8007544: f043 0210 orr.w r2, r3, #16
  16498. 8007548: 68fb ldr r3, [r7, #12]
  16499. 800754a: 655a str r2, [r3, #84] @ 0x54
  16500. HAL_ADC_STATE_BUSY_INTERNAL,
  16501. HAL_ADC_STATE_ERROR_INTERNAL);
  16502. /* Process unlocked */
  16503. __HAL_UNLOCK(hadc);
  16504. 800754c: 68fb ldr r3, [r7, #12]
  16505. 800754e: 2200 movs r2, #0
  16506. 8007550: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16507. return HAL_ERROR;
  16508. 8007554: 2301 movs r3, #1
  16509. 8007556: e01b b.n 8007590 <HAL_ADCEx_Calibration_Start+0xb8>
  16510. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16511. 8007558: 68fb ldr r3, [r7, #12]
  16512. 800755a: 681b ldr r3, [r3, #0]
  16513. 800755c: 4618 mov r0, r3
  16514. 800755e: f7ff ff93 bl 8007488 <LL_ADC_IsCalibrationOnGoing>
  16515. 8007562: 4603 mov r3, r0
  16516. 8007564: 2b00 cmp r3, #0
  16517. 8007566: d1e2 bne.n 800752e <HAL_ADCEx_Calibration_Start+0x56>
  16518. }
  16519. }
  16520. /* Set ADC state */
  16521. ADC_STATE_CLR_SET(hadc->State,
  16522. 8007568: 68fb ldr r3, [r7, #12]
  16523. 800756a: 6d5b ldr r3, [r3, #84] @ 0x54
  16524. 800756c: f023 0303 bic.w r3, r3, #3
  16525. 8007570: f043 0201 orr.w r2, r3, #1
  16526. 8007574: 68fb ldr r3, [r7, #12]
  16527. 8007576: 655a str r2, [r3, #84] @ 0x54
  16528. 8007578: e005 b.n 8007586 <HAL_ADCEx_Calibration_Start+0xae>
  16529. HAL_ADC_STATE_BUSY_INTERNAL,
  16530. HAL_ADC_STATE_READY);
  16531. }
  16532. else
  16533. {
  16534. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  16535. 800757a: 68fb ldr r3, [r7, #12]
  16536. 800757c: 6d5b ldr r3, [r3, #84] @ 0x54
  16537. 800757e: f043 0210 orr.w r2, r3, #16
  16538. 8007582: 68fb ldr r3, [r7, #12]
  16539. 8007584: 655a str r2, [r3, #84] @ 0x54
  16540. /* Note: No need to update variable "tmp_hal_status" here: already set */
  16541. /* to state "HAL_ERROR" by function disabling the ADC. */
  16542. }
  16543. /* Process unlocked */
  16544. __HAL_UNLOCK(hadc);
  16545. 8007586: 68fb ldr r3, [r7, #12]
  16546. 8007588: 2200 movs r2, #0
  16547. 800758a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16548. /* Return function status */
  16549. return tmp_hal_status;
  16550. 800758e: 7dfb ldrb r3, [r7, #23]
  16551. }
  16552. 8007590: 4618 mov r0, r3
  16553. 8007592: 3718 adds r7, #24
  16554. 8007594: 46bd mov sp, r7
  16555. 8007596: bd80 pop {r7, pc}
  16556. 8007598: ffffeefd .word 0xffffeefd
  16557. 800759c: 25c3f800 .word 0x25c3f800
  16558. 080075a0 <HAL_ADCEx_MultiModeConfigChannel>:
  16559. * @param hadc Master ADC handle
  16560. * @param multimode Structure of ADC multimode configuration
  16561. * @retval HAL status
  16562. */
  16563. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  16564. {
  16565. 80075a0: b590 push {r4, r7, lr}
  16566. 80075a2: b09f sub sp, #124 @ 0x7c
  16567. 80075a4: af00 add r7, sp, #0
  16568. 80075a6: 6078 str r0, [r7, #4]
  16569. 80075a8: 6039 str r1, [r7, #0]
  16570. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  16571. 80075aa: 2300 movs r3, #0
  16572. 80075ac: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16573. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  16574. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  16575. }
  16576. /* Process locked */
  16577. __HAL_LOCK(hadc);
  16578. 80075b0: 687b ldr r3, [r7, #4]
  16579. 80075b2: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16580. 80075b6: 2b01 cmp r3, #1
  16581. 80075b8: d101 bne.n 80075be <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  16582. 80075ba: 2302 movs r3, #2
  16583. 80075bc: e0be b.n 800773c <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16584. 80075be: 687b ldr r3, [r7, #4]
  16585. 80075c0: 2201 movs r2, #1
  16586. 80075c2: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16587. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  16588. 80075c6: 2300 movs r3, #0
  16589. 80075c8: 65fb str r3, [r7, #92] @ 0x5c
  16590. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  16591. 80075ca: 2300 movs r3, #0
  16592. 80075cc: 663b str r3, [r7, #96] @ 0x60
  16593. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  16594. 80075ce: 687b ldr r3, [r7, #4]
  16595. 80075d0: 681b ldr r3, [r3, #0]
  16596. 80075d2: 4a5c ldr r2, [pc, #368] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16597. 80075d4: 4293 cmp r3, r2
  16598. 80075d6: d102 bne.n 80075de <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  16599. 80075d8: 4b5b ldr r3, [pc, #364] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16600. 80075da: 60bb str r3, [r7, #8]
  16601. 80075dc: e001 b.n 80075e2 <HAL_ADCEx_MultiModeConfigChannel+0x42>
  16602. 80075de: 2300 movs r3, #0
  16603. 80075e0: 60bb str r3, [r7, #8]
  16604. if (tmphadcSlave.Instance == NULL)
  16605. 80075e2: 68bb ldr r3, [r7, #8]
  16606. 80075e4: 2b00 cmp r3, #0
  16607. 80075e6: d10b bne.n 8007600 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  16608. {
  16609. /* Update ADC state machine to error */
  16610. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16611. 80075e8: 687b ldr r3, [r7, #4]
  16612. 80075ea: 6d5b ldr r3, [r3, #84] @ 0x54
  16613. 80075ec: f043 0220 orr.w r2, r3, #32
  16614. 80075f0: 687b ldr r3, [r7, #4]
  16615. 80075f2: 655a str r2, [r3, #84] @ 0x54
  16616. /* Process unlocked */
  16617. __HAL_UNLOCK(hadc);
  16618. 80075f4: 687b ldr r3, [r7, #4]
  16619. 80075f6: 2200 movs r2, #0
  16620. 80075f8: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16621. return HAL_ERROR;
  16622. 80075fc: 2301 movs r3, #1
  16623. 80075fe: e09d b.n 800773c <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16624. /* Parameters update conditioned to ADC state: */
  16625. /* Parameters that can be updated when ADC is disabled or enabled without */
  16626. /* conversion on going on regular group: */
  16627. /* - Multimode DATA Format configuration */
  16628. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  16629. 8007600: 68bb ldr r3, [r7, #8]
  16630. 8007602: 4618 mov r0, r3
  16631. 8007604: f7ff ff54 bl 80074b0 <LL_ADC_REG_IsConversionOngoing>
  16632. 8007608: 6738 str r0, [r7, #112] @ 0x70
  16633. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  16634. 800760a: 687b ldr r3, [r7, #4]
  16635. 800760c: 681b ldr r3, [r3, #0]
  16636. 800760e: 4618 mov r0, r3
  16637. 8007610: f7ff ff4e bl 80074b0 <LL_ADC_REG_IsConversionOngoing>
  16638. 8007614: 4603 mov r3, r0
  16639. 8007616: 2b00 cmp r3, #0
  16640. 8007618: d17f bne.n 800771a <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16641. && (tmphadcSlave_conversion_on_going == 0UL))
  16642. 800761a: 6f3b ldr r3, [r7, #112] @ 0x70
  16643. 800761c: 2b00 cmp r3, #0
  16644. 800761e: d17c bne.n 800771a <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16645. {
  16646. /* Pointer to the common control register */
  16647. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16648. 8007620: 687b ldr r3, [r7, #4]
  16649. 8007622: 681b ldr r3, [r3, #0]
  16650. 8007624: 4a47 ldr r2, [pc, #284] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16651. 8007626: 4293 cmp r3, r2
  16652. 8007628: d004 beq.n 8007634 <HAL_ADCEx_MultiModeConfigChannel+0x94>
  16653. 800762a: 687b ldr r3, [r7, #4]
  16654. 800762c: 681b ldr r3, [r3, #0]
  16655. 800762e: 4a46 ldr r2, [pc, #280] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16656. 8007630: 4293 cmp r3, r2
  16657. 8007632: d101 bne.n 8007638 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  16658. 8007634: 4b45 ldr r3, [pc, #276] @ (800774c <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  16659. 8007636: e000 b.n 800763a <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  16660. 8007638: 4b45 ldr r3, [pc, #276] @ (8007750 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  16661. 800763a: 66fb str r3, [r7, #108] @ 0x6c
  16662. /* If multimode is selected, configure all multimode parameters. */
  16663. /* Otherwise, reset multimode parameters (can be used in case of */
  16664. /* transition from multimode to independent mode). */
  16665. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16666. 800763c: 683b ldr r3, [r7, #0]
  16667. 800763e: 681b ldr r3, [r3, #0]
  16668. 8007640: 2b00 cmp r3, #0
  16669. 8007642: d039 beq.n 80076b8 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  16670. {
  16671. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  16672. 8007644: 6efb ldr r3, [r7, #108] @ 0x6c
  16673. 8007646: 689b ldr r3, [r3, #8]
  16674. 8007648: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16675. 800764c: 683b ldr r3, [r7, #0]
  16676. 800764e: 685b ldr r3, [r3, #4]
  16677. 8007650: 431a orrs r2, r3
  16678. 8007652: 6efb ldr r3, [r7, #108] @ 0x6c
  16679. 8007654: 609a str r2, [r3, #8]
  16680. /* from 1 to 8 clock cycles for 12 bits */
  16681. /* from 1 to 6 clock cycles for 10 and 8 bits */
  16682. /* If a higher delay is selected, it will be clipped to maximum delay */
  16683. /* range */
  16684. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16685. 8007656: 687b ldr r3, [r7, #4]
  16686. 8007658: 681b ldr r3, [r3, #0]
  16687. 800765a: 4a3a ldr r2, [pc, #232] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16688. 800765c: 4293 cmp r3, r2
  16689. 800765e: d004 beq.n 800766a <HAL_ADCEx_MultiModeConfigChannel+0xca>
  16690. 8007660: 687b ldr r3, [r7, #4]
  16691. 8007662: 681b ldr r3, [r3, #0]
  16692. 8007664: 4a38 ldr r2, [pc, #224] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16693. 8007666: 4293 cmp r3, r2
  16694. 8007668: d10e bne.n 8007688 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  16695. 800766a: 4836 ldr r0, [pc, #216] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16696. 800766c: f7ff feda bl 8007424 <LL_ADC_IsEnabled>
  16697. 8007670: 4604 mov r4, r0
  16698. 8007672: 4835 ldr r0, [pc, #212] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16699. 8007674: f7ff fed6 bl 8007424 <LL_ADC_IsEnabled>
  16700. 8007678: 4603 mov r3, r0
  16701. 800767a: 4323 orrs r3, r4
  16702. 800767c: 2b00 cmp r3, #0
  16703. 800767e: bf0c ite eq
  16704. 8007680: 2301 moveq r3, #1
  16705. 8007682: 2300 movne r3, #0
  16706. 8007684: b2db uxtb r3, r3
  16707. 8007686: e008 b.n 800769a <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  16708. 8007688: 4832 ldr r0, [pc, #200] @ (8007754 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16709. 800768a: f7ff fecb bl 8007424 <LL_ADC_IsEnabled>
  16710. 800768e: 4603 mov r3, r0
  16711. 8007690: 2b00 cmp r3, #0
  16712. 8007692: bf0c ite eq
  16713. 8007694: 2301 moveq r3, #1
  16714. 8007696: 2300 movne r3, #0
  16715. 8007698: b2db uxtb r3, r3
  16716. 800769a: 2b00 cmp r3, #0
  16717. 800769c: d047 beq.n 800772e <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16718. {
  16719. MODIFY_REG(tmpADC_Common->CCR,
  16720. 800769e: 6efb ldr r3, [r7, #108] @ 0x6c
  16721. 80076a0: 689a ldr r2, [r3, #8]
  16722. 80076a2: 4b2d ldr r3, [pc, #180] @ (8007758 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16723. 80076a4: 4013 ands r3, r2
  16724. 80076a6: 683a ldr r2, [r7, #0]
  16725. 80076a8: 6811 ldr r1, [r2, #0]
  16726. 80076aa: 683a ldr r2, [r7, #0]
  16727. 80076ac: 6892 ldr r2, [r2, #8]
  16728. 80076ae: 430a orrs r2, r1
  16729. 80076b0: 431a orrs r2, r3
  16730. 80076b2: 6efb ldr r3, [r7, #108] @ 0x6c
  16731. 80076b4: 609a str r2, [r3, #8]
  16732. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16733. 80076b6: e03a b.n 800772e <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16734. );
  16735. }
  16736. }
  16737. else /* ADC_MODE_INDEPENDENT */
  16738. {
  16739. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  16740. 80076b8: 6efb ldr r3, [r7, #108] @ 0x6c
  16741. 80076ba: 689b ldr r3, [r3, #8]
  16742. 80076bc: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16743. 80076c0: 6efb ldr r3, [r7, #108] @ 0x6c
  16744. 80076c2: 609a str r2, [r3, #8]
  16745. /* Parameters that can be updated only when ADC is disabled: */
  16746. /* - Multimode mode selection */
  16747. /* - Multimode delay */
  16748. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16749. 80076c4: 687b ldr r3, [r7, #4]
  16750. 80076c6: 681b ldr r3, [r3, #0]
  16751. 80076c8: 4a1e ldr r2, [pc, #120] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16752. 80076ca: 4293 cmp r3, r2
  16753. 80076cc: d004 beq.n 80076d8 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  16754. 80076ce: 687b ldr r3, [r7, #4]
  16755. 80076d0: 681b ldr r3, [r3, #0]
  16756. 80076d2: 4a1d ldr r2, [pc, #116] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16757. 80076d4: 4293 cmp r3, r2
  16758. 80076d6: d10e bne.n 80076f6 <HAL_ADCEx_MultiModeConfigChannel+0x156>
  16759. 80076d8: 481a ldr r0, [pc, #104] @ (8007744 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16760. 80076da: f7ff fea3 bl 8007424 <LL_ADC_IsEnabled>
  16761. 80076de: 4604 mov r4, r0
  16762. 80076e0: 4819 ldr r0, [pc, #100] @ (8007748 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16763. 80076e2: f7ff fe9f bl 8007424 <LL_ADC_IsEnabled>
  16764. 80076e6: 4603 mov r3, r0
  16765. 80076e8: 4323 orrs r3, r4
  16766. 80076ea: 2b00 cmp r3, #0
  16767. 80076ec: bf0c ite eq
  16768. 80076ee: 2301 moveq r3, #1
  16769. 80076f0: 2300 movne r3, #0
  16770. 80076f2: b2db uxtb r3, r3
  16771. 80076f4: e008 b.n 8007708 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  16772. 80076f6: 4817 ldr r0, [pc, #92] @ (8007754 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16773. 80076f8: f7ff fe94 bl 8007424 <LL_ADC_IsEnabled>
  16774. 80076fc: 4603 mov r3, r0
  16775. 80076fe: 2b00 cmp r3, #0
  16776. 8007700: bf0c ite eq
  16777. 8007702: 2301 moveq r3, #1
  16778. 8007704: 2300 movne r3, #0
  16779. 8007706: b2db uxtb r3, r3
  16780. 8007708: 2b00 cmp r3, #0
  16781. 800770a: d010 beq.n 800772e <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16782. {
  16783. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  16784. 800770c: 6efb ldr r3, [r7, #108] @ 0x6c
  16785. 800770e: 689a ldr r2, [r3, #8]
  16786. 8007710: 4b11 ldr r3, [pc, #68] @ (8007758 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16787. 8007712: 4013 ands r3, r2
  16788. 8007714: 6efa ldr r2, [r7, #108] @ 0x6c
  16789. 8007716: 6093 str r3, [r2, #8]
  16790. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16791. 8007718: e009 b.n 800772e <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16792. /* If one of the ADC sharing the same common group is enabled, no update */
  16793. /* could be done on neither of the multimode structure parameters. */
  16794. else
  16795. {
  16796. /* Update ADC state machine to error */
  16797. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16798. 800771a: 687b ldr r3, [r7, #4]
  16799. 800771c: 6d5b ldr r3, [r3, #84] @ 0x54
  16800. 800771e: f043 0220 orr.w r2, r3, #32
  16801. 8007722: 687b ldr r3, [r7, #4]
  16802. 8007724: 655a str r2, [r3, #84] @ 0x54
  16803. tmp_hal_status = HAL_ERROR;
  16804. 8007726: 2301 movs r3, #1
  16805. 8007728: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16806. 800772c: e000 b.n 8007730 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  16807. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16808. 800772e: bf00 nop
  16809. }
  16810. /* Process unlocked */
  16811. __HAL_UNLOCK(hadc);
  16812. 8007730: 687b ldr r3, [r7, #4]
  16813. 8007732: 2200 movs r2, #0
  16814. 8007734: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16815. /* Return function status */
  16816. return tmp_hal_status;
  16817. 8007738: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  16818. }
  16819. 800773c: 4618 mov r0, r3
  16820. 800773e: 377c adds r7, #124 @ 0x7c
  16821. 8007740: 46bd mov sp, r7
  16822. 8007742: bd90 pop {r4, r7, pc}
  16823. 8007744: 40022000 .word 0x40022000
  16824. 8007748: 40022100 .word 0x40022100
  16825. 800774c: 40022300 .word 0x40022300
  16826. 8007750: 58026300 .word 0x58026300
  16827. 8007754: 58026000 .word 0x58026000
  16828. 8007758: fffff0e0 .word 0xfffff0e0
  16829. 0800775c <HAL_COMP_Init>:
  16830. * To unlock the configuration, perform a system reset.
  16831. * @param hcomp COMP handle
  16832. * @retval HAL status
  16833. */
  16834. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  16835. {
  16836. 800775c: b580 push {r7, lr}
  16837. 800775e: b088 sub sp, #32
  16838. 8007760: af00 add r7, sp, #0
  16839. 8007762: 6078 str r0, [r7, #4]
  16840. uint32_t tmp_csr ;
  16841. uint32_t exti_line ;
  16842. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  16843. __IO uint32_t wait_loop_index = 0UL;
  16844. 8007764: 2300 movs r3, #0
  16845. 8007766: 60fb str r3, [r7, #12]
  16846. HAL_StatusTypeDef status = HAL_OK;
  16847. 8007768: 2300 movs r3, #0
  16848. 800776a: 77fb strb r3, [r7, #31]
  16849. /* Check the COMP handle allocation and lock status */
  16850. if(hcomp == NULL)
  16851. 800776c: 687b ldr r3, [r7, #4]
  16852. 800776e: 2b00 cmp r3, #0
  16853. 8007770: d102 bne.n 8007778 <HAL_COMP_Init+0x1c>
  16854. {
  16855. status = HAL_ERROR;
  16856. 8007772: 2301 movs r3, #1
  16857. 8007774: 77fb strb r3, [r7, #31]
  16858. 8007776: e10e b.n 8007996 <HAL_COMP_Init+0x23a>
  16859. }
  16860. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16861. 8007778: 687b ldr r3, [r7, #4]
  16862. 800777a: 681b ldr r3, [r3, #0]
  16863. 800777c: 681b ldr r3, [r3, #0]
  16864. 800777e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16865. 8007782: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16866. 8007786: d102 bne.n 800778e <HAL_COMP_Init+0x32>
  16867. {
  16868. status = HAL_ERROR;
  16869. 8007788: 2301 movs r3, #1
  16870. 800778a: 77fb strb r3, [r7, #31]
  16871. 800778c: e103 b.n 8007996 <HAL_COMP_Init+0x23a>
  16872. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  16873. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  16874. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  16875. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  16876. if(hcomp->State == HAL_COMP_STATE_RESET)
  16877. 800778e: 687b ldr r3, [r7, #4]
  16878. 8007790: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16879. 8007794: b2db uxtb r3, r3
  16880. 8007796: 2b00 cmp r3, #0
  16881. 8007798: d109 bne.n 80077ae <HAL_COMP_Init+0x52>
  16882. {
  16883. /* Allocate lock resource and initialize it */
  16884. hcomp->Lock = HAL_UNLOCKED;
  16885. 800779a: 687b ldr r3, [r7, #4]
  16886. 800779c: 2200 movs r2, #0
  16887. 800779e: f883 2024 strb.w r2, [r3, #36] @ 0x24
  16888. /* Set COMP error code to none */
  16889. COMP_CLEAR_ERRORCODE(hcomp);
  16890. 80077a2: 687b ldr r3, [r7, #4]
  16891. 80077a4: 2200 movs r2, #0
  16892. 80077a6: 629a str r2, [r3, #40] @ 0x28
  16893. /* Init the low level hardware */
  16894. hcomp->MspInitCallback(hcomp);
  16895. #else
  16896. /* Init the low level hardware */
  16897. HAL_COMP_MspInit(hcomp);
  16898. 80077a8: 6878 ldr r0, [r7, #4]
  16899. 80077aa: f7fc fca9 bl 8004100 <HAL_COMP_MspInit>
  16900. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  16901. }
  16902. /* Memorize voltage scaler state before initialization */
  16903. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  16904. 80077ae: 687b ldr r3, [r7, #4]
  16905. 80077b0: 681b ldr r3, [r3, #0]
  16906. 80077b2: 681b ldr r3, [r3, #0]
  16907. 80077b4: f003 0304 and.w r3, r3, #4
  16908. 80077b8: 61bb str r3, [r7, #24]
  16909. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  16910. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  16911. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  16912. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  16913. tmp_csr = (hcomp->Init.InvertingInput | \
  16914. 80077ba: 687b ldr r3, [r7, #4]
  16915. 80077bc: 691a ldr r2, [r3, #16]
  16916. hcomp->Init.NonInvertingInput | \
  16917. 80077be: 687b ldr r3, [r7, #4]
  16918. 80077c0: 68db ldr r3, [r3, #12]
  16919. tmp_csr = (hcomp->Init.InvertingInput | \
  16920. 80077c2: 431a orrs r2, r3
  16921. hcomp->Init.BlankingSrce | \
  16922. 80077c4: 687b ldr r3, [r7, #4]
  16923. 80077c6: 69db ldr r3, [r3, #28]
  16924. hcomp->Init.NonInvertingInput | \
  16925. 80077c8: 431a orrs r2, r3
  16926. hcomp->Init.Hysteresis | \
  16927. 80077ca: 687b ldr r3, [r7, #4]
  16928. 80077cc: 695b ldr r3, [r3, #20]
  16929. hcomp->Init.BlankingSrce | \
  16930. 80077ce: 431a orrs r2, r3
  16931. hcomp->Init.OutputPol | \
  16932. 80077d0: 687b ldr r3, [r7, #4]
  16933. 80077d2: 699b ldr r3, [r3, #24]
  16934. hcomp->Init.Hysteresis | \
  16935. 80077d4: 431a orrs r2, r3
  16936. hcomp->Init.Mode );
  16937. 80077d6: 687b ldr r3, [r7, #4]
  16938. 80077d8: 689b ldr r3, [r3, #8]
  16939. tmp_csr = (hcomp->Init.InvertingInput | \
  16940. 80077da: 4313 orrs r3, r2
  16941. 80077dc: 617b str r3, [r7, #20]
  16942. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  16943. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  16944. tmp_csr
  16945. );
  16946. #else
  16947. MODIFY_REG(hcomp->Instance->CFGR,
  16948. 80077de: 687b ldr r3, [r7, #4]
  16949. 80077e0: 681b ldr r3, [r3, #0]
  16950. 80077e2: 681a ldr r2, [r3, #0]
  16951. 80077e4: 4b6e ldr r3, [pc, #440] @ (80079a0 <HAL_COMP_Init+0x244>)
  16952. 80077e6: 4013 ands r3, r2
  16953. 80077e8: 687a ldr r2, [r7, #4]
  16954. 80077ea: 6812 ldr r2, [r2, #0]
  16955. 80077ec: 6979 ldr r1, [r7, #20]
  16956. 80077ee: 430b orrs r3, r1
  16957. 80077f0: 6013 str r3, [r2, #0]
  16958. #endif
  16959. /* Set window mode */
  16960. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  16961. /* instances. Therefore, this function can update another COMP */
  16962. /* instance that the one currently selected. */
  16963. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  16964. 80077f2: 687b ldr r3, [r7, #4]
  16965. 80077f4: 685b ldr r3, [r3, #4]
  16966. 80077f6: 2b10 cmp r3, #16
  16967. 80077f8: d108 bne.n 800780c <HAL_COMP_Init+0xb0>
  16968. {
  16969. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16970. 80077fa: 687b ldr r3, [r7, #4]
  16971. 80077fc: 681b ldr r3, [r3, #0]
  16972. 80077fe: 681a ldr r2, [r3, #0]
  16973. 8007800: 687b ldr r3, [r7, #4]
  16974. 8007802: 681b ldr r3, [r3, #0]
  16975. 8007804: f042 0210 orr.w r2, r2, #16
  16976. 8007808: 601a str r2, [r3, #0]
  16977. 800780a: e007 b.n 800781c <HAL_COMP_Init+0xc0>
  16978. }
  16979. else
  16980. {
  16981. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16982. 800780c: 687b ldr r3, [r7, #4]
  16983. 800780e: 681b ldr r3, [r3, #0]
  16984. 8007810: 681a ldr r2, [r3, #0]
  16985. 8007812: 687b ldr r3, [r7, #4]
  16986. 8007814: 681b ldr r3, [r3, #0]
  16987. 8007816: f022 0210 bic.w r2, r2, #16
  16988. 800781a: 601a str r2, [r3, #0]
  16989. }
  16990. /* Delay for COMP scaler bridge voltage stabilization */
  16991. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  16992. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  16993. 800781c: 687b ldr r3, [r7, #4]
  16994. 800781e: 681b ldr r3, [r3, #0]
  16995. 8007820: 681b ldr r3, [r3, #0]
  16996. 8007822: f003 0304 and.w r3, r3, #4
  16997. 8007826: 2b00 cmp r3, #0
  16998. 8007828: d016 beq.n 8007858 <HAL_COMP_Init+0xfc>
  16999. 800782a: 69bb ldr r3, [r7, #24]
  17000. 800782c: 2b00 cmp r3, #0
  17001. 800782e: d013 beq.n 8007858 <HAL_COMP_Init+0xfc>
  17002. {
  17003. /* Wait loop initialization and execution */
  17004. /* Note: Variable divided by 2 to compensate partially */
  17005. /* CPU processing cycles.*/
  17006. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  17007. 8007830: 4b5c ldr r3, [pc, #368] @ (80079a4 <HAL_COMP_Init+0x248>)
  17008. 8007832: 681b ldr r3, [r3, #0]
  17009. 8007834: 099b lsrs r3, r3, #6
  17010. 8007836: 4a5c ldr r2, [pc, #368] @ (80079a8 <HAL_COMP_Init+0x24c>)
  17011. 8007838: fba2 2303 umull r2, r3, r2, r3
  17012. 800783c: 099b lsrs r3, r3, #6
  17013. 800783e: 1c5a adds r2, r3, #1
  17014. 8007840: 4613 mov r3, r2
  17015. 8007842: 009b lsls r3, r3, #2
  17016. 8007844: 4413 add r3, r2
  17017. 8007846: 009b lsls r3, r3, #2
  17018. 8007848: 60fb str r3, [r7, #12]
  17019. while(wait_loop_index != 0UL)
  17020. 800784a: e002 b.n 8007852 <HAL_COMP_Init+0xf6>
  17021. {
  17022. wait_loop_index --;
  17023. 800784c: 68fb ldr r3, [r7, #12]
  17024. 800784e: 3b01 subs r3, #1
  17025. 8007850: 60fb str r3, [r7, #12]
  17026. while(wait_loop_index != 0UL)
  17027. 8007852: 68fb ldr r3, [r7, #12]
  17028. 8007854: 2b00 cmp r3, #0
  17029. 8007856: d1f9 bne.n 800784c <HAL_COMP_Init+0xf0>
  17030. }
  17031. }
  17032. /* Get the EXTI line corresponding to the selected COMP instance */
  17033. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  17034. 8007858: 687b ldr r3, [r7, #4]
  17035. 800785a: 681b ldr r3, [r3, #0]
  17036. 800785c: 4a53 ldr r2, [pc, #332] @ (80079ac <HAL_COMP_Init+0x250>)
  17037. 800785e: 4293 cmp r3, r2
  17038. 8007860: d102 bne.n 8007868 <HAL_COMP_Init+0x10c>
  17039. 8007862: f44f 1380 mov.w r3, #1048576 @ 0x100000
  17040. 8007866: e001 b.n 800786c <HAL_COMP_Init+0x110>
  17041. 8007868: f44f 1300 mov.w r3, #2097152 @ 0x200000
  17042. 800786c: 613b str r3, [r7, #16]
  17043. /* Manage EXTI settings */
  17044. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  17045. 800786e: 687b ldr r3, [r7, #4]
  17046. 8007870: 6a1b ldr r3, [r3, #32]
  17047. 8007872: f003 0303 and.w r3, r3, #3
  17048. 8007876: 2b00 cmp r3, #0
  17049. 8007878: d06d beq.n 8007956 <HAL_COMP_Init+0x1fa>
  17050. {
  17051. /* Configure EXTI rising edge */
  17052. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  17053. 800787a: 687b ldr r3, [r7, #4]
  17054. 800787c: 6a1b ldr r3, [r3, #32]
  17055. 800787e: f003 0310 and.w r3, r3, #16
  17056. 8007882: 2b00 cmp r3, #0
  17057. 8007884: d008 beq.n 8007898 <HAL_COMP_Init+0x13c>
  17058. {
  17059. SET_BIT(EXTI->RTSR1, exti_line);
  17060. 8007886: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17061. 800788a: 681a ldr r2, [r3, #0]
  17062. 800788c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17063. 8007890: 693b ldr r3, [r7, #16]
  17064. 8007892: 4313 orrs r3, r2
  17065. 8007894: 600b str r3, [r1, #0]
  17066. 8007896: e008 b.n 80078aa <HAL_COMP_Init+0x14e>
  17067. }
  17068. else
  17069. {
  17070. CLEAR_BIT(EXTI->RTSR1, exti_line);
  17071. 8007898: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17072. 800789c: 681a ldr r2, [r3, #0]
  17073. 800789e: 693b ldr r3, [r7, #16]
  17074. 80078a0: 43db mvns r3, r3
  17075. 80078a2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17076. 80078a6: 4013 ands r3, r2
  17077. 80078a8: 600b str r3, [r1, #0]
  17078. }
  17079. /* Configure EXTI falling edge */
  17080. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  17081. 80078aa: 687b ldr r3, [r7, #4]
  17082. 80078ac: 6a1b ldr r3, [r3, #32]
  17083. 80078ae: f003 0320 and.w r3, r3, #32
  17084. 80078b2: 2b00 cmp r3, #0
  17085. 80078b4: d008 beq.n 80078c8 <HAL_COMP_Init+0x16c>
  17086. {
  17087. SET_BIT(EXTI->FTSR1, exti_line);
  17088. 80078b6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17089. 80078ba: 685a ldr r2, [r3, #4]
  17090. 80078bc: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17091. 80078c0: 693b ldr r3, [r7, #16]
  17092. 80078c2: 4313 orrs r3, r2
  17093. 80078c4: 604b str r3, [r1, #4]
  17094. 80078c6: e008 b.n 80078da <HAL_COMP_Init+0x17e>
  17095. }
  17096. else
  17097. {
  17098. CLEAR_BIT(EXTI->FTSR1, exti_line);
  17099. 80078c8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17100. 80078cc: 685a ldr r2, [r3, #4]
  17101. 80078ce: 693b ldr r3, [r7, #16]
  17102. 80078d0: 43db mvns r3, r3
  17103. 80078d2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17104. 80078d6: 4013 ands r3, r2
  17105. 80078d8: 604b str r3, [r1, #4]
  17106. }
  17107. #if !defined (CORE_CM4)
  17108. /* Clear COMP EXTI pending bit (if any) */
  17109. WRITE_REG(EXTI->PR1, exti_line);
  17110. 80078da: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  17111. 80078de: 693b ldr r3, [r7, #16]
  17112. 80078e0: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  17113. /* Configure EXTI event mode */
  17114. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  17115. 80078e4: 687b ldr r3, [r7, #4]
  17116. 80078e6: 6a1b ldr r3, [r3, #32]
  17117. 80078e8: f003 0302 and.w r3, r3, #2
  17118. 80078ec: 2b00 cmp r3, #0
  17119. 80078ee: d00a beq.n 8007906 <HAL_COMP_Init+0x1aa>
  17120. {
  17121. SET_BIT(EXTI->EMR1, exti_line);
  17122. 80078f0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17123. 80078f4: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17124. 80078f8: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17125. 80078fc: 693b ldr r3, [r7, #16]
  17126. 80078fe: 4313 orrs r3, r2
  17127. 8007900: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17128. 8007904: e00a b.n 800791c <HAL_COMP_Init+0x1c0>
  17129. }
  17130. else
  17131. {
  17132. CLEAR_BIT(EXTI->EMR1, exti_line);
  17133. 8007906: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17134. 800790a: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17135. 800790e: 693b ldr r3, [r7, #16]
  17136. 8007910: 43db mvns r3, r3
  17137. 8007912: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17138. 8007916: 4013 ands r3, r2
  17139. 8007918: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17140. }
  17141. /* Configure EXTI interrupt mode */
  17142. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  17143. 800791c: 687b ldr r3, [r7, #4]
  17144. 800791e: 6a1b ldr r3, [r3, #32]
  17145. 8007920: f003 0301 and.w r3, r3, #1
  17146. 8007924: 2b00 cmp r3, #0
  17147. 8007926: d00a beq.n 800793e <HAL_COMP_Init+0x1e2>
  17148. {
  17149. SET_BIT(EXTI->IMR1, exti_line);
  17150. 8007928: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17151. 800792c: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17152. 8007930: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17153. 8007934: 693b ldr r3, [r7, #16]
  17154. 8007936: 4313 orrs r3, r2
  17155. 8007938: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17156. 800793c: e021 b.n 8007982 <HAL_COMP_Init+0x226>
  17157. }
  17158. else
  17159. {
  17160. CLEAR_BIT(EXTI->IMR1, exti_line);
  17161. 800793e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17162. 8007942: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17163. 8007946: 693b ldr r3, [r7, #16]
  17164. 8007948: 43db mvns r3, r3
  17165. 800794a: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17166. 800794e: 4013 ands r3, r2
  17167. 8007950: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17168. 8007954: e015 b.n 8007982 <HAL_COMP_Init+0x226>
  17169. }
  17170. }
  17171. else
  17172. {
  17173. /* Disable EXTI event mode */
  17174. CLEAR_BIT(EXTI->EMR1, exti_line);
  17175. 8007956: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17176. 800795a: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17177. 800795e: 693b ldr r3, [r7, #16]
  17178. 8007960: 43db mvns r3, r3
  17179. 8007962: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17180. 8007966: 4013 ands r3, r2
  17181. 8007968: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17182. /* Disable EXTI interrupt mode */
  17183. CLEAR_BIT(EXTI->IMR1, exti_line);
  17184. 800796c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17185. 8007970: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17186. 8007974: 693b ldr r3, [r7, #16]
  17187. 8007976: 43db mvns r3, r3
  17188. 8007978: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17189. 800797c: 4013 ands r3, r2
  17190. 800797e: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17191. }
  17192. #endif
  17193. /* Set HAL COMP handle state */
  17194. /* Note: Transition from state reset to state ready, */
  17195. /* otherwise (coming from state ready or busy) no state update. */
  17196. if (hcomp->State == HAL_COMP_STATE_RESET)
  17197. 8007982: 687b ldr r3, [r7, #4]
  17198. 8007984: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17199. 8007988: b2db uxtb r3, r3
  17200. 800798a: 2b00 cmp r3, #0
  17201. 800798c: d103 bne.n 8007996 <HAL_COMP_Init+0x23a>
  17202. {
  17203. hcomp->State = HAL_COMP_STATE_READY;
  17204. 800798e: 687b ldr r3, [r7, #4]
  17205. 8007990: 2201 movs r2, #1
  17206. 8007992: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17207. }
  17208. }
  17209. return status;
  17210. 8007996: 7ffb ldrb r3, [r7, #31]
  17211. }
  17212. 8007998: 4618 mov r0, r3
  17213. 800799a: 3720 adds r7, #32
  17214. 800799c: 46bd mov sp, r7
  17215. 800799e: bd80 pop {r7, pc}
  17216. 80079a0: f0e8cce1 .word 0xf0e8cce1
  17217. 80079a4: 24000034 .word 0x24000034
  17218. 80079a8: 053e2d63 .word 0x053e2d63
  17219. 80079ac: 5800380c .word 0x5800380c
  17220. 080079b0 <HAL_COMP_Start>:
  17221. * @brief Start the comparator.
  17222. * @param hcomp COMP handle
  17223. * @retval HAL status
  17224. */
  17225. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  17226. {
  17227. 80079b0: b480 push {r7}
  17228. 80079b2: b085 sub sp, #20
  17229. 80079b4: af00 add r7, sp, #0
  17230. 80079b6: 6078 str r0, [r7, #4]
  17231. __IO uint32_t wait_loop_index = 0UL;
  17232. 80079b8: 2300 movs r3, #0
  17233. 80079ba: 60bb str r3, [r7, #8]
  17234. HAL_StatusTypeDef status = HAL_OK;
  17235. 80079bc: 2300 movs r3, #0
  17236. 80079be: 73fb strb r3, [r7, #15]
  17237. /* Check the COMP handle allocation and lock status */
  17238. if(hcomp == NULL)
  17239. 80079c0: 687b ldr r3, [r7, #4]
  17240. 80079c2: 2b00 cmp r3, #0
  17241. 80079c4: d102 bne.n 80079cc <HAL_COMP_Start+0x1c>
  17242. {
  17243. status = HAL_ERROR;
  17244. 80079c6: 2301 movs r3, #1
  17245. 80079c8: 73fb strb r3, [r7, #15]
  17246. 80079ca: e030 b.n 8007a2e <HAL_COMP_Start+0x7e>
  17247. }
  17248. else if(__HAL_COMP_IS_LOCKED(hcomp))
  17249. 80079cc: 687b ldr r3, [r7, #4]
  17250. 80079ce: 681b ldr r3, [r3, #0]
  17251. 80079d0: 681b ldr r3, [r3, #0]
  17252. 80079d2: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  17253. 80079d6: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  17254. 80079da: d102 bne.n 80079e2 <HAL_COMP_Start+0x32>
  17255. {
  17256. status = HAL_ERROR;
  17257. 80079dc: 2301 movs r3, #1
  17258. 80079de: 73fb strb r3, [r7, #15]
  17259. 80079e0: e025 b.n 8007a2e <HAL_COMP_Start+0x7e>
  17260. else
  17261. {
  17262. /* Check the parameter */
  17263. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17264. if(hcomp->State == HAL_COMP_STATE_READY)
  17265. 80079e2: 687b ldr r3, [r7, #4]
  17266. 80079e4: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17267. 80079e8: b2db uxtb r3, r3
  17268. 80079ea: 2b01 cmp r3, #1
  17269. 80079ec: d11d bne.n 8007a2a <HAL_COMP_Start+0x7a>
  17270. {
  17271. /* Enable the selected comparator */
  17272. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  17273. 80079ee: 687b ldr r3, [r7, #4]
  17274. 80079f0: 681b ldr r3, [r3, #0]
  17275. 80079f2: 681a ldr r2, [r3, #0]
  17276. 80079f4: 687b ldr r3, [r7, #4]
  17277. 80079f6: 681b ldr r3, [r3, #0]
  17278. 80079f8: f042 0201 orr.w r2, r2, #1
  17279. 80079fc: 601a str r2, [r3, #0]
  17280. /* Set HAL COMP handle state */
  17281. hcomp->State = HAL_COMP_STATE_BUSY;
  17282. 80079fe: 687b ldr r3, [r7, #4]
  17283. 8007a00: 2202 movs r2, #2
  17284. 8007a02: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17285. /* Delay for COMP startup time */
  17286. /* Wait loop initialization and execution */
  17287. /* Note: Variable divided by 2 to compensate partially */
  17288. /* CPU processing cycles. */
  17289. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  17290. 8007a06: 4b0d ldr r3, [pc, #52] @ (8007a3c <HAL_COMP_Start+0x8c>)
  17291. 8007a08: 681b ldr r3, [r3, #0]
  17292. 8007a0a: 099b lsrs r3, r3, #6
  17293. 8007a0c: 4a0c ldr r2, [pc, #48] @ (8007a40 <HAL_COMP_Start+0x90>)
  17294. 8007a0e: fba2 2303 umull r2, r3, r2, r3
  17295. 8007a12: 099b lsrs r3, r3, #6
  17296. 8007a14: 3301 adds r3, #1
  17297. 8007a16: 00db lsls r3, r3, #3
  17298. 8007a18: 60bb str r3, [r7, #8]
  17299. while(wait_loop_index != 0UL)
  17300. 8007a1a: e002 b.n 8007a22 <HAL_COMP_Start+0x72>
  17301. {
  17302. wait_loop_index--;
  17303. 8007a1c: 68bb ldr r3, [r7, #8]
  17304. 8007a1e: 3b01 subs r3, #1
  17305. 8007a20: 60bb str r3, [r7, #8]
  17306. while(wait_loop_index != 0UL)
  17307. 8007a22: 68bb ldr r3, [r7, #8]
  17308. 8007a24: 2b00 cmp r3, #0
  17309. 8007a26: d1f9 bne.n 8007a1c <HAL_COMP_Start+0x6c>
  17310. 8007a28: e001 b.n 8007a2e <HAL_COMP_Start+0x7e>
  17311. }
  17312. }
  17313. else
  17314. {
  17315. status = HAL_ERROR;
  17316. 8007a2a: 2301 movs r3, #1
  17317. 8007a2c: 73fb strb r3, [r7, #15]
  17318. }
  17319. }
  17320. return status;
  17321. 8007a2e: 7bfb ldrb r3, [r7, #15]
  17322. }
  17323. 8007a30: 4618 mov r0, r3
  17324. 8007a32: 3714 adds r7, #20
  17325. 8007a34: 46bd mov sp, r7
  17326. 8007a36: f85d 7b04 ldr.w r7, [sp], #4
  17327. 8007a3a: 4770 bx lr
  17328. 8007a3c: 24000034 .word 0x24000034
  17329. 8007a40: 053e2d63 .word 0x053e2d63
  17330. 08007a44 <HAL_COMP_GetOutputLevel>:
  17331. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  17332. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  17333. *
  17334. */
  17335. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  17336. {
  17337. 8007a44: b480 push {r7}
  17338. 8007a46: b083 sub sp, #12
  17339. 8007a48: af00 add r7, sp, #0
  17340. 8007a4a: 6078 str r0, [r7, #4]
  17341. /* Check the parameter */
  17342. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17343. if (hcomp->Instance == COMP1)
  17344. 8007a4c: 687b ldr r3, [r7, #4]
  17345. 8007a4e: 681b ldr r3, [r3, #0]
  17346. 8007a50: 4a09 ldr r2, [pc, #36] @ (8007a78 <HAL_COMP_GetOutputLevel+0x34>)
  17347. 8007a52: 4293 cmp r3, r2
  17348. 8007a54: d104 bne.n 8007a60 <HAL_COMP_GetOutputLevel+0x1c>
  17349. {
  17350. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  17351. 8007a56: 4b09 ldr r3, [pc, #36] @ (8007a7c <HAL_COMP_GetOutputLevel+0x38>)
  17352. 8007a58: 681b ldr r3, [r3, #0]
  17353. 8007a5a: f003 0301 and.w r3, r3, #1
  17354. 8007a5e: e004 b.n 8007a6a <HAL_COMP_GetOutputLevel+0x26>
  17355. }
  17356. else
  17357. {
  17358. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  17359. 8007a60: 4b06 ldr r3, [pc, #24] @ (8007a7c <HAL_COMP_GetOutputLevel+0x38>)
  17360. 8007a62: 681b ldr r3, [r3, #0]
  17361. 8007a64: 085b lsrs r3, r3, #1
  17362. 8007a66: f003 0301 and.w r3, r3, #1
  17363. }
  17364. }
  17365. 8007a6a: 4618 mov r0, r3
  17366. 8007a6c: 370c adds r7, #12
  17367. 8007a6e: 46bd mov sp, r7
  17368. 8007a70: f85d 7b04 ldr.w r7, [sp], #4
  17369. 8007a74: 4770 bx lr
  17370. 8007a76: bf00 nop
  17371. 8007a78: 5800380c .word 0x5800380c
  17372. 8007a7c: 58003800 .word 0x58003800
  17373. 08007a80 <__NVIC_SetPriorityGrouping>:
  17374. {
  17375. 8007a80: b480 push {r7}
  17376. 8007a82: b085 sub sp, #20
  17377. 8007a84: af00 add r7, sp, #0
  17378. 8007a86: 6078 str r0, [r7, #4]
  17379. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17380. 8007a88: 687b ldr r3, [r7, #4]
  17381. 8007a8a: f003 0307 and.w r3, r3, #7
  17382. 8007a8e: 60fb str r3, [r7, #12]
  17383. reg_value = SCB->AIRCR; /* read old register configuration */
  17384. 8007a90: 4b0b ldr r3, [pc, #44] @ (8007ac0 <__NVIC_SetPriorityGrouping+0x40>)
  17385. 8007a92: 68db ldr r3, [r3, #12]
  17386. 8007a94: 60bb str r3, [r7, #8]
  17387. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  17388. 8007a96: 68ba ldr r2, [r7, #8]
  17389. 8007a98: f64f 03ff movw r3, #63743 @ 0xf8ff
  17390. 8007a9c: 4013 ands r3, r2
  17391. 8007a9e: 60bb str r3, [r7, #8]
  17392. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  17393. 8007aa0: 68fb ldr r3, [r7, #12]
  17394. 8007aa2: 021a lsls r2, r3, #8
  17395. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  17396. 8007aa4: 68bb ldr r3, [r7, #8]
  17397. 8007aa6: 431a orrs r2, r3
  17398. reg_value = (reg_value |
  17399. 8007aa8: 4b06 ldr r3, [pc, #24] @ (8007ac4 <__NVIC_SetPriorityGrouping+0x44>)
  17400. 8007aaa: 4313 orrs r3, r2
  17401. 8007aac: 60bb str r3, [r7, #8]
  17402. SCB->AIRCR = reg_value;
  17403. 8007aae: 4a04 ldr r2, [pc, #16] @ (8007ac0 <__NVIC_SetPriorityGrouping+0x40>)
  17404. 8007ab0: 68bb ldr r3, [r7, #8]
  17405. 8007ab2: 60d3 str r3, [r2, #12]
  17406. }
  17407. 8007ab4: bf00 nop
  17408. 8007ab6: 3714 adds r7, #20
  17409. 8007ab8: 46bd mov sp, r7
  17410. 8007aba: f85d 7b04 ldr.w r7, [sp], #4
  17411. 8007abe: 4770 bx lr
  17412. 8007ac0: e000ed00 .word 0xe000ed00
  17413. 8007ac4: 05fa0000 .word 0x05fa0000
  17414. 08007ac8 <__NVIC_GetPriorityGrouping>:
  17415. {
  17416. 8007ac8: b480 push {r7}
  17417. 8007aca: af00 add r7, sp, #0
  17418. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  17419. 8007acc: 4b04 ldr r3, [pc, #16] @ (8007ae0 <__NVIC_GetPriorityGrouping+0x18>)
  17420. 8007ace: 68db ldr r3, [r3, #12]
  17421. 8007ad0: 0a1b lsrs r3, r3, #8
  17422. 8007ad2: f003 0307 and.w r3, r3, #7
  17423. }
  17424. 8007ad6: 4618 mov r0, r3
  17425. 8007ad8: 46bd mov sp, r7
  17426. 8007ada: f85d 7b04 ldr.w r7, [sp], #4
  17427. 8007ade: 4770 bx lr
  17428. 8007ae0: e000ed00 .word 0xe000ed00
  17429. 08007ae4 <__NVIC_EnableIRQ>:
  17430. {
  17431. 8007ae4: b480 push {r7}
  17432. 8007ae6: b083 sub sp, #12
  17433. 8007ae8: af00 add r7, sp, #0
  17434. 8007aea: 4603 mov r3, r0
  17435. 8007aec: 80fb strh r3, [r7, #6]
  17436. if ((int32_t)(IRQn) >= 0)
  17437. 8007aee: f9b7 3006 ldrsh.w r3, [r7, #6]
  17438. 8007af2: 2b00 cmp r3, #0
  17439. 8007af4: db0b blt.n 8007b0e <__NVIC_EnableIRQ+0x2a>
  17440. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  17441. 8007af6: 88fb ldrh r3, [r7, #6]
  17442. 8007af8: f003 021f and.w r2, r3, #31
  17443. 8007afc: 4907 ldr r1, [pc, #28] @ (8007b1c <__NVIC_EnableIRQ+0x38>)
  17444. 8007afe: f9b7 3006 ldrsh.w r3, [r7, #6]
  17445. 8007b02: 095b lsrs r3, r3, #5
  17446. 8007b04: 2001 movs r0, #1
  17447. 8007b06: fa00 f202 lsl.w r2, r0, r2
  17448. 8007b0a: f841 2023 str.w r2, [r1, r3, lsl #2]
  17449. }
  17450. 8007b0e: bf00 nop
  17451. 8007b10: 370c adds r7, #12
  17452. 8007b12: 46bd mov sp, r7
  17453. 8007b14: f85d 7b04 ldr.w r7, [sp], #4
  17454. 8007b18: 4770 bx lr
  17455. 8007b1a: bf00 nop
  17456. 8007b1c: e000e100 .word 0xe000e100
  17457. 08007b20 <__NVIC_SetPriority>:
  17458. {
  17459. 8007b20: b480 push {r7}
  17460. 8007b22: b083 sub sp, #12
  17461. 8007b24: af00 add r7, sp, #0
  17462. 8007b26: 4603 mov r3, r0
  17463. 8007b28: 6039 str r1, [r7, #0]
  17464. 8007b2a: 80fb strh r3, [r7, #6]
  17465. if ((int32_t)(IRQn) >= 0)
  17466. 8007b2c: f9b7 3006 ldrsh.w r3, [r7, #6]
  17467. 8007b30: 2b00 cmp r3, #0
  17468. 8007b32: db0a blt.n 8007b4a <__NVIC_SetPriority+0x2a>
  17469. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17470. 8007b34: 683b ldr r3, [r7, #0]
  17471. 8007b36: b2da uxtb r2, r3
  17472. 8007b38: 490c ldr r1, [pc, #48] @ (8007b6c <__NVIC_SetPriority+0x4c>)
  17473. 8007b3a: f9b7 3006 ldrsh.w r3, [r7, #6]
  17474. 8007b3e: 0112 lsls r2, r2, #4
  17475. 8007b40: b2d2 uxtb r2, r2
  17476. 8007b42: 440b add r3, r1
  17477. 8007b44: f883 2300 strb.w r2, [r3, #768] @ 0x300
  17478. }
  17479. 8007b48: e00a b.n 8007b60 <__NVIC_SetPriority+0x40>
  17480. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17481. 8007b4a: 683b ldr r3, [r7, #0]
  17482. 8007b4c: b2da uxtb r2, r3
  17483. 8007b4e: 4908 ldr r1, [pc, #32] @ (8007b70 <__NVIC_SetPriority+0x50>)
  17484. 8007b50: 88fb ldrh r3, [r7, #6]
  17485. 8007b52: f003 030f and.w r3, r3, #15
  17486. 8007b56: 3b04 subs r3, #4
  17487. 8007b58: 0112 lsls r2, r2, #4
  17488. 8007b5a: b2d2 uxtb r2, r2
  17489. 8007b5c: 440b add r3, r1
  17490. 8007b5e: 761a strb r2, [r3, #24]
  17491. }
  17492. 8007b60: bf00 nop
  17493. 8007b62: 370c adds r7, #12
  17494. 8007b64: 46bd mov sp, r7
  17495. 8007b66: f85d 7b04 ldr.w r7, [sp], #4
  17496. 8007b6a: 4770 bx lr
  17497. 8007b6c: e000e100 .word 0xe000e100
  17498. 8007b70: e000ed00 .word 0xe000ed00
  17499. 08007b74 <NVIC_EncodePriority>:
  17500. {
  17501. 8007b74: b480 push {r7}
  17502. 8007b76: b089 sub sp, #36 @ 0x24
  17503. 8007b78: af00 add r7, sp, #0
  17504. 8007b7a: 60f8 str r0, [r7, #12]
  17505. 8007b7c: 60b9 str r1, [r7, #8]
  17506. 8007b7e: 607a str r2, [r7, #4]
  17507. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17508. 8007b80: 68fb ldr r3, [r7, #12]
  17509. 8007b82: f003 0307 and.w r3, r3, #7
  17510. 8007b86: 61fb str r3, [r7, #28]
  17511. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  17512. 8007b88: 69fb ldr r3, [r7, #28]
  17513. 8007b8a: f1c3 0307 rsb r3, r3, #7
  17514. 8007b8e: 2b04 cmp r3, #4
  17515. 8007b90: bf28 it cs
  17516. 8007b92: 2304 movcs r3, #4
  17517. 8007b94: 61bb str r3, [r7, #24]
  17518. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  17519. 8007b96: 69fb ldr r3, [r7, #28]
  17520. 8007b98: 3304 adds r3, #4
  17521. 8007b9a: 2b06 cmp r3, #6
  17522. 8007b9c: d902 bls.n 8007ba4 <NVIC_EncodePriority+0x30>
  17523. 8007b9e: 69fb ldr r3, [r7, #28]
  17524. 8007ba0: 3b03 subs r3, #3
  17525. 8007ba2: e000 b.n 8007ba6 <NVIC_EncodePriority+0x32>
  17526. 8007ba4: 2300 movs r3, #0
  17527. 8007ba6: 617b str r3, [r7, #20]
  17528. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17529. 8007ba8: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17530. 8007bac: 69bb ldr r3, [r7, #24]
  17531. 8007bae: fa02 f303 lsl.w r3, r2, r3
  17532. 8007bb2: 43da mvns r2, r3
  17533. 8007bb4: 68bb ldr r3, [r7, #8]
  17534. 8007bb6: 401a ands r2, r3
  17535. 8007bb8: 697b ldr r3, [r7, #20]
  17536. 8007bba: 409a lsls r2, r3
  17537. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  17538. 8007bbc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  17539. 8007bc0: 697b ldr r3, [r7, #20]
  17540. 8007bc2: fa01 f303 lsl.w r3, r1, r3
  17541. 8007bc6: 43d9 mvns r1, r3
  17542. 8007bc8: 687b ldr r3, [r7, #4]
  17543. 8007bca: 400b ands r3, r1
  17544. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17545. 8007bcc: 4313 orrs r3, r2
  17546. }
  17547. 8007bce: 4618 mov r0, r3
  17548. 8007bd0: 3724 adds r7, #36 @ 0x24
  17549. 8007bd2: 46bd mov sp, r7
  17550. 8007bd4: f85d 7b04 ldr.w r7, [sp], #4
  17551. 8007bd8: 4770 bx lr
  17552. 08007bda <HAL_NVIC_SetPriorityGrouping>:
  17553. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  17554. * The pending IRQ priority will be managed only by the subpriority.
  17555. * @retval None
  17556. */
  17557. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  17558. {
  17559. 8007bda: b580 push {r7, lr}
  17560. 8007bdc: b082 sub sp, #8
  17561. 8007bde: af00 add r7, sp, #0
  17562. 8007be0: 6078 str r0, [r7, #4]
  17563. /* Check the parameters */
  17564. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  17565. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  17566. NVIC_SetPriorityGrouping(PriorityGroup);
  17567. 8007be2: 6878 ldr r0, [r7, #4]
  17568. 8007be4: f7ff ff4c bl 8007a80 <__NVIC_SetPriorityGrouping>
  17569. }
  17570. 8007be8: bf00 nop
  17571. 8007bea: 3708 adds r7, #8
  17572. 8007bec: 46bd mov sp, r7
  17573. 8007bee: bd80 pop {r7, pc}
  17574. 08007bf0 <HAL_NVIC_SetPriority>:
  17575. * This parameter can be a value between 0 and 15
  17576. * A lower priority value indicates a higher priority.
  17577. * @retval None
  17578. */
  17579. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  17580. {
  17581. 8007bf0: b580 push {r7, lr}
  17582. 8007bf2: b086 sub sp, #24
  17583. 8007bf4: af00 add r7, sp, #0
  17584. 8007bf6: 4603 mov r3, r0
  17585. 8007bf8: 60b9 str r1, [r7, #8]
  17586. 8007bfa: 607a str r2, [r7, #4]
  17587. 8007bfc: 81fb strh r3, [r7, #14]
  17588. /* Check the parameters */
  17589. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  17590. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  17591. prioritygroup = NVIC_GetPriorityGrouping();
  17592. 8007bfe: f7ff ff63 bl 8007ac8 <__NVIC_GetPriorityGrouping>
  17593. 8007c02: 6178 str r0, [r7, #20]
  17594. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  17595. 8007c04: 687a ldr r2, [r7, #4]
  17596. 8007c06: 68b9 ldr r1, [r7, #8]
  17597. 8007c08: 6978 ldr r0, [r7, #20]
  17598. 8007c0a: f7ff ffb3 bl 8007b74 <NVIC_EncodePriority>
  17599. 8007c0e: 4602 mov r2, r0
  17600. 8007c10: f9b7 300e ldrsh.w r3, [r7, #14]
  17601. 8007c14: 4611 mov r1, r2
  17602. 8007c16: 4618 mov r0, r3
  17603. 8007c18: f7ff ff82 bl 8007b20 <__NVIC_SetPriority>
  17604. }
  17605. 8007c1c: bf00 nop
  17606. 8007c1e: 3718 adds r7, #24
  17607. 8007c20: 46bd mov sp, r7
  17608. 8007c22: bd80 pop {r7, pc}
  17609. 08007c24 <HAL_NVIC_EnableIRQ>:
  17610. * This parameter can be an enumerator of IRQn_Type enumeration
  17611. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  17612. * @retval None
  17613. */
  17614. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  17615. {
  17616. 8007c24: b580 push {r7, lr}
  17617. 8007c26: b082 sub sp, #8
  17618. 8007c28: af00 add r7, sp, #0
  17619. 8007c2a: 4603 mov r3, r0
  17620. 8007c2c: 80fb strh r3, [r7, #6]
  17621. /* Check the parameters */
  17622. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  17623. /* Enable interrupt */
  17624. NVIC_EnableIRQ(IRQn);
  17625. 8007c2e: f9b7 3006 ldrsh.w r3, [r7, #6]
  17626. 8007c32: 4618 mov r0, r3
  17627. 8007c34: f7ff ff56 bl 8007ae4 <__NVIC_EnableIRQ>
  17628. }
  17629. 8007c38: bf00 nop
  17630. 8007c3a: 3708 adds r7, #8
  17631. 8007c3c: 46bd mov sp, r7
  17632. 8007c3e: bd80 pop {r7, pc}
  17633. 08007c40 <HAL_MPU_Disable>:
  17634. /**
  17635. * @brief Disables the MPU
  17636. * @retval None
  17637. */
  17638. void HAL_MPU_Disable(void)
  17639. {
  17640. 8007c40: b480 push {r7}
  17641. 8007c42: af00 add r7, sp, #0
  17642. __ASM volatile ("dmb 0xF":::"memory");
  17643. 8007c44: f3bf 8f5f dmb sy
  17644. }
  17645. 8007c48: bf00 nop
  17646. /* Make sure outstanding transfers are done */
  17647. __DMB();
  17648. /* Disable fault exceptions */
  17649. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  17650. 8007c4a: 4b07 ldr r3, [pc, #28] @ (8007c68 <HAL_MPU_Disable+0x28>)
  17651. 8007c4c: 6a5b ldr r3, [r3, #36] @ 0x24
  17652. 8007c4e: 4a06 ldr r2, [pc, #24] @ (8007c68 <HAL_MPU_Disable+0x28>)
  17653. 8007c50: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  17654. 8007c54: 6253 str r3, [r2, #36] @ 0x24
  17655. /* Disable the MPU and clear the control register*/
  17656. MPU->CTRL = 0;
  17657. 8007c56: 4b05 ldr r3, [pc, #20] @ (8007c6c <HAL_MPU_Disable+0x2c>)
  17658. 8007c58: 2200 movs r2, #0
  17659. 8007c5a: 605a str r2, [r3, #4]
  17660. }
  17661. 8007c5c: bf00 nop
  17662. 8007c5e: 46bd mov sp, r7
  17663. 8007c60: f85d 7b04 ldr.w r7, [sp], #4
  17664. 8007c64: 4770 bx lr
  17665. 8007c66: bf00 nop
  17666. 8007c68: e000ed00 .word 0xe000ed00
  17667. 8007c6c: e000ed90 .word 0xe000ed90
  17668. 08007c70 <HAL_MPU_Enable>:
  17669. * @arg MPU_PRIVILEGED_DEFAULT
  17670. * @arg MPU_HFNMI_PRIVDEF
  17671. * @retval None
  17672. */
  17673. void HAL_MPU_Enable(uint32_t MPU_Control)
  17674. {
  17675. 8007c70: b480 push {r7}
  17676. 8007c72: b083 sub sp, #12
  17677. 8007c74: af00 add r7, sp, #0
  17678. 8007c76: 6078 str r0, [r7, #4]
  17679. /* Enable the MPU */
  17680. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  17681. 8007c78: 4a0b ldr r2, [pc, #44] @ (8007ca8 <HAL_MPU_Enable+0x38>)
  17682. 8007c7a: 687b ldr r3, [r7, #4]
  17683. 8007c7c: f043 0301 orr.w r3, r3, #1
  17684. 8007c80: 6053 str r3, [r2, #4]
  17685. /* Enable fault exceptions */
  17686. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  17687. 8007c82: 4b0a ldr r3, [pc, #40] @ (8007cac <HAL_MPU_Enable+0x3c>)
  17688. 8007c84: 6a5b ldr r3, [r3, #36] @ 0x24
  17689. 8007c86: 4a09 ldr r2, [pc, #36] @ (8007cac <HAL_MPU_Enable+0x3c>)
  17690. 8007c88: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  17691. 8007c8c: 6253 str r3, [r2, #36] @ 0x24
  17692. __ASM volatile ("dsb 0xF":::"memory");
  17693. 8007c8e: f3bf 8f4f dsb sy
  17694. }
  17695. 8007c92: bf00 nop
  17696. __ASM volatile ("isb 0xF":::"memory");
  17697. 8007c94: f3bf 8f6f isb sy
  17698. }
  17699. 8007c98: bf00 nop
  17700. /* Ensure MPU setting take effects */
  17701. __DSB();
  17702. __ISB();
  17703. }
  17704. 8007c9a: bf00 nop
  17705. 8007c9c: 370c adds r7, #12
  17706. 8007c9e: 46bd mov sp, r7
  17707. 8007ca0: f85d 7b04 ldr.w r7, [sp], #4
  17708. 8007ca4: 4770 bx lr
  17709. 8007ca6: bf00 nop
  17710. 8007ca8: e000ed90 .word 0xe000ed90
  17711. 8007cac: e000ed00 .word 0xe000ed00
  17712. 08007cb0 <HAL_MPU_ConfigRegion>:
  17713. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  17714. * the initialization and configuration information.
  17715. * @retval None
  17716. */
  17717. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  17718. {
  17719. 8007cb0: b480 push {r7}
  17720. 8007cb2: b083 sub sp, #12
  17721. 8007cb4: af00 add r7, sp, #0
  17722. 8007cb6: 6078 str r0, [r7, #4]
  17723. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  17724. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  17725. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  17726. /* Set the Region number */
  17727. MPU->RNR = MPU_Init->Number;
  17728. 8007cb8: 687b ldr r3, [r7, #4]
  17729. 8007cba: 785a ldrb r2, [r3, #1]
  17730. 8007cbc: 4b1b ldr r3, [pc, #108] @ (8007d2c <HAL_MPU_ConfigRegion+0x7c>)
  17731. 8007cbe: 609a str r2, [r3, #8]
  17732. /* Disable the Region */
  17733. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  17734. 8007cc0: 4b1a ldr r3, [pc, #104] @ (8007d2c <HAL_MPU_ConfigRegion+0x7c>)
  17735. 8007cc2: 691b ldr r3, [r3, #16]
  17736. 8007cc4: 4a19 ldr r2, [pc, #100] @ (8007d2c <HAL_MPU_ConfigRegion+0x7c>)
  17737. 8007cc6: f023 0301 bic.w r3, r3, #1
  17738. 8007cca: 6113 str r3, [r2, #16]
  17739. /* Apply configuration */
  17740. MPU->RBAR = MPU_Init->BaseAddress;
  17741. 8007ccc: 4a17 ldr r2, [pc, #92] @ (8007d2c <HAL_MPU_ConfigRegion+0x7c>)
  17742. 8007cce: 687b ldr r3, [r7, #4]
  17743. 8007cd0: 685b ldr r3, [r3, #4]
  17744. 8007cd2: 60d3 str r3, [r2, #12]
  17745. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17746. 8007cd4: 687b ldr r3, [r7, #4]
  17747. 8007cd6: 7b1b ldrb r3, [r3, #12]
  17748. 8007cd8: 071a lsls r2, r3, #28
  17749. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17750. 8007cda: 687b ldr r3, [r7, #4]
  17751. 8007cdc: 7adb ldrb r3, [r3, #11]
  17752. 8007cde: 061b lsls r3, r3, #24
  17753. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17754. 8007ce0: 431a orrs r2, r3
  17755. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17756. 8007ce2: 687b ldr r3, [r7, #4]
  17757. 8007ce4: 7a9b ldrb r3, [r3, #10]
  17758. 8007ce6: 04db lsls r3, r3, #19
  17759. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17760. 8007ce8: 431a orrs r2, r3
  17761. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17762. 8007cea: 687b ldr r3, [r7, #4]
  17763. 8007cec: 7b5b ldrb r3, [r3, #13]
  17764. 8007cee: 049b lsls r3, r3, #18
  17765. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17766. 8007cf0: 431a orrs r2, r3
  17767. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17768. 8007cf2: 687b ldr r3, [r7, #4]
  17769. 8007cf4: 7b9b ldrb r3, [r3, #14]
  17770. 8007cf6: 045b lsls r3, r3, #17
  17771. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17772. 8007cf8: 431a orrs r2, r3
  17773. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17774. 8007cfa: 687b ldr r3, [r7, #4]
  17775. 8007cfc: 7bdb ldrb r3, [r3, #15]
  17776. 8007cfe: 041b lsls r3, r3, #16
  17777. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17778. 8007d00: 431a orrs r2, r3
  17779. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17780. 8007d02: 687b ldr r3, [r7, #4]
  17781. 8007d04: 7a5b ldrb r3, [r3, #9]
  17782. 8007d06: 021b lsls r3, r3, #8
  17783. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17784. 8007d08: 431a orrs r2, r3
  17785. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17786. 8007d0a: 687b ldr r3, [r7, #4]
  17787. 8007d0c: 7a1b ldrb r3, [r3, #8]
  17788. 8007d0e: 005b lsls r3, r3, #1
  17789. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17790. 8007d10: 4313 orrs r3, r2
  17791. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  17792. 8007d12: 687a ldr r2, [r7, #4]
  17793. 8007d14: 7812 ldrb r2, [r2, #0]
  17794. 8007d16: 4611 mov r1, r2
  17795. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17796. 8007d18: 4a04 ldr r2, [pc, #16] @ (8007d2c <HAL_MPU_ConfigRegion+0x7c>)
  17797. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17798. 8007d1a: 430b orrs r3, r1
  17799. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17800. 8007d1c: 6113 str r3, [r2, #16]
  17801. }
  17802. 8007d1e: bf00 nop
  17803. 8007d20: 370c adds r7, #12
  17804. 8007d22: 46bd mov sp, r7
  17805. 8007d24: f85d 7b04 ldr.w r7, [sp], #4
  17806. 8007d28: 4770 bx lr
  17807. 8007d2a: bf00 nop
  17808. 8007d2c: e000ed90 .word 0xe000ed90
  17809. 08007d30 <HAL_CRC_Init>:
  17810. * parameters in the CRC_InitTypeDef and create the associated handle.
  17811. * @param hcrc CRC handle
  17812. * @retval HAL status
  17813. */
  17814. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  17815. {
  17816. 8007d30: b580 push {r7, lr}
  17817. 8007d32: b082 sub sp, #8
  17818. 8007d34: af00 add r7, sp, #0
  17819. 8007d36: 6078 str r0, [r7, #4]
  17820. /* Check the CRC handle allocation */
  17821. if (hcrc == NULL)
  17822. 8007d38: 687b ldr r3, [r7, #4]
  17823. 8007d3a: 2b00 cmp r3, #0
  17824. 8007d3c: d101 bne.n 8007d42 <HAL_CRC_Init+0x12>
  17825. {
  17826. return HAL_ERROR;
  17827. 8007d3e: 2301 movs r3, #1
  17828. 8007d40: e054 b.n 8007dec <HAL_CRC_Init+0xbc>
  17829. }
  17830. /* Check the parameters */
  17831. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  17832. if (hcrc->State == HAL_CRC_STATE_RESET)
  17833. 8007d42: 687b ldr r3, [r7, #4]
  17834. 8007d44: 7f5b ldrb r3, [r3, #29]
  17835. 8007d46: b2db uxtb r3, r3
  17836. 8007d48: 2b00 cmp r3, #0
  17837. 8007d4a: d105 bne.n 8007d58 <HAL_CRC_Init+0x28>
  17838. {
  17839. /* Allocate lock resource and initialize it */
  17840. hcrc->Lock = HAL_UNLOCKED;
  17841. 8007d4c: 687b ldr r3, [r7, #4]
  17842. 8007d4e: 2200 movs r2, #0
  17843. 8007d50: 771a strb r2, [r3, #28]
  17844. /* Init the low level hardware */
  17845. HAL_CRC_MspInit(hcrc);
  17846. 8007d52: 6878 ldr r0, [r7, #4]
  17847. 8007d54: f7fc fa1a bl 800418c <HAL_CRC_MspInit>
  17848. }
  17849. hcrc->State = HAL_CRC_STATE_BUSY;
  17850. 8007d58: 687b ldr r3, [r7, #4]
  17851. 8007d5a: 2202 movs r2, #2
  17852. 8007d5c: 775a strb r2, [r3, #29]
  17853. /* check whether or not non-default generating polynomial has been
  17854. * picked up by user */
  17855. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  17856. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  17857. 8007d5e: 687b ldr r3, [r7, #4]
  17858. 8007d60: 791b ldrb r3, [r3, #4]
  17859. 8007d62: 2b00 cmp r3, #0
  17860. 8007d64: d10c bne.n 8007d80 <HAL_CRC_Init+0x50>
  17861. {
  17862. /* initialize peripheral with default generating polynomial */
  17863. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  17864. 8007d66: 687b ldr r3, [r7, #4]
  17865. 8007d68: 681b ldr r3, [r3, #0]
  17866. 8007d6a: 4a22 ldr r2, [pc, #136] @ (8007df4 <HAL_CRC_Init+0xc4>)
  17867. 8007d6c: 615a str r2, [r3, #20]
  17868. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  17869. 8007d6e: 687b ldr r3, [r7, #4]
  17870. 8007d70: 681b ldr r3, [r3, #0]
  17871. 8007d72: 689a ldr r2, [r3, #8]
  17872. 8007d74: 687b ldr r3, [r7, #4]
  17873. 8007d76: 681b ldr r3, [r3, #0]
  17874. 8007d78: f022 0218 bic.w r2, r2, #24
  17875. 8007d7c: 609a str r2, [r3, #8]
  17876. 8007d7e: e00c b.n 8007d9a <HAL_CRC_Init+0x6a>
  17877. }
  17878. else
  17879. {
  17880. /* initialize CRC peripheral with generating polynomial defined by user */
  17881. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  17882. 8007d80: 687b ldr r3, [r7, #4]
  17883. 8007d82: 6899 ldr r1, [r3, #8]
  17884. 8007d84: 687b ldr r3, [r7, #4]
  17885. 8007d86: 68db ldr r3, [r3, #12]
  17886. 8007d88: 461a mov r2, r3
  17887. 8007d8a: 6878 ldr r0, [r7, #4]
  17888. 8007d8c: f000 f948 bl 8008020 <HAL_CRCEx_Polynomial_Set>
  17889. 8007d90: 4603 mov r3, r0
  17890. 8007d92: 2b00 cmp r3, #0
  17891. 8007d94: d001 beq.n 8007d9a <HAL_CRC_Init+0x6a>
  17892. {
  17893. return HAL_ERROR;
  17894. 8007d96: 2301 movs r3, #1
  17895. 8007d98: e028 b.n 8007dec <HAL_CRC_Init+0xbc>
  17896. }
  17897. /* check whether or not non-default CRC initial value has been
  17898. * picked up by user */
  17899. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  17900. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  17901. 8007d9a: 687b ldr r3, [r7, #4]
  17902. 8007d9c: 795b ldrb r3, [r3, #5]
  17903. 8007d9e: 2b00 cmp r3, #0
  17904. 8007da0: d105 bne.n 8007dae <HAL_CRC_Init+0x7e>
  17905. {
  17906. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  17907. 8007da2: 687b ldr r3, [r7, #4]
  17908. 8007da4: 681b ldr r3, [r3, #0]
  17909. 8007da6: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17910. 8007daa: 611a str r2, [r3, #16]
  17911. 8007dac: e004 b.n 8007db8 <HAL_CRC_Init+0x88>
  17912. }
  17913. else
  17914. {
  17915. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  17916. 8007dae: 687b ldr r3, [r7, #4]
  17917. 8007db0: 681b ldr r3, [r3, #0]
  17918. 8007db2: 687a ldr r2, [r7, #4]
  17919. 8007db4: 6912 ldr r2, [r2, #16]
  17920. 8007db6: 611a str r2, [r3, #16]
  17921. }
  17922. /* set input data inversion mode */
  17923. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  17924. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  17925. 8007db8: 687b ldr r3, [r7, #4]
  17926. 8007dba: 681b ldr r3, [r3, #0]
  17927. 8007dbc: 689b ldr r3, [r3, #8]
  17928. 8007dbe: f023 0160 bic.w r1, r3, #96 @ 0x60
  17929. 8007dc2: 687b ldr r3, [r7, #4]
  17930. 8007dc4: 695a ldr r2, [r3, #20]
  17931. 8007dc6: 687b ldr r3, [r7, #4]
  17932. 8007dc8: 681b ldr r3, [r3, #0]
  17933. 8007dca: 430a orrs r2, r1
  17934. 8007dcc: 609a str r2, [r3, #8]
  17935. /* set output data inversion mode */
  17936. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  17937. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  17938. 8007dce: 687b ldr r3, [r7, #4]
  17939. 8007dd0: 681b ldr r3, [r3, #0]
  17940. 8007dd2: 689b ldr r3, [r3, #8]
  17941. 8007dd4: f023 0180 bic.w r1, r3, #128 @ 0x80
  17942. 8007dd8: 687b ldr r3, [r7, #4]
  17943. 8007dda: 699a ldr r2, [r3, #24]
  17944. 8007ddc: 687b ldr r3, [r7, #4]
  17945. 8007dde: 681b ldr r3, [r3, #0]
  17946. 8007de0: 430a orrs r2, r1
  17947. 8007de2: 609a str r2, [r3, #8]
  17948. /* makes sure the input data format (bytes, halfwords or words stream)
  17949. * is properly specified by user */
  17950. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  17951. /* Change CRC peripheral state */
  17952. hcrc->State = HAL_CRC_STATE_READY;
  17953. 8007de4: 687b ldr r3, [r7, #4]
  17954. 8007de6: 2201 movs r2, #1
  17955. 8007de8: 775a strb r2, [r3, #29]
  17956. /* Return function status */
  17957. return HAL_OK;
  17958. 8007dea: 2300 movs r3, #0
  17959. }
  17960. 8007dec: 4618 mov r0, r3
  17961. 8007dee: 3708 adds r7, #8
  17962. 8007df0: 46bd mov sp, r7
  17963. 8007df2: bd80 pop {r7, pc}
  17964. 8007df4: 04c11db7 .word 0x04c11db7
  17965. 08007df8 <HAL_CRC_Calculate>:
  17966. * and the API will internally adjust its input data processing based on the
  17967. * handle field hcrc->InputDataFormat.
  17968. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17969. */
  17970. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  17971. {
  17972. 8007df8: b580 push {r7, lr}
  17973. 8007dfa: b086 sub sp, #24
  17974. 8007dfc: af00 add r7, sp, #0
  17975. 8007dfe: 60f8 str r0, [r7, #12]
  17976. 8007e00: 60b9 str r1, [r7, #8]
  17977. 8007e02: 607a str r2, [r7, #4]
  17978. uint32_t index; /* CRC input data buffer index */
  17979. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  17980. 8007e04: 2300 movs r3, #0
  17981. 8007e06: 613b str r3, [r7, #16]
  17982. /* Change CRC peripheral state */
  17983. hcrc->State = HAL_CRC_STATE_BUSY;
  17984. 8007e08: 68fb ldr r3, [r7, #12]
  17985. 8007e0a: 2202 movs r2, #2
  17986. 8007e0c: 775a strb r2, [r3, #29]
  17987. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  17988. * written in hcrc->Instance->DR) */
  17989. __HAL_CRC_DR_RESET(hcrc);
  17990. 8007e0e: 68fb ldr r3, [r7, #12]
  17991. 8007e10: 681b ldr r3, [r3, #0]
  17992. 8007e12: 689a ldr r2, [r3, #8]
  17993. 8007e14: 68fb ldr r3, [r7, #12]
  17994. 8007e16: 681b ldr r3, [r3, #0]
  17995. 8007e18: f042 0201 orr.w r2, r2, #1
  17996. 8007e1c: 609a str r2, [r3, #8]
  17997. switch (hcrc->InputDataFormat)
  17998. 8007e1e: 68fb ldr r3, [r7, #12]
  17999. 8007e20: 6a1b ldr r3, [r3, #32]
  18000. 8007e22: 2b03 cmp r3, #3
  18001. 8007e24: d006 beq.n 8007e34 <HAL_CRC_Calculate+0x3c>
  18002. 8007e26: 2b03 cmp r3, #3
  18003. 8007e28: d829 bhi.n 8007e7e <HAL_CRC_Calculate+0x86>
  18004. 8007e2a: 2b01 cmp r3, #1
  18005. 8007e2c: d019 beq.n 8007e62 <HAL_CRC_Calculate+0x6a>
  18006. 8007e2e: 2b02 cmp r3, #2
  18007. 8007e30: d01e beq.n 8007e70 <HAL_CRC_Calculate+0x78>
  18008. /* Specific 16-bit input data handling */
  18009. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  18010. break;
  18011. default:
  18012. break;
  18013. 8007e32: e024 b.n 8007e7e <HAL_CRC_Calculate+0x86>
  18014. for (index = 0U; index < BufferLength; index++)
  18015. 8007e34: 2300 movs r3, #0
  18016. 8007e36: 617b str r3, [r7, #20]
  18017. 8007e38: e00a b.n 8007e50 <HAL_CRC_Calculate+0x58>
  18018. hcrc->Instance->DR = pBuffer[index];
  18019. 8007e3a: 697b ldr r3, [r7, #20]
  18020. 8007e3c: 009b lsls r3, r3, #2
  18021. 8007e3e: 68ba ldr r2, [r7, #8]
  18022. 8007e40: 441a add r2, r3
  18023. 8007e42: 68fb ldr r3, [r7, #12]
  18024. 8007e44: 681b ldr r3, [r3, #0]
  18025. 8007e46: 6812 ldr r2, [r2, #0]
  18026. 8007e48: 601a str r2, [r3, #0]
  18027. for (index = 0U; index < BufferLength; index++)
  18028. 8007e4a: 697b ldr r3, [r7, #20]
  18029. 8007e4c: 3301 adds r3, #1
  18030. 8007e4e: 617b str r3, [r7, #20]
  18031. 8007e50: 697a ldr r2, [r7, #20]
  18032. 8007e52: 687b ldr r3, [r7, #4]
  18033. 8007e54: 429a cmp r2, r3
  18034. 8007e56: d3f0 bcc.n 8007e3a <HAL_CRC_Calculate+0x42>
  18035. temp = hcrc->Instance->DR;
  18036. 8007e58: 68fb ldr r3, [r7, #12]
  18037. 8007e5a: 681b ldr r3, [r3, #0]
  18038. 8007e5c: 681b ldr r3, [r3, #0]
  18039. 8007e5e: 613b str r3, [r7, #16]
  18040. break;
  18041. 8007e60: e00e b.n 8007e80 <HAL_CRC_Calculate+0x88>
  18042. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  18043. 8007e62: 687a ldr r2, [r7, #4]
  18044. 8007e64: 68b9 ldr r1, [r7, #8]
  18045. 8007e66: 68f8 ldr r0, [r7, #12]
  18046. 8007e68: f000 f812 bl 8007e90 <CRC_Handle_8>
  18047. 8007e6c: 6138 str r0, [r7, #16]
  18048. break;
  18049. 8007e6e: e007 b.n 8007e80 <HAL_CRC_Calculate+0x88>
  18050. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  18051. 8007e70: 687a ldr r2, [r7, #4]
  18052. 8007e72: 68b9 ldr r1, [r7, #8]
  18053. 8007e74: 68f8 ldr r0, [r7, #12]
  18054. 8007e76: f000 f899 bl 8007fac <CRC_Handle_16>
  18055. 8007e7a: 6138 str r0, [r7, #16]
  18056. break;
  18057. 8007e7c: e000 b.n 8007e80 <HAL_CRC_Calculate+0x88>
  18058. break;
  18059. 8007e7e: bf00 nop
  18060. }
  18061. /* Change CRC peripheral state */
  18062. hcrc->State = HAL_CRC_STATE_READY;
  18063. 8007e80: 68fb ldr r3, [r7, #12]
  18064. 8007e82: 2201 movs r2, #1
  18065. 8007e84: 775a strb r2, [r3, #29]
  18066. /* Return the CRC computed value */
  18067. return temp;
  18068. 8007e86: 693b ldr r3, [r7, #16]
  18069. }
  18070. 8007e88: 4618 mov r0, r3
  18071. 8007e8a: 3718 adds r7, #24
  18072. 8007e8c: 46bd mov sp, r7
  18073. 8007e8e: bd80 pop {r7, pc}
  18074. 08007e90 <CRC_Handle_8>:
  18075. * @param pBuffer pointer to the input data buffer
  18076. * @param BufferLength input data buffer length
  18077. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18078. */
  18079. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  18080. {
  18081. 8007e90: b480 push {r7}
  18082. 8007e92: b089 sub sp, #36 @ 0x24
  18083. 8007e94: af00 add r7, sp, #0
  18084. 8007e96: 60f8 str r0, [r7, #12]
  18085. 8007e98: 60b9 str r1, [r7, #8]
  18086. 8007e9a: 607a str r2, [r7, #4]
  18087. __IO uint16_t *pReg;
  18088. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  18089. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  18090. * handling by the peripheral */
  18091. for (i = 0U; i < (BufferLength / 4U); i++)
  18092. 8007e9c: 2300 movs r3, #0
  18093. 8007e9e: 61fb str r3, [r7, #28]
  18094. 8007ea0: e023 b.n 8007eea <CRC_Handle_8+0x5a>
  18095. {
  18096. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18097. 8007ea2: 69fb ldr r3, [r7, #28]
  18098. 8007ea4: 009b lsls r3, r3, #2
  18099. 8007ea6: 68ba ldr r2, [r7, #8]
  18100. 8007ea8: 4413 add r3, r2
  18101. 8007eaa: 781b ldrb r3, [r3, #0]
  18102. 8007eac: 061a lsls r2, r3, #24
  18103. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18104. 8007eae: 69fb ldr r3, [r7, #28]
  18105. 8007eb0: 009b lsls r3, r3, #2
  18106. 8007eb2: 3301 adds r3, #1
  18107. 8007eb4: 68b9 ldr r1, [r7, #8]
  18108. 8007eb6: 440b add r3, r1
  18109. 8007eb8: 781b ldrb r3, [r3, #0]
  18110. 8007eba: 041b lsls r3, r3, #16
  18111. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18112. 8007ebc: 431a orrs r2, r3
  18113. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18114. 8007ebe: 69fb ldr r3, [r7, #28]
  18115. 8007ec0: 009b lsls r3, r3, #2
  18116. 8007ec2: 3302 adds r3, #2
  18117. 8007ec4: 68b9 ldr r1, [r7, #8]
  18118. 8007ec6: 440b add r3, r1
  18119. 8007ec8: 781b ldrb r3, [r3, #0]
  18120. 8007eca: 021b lsls r3, r3, #8
  18121. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18122. 8007ecc: 431a orrs r2, r3
  18123. (uint32_t)pBuffer[(4U * i) + 3U];
  18124. 8007ece: 69fb ldr r3, [r7, #28]
  18125. 8007ed0: 009b lsls r3, r3, #2
  18126. 8007ed2: 3303 adds r3, #3
  18127. 8007ed4: 68b9 ldr r1, [r7, #8]
  18128. 8007ed6: 440b add r3, r1
  18129. 8007ed8: 781b ldrb r3, [r3, #0]
  18130. 8007eda: 4619 mov r1, r3
  18131. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18132. 8007edc: 68fb ldr r3, [r7, #12]
  18133. 8007ede: 681b ldr r3, [r3, #0]
  18134. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18135. 8007ee0: 430a orrs r2, r1
  18136. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18137. 8007ee2: 601a str r2, [r3, #0]
  18138. for (i = 0U; i < (BufferLength / 4U); i++)
  18139. 8007ee4: 69fb ldr r3, [r7, #28]
  18140. 8007ee6: 3301 adds r3, #1
  18141. 8007ee8: 61fb str r3, [r7, #28]
  18142. 8007eea: 687b ldr r3, [r7, #4]
  18143. 8007eec: 089b lsrs r3, r3, #2
  18144. 8007eee: 69fa ldr r2, [r7, #28]
  18145. 8007ef0: 429a cmp r2, r3
  18146. 8007ef2: d3d6 bcc.n 8007ea2 <CRC_Handle_8+0x12>
  18147. }
  18148. /* last bytes specific handling */
  18149. if ((BufferLength % 4U) != 0U)
  18150. 8007ef4: 687b ldr r3, [r7, #4]
  18151. 8007ef6: f003 0303 and.w r3, r3, #3
  18152. 8007efa: 2b00 cmp r3, #0
  18153. 8007efc: d04d beq.n 8007f9a <CRC_Handle_8+0x10a>
  18154. {
  18155. if ((BufferLength % 4U) == 1U)
  18156. 8007efe: 687b ldr r3, [r7, #4]
  18157. 8007f00: f003 0303 and.w r3, r3, #3
  18158. 8007f04: 2b01 cmp r3, #1
  18159. 8007f06: d107 bne.n 8007f18 <CRC_Handle_8+0x88>
  18160. {
  18161. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  18162. 8007f08: 69fb ldr r3, [r7, #28]
  18163. 8007f0a: 009b lsls r3, r3, #2
  18164. 8007f0c: 68ba ldr r2, [r7, #8]
  18165. 8007f0e: 4413 add r3, r2
  18166. 8007f10: 68fa ldr r2, [r7, #12]
  18167. 8007f12: 6812 ldr r2, [r2, #0]
  18168. 8007f14: 781b ldrb r3, [r3, #0]
  18169. 8007f16: 7013 strb r3, [r2, #0]
  18170. }
  18171. if ((BufferLength % 4U) == 2U)
  18172. 8007f18: 687b ldr r3, [r7, #4]
  18173. 8007f1a: f003 0303 and.w r3, r3, #3
  18174. 8007f1e: 2b02 cmp r3, #2
  18175. 8007f20: d116 bne.n 8007f50 <CRC_Handle_8+0xc0>
  18176. {
  18177. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18178. 8007f22: 69fb ldr r3, [r7, #28]
  18179. 8007f24: 009b lsls r3, r3, #2
  18180. 8007f26: 68ba ldr r2, [r7, #8]
  18181. 8007f28: 4413 add r3, r2
  18182. 8007f2a: 781b ldrb r3, [r3, #0]
  18183. 8007f2c: 021b lsls r3, r3, #8
  18184. 8007f2e: b21a sxth r2, r3
  18185. 8007f30: 69fb ldr r3, [r7, #28]
  18186. 8007f32: 009b lsls r3, r3, #2
  18187. 8007f34: 3301 adds r3, #1
  18188. 8007f36: 68b9 ldr r1, [r7, #8]
  18189. 8007f38: 440b add r3, r1
  18190. 8007f3a: 781b ldrb r3, [r3, #0]
  18191. 8007f3c: b21b sxth r3, r3
  18192. 8007f3e: 4313 orrs r3, r2
  18193. 8007f40: b21b sxth r3, r3
  18194. 8007f42: 837b strh r3, [r7, #26]
  18195. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18196. 8007f44: 68fb ldr r3, [r7, #12]
  18197. 8007f46: 681b ldr r3, [r3, #0]
  18198. 8007f48: 617b str r3, [r7, #20]
  18199. *pReg = data;
  18200. 8007f4a: 697b ldr r3, [r7, #20]
  18201. 8007f4c: 8b7a ldrh r2, [r7, #26]
  18202. 8007f4e: 801a strh r2, [r3, #0]
  18203. }
  18204. if ((BufferLength % 4U) == 3U)
  18205. 8007f50: 687b ldr r3, [r7, #4]
  18206. 8007f52: f003 0303 and.w r3, r3, #3
  18207. 8007f56: 2b03 cmp r3, #3
  18208. 8007f58: d11f bne.n 8007f9a <CRC_Handle_8+0x10a>
  18209. {
  18210. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18211. 8007f5a: 69fb ldr r3, [r7, #28]
  18212. 8007f5c: 009b lsls r3, r3, #2
  18213. 8007f5e: 68ba ldr r2, [r7, #8]
  18214. 8007f60: 4413 add r3, r2
  18215. 8007f62: 781b ldrb r3, [r3, #0]
  18216. 8007f64: 021b lsls r3, r3, #8
  18217. 8007f66: b21a sxth r2, r3
  18218. 8007f68: 69fb ldr r3, [r7, #28]
  18219. 8007f6a: 009b lsls r3, r3, #2
  18220. 8007f6c: 3301 adds r3, #1
  18221. 8007f6e: 68b9 ldr r1, [r7, #8]
  18222. 8007f70: 440b add r3, r1
  18223. 8007f72: 781b ldrb r3, [r3, #0]
  18224. 8007f74: b21b sxth r3, r3
  18225. 8007f76: 4313 orrs r3, r2
  18226. 8007f78: b21b sxth r3, r3
  18227. 8007f7a: 837b strh r3, [r7, #26]
  18228. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18229. 8007f7c: 68fb ldr r3, [r7, #12]
  18230. 8007f7e: 681b ldr r3, [r3, #0]
  18231. 8007f80: 617b str r3, [r7, #20]
  18232. *pReg = data;
  18233. 8007f82: 697b ldr r3, [r7, #20]
  18234. 8007f84: 8b7a ldrh r2, [r7, #26]
  18235. 8007f86: 801a strh r2, [r3, #0]
  18236. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  18237. 8007f88: 69fb ldr r3, [r7, #28]
  18238. 8007f8a: 009b lsls r3, r3, #2
  18239. 8007f8c: 3302 adds r3, #2
  18240. 8007f8e: 68ba ldr r2, [r7, #8]
  18241. 8007f90: 4413 add r3, r2
  18242. 8007f92: 68fa ldr r2, [r7, #12]
  18243. 8007f94: 6812 ldr r2, [r2, #0]
  18244. 8007f96: 781b ldrb r3, [r3, #0]
  18245. 8007f98: 7013 strb r3, [r2, #0]
  18246. }
  18247. }
  18248. /* Return the CRC computed value */
  18249. return hcrc->Instance->DR;
  18250. 8007f9a: 68fb ldr r3, [r7, #12]
  18251. 8007f9c: 681b ldr r3, [r3, #0]
  18252. 8007f9e: 681b ldr r3, [r3, #0]
  18253. }
  18254. 8007fa0: 4618 mov r0, r3
  18255. 8007fa2: 3724 adds r7, #36 @ 0x24
  18256. 8007fa4: 46bd mov sp, r7
  18257. 8007fa6: f85d 7b04 ldr.w r7, [sp], #4
  18258. 8007faa: 4770 bx lr
  18259. 08007fac <CRC_Handle_16>:
  18260. * @param pBuffer pointer to the input data buffer
  18261. * @param BufferLength input data buffer length
  18262. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18263. */
  18264. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  18265. {
  18266. 8007fac: b480 push {r7}
  18267. 8007fae: b087 sub sp, #28
  18268. 8007fb0: af00 add r7, sp, #0
  18269. 8007fb2: 60f8 str r0, [r7, #12]
  18270. 8007fb4: 60b9 str r1, [r7, #8]
  18271. 8007fb6: 607a str r2, [r7, #4]
  18272. __IO uint16_t *pReg;
  18273. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  18274. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  18275. * a correct type handling by the peripheral */
  18276. for (i = 0U; i < (BufferLength / 2U); i++)
  18277. 8007fb8: 2300 movs r3, #0
  18278. 8007fba: 617b str r3, [r7, #20]
  18279. 8007fbc: e013 b.n 8007fe6 <CRC_Handle_16+0x3a>
  18280. {
  18281. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  18282. 8007fbe: 697b ldr r3, [r7, #20]
  18283. 8007fc0: 009b lsls r3, r3, #2
  18284. 8007fc2: 68ba ldr r2, [r7, #8]
  18285. 8007fc4: 4413 add r3, r2
  18286. 8007fc6: 881b ldrh r3, [r3, #0]
  18287. 8007fc8: 041a lsls r2, r3, #16
  18288. 8007fca: 697b ldr r3, [r7, #20]
  18289. 8007fcc: 009b lsls r3, r3, #2
  18290. 8007fce: 3302 adds r3, #2
  18291. 8007fd0: 68b9 ldr r1, [r7, #8]
  18292. 8007fd2: 440b add r3, r1
  18293. 8007fd4: 881b ldrh r3, [r3, #0]
  18294. 8007fd6: 4619 mov r1, r3
  18295. 8007fd8: 68fb ldr r3, [r7, #12]
  18296. 8007fda: 681b ldr r3, [r3, #0]
  18297. 8007fdc: 430a orrs r2, r1
  18298. 8007fde: 601a str r2, [r3, #0]
  18299. for (i = 0U; i < (BufferLength / 2U); i++)
  18300. 8007fe0: 697b ldr r3, [r7, #20]
  18301. 8007fe2: 3301 adds r3, #1
  18302. 8007fe4: 617b str r3, [r7, #20]
  18303. 8007fe6: 687b ldr r3, [r7, #4]
  18304. 8007fe8: 085b lsrs r3, r3, #1
  18305. 8007fea: 697a ldr r2, [r7, #20]
  18306. 8007fec: 429a cmp r2, r3
  18307. 8007fee: d3e6 bcc.n 8007fbe <CRC_Handle_16+0x12>
  18308. }
  18309. if ((BufferLength % 2U) != 0U)
  18310. 8007ff0: 687b ldr r3, [r7, #4]
  18311. 8007ff2: f003 0301 and.w r3, r3, #1
  18312. 8007ff6: 2b00 cmp r3, #0
  18313. 8007ff8: d009 beq.n 800800e <CRC_Handle_16+0x62>
  18314. {
  18315. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18316. 8007ffa: 68fb ldr r3, [r7, #12]
  18317. 8007ffc: 681b ldr r3, [r3, #0]
  18318. 8007ffe: 613b str r3, [r7, #16]
  18319. *pReg = pBuffer[2U * i];
  18320. 8008000: 697b ldr r3, [r7, #20]
  18321. 8008002: 009b lsls r3, r3, #2
  18322. 8008004: 68ba ldr r2, [r7, #8]
  18323. 8008006: 4413 add r3, r2
  18324. 8008008: 881a ldrh r2, [r3, #0]
  18325. 800800a: 693b ldr r3, [r7, #16]
  18326. 800800c: 801a strh r2, [r3, #0]
  18327. }
  18328. /* Return the CRC computed value */
  18329. return hcrc->Instance->DR;
  18330. 800800e: 68fb ldr r3, [r7, #12]
  18331. 8008010: 681b ldr r3, [r3, #0]
  18332. 8008012: 681b ldr r3, [r3, #0]
  18333. }
  18334. 8008014: 4618 mov r0, r3
  18335. 8008016: 371c adds r7, #28
  18336. 8008018: 46bd mov sp, r7
  18337. 800801a: f85d 7b04 ldr.w r7, [sp], #4
  18338. 800801e: 4770 bx lr
  18339. 08008020 <HAL_CRCEx_Polynomial_Set>:
  18340. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  18341. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  18342. * @retval HAL status
  18343. */
  18344. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  18345. {
  18346. 8008020: b480 push {r7}
  18347. 8008022: b087 sub sp, #28
  18348. 8008024: af00 add r7, sp, #0
  18349. 8008026: 60f8 str r0, [r7, #12]
  18350. 8008028: 60b9 str r1, [r7, #8]
  18351. 800802a: 607a str r2, [r7, #4]
  18352. HAL_StatusTypeDef status = HAL_OK;
  18353. 800802c: 2300 movs r3, #0
  18354. 800802e: 75fb strb r3, [r7, #23]
  18355. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  18356. 8008030: 231f movs r3, #31
  18357. 8008032: 613b str r3, [r7, #16]
  18358. /* Check the parameters */
  18359. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  18360. /* Ensure that the generating polynomial is odd */
  18361. if ((Pol & (uint32_t)(0x1U)) == 0U)
  18362. 8008034: 68bb ldr r3, [r7, #8]
  18363. 8008036: f003 0301 and.w r3, r3, #1
  18364. 800803a: 2b00 cmp r3, #0
  18365. 800803c: d102 bne.n 8008044 <HAL_CRCEx_Polynomial_Set+0x24>
  18366. {
  18367. status = HAL_ERROR;
  18368. 800803e: 2301 movs r3, #1
  18369. 8008040: 75fb strb r3, [r7, #23]
  18370. 8008042: e063 b.n 800810c <HAL_CRCEx_Polynomial_Set+0xec>
  18371. * definition. HAL_ERROR is reported if Pol degree is
  18372. * larger than that indicated by PolyLength.
  18373. * Look for MSB position: msb will contain the degree of
  18374. * the second to the largest polynomial member. E.g., for
  18375. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  18376. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  18377. 8008044: bf00 nop
  18378. 8008046: 693b ldr r3, [r7, #16]
  18379. 8008048: 1e5a subs r2, r3, #1
  18380. 800804a: 613a str r2, [r7, #16]
  18381. 800804c: 2b00 cmp r3, #0
  18382. 800804e: d009 beq.n 8008064 <HAL_CRCEx_Polynomial_Set+0x44>
  18383. 8008050: 693b ldr r3, [r7, #16]
  18384. 8008052: f003 031f and.w r3, r3, #31
  18385. 8008056: 68ba ldr r2, [r7, #8]
  18386. 8008058: fa22 f303 lsr.w r3, r2, r3
  18387. 800805c: f003 0301 and.w r3, r3, #1
  18388. 8008060: 2b00 cmp r3, #0
  18389. 8008062: d0f0 beq.n 8008046 <HAL_CRCEx_Polynomial_Set+0x26>
  18390. {
  18391. }
  18392. switch (PolyLength)
  18393. 8008064: 687b ldr r3, [r7, #4]
  18394. 8008066: 2b18 cmp r3, #24
  18395. 8008068: d846 bhi.n 80080f8 <HAL_CRCEx_Polynomial_Set+0xd8>
  18396. 800806a: a201 add r2, pc, #4 @ (adr r2, 8008070 <HAL_CRCEx_Polynomial_Set+0x50>)
  18397. 800806c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  18398. 8008070: 080080ff .word 0x080080ff
  18399. 8008074: 080080f9 .word 0x080080f9
  18400. 8008078: 080080f9 .word 0x080080f9
  18401. 800807c: 080080f9 .word 0x080080f9
  18402. 8008080: 080080f9 .word 0x080080f9
  18403. 8008084: 080080f9 .word 0x080080f9
  18404. 8008088: 080080f9 .word 0x080080f9
  18405. 800808c: 080080f9 .word 0x080080f9
  18406. 8008090: 080080ed .word 0x080080ed
  18407. 8008094: 080080f9 .word 0x080080f9
  18408. 8008098: 080080f9 .word 0x080080f9
  18409. 800809c: 080080f9 .word 0x080080f9
  18410. 80080a0: 080080f9 .word 0x080080f9
  18411. 80080a4: 080080f9 .word 0x080080f9
  18412. 80080a8: 080080f9 .word 0x080080f9
  18413. 80080ac: 080080f9 .word 0x080080f9
  18414. 80080b0: 080080e1 .word 0x080080e1
  18415. 80080b4: 080080f9 .word 0x080080f9
  18416. 80080b8: 080080f9 .word 0x080080f9
  18417. 80080bc: 080080f9 .word 0x080080f9
  18418. 80080c0: 080080f9 .word 0x080080f9
  18419. 80080c4: 080080f9 .word 0x080080f9
  18420. 80080c8: 080080f9 .word 0x080080f9
  18421. 80080cc: 080080f9 .word 0x080080f9
  18422. 80080d0: 080080d5 .word 0x080080d5
  18423. {
  18424. case CRC_POLYLENGTH_7B:
  18425. if (msb >= HAL_CRC_LENGTH_7B)
  18426. 80080d4: 693b ldr r3, [r7, #16]
  18427. 80080d6: 2b06 cmp r3, #6
  18428. 80080d8: d913 bls.n 8008102 <HAL_CRCEx_Polynomial_Set+0xe2>
  18429. {
  18430. status = HAL_ERROR;
  18431. 80080da: 2301 movs r3, #1
  18432. 80080dc: 75fb strb r3, [r7, #23]
  18433. }
  18434. break;
  18435. 80080de: e010 b.n 8008102 <HAL_CRCEx_Polynomial_Set+0xe2>
  18436. case CRC_POLYLENGTH_8B:
  18437. if (msb >= HAL_CRC_LENGTH_8B)
  18438. 80080e0: 693b ldr r3, [r7, #16]
  18439. 80080e2: 2b07 cmp r3, #7
  18440. 80080e4: d90f bls.n 8008106 <HAL_CRCEx_Polynomial_Set+0xe6>
  18441. {
  18442. status = HAL_ERROR;
  18443. 80080e6: 2301 movs r3, #1
  18444. 80080e8: 75fb strb r3, [r7, #23]
  18445. }
  18446. break;
  18447. 80080ea: e00c b.n 8008106 <HAL_CRCEx_Polynomial_Set+0xe6>
  18448. case CRC_POLYLENGTH_16B:
  18449. if (msb >= HAL_CRC_LENGTH_16B)
  18450. 80080ec: 693b ldr r3, [r7, #16]
  18451. 80080ee: 2b0f cmp r3, #15
  18452. 80080f0: d90b bls.n 800810a <HAL_CRCEx_Polynomial_Set+0xea>
  18453. {
  18454. status = HAL_ERROR;
  18455. 80080f2: 2301 movs r3, #1
  18456. 80080f4: 75fb strb r3, [r7, #23]
  18457. }
  18458. break;
  18459. 80080f6: e008 b.n 800810a <HAL_CRCEx_Polynomial_Set+0xea>
  18460. case CRC_POLYLENGTH_32B:
  18461. /* no polynomial definition vs. polynomial length issue possible */
  18462. break;
  18463. default:
  18464. status = HAL_ERROR;
  18465. 80080f8: 2301 movs r3, #1
  18466. 80080fa: 75fb strb r3, [r7, #23]
  18467. break;
  18468. 80080fc: e006 b.n 800810c <HAL_CRCEx_Polynomial_Set+0xec>
  18469. break;
  18470. 80080fe: bf00 nop
  18471. 8008100: e004 b.n 800810c <HAL_CRCEx_Polynomial_Set+0xec>
  18472. break;
  18473. 8008102: bf00 nop
  18474. 8008104: e002 b.n 800810c <HAL_CRCEx_Polynomial_Set+0xec>
  18475. break;
  18476. 8008106: bf00 nop
  18477. 8008108: e000 b.n 800810c <HAL_CRCEx_Polynomial_Set+0xec>
  18478. break;
  18479. 800810a: bf00 nop
  18480. }
  18481. }
  18482. if (status == HAL_OK)
  18483. 800810c: 7dfb ldrb r3, [r7, #23]
  18484. 800810e: 2b00 cmp r3, #0
  18485. 8008110: d10d bne.n 800812e <HAL_CRCEx_Polynomial_Set+0x10e>
  18486. {
  18487. /* set generating polynomial */
  18488. WRITE_REG(hcrc->Instance->POL, Pol);
  18489. 8008112: 68fb ldr r3, [r7, #12]
  18490. 8008114: 681b ldr r3, [r3, #0]
  18491. 8008116: 68ba ldr r2, [r7, #8]
  18492. 8008118: 615a str r2, [r3, #20]
  18493. /* set generating polynomial size */
  18494. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  18495. 800811a: 68fb ldr r3, [r7, #12]
  18496. 800811c: 681b ldr r3, [r3, #0]
  18497. 800811e: 689b ldr r3, [r3, #8]
  18498. 8008120: f023 0118 bic.w r1, r3, #24
  18499. 8008124: 68fb ldr r3, [r7, #12]
  18500. 8008126: 681b ldr r3, [r3, #0]
  18501. 8008128: 687a ldr r2, [r7, #4]
  18502. 800812a: 430a orrs r2, r1
  18503. 800812c: 609a str r2, [r3, #8]
  18504. }
  18505. /* Return function status */
  18506. return status;
  18507. 800812e: 7dfb ldrb r3, [r7, #23]
  18508. }
  18509. 8008130: 4618 mov r0, r3
  18510. 8008132: 371c adds r7, #28
  18511. 8008134: 46bd mov sp, r7
  18512. 8008136: f85d 7b04 ldr.w r7, [sp], #4
  18513. 800813a: 4770 bx lr
  18514. 0800813c <HAL_DAC_Init>:
  18515. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18516. * the configuration information for the specified DAC.
  18517. * @retval HAL status
  18518. */
  18519. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  18520. {
  18521. 800813c: b580 push {r7, lr}
  18522. 800813e: b082 sub sp, #8
  18523. 8008140: af00 add r7, sp, #0
  18524. 8008142: 6078 str r0, [r7, #4]
  18525. /* Check the DAC peripheral handle */
  18526. if (hdac == NULL)
  18527. 8008144: 687b ldr r3, [r7, #4]
  18528. 8008146: 2b00 cmp r3, #0
  18529. 8008148: d101 bne.n 800814e <HAL_DAC_Init+0x12>
  18530. {
  18531. return HAL_ERROR;
  18532. 800814a: 2301 movs r3, #1
  18533. 800814c: e014 b.n 8008178 <HAL_DAC_Init+0x3c>
  18534. }
  18535. /* Check the parameters */
  18536. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  18537. if (hdac->State == HAL_DAC_STATE_RESET)
  18538. 800814e: 687b ldr r3, [r7, #4]
  18539. 8008150: 791b ldrb r3, [r3, #4]
  18540. 8008152: b2db uxtb r3, r3
  18541. 8008154: 2b00 cmp r3, #0
  18542. 8008156: d105 bne.n 8008164 <HAL_DAC_Init+0x28>
  18543. hdac->MspInitCallback = HAL_DAC_MspInit;
  18544. }
  18545. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18546. /* Allocate lock resource and initialize it */
  18547. hdac->Lock = HAL_UNLOCKED;
  18548. 8008158: 687b ldr r3, [r7, #4]
  18549. 800815a: 2200 movs r2, #0
  18550. 800815c: 715a strb r2, [r3, #5]
  18551. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18552. /* Init the low level hardware */
  18553. hdac->MspInitCallback(hdac);
  18554. #else
  18555. /* Init the low level hardware */
  18556. HAL_DAC_MspInit(hdac);
  18557. 800815e: 6878 ldr r0, [r7, #4]
  18558. 8008160: f7fc f836 bl 80041d0 <HAL_DAC_MspInit>
  18559. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18560. }
  18561. /* Initialize the DAC state*/
  18562. hdac->State = HAL_DAC_STATE_BUSY;
  18563. 8008164: 687b ldr r3, [r7, #4]
  18564. 8008166: 2202 movs r2, #2
  18565. 8008168: 711a strb r2, [r3, #4]
  18566. /* Set DAC error code to none */
  18567. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  18568. 800816a: 687b ldr r3, [r7, #4]
  18569. 800816c: 2200 movs r2, #0
  18570. 800816e: 611a str r2, [r3, #16]
  18571. /* Initialize the DAC state*/
  18572. hdac->State = HAL_DAC_STATE_READY;
  18573. 8008170: 687b ldr r3, [r7, #4]
  18574. 8008172: 2201 movs r2, #1
  18575. 8008174: 711a strb r2, [r3, #4]
  18576. /* Return function status */
  18577. return HAL_OK;
  18578. 8008176: 2300 movs r3, #0
  18579. }
  18580. 8008178: 4618 mov r0, r3
  18581. 800817a: 3708 adds r7, #8
  18582. 800817c: 46bd mov sp, r7
  18583. 800817e: bd80 pop {r7, pc}
  18584. 08008180 <HAL_DAC_Start>:
  18585. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  18586. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18587. * @retval HAL status
  18588. */
  18589. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  18590. {
  18591. 8008180: b480 push {r7}
  18592. 8008182: b083 sub sp, #12
  18593. 8008184: af00 add r7, sp, #0
  18594. 8008186: 6078 str r0, [r7, #4]
  18595. 8008188: 6039 str r1, [r7, #0]
  18596. /* Check the DAC peripheral handle */
  18597. if (hdac == NULL)
  18598. 800818a: 687b ldr r3, [r7, #4]
  18599. 800818c: 2b00 cmp r3, #0
  18600. 800818e: d101 bne.n 8008194 <HAL_DAC_Start+0x14>
  18601. {
  18602. return HAL_ERROR;
  18603. 8008190: 2301 movs r3, #1
  18604. 8008192: e046 b.n 8008222 <HAL_DAC_Start+0xa2>
  18605. /* Check the parameters */
  18606. assert_param(IS_DAC_CHANNEL(Channel));
  18607. /* Process locked */
  18608. __HAL_LOCK(hdac);
  18609. 8008194: 687b ldr r3, [r7, #4]
  18610. 8008196: 795b ldrb r3, [r3, #5]
  18611. 8008198: 2b01 cmp r3, #1
  18612. 800819a: d101 bne.n 80081a0 <HAL_DAC_Start+0x20>
  18613. 800819c: 2302 movs r3, #2
  18614. 800819e: e040 b.n 8008222 <HAL_DAC_Start+0xa2>
  18615. 80081a0: 687b ldr r3, [r7, #4]
  18616. 80081a2: 2201 movs r2, #1
  18617. 80081a4: 715a strb r2, [r3, #5]
  18618. /* Change DAC state */
  18619. hdac->State = HAL_DAC_STATE_BUSY;
  18620. 80081a6: 687b ldr r3, [r7, #4]
  18621. 80081a8: 2202 movs r2, #2
  18622. 80081aa: 711a strb r2, [r3, #4]
  18623. /* Enable the Peripheral */
  18624. __HAL_DAC_ENABLE(hdac, Channel);
  18625. 80081ac: 687b ldr r3, [r7, #4]
  18626. 80081ae: 681b ldr r3, [r3, #0]
  18627. 80081b0: 6819 ldr r1, [r3, #0]
  18628. 80081b2: 683b ldr r3, [r7, #0]
  18629. 80081b4: f003 0310 and.w r3, r3, #16
  18630. 80081b8: 2201 movs r2, #1
  18631. 80081ba: 409a lsls r2, r3
  18632. 80081bc: 687b ldr r3, [r7, #4]
  18633. 80081be: 681b ldr r3, [r3, #0]
  18634. 80081c0: 430a orrs r2, r1
  18635. 80081c2: 601a str r2, [r3, #0]
  18636. if (Channel == DAC_CHANNEL_1)
  18637. 80081c4: 683b ldr r3, [r7, #0]
  18638. 80081c6: 2b00 cmp r3, #0
  18639. 80081c8: d10f bne.n 80081ea <HAL_DAC_Start+0x6a>
  18640. {
  18641. /* Check if software trigger enabled */
  18642. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  18643. 80081ca: 687b ldr r3, [r7, #4]
  18644. 80081cc: 681b ldr r3, [r3, #0]
  18645. 80081ce: 681b ldr r3, [r3, #0]
  18646. 80081d0: f003 033e and.w r3, r3, #62 @ 0x3e
  18647. 80081d4: 2b02 cmp r3, #2
  18648. 80081d6: d11d bne.n 8008214 <HAL_DAC_Start+0x94>
  18649. {
  18650. /* Enable the selected DAC software conversion */
  18651. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  18652. 80081d8: 687b ldr r3, [r7, #4]
  18653. 80081da: 681b ldr r3, [r3, #0]
  18654. 80081dc: 685a ldr r2, [r3, #4]
  18655. 80081de: 687b ldr r3, [r7, #4]
  18656. 80081e0: 681b ldr r3, [r3, #0]
  18657. 80081e2: f042 0201 orr.w r2, r2, #1
  18658. 80081e6: 605a str r2, [r3, #4]
  18659. 80081e8: e014 b.n 8008214 <HAL_DAC_Start+0x94>
  18660. }
  18661. else
  18662. {
  18663. /* Check if software trigger enabled */
  18664. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  18665. 80081ea: 687b ldr r3, [r7, #4]
  18666. 80081ec: 681b ldr r3, [r3, #0]
  18667. 80081ee: 681b ldr r3, [r3, #0]
  18668. 80081f0: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  18669. 80081f4: 683b ldr r3, [r7, #0]
  18670. 80081f6: f003 0310 and.w r3, r3, #16
  18671. 80081fa: 2102 movs r1, #2
  18672. 80081fc: fa01 f303 lsl.w r3, r1, r3
  18673. 8008200: 429a cmp r2, r3
  18674. 8008202: d107 bne.n 8008214 <HAL_DAC_Start+0x94>
  18675. {
  18676. /* Enable the selected DAC software conversion*/
  18677. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  18678. 8008204: 687b ldr r3, [r7, #4]
  18679. 8008206: 681b ldr r3, [r3, #0]
  18680. 8008208: 685a ldr r2, [r3, #4]
  18681. 800820a: 687b ldr r3, [r7, #4]
  18682. 800820c: 681b ldr r3, [r3, #0]
  18683. 800820e: f042 0202 orr.w r2, r2, #2
  18684. 8008212: 605a str r2, [r3, #4]
  18685. }
  18686. }
  18687. /* Change DAC state */
  18688. hdac->State = HAL_DAC_STATE_READY;
  18689. 8008214: 687b ldr r3, [r7, #4]
  18690. 8008216: 2201 movs r2, #1
  18691. 8008218: 711a strb r2, [r3, #4]
  18692. /* Process unlocked */
  18693. __HAL_UNLOCK(hdac);
  18694. 800821a: 687b ldr r3, [r7, #4]
  18695. 800821c: 2200 movs r2, #0
  18696. 800821e: 715a strb r2, [r3, #5]
  18697. /* Return function status */
  18698. return HAL_OK;
  18699. 8008220: 2300 movs r3, #0
  18700. }
  18701. 8008222: 4618 mov r0, r3
  18702. 8008224: 370c adds r7, #12
  18703. 8008226: 46bd mov sp, r7
  18704. 8008228: f85d 7b04 ldr.w r7, [sp], #4
  18705. 800822c: 4770 bx lr
  18706. 0800822e <HAL_DAC_IRQHandler>:
  18707. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18708. * the configuration information for the specified DAC.
  18709. * @retval None
  18710. */
  18711. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  18712. {
  18713. 800822e: b580 push {r7, lr}
  18714. 8008230: b084 sub sp, #16
  18715. 8008232: af00 add r7, sp, #0
  18716. 8008234: 6078 str r0, [r7, #4]
  18717. uint32_t itsource = hdac->Instance->CR;
  18718. 8008236: 687b ldr r3, [r7, #4]
  18719. 8008238: 681b ldr r3, [r3, #0]
  18720. 800823a: 681b ldr r3, [r3, #0]
  18721. 800823c: 60fb str r3, [r7, #12]
  18722. uint32_t itflag = hdac->Instance->SR;
  18723. 800823e: 687b ldr r3, [r7, #4]
  18724. 8008240: 681b ldr r3, [r3, #0]
  18725. 8008242: 6b5b ldr r3, [r3, #52] @ 0x34
  18726. 8008244: 60bb str r3, [r7, #8]
  18727. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  18728. 8008246: 68fb ldr r3, [r7, #12]
  18729. 8008248: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18730. 800824c: 2b00 cmp r3, #0
  18731. 800824e: d01d beq.n 800828c <HAL_DAC_IRQHandler+0x5e>
  18732. {
  18733. /* Check underrun flag of DAC channel 1 */
  18734. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  18735. 8008250: 68bb ldr r3, [r7, #8]
  18736. 8008252: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18737. 8008256: 2b00 cmp r3, #0
  18738. 8008258: d018 beq.n 800828c <HAL_DAC_IRQHandler+0x5e>
  18739. {
  18740. /* Change DAC state to error state */
  18741. hdac->State = HAL_DAC_STATE_ERROR;
  18742. 800825a: 687b ldr r3, [r7, #4]
  18743. 800825c: 2204 movs r2, #4
  18744. 800825e: 711a strb r2, [r3, #4]
  18745. /* Set DAC error code to channel1 DMA underrun error */
  18746. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  18747. 8008260: 687b ldr r3, [r7, #4]
  18748. 8008262: 691b ldr r3, [r3, #16]
  18749. 8008264: f043 0201 orr.w r2, r3, #1
  18750. 8008268: 687b ldr r3, [r7, #4]
  18751. 800826a: 611a str r2, [r3, #16]
  18752. /* Clear the underrun flag */
  18753. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  18754. 800826c: 687b ldr r3, [r7, #4]
  18755. 800826e: 681b ldr r3, [r3, #0]
  18756. 8008270: f44f 5200 mov.w r2, #8192 @ 0x2000
  18757. 8008274: 635a str r2, [r3, #52] @ 0x34
  18758. /* Disable the selected DAC channel1 DMA request */
  18759. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  18760. 8008276: 687b ldr r3, [r7, #4]
  18761. 8008278: 681b ldr r3, [r3, #0]
  18762. 800827a: 681a ldr r2, [r3, #0]
  18763. 800827c: 687b ldr r3, [r7, #4]
  18764. 800827e: 681b ldr r3, [r3, #0]
  18765. 8008280: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  18766. 8008284: 601a str r2, [r3, #0]
  18767. /* Error callback */
  18768. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18769. hdac->DMAUnderrunCallbackCh1(hdac);
  18770. #else
  18771. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  18772. 8008286: 6878 ldr r0, [r7, #4]
  18773. 8008288: f000 f851 bl 800832e <HAL_DAC_DMAUnderrunCallbackCh1>
  18774. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18775. }
  18776. }
  18777. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  18778. 800828c: 68fb ldr r3, [r7, #12]
  18779. 800828e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18780. 8008292: 2b00 cmp r3, #0
  18781. 8008294: d01d beq.n 80082d2 <HAL_DAC_IRQHandler+0xa4>
  18782. {
  18783. /* Check underrun flag of DAC channel 2 */
  18784. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  18785. 8008296: 68bb ldr r3, [r7, #8]
  18786. 8008298: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18787. 800829c: 2b00 cmp r3, #0
  18788. 800829e: d018 beq.n 80082d2 <HAL_DAC_IRQHandler+0xa4>
  18789. {
  18790. /* Change DAC state to error state */
  18791. hdac->State = HAL_DAC_STATE_ERROR;
  18792. 80082a0: 687b ldr r3, [r7, #4]
  18793. 80082a2: 2204 movs r2, #4
  18794. 80082a4: 711a strb r2, [r3, #4]
  18795. /* Set DAC error code to channel2 DMA underrun error */
  18796. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  18797. 80082a6: 687b ldr r3, [r7, #4]
  18798. 80082a8: 691b ldr r3, [r3, #16]
  18799. 80082aa: f043 0202 orr.w r2, r3, #2
  18800. 80082ae: 687b ldr r3, [r7, #4]
  18801. 80082b0: 611a str r2, [r3, #16]
  18802. /* Clear the underrun flag */
  18803. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  18804. 80082b2: 687b ldr r3, [r7, #4]
  18805. 80082b4: 681b ldr r3, [r3, #0]
  18806. 80082b6: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  18807. 80082ba: 635a str r2, [r3, #52] @ 0x34
  18808. /* Disable the selected DAC channel2 DMA request */
  18809. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  18810. 80082bc: 687b ldr r3, [r7, #4]
  18811. 80082be: 681b ldr r3, [r3, #0]
  18812. 80082c0: 681a ldr r2, [r3, #0]
  18813. 80082c2: 687b ldr r3, [r7, #4]
  18814. 80082c4: 681b ldr r3, [r3, #0]
  18815. 80082c6: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  18816. 80082ca: 601a str r2, [r3, #0]
  18817. /* Error callback */
  18818. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18819. hdac->DMAUnderrunCallbackCh2(hdac);
  18820. #else
  18821. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  18822. 80082cc: 6878 ldr r0, [r7, #4]
  18823. 80082ce: f000 f97b bl 80085c8 <HAL_DACEx_DMAUnderrunCallbackCh2>
  18824. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18825. }
  18826. }
  18827. }
  18828. 80082d2: bf00 nop
  18829. 80082d4: 3710 adds r7, #16
  18830. 80082d6: 46bd mov sp, r7
  18831. 80082d8: bd80 pop {r7, pc}
  18832. 080082da <HAL_DAC_SetValue>:
  18833. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  18834. * @param Data Data to be loaded in the selected data holding register.
  18835. * @retval HAL status
  18836. */
  18837. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  18838. {
  18839. 80082da: b480 push {r7}
  18840. 80082dc: b087 sub sp, #28
  18841. 80082de: af00 add r7, sp, #0
  18842. 80082e0: 60f8 str r0, [r7, #12]
  18843. 80082e2: 60b9 str r1, [r7, #8]
  18844. 80082e4: 607a str r2, [r7, #4]
  18845. 80082e6: 603b str r3, [r7, #0]
  18846. __IO uint32_t tmp = 0UL;
  18847. 80082e8: 2300 movs r3, #0
  18848. 80082ea: 617b str r3, [r7, #20]
  18849. /* Check the DAC peripheral handle */
  18850. if (hdac == NULL)
  18851. 80082ec: 68fb ldr r3, [r7, #12]
  18852. 80082ee: 2b00 cmp r3, #0
  18853. 80082f0: d101 bne.n 80082f6 <HAL_DAC_SetValue+0x1c>
  18854. {
  18855. return HAL_ERROR;
  18856. 80082f2: 2301 movs r3, #1
  18857. 80082f4: e015 b.n 8008322 <HAL_DAC_SetValue+0x48>
  18858. /* Check the parameters */
  18859. assert_param(IS_DAC_CHANNEL(Channel));
  18860. assert_param(IS_DAC_ALIGN(Alignment));
  18861. assert_param(IS_DAC_DATA(Data));
  18862. tmp = (uint32_t)hdac->Instance;
  18863. 80082f6: 68fb ldr r3, [r7, #12]
  18864. 80082f8: 681b ldr r3, [r3, #0]
  18865. 80082fa: 617b str r3, [r7, #20]
  18866. if (Channel == DAC_CHANNEL_1)
  18867. 80082fc: 68bb ldr r3, [r7, #8]
  18868. 80082fe: 2b00 cmp r3, #0
  18869. 8008300: d105 bne.n 800830e <HAL_DAC_SetValue+0x34>
  18870. {
  18871. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  18872. 8008302: 697a ldr r2, [r7, #20]
  18873. 8008304: 687b ldr r3, [r7, #4]
  18874. 8008306: 4413 add r3, r2
  18875. 8008308: 3308 adds r3, #8
  18876. 800830a: 617b str r3, [r7, #20]
  18877. 800830c: e004 b.n 8008318 <HAL_DAC_SetValue+0x3e>
  18878. }
  18879. else
  18880. {
  18881. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  18882. 800830e: 697a ldr r2, [r7, #20]
  18883. 8008310: 687b ldr r3, [r7, #4]
  18884. 8008312: 4413 add r3, r2
  18885. 8008314: 3314 adds r3, #20
  18886. 8008316: 617b str r3, [r7, #20]
  18887. }
  18888. /* Set the DAC channel selected data holding register */
  18889. *(__IO uint32_t *) tmp = Data;
  18890. 8008318: 697b ldr r3, [r7, #20]
  18891. 800831a: 461a mov r2, r3
  18892. 800831c: 683b ldr r3, [r7, #0]
  18893. 800831e: 6013 str r3, [r2, #0]
  18894. /* Return function status */
  18895. return HAL_OK;
  18896. 8008320: 2300 movs r3, #0
  18897. }
  18898. 8008322: 4618 mov r0, r3
  18899. 8008324: 371c adds r7, #28
  18900. 8008326: 46bd mov sp, r7
  18901. 8008328: f85d 7b04 ldr.w r7, [sp], #4
  18902. 800832c: 4770 bx lr
  18903. 0800832e <HAL_DAC_DMAUnderrunCallbackCh1>:
  18904. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18905. * the configuration information for the specified DAC.
  18906. * @retval None
  18907. */
  18908. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  18909. {
  18910. 800832e: b480 push {r7}
  18911. 8008330: b083 sub sp, #12
  18912. 8008332: af00 add r7, sp, #0
  18913. 8008334: 6078 str r0, [r7, #4]
  18914. UNUSED(hdac);
  18915. /* NOTE : This function should not be modified, when the callback is needed,
  18916. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  18917. */
  18918. }
  18919. 8008336: bf00 nop
  18920. 8008338: 370c adds r7, #12
  18921. 800833a: 46bd mov sp, r7
  18922. 800833c: f85d 7b04 ldr.w r7, [sp], #4
  18923. 8008340: 4770 bx lr
  18924. ...
  18925. 08008344 <HAL_DAC_ConfigChannel>:
  18926. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18927. * @retval HAL status
  18928. */
  18929. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  18930. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  18931. {
  18932. 8008344: b580 push {r7, lr}
  18933. 8008346: b08a sub sp, #40 @ 0x28
  18934. 8008348: af00 add r7, sp, #0
  18935. 800834a: 60f8 str r0, [r7, #12]
  18936. 800834c: 60b9 str r1, [r7, #8]
  18937. 800834e: 607a str r2, [r7, #4]
  18938. HAL_StatusTypeDef status = HAL_OK;
  18939. 8008350: 2300 movs r3, #0
  18940. 8008352: f887 3023 strb.w r3, [r7, #35] @ 0x23
  18941. uint32_t tmpreg2;
  18942. uint32_t tickstart;
  18943. uint32_t connectOnChip;
  18944. /* Check the DAC peripheral handle and channel configuration struct */
  18945. if ((hdac == NULL) || (sConfig == NULL))
  18946. 8008356: 68fb ldr r3, [r7, #12]
  18947. 8008358: 2b00 cmp r3, #0
  18948. 800835a: d002 beq.n 8008362 <HAL_DAC_ConfigChannel+0x1e>
  18949. 800835c: 68bb ldr r3, [r7, #8]
  18950. 800835e: 2b00 cmp r3, #0
  18951. 8008360: d101 bne.n 8008366 <HAL_DAC_ConfigChannel+0x22>
  18952. {
  18953. return HAL_ERROR;
  18954. 8008362: 2301 movs r3, #1
  18955. 8008364: e12a b.n 80085bc <HAL_DAC_ConfigChannel+0x278>
  18956. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  18957. }
  18958. assert_param(IS_DAC_CHANNEL(Channel));
  18959. /* Process locked */
  18960. __HAL_LOCK(hdac);
  18961. 8008366: 68fb ldr r3, [r7, #12]
  18962. 8008368: 795b ldrb r3, [r3, #5]
  18963. 800836a: 2b01 cmp r3, #1
  18964. 800836c: d101 bne.n 8008372 <HAL_DAC_ConfigChannel+0x2e>
  18965. 800836e: 2302 movs r3, #2
  18966. 8008370: e124 b.n 80085bc <HAL_DAC_ConfigChannel+0x278>
  18967. 8008372: 68fb ldr r3, [r7, #12]
  18968. 8008374: 2201 movs r2, #1
  18969. 8008376: 715a strb r2, [r3, #5]
  18970. /* Change DAC state */
  18971. hdac->State = HAL_DAC_STATE_BUSY;
  18972. 8008378: 68fb ldr r3, [r7, #12]
  18973. 800837a: 2202 movs r2, #2
  18974. 800837c: 711a strb r2, [r3, #4]
  18975. /* Sample and hold configuration */
  18976. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  18977. 800837e: 68bb ldr r3, [r7, #8]
  18978. 8008380: 681b ldr r3, [r3, #0]
  18979. 8008382: 2b04 cmp r3, #4
  18980. 8008384: d17a bne.n 800847c <HAL_DAC_ConfigChannel+0x138>
  18981. {
  18982. /* Get timeout */
  18983. tickstart = HAL_GetTick();
  18984. 8008386: f7fd fd8d bl 8005ea4 <HAL_GetTick>
  18985. 800838a: 61f8 str r0, [r7, #28]
  18986. if (Channel == DAC_CHANNEL_1)
  18987. 800838c: 687b ldr r3, [r7, #4]
  18988. 800838e: 2b00 cmp r3, #0
  18989. 8008390: d13d bne.n 800840e <HAL_DAC_ConfigChannel+0xca>
  18990. {
  18991. /* SHSR1 can be written when BWST1 is cleared */
  18992. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18993. 8008392: e018 b.n 80083c6 <HAL_DAC_ConfigChannel+0x82>
  18994. {
  18995. /* Check for the Timeout */
  18996. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18997. 8008394: f7fd fd86 bl 8005ea4 <HAL_GetTick>
  18998. 8008398: 4602 mov r2, r0
  18999. 800839a: 69fb ldr r3, [r7, #28]
  19000. 800839c: 1ad3 subs r3, r2, r3
  19001. 800839e: 2b01 cmp r3, #1
  19002. 80083a0: d911 bls.n 80083c6 <HAL_DAC_ConfigChannel+0x82>
  19003. {
  19004. /* New check to avoid false timeout detection in case of preemption */
  19005. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  19006. 80083a2: 68fb ldr r3, [r7, #12]
  19007. 80083a4: 681b ldr r3, [r3, #0]
  19008. 80083a6: 6b5a ldr r2, [r3, #52] @ 0x34
  19009. 80083a8: 4b86 ldr r3, [pc, #536] @ (80085c4 <HAL_DAC_ConfigChannel+0x280>)
  19010. 80083aa: 4013 ands r3, r2
  19011. 80083ac: 2b00 cmp r3, #0
  19012. 80083ae: d00a beq.n 80083c6 <HAL_DAC_ConfigChannel+0x82>
  19013. {
  19014. /* Update error code */
  19015. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  19016. 80083b0: 68fb ldr r3, [r7, #12]
  19017. 80083b2: 691b ldr r3, [r3, #16]
  19018. 80083b4: f043 0208 orr.w r2, r3, #8
  19019. 80083b8: 68fb ldr r3, [r7, #12]
  19020. 80083ba: 611a str r2, [r3, #16]
  19021. /* Change the DMA state */
  19022. hdac->State = HAL_DAC_STATE_TIMEOUT;
  19023. 80083bc: 68fb ldr r3, [r7, #12]
  19024. 80083be: 2203 movs r2, #3
  19025. 80083c0: 711a strb r2, [r3, #4]
  19026. return HAL_TIMEOUT;
  19027. 80083c2: 2303 movs r3, #3
  19028. 80083c4: e0fa b.n 80085bc <HAL_DAC_ConfigChannel+0x278>
  19029. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  19030. 80083c6: 68fb ldr r3, [r7, #12]
  19031. 80083c8: 681b ldr r3, [r3, #0]
  19032. 80083ca: 6b5a ldr r2, [r3, #52] @ 0x34
  19033. 80083cc: 4b7d ldr r3, [pc, #500] @ (80085c4 <HAL_DAC_ConfigChannel+0x280>)
  19034. 80083ce: 4013 ands r3, r2
  19035. 80083d0: 2b00 cmp r3, #0
  19036. 80083d2: d1df bne.n 8008394 <HAL_DAC_ConfigChannel+0x50>
  19037. }
  19038. }
  19039. }
  19040. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  19041. 80083d4: 68fb ldr r3, [r7, #12]
  19042. 80083d6: 681b ldr r3, [r3, #0]
  19043. 80083d8: 68ba ldr r2, [r7, #8]
  19044. 80083da: 6992 ldr r2, [r2, #24]
  19045. 80083dc: 641a str r2, [r3, #64] @ 0x40
  19046. 80083de: e020 b.n 8008422 <HAL_DAC_ConfigChannel+0xde>
  19047. {
  19048. /* SHSR2 can be written when BWST2 is cleared */
  19049. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19050. {
  19051. /* Check for the Timeout */
  19052. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  19053. 80083e0: f7fd fd60 bl 8005ea4 <HAL_GetTick>
  19054. 80083e4: 4602 mov r2, r0
  19055. 80083e6: 69fb ldr r3, [r7, #28]
  19056. 80083e8: 1ad3 subs r3, r2, r3
  19057. 80083ea: 2b01 cmp r3, #1
  19058. 80083ec: d90f bls.n 800840e <HAL_DAC_ConfigChannel+0xca>
  19059. {
  19060. /* New check to avoid false timeout detection in case of preemption */
  19061. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19062. 80083ee: 68fb ldr r3, [r7, #12]
  19063. 80083f0: 681b ldr r3, [r3, #0]
  19064. 80083f2: 6b5b ldr r3, [r3, #52] @ 0x34
  19065. 80083f4: 2b00 cmp r3, #0
  19066. 80083f6: da0a bge.n 800840e <HAL_DAC_ConfigChannel+0xca>
  19067. {
  19068. /* Update error code */
  19069. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  19070. 80083f8: 68fb ldr r3, [r7, #12]
  19071. 80083fa: 691b ldr r3, [r3, #16]
  19072. 80083fc: f043 0208 orr.w r2, r3, #8
  19073. 8008400: 68fb ldr r3, [r7, #12]
  19074. 8008402: 611a str r2, [r3, #16]
  19075. /* Change the DMA state */
  19076. hdac->State = HAL_DAC_STATE_TIMEOUT;
  19077. 8008404: 68fb ldr r3, [r7, #12]
  19078. 8008406: 2203 movs r2, #3
  19079. 8008408: 711a strb r2, [r3, #4]
  19080. return HAL_TIMEOUT;
  19081. 800840a: 2303 movs r3, #3
  19082. 800840c: e0d6 b.n 80085bc <HAL_DAC_ConfigChannel+0x278>
  19083. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19084. 800840e: 68fb ldr r3, [r7, #12]
  19085. 8008410: 681b ldr r3, [r3, #0]
  19086. 8008412: 6b5b ldr r3, [r3, #52] @ 0x34
  19087. 8008414: 2b00 cmp r3, #0
  19088. 8008416: dbe3 blt.n 80083e0 <HAL_DAC_ConfigChannel+0x9c>
  19089. }
  19090. }
  19091. }
  19092. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  19093. 8008418: 68fb ldr r3, [r7, #12]
  19094. 800841a: 681b ldr r3, [r3, #0]
  19095. 800841c: 68ba ldr r2, [r7, #8]
  19096. 800841e: 6992 ldr r2, [r2, #24]
  19097. 8008420: 645a str r2, [r3, #68] @ 0x44
  19098. }
  19099. /* HoldTime */
  19100. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  19101. 8008422: 68fb ldr r3, [r7, #12]
  19102. 8008424: 681b ldr r3, [r3, #0]
  19103. 8008426: 6c9a ldr r2, [r3, #72] @ 0x48
  19104. 8008428: 687b ldr r3, [r7, #4]
  19105. 800842a: f003 0310 and.w r3, r3, #16
  19106. 800842e: f240 31ff movw r1, #1023 @ 0x3ff
  19107. 8008432: fa01 f303 lsl.w r3, r1, r3
  19108. 8008436: 43db mvns r3, r3
  19109. 8008438: ea02 0103 and.w r1, r2, r3
  19110. 800843c: 68bb ldr r3, [r7, #8]
  19111. 800843e: 69da ldr r2, [r3, #28]
  19112. 8008440: 687b ldr r3, [r7, #4]
  19113. 8008442: f003 0310 and.w r3, r3, #16
  19114. 8008446: 409a lsls r2, r3
  19115. 8008448: 68fb ldr r3, [r7, #12]
  19116. 800844a: 681b ldr r3, [r3, #0]
  19117. 800844c: 430a orrs r2, r1
  19118. 800844e: 649a str r2, [r3, #72] @ 0x48
  19119. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  19120. /* RefreshTime */
  19121. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  19122. 8008450: 68fb ldr r3, [r7, #12]
  19123. 8008452: 681b ldr r3, [r3, #0]
  19124. 8008454: 6cda ldr r2, [r3, #76] @ 0x4c
  19125. 8008456: 687b ldr r3, [r7, #4]
  19126. 8008458: f003 0310 and.w r3, r3, #16
  19127. 800845c: 21ff movs r1, #255 @ 0xff
  19128. 800845e: fa01 f303 lsl.w r3, r1, r3
  19129. 8008462: 43db mvns r3, r3
  19130. 8008464: ea02 0103 and.w r1, r2, r3
  19131. 8008468: 68bb ldr r3, [r7, #8]
  19132. 800846a: 6a1a ldr r2, [r3, #32]
  19133. 800846c: 687b ldr r3, [r7, #4]
  19134. 800846e: f003 0310 and.w r3, r3, #16
  19135. 8008472: 409a lsls r2, r3
  19136. 8008474: 68fb ldr r3, [r7, #12]
  19137. 8008476: 681b ldr r3, [r3, #0]
  19138. 8008478: 430a orrs r2, r1
  19139. 800847a: 64da str r2, [r3, #76] @ 0x4c
  19140. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  19141. }
  19142. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  19143. 800847c: 68bb ldr r3, [r7, #8]
  19144. 800847e: 691b ldr r3, [r3, #16]
  19145. 8008480: 2b01 cmp r3, #1
  19146. 8008482: d11d bne.n 80084c0 <HAL_DAC_ConfigChannel+0x17c>
  19147. /* USER TRIMMING */
  19148. {
  19149. /* Get the DAC CCR value */
  19150. tmpreg1 = hdac->Instance->CCR;
  19151. 8008484: 68fb ldr r3, [r7, #12]
  19152. 8008486: 681b ldr r3, [r3, #0]
  19153. 8008488: 6b9b ldr r3, [r3, #56] @ 0x38
  19154. 800848a: 61bb str r3, [r7, #24]
  19155. /* Clear trimming value */
  19156. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  19157. 800848c: 687b ldr r3, [r7, #4]
  19158. 800848e: f003 0310 and.w r3, r3, #16
  19159. 8008492: 221f movs r2, #31
  19160. 8008494: fa02 f303 lsl.w r3, r2, r3
  19161. 8008498: 43db mvns r3, r3
  19162. 800849a: 69ba ldr r2, [r7, #24]
  19163. 800849c: 4013 ands r3, r2
  19164. 800849e: 61bb str r3, [r7, #24]
  19165. /* Configure for the selected trimming offset */
  19166. tmpreg2 = sConfig->DAC_TrimmingValue;
  19167. 80084a0: 68bb ldr r3, [r7, #8]
  19168. 80084a2: 695b ldr r3, [r3, #20]
  19169. 80084a4: 617b str r3, [r7, #20]
  19170. /* Calculate CCR register value depending on DAC_Channel */
  19171. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19172. 80084a6: 687b ldr r3, [r7, #4]
  19173. 80084a8: f003 0310 and.w r3, r3, #16
  19174. 80084ac: 697a ldr r2, [r7, #20]
  19175. 80084ae: fa02 f303 lsl.w r3, r2, r3
  19176. 80084b2: 69ba ldr r2, [r7, #24]
  19177. 80084b4: 4313 orrs r3, r2
  19178. 80084b6: 61bb str r3, [r7, #24]
  19179. /* Write to DAC CCR */
  19180. hdac->Instance->CCR = tmpreg1;
  19181. 80084b8: 68fb ldr r3, [r7, #12]
  19182. 80084ba: 681b ldr r3, [r3, #0]
  19183. 80084bc: 69ba ldr r2, [r7, #24]
  19184. 80084be: 639a str r2, [r3, #56] @ 0x38
  19185. }
  19186. /* else factory trimming is used (factory setting are available at reset)*/
  19187. /* SW Nothing has nothing to do */
  19188. /* Get the DAC MCR value */
  19189. tmpreg1 = hdac->Instance->MCR;
  19190. 80084c0: 68fb ldr r3, [r7, #12]
  19191. 80084c2: 681b ldr r3, [r3, #0]
  19192. 80084c4: 6bdb ldr r3, [r3, #60] @ 0x3c
  19193. 80084c6: 61bb str r3, [r7, #24]
  19194. /* Clear DAC_MCR_MODEx bits */
  19195. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  19196. 80084c8: 687b ldr r3, [r7, #4]
  19197. 80084ca: f003 0310 and.w r3, r3, #16
  19198. 80084ce: 2207 movs r2, #7
  19199. 80084d0: fa02 f303 lsl.w r3, r2, r3
  19200. 80084d4: 43db mvns r3, r3
  19201. 80084d6: 69ba ldr r2, [r7, #24]
  19202. 80084d8: 4013 ands r3, r2
  19203. 80084da: 61bb str r3, [r7, #24]
  19204. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  19205. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  19206. 80084dc: 68bb ldr r3, [r7, #8]
  19207. 80084de: 68db ldr r3, [r3, #12]
  19208. 80084e0: 2b01 cmp r3, #1
  19209. 80084e2: d102 bne.n 80084ea <HAL_DAC_ConfigChannel+0x1a6>
  19210. {
  19211. connectOnChip = 0x00000000UL;
  19212. 80084e4: 2300 movs r3, #0
  19213. 80084e6: 627b str r3, [r7, #36] @ 0x24
  19214. 80084e8: e00f b.n 800850a <HAL_DAC_ConfigChannel+0x1c6>
  19215. }
  19216. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  19217. 80084ea: 68bb ldr r3, [r7, #8]
  19218. 80084ec: 68db ldr r3, [r3, #12]
  19219. 80084ee: 2b02 cmp r3, #2
  19220. 80084f0: d102 bne.n 80084f8 <HAL_DAC_ConfigChannel+0x1b4>
  19221. {
  19222. connectOnChip = DAC_MCR_MODE1_0;
  19223. 80084f2: 2301 movs r3, #1
  19224. 80084f4: 627b str r3, [r7, #36] @ 0x24
  19225. 80084f6: e008 b.n 800850a <HAL_DAC_ConfigChannel+0x1c6>
  19226. }
  19227. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  19228. {
  19229. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  19230. 80084f8: 68bb ldr r3, [r7, #8]
  19231. 80084fa: 689b ldr r3, [r3, #8]
  19232. 80084fc: 2b00 cmp r3, #0
  19233. 80084fe: d102 bne.n 8008506 <HAL_DAC_ConfigChannel+0x1c2>
  19234. {
  19235. connectOnChip = DAC_MCR_MODE1_0;
  19236. 8008500: 2301 movs r3, #1
  19237. 8008502: 627b str r3, [r7, #36] @ 0x24
  19238. 8008504: e001 b.n 800850a <HAL_DAC_ConfigChannel+0x1c6>
  19239. }
  19240. else
  19241. {
  19242. connectOnChip = 0x00000000UL;
  19243. 8008506: 2300 movs r3, #0
  19244. 8008508: 627b str r3, [r7, #36] @ 0x24
  19245. }
  19246. }
  19247. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  19248. 800850a: 68bb ldr r3, [r7, #8]
  19249. 800850c: 681a ldr r2, [r3, #0]
  19250. 800850e: 68bb ldr r3, [r7, #8]
  19251. 8008510: 689b ldr r3, [r3, #8]
  19252. 8008512: 4313 orrs r3, r2
  19253. 8008514: 6a7a ldr r2, [r7, #36] @ 0x24
  19254. 8008516: 4313 orrs r3, r2
  19255. 8008518: 617b str r3, [r7, #20]
  19256. /* Calculate MCR register value depending on DAC_Channel */
  19257. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19258. 800851a: 687b ldr r3, [r7, #4]
  19259. 800851c: f003 0310 and.w r3, r3, #16
  19260. 8008520: 697a ldr r2, [r7, #20]
  19261. 8008522: fa02 f303 lsl.w r3, r2, r3
  19262. 8008526: 69ba ldr r2, [r7, #24]
  19263. 8008528: 4313 orrs r3, r2
  19264. 800852a: 61bb str r3, [r7, #24]
  19265. /* Write to DAC MCR */
  19266. hdac->Instance->MCR = tmpreg1;
  19267. 800852c: 68fb ldr r3, [r7, #12]
  19268. 800852e: 681b ldr r3, [r3, #0]
  19269. 8008530: 69ba ldr r2, [r7, #24]
  19270. 8008532: 63da str r2, [r3, #60] @ 0x3c
  19271. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  19272. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  19273. 8008534: 68fb ldr r3, [r7, #12]
  19274. 8008536: 681b ldr r3, [r3, #0]
  19275. 8008538: 6819 ldr r1, [r3, #0]
  19276. 800853a: 687b ldr r3, [r7, #4]
  19277. 800853c: f003 0310 and.w r3, r3, #16
  19278. 8008540: f44f 4280 mov.w r2, #16384 @ 0x4000
  19279. 8008544: fa02 f303 lsl.w r3, r2, r3
  19280. 8008548: 43da mvns r2, r3
  19281. 800854a: 68fb ldr r3, [r7, #12]
  19282. 800854c: 681b ldr r3, [r3, #0]
  19283. 800854e: 400a ands r2, r1
  19284. 8008550: 601a str r2, [r3, #0]
  19285. /* Get the DAC CR value */
  19286. tmpreg1 = hdac->Instance->CR;
  19287. 8008552: 68fb ldr r3, [r7, #12]
  19288. 8008554: 681b ldr r3, [r3, #0]
  19289. 8008556: 681b ldr r3, [r3, #0]
  19290. 8008558: 61bb str r3, [r7, #24]
  19291. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  19292. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  19293. 800855a: 687b ldr r3, [r7, #4]
  19294. 800855c: f003 0310 and.w r3, r3, #16
  19295. 8008560: f640 72fe movw r2, #4094 @ 0xffe
  19296. 8008564: fa02 f303 lsl.w r3, r2, r3
  19297. 8008568: 43db mvns r3, r3
  19298. 800856a: 69ba ldr r2, [r7, #24]
  19299. 800856c: 4013 ands r3, r2
  19300. 800856e: 61bb str r3, [r7, #24]
  19301. /* Configure for the selected DAC channel: trigger */
  19302. /* Set TSELx and TENx bits according to DAC_Trigger value */
  19303. tmpreg2 = sConfig->DAC_Trigger;
  19304. 8008570: 68bb ldr r3, [r7, #8]
  19305. 8008572: 685b ldr r3, [r3, #4]
  19306. 8008574: 617b str r3, [r7, #20]
  19307. /* Calculate CR register value depending on DAC_Channel */
  19308. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19309. 8008576: 687b ldr r3, [r7, #4]
  19310. 8008578: f003 0310 and.w r3, r3, #16
  19311. 800857c: 697a ldr r2, [r7, #20]
  19312. 800857e: fa02 f303 lsl.w r3, r2, r3
  19313. 8008582: 69ba ldr r2, [r7, #24]
  19314. 8008584: 4313 orrs r3, r2
  19315. 8008586: 61bb str r3, [r7, #24]
  19316. /* Write to DAC CR */
  19317. hdac->Instance->CR = tmpreg1;
  19318. 8008588: 68fb ldr r3, [r7, #12]
  19319. 800858a: 681b ldr r3, [r3, #0]
  19320. 800858c: 69ba ldr r2, [r7, #24]
  19321. 800858e: 601a str r2, [r3, #0]
  19322. /* Disable wave generation */
  19323. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  19324. 8008590: 68fb ldr r3, [r7, #12]
  19325. 8008592: 681b ldr r3, [r3, #0]
  19326. 8008594: 6819 ldr r1, [r3, #0]
  19327. 8008596: 687b ldr r3, [r7, #4]
  19328. 8008598: f003 0310 and.w r3, r3, #16
  19329. 800859c: 22c0 movs r2, #192 @ 0xc0
  19330. 800859e: fa02 f303 lsl.w r3, r2, r3
  19331. 80085a2: 43da mvns r2, r3
  19332. 80085a4: 68fb ldr r3, [r7, #12]
  19333. 80085a6: 681b ldr r3, [r3, #0]
  19334. 80085a8: 400a ands r2, r1
  19335. 80085aa: 601a str r2, [r3, #0]
  19336. /* Change DAC state */
  19337. hdac->State = HAL_DAC_STATE_READY;
  19338. 80085ac: 68fb ldr r3, [r7, #12]
  19339. 80085ae: 2201 movs r2, #1
  19340. 80085b0: 711a strb r2, [r3, #4]
  19341. /* Process unlocked */
  19342. __HAL_UNLOCK(hdac);
  19343. 80085b2: 68fb ldr r3, [r7, #12]
  19344. 80085b4: 2200 movs r2, #0
  19345. 80085b6: 715a strb r2, [r3, #5]
  19346. /* Return function status */
  19347. return status;
  19348. 80085b8: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  19349. }
  19350. 80085bc: 4618 mov r0, r3
  19351. 80085be: 3728 adds r7, #40 @ 0x28
  19352. 80085c0: 46bd mov sp, r7
  19353. 80085c2: bd80 pop {r7, pc}
  19354. 80085c4: 20008000 .word 0x20008000
  19355. 080085c8 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  19356. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  19357. * the configuration information for the specified DAC.
  19358. * @retval None
  19359. */
  19360. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  19361. {
  19362. 80085c8: b480 push {r7}
  19363. 80085ca: b083 sub sp, #12
  19364. 80085cc: af00 add r7, sp, #0
  19365. 80085ce: 6078 str r0, [r7, #4]
  19366. UNUSED(hdac);
  19367. /* NOTE : This function should not be modified, when the callback is needed,
  19368. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  19369. */
  19370. }
  19371. 80085d0: bf00 nop
  19372. 80085d2: 370c adds r7, #12
  19373. 80085d4: 46bd mov sp, r7
  19374. 80085d6: f85d 7b04 ldr.w r7, [sp], #4
  19375. 80085da: 4770 bx lr
  19376. 080085dc <HAL_DMA_Init>:
  19377. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  19378. * the configuration information for the specified DMA Stream.
  19379. * @retval HAL status
  19380. */
  19381. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  19382. {
  19383. 80085dc: b580 push {r7, lr}
  19384. 80085de: b086 sub sp, #24
  19385. 80085e0: af00 add r7, sp, #0
  19386. 80085e2: 6078 str r0, [r7, #4]
  19387. uint32_t registerValue;
  19388. uint32_t tickstart = HAL_GetTick();
  19389. 80085e4: f7fd fc5e bl 8005ea4 <HAL_GetTick>
  19390. 80085e8: 6138 str r0, [r7, #16]
  19391. DMA_Base_Registers *regs_dma;
  19392. BDMA_Base_Registers *regs_bdma;
  19393. /* Check the DMA peripheral handle */
  19394. if(hdma == NULL)
  19395. 80085ea: 687b ldr r3, [r7, #4]
  19396. 80085ec: 2b00 cmp r3, #0
  19397. 80085ee: d101 bne.n 80085f4 <HAL_DMA_Init+0x18>
  19398. {
  19399. return HAL_ERROR;
  19400. 80085f0: 2301 movs r3, #1
  19401. 80085f2: e316 b.n 8008c22 <HAL_DMA_Init+0x646>
  19402. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  19403. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  19404. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  19405. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  19406. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19407. 80085f4: 687b ldr r3, [r7, #4]
  19408. 80085f6: 681b ldr r3, [r3, #0]
  19409. 80085f8: 4a66 ldr r2, [pc, #408] @ (8008794 <HAL_DMA_Init+0x1b8>)
  19410. 80085fa: 4293 cmp r3, r2
  19411. 80085fc: d04a beq.n 8008694 <HAL_DMA_Init+0xb8>
  19412. 80085fe: 687b ldr r3, [r7, #4]
  19413. 8008600: 681b ldr r3, [r3, #0]
  19414. 8008602: 4a65 ldr r2, [pc, #404] @ (8008798 <HAL_DMA_Init+0x1bc>)
  19415. 8008604: 4293 cmp r3, r2
  19416. 8008606: d045 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19417. 8008608: 687b ldr r3, [r7, #4]
  19418. 800860a: 681b ldr r3, [r3, #0]
  19419. 800860c: 4a63 ldr r2, [pc, #396] @ (800879c <HAL_DMA_Init+0x1c0>)
  19420. 800860e: 4293 cmp r3, r2
  19421. 8008610: d040 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19422. 8008612: 687b ldr r3, [r7, #4]
  19423. 8008614: 681b ldr r3, [r3, #0]
  19424. 8008616: 4a62 ldr r2, [pc, #392] @ (80087a0 <HAL_DMA_Init+0x1c4>)
  19425. 8008618: 4293 cmp r3, r2
  19426. 800861a: d03b beq.n 8008694 <HAL_DMA_Init+0xb8>
  19427. 800861c: 687b ldr r3, [r7, #4]
  19428. 800861e: 681b ldr r3, [r3, #0]
  19429. 8008620: 4a60 ldr r2, [pc, #384] @ (80087a4 <HAL_DMA_Init+0x1c8>)
  19430. 8008622: 4293 cmp r3, r2
  19431. 8008624: d036 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19432. 8008626: 687b ldr r3, [r7, #4]
  19433. 8008628: 681b ldr r3, [r3, #0]
  19434. 800862a: 4a5f ldr r2, [pc, #380] @ (80087a8 <HAL_DMA_Init+0x1cc>)
  19435. 800862c: 4293 cmp r3, r2
  19436. 800862e: d031 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19437. 8008630: 687b ldr r3, [r7, #4]
  19438. 8008632: 681b ldr r3, [r3, #0]
  19439. 8008634: 4a5d ldr r2, [pc, #372] @ (80087ac <HAL_DMA_Init+0x1d0>)
  19440. 8008636: 4293 cmp r3, r2
  19441. 8008638: d02c beq.n 8008694 <HAL_DMA_Init+0xb8>
  19442. 800863a: 687b ldr r3, [r7, #4]
  19443. 800863c: 681b ldr r3, [r3, #0]
  19444. 800863e: 4a5c ldr r2, [pc, #368] @ (80087b0 <HAL_DMA_Init+0x1d4>)
  19445. 8008640: 4293 cmp r3, r2
  19446. 8008642: d027 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19447. 8008644: 687b ldr r3, [r7, #4]
  19448. 8008646: 681b ldr r3, [r3, #0]
  19449. 8008648: 4a5a ldr r2, [pc, #360] @ (80087b4 <HAL_DMA_Init+0x1d8>)
  19450. 800864a: 4293 cmp r3, r2
  19451. 800864c: d022 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19452. 800864e: 687b ldr r3, [r7, #4]
  19453. 8008650: 681b ldr r3, [r3, #0]
  19454. 8008652: 4a59 ldr r2, [pc, #356] @ (80087b8 <HAL_DMA_Init+0x1dc>)
  19455. 8008654: 4293 cmp r3, r2
  19456. 8008656: d01d beq.n 8008694 <HAL_DMA_Init+0xb8>
  19457. 8008658: 687b ldr r3, [r7, #4]
  19458. 800865a: 681b ldr r3, [r3, #0]
  19459. 800865c: 4a57 ldr r2, [pc, #348] @ (80087bc <HAL_DMA_Init+0x1e0>)
  19460. 800865e: 4293 cmp r3, r2
  19461. 8008660: d018 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19462. 8008662: 687b ldr r3, [r7, #4]
  19463. 8008664: 681b ldr r3, [r3, #0]
  19464. 8008666: 4a56 ldr r2, [pc, #344] @ (80087c0 <HAL_DMA_Init+0x1e4>)
  19465. 8008668: 4293 cmp r3, r2
  19466. 800866a: d013 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19467. 800866c: 687b ldr r3, [r7, #4]
  19468. 800866e: 681b ldr r3, [r3, #0]
  19469. 8008670: 4a54 ldr r2, [pc, #336] @ (80087c4 <HAL_DMA_Init+0x1e8>)
  19470. 8008672: 4293 cmp r3, r2
  19471. 8008674: d00e beq.n 8008694 <HAL_DMA_Init+0xb8>
  19472. 8008676: 687b ldr r3, [r7, #4]
  19473. 8008678: 681b ldr r3, [r3, #0]
  19474. 800867a: 4a53 ldr r2, [pc, #332] @ (80087c8 <HAL_DMA_Init+0x1ec>)
  19475. 800867c: 4293 cmp r3, r2
  19476. 800867e: d009 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19477. 8008680: 687b ldr r3, [r7, #4]
  19478. 8008682: 681b ldr r3, [r3, #0]
  19479. 8008684: 4a51 ldr r2, [pc, #324] @ (80087cc <HAL_DMA_Init+0x1f0>)
  19480. 8008686: 4293 cmp r3, r2
  19481. 8008688: d004 beq.n 8008694 <HAL_DMA_Init+0xb8>
  19482. 800868a: 687b ldr r3, [r7, #4]
  19483. 800868c: 681b ldr r3, [r3, #0]
  19484. 800868e: 4a50 ldr r2, [pc, #320] @ (80087d0 <HAL_DMA_Init+0x1f4>)
  19485. 8008690: 4293 cmp r3, r2
  19486. 8008692: d101 bne.n 8008698 <HAL_DMA_Init+0xbc>
  19487. 8008694: 2301 movs r3, #1
  19488. 8008696: e000 b.n 800869a <HAL_DMA_Init+0xbe>
  19489. 8008698: 2300 movs r3, #0
  19490. 800869a: 2b00 cmp r3, #0
  19491. 800869c: f000 813b beq.w 8008916 <HAL_DMA_Init+0x33a>
  19492. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  19493. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  19494. }
  19495. /* Change DMA peripheral state */
  19496. hdma->State = HAL_DMA_STATE_BUSY;
  19497. 80086a0: 687b ldr r3, [r7, #4]
  19498. 80086a2: 2202 movs r2, #2
  19499. 80086a4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19500. /* Allocate lock resource */
  19501. __HAL_UNLOCK(hdma);
  19502. 80086a8: 687b ldr r3, [r7, #4]
  19503. 80086aa: 2200 movs r2, #0
  19504. 80086ac: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19505. /* Disable the peripheral */
  19506. __HAL_DMA_DISABLE(hdma);
  19507. 80086b0: 687b ldr r3, [r7, #4]
  19508. 80086b2: 681b ldr r3, [r3, #0]
  19509. 80086b4: 4a37 ldr r2, [pc, #220] @ (8008794 <HAL_DMA_Init+0x1b8>)
  19510. 80086b6: 4293 cmp r3, r2
  19511. 80086b8: d04a beq.n 8008750 <HAL_DMA_Init+0x174>
  19512. 80086ba: 687b ldr r3, [r7, #4]
  19513. 80086bc: 681b ldr r3, [r3, #0]
  19514. 80086be: 4a36 ldr r2, [pc, #216] @ (8008798 <HAL_DMA_Init+0x1bc>)
  19515. 80086c0: 4293 cmp r3, r2
  19516. 80086c2: d045 beq.n 8008750 <HAL_DMA_Init+0x174>
  19517. 80086c4: 687b ldr r3, [r7, #4]
  19518. 80086c6: 681b ldr r3, [r3, #0]
  19519. 80086c8: 4a34 ldr r2, [pc, #208] @ (800879c <HAL_DMA_Init+0x1c0>)
  19520. 80086ca: 4293 cmp r3, r2
  19521. 80086cc: d040 beq.n 8008750 <HAL_DMA_Init+0x174>
  19522. 80086ce: 687b ldr r3, [r7, #4]
  19523. 80086d0: 681b ldr r3, [r3, #0]
  19524. 80086d2: 4a33 ldr r2, [pc, #204] @ (80087a0 <HAL_DMA_Init+0x1c4>)
  19525. 80086d4: 4293 cmp r3, r2
  19526. 80086d6: d03b beq.n 8008750 <HAL_DMA_Init+0x174>
  19527. 80086d8: 687b ldr r3, [r7, #4]
  19528. 80086da: 681b ldr r3, [r3, #0]
  19529. 80086dc: 4a31 ldr r2, [pc, #196] @ (80087a4 <HAL_DMA_Init+0x1c8>)
  19530. 80086de: 4293 cmp r3, r2
  19531. 80086e0: d036 beq.n 8008750 <HAL_DMA_Init+0x174>
  19532. 80086e2: 687b ldr r3, [r7, #4]
  19533. 80086e4: 681b ldr r3, [r3, #0]
  19534. 80086e6: 4a30 ldr r2, [pc, #192] @ (80087a8 <HAL_DMA_Init+0x1cc>)
  19535. 80086e8: 4293 cmp r3, r2
  19536. 80086ea: d031 beq.n 8008750 <HAL_DMA_Init+0x174>
  19537. 80086ec: 687b ldr r3, [r7, #4]
  19538. 80086ee: 681b ldr r3, [r3, #0]
  19539. 80086f0: 4a2e ldr r2, [pc, #184] @ (80087ac <HAL_DMA_Init+0x1d0>)
  19540. 80086f2: 4293 cmp r3, r2
  19541. 80086f4: d02c beq.n 8008750 <HAL_DMA_Init+0x174>
  19542. 80086f6: 687b ldr r3, [r7, #4]
  19543. 80086f8: 681b ldr r3, [r3, #0]
  19544. 80086fa: 4a2d ldr r2, [pc, #180] @ (80087b0 <HAL_DMA_Init+0x1d4>)
  19545. 80086fc: 4293 cmp r3, r2
  19546. 80086fe: d027 beq.n 8008750 <HAL_DMA_Init+0x174>
  19547. 8008700: 687b ldr r3, [r7, #4]
  19548. 8008702: 681b ldr r3, [r3, #0]
  19549. 8008704: 4a2b ldr r2, [pc, #172] @ (80087b4 <HAL_DMA_Init+0x1d8>)
  19550. 8008706: 4293 cmp r3, r2
  19551. 8008708: d022 beq.n 8008750 <HAL_DMA_Init+0x174>
  19552. 800870a: 687b ldr r3, [r7, #4]
  19553. 800870c: 681b ldr r3, [r3, #0]
  19554. 800870e: 4a2a ldr r2, [pc, #168] @ (80087b8 <HAL_DMA_Init+0x1dc>)
  19555. 8008710: 4293 cmp r3, r2
  19556. 8008712: d01d beq.n 8008750 <HAL_DMA_Init+0x174>
  19557. 8008714: 687b ldr r3, [r7, #4]
  19558. 8008716: 681b ldr r3, [r3, #0]
  19559. 8008718: 4a28 ldr r2, [pc, #160] @ (80087bc <HAL_DMA_Init+0x1e0>)
  19560. 800871a: 4293 cmp r3, r2
  19561. 800871c: d018 beq.n 8008750 <HAL_DMA_Init+0x174>
  19562. 800871e: 687b ldr r3, [r7, #4]
  19563. 8008720: 681b ldr r3, [r3, #0]
  19564. 8008722: 4a27 ldr r2, [pc, #156] @ (80087c0 <HAL_DMA_Init+0x1e4>)
  19565. 8008724: 4293 cmp r3, r2
  19566. 8008726: d013 beq.n 8008750 <HAL_DMA_Init+0x174>
  19567. 8008728: 687b ldr r3, [r7, #4]
  19568. 800872a: 681b ldr r3, [r3, #0]
  19569. 800872c: 4a25 ldr r2, [pc, #148] @ (80087c4 <HAL_DMA_Init+0x1e8>)
  19570. 800872e: 4293 cmp r3, r2
  19571. 8008730: d00e beq.n 8008750 <HAL_DMA_Init+0x174>
  19572. 8008732: 687b ldr r3, [r7, #4]
  19573. 8008734: 681b ldr r3, [r3, #0]
  19574. 8008736: 4a24 ldr r2, [pc, #144] @ (80087c8 <HAL_DMA_Init+0x1ec>)
  19575. 8008738: 4293 cmp r3, r2
  19576. 800873a: d009 beq.n 8008750 <HAL_DMA_Init+0x174>
  19577. 800873c: 687b ldr r3, [r7, #4]
  19578. 800873e: 681b ldr r3, [r3, #0]
  19579. 8008740: 4a22 ldr r2, [pc, #136] @ (80087cc <HAL_DMA_Init+0x1f0>)
  19580. 8008742: 4293 cmp r3, r2
  19581. 8008744: d004 beq.n 8008750 <HAL_DMA_Init+0x174>
  19582. 8008746: 687b ldr r3, [r7, #4]
  19583. 8008748: 681b ldr r3, [r3, #0]
  19584. 800874a: 4a21 ldr r2, [pc, #132] @ (80087d0 <HAL_DMA_Init+0x1f4>)
  19585. 800874c: 4293 cmp r3, r2
  19586. 800874e: d108 bne.n 8008762 <HAL_DMA_Init+0x186>
  19587. 8008750: 687b ldr r3, [r7, #4]
  19588. 8008752: 681b ldr r3, [r3, #0]
  19589. 8008754: 681a ldr r2, [r3, #0]
  19590. 8008756: 687b ldr r3, [r7, #4]
  19591. 8008758: 681b ldr r3, [r3, #0]
  19592. 800875a: f022 0201 bic.w r2, r2, #1
  19593. 800875e: 601a str r2, [r3, #0]
  19594. 8008760: e007 b.n 8008772 <HAL_DMA_Init+0x196>
  19595. 8008762: 687b ldr r3, [r7, #4]
  19596. 8008764: 681b ldr r3, [r3, #0]
  19597. 8008766: 681a ldr r2, [r3, #0]
  19598. 8008768: 687b ldr r3, [r7, #4]
  19599. 800876a: 681b ldr r3, [r3, #0]
  19600. 800876c: f022 0201 bic.w r2, r2, #1
  19601. 8008770: 601a str r2, [r3, #0]
  19602. /* Check if the DMA Stream is effectively disabled */
  19603. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19604. 8008772: e02f b.n 80087d4 <HAL_DMA_Init+0x1f8>
  19605. {
  19606. /* Check for the Timeout */
  19607. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  19608. 8008774: f7fd fb96 bl 8005ea4 <HAL_GetTick>
  19609. 8008778: 4602 mov r2, r0
  19610. 800877a: 693b ldr r3, [r7, #16]
  19611. 800877c: 1ad3 subs r3, r2, r3
  19612. 800877e: 2b05 cmp r3, #5
  19613. 8008780: d928 bls.n 80087d4 <HAL_DMA_Init+0x1f8>
  19614. {
  19615. /* Update error code */
  19616. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  19617. 8008782: 687b ldr r3, [r7, #4]
  19618. 8008784: 2220 movs r2, #32
  19619. 8008786: 655a str r2, [r3, #84] @ 0x54
  19620. /* Change the DMA state */
  19621. hdma->State = HAL_DMA_STATE_ERROR;
  19622. 8008788: 687b ldr r3, [r7, #4]
  19623. 800878a: 2203 movs r2, #3
  19624. 800878c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19625. return HAL_ERROR;
  19626. 8008790: 2301 movs r3, #1
  19627. 8008792: e246 b.n 8008c22 <HAL_DMA_Init+0x646>
  19628. 8008794: 40020010 .word 0x40020010
  19629. 8008798: 40020028 .word 0x40020028
  19630. 800879c: 40020040 .word 0x40020040
  19631. 80087a0: 40020058 .word 0x40020058
  19632. 80087a4: 40020070 .word 0x40020070
  19633. 80087a8: 40020088 .word 0x40020088
  19634. 80087ac: 400200a0 .word 0x400200a0
  19635. 80087b0: 400200b8 .word 0x400200b8
  19636. 80087b4: 40020410 .word 0x40020410
  19637. 80087b8: 40020428 .word 0x40020428
  19638. 80087bc: 40020440 .word 0x40020440
  19639. 80087c0: 40020458 .word 0x40020458
  19640. 80087c4: 40020470 .word 0x40020470
  19641. 80087c8: 40020488 .word 0x40020488
  19642. 80087cc: 400204a0 .word 0x400204a0
  19643. 80087d0: 400204b8 .word 0x400204b8
  19644. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19645. 80087d4: 687b ldr r3, [r7, #4]
  19646. 80087d6: 681b ldr r3, [r3, #0]
  19647. 80087d8: 681b ldr r3, [r3, #0]
  19648. 80087da: f003 0301 and.w r3, r3, #1
  19649. 80087de: 2b00 cmp r3, #0
  19650. 80087e0: d1c8 bne.n 8008774 <HAL_DMA_Init+0x198>
  19651. }
  19652. }
  19653. /* Get the CR register value */
  19654. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  19655. 80087e2: 687b ldr r3, [r7, #4]
  19656. 80087e4: 681b ldr r3, [r3, #0]
  19657. 80087e6: 681b ldr r3, [r3, #0]
  19658. 80087e8: 617b str r3, [r7, #20]
  19659. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  19660. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  19661. 80087ea: 697a ldr r2, [r7, #20]
  19662. 80087ec: 4b83 ldr r3, [pc, #524] @ (80089fc <HAL_DMA_Init+0x420>)
  19663. 80087ee: 4013 ands r3, r2
  19664. 80087f0: 617b str r3, [r7, #20]
  19665. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  19666. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  19667. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  19668. /* Prepare the DMA Stream configuration */
  19669. registerValue |= hdma->Init.Direction |
  19670. 80087f2: 687b ldr r3, [r7, #4]
  19671. 80087f4: 689a ldr r2, [r3, #8]
  19672. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19673. 80087f6: 687b ldr r3, [r7, #4]
  19674. 80087f8: 68db ldr r3, [r3, #12]
  19675. registerValue |= hdma->Init.Direction |
  19676. 80087fa: 431a orrs r2, r3
  19677. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19678. 80087fc: 687b ldr r3, [r7, #4]
  19679. 80087fe: 691b ldr r3, [r3, #16]
  19680. 8008800: 431a orrs r2, r3
  19681. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19682. 8008802: 687b ldr r3, [r7, #4]
  19683. 8008804: 695b ldr r3, [r3, #20]
  19684. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19685. 8008806: 431a orrs r2, r3
  19686. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19687. 8008808: 687b ldr r3, [r7, #4]
  19688. 800880a: 699b ldr r3, [r3, #24]
  19689. 800880c: 431a orrs r2, r3
  19690. hdma->Init.Mode | hdma->Init.Priority;
  19691. 800880e: 687b ldr r3, [r7, #4]
  19692. 8008810: 69db ldr r3, [r3, #28]
  19693. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19694. 8008812: 431a orrs r2, r3
  19695. hdma->Init.Mode | hdma->Init.Priority;
  19696. 8008814: 687b ldr r3, [r7, #4]
  19697. 8008816: 6a1b ldr r3, [r3, #32]
  19698. 8008818: 4313 orrs r3, r2
  19699. registerValue |= hdma->Init.Direction |
  19700. 800881a: 697a ldr r2, [r7, #20]
  19701. 800881c: 4313 orrs r3, r2
  19702. 800881e: 617b str r3, [r7, #20]
  19703. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  19704. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19705. 8008820: 687b ldr r3, [r7, #4]
  19706. 8008822: 6a5b ldr r3, [r3, #36] @ 0x24
  19707. 8008824: 2b04 cmp r3, #4
  19708. 8008826: d107 bne.n 8008838 <HAL_DMA_Init+0x25c>
  19709. {
  19710. /* Get memory burst and peripheral burst */
  19711. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  19712. 8008828: 687b ldr r3, [r7, #4]
  19713. 800882a: 6ada ldr r2, [r3, #44] @ 0x2c
  19714. 800882c: 687b ldr r3, [r7, #4]
  19715. 800882e: 6b1b ldr r3, [r3, #48] @ 0x30
  19716. 8008830: 4313 orrs r3, r2
  19717. 8008832: 697a ldr r2, [r7, #20]
  19718. 8008834: 4313 orrs r3, r2
  19719. 8008836: 617b str r3, [r7, #20]
  19720. }
  19721. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  19722. lock when transferring data to/from USART/UART */
  19723. #if (STM32H7_DEV_ID == 0x450UL)
  19724. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  19725. 8008838: 4b71 ldr r3, [pc, #452] @ (8008a00 <HAL_DMA_Init+0x424>)
  19726. 800883a: 681a ldr r2, [r3, #0]
  19727. 800883c: 4b71 ldr r3, [pc, #452] @ (8008a04 <HAL_DMA_Init+0x428>)
  19728. 800883e: 4013 ands r3, r2
  19729. 8008840: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  19730. 8008844: d328 bcc.n 8008898 <HAL_DMA_Init+0x2bc>
  19731. {
  19732. #endif /* STM32H7_DEV_ID == 0x450UL */
  19733. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  19734. 8008846: 687b ldr r3, [r7, #4]
  19735. 8008848: 685b ldr r3, [r3, #4]
  19736. 800884a: 2b28 cmp r3, #40 @ 0x28
  19737. 800884c: d903 bls.n 8008856 <HAL_DMA_Init+0x27a>
  19738. 800884e: 687b ldr r3, [r7, #4]
  19739. 8008850: 685b ldr r3, [r3, #4]
  19740. 8008852: 2b2e cmp r3, #46 @ 0x2e
  19741. 8008854: d917 bls.n 8008886 <HAL_DMA_Init+0x2aa>
  19742. 8008856: 687b ldr r3, [r7, #4]
  19743. 8008858: 685b ldr r3, [r3, #4]
  19744. 800885a: 2b3e cmp r3, #62 @ 0x3e
  19745. 800885c: d903 bls.n 8008866 <HAL_DMA_Init+0x28a>
  19746. 800885e: 687b ldr r3, [r7, #4]
  19747. 8008860: 685b ldr r3, [r3, #4]
  19748. 8008862: 2b42 cmp r3, #66 @ 0x42
  19749. 8008864: d90f bls.n 8008886 <HAL_DMA_Init+0x2aa>
  19750. 8008866: 687b ldr r3, [r7, #4]
  19751. 8008868: 685b ldr r3, [r3, #4]
  19752. 800886a: 2b46 cmp r3, #70 @ 0x46
  19753. 800886c: d903 bls.n 8008876 <HAL_DMA_Init+0x29a>
  19754. 800886e: 687b ldr r3, [r7, #4]
  19755. 8008870: 685b ldr r3, [r3, #4]
  19756. 8008872: 2b48 cmp r3, #72 @ 0x48
  19757. 8008874: d907 bls.n 8008886 <HAL_DMA_Init+0x2aa>
  19758. 8008876: 687b ldr r3, [r7, #4]
  19759. 8008878: 685b ldr r3, [r3, #4]
  19760. 800887a: 2b4e cmp r3, #78 @ 0x4e
  19761. 800887c: d905 bls.n 800888a <HAL_DMA_Init+0x2ae>
  19762. 800887e: 687b ldr r3, [r7, #4]
  19763. 8008880: 685b ldr r3, [r3, #4]
  19764. 8008882: 2b52 cmp r3, #82 @ 0x52
  19765. 8008884: d801 bhi.n 800888a <HAL_DMA_Init+0x2ae>
  19766. 8008886: 2301 movs r3, #1
  19767. 8008888: e000 b.n 800888c <HAL_DMA_Init+0x2b0>
  19768. 800888a: 2300 movs r3, #0
  19769. 800888c: 2b00 cmp r3, #0
  19770. 800888e: d003 beq.n 8008898 <HAL_DMA_Init+0x2bc>
  19771. {
  19772. registerValue |= DMA_SxCR_TRBUFF;
  19773. 8008890: 697b ldr r3, [r7, #20]
  19774. 8008892: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  19775. 8008896: 617b str r3, [r7, #20]
  19776. #if (STM32H7_DEV_ID == 0x450UL)
  19777. }
  19778. #endif /* STM32H7_DEV_ID == 0x450UL */
  19779. /* Write to DMA Stream CR register */
  19780. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  19781. 8008898: 687b ldr r3, [r7, #4]
  19782. 800889a: 681b ldr r3, [r3, #0]
  19783. 800889c: 697a ldr r2, [r7, #20]
  19784. 800889e: 601a str r2, [r3, #0]
  19785. /* Get the FCR register value */
  19786. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  19787. 80088a0: 687b ldr r3, [r7, #4]
  19788. 80088a2: 681b ldr r3, [r3, #0]
  19789. 80088a4: 695b ldr r3, [r3, #20]
  19790. 80088a6: 617b str r3, [r7, #20]
  19791. /* Clear Direct mode and FIFO threshold bits */
  19792. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  19793. 80088a8: 697b ldr r3, [r7, #20]
  19794. 80088aa: f023 0307 bic.w r3, r3, #7
  19795. 80088ae: 617b str r3, [r7, #20]
  19796. /* Prepare the DMA Stream FIFO configuration */
  19797. registerValue |= hdma->Init.FIFOMode;
  19798. 80088b0: 687b ldr r3, [r7, #4]
  19799. 80088b2: 6a5b ldr r3, [r3, #36] @ 0x24
  19800. 80088b4: 697a ldr r2, [r7, #20]
  19801. 80088b6: 4313 orrs r3, r2
  19802. 80088b8: 617b str r3, [r7, #20]
  19803. /* the FIFO threshold is not used when the FIFO mode is disabled */
  19804. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19805. 80088ba: 687b ldr r3, [r7, #4]
  19806. 80088bc: 6a5b ldr r3, [r3, #36] @ 0x24
  19807. 80088be: 2b04 cmp r3, #4
  19808. 80088c0: d117 bne.n 80088f2 <HAL_DMA_Init+0x316>
  19809. {
  19810. /* Get the FIFO threshold */
  19811. registerValue |= hdma->Init.FIFOThreshold;
  19812. 80088c2: 687b ldr r3, [r7, #4]
  19813. 80088c4: 6a9b ldr r3, [r3, #40] @ 0x28
  19814. 80088c6: 697a ldr r2, [r7, #20]
  19815. 80088c8: 4313 orrs r3, r2
  19816. 80088ca: 617b str r3, [r7, #20]
  19817. /* Check compatibility between FIFO threshold level and size of the memory burst */
  19818. /* for INCR4, INCR8, INCR16 */
  19819. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  19820. 80088cc: 687b ldr r3, [r7, #4]
  19821. 80088ce: 6adb ldr r3, [r3, #44] @ 0x2c
  19822. 80088d0: 2b00 cmp r3, #0
  19823. 80088d2: d00e beq.n 80088f2 <HAL_DMA_Init+0x316>
  19824. {
  19825. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  19826. 80088d4: 6878 ldr r0, [r7, #4]
  19827. 80088d6: f002 fb33 bl 800af40 <DMA_CheckFifoParam>
  19828. 80088da: 4603 mov r3, r0
  19829. 80088dc: 2b00 cmp r3, #0
  19830. 80088de: d008 beq.n 80088f2 <HAL_DMA_Init+0x316>
  19831. {
  19832. /* Update error code */
  19833. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19834. 80088e0: 687b ldr r3, [r7, #4]
  19835. 80088e2: 2240 movs r2, #64 @ 0x40
  19836. 80088e4: 655a str r2, [r3, #84] @ 0x54
  19837. /* Change the DMA state */
  19838. hdma->State = HAL_DMA_STATE_READY;
  19839. 80088e6: 687b ldr r3, [r7, #4]
  19840. 80088e8: 2201 movs r2, #1
  19841. 80088ea: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19842. return HAL_ERROR;
  19843. 80088ee: 2301 movs r3, #1
  19844. 80088f0: e197 b.n 8008c22 <HAL_DMA_Init+0x646>
  19845. }
  19846. }
  19847. }
  19848. /* Write to DMA Stream FCR */
  19849. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  19850. 80088f2: 687b ldr r3, [r7, #4]
  19851. 80088f4: 681b ldr r3, [r3, #0]
  19852. 80088f6: 697a ldr r2, [r7, #20]
  19853. 80088f8: 615a str r2, [r3, #20]
  19854. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19855. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19856. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19857. 80088fa: 6878 ldr r0, [r7, #4]
  19858. 80088fc: f002 fa6e bl 800addc <DMA_CalcBaseAndBitshift>
  19859. 8008900: 4603 mov r3, r0
  19860. 8008902: 60bb str r3, [r7, #8]
  19861. /* Clear all interrupt flags */
  19862. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  19863. 8008904: 687b ldr r3, [r7, #4]
  19864. 8008906: 6ddb ldr r3, [r3, #92] @ 0x5c
  19865. 8008908: f003 031f and.w r3, r3, #31
  19866. 800890c: 223f movs r2, #63 @ 0x3f
  19867. 800890e: 409a lsls r2, r3
  19868. 8008910: 68bb ldr r3, [r7, #8]
  19869. 8008912: 609a str r2, [r3, #8]
  19870. 8008914: e0cd b.n 8008ab2 <HAL_DMA_Init+0x4d6>
  19871. }
  19872. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  19873. 8008916: 687b ldr r3, [r7, #4]
  19874. 8008918: 681b ldr r3, [r3, #0]
  19875. 800891a: 4a3b ldr r2, [pc, #236] @ (8008a08 <HAL_DMA_Init+0x42c>)
  19876. 800891c: 4293 cmp r3, r2
  19877. 800891e: d022 beq.n 8008966 <HAL_DMA_Init+0x38a>
  19878. 8008920: 687b ldr r3, [r7, #4]
  19879. 8008922: 681b ldr r3, [r3, #0]
  19880. 8008924: 4a39 ldr r2, [pc, #228] @ (8008a0c <HAL_DMA_Init+0x430>)
  19881. 8008926: 4293 cmp r3, r2
  19882. 8008928: d01d beq.n 8008966 <HAL_DMA_Init+0x38a>
  19883. 800892a: 687b ldr r3, [r7, #4]
  19884. 800892c: 681b ldr r3, [r3, #0]
  19885. 800892e: 4a38 ldr r2, [pc, #224] @ (8008a10 <HAL_DMA_Init+0x434>)
  19886. 8008930: 4293 cmp r3, r2
  19887. 8008932: d018 beq.n 8008966 <HAL_DMA_Init+0x38a>
  19888. 8008934: 687b ldr r3, [r7, #4]
  19889. 8008936: 681b ldr r3, [r3, #0]
  19890. 8008938: 4a36 ldr r2, [pc, #216] @ (8008a14 <HAL_DMA_Init+0x438>)
  19891. 800893a: 4293 cmp r3, r2
  19892. 800893c: d013 beq.n 8008966 <HAL_DMA_Init+0x38a>
  19893. 800893e: 687b ldr r3, [r7, #4]
  19894. 8008940: 681b ldr r3, [r3, #0]
  19895. 8008942: 4a35 ldr r2, [pc, #212] @ (8008a18 <HAL_DMA_Init+0x43c>)
  19896. 8008944: 4293 cmp r3, r2
  19897. 8008946: d00e beq.n 8008966 <HAL_DMA_Init+0x38a>
  19898. 8008948: 687b ldr r3, [r7, #4]
  19899. 800894a: 681b ldr r3, [r3, #0]
  19900. 800894c: 4a33 ldr r2, [pc, #204] @ (8008a1c <HAL_DMA_Init+0x440>)
  19901. 800894e: 4293 cmp r3, r2
  19902. 8008950: d009 beq.n 8008966 <HAL_DMA_Init+0x38a>
  19903. 8008952: 687b ldr r3, [r7, #4]
  19904. 8008954: 681b ldr r3, [r3, #0]
  19905. 8008956: 4a32 ldr r2, [pc, #200] @ (8008a20 <HAL_DMA_Init+0x444>)
  19906. 8008958: 4293 cmp r3, r2
  19907. 800895a: d004 beq.n 8008966 <HAL_DMA_Init+0x38a>
  19908. 800895c: 687b ldr r3, [r7, #4]
  19909. 800895e: 681b ldr r3, [r3, #0]
  19910. 8008960: 4a30 ldr r2, [pc, #192] @ (8008a24 <HAL_DMA_Init+0x448>)
  19911. 8008962: 4293 cmp r3, r2
  19912. 8008964: d101 bne.n 800896a <HAL_DMA_Init+0x38e>
  19913. 8008966: 2301 movs r3, #1
  19914. 8008968: e000 b.n 800896c <HAL_DMA_Init+0x390>
  19915. 800896a: 2300 movs r3, #0
  19916. 800896c: 2b00 cmp r3, #0
  19917. 800896e: f000 8097 beq.w 8008aa0 <HAL_DMA_Init+0x4c4>
  19918. {
  19919. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  19920. 8008972: 687b ldr r3, [r7, #4]
  19921. 8008974: 681b ldr r3, [r3, #0]
  19922. 8008976: 4a24 ldr r2, [pc, #144] @ (8008a08 <HAL_DMA_Init+0x42c>)
  19923. 8008978: 4293 cmp r3, r2
  19924. 800897a: d021 beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19925. 800897c: 687b ldr r3, [r7, #4]
  19926. 800897e: 681b ldr r3, [r3, #0]
  19927. 8008980: 4a22 ldr r2, [pc, #136] @ (8008a0c <HAL_DMA_Init+0x430>)
  19928. 8008982: 4293 cmp r3, r2
  19929. 8008984: d01c beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19930. 8008986: 687b ldr r3, [r7, #4]
  19931. 8008988: 681b ldr r3, [r3, #0]
  19932. 800898a: 4a21 ldr r2, [pc, #132] @ (8008a10 <HAL_DMA_Init+0x434>)
  19933. 800898c: 4293 cmp r3, r2
  19934. 800898e: d017 beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19935. 8008990: 687b ldr r3, [r7, #4]
  19936. 8008992: 681b ldr r3, [r3, #0]
  19937. 8008994: 4a1f ldr r2, [pc, #124] @ (8008a14 <HAL_DMA_Init+0x438>)
  19938. 8008996: 4293 cmp r3, r2
  19939. 8008998: d012 beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19940. 800899a: 687b ldr r3, [r7, #4]
  19941. 800899c: 681b ldr r3, [r3, #0]
  19942. 800899e: 4a1e ldr r2, [pc, #120] @ (8008a18 <HAL_DMA_Init+0x43c>)
  19943. 80089a0: 4293 cmp r3, r2
  19944. 80089a2: d00d beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19945. 80089a4: 687b ldr r3, [r7, #4]
  19946. 80089a6: 681b ldr r3, [r3, #0]
  19947. 80089a8: 4a1c ldr r2, [pc, #112] @ (8008a1c <HAL_DMA_Init+0x440>)
  19948. 80089aa: 4293 cmp r3, r2
  19949. 80089ac: d008 beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19950. 80089ae: 687b ldr r3, [r7, #4]
  19951. 80089b0: 681b ldr r3, [r3, #0]
  19952. 80089b2: 4a1b ldr r2, [pc, #108] @ (8008a20 <HAL_DMA_Init+0x444>)
  19953. 80089b4: 4293 cmp r3, r2
  19954. 80089b6: d003 beq.n 80089c0 <HAL_DMA_Init+0x3e4>
  19955. 80089b8: 687b ldr r3, [r7, #4]
  19956. 80089ba: 681b ldr r3, [r3, #0]
  19957. 80089bc: 4a19 ldr r2, [pc, #100] @ (8008a24 <HAL_DMA_Init+0x448>)
  19958. 80089be: 4293 cmp r3, r2
  19959. /* Check the request parameter */
  19960. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  19961. }
  19962. /* Change DMA peripheral state */
  19963. hdma->State = HAL_DMA_STATE_BUSY;
  19964. 80089c0: 687b ldr r3, [r7, #4]
  19965. 80089c2: 2202 movs r2, #2
  19966. 80089c4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19967. /* Allocate lock resource */
  19968. __HAL_UNLOCK(hdma);
  19969. 80089c8: 687b ldr r3, [r7, #4]
  19970. 80089ca: 2200 movs r2, #0
  19971. 80089cc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19972. /* Get the CR register value */
  19973. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  19974. 80089d0: 687b ldr r3, [r7, #4]
  19975. 80089d2: 681b ldr r3, [r3, #0]
  19976. 80089d4: 681b ldr r3, [r3, #0]
  19977. 80089d6: 617b str r3, [r7, #20]
  19978. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  19979. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  19980. 80089d8: 697a ldr r2, [r7, #20]
  19981. 80089da: 4b13 ldr r3, [pc, #76] @ (8008a28 <HAL_DMA_Init+0x44c>)
  19982. 80089dc: 4013 ands r3, r2
  19983. 80089de: 617b str r3, [r7, #20]
  19984. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  19985. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  19986. BDMA_CCR_CT));
  19987. /* Prepare the DMA Channel configuration */
  19988. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19989. 80089e0: 687b ldr r3, [r7, #4]
  19990. 80089e2: 689b ldr r3, [r3, #8]
  19991. 80089e4: 2b40 cmp r3, #64 @ 0x40
  19992. 80089e6: d021 beq.n 8008a2c <HAL_DMA_Init+0x450>
  19993. 80089e8: 687b ldr r3, [r7, #4]
  19994. 80089ea: 689b ldr r3, [r3, #8]
  19995. 80089ec: 2b80 cmp r3, #128 @ 0x80
  19996. 80089ee: d102 bne.n 80089f6 <HAL_DMA_Init+0x41a>
  19997. 80089f0: f44f 4380 mov.w r3, #16384 @ 0x4000
  19998. 80089f4: e01b b.n 8008a2e <HAL_DMA_Init+0x452>
  19999. 80089f6: 2300 movs r3, #0
  20000. 80089f8: e019 b.n 8008a2e <HAL_DMA_Init+0x452>
  20001. 80089fa: bf00 nop
  20002. 80089fc: fe10803f .word 0xfe10803f
  20003. 8008a00: 5c001000 .word 0x5c001000
  20004. 8008a04: ffff0000 .word 0xffff0000
  20005. 8008a08: 58025408 .word 0x58025408
  20006. 8008a0c: 5802541c .word 0x5802541c
  20007. 8008a10: 58025430 .word 0x58025430
  20008. 8008a14: 58025444 .word 0x58025444
  20009. 8008a18: 58025458 .word 0x58025458
  20010. 8008a1c: 5802546c .word 0x5802546c
  20011. 8008a20: 58025480 .word 0x58025480
  20012. 8008a24: 58025494 .word 0x58025494
  20013. 8008a28: fffe000f .word 0xfffe000f
  20014. 8008a2c: 2310 movs r3, #16
  20015. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  20016. 8008a2e: 687a ldr r2, [r7, #4]
  20017. 8008a30: 68d2 ldr r2, [r2, #12]
  20018. 8008a32: 08d2 lsrs r2, r2, #3
  20019. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  20020. 8008a34: 431a orrs r2, r3
  20021. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  20022. 8008a36: 687b ldr r3, [r7, #4]
  20023. 8008a38: 691b ldr r3, [r3, #16]
  20024. 8008a3a: 08db lsrs r3, r3, #3
  20025. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  20026. 8008a3c: 431a orrs r2, r3
  20027. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  20028. 8008a3e: 687b ldr r3, [r7, #4]
  20029. 8008a40: 695b ldr r3, [r3, #20]
  20030. 8008a42: 08db lsrs r3, r3, #3
  20031. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  20032. 8008a44: 431a orrs r2, r3
  20033. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  20034. 8008a46: 687b ldr r3, [r7, #4]
  20035. 8008a48: 699b ldr r3, [r3, #24]
  20036. 8008a4a: 08db lsrs r3, r3, #3
  20037. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  20038. 8008a4c: 431a orrs r2, r3
  20039. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  20040. 8008a4e: 687b ldr r3, [r7, #4]
  20041. 8008a50: 69db ldr r3, [r3, #28]
  20042. 8008a52: 08db lsrs r3, r3, #3
  20043. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  20044. 8008a54: 431a orrs r2, r3
  20045. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  20046. 8008a56: 687b ldr r3, [r7, #4]
  20047. 8008a58: 6a1b ldr r3, [r3, #32]
  20048. 8008a5a: 091b lsrs r3, r3, #4
  20049. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  20050. 8008a5c: 4313 orrs r3, r2
  20051. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  20052. 8008a5e: 697a ldr r2, [r7, #20]
  20053. 8008a60: 4313 orrs r3, r2
  20054. 8008a62: 617b str r3, [r7, #20]
  20055. /* Write to DMA Channel CR register */
  20056. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  20057. 8008a64: 687b ldr r3, [r7, #4]
  20058. 8008a66: 681b ldr r3, [r3, #0]
  20059. 8008a68: 697a ldr r2, [r7, #20]
  20060. 8008a6a: 601a str r2, [r3, #0]
  20061. /* calculation of the channel index */
  20062. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  20063. 8008a6c: 687b ldr r3, [r7, #4]
  20064. 8008a6e: 681b ldr r3, [r3, #0]
  20065. 8008a70: 461a mov r2, r3
  20066. 8008a72: 4b6e ldr r3, [pc, #440] @ (8008c2c <HAL_DMA_Init+0x650>)
  20067. 8008a74: 4413 add r3, r2
  20068. 8008a76: 4a6e ldr r2, [pc, #440] @ (8008c30 <HAL_DMA_Init+0x654>)
  20069. 8008a78: fba2 2303 umull r2, r3, r2, r3
  20070. 8008a7c: 091b lsrs r3, r3, #4
  20071. 8008a7e: 009a lsls r2, r3, #2
  20072. 8008a80: 687b ldr r3, [r7, #4]
  20073. 8008a82: 65da str r2, [r3, #92] @ 0x5c
  20074. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  20075. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  20076. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  20077. 8008a84: 6878 ldr r0, [r7, #4]
  20078. 8008a86: f002 f9a9 bl 800addc <DMA_CalcBaseAndBitshift>
  20079. 8008a8a: 4603 mov r3, r0
  20080. 8008a8c: 60fb str r3, [r7, #12]
  20081. /* Clear all interrupt flags */
  20082. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20083. 8008a8e: 687b ldr r3, [r7, #4]
  20084. 8008a90: 6ddb ldr r3, [r3, #92] @ 0x5c
  20085. 8008a92: f003 031f and.w r3, r3, #31
  20086. 8008a96: 2201 movs r2, #1
  20087. 8008a98: 409a lsls r2, r3
  20088. 8008a9a: 68fb ldr r3, [r7, #12]
  20089. 8008a9c: 605a str r2, [r3, #4]
  20090. 8008a9e: e008 b.n 8008ab2 <HAL_DMA_Init+0x4d6>
  20091. }
  20092. else
  20093. {
  20094. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  20095. 8008aa0: 687b ldr r3, [r7, #4]
  20096. 8008aa2: 2240 movs r2, #64 @ 0x40
  20097. 8008aa4: 655a str r2, [r3, #84] @ 0x54
  20098. hdma->State = HAL_DMA_STATE_ERROR;
  20099. 8008aa6: 687b ldr r3, [r7, #4]
  20100. 8008aa8: 2203 movs r2, #3
  20101. 8008aaa: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20102. return HAL_ERROR;
  20103. 8008aae: 2301 movs r3, #1
  20104. 8008ab0: e0b7 b.n 8008c22 <HAL_DMA_Init+0x646>
  20105. }
  20106. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20107. 8008ab2: 687b ldr r3, [r7, #4]
  20108. 8008ab4: 681b ldr r3, [r3, #0]
  20109. 8008ab6: 4a5f ldr r2, [pc, #380] @ (8008c34 <HAL_DMA_Init+0x658>)
  20110. 8008ab8: 4293 cmp r3, r2
  20111. 8008aba: d072 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20112. 8008abc: 687b ldr r3, [r7, #4]
  20113. 8008abe: 681b ldr r3, [r3, #0]
  20114. 8008ac0: 4a5d ldr r2, [pc, #372] @ (8008c38 <HAL_DMA_Init+0x65c>)
  20115. 8008ac2: 4293 cmp r3, r2
  20116. 8008ac4: d06d beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20117. 8008ac6: 687b ldr r3, [r7, #4]
  20118. 8008ac8: 681b ldr r3, [r3, #0]
  20119. 8008aca: 4a5c ldr r2, [pc, #368] @ (8008c3c <HAL_DMA_Init+0x660>)
  20120. 8008acc: 4293 cmp r3, r2
  20121. 8008ace: d068 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20122. 8008ad0: 687b ldr r3, [r7, #4]
  20123. 8008ad2: 681b ldr r3, [r3, #0]
  20124. 8008ad4: 4a5a ldr r2, [pc, #360] @ (8008c40 <HAL_DMA_Init+0x664>)
  20125. 8008ad6: 4293 cmp r3, r2
  20126. 8008ad8: d063 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20127. 8008ada: 687b ldr r3, [r7, #4]
  20128. 8008adc: 681b ldr r3, [r3, #0]
  20129. 8008ade: 4a59 ldr r2, [pc, #356] @ (8008c44 <HAL_DMA_Init+0x668>)
  20130. 8008ae0: 4293 cmp r3, r2
  20131. 8008ae2: d05e beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20132. 8008ae4: 687b ldr r3, [r7, #4]
  20133. 8008ae6: 681b ldr r3, [r3, #0]
  20134. 8008ae8: 4a57 ldr r2, [pc, #348] @ (8008c48 <HAL_DMA_Init+0x66c>)
  20135. 8008aea: 4293 cmp r3, r2
  20136. 8008aec: d059 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20137. 8008aee: 687b ldr r3, [r7, #4]
  20138. 8008af0: 681b ldr r3, [r3, #0]
  20139. 8008af2: 4a56 ldr r2, [pc, #344] @ (8008c4c <HAL_DMA_Init+0x670>)
  20140. 8008af4: 4293 cmp r3, r2
  20141. 8008af6: d054 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20142. 8008af8: 687b ldr r3, [r7, #4]
  20143. 8008afa: 681b ldr r3, [r3, #0]
  20144. 8008afc: 4a54 ldr r2, [pc, #336] @ (8008c50 <HAL_DMA_Init+0x674>)
  20145. 8008afe: 4293 cmp r3, r2
  20146. 8008b00: d04f beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20147. 8008b02: 687b ldr r3, [r7, #4]
  20148. 8008b04: 681b ldr r3, [r3, #0]
  20149. 8008b06: 4a53 ldr r2, [pc, #332] @ (8008c54 <HAL_DMA_Init+0x678>)
  20150. 8008b08: 4293 cmp r3, r2
  20151. 8008b0a: d04a beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20152. 8008b0c: 687b ldr r3, [r7, #4]
  20153. 8008b0e: 681b ldr r3, [r3, #0]
  20154. 8008b10: 4a51 ldr r2, [pc, #324] @ (8008c58 <HAL_DMA_Init+0x67c>)
  20155. 8008b12: 4293 cmp r3, r2
  20156. 8008b14: d045 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20157. 8008b16: 687b ldr r3, [r7, #4]
  20158. 8008b18: 681b ldr r3, [r3, #0]
  20159. 8008b1a: 4a50 ldr r2, [pc, #320] @ (8008c5c <HAL_DMA_Init+0x680>)
  20160. 8008b1c: 4293 cmp r3, r2
  20161. 8008b1e: d040 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20162. 8008b20: 687b ldr r3, [r7, #4]
  20163. 8008b22: 681b ldr r3, [r3, #0]
  20164. 8008b24: 4a4e ldr r2, [pc, #312] @ (8008c60 <HAL_DMA_Init+0x684>)
  20165. 8008b26: 4293 cmp r3, r2
  20166. 8008b28: d03b beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20167. 8008b2a: 687b ldr r3, [r7, #4]
  20168. 8008b2c: 681b ldr r3, [r3, #0]
  20169. 8008b2e: 4a4d ldr r2, [pc, #308] @ (8008c64 <HAL_DMA_Init+0x688>)
  20170. 8008b30: 4293 cmp r3, r2
  20171. 8008b32: d036 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20172. 8008b34: 687b ldr r3, [r7, #4]
  20173. 8008b36: 681b ldr r3, [r3, #0]
  20174. 8008b38: 4a4b ldr r2, [pc, #300] @ (8008c68 <HAL_DMA_Init+0x68c>)
  20175. 8008b3a: 4293 cmp r3, r2
  20176. 8008b3c: d031 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20177. 8008b3e: 687b ldr r3, [r7, #4]
  20178. 8008b40: 681b ldr r3, [r3, #0]
  20179. 8008b42: 4a4a ldr r2, [pc, #296] @ (8008c6c <HAL_DMA_Init+0x690>)
  20180. 8008b44: 4293 cmp r3, r2
  20181. 8008b46: d02c beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20182. 8008b48: 687b ldr r3, [r7, #4]
  20183. 8008b4a: 681b ldr r3, [r3, #0]
  20184. 8008b4c: 4a48 ldr r2, [pc, #288] @ (8008c70 <HAL_DMA_Init+0x694>)
  20185. 8008b4e: 4293 cmp r3, r2
  20186. 8008b50: d027 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20187. 8008b52: 687b ldr r3, [r7, #4]
  20188. 8008b54: 681b ldr r3, [r3, #0]
  20189. 8008b56: 4a47 ldr r2, [pc, #284] @ (8008c74 <HAL_DMA_Init+0x698>)
  20190. 8008b58: 4293 cmp r3, r2
  20191. 8008b5a: d022 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20192. 8008b5c: 687b ldr r3, [r7, #4]
  20193. 8008b5e: 681b ldr r3, [r3, #0]
  20194. 8008b60: 4a45 ldr r2, [pc, #276] @ (8008c78 <HAL_DMA_Init+0x69c>)
  20195. 8008b62: 4293 cmp r3, r2
  20196. 8008b64: d01d beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20197. 8008b66: 687b ldr r3, [r7, #4]
  20198. 8008b68: 681b ldr r3, [r3, #0]
  20199. 8008b6a: 4a44 ldr r2, [pc, #272] @ (8008c7c <HAL_DMA_Init+0x6a0>)
  20200. 8008b6c: 4293 cmp r3, r2
  20201. 8008b6e: d018 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20202. 8008b70: 687b ldr r3, [r7, #4]
  20203. 8008b72: 681b ldr r3, [r3, #0]
  20204. 8008b74: 4a42 ldr r2, [pc, #264] @ (8008c80 <HAL_DMA_Init+0x6a4>)
  20205. 8008b76: 4293 cmp r3, r2
  20206. 8008b78: d013 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20207. 8008b7a: 687b ldr r3, [r7, #4]
  20208. 8008b7c: 681b ldr r3, [r3, #0]
  20209. 8008b7e: 4a41 ldr r2, [pc, #260] @ (8008c84 <HAL_DMA_Init+0x6a8>)
  20210. 8008b80: 4293 cmp r3, r2
  20211. 8008b82: d00e beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20212. 8008b84: 687b ldr r3, [r7, #4]
  20213. 8008b86: 681b ldr r3, [r3, #0]
  20214. 8008b88: 4a3f ldr r2, [pc, #252] @ (8008c88 <HAL_DMA_Init+0x6ac>)
  20215. 8008b8a: 4293 cmp r3, r2
  20216. 8008b8c: d009 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20217. 8008b8e: 687b ldr r3, [r7, #4]
  20218. 8008b90: 681b ldr r3, [r3, #0]
  20219. 8008b92: 4a3e ldr r2, [pc, #248] @ (8008c8c <HAL_DMA_Init+0x6b0>)
  20220. 8008b94: 4293 cmp r3, r2
  20221. 8008b96: d004 beq.n 8008ba2 <HAL_DMA_Init+0x5c6>
  20222. 8008b98: 687b ldr r3, [r7, #4]
  20223. 8008b9a: 681b ldr r3, [r3, #0]
  20224. 8008b9c: 4a3c ldr r2, [pc, #240] @ (8008c90 <HAL_DMA_Init+0x6b4>)
  20225. 8008b9e: 4293 cmp r3, r2
  20226. 8008ba0: d101 bne.n 8008ba6 <HAL_DMA_Init+0x5ca>
  20227. 8008ba2: 2301 movs r3, #1
  20228. 8008ba4: e000 b.n 8008ba8 <HAL_DMA_Init+0x5cc>
  20229. 8008ba6: 2300 movs r3, #0
  20230. 8008ba8: 2b00 cmp r3, #0
  20231. 8008baa: d032 beq.n 8008c12 <HAL_DMA_Init+0x636>
  20232. {
  20233. /* Initialize parameters for DMAMUX channel :
  20234. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  20235. */
  20236. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  20237. 8008bac: 6878 ldr r0, [r7, #4]
  20238. 8008bae: f002 fa43 bl 800b038 <DMA_CalcDMAMUXChannelBaseAndMask>
  20239. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  20240. 8008bb2: 687b ldr r3, [r7, #4]
  20241. 8008bb4: 689b ldr r3, [r3, #8]
  20242. 8008bb6: 2b80 cmp r3, #128 @ 0x80
  20243. 8008bb8: d102 bne.n 8008bc0 <HAL_DMA_Init+0x5e4>
  20244. {
  20245. /* if memory to memory force the request to 0*/
  20246. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  20247. 8008bba: 687b ldr r3, [r7, #4]
  20248. 8008bbc: 2200 movs r2, #0
  20249. 8008bbe: 605a str r2, [r3, #4]
  20250. }
  20251. /* Set peripheral request to DMAMUX channel */
  20252. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  20253. 8008bc0: 687b ldr r3, [r7, #4]
  20254. 8008bc2: 685a ldr r2, [r3, #4]
  20255. 8008bc4: 687b ldr r3, [r7, #4]
  20256. 8008bc6: 6e1b ldr r3, [r3, #96] @ 0x60
  20257. 8008bc8: b2d2 uxtb r2, r2
  20258. 8008bca: 601a str r2, [r3, #0]
  20259. /* Clear the DMAMUX synchro overrun flag */
  20260. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20261. 8008bcc: 687b ldr r3, [r7, #4]
  20262. 8008bce: 6e5b ldr r3, [r3, #100] @ 0x64
  20263. 8008bd0: 687a ldr r2, [r7, #4]
  20264. 8008bd2: 6e92 ldr r2, [r2, #104] @ 0x68
  20265. 8008bd4: 605a str r2, [r3, #4]
  20266. /* Initialize parameters for DMAMUX request generator :
  20267. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  20268. */
  20269. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  20270. 8008bd6: 687b ldr r3, [r7, #4]
  20271. 8008bd8: 685b ldr r3, [r3, #4]
  20272. 8008bda: 2b00 cmp r3, #0
  20273. 8008bdc: d010 beq.n 8008c00 <HAL_DMA_Init+0x624>
  20274. 8008bde: 687b ldr r3, [r7, #4]
  20275. 8008be0: 685b ldr r3, [r3, #4]
  20276. 8008be2: 2b08 cmp r3, #8
  20277. 8008be4: d80c bhi.n 8008c00 <HAL_DMA_Init+0x624>
  20278. {
  20279. /* Initialize parameters for DMAMUX request generator :
  20280. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  20281. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  20282. 8008be6: 6878 ldr r0, [r7, #4]
  20283. 8008be8: f002 fac0 bl 800b16c <DMA_CalcDMAMUXRequestGenBaseAndMask>
  20284. /* Reset the DMAMUX request generator register */
  20285. hdma->DMAmuxRequestGen->RGCR = 0U;
  20286. 8008bec: 687b ldr r3, [r7, #4]
  20287. 8008bee: 6edb ldr r3, [r3, #108] @ 0x6c
  20288. 8008bf0: 2200 movs r2, #0
  20289. 8008bf2: 601a str r2, [r3, #0]
  20290. /* Clear the DMAMUX request generator overrun flag */
  20291. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20292. 8008bf4: 687b ldr r3, [r7, #4]
  20293. 8008bf6: 6f1b ldr r3, [r3, #112] @ 0x70
  20294. 8008bf8: 687a ldr r2, [r7, #4]
  20295. 8008bfa: 6f52 ldr r2, [r2, #116] @ 0x74
  20296. 8008bfc: 605a str r2, [r3, #4]
  20297. 8008bfe: e008 b.n 8008c12 <HAL_DMA_Init+0x636>
  20298. }
  20299. else
  20300. {
  20301. hdma->DMAmuxRequestGen = 0U;
  20302. 8008c00: 687b ldr r3, [r7, #4]
  20303. 8008c02: 2200 movs r2, #0
  20304. 8008c04: 66da str r2, [r3, #108] @ 0x6c
  20305. hdma->DMAmuxRequestGenStatus = 0U;
  20306. 8008c06: 687b ldr r3, [r7, #4]
  20307. 8008c08: 2200 movs r2, #0
  20308. 8008c0a: 671a str r2, [r3, #112] @ 0x70
  20309. hdma->DMAmuxRequestGenStatusMask = 0U;
  20310. 8008c0c: 687b ldr r3, [r7, #4]
  20311. 8008c0e: 2200 movs r2, #0
  20312. 8008c10: 675a str r2, [r3, #116] @ 0x74
  20313. }
  20314. }
  20315. /* Initialize the error code */
  20316. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20317. 8008c12: 687b ldr r3, [r7, #4]
  20318. 8008c14: 2200 movs r2, #0
  20319. 8008c16: 655a str r2, [r3, #84] @ 0x54
  20320. /* Initialize the DMA state */
  20321. hdma->State = HAL_DMA_STATE_READY;
  20322. 8008c18: 687b ldr r3, [r7, #4]
  20323. 8008c1a: 2201 movs r2, #1
  20324. 8008c1c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20325. return HAL_OK;
  20326. 8008c20: 2300 movs r3, #0
  20327. }
  20328. 8008c22: 4618 mov r0, r3
  20329. 8008c24: 3718 adds r7, #24
  20330. 8008c26: 46bd mov sp, r7
  20331. 8008c28: bd80 pop {r7, pc}
  20332. 8008c2a: bf00 nop
  20333. 8008c2c: a7fdabf8 .word 0xa7fdabf8
  20334. 8008c30: cccccccd .word 0xcccccccd
  20335. 8008c34: 40020010 .word 0x40020010
  20336. 8008c38: 40020028 .word 0x40020028
  20337. 8008c3c: 40020040 .word 0x40020040
  20338. 8008c40: 40020058 .word 0x40020058
  20339. 8008c44: 40020070 .word 0x40020070
  20340. 8008c48: 40020088 .word 0x40020088
  20341. 8008c4c: 400200a0 .word 0x400200a0
  20342. 8008c50: 400200b8 .word 0x400200b8
  20343. 8008c54: 40020410 .word 0x40020410
  20344. 8008c58: 40020428 .word 0x40020428
  20345. 8008c5c: 40020440 .word 0x40020440
  20346. 8008c60: 40020458 .word 0x40020458
  20347. 8008c64: 40020470 .word 0x40020470
  20348. 8008c68: 40020488 .word 0x40020488
  20349. 8008c6c: 400204a0 .word 0x400204a0
  20350. 8008c70: 400204b8 .word 0x400204b8
  20351. 8008c74: 58025408 .word 0x58025408
  20352. 8008c78: 5802541c .word 0x5802541c
  20353. 8008c7c: 58025430 .word 0x58025430
  20354. 8008c80: 58025444 .word 0x58025444
  20355. 8008c84: 58025458 .word 0x58025458
  20356. 8008c88: 5802546c .word 0x5802546c
  20357. 8008c8c: 58025480 .word 0x58025480
  20358. 8008c90: 58025494 .word 0x58025494
  20359. 08008c94 <HAL_DMA_Start_IT>:
  20360. * @param DstAddress: The destination memory Buffer address
  20361. * @param DataLength: The length of data to be transferred from source to destination
  20362. * @retval HAL status
  20363. */
  20364. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  20365. {
  20366. 8008c94: b580 push {r7, lr}
  20367. 8008c96: b086 sub sp, #24
  20368. 8008c98: af00 add r7, sp, #0
  20369. 8008c9a: 60f8 str r0, [r7, #12]
  20370. 8008c9c: 60b9 str r1, [r7, #8]
  20371. 8008c9e: 607a str r2, [r7, #4]
  20372. 8008ca0: 603b str r3, [r7, #0]
  20373. HAL_StatusTypeDef status = HAL_OK;
  20374. 8008ca2: 2300 movs r3, #0
  20375. 8008ca4: 75fb strb r3, [r7, #23]
  20376. /* Check the parameters */
  20377. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  20378. /* Check the DMA peripheral handle */
  20379. if(hdma == NULL)
  20380. 8008ca6: 68fb ldr r3, [r7, #12]
  20381. 8008ca8: 2b00 cmp r3, #0
  20382. 8008caa: d101 bne.n 8008cb0 <HAL_DMA_Start_IT+0x1c>
  20383. {
  20384. return HAL_ERROR;
  20385. 8008cac: 2301 movs r3, #1
  20386. 8008cae: e226 b.n 80090fe <HAL_DMA_Start_IT+0x46a>
  20387. }
  20388. /* Process locked */
  20389. __HAL_LOCK(hdma);
  20390. 8008cb0: 68fb ldr r3, [r7, #12]
  20391. 8008cb2: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  20392. 8008cb6: 2b01 cmp r3, #1
  20393. 8008cb8: d101 bne.n 8008cbe <HAL_DMA_Start_IT+0x2a>
  20394. 8008cba: 2302 movs r3, #2
  20395. 8008cbc: e21f b.n 80090fe <HAL_DMA_Start_IT+0x46a>
  20396. 8008cbe: 68fb ldr r3, [r7, #12]
  20397. 8008cc0: 2201 movs r2, #1
  20398. 8008cc2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20399. if(HAL_DMA_STATE_READY == hdma->State)
  20400. 8008cc6: 68fb ldr r3, [r7, #12]
  20401. 8008cc8: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20402. 8008ccc: b2db uxtb r3, r3
  20403. 8008cce: 2b01 cmp r3, #1
  20404. 8008cd0: f040 820a bne.w 80090e8 <HAL_DMA_Start_IT+0x454>
  20405. {
  20406. /* Change DMA peripheral state */
  20407. hdma->State = HAL_DMA_STATE_BUSY;
  20408. 8008cd4: 68fb ldr r3, [r7, #12]
  20409. 8008cd6: 2202 movs r2, #2
  20410. 8008cd8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20411. /* Initialize the error code */
  20412. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20413. 8008cdc: 68fb ldr r3, [r7, #12]
  20414. 8008cde: 2200 movs r2, #0
  20415. 8008ce0: 655a str r2, [r3, #84] @ 0x54
  20416. /* Disable the peripheral */
  20417. __HAL_DMA_DISABLE(hdma);
  20418. 8008ce2: 68fb ldr r3, [r7, #12]
  20419. 8008ce4: 681b ldr r3, [r3, #0]
  20420. 8008ce6: 4a68 ldr r2, [pc, #416] @ (8008e88 <HAL_DMA_Start_IT+0x1f4>)
  20421. 8008ce8: 4293 cmp r3, r2
  20422. 8008cea: d04a beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20423. 8008cec: 68fb ldr r3, [r7, #12]
  20424. 8008cee: 681b ldr r3, [r3, #0]
  20425. 8008cf0: 4a66 ldr r2, [pc, #408] @ (8008e8c <HAL_DMA_Start_IT+0x1f8>)
  20426. 8008cf2: 4293 cmp r3, r2
  20427. 8008cf4: d045 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20428. 8008cf6: 68fb ldr r3, [r7, #12]
  20429. 8008cf8: 681b ldr r3, [r3, #0]
  20430. 8008cfa: 4a65 ldr r2, [pc, #404] @ (8008e90 <HAL_DMA_Start_IT+0x1fc>)
  20431. 8008cfc: 4293 cmp r3, r2
  20432. 8008cfe: d040 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20433. 8008d00: 68fb ldr r3, [r7, #12]
  20434. 8008d02: 681b ldr r3, [r3, #0]
  20435. 8008d04: 4a63 ldr r2, [pc, #396] @ (8008e94 <HAL_DMA_Start_IT+0x200>)
  20436. 8008d06: 4293 cmp r3, r2
  20437. 8008d08: d03b beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20438. 8008d0a: 68fb ldr r3, [r7, #12]
  20439. 8008d0c: 681b ldr r3, [r3, #0]
  20440. 8008d0e: 4a62 ldr r2, [pc, #392] @ (8008e98 <HAL_DMA_Start_IT+0x204>)
  20441. 8008d10: 4293 cmp r3, r2
  20442. 8008d12: d036 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20443. 8008d14: 68fb ldr r3, [r7, #12]
  20444. 8008d16: 681b ldr r3, [r3, #0]
  20445. 8008d18: 4a60 ldr r2, [pc, #384] @ (8008e9c <HAL_DMA_Start_IT+0x208>)
  20446. 8008d1a: 4293 cmp r3, r2
  20447. 8008d1c: d031 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20448. 8008d1e: 68fb ldr r3, [r7, #12]
  20449. 8008d20: 681b ldr r3, [r3, #0]
  20450. 8008d22: 4a5f ldr r2, [pc, #380] @ (8008ea0 <HAL_DMA_Start_IT+0x20c>)
  20451. 8008d24: 4293 cmp r3, r2
  20452. 8008d26: d02c beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20453. 8008d28: 68fb ldr r3, [r7, #12]
  20454. 8008d2a: 681b ldr r3, [r3, #0]
  20455. 8008d2c: 4a5d ldr r2, [pc, #372] @ (8008ea4 <HAL_DMA_Start_IT+0x210>)
  20456. 8008d2e: 4293 cmp r3, r2
  20457. 8008d30: d027 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20458. 8008d32: 68fb ldr r3, [r7, #12]
  20459. 8008d34: 681b ldr r3, [r3, #0]
  20460. 8008d36: 4a5c ldr r2, [pc, #368] @ (8008ea8 <HAL_DMA_Start_IT+0x214>)
  20461. 8008d38: 4293 cmp r3, r2
  20462. 8008d3a: d022 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20463. 8008d3c: 68fb ldr r3, [r7, #12]
  20464. 8008d3e: 681b ldr r3, [r3, #0]
  20465. 8008d40: 4a5a ldr r2, [pc, #360] @ (8008eac <HAL_DMA_Start_IT+0x218>)
  20466. 8008d42: 4293 cmp r3, r2
  20467. 8008d44: d01d beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20468. 8008d46: 68fb ldr r3, [r7, #12]
  20469. 8008d48: 681b ldr r3, [r3, #0]
  20470. 8008d4a: 4a59 ldr r2, [pc, #356] @ (8008eb0 <HAL_DMA_Start_IT+0x21c>)
  20471. 8008d4c: 4293 cmp r3, r2
  20472. 8008d4e: d018 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20473. 8008d50: 68fb ldr r3, [r7, #12]
  20474. 8008d52: 681b ldr r3, [r3, #0]
  20475. 8008d54: 4a57 ldr r2, [pc, #348] @ (8008eb4 <HAL_DMA_Start_IT+0x220>)
  20476. 8008d56: 4293 cmp r3, r2
  20477. 8008d58: d013 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20478. 8008d5a: 68fb ldr r3, [r7, #12]
  20479. 8008d5c: 681b ldr r3, [r3, #0]
  20480. 8008d5e: 4a56 ldr r2, [pc, #344] @ (8008eb8 <HAL_DMA_Start_IT+0x224>)
  20481. 8008d60: 4293 cmp r3, r2
  20482. 8008d62: d00e beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20483. 8008d64: 68fb ldr r3, [r7, #12]
  20484. 8008d66: 681b ldr r3, [r3, #0]
  20485. 8008d68: 4a54 ldr r2, [pc, #336] @ (8008ebc <HAL_DMA_Start_IT+0x228>)
  20486. 8008d6a: 4293 cmp r3, r2
  20487. 8008d6c: d009 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20488. 8008d6e: 68fb ldr r3, [r7, #12]
  20489. 8008d70: 681b ldr r3, [r3, #0]
  20490. 8008d72: 4a53 ldr r2, [pc, #332] @ (8008ec0 <HAL_DMA_Start_IT+0x22c>)
  20491. 8008d74: 4293 cmp r3, r2
  20492. 8008d76: d004 beq.n 8008d82 <HAL_DMA_Start_IT+0xee>
  20493. 8008d78: 68fb ldr r3, [r7, #12]
  20494. 8008d7a: 681b ldr r3, [r3, #0]
  20495. 8008d7c: 4a51 ldr r2, [pc, #324] @ (8008ec4 <HAL_DMA_Start_IT+0x230>)
  20496. 8008d7e: 4293 cmp r3, r2
  20497. 8008d80: d108 bne.n 8008d94 <HAL_DMA_Start_IT+0x100>
  20498. 8008d82: 68fb ldr r3, [r7, #12]
  20499. 8008d84: 681b ldr r3, [r3, #0]
  20500. 8008d86: 681a ldr r2, [r3, #0]
  20501. 8008d88: 68fb ldr r3, [r7, #12]
  20502. 8008d8a: 681b ldr r3, [r3, #0]
  20503. 8008d8c: f022 0201 bic.w r2, r2, #1
  20504. 8008d90: 601a str r2, [r3, #0]
  20505. 8008d92: e007 b.n 8008da4 <HAL_DMA_Start_IT+0x110>
  20506. 8008d94: 68fb ldr r3, [r7, #12]
  20507. 8008d96: 681b ldr r3, [r3, #0]
  20508. 8008d98: 681a ldr r2, [r3, #0]
  20509. 8008d9a: 68fb ldr r3, [r7, #12]
  20510. 8008d9c: 681b ldr r3, [r3, #0]
  20511. 8008d9e: f022 0201 bic.w r2, r2, #1
  20512. 8008da2: 601a str r2, [r3, #0]
  20513. /* Configure the source, destination address and the data length */
  20514. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  20515. 8008da4: 683b ldr r3, [r7, #0]
  20516. 8008da6: 687a ldr r2, [r7, #4]
  20517. 8008da8: 68b9 ldr r1, [r7, #8]
  20518. 8008daa: 68f8 ldr r0, [r7, #12]
  20519. 8008dac: f001 fe6a bl 800aa84 <DMA_SetConfig>
  20520. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20521. 8008db0: 68fb ldr r3, [r7, #12]
  20522. 8008db2: 681b ldr r3, [r3, #0]
  20523. 8008db4: 4a34 ldr r2, [pc, #208] @ (8008e88 <HAL_DMA_Start_IT+0x1f4>)
  20524. 8008db6: 4293 cmp r3, r2
  20525. 8008db8: d04a beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20526. 8008dba: 68fb ldr r3, [r7, #12]
  20527. 8008dbc: 681b ldr r3, [r3, #0]
  20528. 8008dbe: 4a33 ldr r2, [pc, #204] @ (8008e8c <HAL_DMA_Start_IT+0x1f8>)
  20529. 8008dc0: 4293 cmp r3, r2
  20530. 8008dc2: d045 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20531. 8008dc4: 68fb ldr r3, [r7, #12]
  20532. 8008dc6: 681b ldr r3, [r3, #0]
  20533. 8008dc8: 4a31 ldr r2, [pc, #196] @ (8008e90 <HAL_DMA_Start_IT+0x1fc>)
  20534. 8008dca: 4293 cmp r3, r2
  20535. 8008dcc: d040 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20536. 8008dce: 68fb ldr r3, [r7, #12]
  20537. 8008dd0: 681b ldr r3, [r3, #0]
  20538. 8008dd2: 4a30 ldr r2, [pc, #192] @ (8008e94 <HAL_DMA_Start_IT+0x200>)
  20539. 8008dd4: 4293 cmp r3, r2
  20540. 8008dd6: d03b beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20541. 8008dd8: 68fb ldr r3, [r7, #12]
  20542. 8008dda: 681b ldr r3, [r3, #0]
  20543. 8008ddc: 4a2e ldr r2, [pc, #184] @ (8008e98 <HAL_DMA_Start_IT+0x204>)
  20544. 8008dde: 4293 cmp r3, r2
  20545. 8008de0: d036 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20546. 8008de2: 68fb ldr r3, [r7, #12]
  20547. 8008de4: 681b ldr r3, [r3, #0]
  20548. 8008de6: 4a2d ldr r2, [pc, #180] @ (8008e9c <HAL_DMA_Start_IT+0x208>)
  20549. 8008de8: 4293 cmp r3, r2
  20550. 8008dea: d031 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20551. 8008dec: 68fb ldr r3, [r7, #12]
  20552. 8008dee: 681b ldr r3, [r3, #0]
  20553. 8008df0: 4a2b ldr r2, [pc, #172] @ (8008ea0 <HAL_DMA_Start_IT+0x20c>)
  20554. 8008df2: 4293 cmp r3, r2
  20555. 8008df4: d02c beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20556. 8008df6: 68fb ldr r3, [r7, #12]
  20557. 8008df8: 681b ldr r3, [r3, #0]
  20558. 8008dfa: 4a2a ldr r2, [pc, #168] @ (8008ea4 <HAL_DMA_Start_IT+0x210>)
  20559. 8008dfc: 4293 cmp r3, r2
  20560. 8008dfe: d027 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20561. 8008e00: 68fb ldr r3, [r7, #12]
  20562. 8008e02: 681b ldr r3, [r3, #0]
  20563. 8008e04: 4a28 ldr r2, [pc, #160] @ (8008ea8 <HAL_DMA_Start_IT+0x214>)
  20564. 8008e06: 4293 cmp r3, r2
  20565. 8008e08: d022 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20566. 8008e0a: 68fb ldr r3, [r7, #12]
  20567. 8008e0c: 681b ldr r3, [r3, #0]
  20568. 8008e0e: 4a27 ldr r2, [pc, #156] @ (8008eac <HAL_DMA_Start_IT+0x218>)
  20569. 8008e10: 4293 cmp r3, r2
  20570. 8008e12: d01d beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20571. 8008e14: 68fb ldr r3, [r7, #12]
  20572. 8008e16: 681b ldr r3, [r3, #0]
  20573. 8008e18: 4a25 ldr r2, [pc, #148] @ (8008eb0 <HAL_DMA_Start_IT+0x21c>)
  20574. 8008e1a: 4293 cmp r3, r2
  20575. 8008e1c: d018 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20576. 8008e1e: 68fb ldr r3, [r7, #12]
  20577. 8008e20: 681b ldr r3, [r3, #0]
  20578. 8008e22: 4a24 ldr r2, [pc, #144] @ (8008eb4 <HAL_DMA_Start_IT+0x220>)
  20579. 8008e24: 4293 cmp r3, r2
  20580. 8008e26: d013 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20581. 8008e28: 68fb ldr r3, [r7, #12]
  20582. 8008e2a: 681b ldr r3, [r3, #0]
  20583. 8008e2c: 4a22 ldr r2, [pc, #136] @ (8008eb8 <HAL_DMA_Start_IT+0x224>)
  20584. 8008e2e: 4293 cmp r3, r2
  20585. 8008e30: d00e beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20586. 8008e32: 68fb ldr r3, [r7, #12]
  20587. 8008e34: 681b ldr r3, [r3, #0]
  20588. 8008e36: 4a21 ldr r2, [pc, #132] @ (8008ebc <HAL_DMA_Start_IT+0x228>)
  20589. 8008e38: 4293 cmp r3, r2
  20590. 8008e3a: d009 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20591. 8008e3c: 68fb ldr r3, [r7, #12]
  20592. 8008e3e: 681b ldr r3, [r3, #0]
  20593. 8008e40: 4a1f ldr r2, [pc, #124] @ (8008ec0 <HAL_DMA_Start_IT+0x22c>)
  20594. 8008e42: 4293 cmp r3, r2
  20595. 8008e44: d004 beq.n 8008e50 <HAL_DMA_Start_IT+0x1bc>
  20596. 8008e46: 68fb ldr r3, [r7, #12]
  20597. 8008e48: 681b ldr r3, [r3, #0]
  20598. 8008e4a: 4a1e ldr r2, [pc, #120] @ (8008ec4 <HAL_DMA_Start_IT+0x230>)
  20599. 8008e4c: 4293 cmp r3, r2
  20600. 8008e4e: d101 bne.n 8008e54 <HAL_DMA_Start_IT+0x1c0>
  20601. 8008e50: 2301 movs r3, #1
  20602. 8008e52: e000 b.n 8008e56 <HAL_DMA_Start_IT+0x1c2>
  20603. 8008e54: 2300 movs r3, #0
  20604. 8008e56: 2b00 cmp r3, #0
  20605. 8008e58: d036 beq.n 8008ec8 <HAL_DMA_Start_IT+0x234>
  20606. {
  20607. /* Enable Common interrupts*/
  20608. 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));
  20609. 8008e5a: 68fb ldr r3, [r7, #12]
  20610. 8008e5c: 681b ldr r3, [r3, #0]
  20611. 8008e5e: 681b ldr r3, [r3, #0]
  20612. 8008e60: f023 021e bic.w r2, r3, #30
  20613. 8008e64: 68fb ldr r3, [r7, #12]
  20614. 8008e66: 681b ldr r3, [r3, #0]
  20615. 8008e68: f042 0216 orr.w r2, r2, #22
  20616. 8008e6c: 601a str r2, [r3, #0]
  20617. if(hdma->XferHalfCpltCallback != NULL)
  20618. 8008e6e: 68fb ldr r3, [r7, #12]
  20619. 8008e70: 6c1b ldr r3, [r3, #64] @ 0x40
  20620. 8008e72: 2b00 cmp r3, #0
  20621. 8008e74: d03e beq.n 8008ef4 <HAL_DMA_Start_IT+0x260>
  20622. {
  20623. /* Enable Half Transfer IT if corresponding Callback is set */
  20624. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  20625. 8008e76: 68fb ldr r3, [r7, #12]
  20626. 8008e78: 681b ldr r3, [r3, #0]
  20627. 8008e7a: 681a ldr r2, [r3, #0]
  20628. 8008e7c: 68fb ldr r3, [r7, #12]
  20629. 8008e7e: 681b ldr r3, [r3, #0]
  20630. 8008e80: f042 0208 orr.w r2, r2, #8
  20631. 8008e84: 601a str r2, [r3, #0]
  20632. 8008e86: e035 b.n 8008ef4 <HAL_DMA_Start_IT+0x260>
  20633. 8008e88: 40020010 .word 0x40020010
  20634. 8008e8c: 40020028 .word 0x40020028
  20635. 8008e90: 40020040 .word 0x40020040
  20636. 8008e94: 40020058 .word 0x40020058
  20637. 8008e98: 40020070 .word 0x40020070
  20638. 8008e9c: 40020088 .word 0x40020088
  20639. 8008ea0: 400200a0 .word 0x400200a0
  20640. 8008ea4: 400200b8 .word 0x400200b8
  20641. 8008ea8: 40020410 .word 0x40020410
  20642. 8008eac: 40020428 .word 0x40020428
  20643. 8008eb0: 40020440 .word 0x40020440
  20644. 8008eb4: 40020458 .word 0x40020458
  20645. 8008eb8: 40020470 .word 0x40020470
  20646. 8008ebc: 40020488 .word 0x40020488
  20647. 8008ec0: 400204a0 .word 0x400204a0
  20648. 8008ec4: 400204b8 .word 0x400204b8
  20649. }
  20650. }
  20651. else /* BDMA channel */
  20652. {
  20653. /* Enable Common interrupts */
  20654. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  20655. 8008ec8: 68fb ldr r3, [r7, #12]
  20656. 8008eca: 681b ldr r3, [r3, #0]
  20657. 8008ecc: 681b ldr r3, [r3, #0]
  20658. 8008ece: f023 020e bic.w r2, r3, #14
  20659. 8008ed2: 68fb ldr r3, [r7, #12]
  20660. 8008ed4: 681b ldr r3, [r3, #0]
  20661. 8008ed6: f042 020a orr.w r2, r2, #10
  20662. 8008eda: 601a str r2, [r3, #0]
  20663. if(hdma->XferHalfCpltCallback != NULL)
  20664. 8008edc: 68fb ldr r3, [r7, #12]
  20665. 8008ede: 6c1b ldr r3, [r3, #64] @ 0x40
  20666. 8008ee0: 2b00 cmp r3, #0
  20667. 8008ee2: d007 beq.n 8008ef4 <HAL_DMA_Start_IT+0x260>
  20668. {
  20669. /*Enable Half Transfer IT if corresponding Callback is set */
  20670. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  20671. 8008ee4: 68fb ldr r3, [r7, #12]
  20672. 8008ee6: 681b ldr r3, [r3, #0]
  20673. 8008ee8: 681a ldr r2, [r3, #0]
  20674. 8008eea: 68fb ldr r3, [r7, #12]
  20675. 8008eec: 681b ldr r3, [r3, #0]
  20676. 8008eee: f042 0204 orr.w r2, r2, #4
  20677. 8008ef2: 601a str r2, [r3, #0]
  20678. }
  20679. }
  20680. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20681. 8008ef4: 68fb ldr r3, [r7, #12]
  20682. 8008ef6: 681b ldr r3, [r3, #0]
  20683. 8008ef8: 4a83 ldr r2, [pc, #524] @ (8009108 <HAL_DMA_Start_IT+0x474>)
  20684. 8008efa: 4293 cmp r3, r2
  20685. 8008efc: d072 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20686. 8008efe: 68fb ldr r3, [r7, #12]
  20687. 8008f00: 681b ldr r3, [r3, #0]
  20688. 8008f02: 4a82 ldr r2, [pc, #520] @ (800910c <HAL_DMA_Start_IT+0x478>)
  20689. 8008f04: 4293 cmp r3, r2
  20690. 8008f06: d06d beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20691. 8008f08: 68fb ldr r3, [r7, #12]
  20692. 8008f0a: 681b ldr r3, [r3, #0]
  20693. 8008f0c: 4a80 ldr r2, [pc, #512] @ (8009110 <HAL_DMA_Start_IT+0x47c>)
  20694. 8008f0e: 4293 cmp r3, r2
  20695. 8008f10: d068 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20696. 8008f12: 68fb ldr r3, [r7, #12]
  20697. 8008f14: 681b ldr r3, [r3, #0]
  20698. 8008f16: 4a7f ldr r2, [pc, #508] @ (8009114 <HAL_DMA_Start_IT+0x480>)
  20699. 8008f18: 4293 cmp r3, r2
  20700. 8008f1a: d063 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20701. 8008f1c: 68fb ldr r3, [r7, #12]
  20702. 8008f1e: 681b ldr r3, [r3, #0]
  20703. 8008f20: 4a7d ldr r2, [pc, #500] @ (8009118 <HAL_DMA_Start_IT+0x484>)
  20704. 8008f22: 4293 cmp r3, r2
  20705. 8008f24: d05e beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20706. 8008f26: 68fb ldr r3, [r7, #12]
  20707. 8008f28: 681b ldr r3, [r3, #0]
  20708. 8008f2a: 4a7c ldr r2, [pc, #496] @ (800911c <HAL_DMA_Start_IT+0x488>)
  20709. 8008f2c: 4293 cmp r3, r2
  20710. 8008f2e: d059 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20711. 8008f30: 68fb ldr r3, [r7, #12]
  20712. 8008f32: 681b ldr r3, [r3, #0]
  20713. 8008f34: 4a7a ldr r2, [pc, #488] @ (8009120 <HAL_DMA_Start_IT+0x48c>)
  20714. 8008f36: 4293 cmp r3, r2
  20715. 8008f38: d054 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20716. 8008f3a: 68fb ldr r3, [r7, #12]
  20717. 8008f3c: 681b ldr r3, [r3, #0]
  20718. 8008f3e: 4a79 ldr r2, [pc, #484] @ (8009124 <HAL_DMA_Start_IT+0x490>)
  20719. 8008f40: 4293 cmp r3, r2
  20720. 8008f42: d04f beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20721. 8008f44: 68fb ldr r3, [r7, #12]
  20722. 8008f46: 681b ldr r3, [r3, #0]
  20723. 8008f48: 4a77 ldr r2, [pc, #476] @ (8009128 <HAL_DMA_Start_IT+0x494>)
  20724. 8008f4a: 4293 cmp r3, r2
  20725. 8008f4c: d04a beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20726. 8008f4e: 68fb ldr r3, [r7, #12]
  20727. 8008f50: 681b ldr r3, [r3, #0]
  20728. 8008f52: 4a76 ldr r2, [pc, #472] @ (800912c <HAL_DMA_Start_IT+0x498>)
  20729. 8008f54: 4293 cmp r3, r2
  20730. 8008f56: d045 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20731. 8008f58: 68fb ldr r3, [r7, #12]
  20732. 8008f5a: 681b ldr r3, [r3, #0]
  20733. 8008f5c: 4a74 ldr r2, [pc, #464] @ (8009130 <HAL_DMA_Start_IT+0x49c>)
  20734. 8008f5e: 4293 cmp r3, r2
  20735. 8008f60: d040 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20736. 8008f62: 68fb ldr r3, [r7, #12]
  20737. 8008f64: 681b ldr r3, [r3, #0]
  20738. 8008f66: 4a73 ldr r2, [pc, #460] @ (8009134 <HAL_DMA_Start_IT+0x4a0>)
  20739. 8008f68: 4293 cmp r3, r2
  20740. 8008f6a: d03b beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20741. 8008f6c: 68fb ldr r3, [r7, #12]
  20742. 8008f6e: 681b ldr r3, [r3, #0]
  20743. 8008f70: 4a71 ldr r2, [pc, #452] @ (8009138 <HAL_DMA_Start_IT+0x4a4>)
  20744. 8008f72: 4293 cmp r3, r2
  20745. 8008f74: d036 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20746. 8008f76: 68fb ldr r3, [r7, #12]
  20747. 8008f78: 681b ldr r3, [r3, #0]
  20748. 8008f7a: 4a70 ldr r2, [pc, #448] @ (800913c <HAL_DMA_Start_IT+0x4a8>)
  20749. 8008f7c: 4293 cmp r3, r2
  20750. 8008f7e: d031 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20751. 8008f80: 68fb ldr r3, [r7, #12]
  20752. 8008f82: 681b ldr r3, [r3, #0]
  20753. 8008f84: 4a6e ldr r2, [pc, #440] @ (8009140 <HAL_DMA_Start_IT+0x4ac>)
  20754. 8008f86: 4293 cmp r3, r2
  20755. 8008f88: d02c beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20756. 8008f8a: 68fb ldr r3, [r7, #12]
  20757. 8008f8c: 681b ldr r3, [r3, #0]
  20758. 8008f8e: 4a6d ldr r2, [pc, #436] @ (8009144 <HAL_DMA_Start_IT+0x4b0>)
  20759. 8008f90: 4293 cmp r3, r2
  20760. 8008f92: d027 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20761. 8008f94: 68fb ldr r3, [r7, #12]
  20762. 8008f96: 681b ldr r3, [r3, #0]
  20763. 8008f98: 4a6b ldr r2, [pc, #428] @ (8009148 <HAL_DMA_Start_IT+0x4b4>)
  20764. 8008f9a: 4293 cmp r3, r2
  20765. 8008f9c: d022 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20766. 8008f9e: 68fb ldr r3, [r7, #12]
  20767. 8008fa0: 681b ldr r3, [r3, #0]
  20768. 8008fa2: 4a6a ldr r2, [pc, #424] @ (800914c <HAL_DMA_Start_IT+0x4b8>)
  20769. 8008fa4: 4293 cmp r3, r2
  20770. 8008fa6: d01d beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20771. 8008fa8: 68fb ldr r3, [r7, #12]
  20772. 8008faa: 681b ldr r3, [r3, #0]
  20773. 8008fac: 4a68 ldr r2, [pc, #416] @ (8009150 <HAL_DMA_Start_IT+0x4bc>)
  20774. 8008fae: 4293 cmp r3, r2
  20775. 8008fb0: d018 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20776. 8008fb2: 68fb ldr r3, [r7, #12]
  20777. 8008fb4: 681b ldr r3, [r3, #0]
  20778. 8008fb6: 4a67 ldr r2, [pc, #412] @ (8009154 <HAL_DMA_Start_IT+0x4c0>)
  20779. 8008fb8: 4293 cmp r3, r2
  20780. 8008fba: d013 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20781. 8008fbc: 68fb ldr r3, [r7, #12]
  20782. 8008fbe: 681b ldr r3, [r3, #0]
  20783. 8008fc0: 4a65 ldr r2, [pc, #404] @ (8009158 <HAL_DMA_Start_IT+0x4c4>)
  20784. 8008fc2: 4293 cmp r3, r2
  20785. 8008fc4: d00e beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20786. 8008fc6: 68fb ldr r3, [r7, #12]
  20787. 8008fc8: 681b ldr r3, [r3, #0]
  20788. 8008fca: 4a64 ldr r2, [pc, #400] @ (800915c <HAL_DMA_Start_IT+0x4c8>)
  20789. 8008fcc: 4293 cmp r3, r2
  20790. 8008fce: d009 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20791. 8008fd0: 68fb ldr r3, [r7, #12]
  20792. 8008fd2: 681b ldr r3, [r3, #0]
  20793. 8008fd4: 4a62 ldr r2, [pc, #392] @ (8009160 <HAL_DMA_Start_IT+0x4cc>)
  20794. 8008fd6: 4293 cmp r3, r2
  20795. 8008fd8: d004 beq.n 8008fe4 <HAL_DMA_Start_IT+0x350>
  20796. 8008fda: 68fb ldr r3, [r7, #12]
  20797. 8008fdc: 681b ldr r3, [r3, #0]
  20798. 8008fde: 4a61 ldr r2, [pc, #388] @ (8009164 <HAL_DMA_Start_IT+0x4d0>)
  20799. 8008fe0: 4293 cmp r3, r2
  20800. 8008fe2: d101 bne.n 8008fe8 <HAL_DMA_Start_IT+0x354>
  20801. 8008fe4: 2301 movs r3, #1
  20802. 8008fe6: e000 b.n 8008fea <HAL_DMA_Start_IT+0x356>
  20803. 8008fe8: 2300 movs r3, #0
  20804. 8008fea: 2b00 cmp r3, #0
  20805. 8008fec: d01a beq.n 8009024 <HAL_DMA_Start_IT+0x390>
  20806. {
  20807. /* Check if DMAMUX Synchronization is enabled */
  20808. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  20809. 8008fee: 68fb ldr r3, [r7, #12]
  20810. 8008ff0: 6e1b ldr r3, [r3, #96] @ 0x60
  20811. 8008ff2: 681b ldr r3, [r3, #0]
  20812. 8008ff4: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20813. 8008ff8: 2b00 cmp r3, #0
  20814. 8008ffa: d007 beq.n 800900c <HAL_DMA_Start_IT+0x378>
  20815. {
  20816. /* Enable DMAMUX sync overrun IT*/
  20817. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  20818. 8008ffc: 68fb ldr r3, [r7, #12]
  20819. 8008ffe: 6e1b ldr r3, [r3, #96] @ 0x60
  20820. 8009000: 681a ldr r2, [r3, #0]
  20821. 8009002: 68fb ldr r3, [r7, #12]
  20822. 8009004: 6e1b ldr r3, [r3, #96] @ 0x60
  20823. 8009006: f442 7280 orr.w r2, r2, #256 @ 0x100
  20824. 800900a: 601a str r2, [r3, #0]
  20825. }
  20826. if(hdma->DMAmuxRequestGen != 0U)
  20827. 800900c: 68fb ldr r3, [r7, #12]
  20828. 800900e: 6edb ldr r3, [r3, #108] @ 0x6c
  20829. 8009010: 2b00 cmp r3, #0
  20830. 8009012: d007 beq.n 8009024 <HAL_DMA_Start_IT+0x390>
  20831. {
  20832. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  20833. /* enable the request gen overrun IT */
  20834. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  20835. 8009014: 68fb ldr r3, [r7, #12]
  20836. 8009016: 6edb ldr r3, [r3, #108] @ 0x6c
  20837. 8009018: 681a ldr r2, [r3, #0]
  20838. 800901a: 68fb ldr r3, [r7, #12]
  20839. 800901c: 6edb ldr r3, [r3, #108] @ 0x6c
  20840. 800901e: f442 7280 orr.w r2, r2, #256 @ 0x100
  20841. 8009022: 601a str r2, [r3, #0]
  20842. }
  20843. }
  20844. /* Enable the Peripheral */
  20845. __HAL_DMA_ENABLE(hdma);
  20846. 8009024: 68fb ldr r3, [r7, #12]
  20847. 8009026: 681b ldr r3, [r3, #0]
  20848. 8009028: 4a37 ldr r2, [pc, #220] @ (8009108 <HAL_DMA_Start_IT+0x474>)
  20849. 800902a: 4293 cmp r3, r2
  20850. 800902c: d04a beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20851. 800902e: 68fb ldr r3, [r7, #12]
  20852. 8009030: 681b ldr r3, [r3, #0]
  20853. 8009032: 4a36 ldr r2, [pc, #216] @ (800910c <HAL_DMA_Start_IT+0x478>)
  20854. 8009034: 4293 cmp r3, r2
  20855. 8009036: d045 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20856. 8009038: 68fb ldr r3, [r7, #12]
  20857. 800903a: 681b ldr r3, [r3, #0]
  20858. 800903c: 4a34 ldr r2, [pc, #208] @ (8009110 <HAL_DMA_Start_IT+0x47c>)
  20859. 800903e: 4293 cmp r3, r2
  20860. 8009040: d040 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20861. 8009042: 68fb ldr r3, [r7, #12]
  20862. 8009044: 681b ldr r3, [r3, #0]
  20863. 8009046: 4a33 ldr r2, [pc, #204] @ (8009114 <HAL_DMA_Start_IT+0x480>)
  20864. 8009048: 4293 cmp r3, r2
  20865. 800904a: d03b beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20866. 800904c: 68fb ldr r3, [r7, #12]
  20867. 800904e: 681b ldr r3, [r3, #0]
  20868. 8009050: 4a31 ldr r2, [pc, #196] @ (8009118 <HAL_DMA_Start_IT+0x484>)
  20869. 8009052: 4293 cmp r3, r2
  20870. 8009054: d036 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20871. 8009056: 68fb ldr r3, [r7, #12]
  20872. 8009058: 681b ldr r3, [r3, #0]
  20873. 800905a: 4a30 ldr r2, [pc, #192] @ (800911c <HAL_DMA_Start_IT+0x488>)
  20874. 800905c: 4293 cmp r3, r2
  20875. 800905e: d031 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20876. 8009060: 68fb ldr r3, [r7, #12]
  20877. 8009062: 681b ldr r3, [r3, #0]
  20878. 8009064: 4a2e ldr r2, [pc, #184] @ (8009120 <HAL_DMA_Start_IT+0x48c>)
  20879. 8009066: 4293 cmp r3, r2
  20880. 8009068: d02c beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20881. 800906a: 68fb ldr r3, [r7, #12]
  20882. 800906c: 681b ldr r3, [r3, #0]
  20883. 800906e: 4a2d ldr r2, [pc, #180] @ (8009124 <HAL_DMA_Start_IT+0x490>)
  20884. 8009070: 4293 cmp r3, r2
  20885. 8009072: d027 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20886. 8009074: 68fb ldr r3, [r7, #12]
  20887. 8009076: 681b ldr r3, [r3, #0]
  20888. 8009078: 4a2b ldr r2, [pc, #172] @ (8009128 <HAL_DMA_Start_IT+0x494>)
  20889. 800907a: 4293 cmp r3, r2
  20890. 800907c: d022 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20891. 800907e: 68fb ldr r3, [r7, #12]
  20892. 8009080: 681b ldr r3, [r3, #0]
  20893. 8009082: 4a2a ldr r2, [pc, #168] @ (800912c <HAL_DMA_Start_IT+0x498>)
  20894. 8009084: 4293 cmp r3, r2
  20895. 8009086: d01d beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20896. 8009088: 68fb ldr r3, [r7, #12]
  20897. 800908a: 681b ldr r3, [r3, #0]
  20898. 800908c: 4a28 ldr r2, [pc, #160] @ (8009130 <HAL_DMA_Start_IT+0x49c>)
  20899. 800908e: 4293 cmp r3, r2
  20900. 8009090: d018 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20901. 8009092: 68fb ldr r3, [r7, #12]
  20902. 8009094: 681b ldr r3, [r3, #0]
  20903. 8009096: 4a27 ldr r2, [pc, #156] @ (8009134 <HAL_DMA_Start_IT+0x4a0>)
  20904. 8009098: 4293 cmp r3, r2
  20905. 800909a: d013 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20906. 800909c: 68fb ldr r3, [r7, #12]
  20907. 800909e: 681b ldr r3, [r3, #0]
  20908. 80090a0: 4a25 ldr r2, [pc, #148] @ (8009138 <HAL_DMA_Start_IT+0x4a4>)
  20909. 80090a2: 4293 cmp r3, r2
  20910. 80090a4: d00e beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20911. 80090a6: 68fb ldr r3, [r7, #12]
  20912. 80090a8: 681b ldr r3, [r3, #0]
  20913. 80090aa: 4a24 ldr r2, [pc, #144] @ (800913c <HAL_DMA_Start_IT+0x4a8>)
  20914. 80090ac: 4293 cmp r3, r2
  20915. 80090ae: d009 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20916. 80090b0: 68fb ldr r3, [r7, #12]
  20917. 80090b2: 681b ldr r3, [r3, #0]
  20918. 80090b4: 4a22 ldr r2, [pc, #136] @ (8009140 <HAL_DMA_Start_IT+0x4ac>)
  20919. 80090b6: 4293 cmp r3, r2
  20920. 80090b8: d004 beq.n 80090c4 <HAL_DMA_Start_IT+0x430>
  20921. 80090ba: 68fb ldr r3, [r7, #12]
  20922. 80090bc: 681b ldr r3, [r3, #0]
  20923. 80090be: 4a21 ldr r2, [pc, #132] @ (8009144 <HAL_DMA_Start_IT+0x4b0>)
  20924. 80090c0: 4293 cmp r3, r2
  20925. 80090c2: d108 bne.n 80090d6 <HAL_DMA_Start_IT+0x442>
  20926. 80090c4: 68fb ldr r3, [r7, #12]
  20927. 80090c6: 681b ldr r3, [r3, #0]
  20928. 80090c8: 681a ldr r2, [r3, #0]
  20929. 80090ca: 68fb ldr r3, [r7, #12]
  20930. 80090cc: 681b ldr r3, [r3, #0]
  20931. 80090ce: f042 0201 orr.w r2, r2, #1
  20932. 80090d2: 601a str r2, [r3, #0]
  20933. 80090d4: e012 b.n 80090fc <HAL_DMA_Start_IT+0x468>
  20934. 80090d6: 68fb ldr r3, [r7, #12]
  20935. 80090d8: 681b ldr r3, [r3, #0]
  20936. 80090da: 681a ldr r2, [r3, #0]
  20937. 80090dc: 68fb ldr r3, [r7, #12]
  20938. 80090de: 681b ldr r3, [r3, #0]
  20939. 80090e0: f042 0201 orr.w r2, r2, #1
  20940. 80090e4: 601a str r2, [r3, #0]
  20941. 80090e6: e009 b.n 80090fc <HAL_DMA_Start_IT+0x468>
  20942. }
  20943. else
  20944. {
  20945. /* Set the error code to busy */
  20946. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  20947. 80090e8: 68fb ldr r3, [r7, #12]
  20948. 80090ea: f44f 6200 mov.w r2, #2048 @ 0x800
  20949. 80090ee: 655a str r2, [r3, #84] @ 0x54
  20950. /* Process unlocked */
  20951. __HAL_UNLOCK(hdma);
  20952. 80090f0: 68fb ldr r3, [r7, #12]
  20953. 80090f2: 2200 movs r2, #0
  20954. 80090f4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20955. /* Return error status */
  20956. status = HAL_ERROR;
  20957. 80090f8: 2301 movs r3, #1
  20958. 80090fa: 75fb strb r3, [r7, #23]
  20959. }
  20960. return status;
  20961. 80090fc: 7dfb ldrb r3, [r7, #23]
  20962. }
  20963. 80090fe: 4618 mov r0, r3
  20964. 8009100: 3718 adds r7, #24
  20965. 8009102: 46bd mov sp, r7
  20966. 8009104: bd80 pop {r7, pc}
  20967. 8009106: bf00 nop
  20968. 8009108: 40020010 .word 0x40020010
  20969. 800910c: 40020028 .word 0x40020028
  20970. 8009110: 40020040 .word 0x40020040
  20971. 8009114: 40020058 .word 0x40020058
  20972. 8009118: 40020070 .word 0x40020070
  20973. 800911c: 40020088 .word 0x40020088
  20974. 8009120: 400200a0 .word 0x400200a0
  20975. 8009124: 400200b8 .word 0x400200b8
  20976. 8009128: 40020410 .word 0x40020410
  20977. 800912c: 40020428 .word 0x40020428
  20978. 8009130: 40020440 .word 0x40020440
  20979. 8009134: 40020458 .word 0x40020458
  20980. 8009138: 40020470 .word 0x40020470
  20981. 800913c: 40020488 .word 0x40020488
  20982. 8009140: 400204a0 .word 0x400204a0
  20983. 8009144: 400204b8 .word 0x400204b8
  20984. 8009148: 58025408 .word 0x58025408
  20985. 800914c: 5802541c .word 0x5802541c
  20986. 8009150: 58025430 .word 0x58025430
  20987. 8009154: 58025444 .word 0x58025444
  20988. 8009158: 58025458 .word 0x58025458
  20989. 800915c: 5802546c .word 0x5802546c
  20990. 8009160: 58025480 .word 0x58025480
  20991. 8009164: 58025494 .word 0x58025494
  20992. 08009168 <HAL_DMA_Abort>:
  20993. * and the Stream will be effectively disabled only after the transfer of
  20994. * this single data is finished.
  20995. * @retval HAL status
  20996. */
  20997. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  20998. {
  20999. 8009168: b580 push {r7, lr}
  21000. 800916a: b086 sub sp, #24
  21001. 800916c: af00 add r7, sp, #0
  21002. 800916e: 6078 str r0, [r7, #4]
  21003. /* calculate DMA base and stream number */
  21004. DMA_Base_Registers *regs_dma;
  21005. BDMA_Base_Registers *regs_bdma;
  21006. const __IO uint32_t *enableRegister;
  21007. uint32_t tickstart = HAL_GetTick();
  21008. 8009170: f7fc fe98 bl 8005ea4 <HAL_GetTick>
  21009. 8009174: 6138 str r0, [r7, #16]
  21010. /* Check the DMA peripheral handle */
  21011. if(hdma == NULL)
  21012. 8009176: 687b ldr r3, [r7, #4]
  21013. 8009178: 2b00 cmp r3, #0
  21014. 800917a: d101 bne.n 8009180 <HAL_DMA_Abort+0x18>
  21015. {
  21016. return HAL_ERROR;
  21017. 800917c: 2301 movs r3, #1
  21018. 800917e: e2dc b.n 800973a <HAL_DMA_Abort+0x5d2>
  21019. }
  21020. /* Check the DMA peripheral state */
  21021. if(hdma->State != HAL_DMA_STATE_BUSY)
  21022. 8009180: 687b ldr r3, [r7, #4]
  21023. 8009182: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21024. 8009186: b2db uxtb r3, r3
  21025. 8009188: 2b02 cmp r3, #2
  21026. 800918a: d008 beq.n 800919e <HAL_DMA_Abort+0x36>
  21027. {
  21028. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21029. 800918c: 687b ldr r3, [r7, #4]
  21030. 800918e: 2280 movs r2, #128 @ 0x80
  21031. 8009190: 655a str r2, [r3, #84] @ 0x54
  21032. /* Process Unlocked */
  21033. __HAL_UNLOCK(hdma);
  21034. 8009192: 687b ldr r3, [r7, #4]
  21035. 8009194: 2200 movs r2, #0
  21036. 8009196: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21037. return HAL_ERROR;
  21038. 800919a: 2301 movs r3, #1
  21039. 800919c: e2cd b.n 800973a <HAL_DMA_Abort+0x5d2>
  21040. }
  21041. else
  21042. {
  21043. /* Disable all the transfer interrupts */
  21044. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21045. 800919e: 687b ldr r3, [r7, #4]
  21046. 80091a0: 681b ldr r3, [r3, #0]
  21047. 80091a2: 4a76 ldr r2, [pc, #472] @ (800937c <HAL_DMA_Abort+0x214>)
  21048. 80091a4: 4293 cmp r3, r2
  21049. 80091a6: d04a beq.n 800923e <HAL_DMA_Abort+0xd6>
  21050. 80091a8: 687b ldr r3, [r7, #4]
  21051. 80091aa: 681b ldr r3, [r3, #0]
  21052. 80091ac: 4a74 ldr r2, [pc, #464] @ (8009380 <HAL_DMA_Abort+0x218>)
  21053. 80091ae: 4293 cmp r3, r2
  21054. 80091b0: d045 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21055. 80091b2: 687b ldr r3, [r7, #4]
  21056. 80091b4: 681b ldr r3, [r3, #0]
  21057. 80091b6: 4a73 ldr r2, [pc, #460] @ (8009384 <HAL_DMA_Abort+0x21c>)
  21058. 80091b8: 4293 cmp r3, r2
  21059. 80091ba: d040 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21060. 80091bc: 687b ldr r3, [r7, #4]
  21061. 80091be: 681b ldr r3, [r3, #0]
  21062. 80091c0: 4a71 ldr r2, [pc, #452] @ (8009388 <HAL_DMA_Abort+0x220>)
  21063. 80091c2: 4293 cmp r3, r2
  21064. 80091c4: d03b beq.n 800923e <HAL_DMA_Abort+0xd6>
  21065. 80091c6: 687b ldr r3, [r7, #4]
  21066. 80091c8: 681b ldr r3, [r3, #0]
  21067. 80091ca: 4a70 ldr r2, [pc, #448] @ (800938c <HAL_DMA_Abort+0x224>)
  21068. 80091cc: 4293 cmp r3, r2
  21069. 80091ce: d036 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21070. 80091d0: 687b ldr r3, [r7, #4]
  21071. 80091d2: 681b ldr r3, [r3, #0]
  21072. 80091d4: 4a6e ldr r2, [pc, #440] @ (8009390 <HAL_DMA_Abort+0x228>)
  21073. 80091d6: 4293 cmp r3, r2
  21074. 80091d8: d031 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21075. 80091da: 687b ldr r3, [r7, #4]
  21076. 80091dc: 681b ldr r3, [r3, #0]
  21077. 80091de: 4a6d ldr r2, [pc, #436] @ (8009394 <HAL_DMA_Abort+0x22c>)
  21078. 80091e0: 4293 cmp r3, r2
  21079. 80091e2: d02c beq.n 800923e <HAL_DMA_Abort+0xd6>
  21080. 80091e4: 687b ldr r3, [r7, #4]
  21081. 80091e6: 681b ldr r3, [r3, #0]
  21082. 80091e8: 4a6b ldr r2, [pc, #428] @ (8009398 <HAL_DMA_Abort+0x230>)
  21083. 80091ea: 4293 cmp r3, r2
  21084. 80091ec: d027 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21085. 80091ee: 687b ldr r3, [r7, #4]
  21086. 80091f0: 681b ldr r3, [r3, #0]
  21087. 80091f2: 4a6a ldr r2, [pc, #424] @ (800939c <HAL_DMA_Abort+0x234>)
  21088. 80091f4: 4293 cmp r3, r2
  21089. 80091f6: d022 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21090. 80091f8: 687b ldr r3, [r7, #4]
  21091. 80091fa: 681b ldr r3, [r3, #0]
  21092. 80091fc: 4a68 ldr r2, [pc, #416] @ (80093a0 <HAL_DMA_Abort+0x238>)
  21093. 80091fe: 4293 cmp r3, r2
  21094. 8009200: d01d beq.n 800923e <HAL_DMA_Abort+0xd6>
  21095. 8009202: 687b ldr r3, [r7, #4]
  21096. 8009204: 681b ldr r3, [r3, #0]
  21097. 8009206: 4a67 ldr r2, [pc, #412] @ (80093a4 <HAL_DMA_Abort+0x23c>)
  21098. 8009208: 4293 cmp r3, r2
  21099. 800920a: d018 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21100. 800920c: 687b ldr r3, [r7, #4]
  21101. 800920e: 681b ldr r3, [r3, #0]
  21102. 8009210: 4a65 ldr r2, [pc, #404] @ (80093a8 <HAL_DMA_Abort+0x240>)
  21103. 8009212: 4293 cmp r3, r2
  21104. 8009214: d013 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21105. 8009216: 687b ldr r3, [r7, #4]
  21106. 8009218: 681b ldr r3, [r3, #0]
  21107. 800921a: 4a64 ldr r2, [pc, #400] @ (80093ac <HAL_DMA_Abort+0x244>)
  21108. 800921c: 4293 cmp r3, r2
  21109. 800921e: d00e beq.n 800923e <HAL_DMA_Abort+0xd6>
  21110. 8009220: 687b ldr r3, [r7, #4]
  21111. 8009222: 681b ldr r3, [r3, #0]
  21112. 8009224: 4a62 ldr r2, [pc, #392] @ (80093b0 <HAL_DMA_Abort+0x248>)
  21113. 8009226: 4293 cmp r3, r2
  21114. 8009228: d009 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21115. 800922a: 687b ldr r3, [r7, #4]
  21116. 800922c: 681b ldr r3, [r3, #0]
  21117. 800922e: 4a61 ldr r2, [pc, #388] @ (80093b4 <HAL_DMA_Abort+0x24c>)
  21118. 8009230: 4293 cmp r3, r2
  21119. 8009232: d004 beq.n 800923e <HAL_DMA_Abort+0xd6>
  21120. 8009234: 687b ldr r3, [r7, #4]
  21121. 8009236: 681b ldr r3, [r3, #0]
  21122. 8009238: 4a5f ldr r2, [pc, #380] @ (80093b8 <HAL_DMA_Abort+0x250>)
  21123. 800923a: 4293 cmp r3, r2
  21124. 800923c: d101 bne.n 8009242 <HAL_DMA_Abort+0xda>
  21125. 800923e: 2301 movs r3, #1
  21126. 8009240: e000 b.n 8009244 <HAL_DMA_Abort+0xdc>
  21127. 8009242: 2300 movs r3, #0
  21128. 8009244: 2b00 cmp r3, #0
  21129. 8009246: d013 beq.n 8009270 <HAL_DMA_Abort+0x108>
  21130. {
  21131. /* Disable DMA All Interrupts */
  21132. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  21133. 8009248: 687b ldr r3, [r7, #4]
  21134. 800924a: 681b ldr r3, [r3, #0]
  21135. 800924c: 681a ldr r2, [r3, #0]
  21136. 800924e: 687b ldr r3, [r7, #4]
  21137. 8009250: 681b ldr r3, [r3, #0]
  21138. 8009252: f022 021e bic.w r2, r2, #30
  21139. 8009256: 601a str r2, [r3, #0]
  21140. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  21141. 8009258: 687b ldr r3, [r7, #4]
  21142. 800925a: 681b ldr r3, [r3, #0]
  21143. 800925c: 695a ldr r2, [r3, #20]
  21144. 800925e: 687b ldr r3, [r7, #4]
  21145. 8009260: 681b ldr r3, [r3, #0]
  21146. 8009262: f022 0280 bic.w r2, r2, #128 @ 0x80
  21147. 8009266: 615a str r2, [r3, #20]
  21148. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  21149. 8009268: 687b ldr r3, [r7, #4]
  21150. 800926a: 681b ldr r3, [r3, #0]
  21151. 800926c: 617b str r3, [r7, #20]
  21152. 800926e: e00a b.n 8009286 <HAL_DMA_Abort+0x11e>
  21153. }
  21154. else /* BDMA channel */
  21155. {
  21156. /* Disable DMA All Interrupts */
  21157. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21158. 8009270: 687b ldr r3, [r7, #4]
  21159. 8009272: 681b ldr r3, [r3, #0]
  21160. 8009274: 681a ldr r2, [r3, #0]
  21161. 8009276: 687b ldr r3, [r7, #4]
  21162. 8009278: 681b ldr r3, [r3, #0]
  21163. 800927a: f022 020e bic.w r2, r2, #14
  21164. 800927e: 601a str r2, [r3, #0]
  21165. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  21166. 8009280: 687b ldr r3, [r7, #4]
  21167. 8009282: 681b ldr r3, [r3, #0]
  21168. 8009284: 617b str r3, [r7, #20]
  21169. }
  21170. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21171. 8009286: 687b ldr r3, [r7, #4]
  21172. 8009288: 681b ldr r3, [r3, #0]
  21173. 800928a: 4a3c ldr r2, [pc, #240] @ (800937c <HAL_DMA_Abort+0x214>)
  21174. 800928c: 4293 cmp r3, r2
  21175. 800928e: d072 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21176. 8009290: 687b ldr r3, [r7, #4]
  21177. 8009292: 681b ldr r3, [r3, #0]
  21178. 8009294: 4a3a ldr r2, [pc, #232] @ (8009380 <HAL_DMA_Abort+0x218>)
  21179. 8009296: 4293 cmp r3, r2
  21180. 8009298: d06d beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21181. 800929a: 687b ldr r3, [r7, #4]
  21182. 800929c: 681b ldr r3, [r3, #0]
  21183. 800929e: 4a39 ldr r2, [pc, #228] @ (8009384 <HAL_DMA_Abort+0x21c>)
  21184. 80092a0: 4293 cmp r3, r2
  21185. 80092a2: d068 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21186. 80092a4: 687b ldr r3, [r7, #4]
  21187. 80092a6: 681b ldr r3, [r3, #0]
  21188. 80092a8: 4a37 ldr r2, [pc, #220] @ (8009388 <HAL_DMA_Abort+0x220>)
  21189. 80092aa: 4293 cmp r3, r2
  21190. 80092ac: d063 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21191. 80092ae: 687b ldr r3, [r7, #4]
  21192. 80092b0: 681b ldr r3, [r3, #0]
  21193. 80092b2: 4a36 ldr r2, [pc, #216] @ (800938c <HAL_DMA_Abort+0x224>)
  21194. 80092b4: 4293 cmp r3, r2
  21195. 80092b6: d05e beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21196. 80092b8: 687b ldr r3, [r7, #4]
  21197. 80092ba: 681b ldr r3, [r3, #0]
  21198. 80092bc: 4a34 ldr r2, [pc, #208] @ (8009390 <HAL_DMA_Abort+0x228>)
  21199. 80092be: 4293 cmp r3, r2
  21200. 80092c0: d059 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21201. 80092c2: 687b ldr r3, [r7, #4]
  21202. 80092c4: 681b ldr r3, [r3, #0]
  21203. 80092c6: 4a33 ldr r2, [pc, #204] @ (8009394 <HAL_DMA_Abort+0x22c>)
  21204. 80092c8: 4293 cmp r3, r2
  21205. 80092ca: d054 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21206. 80092cc: 687b ldr r3, [r7, #4]
  21207. 80092ce: 681b ldr r3, [r3, #0]
  21208. 80092d0: 4a31 ldr r2, [pc, #196] @ (8009398 <HAL_DMA_Abort+0x230>)
  21209. 80092d2: 4293 cmp r3, r2
  21210. 80092d4: d04f beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21211. 80092d6: 687b ldr r3, [r7, #4]
  21212. 80092d8: 681b ldr r3, [r3, #0]
  21213. 80092da: 4a30 ldr r2, [pc, #192] @ (800939c <HAL_DMA_Abort+0x234>)
  21214. 80092dc: 4293 cmp r3, r2
  21215. 80092de: d04a beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21216. 80092e0: 687b ldr r3, [r7, #4]
  21217. 80092e2: 681b ldr r3, [r3, #0]
  21218. 80092e4: 4a2e ldr r2, [pc, #184] @ (80093a0 <HAL_DMA_Abort+0x238>)
  21219. 80092e6: 4293 cmp r3, r2
  21220. 80092e8: d045 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21221. 80092ea: 687b ldr r3, [r7, #4]
  21222. 80092ec: 681b ldr r3, [r3, #0]
  21223. 80092ee: 4a2d ldr r2, [pc, #180] @ (80093a4 <HAL_DMA_Abort+0x23c>)
  21224. 80092f0: 4293 cmp r3, r2
  21225. 80092f2: d040 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21226. 80092f4: 687b ldr r3, [r7, #4]
  21227. 80092f6: 681b ldr r3, [r3, #0]
  21228. 80092f8: 4a2b ldr r2, [pc, #172] @ (80093a8 <HAL_DMA_Abort+0x240>)
  21229. 80092fa: 4293 cmp r3, r2
  21230. 80092fc: d03b beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21231. 80092fe: 687b ldr r3, [r7, #4]
  21232. 8009300: 681b ldr r3, [r3, #0]
  21233. 8009302: 4a2a ldr r2, [pc, #168] @ (80093ac <HAL_DMA_Abort+0x244>)
  21234. 8009304: 4293 cmp r3, r2
  21235. 8009306: d036 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21236. 8009308: 687b ldr r3, [r7, #4]
  21237. 800930a: 681b ldr r3, [r3, #0]
  21238. 800930c: 4a28 ldr r2, [pc, #160] @ (80093b0 <HAL_DMA_Abort+0x248>)
  21239. 800930e: 4293 cmp r3, r2
  21240. 8009310: d031 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21241. 8009312: 687b ldr r3, [r7, #4]
  21242. 8009314: 681b ldr r3, [r3, #0]
  21243. 8009316: 4a27 ldr r2, [pc, #156] @ (80093b4 <HAL_DMA_Abort+0x24c>)
  21244. 8009318: 4293 cmp r3, r2
  21245. 800931a: d02c beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21246. 800931c: 687b ldr r3, [r7, #4]
  21247. 800931e: 681b ldr r3, [r3, #0]
  21248. 8009320: 4a25 ldr r2, [pc, #148] @ (80093b8 <HAL_DMA_Abort+0x250>)
  21249. 8009322: 4293 cmp r3, r2
  21250. 8009324: d027 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21251. 8009326: 687b ldr r3, [r7, #4]
  21252. 8009328: 681b ldr r3, [r3, #0]
  21253. 800932a: 4a24 ldr r2, [pc, #144] @ (80093bc <HAL_DMA_Abort+0x254>)
  21254. 800932c: 4293 cmp r3, r2
  21255. 800932e: d022 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21256. 8009330: 687b ldr r3, [r7, #4]
  21257. 8009332: 681b ldr r3, [r3, #0]
  21258. 8009334: 4a22 ldr r2, [pc, #136] @ (80093c0 <HAL_DMA_Abort+0x258>)
  21259. 8009336: 4293 cmp r3, r2
  21260. 8009338: d01d beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21261. 800933a: 687b ldr r3, [r7, #4]
  21262. 800933c: 681b ldr r3, [r3, #0]
  21263. 800933e: 4a21 ldr r2, [pc, #132] @ (80093c4 <HAL_DMA_Abort+0x25c>)
  21264. 8009340: 4293 cmp r3, r2
  21265. 8009342: d018 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21266. 8009344: 687b ldr r3, [r7, #4]
  21267. 8009346: 681b ldr r3, [r3, #0]
  21268. 8009348: 4a1f ldr r2, [pc, #124] @ (80093c8 <HAL_DMA_Abort+0x260>)
  21269. 800934a: 4293 cmp r3, r2
  21270. 800934c: d013 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21271. 800934e: 687b ldr r3, [r7, #4]
  21272. 8009350: 681b ldr r3, [r3, #0]
  21273. 8009352: 4a1e ldr r2, [pc, #120] @ (80093cc <HAL_DMA_Abort+0x264>)
  21274. 8009354: 4293 cmp r3, r2
  21275. 8009356: d00e beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21276. 8009358: 687b ldr r3, [r7, #4]
  21277. 800935a: 681b ldr r3, [r3, #0]
  21278. 800935c: 4a1c ldr r2, [pc, #112] @ (80093d0 <HAL_DMA_Abort+0x268>)
  21279. 800935e: 4293 cmp r3, r2
  21280. 8009360: d009 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21281. 8009362: 687b ldr r3, [r7, #4]
  21282. 8009364: 681b ldr r3, [r3, #0]
  21283. 8009366: 4a1b ldr r2, [pc, #108] @ (80093d4 <HAL_DMA_Abort+0x26c>)
  21284. 8009368: 4293 cmp r3, r2
  21285. 800936a: d004 beq.n 8009376 <HAL_DMA_Abort+0x20e>
  21286. 800936c: 687b ldr r3, [r7, #4]
  21287. 800936e: 681b ldr r3, [r3, #0]
  21288. 8009370: 4a19 ldr r2, [pc, #100] @ (80093d8 <HAL_DMA_Abort+0x270>)
  21289. 8009372: 4293 cmp r3, r2
  21290. 8009374: d132 bne.n 80093dc <HAL_DMA_Abort+0x274>
  21291. 8009376: 2301 movs r3, #1
  21292. 8009378: e031 b.n 80093de <HAL_DMA_Abort+0x276>
  21293. 800937a: bf00 nop
  21294. 800937c: 40020010 .word 0x40020010
  21295. 8009380: 40020028 .word 0x40020028
  21296. 8009384: 40020040 .word 0x40020040
  21297. 8009388: 40020058 .word 0x40020058
  21298. 800938c: 40020070 .word 0x40020070
  21299. 8009390: 40020088 .word 0x40020088
  21300. 8009394: 400200a0 .word 0x400200a0
  21301. 8009398: 400200b8 .word 0x400200b8
  21302. 800939c: 40020410 .word 0x40020410
  21303. 80093a0: 40020428 .word 0x40020428
  21304. 80093a4: 40020440 .word 0x40020440
  21305. 80093a8: 40020458 .word 0x40020458
  21306. 80093ac: 40020470 .word 0x40020470
  21307. 80093b0: 40020488 .word 0x40020488
  21308. 80093b4: 400204a0 .word 0x400204a0
  21309. 80093b8: 400204b8 .word 0x400204b8
  21310. 80093bc: 58025408 .word 0x58025408
  21311. 80093c0: 5802541c .word 0x5802541c
  21312. 80093c4: 58025430 .word 0x58025430
  21313. 80093c8: 58025444 .word 0x58025444
  21314. 80093cc: 58025458 .word 0x58025458
  21315. 80093d0: 5802546c .word 0x5802546c
  21316. 80093d4: 58025480 .word 0x58025480
  21317. 80093d8: 58025494 .word 0x58025494
  21318. 80093dc: 2300 movs r3, #0
  21319. 80093de: 2b00 cmp r3, #0
  21320. 80093e0: d007 beq.n 80093f2 <HAL_DMA_Abort+0x28a>
  21321. {
  21322. /* disable the DMAMUX sync overrun IT */
  21323. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21324. 80093e2: 687b ldr r3, [r7, #4]
  21325. 80093e4: 6e1b ldr r3, [r3, #96] @ 0x60
  21326. 80093e6: 681a ldr r2, [r3, #0]
  21327. 80093e8: 687b ldr r3, [r7, #4]
  21328. 80093ea: 6e1b ldr r3, [r3, #96] @ 0x60
  21329. 80093ec: f422 7280 bic.w r2, r2, #256 @ 0x100
  21330. 80093f0: 601a str r2, [r3, #0]
  21331. }
  21332. /* Disable the stream */
  21333. __HAL_DMA_DISABLE(hdma);
  21334. 80093f2: 687b ldr r3, [r7, #4]
  21335. 80093f4: 681b ldr r3, [r3, #0]
  21336. 80093f6: 4a6d ldr r2, [pc, #436] @ (80095ac <HAL_DMA_Abort+0x444>)
  21337. 80093f8: 4293 cmp r3, r2
  21338. 80093fa: d04a beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21339. 80093fc: 687b ldr r3, [r7, #4]
  21340. 80093fe: 681b ldr r3, [r3, #0]
  21341. 8009400: 4a6b ldr r2, [pc, #428] @ (80095b0 <HAL_DMA_Abort+0x448>)
  21342. 8009402: 4293 cmp r3, r2
  21343. 8009404: d045 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21344. 8009406: 687b ldr r3, [r7, #4]
  21345. 8009408: 681b ldr r3, [r3, #0]
  21346. 800940a: 4a6a ldr r2, [pc, #424] @ (80095b4 <HAL_DMA_Abort+0x44c>)
  21347. 800940c: 4293 cmp r3, r2
  21348. 800940e: d040 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21349. 8009410: 687b ldr r3, [r7, #4]
  21350. 8009412: 681b ldr r3, [r3, #0]
  21351. 8009414: 4a68 ldr r2, [pc, #416] @ (80095b8 <HAL_DMA_Abort+0x450>)
  21352. 8009416: 4293 cmp r3, r2
  21353. 8009418: d03b beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21354. 800941a: 687b ldr r3, [r7, #4]
  21355. 800941c: 681b ldr r3, [r3, #0]
  21356. 800941e: 4a67 ldr r2, [pc, #412] @ (80095bc <HAL_DMA_Abort+0x454>)
  21357. 8009420: 4293 cmp r3, r2
  21358. 8009422: d036 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21359. 8009424: 687b ldr r3, [r7, #4]
  21360. 8009426: 681b ldr r3, [r3, #0]
  21361. 8009428: 4a65 ldr r2, [pc, #404] @ (80095c0 <HAL_DMA_Abort+0x458>)
  21362. 800942a: 4293 cmp r3, r2
  21363. 800942c: d031 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21364. 800942e: 687b ldr r3, [r7, #4]
  21365. 8009430: 681b ldr r3, [r3, #0]
  21366. 8009432: 4a64 ldr r2, [pc, #400] @ (80095c4 <HAL_DMA_Abort+0x45c>)
  21367. 8009434: 4293 cmp r3, r2
  21368. 8009436: d02c beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21369. 8009438: 687b ldr r3, [r7, #4]
  21370. 800943a: 681b ldr r3, [r3, #0]
  21371. 800943c: 4a62 ldr r2, [pc, #392] @ (80095c8 <HAL_DMA_Abort+0x460>)
  21372. 800943e: 4293 cmp r3, r2
  21373. 8009440: d027 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21374. 8009442: 687b ldr r3, [r7, #4]
  21375. 8009444: 681b ldr r3, [r3, #0]
  21376. 8009446: 4a61 ldr r2, [pc, #388] @ (80095cc <HAL_DMA_Abort+0x464>)
  21377. 8009448: 4293 cmp r3, r2
  21378. 800944a: d022 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21379. 800944c: 687b ldr r3, [r7, #4]
  21380. 800944e: 681b ldr r3, [r3, #0]
  21381. 8009450: 4a5f ldr r2, [pc, #380] @ (80095d0 <HAL_DMA_Abort+0x468>)
  21382. 8009452: 4293 cmp r3, r2
  21383. 8009454: d01d beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21384. 8009456: 687b ldr r3, [r7, #4]
  21385. 8009458: 681b ldr r3, [r3, #0]
  21386. 800945a: 4a5e ldr r2, [pc, #376] @ (80095d4 <HAL_DMA_Abort+0x46c>)
  21387. 800945c: 4293 cmp r3, r2
  21388. 800945e: d018 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21389. 8009460: 687b ldr r3, [r7, #4]
  21390. 8009462: 681b ldr r3, [r3, #0]
  21391. 8009464: 4a5c ldr r2, [pc, #368] @ (80095d8 <HAL_DMA_Abort+0x470>)
  21392. 8009466: 4293 cmp r3, r2
  21393. 8009468: d013 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21394. 800946a: 687b ldr r3, [r7, #4]
  21395. 800946c: 681b ldr r3, [r3, #0]
  21396. 800946e: 4a5b ldr r2, [pc, #364] @ (80095dc <HAL_DMA_Abort+0x474>)
  21397. 8009470: 4293 cmp r3, r2
  21398. 8009472: d00e beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21399. 8009474: 687b ldr r3, [r7, #4]
  21400. 8009476: 681b ldr r3, [r3, #0]
  21401. 8009478: 4a59 ldr r2, [pc, #356] @ (80095e0 <HAL_DMA_Abort+0x478>)
  21402. 800947a: 4293 cmp r3, r2
  21403. 800947c: d009 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21404. 800947e: 687b ldr r3, [r7, #4]
  21405. 8009480: 681b ldr r3, [r3, #0]
  21406. 8009482: 4a58 ldr r2, [pc, #352] @ (80095e4 <HAL_DMA_Abort+0x47c>)
  21407. 8009484: 4293 cmp r3, r2
  21408. 8009486: d004 beq.n 8009492 <HAL_DMA_Abort+0x32a>
  21409. 8009488: 687b ldr r3, [r7, #4]
  21410. 800948a: 681b ldr r3, [r3, #0]
  21411. 800948c: 4a56 ldr r2, [pc, #344] @ (80095e8 <HAL_DMA_Abort+0x480>)
  21412. 800948e: 4293 cmp r3, r2
  21413. 8009490: d108 bne.n 80094a4 <HAL_DMA_Abort+0x33c>
  21414. 8009492: 687b ldr r3, [r7, #4]
  21415. 8009494: 681b ldr r3, [r3, #0]
  21416. 8009496: 681a ldr r2, [r3, #0]
  21417. 8009498: 687b ldr r3, [r7, #4]
  21418. 800949a: 681b ldr r3, [r3, #0]
  21419. 800949c: f022 0201 bic.w r2, r2, #1
  21420. 80094a0: 601a str r2, [r3, #0]
  21421. 80094a2: e007 b.n 80094b4 <HAL_DMA_Abort+0x34c>
  21422. 80094a4: 687b ldr r3, [r7, #4]
  21423. 80094a6: 681b ldr r3, [r3, #0]
  21424. 80094a8: 681a ldr r2, [r3, #0]
  21425. 80094aa: 687b ldr r3, [r7, #4]
  21426. 80094ac: 681b ldr r3, [r3, #0]
  21427. 80094ae: f022 0201 bic.w r2, r2, #1
  21428. 80094b2: 601a str r2, [r3, #0]
  21429. /* Check if the DMA Stream is effectively disabled */
  21430. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21431. 80094b4: e013 b.n 80094de <HAL_DMA_Abort+0x376>
  21432. {
  21433. /* Check for the Timeout */
  21434. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  21435. 80094b6: f7fc fcf5 bl 8005ea4 <HAL_GetTick>
  21436. 80094ba: 4602 mov r2, r0
  21437. 80094bc: 693b ldr r3, [r7, #16]
  21438. 80094be: 1ad3 subs r3, r2, r3
  21439. 80094c0: 2b05 cmp r3, #5
  21440. 80094c2: d90c bls.n 80094de <HAL_DMA_Abort+0x376>
  21441. {
  21442. /* Update error code */
  21443. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  21444. 80094c4: 687b ldr r3, [r7, #4]
  21445. 80094c6: 2220 movs r2, #32
  21446. 80094c8: 655a str r2, [r3, #84] @ 0x54
  21447. /* Change the DMA state */
  21448. hdma->State = HAL_DMA_STATE_ERROR;
  21449. 80094ca: 687b ldr r3, [r7, #4]
  21450. 80094cc: 2203 movs r2, #3
  21451. 80094ce: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21452. /* Process Unlocked */
  21453. __HAL_UNLOCK(hdma);
  21454. 80094d2: 687b ldr r3, [r7, #4]
  21455. 80094d4: 2200 movs r2, #0
  21456. 80094d6: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21457. return HAL_ERROR;
  21458. 80094da: 2301 movs r3, #1
  21459. 80094dc: e12d b.n 800973a <HAL_DMA_Abort+0x5d2>
  21460. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21461. 80094de: 697b ldr r3, [r7, #20]
  21462. 80094e0: 681b ldr r3, [r3, #0]
  21463. 80094e2: f003 0301 and.w r3, r3, #1
  21464. 80094e6: 2b00 cmp r3, #0
  21465. 80094e8: d1e5 bne.n 80094b6 <HAL_DMA_Abort+0x34e>
  21466. }
  21467. }
  21468. /* Clear all interrupt flags at correct offset within the register */
  21469. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21470. 80094ea: 687b ldr r3, [r7, #4]
  21471. 80094ec: 681b ldr r3, [r3, #0]
  21472. 80094ee: 4a2f ldr r2, [pc, #188] @ (80095ac <HAL_DMA_Abort+0x444>)
  21473. 80094f0: 4293 cmp r3, r2
  21474. 80094f2: d04a beq.n 800958a <HAL_DMA_Abort+0x422>
  21475. 80094f4: 687b ldr r3, [r7, #4]
  21476. 80094f6: 681b ldr r3, [r3, #0]
  21477. 80094f8: 4a2d ldr r2, [pc, #180] @ (80095b0 <HAL_DMA_Abort+0x448>)
  21478. 80094fa: 4293 cmp r3, r2
  21479. 80094fc: d045 beq.n 800958a <HAL_DMA_Abort+0x422>
  21480. 80094fe: 687b ldr r3, [r7, #4]
  21481. 8009500: 681b ldr r3, [r3, #0]
  21482. 8009502: 4a2c ldr r2, [pc, #176] @ (80095b4 <HAL_DMA_Abort+0x44c>)
  21483. 8009504: 4293 cmp r3, r2
  21484. 8009506: d040 beq.n 800958a <HAL_DMA_Abort+0x422>
  21485. 8009508: 687b ldr r3, [r7, #4]
  21486. 800950a: 681b ldr r3, [r3, #0]
  21487. 800950c: 4a2a ldr r2, [pc, #168] @ (80095b8 <HAL_DMA_Abort+0x450>)
  21488. 800950e: 4293 cmp r3, r2
  21489. 8009510: d03b beq.n 800958a <HAL_DMA_Abort+0x422>
  21490. 8009512: 687b ldr r3, [r7, #4]
  21491. 8009514: 681b ldr r3, [r3, #0]
  21492. 8009516: 4a29 ldr r2, [pc, #164] @ (80095bc <HAL_DMA_Abort+0x454>)
  21493. 8009518: 4293 cmp r3, r2
  21494. 800951a: d036 beq.n 800958a <HAL_DMA_Abort+0x422>
  21495. 800951c: 687b ldr r3, [r7, #4]
  21496. 800951e: 681b ldr r3, [r3, #0]
  21497. 8009520: 4a27 ldr r2, [pc, #156] @ (80095c0 <HAL_DMA_Abort+0x458>)
  21498. 8009522: 4293 cmp r3, r2
  21499. 8009524: d031 beq.n 800958a <HAL_DMA_Abort+0x422>
  21500. 8009526: 687b ldr r3, [r7, #4]
  21501. 8009528: 681b ldr r3, [r3, #0]
  21502. 800952a: 4a26 ldr r2, [pc, #152] @ (80095c4 <HAL_DMA_Abort+0x45c>)
  21503. 800952c: 4293 cmp r3, r2
  21504. 800952e: d02c beq.n 800958a <HAL_DMA_Abort+0x422>
  21505. 8009530: 687b ldr r3, [r7, #4]
  21506. 8009532: 681b ldr r3, [r3, #0]
  21507. 8009534: 4a24 ldr r2, [pc, #144] @ (80095c8 <HAL_DMA_Abort+0x460>)
  21508. 8009536: 4293 cmp r3, r2
  21509. 8009538: d027 beq.n 800958a <HAL_DMA_Abort+0x422>
  21510. 800953a: 687b ldr r3, [r7, #4]
  21511. 800953c: 681b ldr r3, [r3, #0]
  21512. 800953e: 4a23 ldr r2, [pc, #140] @ (80095cc <HAL_DMA_Abort+0x464>)
  21513. 8009540: 4293 cmp r3, r2
  21514. 8009542: d022 beq.n 800958a <HAL_DMA_Abort+0x422>
  21515. 8009544: 687b ldr r3, [r7, #4]
  21516. 8009546: 681b ldr r3, [r3, #0]
  21517. 8009548: 4a21 ldr r2, [pc, #132] @ (80095d0 <HAL_DMA_Abort+0x468>)
  21518. 800954a: 4293 cmp r3, r2
  21519. 800954c: d01d beq.n 800958a <HAL_DMA_Abort+0x422>
  21520. 800954e: 687b ldr r3, [r7, #4]
  21521. 8009550: 681b ldr r3, [r3, #0]
  21522. 8009552: 4a20 ldr r2, [pc, #128] @ (80095d4 <HAL_DMA_Abort+0x46c>)
  21523. 8009554: 4293 cmp r3, r2
  21524. 8009556: d018 beq.n 800958a <HAL_DMA_Abort+0x422>
  21525. 8009558: 687b ldr r3, [r7, #4]
  21526. 800955a: 681b ldr r3, [r3, #0]
  21527. 800955c: 4a1e ldr r2, [pc, #120] @ (80095d8 <HAL_DMA_Abort+0x470>)
  21528. 800955e: 4293 cmp r3, r2
  21529. 8009560: d013 beq.n 800958a <HAL_DMA_Abort+0x422>
  21530. 8009562: 687b ldr r3, [r7, #4]
  21531. 8009564: 681b ldr r3, [r3, #0]
  21532. 8009566: 4a1d ldr r2, [pc, #116] @ (80095dc <HAL_DMA_Abort+0x474>)
  21533. 8009568: 4293 cmp r3, r2
  21534. 800956a: d00e beq.n 800958a <HAL_DMA_Abort+0x422>
  21535. 800956c: 687b ldr r3, [r7, #4]
  21536. 800956e: 681b ldr r3, [r3, #0]
  21537. 8009570: 4a1b ldr r2, [pc, #108] @ (80095e0 <HAL_DMA_Abort+0x478>)
  21538. 8009572: 4293 cmp r3, r2
  21539. 8009574: d009 beq.n 800958a <HAL_DMA_Abort+0x422>
  21540. 8009576: 687b ldr r3, [r7, #4]
  21541. 8009578: 681b ldr r3, [r3, #0]
  21542. 800957a: 4a1a ldr r2, [pc, #104] @ (80095e4 <HAL_DMA_Abort+0x47c>)
  21543. 800957c: 4293 cmp r3, r2
  21544. 800957e: d004 beq.n 800958a <HAL_DMA_Abort+0x422>
  21545. 8009580: 687b ldr r3, [r7, #4]
  21546. 8009582: 681b ldr r3, [r3, #0]
  21547. 8009584: 4a18 ldr r2, [pc, #96] @ (80095e8 <HAL_DMA_Abort+0x480>)
  21548. 8009586: 4293 cmp r3, r2
  21549. 8009588: d101 bne.n 800958e <HAL_DMA_Abort+0x426>
  21550. 800958a: 2301 movs r3, #1
  21551. 800958c: e000 b.n 8009590 <HAL_DMA_Abort+0x428>
  21552. 800958e: 2300 movs r3, #0
  21553. 8009590: 2b00 cmp r3, #0
  21554. 8009592: d02b beq.n 80095ec <HAL_DMA_Abort+0x484>
  21555. {
  21556. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21557. 8009594: 687b ldr r3, [r7, #4]
  21558. 8009596: 6d9b ldr r3, [r3, #88] @ 0x58
  21559. 8009598: 60bb str r3, [r7, #8]
  21560. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  21561. 800959a: 687b ldr r3, [r7, #4]
  21562. 800959c: 6ddb ldr r3, [r3, #92] @ 0x5c
  21563. 800959e: f003 031f and.w r3, r3, #31
  21564. 80095a2: 223f movs r2, #63 @ 0x3f
  21565. 80095a4: 409a lsls r2, r3
  21566. 80095a6: 68bb ldr r3, [r7, #8]
  21567. 80095a8: 609a str r2, [r3, #8]
  21568. 80095aa: e02a b.n 8009602 <HAL_DMA_Abort+0x49a>
  21569. 80095ac: 40020010 .word 0x40020010
  21570. 80095b0: 40020028 .word 0x40020028
  21571. 80095b4: 40020040 .word 0x40020040
  21572. 80095b8: 40020058 .word 0x40020058
  21573. 80095bc: 40020070 .word 0x40020070
  21574. 80095c0: 40020088 .word 0x40020088
  21575. 80095c4: 400200a0 .word 0x400200a0
  21576. 80095c8: 400200b8 .word 0x400200b8
  21577. 80095cc: 40020410 .word 0x40020410
  21578. 80095d0: 40020428 .word 0x40020428
  21579. 80095d4: 40020440 .word 0x40020440
  21580. 80095d8: 40020458 .word 0x40020458
  21581. 80095dc: 40020470 .word 0x40020470
  21582. 80095e0: 40020488 .word 0x40020488
  21583. 80095e4: 400204a0 .word 0x400204a0
  21584. 80095e8: 400204b8 .word 0x400204b8
  21585. }
  21586. else /* BDMA channel */
  21587. {
  21588. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21589. 80095ec: 687b ldr r3, [r7, #4]
  21590. 80095ee: 6d9b ldr r3, [r3, #88] @ 0x58
  21591. 80095f0: 60fb str r3, [r7, #12]
  21592. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21593. 80095f2: 687b ldr r3, [r7, #4]
  21594. 80095f4: 6ddb ldr r3, [r3, #92] @ 0x5c
  21595. 80095f6: f003 031f and.w r3, r3, #31
  21596. 80095fa: 2201 movs r2, #1
  21597. 80095fc: 409a lsls r2, r3
  21598. 80095fe: 68fb ldr r3, [r7, #12]
  21599. 8009600: 605a str r2, [r3, #4]
  21600. }
  21601. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21602. 8009602: 687b ldr r3, [r7, #4]
  21603. 8009604: 681b ldr r3, [r3, #0]
  21604. 8009606: 4a4f ldr r2, [pc, #316] @ (8009744 <HAL_DMA_Abort+0x5dc>)
  21605. 8009608: 4293 cmp r3, r2
  21606. 800960a: d072 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21607. 800960c: 687b ldr r3, [r7, #4]
  21608. 800960e: 681b ldr r3, [r3, #0]
  21609. 8009610: 4a4d ldr r2, [pc, #308] @ (8009748 <HAL_DMA_Abort+0x5e0>)
  21610. 8009612: 4293 cmp r3, r2
  21611. 8009614: d06d beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21612. 8009616: 687b ldr r3, [r7, #4]
  21613. 8009618: 681b ldr r3, [r3, #0]
  21614. 800961a: 4a4c ldr r2, [pc, #304] @ (800974c <HAL_DMA_Abort+0x5e4>)
  21615. 800961c: 4293 cmp r3, r2
  21616. 800961e: d068 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21617. 8009620: 687b ldr r3, [r7, #4]
  21618. 8009622: 681b ldr r3, [r3, #0]
  21619. 8009624: 4a4a ldr r2, [pc, #296] @ (8009750 <HAL_DMA_Abort+0x5e8>)
  21620. 8009626: 4293 cmp r3, r2
  21621. 8009628: d063 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21622. 800962a: 687b ldr r3, [r7, #4]
  21623. 800962c: 681b ldr r3, [r3, #0]
  21624. 800962e: 4a49 ldr r2, [pc, #292] @ (8009754 <HAL_DMA_Abort+0x5ec>)
  21625. 8009630: 4293 cmp r3, r2
  21626. 8009632: d05e beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21627. 8009634: 687b ldr r3, [r7, #4]
  21628. 8009636: 681b ldr r3, [r3, #0]
  21629. 8009638: 4a47 ldr r2, [pc, #284] @ (8009758 <HAL_DMA_Abort+0x5f0>)
  21630. 800963a: 4293 cmp r3, r2
  21631. 800963c: d059 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21632. 800963e: 687b ldr r3, [r7, #4]
  21633. 8009640: 681b ldr r3, [r3, #0]
  21634. 8009642: 4a46 ldr r2, [pc, #280] @ (800975c <HAL_DMA_Abort+0x5f4>)
  21635. 8009644: 4293 cmp r3, r2
  21636. 8009646: d054 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21637. 8009648: 687b ldr r3, [r7, #4]
  21638. 800964a: 681b ldr r3, [r3, #0]
  21639. 800964c: 4a44 ldr r2, [pc, #272] @ (8009760 <HAL_DMA_Abort+0x5f8>)
  21640. 800964e: 4293 cmp r3, r2
  21641. 8009650: d04f beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21642. 8009652: 687b ldr r3, [r7, #4]
  21643. 8009654: 681b ldr r3, [r3, #0]
  21644. 8009656: 4a43 ldr r2, [pc, #268] @ (8009764 <HAL_DMA_Abort+0x5fc>)
  21645. 8009658: 4293 cmp r3, r2
  21646. 800965a: d04a beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21647. 800965c: 687b ldr r3, [r7, #4]
  21648. 800965e: 681b ldr r3, [r3, #0]
  21649. 8009660: 4a41 ldr r2, [pc, #260] @ (8009768 <HAL_DMA_Abort+0x600>)
  21650. 8009662: 4293 cmp r3, r2
  21651. 8009664: d045 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21652. 8009666: 687b ldr r3, [r7, #4]
  21653. 8009668: 681b ldr r3, [r3, #0]
  21654. 800966a: 4a40 ldr r2, [pc, #256] @ (800976c <HAL_DMA_Abort+0x604>)
  21655. 800966c: 4293 cmp r3, r2
  21656. 800966e: d040 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21657. 8009670: 687b ldr r3, [r7, #4]
  21658. 8009672: 681b ldr r3, [r3, #0]
  21659. 8009674: 4a3e ldr r2, [pc, #248] @ (8009770 <HAL_DMA_Abort+0x608>)
  21660. 8009676: 4293 cmp r3, r2
  21661. 8009678: d03b beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21662. 800967a: 687b ldr r3, [r7, #4]
  21663. 800967c: 681b ldr r3, [r3, #0]
  21664. 800967e: 4a3d ldr r2, [pc, #244] @ (8009774 <HAL_DMA_Abort+0x60c>)
  21665. 8009680: 4293 cmp r3, r2
  21666. 8009682: d036 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21667. 8009684: 687b ldr r3, [r7, #4]
  21668. 8009686: 681b ldr r3, [r3, #0]
  21669. 8009688: 4a3b ldr r2, [pc, #236] @ (8009778 <HAL_DMA_Abort+0x610>)
  21670. 800968a: 4293 cmp r3, r2
  21671. 800968c: d031 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21672. 800968e: 687b ldr r3, [r7, #4]
  21673. 8009690: 681b ldr r3, [r3, #0]
  21674. 8009692: 4a3a ldr r2, [pc, #232] @ (800977c <HAL_DMA_Abort+0x614>)
  21675. 8009694: 4293 cmp r3, r2
  21676. 8009696: d02c beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21677. 8009698: 687b ldr r3, [r7, #4]
  21678. 800969a: 681b ldr r3, [r3, #0]
  21679. 800969c: 4a38 ldr r2, [pc, #224] @ (8009780 <HAL_DMA_Abort+0x618>)
  21680. 800969e: 4293 cmp r3, r2
  21681. 80096a0: d027 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21682. 80096a2: 687b ldr r3, [r7, #4]
  21683. 80096a4: 681b ldr r3, [r3, #0]
  21684. 80096a6: 4a37 ldr r2, [pc, #220] @ (8009784 <HAL_DMA_Abort+0x61c>)
  21685. 80096a8: 4293 cmp r3, r2
  21686. 80096aa: d022 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21687. 80096ac: 687b ldr r3, [r7, #4]
  21688. 80096ae: 681b ldr r3, [r3, #0]
  21689. 80096b0: 4a35 ldr r2, [pc, #212] @ (8009788 <HAL_DMA_Abort+0x620>)
  21690. 80096b2: 4293 cmp r3, r2
  21691. 80096b4: d01d beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21692. 80096b6: 687b ldr r3, [r7, #4]
  21693. 80096b8: 681b ldr r3, [r3, #0]
  21694. 80096ba: 4a34 ldr r2, [pc, #208] @ (800978c <HAL_DMA_Abort+0x624>)
  21695. 80096bc: 4293 cmp r3, r2
  21696. 80096be: d018 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21697. 80096c0: 687b ldr r3, [r7, #4]
  21698. 80096c2: 681b ldr r3, [r3, #0]
  21699. 80096c4: 4a32 ldr r2, [pc, #200] @ (8009790 <HAL_DMA_Abort+0x628>)
  21700. 80096c6: 4293 cmp r3, r2
  21701. 80096c8: d013 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21702. 80096ca: 687b ldr r3, [r7, #4]
  21703. 80096cc: 681b ldr r3, [r3, #0]
  21704. 80096ce: 4a31 ldr r2, [pc, #196] @ (8009794 <HAL_DMA_Abort+0x62c>)
  21705. 80096d0: 4293 cmp r3, r2
  21706. 80096d2: d00e beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21707. 80096d4: 687b ldr r3, [r7, #4]
  21708. 80096d6: 681b ldr r3, [r3, #0]
  21709. 80096d8: 4a2f ldr r2, [pc, #188] @ (8009798 <HAL_DMA_Abort+0x630>)
  21710. 80096da: 4293 cmp r3, r2
  21711. 80096dc: d009 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21712. 80096de: 687b ldr r3, [r7, #4]
  21713. 80096e0: 681b ldr r3, [r3, #0]
  21714. 80096e2: 4a2e ldr r2, [pc, #184] @ (800979c <HAL_DMA_Abort+0x634>)
  21715. 80096e4: 4293 cmp r3, r2
  21716. 80096e6: d004 beq.n 80096f2 <HAL_DMA_Abort+0x58a>
  21717. 80096e8: 687b ldr r3, [r7, #4]
  21718. 80096ea: 681b ldr r3, [r3, #0]
  21719. 80096ec: 4a2c ldr r2, [pc, #176] @ (80097a0 <HAL_DMA_Abort+0x638>)
  21720. 80096ee: 4293 cmp r3, r2
  21721. 80096f0: d101 bne.n 80096f6 <HAL_DMA_Abort+0x58e>
  21722. 80096f2: 2301 movs r3, #1
  21723. 80096f4: e000 b.n 80096f8 <HAL_DMA_Abort+0x590>
  21724. 80096f6: 2300 movs r3, #0
  21725. 80096f8: 2b00 cmp r3, #0
  21726. 80096fa: d015 beq.n 8009728 <HAL_DMA_Abort+0x5c0>
  21727. {
  21728. /* Clear the DMAMUX synchro overrun flag */
  21729. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21730. 80096fc: 687b ldr r3, [r7, #4]
  21731. 80096fe: 6e5b ldr r3, [r3, #100] @ 0x64
  21732. 8009700: 687a ldr r2, [r7, #4]
  21733. 8009702: 6e92 ldr r2, [r2, #104] @ 0x68
  21734. 8009704: 605a str r2, [r3, #4]
  21735. if(hdma->DMAmuxRequestGen != 0U)
  21736. 8009706: 687b ldr r3, [r7, #4]
  21737. 8009708: 6edb ldr r3, [r3, #108] @ 0x6c
  21738. 800970a: 2b00 cmp r3, #0
  21739. 800970c: d00c beq.n 8009728 <HAL_DMA_Abort+0x5c0>
  21740. {
  21741. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  21742. /* disable the request gen overrun IT */
  21743. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21744. 800970e: 687b ldr r3, [r7, #4]
  21745. 8009710: 6edb ldr r3, [r3, #108] @ 0x6c
  21746. 8009712: 681a ldr r2, [r3, #0]
  21747. 8009714: 687b ldr r3, [r7, #4]
  21748. 8009716: 6edb ldr r3, [r3, #108] @ 0x6c
  21749. 8009718: f422 7280 bic.w r2, r2, #256 @ 0x100
  21750. 800971c: 601a str r2, [r3, #0]
  21751. /* Clear the DMAMUX request generator overrun flag */
  21752. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21753. 800971e: 687b ldr r3, [r7, #4]
  21754. 8009720: 6f1b ldr r3, [r3, #112] @ 0x70
  21755. 8009722: 687a ldr r2, [r7, #4]
  21756. 8009724: 6f52 ldr r2, [r2, #116] @ 0x74
  21757. 8009726: 605a str r2, [r3, #4]
  21758. }
  21759. }
  21760. /* Change the DMA state */
  21761. hdma->State = HAL_DMA_STATE_READY;
  21762. 8009728: 687b ldr r3, [r7, #4]
  21763. 800972a: 2201 movs r2, #1
  21764. 800972c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21765. /* Process Unlocked */
  21766. __HAL_UNLOCK(hdma);
  21767. 8009730: 687b ldr r3, [r7, #4]
  21768. 8009732: 2200 movs r2, #0
  21769. 8009734: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21770. }
  21771. return HAL_OK;
  21772. 8009738: 2300 movs r3, #0
  21773. }
  21774. 800973a: 4618 mov r0, r3
  21775. 800973c: 3718 adds r7, #24
  21776. 800973e: 46bd mov sp, r7
  21777. 8009740: bd80 pop {r7, pc}
  21778. 8009742: bf00 nop
  21779. 8009744: 40020010 .word 0x40020010
  21780. 8009748: 40020028 .word 0x40020028
  21781. 800974c: 40020040 .word 0x40020040
  21782. 8009750: 40020058 .word 0x40020058
  21783. 8009754: 40020070 .word 0x40020070
  21784. 8009758: 40020088 .word 0x40020088
  21785. 800975c: 400200a0 .word 0x400200a0
  21786. 8009760: 400200b8 .word 0x400200b8
  21787. 8009764: 40020410 .word 0x40020410
  21788. 8009768: 40020428 .word 0x40020428
  21789. 800976c: 40020440 .word 0x40020440
  21790. 8009770: 40020458 .word 0x40020458
  21791. 8009774: 40020470 .word 0x40020470
  21792. 8009778: 40020488 .word 0x40020488
  21793. 800977c: 400204a0 .word 0x400204a0
  21794. 8009780: 400204b8 .word 0x400204b8
  21795. 8009784: 58025408 .word 0x58025408
  21796. 8009788: 5802541c .word 0x5802541c
  21797. 800978c: 58025430 .word 0x58025430
  21798. 8009790: 58025444 .word 0x58025444
  21799. 8009794: 58025458 .word 0x58025458
  21800. 8009798: 5802546c .word 0x5802546c
  21801. 800979c: 58025480 .word 0x58025480
  21802. 80097a0: 58025494 .word 0x58025494
  21803. 080097a4 <HAL_DMA_Abort_IT>:
  21804. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  21805. * the configuration information for the specified DMA Stream.
  21806. * @retval HAL status
  21807. */
  21808. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  21809. {
  21810. 80097a4: b580 push {r7, lr}
  21811. 80097a6: b084 sub sp, #16
  21812. 80097a8: af00 add r7, sp, #0
  21813. 80097aa: 6078 str r0, [r7, #4]
  21814. BDMA_Base_Registers *regs_bdma;
  21815. /* Check the DMA peripheral handle */
  21816. if(hdma == NULL)
  21817. 80097ac: 687b ldr r3, [r7, #4]
  21818. 80097ae: 2b00 cmp r3, #0
  21819. 80097b0: d101 bne.n 80097b6 <HAL_DMA_Abort_IT+0x12>
  21820. {
  21821. return HAL_ERROR;
  21822. 80097b2: 2301 movs r3, #1
  21823. 80097b4: e237 b.n 8009c26 <HAL_DMA_Abort_IT+0x482>
  21824. }
  21825. if(hdma->State != HAL_DMA_STATE_BUSY)
  21826. 80097b6: 687b ldr r3, [r7, #4]
  21827. 80097b8: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21828. 80097bc: b2db uxtb r3, r3
  21829. 80097be: 2b02 cmp r3, #2
  21830. 80097c0: d004 beq.n 80097cc <HAL_DMA_Abort_IT+0x28>
  21831. {
  21832. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21833. 80097c2: 687b ldr r3, [r7, #4]
  21834. 80097c4: 2280 movs r2, #128 @ 0x80
  21835. 80097c6: 655a str r2, [r3, #84] @ 0x54
  21836. return HAL_ERROR;
  21837. 80097c8: 2301 movs r3, #1
  21838. 80097ca: e22c b.n 8009c26 <HAL_DMA_Abort_IT+0x482>
  21839. }
  21840. else
  21841. {
  21842. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21843. 80097cc: 687b ldr r3, [r7, #4]
  21844. 80097ce: 681b ldr r3, [r3, #0]
  21845. 80097d0: 4a5c ldr r2, [pc, #368] @ (8009944 <HAL_DMA_Abort_IT+0x1a0>)
  21846. 80097d2: 4293 cmp r3, r2
  21847. 80097d4: d04a beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21848. 80097d6: 687b ldr r3, [r7, #4]
  21849. 80097d8: 681b ldr r3, [r3, #0]
  21850. 80097da: 4a5b ldr r2, [pc, #364] @ (8009948 <HAL_DMA_Abort_IT+0x1a4>)
  21851. 80097dc: 4293 cmp r3, r2
  21852. 80097de: d045 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21853. 80097e0: 687b ldr r3, [r7, #4]
  21854. 80097e2: 681b ldr r3, [r3, #0]
  21855. 80097e4: 4a59 ldr r2, [pc, #356] @ (800994c <HAL_DMA_Abort_IT+0x1a8>)
  21856. 80097e6: 4293 cmp r3, r2
  21857. 80097e8: d040 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21858. 80097ea: 687b ldr r3, [r7, #4]
  21859. 80097ec: 681b ldr r3, [r3, #0]
  21860. 80097ee: 4a58 ldr r2, [pc, #352] @ (8009950 <HAL_DMA_Abort_IT+0x1ac>)
  21861. 80097f0: 4293 cmp r3, r2
  21862. 80097f2: d03b beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21863. 80097f4: 687b ldr r3, [r7, #4]
  21864. 80097f6: 681b ldr r3, [r3, #0]
  21865. 80097f8: 4a56 ldr r2, [pc, #344] @ (8009954 <HAL_DMA_Abort_IT+0x1b0>)
  21866. 80097fa: 4293 cmp r3, r2
  21867. 80097fc: d036 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21868. 80097fe: 687b ldr r3, [r7, #4]
  21869. 8009800: 681b ldr r3, [r3, #0]
  21870. 8009802: 4a55 ldr r2, [pc, #340] @ (8009958 <HAL_DMA_Abort_IT+0x1b4>)
  21871. 8009804: 4293 cmp r3, r2
  21872. 8009806: d031 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21873. 8009808: 687b ldr r3, [r7, #4]
  21874. 800980a: 681b ldr r3, [r3, #0]
  21875. 800980c: 4a53 ldr r2, [pc, #332] @ (800995c <HAL_DMA_Abort_IT+0x1b8>)
  21876. 800980e: 4293 cmp r3, r2
  21877. 8009810: d02c beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21878. 8009812: 687b ldr r3, [r7, #4]
  21879. 8009814: 681b ldr r3, [r3, #0]
  21880. 8009816: 4a52 ldr r2, [pc, #328] @ (8009960 <HAL_DMA_Abort_IT+0x1bc>)
  21881. 8009818: 4293 cmp r3, r2
  21882. 800981a: d027 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21883. 800981c: 687b ldr r3, [r7, #4]
  21884. 800981e: 681b ldr r3, [r3, #0]
  21885. 8009820: 4a50 ldr r2, [pc, #320] @ (8009964 <HAL_DMA_Abort_IT+0x1c0>)
  21886. 8009822: 4293 cmp r3, r2
  21887. 8009824: d022 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21888. 8009826: 687b ldr r3, [r7, #4]
  21889. 8009828: 681b ldr r3, [r3, #0]
  21890. 800982a: 4a4f ldr r2, [pc, #316] @ (8009968 <HAL_DMA_Abort_IT+0x1c4>)
  21891. 800982c: 4293 cmp r3, r2
  21892. 800982e: d01d beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21893. 8009830: 687b ldr r3, [r7, #4]
  21894. 8009832: 681b ldr r3, [r3, #0]
  21895. 8009834: 4a4d ldr r2, [pc, #308] @ (800996c <HAL_DMA_Abort_IT+0x1c8>)
  21896. 8009836: 4293 cmp r3, r2
  21897. 8009838: d018 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21898. 800983a: 687b ldr r3, [r7, #4]
  21899. 800983c: 681b ldr r3, [r3, #0]
  21900. 800983e: 4a4c ldr r2, [pc, #304] @ (8009970 <HAL_DMA_Abort_IT+0x1cc>)
  21901. 8009840: 4293 cmp r3, r2
  21902. 8009842: d013 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21903. 8009844: 687b ldr r3, [r7, #4]
  21904. 8009846: 681b ldr r3, [r3, #0]
  21905. 8009848: 4a4a ldr r2, [pc, #296] @ (8009974 <HAL_DMA_Abort_IT+0x1d0>)
  21906. 800984a: 4293 cmp r3, r2
  21907. 800984c: d00e beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21908. 800984e: 687b ldr r3, [r7, #4]
  21909. 8009850: 681b ldr r3, [r3, #0]
  21910. 8009852: 4a49 ldr r2, [pc, #292] @ (8009978 <HAL_DMA_Abort_IT+0x1d4>)
  21911. 8009854: 4293 cmp r3, r2
  21912. 8009856: d009 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21913. 8009858: 687b ldr r3, [r7, #4]
  21914. 800985a: 681b ldr r3, [r3, #0]
  21915. 800985c: 4a47 ldr r2, [pc, #284] @ (800997c <HAL_DMA_Abort_IT+0x1d8>)
  21916. 800985e: 4293 cmp r3, r2
  21917. 8009860: d004 beq.n 800986c <HAL_DMA_Abort_IT+0xc8>
  21918. 8009862: 687b ldr r3, [r7, #4]
  21919. 8009864: 681b ldr r3, [r3, #0]
  21920. 8009866: 4a46 ldr r2, [pc, #280] @ (8009980 <HAL_DMA_Abort_IT+0x1dc>)
  21921. 8009868: 4293 cmp r3, r2
  21922. 800986a: d101 bne.n 8009870 <HAL_DMA_Abort_IT+0xcc>
  21923. 800986c: 2301 movs r3, #1
  21924. 800986e: e000 b.n 8009872 <HAL_DMA_Abort_IT+0xce>
  21925. 8009870: 2300 movs r3, #0
  21926. 8009872: 2b00 cmp r3, #0
  21927. 8009874: f000 8086 beq.w 8009984 <HAL_DMA_Abort_IT+0x1e0>
  21928. {
  21929. /* Set Abort State */
  21930. hdma->State = HAL_DMA_STATE_ABORT;
  21931. 8009878: 687b ldr r3, [r7, #4]
  21932. 800987a: 2204 movs r2, #4
  21933. 800987c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21934. /* Disable the stream */
  21935. __HAL_DMA_DISABLE(hdma);
  21936. 8009880: 687b ldr r3, [r7, #4]
  21937. 8009882: 681b ldr r3, [r3, #0]
  21938. 8009884: 4a2f ldr r2, [pc, #188] @ (8009944 <HAL_DMA_Abort_IT+0x1a0>)
  21939. 8009886: 4293 cmp r3, r2
  21940. 8009888: d04a beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21941. 800988a: 687b ldr r3, [r7, #4]
  21942. 800988c: 681b ldr r3, [r3, #0]
  21943. 800988e: 4a2e ldr r2, [pc, #184] @ (8009948 <HAL_DMA_Abort_IT+0x1a4>)
  21944. 8009890: 4293 cmp r3, r2
  21945. 8009892: d045 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21946. 8009894: 687b ldr r3, [r7, #4]
  21947. 8009896: 681b ldr r3, [r3, #0]
  21948. 8009898: 4a2c ldr r2, [pc, #176] @ (800994c <HAL_DMA_Abort_IT+0x1a8>)
  21949. 800989a: 4293 cmp r3, r2
  21950. 800989c: d040 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21951. 800989e: 687b ldr r3, [r7, #4]
  21952. 80098a0: 681b ldr r3, [r3, #0]
  21953. 80098a2: 4a2b ldr r2, [pc, #172] @ (8009950 <HAL_DMA_Abort_IT+0x1ac>)
  21954. 80098a4: 4293 cmp r3, r2
  21955. 80098a6: d03b beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21956. 80098a8: 687b ldr r3, [r7, #4]
  21957. 80098aa: 681b ldr r3, [r3, #0]
  21958. 80098ac: 4a29 ldr r2, [pc, #164] @ (8009954 <HAL_DMA_Abort_IT+0x1b0>)
  21959. 80098ae: 4293 cmp r3, r2
  21960. 80098b0: d036 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21961. 80098b2: 687b ldr r3, [r7, #4]
  21962. 80098b4: 681b ldr r3, [r3, #0]
  21963. 80098b6: 4a28 ldr r2, [pc, #160] @ (8009958 <HAL_DMA_Abort_IT+0x1b4>)
  21964. 80098b8: 4293 cmp r3, r2
  21965. 80098ba: d031 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21966. 80098bc: 687b ldr r3, [r7, #4]
  21967. 80098be: 681b ldr r3, [r3, #0]
  21968. 80098c0: 4a26 ldr r2, [pc, #152] @ (800995c <HAL_DMA_Abort_IT+0x1b8>)
  21969. 80098c2: 4293 cmp r3, r2
  21970. 80098c4: d02c beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21971. 80098c6: 687b ldr r3, [r7, #4]
  21972. 80098c8: 681b ldr r3, [r3, #0]
  21973. 80098ca: 4a25 ldr r2, [pc, #148] @ (8009960 <HAL_DMA_Abort_IT+0x1bc>)
  21974. 80098cc: 4293 cmp r3, r2
  21975. 80098ce: d027 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21976. 80098d0: 687b ldr r3, [r7, #4]
  21977. 80098d2: 681b ldr r3, [r3, #0]
  21978. 80098d4: 4a23 ldr r2, [pc, #140] @ (8009964 <HAL_DMA_Abort_IT+0x1c0>)
  21979. 80098d6: 4293 cmp r3, r2
  21980. 80098d8: d022 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21981. 80098da: 687b ldr r3, [r7, #4]
  21982. 80098dc: 681b ldr r3, [r3, #0]
  21983. 80098de: 4a22 ldr r2, [pc, #136] @ (8009968 <HAL_DMA_Abort_IT+0x1c4>)
  21984. 80098e0: 4293 cmp r3, r2
  21985. 80098e2: d01d beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21986. 80098e4: 687b ldr r3, [r7, #4]
  21987. 80098e6: 681b ldr r3, [r3, #0]
  21988. 80098e8: 4a20 ldr r2, [pc, #128] @ (800996c <HAL_DMA_Abort_IT+0x1c8>)
  21989. 80098ea: 4293 cmp r3, r2
  21990. 80098ec: d018 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21991. 80098ee: 687b ldr r3, [r7, #4]
  21992. 80098f0: 681b ldr r3, [r3, #0]
  21993. 80098f2: 4a1f ldr r2, [pc, #124] @ (8009970 <HAL_DMA_Abort_IT+0x1cc>)
  21994. 80098f4: 4293 cmp r3, r2
  21995. 80098f6: d013 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  21996. 80098f8: 687b ldr r3, [r7, #4]
  21997. 80098fa: 681b ldr r3, [r3, #0]
  21998. 80098fc: 4a1d ldr r2, [pc, #116] @ (8009974 <HAL_DMA_Abort_IT+0x1d0>)
  21999. 80098fe: 4293 cmp r3, r2
  22000. 8009900: d00e beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  22001. 8009902: 687b ldr r3, [r7, #4]
  22002. 8009904: 681b ldr r3, [r3, #0]
  22003. 8009906: 4a1c ldr r2, [pc, #112] @ (8009978 <HAL_DMA_Abort_IT+0x1d4>)
  22004. 8009908: 4293 cmp r3, r2
  22005. 800990a: d009 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  22006. 800990c: 687b ldr r3, [r7, #4]
  22007. 800990e: 681b ldr r3, [r3, #0]
  22008. 8009910: 4a1a ldr r2, [pc, #104] @ (800997c <HAL_DMA_Abort_IT+0x1d8>)
  22009. 8009912: 4293 cmp r3, r2
  22010. 8009914: d004 beq.n 8009920 <HAL_DMA_Abort_IT+0x17c>
  22011. 8009916: 687b ldr r3, [r7, #4]
  22012. 8009918: 681b ldr r3, [r3, #0]
  22013. 800991a: 4a19 ldr r2, [pc, #100] @ (8009980 <HAL_DMA_Abort_IT+0x1dc>)
  22014. 800991c: 4293 cmp r3, r2
  22015. 800991e: d108 bne.n 8009932 <HAL_DMA_Abort_IT+0x18e>
  22016. 8009920: 687b ldr r3, [r7, #4]
  22017. 8009922: 681b ldr r3, [r3, #0]
  22018. 8009924: 681a ldr r2, [r3, #0]
  22019. 8009926: 687b ldr r3, [r7, #4]
  22020. 8009928: 681b ldr r3, [r3, #0]
  22021. 800992a: f022 0201 bic.w r2, r2, #1
  22022. 800992e: 601a str r2, [r3, #0]
  22023. 8009930: e178 b.n 8009c24 <HAL_DMA_Abort_IT+0x480>
  22024. 8009932: 687b ldr r3, [r7, #4]
  22025. 8009934: 681b ldr r3, [r3, #0]
  22026. 8009936: 681a ldr r2, [r3, #0]
  22027. 8009938: 687b ldr r3, [r7, #4]
  22028. 800993a: 681b ldr r3, [r3, #0]
  22029. 800993c: f022 0201 bic.w r2, r2, #1
  22030. 8009940: 601a str r2, [r3, #0]
  22031. 8009942: e16f b.n 8009c24 <HAL_DMA_Abort_IT+0x480>
  22032. 8009944: 40020010 .word 0x40020010
  22033. 8009948: 40020028 .word 0x40020028
  22034. 800994c: 40020040 .word 0x40020040
  22035. 8009950: 40020058 .word 0x40020058
  22036. 8009954: 40020070 .word 0x40020070
  22037. 8009958: 40020088 .word 0x40020088
  22038. 800995c: 400200a0 .word 0x400200a0
  22039. 8009960: 400200b8 .word 0x400200b8
  22040. 8009964: 40020410 .word 0x40020410
  22041. 8009968: 40020428 .word 0x40020428
  22042. 800996c: 40020440 .word 0x40020440
  22043. 8009970: 40020458 .word 0x40020458
  22044. 8009974: 40020470 .word 0x40020470
  22045. 8009978: 40020488 .word 0x40020488
  22046. 800997c: 400204a0 .word 0x400204a0
  22047. 8009980: 400204b8 .word 0x400204b8
  22048. }
  22049. else /* BDMA channel */
  22050. {
  22051. /* Disable DMA All Interrupts */
  22052. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  22053. 8009984: 687b ldr r3, [r7, #4]
  22054. 8009986: 681b ldr r3, [r3, #0]
  22055. 8009988: 681a ldr r2, [r3, #0]
  22056. 800998a: 687b ldr r3, [r7, #4]
  22057. 800998c: 681b ldr r3, [r3, #0]
  22058. 800998e: f022 020e bic.w r2, r2, #14
  22059. 8009992: 601a str r2, [r3, #0]
  22060. /* Disable the channel */
  22061. __HAL_DMA_DISABLE(hdma);
  22062. 8009994: 687b ldr r3, [r7, #4]
  22063. 8009996: 681b ldr r3, [r3, #0]
  22064. 8009998: 4a6c ldr r2, [pc, #432] @ (8009b4c <HAL_DMA_Abort_IT+0x3a8>)
  22065. 800999a: 4293 cmp r3, r2
  22066. 800999c: d04a beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22067. 800999e: 687b ldr r3, [r7, #4]
  22068. 80099a0: 681b ldr r3, [r3, #0]
  22069. 80099a2: 4a6b ldr r2, [pc, #428] @ (8009b50 <HAL_DMA_Abort_IT+0x3ac>)
  22070. 80099a4: 4293 cmp r3, r2
  22071. 80099a6: d045 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22072. 80099a8: 687b ldr r3, [r7, #4]
  22073. 80099aa: 681b ldr r3, [r3, #0]
  22074. 80099ac: 4a69 ldr r2, [pc, #420] @ (8009b54 <HAL_DMA_Abort_IT+0x3b0>)
  22075. 80099ae: 4293 cmp r3, r2
  22076. 80099b0: d040 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22077. 80099b2: 687b ldr r3, [r7, #4]
  22078. 80099b4: 681b ldr r3, [r3, #0]
  22079. 80099b6: 4a68 ldr r2, [pc, #416] @ (8009b58 <HAL_DMA_Abort_IT+0x3b4>)
  22080. 80099b8: 4293 cmp r3, r2
  22081. 80099ba: d03b beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22082. 80099bc: 687b ldr r3, [r7, #4]
  22083. 80099be: 681b ldr r3, [r3, #0]
  22084. 80099c0: 4a66 ldr r2, [pc, #408] @ (8009b5c <HAL_DMA_Abort_IT+0x3b8>)
  22085. 80099c2: 4293 cmp r3, r2
  22086. 80099c4: d036 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22087. 80099c6: 687b ldr r3, [r7, #4]
  22088. 80099c8: 681b ldr r3, [r3, #0]
  22089. 80099ca: 4a65 ldr r2, [pc, #404] @ (8009b60 <HAL_DMA_Abort_IT+0x3bc>)
  22090. 80099cc: 4293 cmp r3, r2
  22091. 80099ce: d031 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22092. 80099d0: 687b ldr r3, [r7, #4]
  22093. 80099d2: 681b ldr r3, [r3, #0]
  22094. 80099d4: 4a63 ldr r2, [pc, #396] @ (8009b64 <HAL_DMA_Abort_IT+0x3c0>)
  22095. 80099d6: 4293 cmp r3, r2
  22096. 80099d8: d02c beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22097. 80099da: 687b ldr r3, [r7, #4]
  22098. 80099dc: 681b ldr r3, [r3, #0]
  22099. 80099de: 4a62 ldr r2, [pc, #392] @ (8009b68 <HAL_DMA_Abort_IT+0x3c4>)
  22100. 80099e0: 4293 cmp r3, r2
  22101. 80099e2: d027 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22102. 80099e4: 687b ldr r3, [r7, #4]
  22103. 80099e6: 681b ldr r3, [r3, #0]
  22104. 80099e8: 4a60 ldr r2, [pc, #384] @ (8009b6c <HAL_DMA_Abort_IT+0x3c8>)
  22105. 80099ea: 4293 cmp r3, r2
  22106. 80099ec: d022 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22107. 80099ee: 687b ldr r3, [r7, #4]
  22108. 80099f0: 681b ldr r3, [r3, #0]
  22109. 80099f2: 4a5f ldr r2, [pc, #380] @ (8009b70 <HAL_DMA_Abort_IT+0x3cc>)
  22110. 80099f4: 4293 cmp r3, r2
  22111. 80099f6: d01d beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22112. 80099f8: 687b ldr r3, [r7, #4]
  22113. 80099fa: 681b ldr r3, [r3, #0]
  22114. 80099fc: 4a5d ldr r2, [pc, #372] @ (8009b74 <HAL_DMA_Abort_IT+0x3d0>)
  22115. 80099fe: 4293 cmp r3, r2
  22116. 8009a00: d018 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22117. 8009a02: 687b ldr r3, [r7, #4]
  22118. 8009a04: 681b ldr r3, [r3, #0]
  22119. 8009a06: 4a5c ldr r2, [pc, #368] @ (8009b78 <HAL_DMA_Abort_IT+0x3d4>)
  22120. 8009a08: 4293 cmp r3, r2
  22121. 8009a0a: d013 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22122. 8009a0c: 687b ldr r3, [r7, #4]
  22123. 8009a0e: 681b ldr r3, [r3, #0]
  22124. 8009a10: 4a5a ldr r2, [pc, #360] @ (8009b7c <HAL_DMA_Abort_IT+0x3d8>)
  22125. 8009a12: 4293 cmp r3, r2
  22126. 8009a14: d00e beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22127. 8009a16: 687b ldr r3, [r7, #4]
  22128. 8009a18: 681b ldr r3, [r3, #0]
  22129. 8009a1a: 4a59 ldr r2, [pc, #356] @ (8009b80 <HAL_DMA_Abort_IT+0x3dc>)
  22130. 8009a1c: 4293 cmp r3, r2
  22131. 8009a1e: d009 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22132. 8009a20: 687b ldr r3, [r7, #4]
  22133. 8009a22: 681b ldr r3, [r3, #0]
  22134. 8009a24: 4a57 ldr r2, [pc, #348] @ (8009b84 <HAL_DMA_Abort_IT+0x3e0>)
  22135. 8009a26: 4293 cmp r3, r2
  22136. 8009a28: d004 beq.n 8009a34 <HAL_DMA_Abort_IT+0x290>
  22137. 8009a2a: 687b ldr r3, [r7, #4]
  22138. 8009a2c: 681b ldr r3, [r3, #0]
  22139. 8009a2e: 4a56 ldr r2, [pc, #344] @ (8009b88 <HAL_DMA_Abort_IT+0x3e4>)
  22140. 8009a30: 4293 cmp r3, r2
  22141. 8009a32: d108 bne.n 8009a46 <HAL_DMA_Abort_IT+0x2a2>
  22142. 8009a34: 687b ldr r3, [r7, #4]
  22143. 8009a36: 681b ldr r3, [r3, #0]
  22144. 8009a38: 681a ldr r2, [r3, #0]
  22145. 8009a3a: 687b ldr r3, [r7, #4]
  22146. 8009a3c: 681b ldr r3, [r3, #0]
  22147. 8009a3e: f022 0201 bic.w r2, r2, #1
  22148. 8009a42: 601a str r2, [r3, #0]
  22149. 8009a44: e007 b.n 8009a56 <HAL_DMA_Abort_IT+0x2b2>
  22150. 8009a46: 687b ldr r3, [r7, #4]
  22151. 8009a48: 681b ldr r3, [r3, #0]
  22152. 8009a4a: 681a ldr r2, [r3, #0]
  22153. 8009a4c: 687b ldr r3, [r7, #4]
  22154. 8009a4e: 681b ldr r3, [r3, #0]
  22155. 8009a50: f022 0201 bic.w r2, r2, #1
  22156. 8009a54: 601a str r2, [r3, #0]
  22157. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  22158. 8009a56: 687b ldr r3, [r7, #4]
  22159. 8009a58: 681b ldr r3, [r3, #0]
  22160. 8009a5a: 4a3c ldr r2, [pc, #240] @ (8009b4c <HAL_DMA_Abort_IT+0x3a8>)
  22161. 8009a5c: 4293 cmp r3, r2
  22162. 8009a5e: d072 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22163. 8009a60: 687b ldr r3, [r7, #4]
  22164. 8009a62: 681b ldr r3, [r3, #0]
  22165. 8009a64: 4a3a ldr r2, [pc, #232] @ (8009b50 <HAL_DMA_Abort_IT+0x3ac>)
  22166. 8009a66: 4293 cmp r3, r2
  22167. 8009a68: d06d beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22168. 8009a6a: 687b ldr r3, [r7, #4]
  22169. 8009a6c: 681b ldr r3, [r3, #0]
  22170. 8009a6e: 4a39 ldr r2, [pc, #228] @ (8009b54 <HAL_DMA_Abort_IT+0x3b0>)
  22171. 8009a70: 4293 cmp r3, r2
  22172. 8009a72: d068 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22173. 8009a74: 687b ldr r3, [r7, #4]
  22174. 8009a76: 681b ldr r3, [r3, #0]
  22175. 8009a78: 4a37 ldr r2, [pc, #220] @ (8009b58 <HAL_DMA_Abort_IT+0x3b4>)
  22176. 8009a7a: 4293 cmp r3, r2
  22177. 8009a7c: d063 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22178. 8009a7e: 687b ldr r3, [r7, #4]
  22179. 8009a80: 681b ldr r3, [r3, #0]
  22180. 8009a82: 4a36 ldr r2, [pc, #216] @ (8009b5c <HAL_DMA_Abort_IT+0x3b8>)
  22181. 8009a84: 4293 cmp r3, r2
  22182. 8009a86: d05e beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22183. 8009a88: 687b ldr r3, [r7, #4]
  22184. 8009a8a: 681b ldr r3, [r3, #0]
  22185. 8009a8c: 4a34 ldr r2, [pc, #208] @ (8009b60 <HAL_DMA_Abort_IT+0x3bc>)
  22186. 8009a8e: 4293 cmp r3, r2
  22187. 8009a90: d059 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22188. 8009a92: 687b ldr r3, [r7, #4]
  22189. 8009a94: 681b ldr r3, [r3, #0]
  22190. 8009a96: 4a33 ldr r2, [pc, #204] @ (8009b64 <HAL_DMA_Abort_IT+0x3c0>)
  22191. 8009a98: 4293 cmp r3, r2
  22192. 8009a9a: d054 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22193. 8009a9c: 687b ldr r3, [r7, #4]
  22194. 8009a9e: 681b ldr r3, [r3, #0]
  22195. 8009aa0: 4a31 ldr r2, [pc, #196] @ (8009b68 <HAL_DMA_Abort_IT+0x3c4>)
  22196. 8009aa2: 4293 cmp r3, r2
  22197. 8009aa4: d04f beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22198. 8009aa6: 687b ldr r3, [r7, #4]
  22199. 8009aa8: 681b ldr r3, [r3, #0]
  22200. 8009aaa: 4a30 ldr r2, [pc, #192] @ (8009b6c <HAL_DMA_Abort_IT+0x3c8>)
  22201. 8009aac: 4293 cmp r3, r2
  22202. 8009aae: d04a beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22203. 8009ab0: 687b ldr r3, [r7, #4]
  22204. 8009ab2: 681b ldr r3, [r3, #0]
  22205. 8009ab4: 4a2e ldr r2, [pc, #184] @ (8009b70 <HAL_DMA_Abort_IT+0x3cc>)
  22206. 8009ab6: 4293 cmp r3, r2
  22207. 8009ab8: d045 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22208. 8009aba: 687b ldr r3, [r7, #4]
  22209. 8009abc: 681b ldr r3, [r3, #0]
  22210. 8009abe: 4a2d ldr r2, [pc, #180] @ (8009b74 <HAL_DMA_Abort_IT+0x3d0>)
  22211. 8009ac0: 4293 cmp r3, r2
  22212. 8009ac2: d040 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22213. 8009ac4: 687b ldr r3, [r7, #4]
  22214. 8009ac6: 681b ldr r3, [r3, #0]
  22215. 8009ac8: 4a2b ldr r2, [pc, #172] @ (8009b78 <HAL_DMA_Abort_IT+0x3d4>)
  22216. 8009aca: 4293 cmp r3, r2
  22217. 8009acc: d03b beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22218. 8009ace: 687b ldr r3, [r7, #4]
  22219. 8009ad0: 681b ldr r3, [r3, #0]
  22220. 8009ad2: 4a2a ldr r2, [pc, #168] @ (8009b7c <HAL_DMA_Abort_IT+0x3d8>)
  22221. 8009ad4: 4293 cmp r3, r2
  22222. 8009ad6: d036 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22223. 8009ad8: 687b ldr r3, [r7, #4]
  22224. 8009ada: 681b ldr r3, [r3, #0]
  22225. 8009adc: 4a28 ldr r2, [pc, #160] @ (8009b80 <HAL_DMA_Abort_IT+0x3dc>)
  22226. 8009ade: 4293 cmp r3, r2
  22227. 8009ae0: d031 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22228. 8009ae2: 687b ldr r3, [r7, #4]
  22229. 8009ae4: 681b ldr r3, [r3, #0]
  22230. 8009ae6: 4a27 ldr r2, [pc, #156] @ (8009b84 <HAL_DMA_Abort_IT+0x3e0>)
  22231. 8009ae8: 4293 cmp r3, r2
  22232. 8009aea: d02c beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22233. 8009aec: 687b ldr r3, [r7, #4]
  22234. 8009aee: 681b ldr r3, [r3, #0]
  22235. 8009af0: 4a25 ldr r2, [pc, #148] @ (8009b88 <HAL_DMA_Abort_IT+0x3e4>)
  22236. 8009af2: 4293 cmp r3, r2
  22237. 8009af4: d027 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22238. 8009af6: 687b ldr r3, [r7, #4]
  22239. 8009af8: 681b ldr r3, [r3, #0]
  22240. 8009afa: 4a24 ldr r2, [pc, #144] @ (8009b8c <HAL_DMA_Abort_IT+0x3e8>)
  22241. 8009afc: 4293 cmp r3, r2
  22242. 8009afe: d022 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22243. 8009b00: 687b ldr r3, [r7, #4]
  22244. 8009b02: 681b ldr r3, [r3, #0]
  22245. 8009b04: 4a22 ldr r2, [pc, #136] @ (8009b90 <HAL_DMA_Abort_IT+0x3ec>)
  22246. 8009b06: 4293 cmp r3, r2
  22247. 8009b08: d01d beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22248. 8009b0a: 687b ldr r3, [r7, #4]
  22249. 8009b0c: 681b ldr r3, [r3, #0]
  22250. 8009b0e: 4a21 ldr r2, [pc, #132] @ (8009b94 <HAL_DMA_Abort_IT+0x3f0>)
  22251. 8009b10: 4293 cmp r3, r2
  22252. 8009b12: d018 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22253. 8009b14: 687b ldr r3, [r7, #4]
  22254. 8009b16: 681b ldr r3, [r3, #0]
  22255. 8009b18: 4a1f ldr r2, [pc, #124] @ (8009b98 <HAL_DMA_Abort_IT+0x3f4>)
  22256. 8009b1a: 4293 cmp r3, r2
  22257. 8009b1c: d013 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22258. 8009b1e: 687b ldr r3, [r7, #4]
  22259. 8009b20: 681b ldr r3, [r3, #0]
  22260. 8009b22: 4a1e ldr r2, [pc, #120] @ (8009b9c <HAL_DMA_Abort_IT+0x3f8>)
  22261. 8009b24: 4293 cmp r3, r2
  22262. 8009b26: d00e beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22263. 8009b28: 687b ldr r3, [r7, #4]
  22264. 8009b2a: 681b ldr r3, [r3, #0]
  22265. 8009b2c: 4a1c ldr r2, [pc, #112] @ (8009ba0 <HAL_DMA_Abort_IT+0x3fc>)
  22266. 8009b2e: 4293 cmp r3, r2
  22267. 8009b30: d009 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22268. 8009b32: 687b ldr r3, [r7, #4]
  22269. 8009b34: 681b ldr r3, [r3, #0]
  22270. 8009b36: 4a1b ldr r2, [pc, #108] @ (8009ba4 <HAL_DMA_Abort_IT+0x400>)
  22271. 8009b38: 4293 cmp r3, r2
  22272. 8009b3a: d004 beq.n 8009b46 <HAL_DMA_Abort_IT+0x3a2>
  22273. 8009b3c: 687b ldr r3, [r7, #4]
  22274. 8009b3e: 681b ldr r3, [r3, #0]
  22275. 8009b40: 4a19 ldr r2, [pc, #100] @ (8009ba8 <HAL_DMA_Abort_IT+0x404>)
  22276. 8009b42: 4293 cmp r3, r2
  22277. 8009b44: d132 bne.n 8009bac <HAL_DMA_Abort_IT+0x408>
  22278. 8009b46: 2301 movs r3, #1
  22279. 8009b48: e031 b.n 8009bae <HAL_DMA_Abort_IT+0x40a>
  22280. 8009b4a: bf00 nop
  22281. 8009b4c: 40020010 .word 0x40020010
  22282. 8009b50: 40020028 .word 0x40020028
  22283. 8009b54: 40020040 .word 0x40020040
  22284. 8009b58: 40020058 .word 0x40020058
  22285. 8009b5c: 40020070 .word 0x40020070
  22286. 8009b60: 40020088 .word 0x40020088
  22287. 8009b64: 400200a0 .word 0x400200a0
  22288. 8009b68: 400200b8 .word 0x400200b8
  22289. 8009b6c: 40020410 .word 0x40020410
  22290. 8009b70: 40020428 .word 0x40020428
  22291. 8009b74: 40020440 .word 0x40020440
  22292. 8009b78: 40020458 .word 0x40020458
  22293. 8009b7c: 40020470 .word 0x40020470
  22294. 8009b80: 40020488 .word 0x40020488
  22295. 8009b84: 400204a0 .word 0x400204a0
  22296. 8009b88: 400204b8 .word 0x400204b8
  22297. 8009b8c: 58025408 .word 0x58025408
  22298. 8009b90: 5802541c .word 0x5802541c
  22299. 8009b94: 58025430 .word 0x58025430
  22300. 8009b98: 58025444 .word 0x58025444
  22301. 8009b9c: 58025458 .word 0x58025458
  22302. 8009ba0: 5802546c .word 0x5802546c
  22303. 8009ba4: 58025480 .word 0x58025480
  22304. 8009ba8: 58025494 .word 0x58025494
  22305. 8009bac: 2300 movs r3, #0
  22306. 8009bae: 2b00 cmp r3, #0
  22307. 8009bb0: d028 beq.n 8009c04 <HAL_DMA_Abort_IT+0x460>
  22308. {
  22309. /* disable the DMAMUX sync overrun IT */
  22310. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  22311. 8009bb2: 687b ldr r3, [r7, #4]
  22312. 8009bb4: 6e1b ldr r3, [r3, #96] @ 0x60
  22313. 8009bb6: 681a ldr r2, [r3, #0]
  22314. 8009bb8: 687b ldr r3, [r7, #4]
  22315. 8009bba: 6e1b ldr r3, [r3, #96] @ 0x60
  22316. 8009bbc: f422 7280 bic.w r2, r2, #256 @ 0x100
  22317. 8009bc0: 601a str r2, [r3, #0]
  22318. /* Clear all flags */
  22319. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22320. 8009bc2: 687b ldr r3, [r7, #4]
  22321. 8009bc4: 6d9b ldr r3, [r3, #88] @ 0x58
  22322. 8009bc6: 60fb str r3, [r7, #12]
  22323. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  22324. 8009bc8: 687b ldr r3, [r7, #4]
  22325. 8009bca: 6ddb ldr r3, [r3, #92] @ 0x5c
  22326. 8009bcc: f003 031f and.w r3, r3, #31
  22327. 8009bd0: 2201 movs r2, #1
  22328. 8009bd2: 409a lsls r2, r3
  22329. 8009bd4: 68fb ldr r3, [r7, #12]
  22330. 8009bd6: 605a str r2, [r3, #4]
  22331. /* Clear the DMAMUX synchro overrun flag */
  22332. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  22333. 8009bd8: 687b ldr r3, [r7, #4]
  22334. 8009bda: 6e5b ldr r3, [r3, #100] @ 0x64
  22335. 8009bdc: 687a ldr r2, [r7, #4]
  22336. 8009bde: 6e92 ldr r2, [r2, #104] @ 0x68
  22337. 8009be0: 605a str r2, [r3, #4]
  22338. if(hdma->DMAmuxRequestGen != 0U)
  22339. 8009be2: 687b ldr r3, [r7, #4]
  22340. 8009be4: 6edb ldr r3, [r3, #108] @ 0x6c
  22341. 8009be6: 2b00 cmp r3, #0
  22342. 8009be8: d00c beq.n 8009c04 <HAL_DMA_Abort_IT+0x460>
  22343. {
  22344. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  22345. /* disable the request gen overrun IT */
  22346. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  22347. 8009bea: 687b ldr r3, [r7, #4]
  22348. 8009bec: 6edb ldr r3, [r3, #108] @ 0x6c
  22349. 8009bee: 681a ldr r2, [r3, #0]
  22350. 8009bf0: 687b ldr r3, [r7, #4]
  22351. 8009bf2: 6edb ldr r3, [r3, #108] @ 0x6c
  22352. 8009bf4: f422 7280 bic.w r2, r2, #256 @ 0x100
  22353. 8009bf8: 601a str r2, [r3, #0]
  22354. /* Clear the DMAMUX request generator overrun flag */
  22355. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  22356. 8009bfa: 687b ldr r3, [r7, #4]
  22357. 8009bfc: 6f1b ldr r3, [r3, #112] @ 0x70
  22358. 8009bfe: 687a ldr r2, [r7, #4]
  22359. 8009c00: 6f52 ldr r2, [r2, #116] @ 0x74
  22360. 8009c02: 605a str r2, [r3, #4]
  22361. }
  22362. }
  22363. /* Change the DMA state */
  22364. hdma->State = HAL_DMA_STATE_READY;
  22365. 8009c04: 687b ldr r3, [r7, #4]
  22366. 8009c06: 2201 movs r2, #1
  22367. 8009c08: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22368. /* Process Unlocked */
  22369. __HAL_UNLOCK(hdma);
  22370. 8009c0c: 687b ldr r3, [r7, #4]
  22371. 8009c0e: 2200 movs r2, #0
  22372. 8009c10: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22373. /* Call User Abort callback */
  22374. if(hdma->XferAbortCallback != NULL)
  22375. 8009c14: 687b ldr r3, [r7, #4]
  22376. 8009c16: 6d1b ldr r3, [r3, #80] @ 0x50
  22377. 8009c18: 2b00 cmp r3, #0
  22378. 8009c1a: d003 beq.n 8009c24 <HAL_DMA_Abort_IT+0x480>
  22379. {
  22380. hdma->XferAbortCallback(hdma);
  22381. 8009c1c: 687b ldr r3, [r7, #4]
  22382. 8009c1e: 6d1b ldr r3, [r3, #80] @ 0x50
  22383. 8009c20: 6878 ldr r0, [r7, #4]
  22384. 8009c22: 4798 blx r3
  22385. }
  22386. }
  22387. }
  22388. return HAL_OK;
  22389. 8009c24: 2300 movs r3, #0
  22390. }
  22391. 8009c26: 4618 mov r0, r3
  22392. 8009c28: 3710 adds r7, #16
  22393. 8009c2a: 46bd mov sp, r7
  22394. 8009c2c: bd80 pop {r7, pc}
  22395. 8009c2e: bf00 nop
  22396. 08009c30 <HAL_DMA_IRQHandler>:
  22397. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  22398. * the configuration information for the specified DMA Stream.
  22399. * @retval None
  22400. */
  22401. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  22402. {
  22403. 8009c30: b580 push {r7, lr}
  22404. 8009c32: b08a sub sp, #40 @ 0x28
  22405. 8009c34: af00 add r7, sp, #0
  22406. 8009c36: 6078 str r0, [r7, #4]
  22407. uint32_t tmpisr_dma, tmpisr_bdma;
  22408. uint32_t ccr_reg;
  22409. __IO uint32_t count = 0U;
  22410. 8009c38: 2300 movs r3, #0
  22411. 8009c3a: 60fb str r3, [r7, #12]
  22412. uint32_t timeout = SystemCoreClock / 9600U;
  22413. 8009c3c: 4b67 ldr r3, [pc, #412] @ (8009ddc <HAL_DMA_IRQHandler+0x1ac>)
  22414. 8009c3e: 681b ldr r3, [r3, #0]
  22415. 8009c40: 4a67 ldr r2, [pc, #412] @ (8009de0 <HAL_DMA_IRQHandler+0x1b0>)
  22416. 8009c42: fba2 2303 umull r2, r3, r2, r3
  22417. 8009c46: 0a9b lsrs r3, r3, #10
  22418. 8009c48: 627b str r3, [r7, #36] @ 0x24
  22419. /* calculate DMA base and stream number */
  22420. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  22421. 8009c4a: 687b ldr r3, [r7, #4]
  22422. 8009c4c: 6d9b ldr r3, [r3, #88] @ 0x58
  22423. 8009c4e: 623b str r3, [r7, #32]
  22424. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22425. 8009c50: 687b ldr r3, [r7, #4]
  22426. 8009c52: 6d9b ldr r3, [r3, #88] @ 0x58
  22427. 8009c54: 61fb str r3, [r7, #28]
  22428. tmpisr_dma = regs_dma->ISR;
  22429. 8009c56: 6a3b ldr r3, [r7, #32]
  22430. 8009c58: 681b ldr r3, [r3, #0]
  22431. 8009c5a: 61bb str r3, [r7, #24]
  22432. tmpisr_bdma = regs_bdma->ISR;
  22433. 8009c5c: 69fb ldr r3, [r7, #28]
  22434. 8009c5e: 681b ldr r3, [r3, #0]
  22435. 8009c60: 617b str r3, [r7, #20]
  22436. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  22437. 8009c62: 687b ldr r3, [r7, #4]
  22438. 8009c64: 681b ldr r3, [r3, #0]
  22439. 8009c66: 4a5f ldr r2, [pc, #380] @ (8009de4 <HAL_DMA_IRQHandler+0x1b4>)
  22440. 8009c68: 4293 cmp r3, r2
  22441. 8009c6a: d04a beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22442. 8009c6c: 687b ldr r3, [r7, #4]
  22443. 8009c6e: 681b ldr r3, [r3, #0]
  22444. 8009c70: 4a5d ldr r2, [pc, #372] @ (8009de8 <HAL_DMA_IRQHandler+0x1b8>)
  22445. 8009c72: 4293 cmp r3, r2
  22446. 8009c74: d045 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22447. 8009c76: 687b ldr r3, [r7, #4]
  22448. 8009c78: 681b ldr r3, [r3, #0]
  22449. 8009c7a: 4a5c ldr r2, [pc, #368] @ (8009dec <HAL_DMA_IRQHandler+0x1bc>)
  22450. 8009c7c: 4293 cmp r3, r2
  22451. 8009c7e: d040 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22452. 8009c80: 687b ldr r3, [r7, #4]
  22453. 8009c82: 681b ldr r3, [r3, #0]
  22454. 8009c84: 4a5a ldr r2, [pc, #360] @ (8009df0 <HAL_DMA_IRQHandler+0x1c0>)
  22455. 8009c86: 4293 cmp r3, r2
  22456. 8009c88: d03b beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22457. 8009c8a: 687b ldr r3, [r7, #4]
  22458. 8009c8c: 681b ldr r3, [r3, #0]
  22459. 8009c8e: 4a59 ldr r2, [pc, #356] @ (8009df4 <HAL_DMA_IRQHandler+0x1c4>)
  22460. 8009c90: 4293 cmp r3, r2
  22461. 8009c92: d036 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22462. 8009c94: 687b ldr r3, [r7, #4]
  22463. 8009c96: 681b ldr r3, [r3, #0]
  22464. 8009c98: 4a57 ldr r2, [pc, #348] @ (8009df8 <HAL_DMA_IRQHandler+0x1c8>)
  22465. 8009c9a: 4293 cmp r3, r2
  22466. 8009c9c: d031 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22467. 8009c9e: 687b ldr r3, [r7, #4]
  22468. 8009ca0: 681b ldr r3, [r3, #0]
  22469. 8009ca2: 4a56 ldr r2, [pc, #344] @ (8009dfc <HAL_DMA_IRQHandler+0x1cc>)
  22470. 8009ca4: 4293 cmp r3, r2
  22471. 8009ca6: d02c beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22472. 8009ca8: 687b ldr r3, [r7, #4]
  22473. 8009caa: 681b ldr r3, [r3, #0]
  22474. 8009cac: 4a54 ldr r2, [pc, #336] @ (8009e00 <HAL_DMA_IRQHandler+0x1d0>)
  22475. 8009cae: 4293 cmp r3, r2
  22476. 8009cb0: d027 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22477. 8009cb2: 687b ldr r3, [r7, #4]
  22478. 8009cb4: 681b ldr r3, [r3, #0]
  22479. 8009cb6: 4a53 ldr r2, [pc, #332] @ (8009e04 <HAL_DMA_IRQHandler+0x1d4>)
  22480. 8009cb8: 4293 cmp r3, r2
  22481. 8009cba: d022 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22482. 8009cbc: 687b ldr r3, [r7, #4]
  22483. 8009cbe: 681b ldr r3, [r3, #0]
  22484. 8009cc0: 4a51 ldr r2, [pc, #324] @ (8009e08 <HAL_DMA_IRQHandler+0x1d8>)
  22485. 8009cc2: 4293 cmp r3, r2
  22486. 8009cc4: d01d beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22487. 8009cc6: 687b ldr r3, [r7, #4]
  22488. 8009cc8: 681b ldr r3, [r3, #0]
  22489. 8009cca: 4a50 ldr r2, [pc, #320] @ (8009e0c <HAL_DMA_IRQHandler+0x1dc>)
  22490. 8009ccc: 4293 cmp r3, r2
  22491. 8009cce: d018 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22492. 8009cd0: 687b ldr r3, [r7, #4]
  22493. 8009cd2: 681b ldr r3, [r3, #0]
  22494. 8009cd4: 4a4e ldr r2, [pc, #312] @ (8009e10 <HAL_DMA_IRQHandler+0x1e0>)
  22495. 8009cd6: 4293 cmp r3, r2
  22496. 8009cd8: d013 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22497. 8009cda: 687b ldr r3, [r7, #4]
  22498. 8009cdc: 681b ldr r3, [r3, #0]
  22499. 8009cde: 4a4d ldr r2, [pc, #308] @ (8009e14 <HAL_DMA_IRQHandler+0x1e4>)
  22500. 8009ce0: 4293 cmp r3, r2
  22501. 8009ce2: d00e beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22502. 8009ce4: 687b ldr r3, [r7, #4]
  22503. 8009ce6: 681b ldr r3, [r3, #0]
  22504. 8009ce8: 4a4b ldr r2, [pc, #300] @ (8009e18 <HAL_DMA_IRQHandler+0x1e8>)
  22505. 8009cea: 4293 cmp r3, r2
  22506. 8009cec: d009 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22507. 8009cee: 687b ldr r3, [r7, #4]
  22508. 8009cf0: 681b ldr r3, [r3, #0]
  22509. 8009cf2: 4a4a ldr r2, [pc, #296] @ (8009e1c <HAL_DMA_IRQHandler+0x1ec>)
  22510. 8009cf4: 4293 cmp r3, r2
  22511. 8009cf6: d004 beq.n 8009d02 <HAL_DMA_IRQHandler+0xd2>
  22512. 8009cf8: 687b ldr r3, [r7, #4]
  22513. 8009cfa: 681b ldr r3, [r3, #0]
  22514. 8009cfc: 4a48 ldr r2, [pc, #288] @ (8009e20 <HAL_DMA_IRQHandler+0x1f0>)
  22515. 8009cfe: 4293 cmp r3, r2
  22516. 8009d00: d101 bne.n 8009d06 <HAL_DMA_IRQHandler+0xd6>
  22517. 8009d02: 2301 movs r3, #1
  22518. 8009d04: e000 b.n 8009d08 <HAL_DMA_IRQHandler+0xd8>
  22519. 8009d06: 2300 movs r3, #0
  22520. 8009d08: 2b00 cmp r3, #0
  22521. 8009d0a: f000 842b beq.w 800a564 <HAL_DMA_IRQHandler+0x934>
  22522. {
  22523. /* Transfer Error Interrupt management ***************************************/
  22524. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22525. 8009d0e: 687b ldr r3, [r7, #4]
  22526. 8009d10: 6ddb ldr r3, [r3, #92] @ 0x5c
  22527. 8009d12: f003 031f and.w r3, r3, #31
  22528. 8009d16: 2208 movs r2, #8
  22529. 8009d18: 409a lsls r2, r3
  22530. 8009d1a: 69bb ldr r3, [r7, #24]
  22531. 8009d1c: 4013 ands r3, r2
  22532. 8009d1e: 2b00 cmp r3, #0
  22533. 8009d20: f000 80a2 beq.w 8009e68 <HAL_DMA_IRQHandler+0x238>
  22534. {
  22535. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  22536. 8009d24: 687b ldr r3, [r7, #4]
  22537. 8009d26: 681b ldr r3, [r3, #0]
  22538. 8009d28: 4a2e ldr r2, [pc, #184] @ (8009de4 <HAL_DMA_IRQHandler+0x1b4>)
  22539. 8009d2a: 4293 cmp r3, r2
  22540. 8009d2c: d04a beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22541. 8009d2e: 687b ldr r3, [r7, #4]
  22542. 8009d30: 681b ldr r3, [r3, #0]
  22543. 8009d32: 4a2d ldr r2, [pc, #180] @ (8009de8 <HAL_DMA_IRQHandler+0x1b8>)
  22544. 8009d34: 4293 cmp r3, r2
  22545. 8009d36: d045 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22546. 8009d38: 687b ldr r3, [r7, #4]
  22547. 8009d3a: 681b ldr r3, [r3, #0]
  22548. 8009d3c: 4a2b ldr r2, [pc, #172] @ (8009dec <HAL_DMA_IRQHandler+0x1bc>)
  22549. 8009d3e: 4293 cmp r3, r2
  22550. 8009d40: d040 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22551. 8009d42: 687b ldr r3, [r7, #4]
  22552. 8009d44: 681b ldr r3, [r3, #0]
  22553. 8009d46: 4a2a ldr r2, [pc, #168] @ (8009df0 <HAL_DMA_IRQHandler+0x1c0>)
  22554. 8009d48: 4293 cmp r3, r2
  22555. 8009d4a: d03b beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22556. 8009d4c: 687b ldr r3, [r7, #4]
  22557. 8009d4e: 681b ldr r3, [r3, #0]
  22558. 8009d50: 4a28 ldr r2, [pc, #160] @ (8009df4 <HAL_DMA_IRQHandler+0x1c4>)
  22559. 8009d52: 4293 cmp r3, r2
  22560. 8009d54: d036 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22561. 8009d56: 687b ldr r3, [r7, #4]
  22562. 8009d58: 681b ldr r3, [r3, #0]
  22563. 8009d5a: 4a27 ldr r2, [pc, #156] @ (8009df8 <HAL_DMA_IRQHandler+0x1c8>)
  22564. 8009d5c: 4293 cmp r3, r2
  22565. 8009d5e: d031 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22566. 8009d60: 687b ldr r3, [r7, #4]
  22567. 8009d62: 681b ldr r3, [r3, #0]
  22568. 8009d64: 4a25 ldr r2, [pc, #148] @ (8009dfc <HAL_DMA_IRQHandler+0x1cc>)
  22569. 8009d66: 4293 cmp r3, r2
  22570. 8009d68: d02c beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22571. 8009d6a: 687b ldr r3, [r7, #4]
  22572. 8009d6c: 681b ldr r3, [r3, #0]
  22573. 8009d6e: 4a24 ldr r2, [pc, #144] @ (8009e00 <HAL_DMA_IRQHandler+0x1d0>)
  22574. 8009d70: 4293 cmp r3, r2
  22575. 8009d72: d027 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22576. 8009d74: 687b ldr r3, [r7, #4]
  22577. 8009d76: 681b ldr r3, [r3, #0]
  22578. 8009d78: 4a22 ldr r2, [pc, #136] @ (8009e04 <HAL_DMA_IRQHandler+0x1d4>)
  22579. 8009d7a: 4293 cmp r3, r2
  22580. 8009d7c: d022 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22581. 8009d7e: 687b ldr r3, [r7, #4]
  22582. 8009d80: 681b ldr r3, [r3, #0]
  22583. 8009d82: 4a21 ldr r2, [pc, #132] @ (8009e08 <HAL_DMA_IRQHandler+0x1d8>)
  22584. 8009d84: 4293 cmp r3, r2
  22585. 8009d86: d01d beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22586. 8009d88: 687b ldr r3, [r7, #4]
  22587. 8009d8a: 681b ldr r3, [r3, #0]
  22588. 8009d8c: 4a1f ldr r2, [pc, #124] @ (8009e0c <HAL_DMA_IRQHandler+0x1dc>)
  22589. 8009d8e: 4293 cmp r3, r2
  22590. 8009d90: d018 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22591. 8009d92: 687b ldr r3, [r7, #4]
  22592. 8009d94: 681b ldr r3, [r3, #0]
  22593. 8009d96: 4a1e ldr r2, [pc, #120] @ (8009e10 <HAL_DMA_IRQHandler+0x1e0>)
  22594. 8009d98: 4293 cmp r3, r2
  22595. 8009d9a: d013 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22596. 8009d9c: 687b ldr r3, [r7, #4]
  22597. 8009d9e: 681b ldr r3, [r3, #0]
  22598. 8009da0: 4a1c ldr r2, [pc, #112] @ (8009e14 <HAL_DMA_IRQHandler+0x1e4>)
  22599. 8009da2: 4293 cmp r3, r2
  22600. 8009da4: d00e beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22601. 8009da6: 687b ldr r3, [r7, #4]
  22602. 8009da8: 681b ldr r3, [r3, #0]
  22603. 8009daa: 4a1b ldr r2, [pc, #108] @ (8009e18 <HAL_DMA_IRQHandler+0x1e8>)
  22604. 8009dac: 4293 cmp r3, r2
  22605. 8009dae: d009 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22606. 8009db0: 687b ldr r3, [r7, #4]
  22607. 8009db2: 681b ldr r3, [r3, #0]
  22608. 8009db4: 4a19 ldr r2, [pc, #100] @ (8009e1c <HAL_DMA_IRQHandler+0x1ec>)
  22609. 8009db6: 4293 cmp r3, r2
  22610. 8009db8: d004 beq.n 8009dc4 <HAL_DMA_IRQHandler+0x194>
  22611. 8009dba: 687b ldr r3, [r7, #4]
  22612. 8009dbc: 681b ldr r3, [r3, #0]
  22613. 8009dbe: 4a18 ldr r2, [pc, #96] @ (8009e20 <HAL_DMA_IRQHandler+0x1f0>)
  22614. 8009dc0: 4293 cmp r3, r2
  22615. 8009dc2: d12f bne.n 8009e24 <HAL_DMA_IRQHandler+0x1f4>
  22616. 8009dc4: 687b ldr r3, [r7, #4]
  22617. 8009dc6: 681b ldr r3, [r3, #0]
  22618. 8009dc8: 681b ldr r3, [r3, #0]
  22619. 8009dca: f003 0304 and.w r3, r3, #4
  22620. 8009dce: 2b00 cmp r3, #0
  22621. 8009dd0: bf14 ite ne
  22622. 8009dd2: 2301 movne r3, #1
  22623. 8009dd4: 2300 moveq r3, #0
  22624. 8009dd6: b2db uxtb r3, r3
  22625. 8009dd8: e02e b.n 8009e38 <HAL_DMA_IRQHandler+0x208>
  22626. 8009dda: bf00 nop
  22627. 8009ddc: 24000034 .word 0x24000034
  22628. 8009de0: 1b4e81b5 .word 0x1b4e81b5
  22629. 8009de4: 40020010 .word 0x40020010
  22630. 8009de8: 40020028 .word 0x40020028
  22631. 8009dec: 40020040 .word 0x40020040
  22632. 8009df0: 40020058 .word 0x40020058
  22633. 8009df4: 40020070 .word 0x40020070
  22634. 8009df8: 40020088 .word 0x40020088
  22635. 8009dfc: 400200a0 .word 0x400200a0
  22636. 8009e00: 400200b8 .word 0x400200b8
  22637. 8009e04: 40020410 .word 0x40020410
  22638. 8009e08: 40020428 .word 0x40020428
  22639. 8009e0c: 40020440 .word 0x40020440
  22640. 8009e10: 40020458 .word 0x40020458
  22641. 8009e14: 40020470 .word 0x40020470
  22642. 8009e18: 40020488 .word 0x40020488
  22643. 8009e1c: 400204a0 .word 0x400204a0
  22644. 8009e20: 400204b8 .word 0x400204b8
  22645. 8009e24: 687b ldr r3, [r7, #4]
  22646. 8009e26: 681b ldr r3, [r3, #0]
  22647. 8009e28: 681b ldr r3, [r3, #0]
  22648. 8009e2a: f003 0308 and.w r3, r3, #8
  22649. 8009e2e: 2b00 cmp r3, #0
  22650. 8009e30: bf14 ite ne
  22651. 8009e32: 2301 movne r3, #1
  22652. 8009e34: 2300 moveq r3, #0
  22653. 8009e36: b2db uxtb r3, r3
  22654. 8009e38: 2b00 cmp r3, #0
  22655. 8009e3a: d015 beq.n 8009e68 <HAL_DMA_IRQHandler+0x238>
  22656. {
  22657. /* Disable the transfer error interrupt */
  22658. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  22659. 8009e3c: 687b ldr r3, [r7, #4]
  22660. 8009e3e: 681b ldr r3, [r3, #0]
  22661. 8009e40: 681a ldr r2, [r3, #0]
  22662. 8009e42: 687b ldr r3, [r7, #4]
  22663. 8009e44: 681b ldr r3, [r3, #0]
  22664. 8009e46: f022 0204 bic.w r2, r2, #4
  22665. 8009e4a: 601a str r2, [r3, #0]
  22666. /* Clear the transfer error flag */
  22667. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22668. 8009e4c: 687b ldr r3, [r7, #4]
  22669. 8009e4e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22670. 8009e50: f003 031f and.w r3, r3, #31
  22671. 8009e54: 2208 movs r2, #8
  22672. 8009e56: 409a lsls r2, r3
  22673. 8009e58: 6a3b ldr r3, [r7, #32]
  22674. 8009e5a: 609a str r2, [r3, #8]
  22675. /* Update error code */
  22676. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  22677. 8009e5c: 687b ldr r3, [r7, #4]
  22678. 8009e5e: 6d5b ldr r3, [r3, #84] @ 0x54
  22679. 8009e60: f043 0201 orr.w r2, r3, #1
  22680. 8009e64: 687b ldr r3, [r7, #4]
  22681. 8009e66: 655a str r2, [r3, #84] @ 0x54
  22682. }
  22683. }
  22684. /* FIFO Error Interrupt management ******************************************/
  22685. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22686. 8009e68: 687b ldr r3, [r7, #4]
  22687. 8009e6a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22688. 8009e6c: f003 031f and.w r3, r3, #31
  22689. 8009e70: 69ba ldr r2, [r7, #24]
  22690. 8009e72: fa22 f303 lsr.w r3, r2, r3
  22691. 8009e76: f003 0301 and.w r3, r3, #1
  22692. 8009e7a: 2b00 cmp r3, #0
  22693. 8009e7c: d06e beq.n 8009f5c <HAL_DMA_IRQHandler+0x32c>
  22694. {
  22695. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  22696. 8009e7e: 687b ldr r3, [r7, #4]
  22697. 8009e80: 681b ldr r3, [r3, #0]
  22698. 8009e82: 4a69 ldr r2, [pc, #420] @ (800a028 <HAL_DMA_IRQHandler+0x3f8>)
  22699. 8009e84: 4293 cmp r3, r2
  22700. 8009e86: d04a beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22701. 8009e88: 687b ldr r3, [r7, #4]
  22702. 8009e8a: 681b ldr r3, [r3, #0]
  22703. 8009e8c: 4a67 ldr r2, [pc, #412] @ (800a02c <HAL_DMA_IRQHandler+0x3fc>)
  22704. 8009e8e: 4293 cmp r3, r2
  22705. 8009e90: d045 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22706. 8009e92: 687b ldr r3, [r7, #4]
  22707. 8009e94: 681b ldr r3, [r3, #0]
  22708. 8009e96: 4a66 ldr r2, [pc, #408] @ (800a030 <HAL_DMA_IRQHandler+0x400>)
  22709. 8009e98: 4293 cmp r3, r2
  22710. 8009e9a: d040 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22711. 8009e9c: 687b ldr r3, [r7, #4]
  22712. 8009e9e: 681b ldr r3, [r3, #0]
  22713. 8009ea0: 4a64 ldr r2, [pc, #400] @ (800a034 <HAL_DMA_IRQHandler+0x404>)
  22714. 8009ea2: 4293 cmp r3, r2
  22715. 8009ea4: d03b beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22716. 8009ea6: 687b ldr r3, [r7, #4]
  22717. 8009ea8: 681b ldr r3, [r3, #0]
  22718. 8009eaa: 4a63 ldr r2, [pc, #396] @ (800a038 <HAL_DMA_IRQHandler+0x408>)
  22719. 8009eac: 4293 cmp r3, r2
  22720. 8009eae: d036 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22721. 8009eb0: 687b ldr r3, [r7, #4]
  22722. 8009eb2: 681b ldr r3, [r3, #0]
  22723. 8009eb4: 4a61 ldr r2, [pc, #388] @ (800a03c <HAL_DMA_IRQHandler+0x40c>)
  22724. 8009eb6: 4293 cmp r3, r2
  22725. 8009eb8: d031 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22726. 8009eba: 687b ldr r3, [r7, #4]
  22727. 8009ebc: 681b ldr r3, [r3, #0]
  22728. 8009ebe: 4a60 ldr r2, [pc, #384] @ (800a040 <HAL_DMA_IRQHandler+0x410>)
  22729. 8009ec0: 4293 cmp r3, r2
  22730. 8009ec2: d02c beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22731. 8009ec4: 687b ldr r3, [r7, #4]
  22732. 8009ec6: 681b ldr r3, [r3, #0]
  22733. 8009ec8: 4a5e ldr r2, [pc, #376] @ (800a044 <HAL_DMA_IRQHandler+0x414>)
  22734. 8009eca: 4293 cmp r3, r2
  22735. 8009ecc: d027 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22736. 8009ece: 687b ldr r3, [r7, #4]
  22737. 8009ed0: 681b ldr r3, [r3, #0]
  22738. 8009ed2: 4a5d ldr r2, [pc, #372] @ (800a048 <HAL_DMA_IRQHandler+0x418>)
  22739. 8009ed4: 4293 cmp r3, r2
  22740. 8009ed6: d022 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22741. 8009ed8: 687b ldr r3, [r7, #4]
  22742. 8009eda: 681b ldr r3, [r3, #0]
  22743. 8009edc: 4a5b ldr r2, [pc, #364] @ (800a04c <HAL_DMA_IRQHandler+0x41c>)
  22744. 8009ede: 4293 cmp r3, r2
  22745. 8009ee0: d01d beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22746. 8009ee2: 687b ldr r3, [r7, #4]
  22747. 8009ee4: 681b ldr r3, [r3, #0]
  22748. 8009ee6: 4a5a ldr r2, [pc, #360] @ (800a050 <HAL_DMA_IRQHandler+0x420>)
  22749. 8009ee8: 4293 cmp r3, r2
  22750. 8009eea: d018 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22751. 8009eec: 687b ldr r3, [r7, #4]
  22752. 8009eee: 681b ldr r3, [r3, #0]
  22753. 8009ef0: 4a58 ldr r2, [pc, #352] @ (800a054 <HAL_DMA_IRQHandler+0x424>)
  22754. 8009ef2: 4293 cmp r3, r2
  22755. 8009ef4: d013 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22756. 8009ef6: 687b ldr r3, [r7, #4]
  22757. 8009ef8: 681b ldr r3, [r3, #0]
  22758. 8009efa: 4a57 ldr r2, [pc, #348] @ (800a058 <HAL_DMA_IRQHandler+0x428>)
  22759. 8009efc: 4293 cmp r3, r2
  22760. 8009efe: d00e beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22761. 8009f00: 687b ldr r3, [r7, #4]
  22762. 8009f02: 681b ldr r3, [r3, #0]
  22763. 8009f04: 4a55 ldr r2, [pc, #340] @ (800a05c <HAL_DMA_IRQHandler+0x42c>)
  22764. 8009f06: 4293 cmp r3, r2
  22765. 8009f08: d009 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22766. 8009f0a: 687b ldr r3, [r7, #4]
  22767. 8009f0c: 681b ldr r3, [r3, #0]
  22768. 8009f0e: 4a54 ldr r2, [pc, #336] @ (800a060 <HAL_DMA_IRQHandler+0x430>)
  22769. 8009f10: 4293 cmp r3, r2
  22770. 8009f12: d004 beq.n 8009f1e <HAL_DMA_IRQHandler+0x2ee>
  22771. 8009f14: 687b ldr r3, [r7, #4]
  22772. 8009f16: 681b ldr r3, [r3, #0]
  22773. 8009f18: 4a52 ldr r2, [pc, #328] @ (800a064 <HAL_DMA_IRQHandler+0x434>)
  22774. 8009f1a: 4293 cmp r3, r2
  22775. 8009f1c: d10a bne.n 8009f34 <HAL_DMA_IRQHandler+0x304>
  22776. 8009f1e: 687b ldr r3, [r7, #4]
  22777. 8009f20: 681b ldr r3, [r3, #0]
  22778. 8009f22: 695b ldr r3, [r3, #20]
  22779. 8009f24: f003 0380 and.w r3, r3, #128 @ 0x80
  22780. 8009f28: 2b00 cmp r3, #0
  22781. 8009f2a: bf14 ite ne
  22782. 8009f2c: 2301 movne r3, #1
  22783. 8009f2e: 2300 moveq r3, #0
  22784. 8009f30: b2db uxtb r3, r3
  22785. 8009f32: e003 b.n 8009f3c <HAL_DMA_IRQHandler+0x30c>
  22786. 8009f34: 687b ldr r3, [r7, #4]
  22787. 8009f36: 681b ldr r3, [r3, #0]
  22788. 8009f38: 681b ldr r3, [r3, #0]
  22789. 8009f3a: 2300 movs r3, #0
  22790. 8009f3c: 2b00 cmp r3, #0
  22791. 8009f3e: d00d beq.n 8009f5c <HAL_DMA_IRQHandler+0x32c>
  22792. {
  22793. /* Clear the FIFO error flag */
  22794. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22795. 8009f40: 687b ldr r3, [r7, #4]
  22796. 8009f42: 6ddb ldr r3, [r3, #92] @ 0x5c
  22797. 8009f44: f003 031f and.w r3, r3, #31
  22798. 8009f48: 2201 movs r2, #1
  22799. 8009f4a: 409a lsls r2, r3
  22800. 8009f4c: 6a3b ldr r3, [r7, #32]
  22801. 8009f4e: 609a str r2, [r3, #8]
  22802. /* Update error code */
  22803. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  22804. 8009f50: 687b ldr r3, [r7, #4]
  22805. 8009f52: 6d5b ldr r3, [r3, #84] @ 0x54
  22806. 8009f54: f043 0202 orr.w r2, r3, #2
  22807. 8009f58: 687b ldr r3, [r7, #4]
  22808. 8009f5a: 655a str r2, [r3, #84] @ 0x54
  22809. }
  22810. }
  22811. /* Direct Mode Error Interrupt management ***********************************/
  22812. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22813. 8009f5c: 687b ldr r3, [r7, #4]
  22814. 8009f5e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22815. 8009f60: f003 031f and.w r3, r3, #31
  22816. 8009f64: 2204 movs r2, #4
  22817. 8009f66: 409a lsls r2, r3
  22818. 8009f68: 69bb ldr r3, [r7, #24]
  22819. 8009f6a: 4013 ands r3, r2
  22820. 8009f6c: 2b00 cmp r3, #0
  22821. 8009f6e: f000 808f beq.w 800a090 <HAL_DMA_IRQHandler+0x460>
  22822. {
  22823. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  22824. 8009f72: 687b ldr r3, [r7, #4]
  22825. 8009f74: 681b ldr r3, [r3, #0]
  22826. 8009f76: 4a2c ldr r2, [pc, #176] @ (800a028 <HAL_DMA_IRQHandler+0x3f8>)
  22827. 8009f78: 4293 cmp r3, r2
  22828. 8009f7a: d04a beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22829. 8009f7c: 687b ldr r3, [r7, #4]
  22830. 8009f7e: 681b ldr r3, [r3, #0]
  22831. 8009f80: 4a2a ldr r2, [pc, #168] @ (800a02c <HAL_DMA_IRQHandler+0x3fc>)
  22832. 8009f82: 4293 cmp r3, r2
  22833. 8009f84: d045 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22834. 8009f86: 687b ldr r3, [r7, #4]
  22835. 8009f88: 681b ldr r3, [r3, #0]
  22836. 8009f8a: 4a29 ldr r2, [pc, #164] @ (800a030 <HAL_DMA_IRQHandler+0x400>)
  22837. 8009f8c: 4293 cmp r3, r2
  22838. 8009f8e: d040 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22839. 8009f90: 687b ldr r3, [r7, #4]
  22840. 8009f92: 681b ldr r3, [r3, #0]
  22841. 8009f94: 4a27 ldr r2, [pc, #156] @ (800a034 <HAL_DMA_IRQHandler+0x404>)
  22842. 8009f96: 4293 cmp r3, r2
  22843. 8009f98: d03b beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22844. 8009f9a: 687b ldr r3, [r7, #4]
  22845. 8009f9c: 681b ldr r3, [r3, #0]
  22846. 8009f9e: 4a26 ldr r2, [pc, #152] @ (800a038 <HAL_DMA_IRQHandler+0x408>)
  22847. 8009fa0: 4293 cmp r3, r2
  22848. 8009fa2: d036 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22849. 8009fa4: 687b ldr r3, [r7, #4]
  22850. 8009fa6: 681b ldr r3, [r3, #0]
  22851. 8009fa8: 4a24 ldr r2, [pc, #144] @ (800a03c <HAL_DMA_IRQHandler+0x40c>)
  22852. 8009faa: 4293 cmp r3, r2
  22853. 8009fac: d031 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22854. 8009fae: 687b ldr r3, [r7, #4]
  22855. 8009fb0: 681b ldr r3, [r3, #0]
  22856. 8009fb2: 4a23 ldr r2, [pc, #140] @ (800a040 <HAL_DMA_IRQHandler+0x410>)
  22857. 8009fb4: 4293 cmp r3, r2
  22858. 8009fb6: d02c beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22859. 8009fb8: 687b ldr r3, [r7, #4]
  22860. 8009fba: 681b ldr r3, [r3, #0]
  22861. 8009fbc: 4a21 ldr r2, [pc, #132] @ (800a044 <HAL_DMA_IRQHandler+0x414>)
  22862. 8009fbe: 4293 cmp r3, r2
  22863. 8009fc0: d027 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22864. 8009fc2: 687b ldr r3, [r7, #4]
  22865. 8009fc4: 681b ldr r3, [r3, #0]
  22866. 8009fc6: 4a20 ldr r2, [pc, #128] @ (800a048 <HAL_DMA_IRQHandler+0x418>)
  22867. 8009fc8: 4293 cmp r3, r2
  22868. 8009fca: d022 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22869. 8009fcc: 687b ldr r3, [r7, #4]
  22870. 8009fce: 681b ldr r3, [r3, #0]
  22871. 8009fd0: 4a1e ldr r2, [pc, #120] @ (800a04c <HAL_DMA_IRQHandler+0x41c>)
  22872. 8009fd2: 4293 cmp r3, r2
  22873. 8009fd4: d01d beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22874. 8009fd6: 687b ldr r3, [r7, #4]
  22875. 8009fd8: 681b ldr r3, [r3, #0]
  22876. 8009fda: 4a1d ldr r2, [pc, #116] @ (800a050 <HAL_DMA_IRQHandler+0x420>)
  22877. 8009fdc: 4293 cmp r3, r2
  22878. 8009fde: d018 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22879. 8009fe0: 687b ldr r3, [r7, #4]
  22880. 8009fe2: 681b ldr r3, [r3, #0]
  22881. 8009fe4: 4a1b ldr r2, [pc, #108] @ (800a054 <HAL_DMA_IRQHandler+0x424>)
  22882. 8009fe6: 4293 cmp r3, r2
  22883. 8009fe8: d013 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22884. 8009fea: 687b ldr r3, [r7, #4]
  22885. 8009fec: 681b ldr r3, [r3, #0]
  22886. 8009fee: 4a1a ldr r2, [pc, #104] @ (800a058 <HAL_DMA_IRQHandler+0x428>)
  22887. 8009ff0: 4293 cmp r3, r2
  22888. 8009ff2: d00e beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22889. 8009ff4: 687b ldr r3, [r7, #4]
  22890. 8009ff6: 681b ldr r3, [r3, #0]
  22891. 8009ff8: 4a18 ldr r2, [pc, #96] @ (800a05c <HAL_DMA_IRQHandler+0x42c>)
  22892. 8009ffa: 4293 cmp r3, r2
  22893. 8009ffc: d009 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22894. 8009ffe: 687b ldr r3, [r7, #4]
  22895. 800a000: 681b ldr r3, [r3, #0]
  22896. 800a002: 4a17 ldr r2, [pc, #92] @ (800a060 <HAL_DMA_IRQHandler+0x430>)
  22897. 800a004: 4293 cmp r3, r2
  22898. 800a006: d004 beq.n 800a012 <HAL_DMA_IRQHandler+0x3e2>
  22899. 800a008: 687b ldr r3, [r7, #4]
  22900. 800a00a: 681b ldr r3, [r3, #0]
  22901. 800a00c: 4a15 ldr r2, [pc, #84] @ (800a064 <HAL_DMA_IRQHandler+0x434>)
  22902. 800a00e: 4293 cmp r3, r2
  22903. 800a010: d12a bne.n 800a068 <HAL_DMA_IRQHandler+0x438>
  22904. 800a012: 687b ldr r3, [r7, #4]
  22905. 800a014: 681b ldr r3, [r3, #0]
  22906. 800a016: 681b ldr r3, [r3, #0]
  22907. 800a018: f003 0302 and.w r3, r3, #2
  22908. 800a01c: 2b00 cmp r3, #0
  22909. 800a01e: bf14 ite ne
  22910. 800a020: 2301 movne r3, #1
  22911. 800a022: 2300 moveq r3, #0
  22912. 800a024: b2db uxtb r3, r3
  22913. 800a026: e023 b.n 800a070 <HAL_DMA_IRQHandler+0x440>
  22914. 800a028: 40020010 .word 0x40020010
  22915. 800a02c: 40020028 .word 0x40020028
  22916. 800a030: 40020040 .word 0x40020040
  22917. 800a034: 40020058 .word 0x40020058
  22918. 800a038: 40020070 .word 0x40020070
  22919. 800a03c: 40020088 .word 0x40020088
  22920. 800a040: 400200a0 .word 0x400200a0
  22921. 800a044: 400200b8 .word 0x400200b8
  22922. 800a048: 40020410 .word 0x40020410
  22923. 800a04c: 40020428 .word 0x40020428
  22924. 800a050: 40020440 .word 0x40020440
  22925. 800a054: 40020458 .word 0x40020458
  22926. 800a058: 40020470 .word 0x40020470
  22927. 800a05c: 40020488 .word 0x40020488
  22928. 800a060: 400204a0 .word 0x400204a0
  22929. 800a064: 400204b8 .word 0x400204b8
  22930. 800a068: 687b ldr r3, [r7, #4]
  22931. 800a06a: 681b ldr r3, [r3, #0]
  22932. 800a06c: 681b ldr r3, [r3, #0]
  22933. 800a06e: 2300 movs r3, #0
  22934. 800a070: 2b00 cmp r3, #0
  22935. 800a072: d00d beq.n 800a090 <HAL_DMA_IRQHandler+0x460>
  22936. {
  22937. /* Clear the direct mode error flag */
  22938. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22939. 800a074: 687b ldr r3, [r7, #4]
  22940. 800a076: 6ddb ldr r3, [r3, #92] @ 0x5c
  22941. 800a078: f003 031f and.w r3, r3, #31
  22942. 800a07c: 2204 movs r2, #4
  22943. 800a07e: 409a lsls r2, r3
  22944. 800a080: 6a3b ldr r3, [r7, #32]
  22945. 800a082: 609a str r2, [r3, #8]
  22946. /* Update error code */
  22947. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  22948. 800a084: 687b ldr r3, [r7, #4]
  22949. 800a086: 6d5b ldr r3, [r3, #84] @ 0x54
  22950. 800a088: f043 0204 orr.w r2, r3, #4
  22951. 800a08c: 687b ldr r3, [r7, #4]
  22952. 800a08e: 655a str r2, [r3, #84] @ 0x54
  22953. }
  22954. }
  22955. /* Half Transfer Complete Interrupt management ******************************/
  22956. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22957. 800a090: 687b ldr r3, [r7, #4]
  22958. 800a092: 6ddb ldr r3, [r3, #92] @ 0x5c
  22959. 800a094: f003 031f and.w r3, r3, #31
  22960. 800a098: 2210 movs r2, #16
  22961. 800a09a: 409a lsls r2, r3
  22962. 800a09c: 69bb ldr r3, [r7, #24]
  22963. 800a09e: 4013 ands r3, r2
  22964. 800a0a0: 2b00 cmp r3, #0
  22965. 800a0a2: f000 80a6 beq.w 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  22966. {
  22967. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  22968. 800a0a6: 687b ldr r3, [r7, #4]
  22969. 800a0a8: 681b ldr r3, [r3, #0]
  22970. 800a0aa: 4a85 ldr r2, [pc, #532] @ (800a2c0 <HAL_DMA_IRQHandler+0x690>)
  22971. 800a0ac: 4293 cmp r3, r2
  22972. 800a0ae: d04a beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22973. 800a0b0: 687b ldr r3, [r7, #4]
  22974. 800a0b2: 681b ldr r3, [r3, #0]
  22975. 800a0b4: 4a83 ldr r2, [pc, #524] @ (800a2c4 <HAL_DMA_IRQHandler+0x694>)
  22976. 800a0b6: 4293 cmp r3, r2
  22977. 800a0b8: d045 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22978. 800a0ba: 687b ldr r3, [r7, #4]
  22979. 800a0bc: 681b ldr r3, [r3, #0]
  22980. 800a0be: 4a82 ldr r2, [pc, #520] @ (800a2c8 <HAL_DMA_IRQHandler+0x698>)
  22981. 800a0c0: 4293 cmp r3, r2
  22982. 800a0c2: d040 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22983. 800a0c4: 687b ldr r3, [r7, #4]
  22984. 800a0c6: 681b ldr r3, [r3, #0]
  22985. 800a0c8: 4a80 ldr r2, [pc, #512] @ (800a2cc <HAL_DMA_IRQHandler+0x69c>)
  22986. 800a0ca: 4293 cmp r3, r2
  22987. 800a0cc: d03b beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22988. 800a0ce: 687b ldr r3, [r7, #4]
  22989. 800a0d0: 681b ldr r3, [r3, #0]
  22990. 800a0d2: 4a7f ldr r2, [pc, #508] @ (800a2d0 <HAL_DMA_IRQHandler+0x6a0>)
  22991. 800a0d4: 4293 cmp r3, r2
  22992. 800a0d6: d036 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22993. 800a0d8: 687b ldr r3, [r7, #4]
  22994. 800a0da: 681b ldr r3, [r3, #0]
  22995. 800a0dc: 4a7d ldr r2, [pc, #500] @ (800a2d4 <HAL_DMA_IRQHandler+0x6a4>)
  22996. 800a0de: 4293 cmp r3, r2
  22997. 800a0e0: d031 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  22998. 800a0e2: 687b ldr r3, [r7, #4]
  22999. 800a0e4: 681b ldr r3, [r3, #0]
  23000. 800a0e6: 4a7c ldr r2, [pc, #496] @ (800a2d8 <HAL_DMA_IRQHandler+0x6a8>)
  23001. 800a0e8: 4293 cmp r3, r2
  23002. 800a0ea: d02c beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23003. 800a0ec: 687b ldr r3, [r7, #4]
  23004. 800a0ee: 681b ldr r3, [r3, #0]
  23005. 800a0f0: 4a7a ldr r2, [pc, #488] @ (800a2dc <HAL_DMA_IRQHandler+0x6ac>)
  23006. 800a0f2: 4293 cmp r3, r2
  23007. 800a0f4: d027 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23008. 800a0f6: 687b ldr r3, [r7, #4]
  23009. 800a0f8: 681b ldr r3, [r3, #0]
  23010. 800a0fa: 4a79 ldr r2, [pc, #484] @ (800a2e0 <HAL_DMA_IRQHandler+0x6b0>)
  23011. 800a0fc: 4293 cmp r3, r2
  23012. 800a0fe: d022 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23013. 800a100: 687b ldr r3, [r7, #4]
  23014. 800a102: 681b ldr r3, [r3, #0]
  23015. 800a104: 4a77 ldr r2, [pc, #476] @ (800a2e4 <HAL_DMA_IRQHandler+0x6b4>)
  23016. 800a106: 4293 cmp r3, r2
  23017. 800a108: d01d beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23018. 800a10a: 687b ldr r3, [r7, #4]
  23019. 800a10c: 681b ldr r3, [r3, #0]
  23020. 800a10e: 4a76 ldr r2, [pc, #472] @ (800a2e8 <HAL_DMA_IRQHandler+0x6b8>)
  23021. 800a110: 4293 cmp r3, r2
  23022. 800a112: d018 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23023. 800a114: 687b ldr r3, [r7, #4]
  23024. 800a116: 681b ldr r3, [r3, #0]
  23025. 800a118: 4a74 ldr r2, [pc, #464] @ (800a2ec <HAL_DMA_IRQHandler+0x6bc>)
  23026. 800a11a: 4293 cmp r3, r2
  23027. 800a11c: d013 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23028. 800a11e: 687b ldr r3, [r7, #4]
  23029. 800a120: 681b ldr r3, [r3, #0]
  23030. 800a122: 4a73 ldr r2, [pc, #460] @ (800a2f0 <HAL_DMA_IRQHandler+0x6c0>)
  23031. 800a124: 4293 cmp r3, r2
  23032. 800a126: d00e beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23033. 800a128: 687b ldr r3, [r7, #4]
  23034. 800a12a: 681b ldr r3, [r3, #0]
  23035. 800a12c: 4a71 ldr r2, [pc, #452] @ (800a2f4 <HAL_DMA_IRQHandler+0x6c4>)
  23036. 800a12e: 4293 cmp r3, r2
  23037. 800a130: d009 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23038. 800a132: 687b ldr r3, [r7, #4]
  23039. 800a134: 681b ldr r3, [r3, #0]
  23040. 800a136: 4a70 ldr r2, [pc, #448] @ (800a2f8 <HAL_DMA_IRQHandler+0x6c8>)
  23041. 800a138: 4293 cmp r3, r2
  23042. 800a13a: d004 beq.n 800a146 <HAL_DMA_IRQHandler+0x516>
  23043. 800a13c: 687b ldr r3, [r7, #4]
  23044. 800a13e: 681b ldr r3, [r3, #0]
  23045. 800a140: 4a6e ldr r2, [pc, #440] @ (800a2fc <HAL_DMA_IRQHandler+0x6cc>)
  23046. 800a142: 4293 cmp r3, r2
  23047. 800a144: d10a bne.n 800a15c <HAL_DMA_IRQHandler+0x52c>
  23048. 800a146: 687b ldr r3, [r7, #4]
  23049. 800a148: 681b ldr r3, [r3, #0]
  23050. 800a14a: 681b ldr r3, [r3, #0]
  23051. 800a14c: f003 0308 and.w r3, r3, #8
  23052. 800a150: 2b00 cmp r3, #0
  23053. 800a152: bf14 ite ne
  23054. 800a154: 2301 movne r3, #1
  23055. 800a156: 2300 moveq r3, #0
  23056. 800a158: b2db uxtb r3, r3
  23057. 800a15a: e009 b.n 800a170 <HAL_DMA_IRQHandler+0x540>
  23058. 800a15c: 687b ldr r3, [r7, #4]
  23059. 800a15e: 681b ldr r3, [r3, #0]
  23060. 800a160: 681b ldr r3, [r3, #0]
  23061. 800a162: f003 0304 and.w r3, r3, #4
  23062. 800a166: 2b00 cmp r3, #0
  23063. 800a168: bf14 ite ne
  23064. 800a16a: 2301 movne r3, #1
  23065. 800a16c: 2300 moveq r3, #0
  23066. 800a16e: b2db uxtb r3, r3
  23067. 800a170: 2b00 cmp r3, #0
  23068. 800a172: d03e beq.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23069. {
  23070. /* Clear the half transfer complete flag */
  23071. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  23072. 800a174: 687b ldr r3, [r7, #4]
  23073. 800a176: 6ddb ldr r3, [r3, #92] @ 0x5c
  23074. 800a178: f003 031f and.w r3, r3, #31
  23075. 800a17c: 2210 movs r2, #16
  23076. 800a17e: 409a lsls r2, r3
  23077. 800a180: 6a3b ldr r3, [r7, #32]
  23078. 800a182: 609a str r2, [r3, #8]
  23079. /* Multi_Buffering mode enabled */
  23080. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23081. 800a184: 687b ldr r3, [r7, #4]
  23082. 800a186: 681b ldr r3, [r3, #0]
  23083. 800a188: 681b ldr r3, [r3, #0]
  23084. 800a18a: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23085. 800a18e: 2b00 cmp r3, #0
  23086. 800a190: d018 beq.n 800a1c4 <HAL_DMA_IRQHandler+0x594>
  23087. {
  23088. /* Current memory buffer used is Memory 0 */
  23089. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23090. 800a192: 687b ldr r3, [r7, #4]
  23091. 800a194: 681b ldr r3, [r3, #0]
  23092. 800a196: 681b ldr r3, [r3, #0]
  23093. 800a198: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23094. 800a19c: 2b00 cmp r3, #0
  23095. 800a19e: d108 bne.n 800a1b2 <HAL_DMA_IRQHandler+0x582>
  23096. {
  23097. if(hdma->XferHalfCpltCallback != NULL)
  23098. 800a1a0: 687b ldr r3, [r7, #4]
  23099. 800a1a2: 6c1b ldr r3, [r3, #64] @ 0x40
  23100. 800a1a4: 2b00 cmp r3, #0
  23101. 800a1a6: d024 beq.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23102. {
  23103. /* Half transfer callback */
  23104. hdma->XferHalfCpltCallback(hdma);
  23105. 800a1a8: 687b ldr r3, [r7, #4]
  23106. 800a1aa: 6c1b ldr r3, [r3, #64] @ 0x40
  23107. 800a1ac: 6878 ldr r0, [r7, #4]
  23108. 800a1ae: 4798 blx r3
  23109. 800a1b0: e01f b.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23110. }
  23111. }
  23112. /* Current memory buffer used is Memory 1 */
  23113. else
  23114. {
  23115. if(hdma->XferM1HalfCpltCallback != NULL)
  23116. 800a1b2: 687b ldr r3, [r7, #4]
  23117. 800a1b4: 6c9b ldr r3, [r3, #72] @ 0x48
  23118. 800a1b6: 2b00 cmp r3, #0
  23119. 800a1b8: d01b beq.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23120. {
  23121. /* Half transfer callback */
  23122. hdma->XferM1HalfCpltCallback(hdma);
  23123. 800a1ba: 687b ldr r3, [r7, #4]
  23124. 800a1bc: 6c9b ldr r3, [r3, #72] @ 0x48
  23125. 800a1be: 6878 ldr r0, [r7, #4]
  23126. 800a1c0: 4798 blx r3
  23127. 800a1c2: e016 b.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23128. }
  23129. }
  23130. else
  23131. {
  23132. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  23133. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23134. 800a1c4: 687b ldr r3, [r7, #4]
  23135. 800a1c6: 681b ldr r3, [r3, #0]
  23136. 800a1c8: 681b ldr r3, [r3, #0]
  23137. 800a1ca: f403 7380 and.w r3, r3, #256 @ 0x100
  23138. 800a1ce: 2b00 cmp r3, #0
  23139. 800a1d0: d107 bne.n 800a1e2 <HAL_DMA_IRQHandler+0x5b2>
  23140. {
  23141. /* Disable the half transfer interrupt */
  23142. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23143. 800a1d2: 687b ldr r3, [r7, #4]
  23144. 800a1d4: 681b ldr r3, [r3, #0]
  23145. 800a1d6: 681a ldr r2, [r3, #0]
  23146. 800a1d8: 687b ldr r3, [r7, #4]
  23147. 800a1da: 681b ldr r3, [r3, #0]
  23148. 800a1dc: f022 0208 bic.w r2, r2, #8
  23149. 800a1e0: 601a str r2, [r3, #0]
  23150. }
  23151. if(hdma->XferHalfCpltCallback != NULL)
  23152. 800a1e2: 687b ldr r3, [r7, #4]
  23153. 800a1e4: 6c1b ldr r3, [r3, #64] @ 0x40
  23154. 800a1e6: 2b00 cmp r3, #0
  23155. 800a1e8: d003 beq.n 800a1f2 <HAL_DMA_IRQHandler+0x5c2>
  23156. {
  23157. /* Half transfer callback */
  23158. hdma->XferHalfCpltCallback(hdma);
  23159. 800a1ea: 687b ldr r3, [r7, #4]
  23160. 800a1ec: 6c1b ldr r3, [r3, #64] @ 0x40
  23161. 800a1ee: 6878 ldr r0, [r7, #4]
  23162. 800a1f0: 4798 blx r3
  23163. }
  23164. }
  23165. }
  23166. }
  23167. /* Transfer Complete Interrupt management ***********************************/
  23168. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  23169. 800a1f2: 687b ldr r3, [r7, #4]
  23170. 800a1f4: 6ddb ldr r3, [r3, #92] @ 0x5c
  23171. 800a1f6: f003 031f and.w r3, r3, #31
  23172. 800a1fa: 2220 movs r2, #32
  23173. 800a1fc: 409a lsls r2, r3
  23174. 800a1fe: 69bb ldr r3, [r7, #24]
  23175. 800a200: 4013 ands r3, r2
  23176. 800a202: 2b00 cmp r3, #0
  23177. 800a204: f000 8110 beq.w 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23178. {
  23179. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  23180. 800a208: 687b ldr r3, [r7, #4]
  23181. 800a20a: 681b ldr r3, [r3, #0]
  23182. 800a20c: 4a2c ldr r2, [pc, #176] @ (800a2c0 <HAL_DMA_IRQHandler+0x690>)
  23183. 800a20e: 4293 cmp r3, r2
  23184. 800a210: d04a beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23185. 800a212: 687b ldr r3, [r7, #4]
  23186. 800a214: 681b ldr r3, [r3, #0]
  23187. 800a216: 4a2b ldr r2, [pc, #172] @ (800a2c4 <HAL_DMA_IRQHandler+0x694>)
  23188. 800a218: 4293 cmp r3, r2
  23189. 800a21a: d045 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23190. 800a21c: 687b ldr r3, [r7, #4]
  23191. 800a21e: 681b ldr r3, [r3, #0]
  23192. 800a220: 4a29 ldr r2, [pc, #164] @ (800a2c8 <HAL_DMA_IRQHandler+0x698>)
  23193. 800a222: 4293 cmp r3, r2
  23194. 800a224: d040 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23195. 800a226: 687b ldr r3, [r7, #4]
  23196. 800a228: 681b ldr r3, [r3, #0]
  23197. 800a22a: 4a28 ldr r2, [pc, #160] @ (800a2cc <HAL_DMA_IRQHandler+0x69c>)
  23198. 800a22c: 4293 cmp r3, r2
  23199. 800a22e: d03b beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23200. 800a230: 687b ldr r3, [r7, #4]
  23201. 800a232: 681b ldr r3, [r3, #0]
  23202. 800a234: 4a26 ldr r2, [pc, #152] @ (800a2d0 <HAL_DMA_IRQHandler+0x6a0>)
  23203. 800a236: 4293 cmp r3, r2
  23204. 800a238: d036 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23205. 800a23a: 687b ldr r3, [r7, #4]
  23206. 800a23c: 681b ldr r3, [r3, #0]
  23207. 800a23e: 4a25 ldr r2, [pc, #148] @ (800a2d4 <HAL_DMA_IRQHandler+0x6a4>)
  23208. 800a240: 4293 cmp r3, r2
  23209. 800a242: d031 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23210. 800a244: 687b ldr r3, [r7, #4]
  23211. 800a246: 681b ldr r3, [r3, #0]
  23212. 800a248: 4a23 ldr r2, [pc, #140] @ (800a2d8 <HAL_DMA_IRQHandler+0x6a8>)
  23213. 800a24a: 4293 cmp r3, r2
  23214. 800a24c: d02c beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23215. 800a24e: 687b ldr r3, [r7, #4]
  23216. 800a250: 681b ldr r3, [r3, #0]
  23217. 800a252: 4a22 ldr r2, [pc, #136] @ (800a2dc <HAL_DMA_IRQHandler+0x6ac>)
  23218. 800a254: 4293 cmp r3, r2
  23219. 800a256: d027 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23220. 800a258: 687b ldr r3, [r7, #4]
  23221. 800a25a: 681b ldr r3, [r3, #0]
  23222. 800a25c: 4a20 ldr r2, [pc, #128] @ (800a2e0 <HAL_DMA_IRQHandler+0x6b0>)
  23223. 800a25e: 4293 cmp r3, r2
  23224. 800a260: d022 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23225. 800a262: 687b ldr r3, [r7, #4]
  23226. 800a264: 681b ldr r3, [r3, #0]
  23227. 800a266: 4a1f ldr r2, [pc, #124] @ (800a2e4 <HAL_DMA_IRQHandler+0x6b4>)
  23228. 800a268: 4293 cmp r3, r2
  23229. 800a26a: d01d beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23230. 800a26c: 687b ldr r3, [r7, #4]
  23231. 800a26e: 681b ldr r3, [r3, #0]
  23232. 800a270: 4a1d ldr r2, [pc, #116] @ (800a2e8 <HAL_DMA_IRQHandler+0x6b8>)
  23233. 800a272: 4293 cmp r3, r2
  23234. 800a274: d018 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23235. 800a276: 687b ldr r3, [r7, #4]
  23236. 800a278: 681b ldr r3, [r3, #0]
  23237. 800a27a: 4a1c ldr r2, [pc, #112] @ (800a2ec <HAL_DMA_IRQHandler+0x6bc>)
  23238. 800a27c: 4293 cmp r3, r2
  23239. 800a27e: d013 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23240. 800a280: 687b ldr r3, [r7, #4]
  23241. 800a282: 681b ldr r3, [r3, #0]
  23242. 800a284: 4a1a ldr r2, [pc, #104] @ (800a2f0 <HAL_DMA_IRQHandler+0x6c0>)
  23243. 800a286: 4293 cmp r3, r2
  23244. 800a288: d00e beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23245. 800a28a: 687b ldr r3, [r7, #4]
  23246. 800a28c: 681b ldr r3, [r3, #0]
  23247. 800a28e: 4a19 ldr r2, [pc, #100] @ (800a2f4 <HAL_DMA_IRQHandler+0x6c4>)
  23248. 800a290: 4293 cmp r3, r2
  23249. 800a292: d009 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23250. 800a294: 687b ldr r3, [r7, #4]
  23251. 800a296: 681b ldr r3, [r3, #0]
  23252. 800a298: 4a17 ldr r2, [pc, #92] @ (800a2f8 <HAL_DMA_IRQHandler+0x6c8>)
  23253. 800a29a: 4293 cmp r3, r2
  23254. 800a29c: d004 beq.n 800a2a8 <HAL_DMA_IRQHandler+0x678>
  23255. 800a29e: 687b ldr r3, [r7, #4]
  23256. 800a2a0: 681b ldr r3, [r3, #0]
  23257. 800a2a2: 4a16 ldr r2, [pc, #88] @ (800a2fc <HAL_DMA_IRQHandler+0x6cc>)
  23258. 800a2a4: 4293 cmp r3, r2
  23259. 800a2a6: d12b bne.n 800a300 <HAL_DMA_IRQHandler+0x6d0>
  23260. 800a2a8: 687b ldr r3, [r7, #4]
  23261. 800a2aa: 681b ldr r3, [r3, #0]
  23262. 800a2ac: 681b ldr r3, [r3, #0]
  23263. 800a2ae: f003 0310 and.w r3, r3, #16
  23264. 800a2b2: 2b00 cmp r3, #0
  23265. 800a2b4: bf14 ite ne
  23266. 800a2b6: 2301 movne r3, #1
  23267. 800a2b8: 2300 moveq r3, #0
  23268. 800a2ba: b2db uxtb r3, r3
  23269. 800a2bc: e02a b.n 800a314 <HAL_DMA_IRQHandler+0x6e4>
  23270. 800a2be: bf00 nop
  23271. 800a2c0: 40020010 .word 0x40020010
  23272. 800a2c4: 40020028 .word 0x40020028
  23273. 800a2c8: 40020040 .word 0x40020040
  23274. 800a2cc: 40020058 .word 0x40020058
  23275. 800a2d0: 40020070 .word 0x40020070
  23276. 800a2d4: 40020088 .word 0x40020088
  23277. 800a2d8: 400200a0 .word 0x400200a0
  23278. 800a2dc: 400200b8 .word 0x400200b8
  23279. 800a2e0: 40020410 .word 0x40020410
  23280. 800a2e4: 40020428 .word 0x40020428
  23281. 800a2e8: 40020440 .word 0x40020440
  23282. 800a2ec: 40020458 .word 0x40020458
  23283. 800a2f0: 40020470 .word 0x40020470
  23284. 800a2f4: 40020488 .word 0x40020488
  23285. 800a2f8: 400204a0 .word 0x400204a0
  23286. 800a2fc: 400204b8 .word 0x400204b8
  23287. 800a300: 687b ldr r3, [r7, #4]
  23288. 800a302: 681b ldr r3, [r3, #0]
  23289. 800a304: 681b ldr r3, [r3, #0]
  23290. 800a306: f003 0302 and.w r3, r3, #2
  23291. 800a30a: 2b00 cmp r3, #0
  23292. 800a30c: bf14 ite ne
  23293. 800a30e: 2301 movne r3, #1
  23294. 800a310: 2300 moveq r3, #0
  23295. 800a312: b2db uxtb r3, r3
  23296. 800a314: 2b00 cmp r3, #0
  23297. 800a316: f000 8087 beq.w 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23298. {
  23299. /* Clear the transfer complete flag */
  23300. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  23301. 800a31a: 687b ldr r3, [r7, #4]
  23302. 800a31c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23303. 800a31e: f003 031f and.w r3, r3, #31
  23304. 800a322: 2220 movs r2, #32
  23305. 800a324: 409a lsls r2, r3
  23306. 800a326: 6a3b ldr r3, [r7, #32]
  23307. 800a328: 609a str r2, [r3, #8]
  23308. if(HAL_DMA_STATE_ABORT == hdma->State)
  23309. 800a32a: 687b ldr r3, [r7, #4]
  23310. 800a32c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  23311. 800a330: b2db uxtb r3, r3
  23312. 800a332: 2b04 cmp r3, #4
  23313. 800a334: d139 bne.n 800a3aa <HAL_DMA_IRQHandler+0x77a>
  23314. {
  23315. /* Disable all the transfer interrupts */
  23316. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  23317. 800a336: 687b ldr r3, [r7, #4]
  23318. 800a338: 681b ldr r3, [r3, #0]
  23319. 800a33a: 681a ldr r2, [r3, #0]
  23320. 800a33c: 687b ldr r3, [r7, #4]
  23321. 800a33e: 681b ldr r3, [r3, #0]
  23322. 800a340: f022 0216 bic.w r2, r2, #22
  23323. 800a344: 601a str r2, [r3, #0]
  23324. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  23325. 800a346: 687b ldr r3, [r7, #4]
  23326. 800a348: 681b ldr r3, [r3, #0]
  23327. 800a34a: 695a ldr r2, [r3, #20]
  23328. 800a34c: 687b ldr r3, [r7, #4]
  23329. 800a34e: 681b ldr r3, [r3, #0]
  23330. 800a350: f022 0280 bic.w r2, r2, #128 @ 0x80
  23331. 800a354: 615a str r2, [r3, #20]
  23332. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  23333. 800a356: 687b ldr r3, [r7, #4]
  23334. 800a358: 6c1b ldr r3, [r3, #64] @ 0x40
  23335. 800a35a: 2b00 cmp r3, #0
  23336. 800a35c: d103 bne.n 800a366 <HAL_DMA_IRQHandler+0x736>
  23337. 800a35e: 687b ldr r3, [r7, #4]
  23338. 800a360: 6c9b ldr r3, [r3, #72] @ 0x48
  23339. 800a362: 2b00 cmp r3, #0
  23340. 800a364: d007 beq.n 800a376 <HAL_DMA_IRQHandler+0x746>
  23341. {
  23342. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23343. 800a366: 687b ldr r3, [r7, #4]
  23344. 800a368: 681b ldr r3, [r3, #0]
  23345. 800a36a: 681a ldr r2, [r3, #0]
  23346. 800a36c: 687b ldr r3, [r7, #4]
  23347. 800a36e: 681b ldr r3, [r3, #0]
  23348. 800a370: f022 0208 bic.w r2, r2, #8
  23349. 800a374: 601a str r2, [r3, #0]
  23350. }
  23351. /* Clear all interrupt flags at correct offset within the register */
  23352. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23353. 800a376: 687b ldr r3, [r7, #4]
  23354. 800a378: 6ddb ldr r3, [r3, #92] @ 0x5c
  23355. 800a37a: f003 031f and.w r3, r3, #31
  23356. 800a37e: 223f movs r2, #63 @ 0x3f
  23357. 800a380: 409a lsls r2, r3
  23358. 800a382: 6a3b ldr r3, [r7, #32]
  23359. 800a384: 609a str r2, [r3, #8]
  23360. /* Change the DMA state */
  23361. hdma->State = HAL_DMA_STATE_READY;
  23362. 800a386: 687b ldr r3, [r7, #4]
  23363. 800a388: 2201 movs r2, #1
  23364. 800a38a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23365. /* Process Unlocked */
  23366. __HAL_UNLOCK(hdma);
  23367. 800a38e: 687b ldr r3, [r7, #4]
  23368. 800a390: 2200 movs r2, #0
  23369. 800a392: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23370. if(hdma->XferAbortCallback != NULL)
  23371. 800a396: 687b ldr r3, [r7, #4]
  23372. 800a398: 6d1b ldr r3, [r3, #80] @ 0x50
  23373. 800a39a: 2b00 cmp r3, #0
  23374. 800a39c: f000 834a beq.w 800aa34 <HAL_DMA_IRQHandler+0xe04>
  23375. {
  23376. hdma->XferAbortCallback(hdma);
  23377. 800a3a0: 687b ldr r3, [r7, #4]
  23378. 800a3a2: 6d1b ldr r3, [r3, #80] @ 0x50
  23379. 800a3a4: 6878 ldr r0, [r7, #4]
  23380. 800a3a6: 4798 blx r3
  23381. }
  23382. return;
  23383. 800a3a8: e344 b.n 800aa34 <HAL_DMA_IRQHandler+0xe04>
  23384. }
  23385. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23386. 800a3aa: 687b ldr r3, [r7, #4]
  23387. 800a3ac: 681b ldr r3, [r3, #0]
  23388. 800a3ae: 681b ldr r3, [r3, #0]
  23389. 800a3b0: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23390. 800a3b4: 2b00 cmp r3, #0
  23391. 800a3b6: d018 beq.n 800a3ea <HAL_DMA_IRQHandler+0x7ba>
  23392. {
  23393. /* Current memory buffer used is Memory 0 */
  23394. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23395. 800a3b8: 687b ldr r3, [r7, #4]
  23396. 800a3ba: 681b ldr r3, [r3, #0]
  23397. 800a3bc: 681b ldr r3, [r3, #0]
  23398. 800a3be: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23399. 800a3c2: 2b00 cmp r3, #0
  23400. 800a3c4: d108 bne.n 800a3d8 <HAL_DMA_IRQHandler+0x7a8>
  23401. {
  23402. if(hdma->XferM1CpltCallback != NULL)
  23403. 800a3c6: 687b ldr r3, [r7, #4]
  23404. 800a3c8: 6c5b ldr r3, [r3, #68] @ 0x44
  23405. 800a3ca: 2b00 cmp r3, #0
  23406. 800a3cc: d02c beq.n 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23407. {
  23408. /* Transfer complete Callback for memory1 */
  23409. hdma->XferM1CpltCallback(hdma);
  23410. 800a3ce: 687b ldr r3, [r7, #4]
  23411. 800a3d0: 6c5b ldr r3, [r3, #68] @ 0x44
  23412. 800a3d2: 6878 ldr r0, [r7, #4]
  23413. 800a3d4: 4798 blx r3
  23414. 800a3d6: e027 b.n 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23415. }
  23416. }
  23417. /* Current memory buffer used is Memory 1 */
  23418. else
  23419. {
  23420. if(hdma->XferCpltCallback != NULL)
  23421. 800a3d8: 687b ldr r3, [r7, #4]
  23422. 800a3da: 6bdb ldr r3, [r3, #60] @ 0x3c
  23423. 800a3dc: 2b00 cmp r3, #0
  23424. 800a3de: d023 beq.n 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23425. {
  23426. /* Transfer complete Callback for memory0 */
  23427. hdma->XferCpltCallback(hdma);
  23428. 800a3e0: 687b ldr r3, [r7, #4]
  23429. 800a3e2: 6bdb ldr r3, [r3, #60] @ 0x3c
  23430. 800a3e4: 6878 ldr r0, [r7, #4]
  23431. 800a3e6: 4798 blx r3
  23432. 800a3e8: e01e b.n 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23433. }
  23434. }
  23435. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  23436. else
  23437. {
  23438. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23439. 800a3ea: 687b ldr r3, [r7, #4]
  23440. 800a3ec: 681b ldr r3, [r3, #0]
  23441. 800a3ee: 681b ldr r3, [r3, #0]
  23442. 800a3f0: f403 7380 and.w r3, r3, #256 @ 0x100
  23443. 800a3f4: 2b00 cmp r3, #0
  23444. 800a3f6: d10f bne.n 800a418 <HAL_DMA_IRQHandler+0x7e8>
  23445. {
  23446. /* Disable the transfer complete interrupt */
  23447. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  23448. 800a3f8: 687b ldr r3, [r7, #4]
  23449. 800a3fa: 681b ldr r3, [r3, #0]
  23450. 800a3fc: 681a ldr r2, [r3, #0]
  23451. 800a3fe: 687b ldr r3, [r7, #4]
  23452. 800a400: 681b ldr r3, [r3, #0]
  23453. 800a402: f022 0210 bic.w r2, r2, #16
  23454. 800a406: 601a str r2, [r3, #0]
  23455. /* Change the DMA state */
  23456. hdma->State = HAL_DMA_STATE_READY;
  23457. 800a408: 687b ldr r3, [r7, #4]
  23458. 800a40a: 2201 movs r2, #1
  23459. 800a40c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23460. /* Process Unlocked */
  23461. __HAL_UNLOCK(hdma);
  23462. 800a410: 687b ldr r3, [r7, #4]
  23463. 800a412: 2200 movs r2, #0
  23464. 800a414: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23465. }
  23466. if(hdma->XferCpltCallback != NULL)
  23467. 800a418: 687b ldr r3, [r7, #4]
  23468. 800a41a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23469. 800a41c: 2b00 cmp r3, #0
  23470. 800a41e: d003 beq.n 800a428 <HAL_DMA_IRQHandler+0x7f8>
  23471. {
  23472. /* Transfer complete callback */
  23473. hdma->XferCpltCallback(hdma);
  23474. 800a420: 687b ldr r3, [r7, #4]
  23475. 800a422: 6bdb ldr r3, [r3, #60] @ 0x3c
  23476. 800a424: 6878 ldr r0, [r7, #4]
  23477. 800a426: 4798 blx r3
  23478. }
  23479. }
  23480. }
  23481. /* manage error case */
  23482. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  23483. 800a428: 687b ldr r3, [r7, #4]
  23484. 800a42a: 6d5b ldr r3, [r3, #84] @ 0x54
  23485. 800a42c: 2b00 cmp r3, #0
  23486. 800a42e: f000 8306 beq.w 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  23487. {
  23488. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  23489. 800a432: 687b ldr r3, [r7, #4]
  23490. 800a434: 6d5b ldr r3, [r3, #84] @ 0x54
  23491. 800a436: f003 0301 and.w r3, r3, #1
  23492. 800a43a: 2b00 cmp r3, #0
  23493. 800a43c: f000 8088 beq.w 800a550 <HAL_DMA_IRQHandler+0x920>
  23494. {
  23495. hdma->State = HAL_DMA_STATE_ABORT;
  23496. 800a440: 687b ldr r3, [r7, #4]
  23497. 800a442: 2204 movs r2, #4
  23498. 800a444: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23499. /* Disable the stream */
  23500. __HAL_DMA_DISABLE(hdma);
  23501. 800a448: 687b ldr r3, [r7, #4]
  23502. 800a44a: 681b ldr r3, [r3, #0]
  23503. 800a44c: 4a7a ldr r2, [pc, #488] @ (800a638 <HAL_DMA_IRQHandler+0xa08>)
  23504. 800a44e: 4293 cmp r3, r2
  23505. 800a450: d04a beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23506. 800a452: 687b ldr r3, [r7, #4]
  23507. 800a454: 681b ldr r3, [r3, #0]
  23508. 800a456: 4a79 ldr r2, [pc, #484] @ (800a63c <HAL_DMA_IRQHandler+0xa0c>)
  23509. 800a458: 4293 cmp r3, r2
  23510. 800a45a: d045 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23511. 800a45c: 687b ldr r3, [r7, #4]
  23512. 800a45e: 681b ldr r3, [r3, #0]
  23513. 800a460: 4a77 ldr r2, [pc, #476] @ (800a640 <HAL_DMA_IRQHandler+0xa10>)
  23514. 800a462: 4293 cmp r3, r2
  23515. 800a464: d040 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23516. 800a466: 687b ldr r3, [r7, #4]
  23517. 800a468: 681b ldr r3, [r3, #0]
  23518. 800a46a: 4a76 ldr r2, [pc, #472] @ (800a644 <HAL_DMA_IRQHandler+0xa14>)
  23519. 800a46c: 4293 cmp r3, r2
  23520. 800a46e: d03b beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23521. 800a470: 687b ldr r3, [r7, #4]
  23522. 800a472: 681b ldr r3, [r3, #0]
  23523. 800a474: 4a74 ldr r2, [pc, #464] @ (800a648 <HAL_DMA_IRQHandler+0xa18>)
  23524. 800a476: 4293 cmp r3, r2
  23525. 800a478: d036 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23526. 800a47a: 687b ldr r3, [r7, #4]
  23527. 800a47c: 681b ldr r3, [r3, #0]
  23528. 800a47e: 4a73 ldr r2, [pc, #460] @ (800a64c <HAL_DMA_IRQHandler+0xa1c>)
  23529. 800a480: 4293 cmp r3, r2
  23530. 800a482: d031 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23531. 800a484: 687b ldr r3, [r7, #4]
  23532. 800a486: 681b ldr r3, [r3, #0]
  23533. 800a488: 4a71 ldr r2, [pc, #452] @ (800a650 <HAL_DMA_IRQHandler+0xa20>)
  23534. 800a48a: 4293 cmp r3, r2
  23535. 800a48c: d02c beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23536. 800a48e: 687b ldr r3, [r7, #4]
  23537. 800a490: 681b ldr r3, [r3, #0]
  23538. 800a492: 4a70 ldr r2, [pc, #448] @ (800a654 <HAL_DMA_IRQHandler+0xa24>)
  23539. 800a494: 4293 cmp r3, r2
  23540. 800a496: d027 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23541. 800a498: 687b ldr r3, [r7, #4]
  23542. 800a49a: 681b ldr r3, [r3, #0]
  23543. 800a49c: 4a6e ldr r2, [pc, #440] @ (800a658 <HAL_DMA_IRQHandler+0xa28>)
  23544. 800a49e: 4293 cmp r3, r2
  23545. 800a4a0: d022 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23546. 800a4a2: 687b ldr r3, [r7, #4]
  23547. 800a4a4: 681b ldr r3, [r3, #0]
  23548. 800a4a6: 4a6d ldr r2, [pc, #436] @ (800a65c <HAL_DMA_IRQHandler+0xa2c>)
  23549. 800a4a8: 4293 cmp r3, r2
  23550. 800a4aa: d01d beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23551. 800a4ac: 687b ldr r3, [r7, #4]
  23552. 800a4ae: 681b ldr r3, [r3, #0]
  23553. 800a4b0: 4a6b ldr r2, [pc, #428] @ (800a660 <HAL_DMA_IRQHandler+0xa30>)
  23554. 800a4b2: 4293 cmp r3, r2
  23555. 800a4b4: d018 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23556. 800a4b6: 687b ldr r3, [r7, #4]
  23557. 800a4b8: 681b ldr r3, [r3, #0]
  23558. 800a4ba: 4a6a ldr r2, [pc, #424] @ (800a664 <HAL_DMA_IRQHandler+0xa34>)
  23559. 800a4bc: 4293 cmp r3, r2
  23560. 800a4be: d013 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23561. 800a4c0: 687b ldr r3, [r7, #4]
  23562. 800a4c2: 681b ldr r3, [r3, #0]
  23563. 800a4c4: 4a68 ldr r2, [pc, #416] @ (800a668 <HAL_DMA_IRQHandler+0xa38>)
  23564. 800a4c6: 4293 cmp r3, r2
  23565. 800a4c8: d00e beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23566. 800a4ca: 687b ldr r3, [r7, #4]
  23567. 800a4cc: 681b ldr r3, [r3, #0]
  23568. 800a4ce: 4a67 ldr r2, [pc, #412] @ (800a66c <HAL_DMA_IRQHandler+0xa3c>)
  23569. 800a4d0: 4293 cmp r3, r2
  23570. 800a4d2: d009 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23571. 800a4d4: 687b ldr r3, [r7, #4]
  23572. 800a4d6: 681b ldr r3, [r3, #0]
  23573. 800a4d8: 4a65 ldr r2, [pc, #404] @ (800a670 <HAL_DMA_IRQHandler+0xa40>)
  23574. 800a4da: 4293 cmp r3, r2
  23575. 800a4dc: d004 beq.n 800a4e8 <HAL_DMA_IRQHandler+0x8b8>
  23576. 800a4de: 687b ldr r3, [r7, #4]
  23577. 800a4e0: 681b ldr r3, [r3, #0]
  23578. 800a4e2: 4a64 ldr r2, [pc, #400] @ (800a674 <HAL_DMA_IRQHandler+0xa44>)
  23579. 800a4e4: 4293 cmp r3, r2
  23580. 800a4e6: d108 bne.n 800a4fa <HAL_DMA_IRQHandler+0x8ca>
  23581. 800a4e8: 687b ldr r3, [r7, #4]
  23582. 800a4ea: 681b ldr r3, [r3, #0]
  23583. 800a4ec: 681a ldr r2, [r3, #0]
  23584. 800a4ee: 687b ldr r3, [r7, #4]
  23585. 800a4f0: 681b ldr r3, [r3, #0]
  23586. 800a4f2: f022 0201 bic.w r2, r2, #1
  23587. 800a4f6: 601a str r2, [r3, #0]
  23588. 800a4f8: e007 b.n 800a50a <HAL_DMA_IRQHandler+0x8da>
  23589. 800a4fa: 687b ldr r3, [r7, #4]
  23590. 800a4fc: 681b ldr r3, [r3, #0]
  23591. 800a4fe: 681a ldr r2, [r3, #0]
  23592. 800a500: 687b ldr r3, [r7, #4]
  23593. 800a502: 681b ldr r3, [r3, #0]
  23594. 800a504: f022 0201 bic.w r2, r2, #1
  23595. 800a508: 601a str r2, [r3, #0]
  23596. do
  23597. {
  23598. if (++count > timeout)
  23599. 800a50a: 68fb ldr r3, [r7, #12]
  23600. 800a50c: 3301 adds r3, #1
  23601. 800a50e: 60fb str r3, [r7, #12]
  23602. 800a510: 6a7a ldr r2, [r7, #36] @ 0x24
  23603. 800a512: 429a cmp r2, r3
  23604. 800a514: d307 bcc.n 800a526 <HAL_DMA_IRQHandler+0x8f6>
  23605. {
  23606. break;
  23607. }
  23608. }
  23609. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  23610. 800a516: 687b ldr r3, [r7, #4]
  23611. 800a518: 681b ldr r3, [r3, #0]
  23612. 800a51a: 681b ldr r3, [r3, #0]
  23613. 800a51c: f003 0301 and.w r3, r3, #1
  23614. 800a520: 2b00 cmp r3, #0
  23615. 800a522: d1f2 bne.n 800a50a <HAL_DMA_IRQHandler+0x8da>
  23616. 800a524: e000 b.n 800a528 <HAL_DMA_IRQHandler+0x8f8>
  23617. break;
  23618. 800a526: bf00 nop
  23619. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  23620. 800a528: 687b ldr r3, [r7, #4]
  23621. 800a52a: 681b ldr r3, [r3, #0]
  23622. 800a52c: 681b ldr r3, [r3, #0]
  23623. 800a52e: f003 0301 and.w r3, r3, #1
  23624. 800a532: 2b00 cmp r3, #0
  23625. 800a534: d004 beq.n 800a540 <HAL_DMA_IRQHandler+0x910>
  23626. {
  23627. /* Change the DMA state to error if DMA disable fails */
  23628. hdma->State = HAL_DMA_STATE_ERROR;
  23629. 800a536: 687b ldr r3, [r7, #4]
  23630. 800a538: 2203 movs r2, #3
  23631. 800a53a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23632. 800a53e: e003 b.n 800a548 <HAL_DMA_IRQHandler+0x918>
  23633. }
  23634. else
  23635. {
  23636. /* Change the DMA state to Ready if DMA disable success */
  23637. hdma->State = HAL_DMA_STATE_READY;
  23638. 800a540: 687b ldr r3, [r7, #4]
  23639. 800a542: 2201 movs r2, #1
  23640. 800a544: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23641. }
  23642. /* Process Unlocked */
  23643. __HAL_UNLOCK(hdma);
  23644. 800a548: 687b ldr r3, [r7, #4]
  23645. 800a54a: 2200 movs r2, #0
  23646. 800a54c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23647. }
  23648. if(hdma->XferErrorCallback != NULL)
  23649. 800a550: 687b ldr r3, [r7, #4]
  23650. 800a552: 6cdb ldr r3, [r3, #76] @ 0x4c
  23651. 800a554: 2b00 cmp r3, #0
  23652. 800a556: f000 8272 beq.w 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  23653. {
  23654. /* Transfer error callback */
  23655. hdma->XferErrorCallback(hdma);
  23656. 800a55a: 687b ldr r3, [r7, #4]
  23657. 800a55c: 6cdb ldr r3, [r3, #76] @ 0x4c
  23658. 800a55e: 6878 ldr r0, [r7, #4]
  23659. 800a560: 4798 blx r3
  23660. 800a562: e26c b.n 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  23661. }
  23662. }
  23663. }
  23664. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23665. 800a564: 687b ldr r3, [r7, #4]
  23666. 800a566: 681b ldr r3, [r3, #0]
  23667. 800a568: 4a43 ldr r2, [pc, #268] @ (800a678 <HAL_DMA_IRQHandler+0xa48>)
  23668. 800a56a: 4293 cmp r3, r2
  23669. 800a56c: d022 beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23670. 800a56e: 687b ldr r3, [r7, #4]
  23671. 800a570: 681b ldr r3, [r3, #0]
  23672. 800a572: 4a42 ldr r2, [pc, #264] @ (800a67c <HAL_DMA_IRQHandler+0xa4c>)
  23673. 800a574: 4293 cmp r3, r2
  23674. 800a576: d01d beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23675. 800a578: 687b ldr r3, [r7, #4]
  23676. 800a57a: 681b ldr r3, [r3, #0]
  23677. 800a57c: 4a40 ldr r2, [pc, #256] @ (800a680 <HAL_DMA_IRQHandler+0xa50>)
  23678. 800a57e: 4293 cmp r3, r2
  23679. 800a580: d018 beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23680. 800a582: 687b ldr r3, [r7, #4]
  23681. 800a584: 681b ldr r3, [r3, #0]
  23682. 800a586: 4a3f ldr r2, [pc, #252] @ (800a684 <HAL_DMA_IRQHandler+0xa54>)
  23683. 800a588: 4293 cmp r3, r2
  23684. 800a58a: d013 beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23685. 800a58c: 687b ldr r3, [r7, #4]
  23686. 800a58e: 681b ldr r3, [r3, #0]
  23687. 800a590: 4a3d ldr r2, [pc, #244] @ (800a688 <HAL_DMA_IRQHandler+0xa58>)
  23688. 800a592: 4293 cmp r3, r2
  23689. 800a594: d00e beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23690. 800a596: 687b ldr r3, [r7, #4]
  23691. 800a598: 681b ldr r3, [r3, #0]
  23692. 800a59a: 4a3c ldr r2, [pc, #240] @ (800a68c <HAL_DMA_IRQHandler+0xa5c>)
  23693. 800a59c: 4293 cmp r3, r2
  23694. 800a59e: d009 beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23695. 800a5a0: 687b ldr r3, [r7, #4]
  23696. 800a5a2: 681b ldr r3, [r3, #0]
  23697. 800a5a4: 4a3a ldr r2, [pc, #232] @ (800a690 <HAL_DMA_IRQHandler+0xa60>)
  23698. 800a5a6: 4293 cmp r3, r2
  23699. 800a5a8: d004 beq.n 800a5b4 <HAL_DMA_IRQHandler+0x984>
  23700. 800a5aa: 687b ldr r3, [r7, #4]
  23701. 800a5ac: 681b ldr r3, [r3, #0]
  23702. 800a5ae: 4a39 ldr r2, [pc, #228] @ (800a694 <HAL_DMA_IRQHandler+0xa64>)
  23703. 800a5b0: 4293 cmp r3, r2
  23704. 800a5b2: d101 bne.n 800a5b8 <HAL_DMA_IRQHandler+0x988>
  23705. 800a5b4: 2301 movs r3, #1
  23706. 800a5b6: e000 b.n 800a5ba <HAL_DMA_IRQHandler+0x98a>
  23707. 800a5b8: 2300 movs r3, #0
  23708. 800a5ba: 2b00 cmp r3, #0
  23709. 800a5bc: f000 823f beq.w 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  23710. {
  23711. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  23712. 800a5c0: 687b ldr r3, [r7, #4]
  23713. 800a5c2: 681b ldr r3, [r3, #0]
  23714. 800a5c4: 681b ldr r3, [r3, #0]
  23715. 800a5c6: 613b str r3, [r7, #16]
  23716. /* Half Transfer Complete Interrupt management ******************************/
  23717. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  23718. 800a5c8: 687b ldr r3, [r7, #4]
  23719. 800a5ca: 6ddb ldr r3, [r3, #92] @ 0x5c
  23720. 800a5cc: f003 031f and.w r3, r3, #31
  23721. 800a5d0: 2204 movs r2, #4
  23722. 800a5d2: 409a lsls r2, r3
  23723. 800a5d4: 697b ldr r3, [r7, #20]
  23724. 800a5d6: 4013 ands r3, r2
  23725. 800a5d8: 2b00 cmp r3, #0
  23726. 800a5da: f000 80cd beq.w 800a778 <HAL_DMA_IRQHandler+0xb48>
  23727. 800a5de: 693b ldr r3, [r7, #16]
  23728. 800a5e0: f003 0304 and.w r3, r3, #4
  23729. 800a5e4: 2b00 cmp r3, #0
  23730. 800a5e6: f000 80c7 beq.w 800a778 <HAL_DMA_IRQHandler+0xb48>
  23731. {
  23732. /* Clear the half transfer complete flag */
  23733. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  23734. 800a5ea: 687b ldr r3, [r7, #4]
  23735. 800a5ec: 6ddb ldr r3, [r3, #92] @ 0x5c
  23736. 800a5ee: f003 031f and.w r3, r3, #31
  23737. 800a5f2: 2204 movs r2, #4
  23738. 800a5f4: 409a lsls r2, r3
  23739. 800a5f6: 69fb ldr r3, [r7, #28]
  23740. 800a5f8: 605a str r2, [r3, #4]
  23741. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23742. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23743. 800a5fa: 693b ldr r3, [r7, #16]
  23744. 800a5fc: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23745. 800a600: 2b00 cmp r3, #0
  23746. 800a602: d049 beq.n 800a698 <HAL_DMA_IRQHandler+0xa68>
  23747. {
  23748. /* Current memory buffer used is Memory 0 */
  23749. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23750. 800a604: 693b ldr r3, [r7, #16]
  23751. 800a606: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23752. 800a60a: 2b00 cmp r3, #0
  23753. 800a60c: d109 bne.n 800a622 <HAL_DMA_IRQHandler+0x9f2>
  23754. {
  23755. if(hdma->XferM1HalfCpltCallback != NULL)
  23756. 800a60e: 687b ldr r3, [r7, #4]
  23757. 800a610: 6c9b ldr r3, [r3, #72] @ 0x48
  23758. 800a612: 2b00 cmp r3, #0
  23759. 800a614: f000 8210 beq.w 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23760. {
  23761. /* Half transfer Callback for Memory 1 */
  23762. hdma->XferM1HalfCpltCallback(hdma);
  23763. 800a618: 687b ldr r3, [r7, #4]
  23764. 800a61a: 6c9b ldr r3, [r3, #72] @ 0x48
  23765. 800a61c: 6878 ldr r0, [r7, #4]
  23766. 800a61e: 4798 blx r3
  23767. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23768. 800a620: e20a b.n 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23769. }
  23770. }
  23771. /* Current memory buffer used is Memory 1 */
  23772. else
  23773. {
  23774. if(hdma->XferHalfCpltCallback != NULL)
  23775. 800a622: 687b ldr r3, [r7, #4]
  23776. 800a624: 6c1b ldr r3, [r3, #64] @ 0x40
  23777. 800a626: 2b00 cmp r3, #0
  23778. 800a628: f000 8206 beq.w 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23779. {
  23780. /* Half transfer Callback for Memory 0 */
  23781. hdma->XferHalfCpltCallback(hdma);
  23782. 800a62c: 687b ldr r3, [r7, #4]
  23783. 800a62e: 6c1b ldr r3, [r3, #64] @ 0x40
  23784. 800a630: 6878 ldr r0, [r7, #4]
  23785. 800a632: 4798 blx r3
  23786. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23787. 800a634: e200 b.n 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23788. 800a636: bf00 nop
  23789. 800a638: 40020010 .word 0x40020010
  23790. 800a63c: 40020028 .word 0x40020028
  23791. 800a640: 40020040 .word 0x40020040
  23792. 800a644: 40020058 .word 0x40020058
  23793. 800a648: 40020070 .word 0x40020070
  23794. 800a64c: 40020088 .word 0x40020088
  23795. 800a650: 400200a0 .word 0x400200a0
  23796. 800a654: 400200b8 .word 0x400200b8
  23797. 800a658: 40020410 .word 0x40020410
  23798. 800a65c: 40020428 .word 0x40020428
  23799. 800a660: 40020440 .word 0x40020440
  23800. 800a664: 40020458 .word 0x40020458
  23801. 800a668: 40020470 .word 0x40020470
  23802. 800a66c: 40020488 .word 0x40020488
  23803. 800a670: 400204a0 .word 0x400204a0
  23804. 800a674: 400204b8 .word 0x400204b8
  23805. 800a678: 58025408 .word 0x58025408
  23806. 800a67c: 5802541c .word 0x5802541c
  23807. 800a680: 58025430 .word 0x58025430
  23808. 800a684: 58025444 .word 0x58025444
  23809. 800a688: 58025458 .word 0x58025458
  23810. 800a68c: 5802546c .word 0x5802546c
  23811. 800a690: 58025480 .word 0x58025480
  23812. 800a694: 58025494 .word 0x58025494
  23813. }
  23814. }
  23815. }
  23816. else
  23817. {
  23818. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23819. 800a698: 693b ldr r3, [r7, #16]
  23820. 800a69a: f003 0320 and.w r3, r3, #32
  23821. 800a69e: 2b00 cmp r3, #0
  23822. 800a6a0: d160 bne.n 800a764 <HAL_DMA_IRQHandler+0xb34>
  23823. {
  23824. /* Disable the half transfer interrupt */
  23825. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  23826. 800a6a2: 687b ldr r3, [r7, #4]
  23827. 800a6a4: 681b ldr r3, [r3, #0]
  23828. 800a6a6: 4a7f ldr r2, [pc, #508] @ (800a8a4 <HAL_DMA_IRQHandler+0xc74>)
  23829. 800a6a8: 4293 cmp r3, r2
  23830. 800a6aa: d04a beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23831. 800a6ac: 687b ldr r3, [r7, #4]
  23832. 800a6ae: 681b ldr r3, [r3, #0]
  23833. 800a6b0: 4a7d ldr r2, [pc, #500] @ (800a8a8 <HAL_DMA_IRQHandler+0xc78>)
  23834. 800a6b2: 4293 cmp r3, r2
  23835. 800a6b4: d045 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23836. 800a6b6: 687b ldr r3, [r7, #4]
  23837. 800a6b8: 681b ldr r3, [r3, #0]
  23838. 800a6ba: 4a7c ldr r2, [pc, #496] @ (800a8ac <HAL_DMA_IRQHandler+0xc7c>)
  23839. 800a6bc: 4293 cmp r3, r2
  23840. 800a6be: d040 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23841. 800a6c0: 687b ldr r3, [r7, #4]
  23842. 800a6c2: 681b ldr r3, [r3, #0]
  23843. 800a6c4: 4a7a ldr r2, [pc, #488] @ (800a8b0 <HAL_DMA_IRQHandler+0xc80>)
  23844. 800a6c6: 4293 cmp r3, r2
  23845. 800a6c8: d03b beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23846. 800a6ca: 687b ldr r3, [r7, #4]
  23847. 800a6cc: 681b ldr r3, [r3, #0]
  23848. 800a6ce: 4a79 ldr r2, [pc, #484] @ (800a8b4 <HAL_DMA_IRQHandler+0xc84>)
  23849. 800a6d0: 4293 cmp r3, r2
  23850. 800a6d2: d036 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23851. 800a6d4: 687b ldr r3, [r7, #4]
  23852. 800a6d6: 681b ldr r3, [r3, #0]
  23853. 800a6d8: 4a77 ldr r2, [pc, #476] @ (800a8b8 <HAL_DMA_IRQHandler+0xc88>)
  23854. 800a6da: 4293 cmp r3, r2
  23855. 800a6dc: d031 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23856. 800a6de: 687b ldr r3, [r7, #4]
  23857. 800a6e0: 681b ldr r3, [r3, #0]
  23858. 800a6e2: 4a76 ldr r2, [pc, #472] @ (800a8bc <HAL_DMA_IRQHandler+0xc8c>)
  23859. 800a6e4: 4293 cmp r3, r2
  23860. 800a6e6: d02c beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23861. 800a6e8: 687b ldr r3, [r7, #4]
  23862. 800a6ea: 681b ldr r3, [r3, #0]
  23863. 800a6ec: 4a74 ldr r2, [pc, #464] @ (800a8c0 <HAL_DMA_IRQHandler+0xc90>)
  23864. 800a6ee: 4293 cmp r3, r2
  23865. 800a6f0: d027 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23866. 800a6f2: 687b ldr r3, [r7, #4]
  23867. 800a6f4: 681b ldr r3, [r3, #0]
  23868. 800a6f6: 4a73 ldr r2, [pc, #460] @ (800a8c4 <HAL_DMA_IRQHandler+0xc94>)
  23869. 800a6f8: 4293 cmp r3, r2
  23870. 800a6fa: d022 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23871. 800a6fc: 687b ldr r3, [r7, #4]
  23872. 800a6fe: 681b ldr r3, [r3, #0]
  23873. 800a700: 4a71 ldr r2, [pc, #452] @ (800a8c8 <HAL_DMA_IRQHandler+0xc98>)
  23874. 800a702: 4293 cmp r3, r2
  23875. 800a704: d01d beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23876. 800a706: 687b ldr r3, [r7, #4]
  23877. 800a708: 681b ldr r3, [r3, #0]
  23878. 800a70a: 4a70 ldr r2, [pc, #448] @ (800a8cc <HAL_DMA_IRQHandler+0xc9c>)
  23879. 800a70c: 4293 cmp r3, r2
  23880. 800a70e: d018 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23881. 800a710: 687b ldr r3, [r7, #4]
  23882. 800a712: 681b ldr r3, [r3, #0]
  23883. 800a714: 4a6e ldr r2, [pc, #440] @ (800a8d0 <HAL_DMA_IRQHandler+0xca0>)
  23884. 800a716: 4293 cmp r3, r2
  23885. 800a718: d013 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23886. 800a71a: 687b ldr r3, [r7, #4]
  23887. 800a71c: 681b ldr r3, [r3, #0]
  23888. 800a71e: 4a6d ldr r2, [pc, #436] @ (800a8d4 <HAL_DMA_IRQHandler+0xca4>)
  23889. 800a720: 4293 cmp r3, r2
  23890. 800a722: d00e beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23891. 800a724: 687b ldr r3, [r7, #4]
  23892. 800a726: 681b ldr r3, [r3, #0]
  23893. 800a728: 4a6b ldr r2, [pc, #428] @ (800a8d8 <HAL_DMA_IRQHandler+0xca8>)
  23894. 800a72a: 4293 cmp r3, r2
  23895. 800a72c: d009 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23896. 800a72e: 687b ldr r3, [r7, #4]
  23897. 800a730: 681b ldr r3, [r3, #0]
  23898. 800a732: 4a6a ldr r2, [pc, #424] @ (800a8dc <HAL_DMA_IRQHandler+0xcac>)
  23899. 800a734: 4293 cmp r3, r2
  23900. 800a736: d004 beq.n 800a742 <HAL_DMA_IRQHandler+0xb12>
  23901. 800a738: 687b ldr r3, [r7, #4]
  23902. 800a73a: 681b ldr r3, [r3, #0]
  23903. 800a73c: 4a68 ldr r2, [pc, #416] @ (800a8e0 <HAL_DMA_IRQHandler+0xcb0>)
  23904. 800a73e: 4293 cmp r3, r2
  23905. 800a740: d108 bne.n 800a754 <HAL_DMA_IRQHandler+0xb24>
  23906. 800a742: 687b ldr r3, [r7, #4]
  23907. 800a744: 681b ldr r3, [r3, #0]
  23908. 800a746: 681a ldr r2, [r3, #0]
  23909. 800a748: 687b ldr r3, [r7, #4]
  23910. 800a74a: 681b ldr r3, [r3, #0]
  23911. 800a74c: f022 0208 bic.w r2, r2, #8
  23912. 800a750: 601a str r2, [r3, #0]
  23913. 800a752: e007 b.n 800a764 <HAL_DMA_IRQHandler+0xb34>
  23914. 800a754: 687b ldr r3, [r7, #4]
  23915. 800a756: 681b ldr r3, [r3, #0]
  23916. 800a758: 681a ldr r2, [r3, #0]
  23917. 800a75a: 687b ldr r3, [r7, #4]
  23918. 800a75c: 681b ldr r3, [r3, #0]
  23919. 800a75e: f022 0204 bic.w r2, r2, #4
  23920. 800a762: 601a str r2, [r3, #0]
  23921. }
  23922. /* DMA peripheral state is not updated in Half Transfer */
  23923. /* but in Transfer Complete case */
  23924. if(hdma->XferHalfCpltCallback != NULL)
  23925. 800a764: 687b ldr r3, [r7, #4]
  23926. 800a766: 6c1b ldr r3, [r3, #64] @ 0x40
  23927. 800a768: 2b00 cmp r3, #0
  23928. 800a76a: f000 8165 beq.w 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23929. {
  23930. /* Half transfer callback */
  23931. hdma->XferHalfCpltCallback(hdma);
  23932. 800a76e: 687b ldr r3, [r7, #4]
  23933. 800a770: 6c1b ldr r3, [r3, #64] @ 0x40
  23934. 800a772: 6878 ldr r0, [r7, #4]
  23935. 800a774: 4798 blx r3
  23936. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23937. 800a776: e15f b.n 800aa38 <HAL_DMA_IRQHandler+0xe08>
  23938. }
  23939. }
  23940. }
  23941. /* Transfer Complete Interrupt management ***********************************/
  23942. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  23943. 800a778: 687b ldr r3, [r7, #4]
  23944. 800a77a: 6ddb ldr r3, [r3, #92] @ 0x5c
  23945. 800a77c: f003 031f and.w r3, r3, #31
  23946. 800a780: 2202 movs r2, #2
  23947. 800a782: 409a lsls r2, r3
  23948. 800a784: 697b ldr r3, [r7, #20]
  23949. 800a786: 4013 ands r3, r2
  23950. 800a788: 2b00 cmp r3, #0
  23951. 800a78a: f000 80c5 beq.w 800a918 <HAL_DMA_IRQHandler+0xce8>
  23952. 800a78e: 693b ldr r3, [r7, #16]
  23953. 800a790: f003 0302 and.w r3, r3, #2
  23954. 800a794: 2b00 cmp r3, #0
  23955. 800a796: f000 80bf beq.w 800a918 <HAL_DMA_IRQHandler+0xce8>
  23956. {
  23957. /* Clear the transfer complete flag */
  23958. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  23959. 800a79a: 687b ldr r3, [r7, #4]
  23960. 800a79c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23961. 800a79e: f003 031f and.w r3, r3, #31
  23962. 800a7a2: 2202 movs r2, #2
  23963. 800a7a4: 409a lsls r2, r3
  23964. 800a7a6: 69fb ldr r3, [r7, #28]
  23965. 800a7a8: 605a str r2, [r3, #4]
  23966. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23967. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23968. 800a7aa: 693b ldr r3, [r7, #16]
  23969. 800a7ac: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23970. 800a7b0: 2b00 cmp r3, #0
  23971. 800a7b2: d018 beq.n 800a7e6 <HAL_DMA_IRQHandler+0xbb6>
  23972. {
  23973. /* Current memory buffer used is Memory 0 */
  23974. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23975. 800a7b4: 693b ldr r3, [r7, #16]
  23976. 800a7b6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23977. 800a7ba: 2b00 cmp r3, #0
  23978. 800a7bc: d109 bne.n 800a7d2 <HAL_DMA_IRQHandler+0xba2>
  23979. {
  23980. if(hdma->XferM1CpltCallback != NULL)
  23981. 800a7be: 687b ldr r3, [r7, #4]
  23982. 800a7c0: 6c5b ldr r3, [r3, #68] @ 0x44
  23983. 800a7c2: 2b00 cmp r3, #0
  23984. 800a7c4: f000 813a beq.w 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  23985. {
  23986. /* Transfer complete Callback for Memory 1 */
  23987. hdma->XferM1CpltCallback(hdma);
  23988. 800a7c8: 687b ldr r3, [r7, #4]
  23989. 800a7ca: 6c5b ldr r3, [r3, #68] @ 0x44
  23990. 800a7cc: 6878 ldr r0, [r7, #4]
  23991. 800a7ce: 4798 blx r3
  23992. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23993. 800a7d0: e134 b.n 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  23994. }
  23995. }
  23996. /* Current memory buffer used is Memory 1 */
  23997. else
  23998. {
  23999. if(hdma->XferCpltCallback != NULL)
  24000. 800a7d2: 687b ldr r3, [r7, #4]
  24001. 800a7d4: 6bdb ldr r3, [r3, #60] @ 0x3c
  24002. 800a7d6: 2b00 cmp r3, #0
  24003. 800a7d8: f000 8130 beq.w 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  24004. {
  24005. /* Transfer complete Callback for Memory 0 */
  24006. hdma->XferCpltCallback(hdma);
  24007. 800a7dc: 687b ldr r3, [r7, #4]
  24008. 800a7de: 6bdb ldr r3, [r3, #60] @ 0x3c
  24009. 800a7e0: 6878 ldr r0, [r7, #4]
  24010. 800a7e2: 4798 blx r3
  24011. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24012. 800a7e4: e12a b.n 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  24013. }
  24014. }
  24015. }
  24016. else
  24017. {
  24018. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  24019. 800a7e6: 693b ldr r3, [r7, #16]
  24020. 800a7e8: f003 0320 and.w r3, r3, #32
  24021. 800a7ec: 2b00 cmp r3, #0
  24022. 800a7ee: f040 8089 bne.w 800a904 <HAL_DMA_IRQHandler+0xcd4>
  24023. {
  24024. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  24025. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  24026. 800a7f2: 687b ldr r3, [r7, #4]
  24027. 800a7f4: 681b ldr r3, [r3, #0]
  24028. 800a7f6: 4a2b ldr r2, [pc, #172] @ (800a8a4 <HAL_DMA_IRQHandler+0xc74>)
  24029. 800a7f8: 4293 cmp r3, r2
  24030. 800a7fa: d04a beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24031. 800a7fc: 687b ldr r3, [r7, #4]
  24032. 800a7fe: 681b ldr r3, [r3, #0]
  24033. 800a800: 4a29 ldr r2, [pc, #164] @ (800a8a8 <HAL_DMA_IRQHandler+0xc78>)
  24034. 800a802: 4293 cmp r3, r2
  24035. 800a804: d045 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24036. 800a806: 687b ldr r3, [r7, #4]
  24037. 800a808: 681b ldr r3, [r3, #0]
  24038. 800a80a: 4a28 ldr r2, [pc, #160] @ (800a8ac <HAL_DMA_IRQHandler+0xc7c>)
  24039. 800a80c: 4293 cmp r3, r2
  24040. 800a80e: d040 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24041. 800a810: 687b ldr r3, [r7, #4]
  24042. 800a812: 681b ldr r3, [r3, #0]
  24043. 800a814: 4a26 ldr r2, [pc, #152] @ (800a8b0 <HAL_DMA_IRQHandler+0xc80>)
  24044. 800a816: 4293 cmp r3, r2
  24045. 800a818: d03b beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24046. 800a81a: 687b ldr r3, [r7, #4]
  24047. 800a81c: 681b ldr r3, [r3, #0]
  24048. 800a81e: 4a25 ldr r2, [pc, #148] @ (800a8b4 <HAL_DMA_IRQHandler+0xc84>)
  24049. 800a820: 4293 cmp r3, r2
  24050. 800a822: d036 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24051. 800a824: 687b ldr r3, [r7, #4]
  24052. 800a826: 681b ldr r3, [r3, #0]
  24053. 800a828: 4a23 ldr r2, [pc, #140] @ (800a8b8 <HAL_DMA_IRQHandler+0xc88>)
  24054. 800a82a: 4293 cmp r3, r2
  24055. 800a82c: d031 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24056. 800a82e: 687b ldr r3, [r7, #4]
  24057. 800a830: 681b ldr r3, [r3, #0]
  24058. 800a832: 4a22 ldr r2, [pc, #136] @ (800a8bc <HAL_DMA_IRQHandler+0xc8c>)
  24059. 800a834: 4293 cmp r3, r2
  24060. 800a836: d02c beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24061. 800a838: 687b ldr r3, [r7, #4]
  24062. 800a83a: 681b ldr r3, [r3, #0]
  24063. 800a83c: 4a20 ldr r2, [pc, #128] @ (800a8c0 <HAL_DMA_IRQHandler+0xc90>)
  24064. 800a83e: 4293 cmp r3, r2
  24065. 800a840: d027 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24066. 800a842: 687b ldr r3, [r7, #4]
  24067. 800a844: 681b ldr r3, [r3, #0]
  24068. 800a846: 4a1f ldr r2, [pc, #124] @ (800a8c4 <HAL_DMA_IRQHandler+0xc94>)
  24069. 800a848: 4293 cmp r3, r2
  24070. 800a84a: d022 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24071. 800a84c: 687b ldr r3, [r7, #4]
  24072. 800a84e: 681b ldr r3, [r3, #0]
  24073. 800a850: 4a1d ldr r2, [pc, #116] @ (800a8c8 <HAL_DMA_IRQHandler+0xc98>)
  24074. 800a852: 4293 cmp r3, r2
  24075. 800a854: d01d beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24076. 800a856: 687b ldr r3, [r7, #4]
  24077. 800a858: 681b ldr r3, [r3, #0]
  24078. 800a85a: 4a1c ldr r2, [pc, #112] @ (800a8cc <HAL_DMA_IRQHandler+0xc9c>)
  24079. 800a85c: 4293 cmp r3, r2
  24080. 800a85e: d018 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24081. 800a860: 687b ldr r3, [r7, #4]
  24082. 800a862: 681b ldr r3, [r3, #0]
  24083. 800a864: 4a1a ldr r2, [pc, #104] @ (800a8d0 <HAL_DMA_IRQHandler+0xca0>)
  24084. 800a866: 4293 cmp r3, r2
  24085. 800a868: d013 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24086. 800a86a: 687b ldr r3, [r7, #4]
  24087. 800a86c: 681b ldr r3, [r3, #0]
  24088. 800a86e: 4a19 ldr r2, [pc, #100] @ (800a8d4 <HAL_DMA_IRQHandler+0xca4>)
  24089. 800a870: 4293 cmp r3, r2
  24090. 800a872: d00e beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24091. 800a874: 687b ldr r3, [r7, #4]
  24092. 800a876: 681b ldr r3, [r3, #0]
  24093. 800a878: 4a17 ldr r2, [pc, #92] @ (800a8d8 <HAL_DMA_IRQHandler+0xca8>)
  24094. 800a87a: 4293 cmp r3, r2
  24095. 800a87c: d009 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24096. 800a87e: 687b ldr r3, [r7, #4]
  24097. 800a880: 681b ldr r3, [r3, #0]
  24098. 800a882: 4a16 ldr r2, [pc, #88] @ (800a8dc <HAL_DMA_IRQHandler+0xcac>)
  24099. 800a884: 4293 cmp r3, r2
  24100. 800a886: d004 beq.n 800a892 <HAL_DMA_IRQHandler+0xc62>
  24101. 800a888: 687b ldr r3, [r7, #4]
  24102. 800a88a: 681b ldr r3, [r3, #0]
  24103. 800a88c: 4a14 ldr r2, [pc, #80] @ (800a8e0 <HAL_DMA_IRQHandler+0xcb0>)
  24104. 800a88e: 4293 cmp r3, r2
  24105. 800a890: d128 bne.n 800a8e4 <HAL_DMA_IRQHandler+0xcb4>
  24106. 800a892: 687b ldr r3, [r7, #4]
  24107. 800a894: 681b ldr r3, [r3, #0]
  24108. 800a896: 681a ldr r2, [r3, #0]
  24109. 800a898: 687b ldr r3, [r7, #4]
  24110. 800a89a: 681b ldr r3, [r3, #0]
  24111. 800a89c: f022 0214 bic.w r2, r2, #20
  24112. 800a8a0: 601a str r2, [r3, #0]
  24113. 800a8a2: e027 b.n 800a8f4 <HAL_DMA_IRQHandler+0xcc4>
  24114. 800a8a4: 40020010 .word 0x40020010
  24115. 800a8a8: 40020028 .word 0x40020028
  24116. 800a8ac: 40020040 .word 0x40020040
  24117. 800a8b0: 40020058 .word 0x40020058
  24118. 800a8b4: 40020070 .word 0x40020070
  24119. 800a8b8: 40020088 .word 0x40020088
  24120. 800a8bc: 400200a0 .word 0x400200a0
  24121. 800a8c0: 400200b8 .word 0x400200b8
  24122. 800a8c4: 40020410 .word 0x40020410
  24123. 800a8c8: 40020428 .word 0x40020428
  24124. 800a8cc: 40020440 .word 0x40020440
  24125. 800a8d0: 40020458 .word 0x40020458
  24126. 800a8d4: 40020470 .word 0x40020470
  24127. 800a8d8: 40020488 .word 0x40020488
  24128. 800a8dc: 400204a0 .word 0x400204a0
  24129. 800a8e0: 400204b8 .word 0x400204b8
  24130. 800a8e4: 687b ldr r3, [r7, #4]
  24131. 800a8e6: 681b ldr r3, [r3, #0]
  24132. 800a8e8: 681a ldr r2, [r3, #0]
  24133. 800a8ea: 687b ldr r3, [r7, #4]
  24134. 800a8ec: 681b ldr r3, [r3, #0]
  24135. 800a8ee: f022 020a bic.w r2, r2, #10
  24136. 800a8f2: 601a str r2, [r3, #0]
  24137. /* Change the DMA state */
  24138. hdma->State = HAL_DMA_STATE_READY;
  24139. 800a8f4: 687b ldr r3, [r7, #4]
  24140. 800a8f6: 2201 movs r2, #1
  24141. 800a8f8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24142. /* Process Unlocked */
  24143. __HAL_UNLOCK(hdma);
  24144. 800a8fc: 687b ldr r3, [r7, #4]
  24145. 800a8fe: 2200 movs r2, #0
  24146. 800a900: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24147. }
  24148. if(hdma->XferCpltCallback != NULL)
  24149. 800a904: 687b ldr r3, [r7, #4]
  24150. 800a906: 6bdb ldr r3, [r3, #60] @ 0x3c
  24151. 800a908: 2b00 cmp r3, #0
  24152. 800a90a: f000 8097 beq.w 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  24153. {
  24154. /* Transfer complete callback */
  24155. hdma->XferCpltCallback(hdma);
  24156. 800a90e: 687b ldr r3, [r7, #4]
  24157. 800a910: 6bdb ldr r3, [r3, #60] @ 0x3c
  24158. 800a912: 6878 ldr r0, [r7, #4]
  24159. 800a914: 4798 blx r3
  24160. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24161. 800a916: e091 b.n 800aa3c <HAL_DMA_IRQHandler+0xe0c>
  24162. }
  24163. }
  24164. }
  24165. /* Transfer Error Interrupt management **************************************/
  24166. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  24167. 800a918: 687b ldr r3, [r7, #4]
  24168. 800a91a: 6ddb ldr r3, [r3, #92] @ 0x5c
  24169. 800a91c: f003 031f and.w r3, r3, #31
  24170. 800a920: 2208 movs r2, #8
  24171. 800a922: 409a lsls r2, r3
  24172. 800a924: 697b ldr r3, [r7, #20]
  24173. 800a926: 4013 ands r3, r2
  24174. 800a928: 2b00 cmp r3, #0
  24175. 800a92a: f000 8088 beq.w 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24176. 800a92e: 693b ldr r3, [r7, #16]
  24177. 800a930: f003 0308 and.w r3, r3, #8
  24178. 800a934: 2b00 cmp r3, #0
  24179. 800a936: f000 8082 beq.w 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24180. {
  24181. /* When a DMA transfer error occurs */
  24182. /* A hardware clear of its EN bits is performed */
  24183. /* Disable ALL DMA IT */
  24184. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  24185. 800a93a: 687b ldr r3, [r7, #4]
  24186. 800a93c: 681b ldr r3, [r3, #0]
  24187. 800a93e: 4a41 ldr r2, [pc, #260] @ (800aa44 <HAL_DMA_IRQHandler+0xe14>)
  24188. 800a940: 4293 cmp r3, r2
  24189. 800a942: d04a beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24190. 800a944: 687b ldr r3, [r7, #4]
  24191. 800a946: 681b ldr r3, [r3, #0]
  24192. 800a948: 4a3f ldr r2, [pc, #252] @ (800aa48 <HAL_DMA_IRQHandler+0xe18>)
  24193. 800a94a: 4293 cmp r3, r2
  24194. 800a94c: d045 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24195. 800a94e: 687b ldr r3, [r7, #4]
  24196. 800a950: 681b ldr r3, [r3, #0]
  24197. 800a952: 4a3e ldr r2, [pc, #248] @ (800aa4c <HAL_DMA_IRQHandler+0xe1c>)
  24198. 800a954: 4293 cmp r3, r2
  24199. 800a956: d040 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24200. 800a958: 687b ldr r3, [r7, #4]
  24201. 800a95a: 681b ldr r3, [r3, #0]
  24202. 800a95c: 4a3c ldr r2, [pc, #240] @ (800aa50 <HAL_DMA_IRQHandler+0xe20>)
  24203. 800a95e: 4293 cmp r3, r2
  24204. 800a960: d03b beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24205. 800a962: 687b ldr r3, [r7, #4]
  24206. 800a964: 681b ldr r3, [r3, #0]
  24207. 800a966: 4a3b ldr r2, [pc, #236] @ (800aa54 <HAL_DMA_IRQHandler+0xe24>)
  24208. 800a968: 4293 cmp r3, r2
  24209. 800a96a: d036 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24210. 800a96c: 687b ldr r3, [r7, #4]
  24211. 800a96e: 681b ldr r3, [r3, #0]
  24212. 800a970: 4a39 ldr r2, [pc, #228] @ (800aa58 <HAL_DMA_IRQHandler+0xe28>)
  24213. 800a972: 4293 cmp r3, r2
  24214. 800a974: d031 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24215. 800a976: 687b ldr r3, [r7, #4]
  24216. 800a978: 681b ldr r3, [r3, #0]
  24217. 800a97a: 4a38 ldr r2, [pc, #224] @ (800aa5c <HAL_DMA_IRQHandler+0xe2c>)
  24218. 800a97c: 4293 cmp r3, r2
  24219. 800a97e: d02c beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24220. 800a980: 687b ldr r3, [r7, #4]
  24221. 800a982: 681b ldr r3, [r3, #0]
  24222. 800a984: 4a36 ldr r2, [pc, #216] @ (800aa60 <HAL_DMA_IRQHandler+0xe30>)
  24223. 800a986: 4293 cmp r3, r2
  24224. 800a988: d027 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24225. 800a98a: 687b ldr r3, [r7, #4]
  24226. 800a98c: 681b ldr r3, [r3, #0]
  24227. 800a98e: 4a35 ldr r2, [pc, #212] @ (800aa64 <HAL_DMA_IRQHandler+0xe34>)
  24228. 800a990: 4293 cmp r3, r2
  24229. 800a992: d022 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24230. 800a994: 687b ldr r3, [r7, #4]
  24231. 800a996: 681b ldr r3, [r3, #0]
  24232. 800a998: 4a33 ldr r2, [pc, #204] @ (800aa68 <HAL_DMA_IRQHandler+0xe38>)
  24233. 800a99a: 4293 cmp r3, r2
  24234. 800a99c: d01d beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24235. 800a99e: 687b ldr r3, [r7, #4]
  24236. 800a9a0: 681b ldr r3, [r3, #0]
  24237. 800a9a2: 4a32 ldr r2, [pc, #200] @ (800aa6c <HAL_DMA_IRQHandler+0xe3c>)
  24238. 800a9a4: 4293 cmp r3, r2
  24239. 800a9a6: d018 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24240. 800a9a8: 687b ldr r3, [r7, #4]
  24241. 800a9aa: 681b ldr r3, [r3, #0]
  24242. 800a9ac: 4a30 ldr r2, [pc, #192] @ (800aa70 <HAL_DMA_IRQHandler+0xe40>)
  24243. 800a9ae: 4293 cmp r3, r2
  24244. 800a9b0: d013 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24245. 800a9b2: 687b ldr r3, [r7, #4]
  24246. 800a9b4: 681b ldr r3, [r3, #0]
  24247. 800a9b6: 4a2f ldr r2, [pc, #188] @ (800aa74 <HAL_DMA_IRQHandler+0xe44>)
  24248. 800a9b8: 4293 cmp r3, r2
  24249. 800a9ba: d00e beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24250. 800a9bc: 687b ldr r3, [r7, #4]
  24251. 800a9be: 681b ldr r3, [r3, #0]
  24252. 800a9c0: 4a2d ldr r2, [pc, #180] @ (800aa78 <HAL_DMA_IRQHandler+0xe48>)
  24253. 800a9c2: 4293 cmp r3, r2
  24254. 800a9c4: d009 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24255. 800a9c6: 687b ldr r3, [r7, #4]
  24256. 800a9c8: 681b ldr r3, [r3, #0]
  24257. 800a9ca: 4a2c ldr r2, [pc, #176] @ (800aa7c <HAL_DMA_IRQHandler+0xe4c>)
  24258. 800a9cc: 4293 cmp r3, r2
  24259. 800a9ce: d004 beq.n 800a9da <HAL_DMA_IRQHandler+0xdaa>
  24260. 800a9d0: 687b ldr r3, [r7, #4]
  24261. 800a9d2: 681b ldr r3, [r3, #0]
  24262. 800a9d4: 4a2a ldr r2, [pc, #168] @ (800aa80 <HAL_DMA_IRQHandler+0xe50>)
  24263. 800a9d6: 4293 cmp r3, r2
  24264. 800a9d8: d108 bne.n 800a9ec <HAL_DMA_IRQHandler+0xdbc>
  24265. 800a9da: 687b ldr r3, [r7, #4]
  24266. 800a9dc: 681b ldr r3, [r3, #0]
  24267. 800a9de: 681a ldr r2, [r3, #0]
  24268. 800a9e0: 687b ldr r3, [r7, #4]
  24269. 800a9e2: 681b ldr r3, [r3, #0]
  24270. 800a9e4: f022 021c bic.w r2, r2, #28
  24271. 800a9e8: 601a str r2, [r3, #0]
  24272. 800a9ea: e007 b.n 800a9fc <HAL_DMA_IRQHandler+0xdcc>
  24273. 800a9ec: 687b ldr r3, [r7, #4]
  24274. 800a9ee: 681b ldr r3, [r3, #0]
  24275. 800a9f0: 681a ldr r2, [r3, #0]
  24276. 800a9f2: 687b ldr r3, [r7, #4]
  24277. 800a9f4: 681b ldr r3, [r3, #0]
  24278. 800a9f6: f022 020e bic.w r2, r2, #14
  24279. 800a9fa: 601a str r2, [r3, #0]
  24280. /* Clear all flags */
  24281. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24282. 800a9fc: 687b ldr r3, [r7, #4]
  24283. 800a9fe: 6ddb ldr r3, [r3, #92] @ 0x5c
  24284. 800aa00: f003 031f and.w r3, r3, #31
  24285. 800aa04: 2201 movs r2, #1
  24286. 800aa06: 409a lsls r2, r3
  24287. 800aa08: 69fb ldr r3, [r7, #28]
  24288. 800aa0a: 605a str r2, [r3, #4]
  24289. /* Update error code */
  24290. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  24291. 800aa0c: 687b ldr r3, [r7, #4]
  24292. 800aa0e: 2201 movs r2, #1
  24293. 800aa10: 655a str r2, [r3, #84] @ 0x54
  24294. /* Change the DMA state */
  24295. hdma->State = HAL_DMA_STATE_READY;
  24296. 800aa12: 687b ldr r3, [r7, #4]
  24297. 800aa14: 2201 movs r2, #1
  24298. 800aa16: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24299. /* Process Unlocked */
  24300. __HAL_UNLOCK(hdma);
  24301. 800aa1a: 687b ldr r3, [r7, #4]
  24302. 800aa1c: 2200 movs r2, #0
  24303. 800aa1e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24304. if (hdma->XferErrorCallback != NULL)
  24305. 800aa22: 687b ldr r3, [r7, #4]
  24306. 800aa24: 6cdb ldr r3, [r3, #76] @ 0x4c
  24307. 800aa26: 2b00 cmp r3, #0
  24308. 800aa28: d009 beq.n 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24309. {
  24310. /* Transfer error callback */
  24311. hdma->XferErrorCallback(hdma);
  24312. 800aa2a: 687b ldr r3, [r7, #4]
  24313. 800aa2c: 6cdb ldr r3, [r3, #76] @ 0x4c
  24314. 800aa2e: 6878 ldr r0, [r7, #4]
  24315. 800aa30: 4798 blx r3
  24316. 800aa32: e004 b.n 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24317. return;
  24318. 800aa34: bf00 nop
  24319. 800aa36: e002 b.n 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24320. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24321. 800aa38: bf00 nop
  24322. 800aa3a: e000 b.n 800aa3e <HAL_DMA_IRQHandler+0xe0e>
  24323. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24324. 800aa3c: bf00 nop
  24325. }
  24326. else
  24327. {
  24328. /* Nothing To Do */
  24329. }
  24330. }
  24331. 800aa3e: 3728 adds r7, #40 @ 0x28
  24332. 800aa40: 46bd mov sp, r7
  24333. 800aa42: bd80 pop {r7, pc}
  24334. 800aa44: 40020010 .word 0x40020010
  24335. 800aa48: 40020028 .word 0x40020028
  24336. 800aa4c: 40020040 .word 0x40020040
  24337. 800aa50: 40020058 .word 0x40020058
  24338. 800aa54: 40020070 .word 0x40020070
  24339. 800aa58: 40020088 .word 0x40020088
  24340. 800aa5c: 400200a0 .word 0x400200a0
  24341. 800aa60: 400200b8 .word 0x400200b8
  24342. 800aa64: 40020410 .word 0x40020410
  24343. 800aa68: 40020428 .word 0x40020428
  24344. 800aa6c: 40020440 .word 0x40020440
  24345. 800aa70: 40020458 .word 0x40020458
  24346. 800aa74: 40020470 .word 0x40020470
  24347. 800aa78: 40020488 .word 0x40020488
  24348. 800aa7c: 400204a0 .word 0x400204a0
  24349. 800aa80: 400204b8 .word 0x400204b8
  24350. 0800aa84 <DMA_SetConfig>:
  24351. * @param DstAddress: The destination memory Buffer address
  24352. * @param DataLength: The length of data to be transferred from source to destination
  24353. * @retval None
  24354. */
  24355. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  24356. {
  24357. 800aa84: b480 push {r7}
  24358. 800aa86: b087 sub sp, #28
  24359. 800aa88: af00 add r7, sp, #0
  24360. 800aa8a: 60f8 str r0, [r7, #12]
  24361. 800aa8c: 60b9 str r1, [r7, #8]
  24362. 800aa8e: 607a str r2, [r7, #4]
  24363. 800aa90: 603b str r3, [r7, #0]
  24364. /* calculate DMA base and stream number */
  24365. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  24366. 800aa92: 68fb ldr r3, [r7, #12]
  24367. 800aa94: 6d9b ldr r3, [r3, #88] @ 0x58
  24368. 800aa96: 617b str r3, [r7, #20]
  24369. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  24370. 800aa98: 68fb ldr r3, [r7, #12]
  24371. 800aa9a: 6d9b ldr r3, [r3, #88] @ 0x58
  24372. 800aa9c: 613b str r3, [r7, #16]
  24373. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  24374. 800aa9e: 68fb ldr r3, [r7, #12]
  24375. 800aaa0: 681b ldr r3, [r3, #0]
  24376. 800aaa2: 4a7f ldr r2, [pc, #508] @ (800aca0 <DMA_SetConfig+0x21c>)
  24377. 800aaa4: 4293 cmp r3, r2
  24378. 800aaa6: d072 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24379. 800aaa8: 68fb ldr r3, [r7, #12]
  24380. 800aaaa: 681b ldr r3, [r3, #0]
  24381. 800aaac: 4a7d ldr r2, [pc, #500] @ (800aca4 <DMA_SetConfig+0x220>)
  24382. 800aaae: 4293 cmp r3, r2
  24383. 800aab0: d06d beq.n 800ab8e <DMA_SetConfig+0x10a>
  24384. 800aab2: 68fb ldr r3, [r7, #12]
  24385. 800aab4: 681b ldr r3, [r3, #0]
  24386. 800aab6: 4a7c ldr r2, [pc, #496] @ (800aca8 <DMA_SetConfig+0x224>)
  24387. 800aab8: 4293 cmp r3, r2
  24388. 800aaba: d068 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24389. 800aabc: 68fb ldr r3, [r7, #12]
  24390. 800aabe: 681b ldr r3, [r3, #0]
  24391. 800aac0: 4a7a ldr r2, [pc, #488] @ (800acac <DMA_SetConfig+0x228>)
  24392. 800aac2: 4293 cmp r3, r2
  24393. 800aac4: d063 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24394. 800aac6: 68fb ldr r3, [r7, #12]
  24395. 800aac8: 681b ldr r3, [r3, #0]
  24396. 800aaca: 4a79 ldr r2, [pc, #484] @ (800acb0 <DMA_SetConfig+0x22c>)
  24397. 800aacc: 4293 cmp r3, r2
  24398. 800aace: d05e beq.n 800ab8e <DMA_SetConfig+0x10a>
  24399. 800aad0: 68fb ldr r3, [r7, #12]
  24400. 800aad2: 681b ldr r3, [r3, #0]
  24401. 800aad4: 4a77 ldr r2, [pc, #476] @ (800acb4 <DMA_SetConfig+0x230>)
  24402. 800aad6: 4293 cmp r3, r2
  24403. 800aad8: d059 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24404. 800aada: 68fb ldr r3, [r7, #12]
  24405. 800aadc: 681b ldr r3, [r3, #0]
  24406. 800aade: 4a76 ldr r2, [pc, #472] @ (800acb8 <DMA_SetConfig+0x234>)
  24407. 800aae0: 4293 cmp r3, r2
  24408. 800aae2: d054 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24409. 800aae4: 68fb ldr r3, [r7, #12]
  24410. 800aae6: 681b ldr r3, [r3, #0]
  24411. 800aae8: 4a74 ldr r2, [pc, #464] @ (800acbc <DMA_SetConfig+0x238>)
  24412. 800aaea: 4293 cmp r3, r2
  24413. 800aaec: d04f beq.n 800ab8e <DMA_SetConfig+0x10a>
  24414. 800aaee: 68fb ldr r3, [r7, #12]
  24415. 800aaf0: 681b ldr r3, [r3, #0]
  24416. 800aaf2: 4a73 ldr r2, [pc, #460] @ (800acc0 <DMA_SetConfig+0x23c>)
  24417. 800aaf4: 4293 cmp r3, r2
  24418. 800aaf6: d04a beq.n 800ab8e <DMA_SetConfig+0x10a>
  24419. 800aaf8: 68fb ldr r3, [r7, #12]
  24420. 800aafa: 681b ldr r3, [r3, #0]
  24421. 800aafc: 4a71 ldr r2, [pc, #452] @ (800acc4 <DMA_SetConfig+0x240>)
  24422. 800aafe: 4293 cmp r3, r2
  24423. 800ab00: d045 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24424. 800ab02: 68fb ldr r3, [r7, #12]
  24425. 800ab04: 681b ldr r3, [r3, #0]
  24426. 800ab06: 4a70 ldr r2, [pc, #448] @ (800acc8 <DMA_SetConfig+0x244>)
  24427. 800ab08: 4293 cmp r3, r2
  24428. 800ab0a: d040 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24429. 800ab0c: 68fb ldr r3, [r7, #12]
  24430. 800ab0e: 681b ldr r3, [r3, #0]
  24431. 800ab10: 4a6e ldr r2, [pc, #440] @ (800accc <DMA_SetConfig+0x248>)
  24432. 800ab12: 4293 cmp r3, r2
  24433. 800ab14: d03b beq.n 800ab8e <DMA_SetConfig+0x10a>
  24434. 800ab16: 68fb ldr r3, [r7, #12]
  24435. 800ab18: 681b ldr r3, [r3, #0]
  24436. 800ab1a: 4a6d ldr r2, [pc, #436] @ (800acd0 <DMA_SetConfig+0x24c>)
  24437. 800ab1c: 4293 cmp r3, r2
  24438. 800ab1e: d036 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24439. 800ab20: 68fb ldr r3, [r7, #12]
  24440. 800ab22: 681b ldr r3, [r3, #0]
  24441. 800ab24: 4a6b ldr r2, [pc, #428] @ (800acd4 <DMA_SetConfig+0x250>)
  24442. 800ab26: 4293 cmp r3, r2
  24443. 800ab28: d031 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24444. 800ab2a: 68fb ldr r3, [r7, #12]
  24445. 800ab2c: 681b ldr r3, [r3, #0]
  24446. 800ab2e: 4a6a ldr r2, [pc, #424] @ (800acd8 <DMA_SetConfig+0x254>)
  24447. 800ab30: 4293 cmp r3, r2
  24448. 800ab32: d02c beq.n 800ab8e <DMA_SetConfig+0x10a>
  24449. 800ab34: 68fb ldr r3, [r7, #12]
  24450. 800ab36: 681b ldr r3, [r3, #0]
  24451. 800ab38: 4a68 ldr r2, [pc, #416] @ (800acdc <DMA_SetConfig+0x258>)
  24452. 800ab3a: 4293 cmp r3, r2
  24453. 800ab3c: d027 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24454. 800ab3e: 68fb ldr r3, [r7, #12]
  24455. 800ab40: 681b ldr r3, [r3, #0]
  24456. 800ab42: 4a67 ldr r2, [pc, #412] @ (800ace0 <DMA_SetConfig+0x25c>)
  24457. 800ab44: 4293 cmp r3, r2
  24458. 800ab46: d022 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24459. 800ab48: 68fb ldr r3, [r7, #12]
  24460. 800ab4a: 681b ldr r3, [r3, #0]
  24461. 800ab4c: 4a65 ldr r2, [pc, #404] @ (800ace4 <DMA_SetConfig+0x260>)
  24462. 800ab4e: 4293 cmp r3, r2
  24463. 800ab50: d01d beq.n 800ab8e <DMA_SetConfig+0x10a>
  24464. 800ab52: 68fb ldr r3, [r7, #12]
  24465. 800ab54: 681b ldr r3, [r3, #0]
  24466. 800ab56: 4a64 ldr r2, [pc, #400] @ (800ace8 <DMA_SetConfig+0x264>)
  24467. 800ab58: 4293 cmp r3, r2
  24468. 800ab5a: d018 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24469. 800ab5c: 68fb ldr r3, [r7, #12]
  24470. 800ab5e: 681b ldr r3, [r3, #0]
  24471. 800ab60: 4a62 ldr r2, [pc, #392] @ (800acec <DMA_SetConfig+0x268>)
  24472. 800ab62: 4293 cmp r3, r2
  24473. 800ab64: d013 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24474. 800ab66: 68fb ldr r3, [r7, #12]
  24475. 800ab68: 681b ldr r3, [r3, #0]
  24476. 800ab6a: 4a61 ldr r2, [pc, #388] @ (800acf0 <DMA_SetConfig+0x26c>)
  24477. 800ab6c: 4293 cmp r3, r2
  24478. 800ab6e: d00e beq.n 800ab8e <DMA_SetConfig+0x10a>
  24479. 800ab70: 68fb ldr r3, [r7, #12]
  24480. 800ab72: 681b ldr r3, [r3, #0]
  24481. 800ab74: 4a5f ldr r2, [pc, #380] @ (800acf4 <DMA_SetConfig+0x270>)
  24482. 800ab76: 4293 cmp r3, r2
  24483. 800ab78: d009 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24484. 800ab7a: 68fb ldr r3, [r7, #12]
  24485. 800ab7c: 681b ldr r3, [r3, #0]
  24486. 800ab7e: 4a5e ldr r2, [pc, #376] @ (800acf8 <DMA_SetConfig+0x274>)
  24487. 800ab80: 4293 cmp r3, r2
  24488. 800ab82: d004 beq.n 800ab8e <DMA_SetConfig+0x10a>
  24489. 800ab84: 68fb ldr r3, [r7, #12]
  24490. 800ab86: 681b ldr r3, [r3, #0]
  24491. 800ab88: 4a5c ldr r2, [pc, #368] @ (800acfc <DMA_SetConfig+0x278>)
  24492. 800ab8a: 4293 cmp r3, r2
  24493. 800ab8c: d101 bne.n 800ab92 <DMA_SetConfig+0x10e>
  24494. 800ab8e: 2301 movs r3, #1
  24495. 800ab90: e000 b.n 800ab94 <DMA_SetConfig+0x110>
  24496. 800ab92: 2300 movs r3, #0
  24497. 800ab94: 2b00 cmp r3, #0
  24498. 800ab96: d00d beq.n 800abb4 <DMA_SetConfig+0x130>
  24499. {
  24500. /* Clear the DMAMUX synchro overrun flag */
  24501. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  24502. 800ab98: 68fb ldr r3, [r7, #12]
  24503. 800ab9a: 6e5b ldr r3, [r3, #100] @ 0x64
  24504. 800ab9c: 68fa ldr r2, [r7, #12]
  24505. 800ab9e: 6e92 ldr r2, [r2, #104] @ 0x68
  24506. 800aba0: 605a str r2, [r3, #4]
  24507. if(hdma->DMAmuxRequestGen != 0U)
  24508. 800aba2: 68fb ldr r3, [r7, #12]
  24509. 800aba4: 6edb ldr r3, [r3, #108] @ 0x6c
  24510. 800aba6: 2b00 cmp r3, #0
  24511. 800aba8: d004 beq.n 800abb4 <DMA_SetConfig+0x130>
  24512. {
  24513. /* Clear the DMAMUX request generator overrun flag */
  24514. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  24515. 800abaa: 68fb ldr r3, [r7, #12]
  24516. 800abac: 6f1b ldr r3, [r3, #112] @ 0x70
  24517. 800abae: 68fa ldr r2, [r7, #12]
  24518. 800abb0: 6f52 ldr r2, [r2, #116] @ 0x74
  24519. 800abb2: 605a str r2, [r3, #4]
  24520. }
  24521. }
  24522. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24523. 800abb4: 68fb ldr r3, [r7, #12]
  24524. 800abb6: 681b ldr r3, [r3, #0]
  24525. 800abb8: 4a39 ldr r2, [pc, #228] @ (800aca0 <DMA_SetConfig+0x21c>)
  24526. 800abba: 4293 cmp r3, r2
  24527. 800abbc: d04a beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24528. 800abbe: 68fb ldr r3, [r7, #12]
  24529. 800abc0: 681b ldr r3, [r3, #0]
  24530. 800abc2: 4a38 ldr r2, [pc, #224] @ (800aca4 <DMA_SetConfig+0x220>)
  24531. 800abc4: 4293 cmp r3, r2
  24532. 800abc6: d045 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24533. 800abc8: 68fb ldr r3, [r7, #12]
  24534. 800abca: 681b ldr r3, [r3, #0]
  24535. 800abcc: 4a36 ldr r2, [pc, #216] @ (800aca8 <DMA_SetConfig+0x224>)
  24536. 800abce: 4293 cmp r3, r2
  24537. 800abd0: d040 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24538. 800abd2: 68fb ldr r3, [r7, #12]
  24539. 800abd4: 681b ldr r3, [r3, #0]
  24540. 800abd6: 4a35 ldr r2, [pc, #212] @ (800acac <DMA_SetConfig+0x228>)
  24541. 800abd8: 4293 cmp r3, r2
  24542. 800abda: d03b beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24543. 800abdc: 68fb ldr r3, [r7, #12]
  24544. 800abde: 681b ldr r3, [r3, #0]
  24545. 800abe0: 4a33 ldr r2, [pc, #204] @ (800acb0 <DMA_SetConfig+0x22c>)
  24546. 800abe2: 4293 cmp r3, r2
  24547. 800abe4: d036 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24548. 800abe6: 68fb ldr r3, [r7, #12]
  24549. 800abe8: 681b ldr r3, [r3, #0]
  24550. 800abea: 4a32 ldr r2, [pc, #200] @ (800acb4 <DMA_SetConfig+0x230>)
  24551. 800abec: 4293 cmp r3, r2
  24552. 800abee: d031 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24553. 800abf0: 68fb ldr r3, [r7, #12]
  24554. 800abf2: 681b ldr r3, [r3, #0]
  24555. 800abf4: 4a30 ldr r2, [pc, #192] @ (800acb8 <DMA_SetConfig+0x234>)
  24556. 800abf6: 4293 cmp r3, r2
  24557. 800abf8: d02c beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24558. 800abfa: 68fb ldr r3, [r7, #12]
  24559. 800abfc: 681b ldr r3, [r3, #0]
  24560. 800abfe: 4a2f ldr r2, [pc, #188] @ (800acbc <DMA_SetConfig+0x238>)
  24561. 800ac00: 4293 cmp r3, r2
  24562. 800ac02: d027 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24563. 800ac04: 68fb ldr r3, [r7, #12]
  24564. 800ac06: 681b ldr r3, [r3, #0]
  24565. 800ac08: 4a2d ldr r2, [pc, #180] @ (800acc0 <DMA_SetConfig+0x23c>)
  24566. 800ac0a: 4293 cmp r3, r2
  24567. 800ac0c: d022 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24568. 800ac0e: 68fb ldr r3, [r7, #12]
  24569. 800ac10: 681b ldr r3, [r3, #0]
  24570. 800ac12: 4a2c ldr r2, [pc, #176] @ (800acc4 <DMA_SetConfig+0x240>)
  24571. 800ac14: 4293 cmp r3, r2
  24572. 800ac16: d01d beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24573. 800ac18: 68fb ldr r3, [r7, #12]
  24574. 800ac1a: 681b ldr r3, [r3, #0]
  24575. 800ac1c: 4a2a ldr r2, [pc, #168] @ (800acc8 <DMA_SetConfig+0x244>)
  24576. 800ac1e: 4293 cmp r3, r2
  24577. 800ac20: d018 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24578. 800ac22: 68fb ldr r3, [r7, #12]
  24579. 800ac24: 681b ldr r3, [r3, #0]
  24580. 800ac26: 4a29 ldr r2, [pc, #164] @ (800accc <DMA_SetConfig+0x248>)
  24581. 800ac28: 4293 cmp r3, r2
  24582. 800ac2a: d013 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24583. 800ac2c: 68fb ldr r3, [r7, #12]
  24584. 800ac2e: 681b ldr r3, [r3, #0]
  24585. 800ac30: 4a27 ldr r2, [pc, #156] @ (800acd0 <DMA_SetConfig+0x24c>)
  24586. 800ac32: 4293 cmp r3, r2
  24587. 800ac34: d00e beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24588. 800ac36: 68fb ldr r3, [r7, #12]
  24589. 800ac38: 681b ldr r3, [r3, #0]
  24590. 800ac3a: 4a26 ldr r2, [pc, #152] @ (800acd4 <DMA_SetConfig+0x250>)
  24591. 800ac3c: 4293 cmp r3, r2
  24592. 800ac3e: d009 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24593. 800ac40: 68fb ldr r3, [r7, #12]
  24594. 800ac42: 681b ldr r3, [r3, #0]
  24595. 800ac44: 4a24 ldr r2, [pc, #144] @ (800acd8 <DMA_SetConfig+0x254>)
  24596. 800ac46: 4293 cmp r3, r2
  24597. 800ac48: d004 beq.n 800ac54 <DMA_SetConfig+0x1d0>
  24598. 800ac4a: 68fb ldr r3, [r7, #12]
  24599. 800ac4c: 681b ldr r3, [r3, #0]
  24600. 800ac4e: 4a23 ldr r2, [pc, #140] @ (800acdc <DMA_SetConfig+0x258>)
  24601. 800ac50: 4293 cmp r3, r2
  24602. 800ac52: d101 bne.n 800ac58 <DMA_SetConfig+0x1d4>
  24603. 800ac54: 2301 movs r3, #1
  24604. 800ac56: e000 b.n 800ac5a <DMA_SetConfig+0x1d6>
  24605. 800ac58: 2300 movs r3, #0
  24606. 800ac5a: 2b00 cmp r3, #0
  24607. 800ac5c: d059 beq.n 800ad12 <DMA_SetConfig+0x28e>
  24608. {
  24609. /* Clear all interrupt flags at correct offset within the register */
  24610. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  24611. 800ac5e: 68fb ldr r3, [r7, #12]
  24612. 800ac60: 6ddb ldr r3, [r3, #92] @ 0x5c
  24613. 800ac62: f003 031f and.w r3, r3, #31
  24614. 800ac66: 223f movs r2, #63 @ 0x3f
  24615. 800ac68: 409a lsls r2, r3
  24616. 800ac6a: 697b ldr r3, [r7, #20]
  24617. 800ac6c: 609a str r2, [r3, #8]
  24618. /* Clear DBM bit */
  24619. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  24620. 800ac6e: 68fb ldr r3, [r7, #12]
  24621. 800ac70: 681b ldr r3, [r3, #0]
  24622. 800ac72: 681a ldr r2, [r3, #0]
  24623. 800ac74: 68fb ldr r3, [r7, #12]
  24624. 800ac76: 681b ldr r3, [r3, #0]
  24625. 800ac78: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  24626. 800ac7c: 601a str r2, [r3, #0]
  24627. /* Configure DMA Stream data length */
  24628. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  24629. 800ac7e: 68fb ldr r3, [r7, #12]
  24630. 800ac80: 681b ldr r3, [r3, #0]
  24631. 800ac82: 683a ldr r2, [r7, #0]
  24632. 800ac84: 605a str r2, [r3, #4]
  24633. /* Peripheral to Memory */
  24634. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24635. 800ac86: 68fb ldr r3, [r7, #12]
  24636. 800ac88: 689b ldr r3, [r3, #8]
  24637. 800ac8a: 2b40 cmp r3, #64 @ 0x40
  24638. 800ac8c: d138 bne.n 800ad00 <DMA_SetConfig+0x27c>
  24639. {
  24640. /* Configure DMA Stream destination address */
  24641. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  24642. 800ac8e: 68fb ldr r3, [r7, #12]
  24643. 800ac90: 681b ldr r3, [r3, #0]
  24644. 800ac92: 687a ldr r2, [r7, #4]
  24645. 800ac94: 609a str r2, [r3, #8]
  24646. /* Configure DMA Stream source address */
  24647. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  24648. 800ac96: 68fb ldr r3, [r7, #12]
  24649. 800ac98: 681b ldr r3, [r3, #0]
  24650. 800ac9a: 68ba ldr r2, [r7, #8]
  24651. 800ac9c: 60da str r2, [r3, #12]
  24652. }
  24653. else
  24654. {
  24655. /* Nothing To Do */
  24656. }
  24657. }
  24658. 800ac9e: e086 b.n 800adae <DMA_SetConfig+0x32a>
  24659. 800aca0: 40020010 .word 0x40020010
  24660. 800aca4: 40020028 .word 0x40020028
  24661. 800aca8: 40020040 .word 0x40020040
  24662. 800acac: 40020058 .word 0x40020058
  24663. 800acb0: 40020070 .word 0x40020070
  24664. 800acb4: 40020088 .word 0x40020088
  24665. 800acb8: 400200a0 .word 0x400200a0
  24666. 800acbc: 400200b8 .word 0x400200b8
  24667. 800acc0: 40020410 .word 0x40020410
  24668. 800acc4: 40020428 .word 0x40020428
  24669. 800acc8: 40020440 .word 0x40020440
  24670. 800accc: 40020458 .word 0x40020458
  24671. 800acd0: 40020470 .word 0x40020470
  24672. 800acd4: 40020488 .word 0x40020488
  24673. 800acd8: 400204a0 .word 0x400204a0
  24674. 800acdc: 400204b8 .word 0x400204b8
  24675. 800ace0: 58025408 .word 0x58025408
  24676. 800ace4: 5802541c .word 0x5802541c
  24677. 800ace8: 58025430 .word 0x58025430
  24678. 800acec: 58025444 .word 0x58025444
  24679. 800acf0: 58025458 .word 0x58025458
  24680. 800acf4: 5802546c .word 0x5802546c
  24681. 800acf8: 58025480 .word 0x58025480
  24682. 800acfc: 58025494 .word 0x58025494
  24683. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  24684. 800ad00: 68fb ldr r3, [r7, #12]
  24685. 800ad02: 681b ldr r3, [r3, #0]
  24686. 800ad04: 68ba ldr r2, [r7, #8]
  24687. 800ad06: 609a str r2, [r3, #8]
  24688. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  24689. 800ad08: 68fb ldr r3, [r7, #12]
  24690. 800ad0a: 681b ldr r3, [r3, #0]
  24691. 800ad0c: 687a ldr r2, [r7, #4]
  24692. 800ad0e: 60da str r2, [r3, #12]
  24693. }
  24694. 800ad10: e04d b.n 800adae <DMA_SetConfig+0x32a>
  24695. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  24696. 800ad12: 68fb ldr r3, [r7, #12]
  24697. 800ad14: 681b ldr r3, [r3, #0]
  24698. 800ad16: 4a29 ldr r2, [pc, #164] @ (800adbc <DMA_SetConfig+0x338>)
  24699. 800ad18: 4293 cmp r3, r2
  24700. 800ad1a: d022 beq.n 800ad62 <DMA_SetConfig+0x2de>
  24701. 800ad1c: 68fb ldr r3, [r7, #12]
  24702. 800ad1e: 681b ldr r3, [r3, #0]
  24703. 800ad20: 4a27 ldr r2, [pc, #156] @ (800adc0 <DMA_SetConfig+0x33c>)
  24704. 800ad22: 4293 cmp r3, r2
  24705. 800ad24: d01d beq.n 800ad62 <DMA_SetConfig+0x2de>
  24706. 800ad26: 68fb ldr r3, [r7, #12]
  24707. 800ad28: 681b ldr r3, [r3, #0]
  24708. 800ad2a: 4a26 ldr r2, [pc, #152] @ (800adc4 <DMA_SetConfig+0x340>)
  24709. 800ad2c: 4293 cmp r3, r2
  24710. 800ad2e: d018 beq.n 800ad62 <DMA_SetConfig+0x2de>
  24711. 800ad30: 68fb ldr r3, [r7, #12]
  24712. 800ad32: 681b ldr r3, [r3, #0]
  24713. 800ad34: 4a24 ldr r2, [pc, #144] @ (800adc8 <DMA_SetConfig+0x344>)
  24714. 800ad36: 4293 cmp r3, r2
  24715. 800ad38: d013 beq.n 800ad62 <DMA_SetConfig+0x2de>
  24716. 800ad3a: 68fb ldr r3, [r7, #12]
  24717. 800ad3c: 681b ldr r3, [r3, #0]
  24718. 800ad3e: 4a23 ldr r2, [pc, #140] @ (800adcc <DMA_SetConfig+0x348>)
  24719. 800ad40: 4293 cmp r3, r2
  24720. 800ad42: d00e beq.n 800ad62 <DMA_SetConfig+0x2de>
  24721. 800ad44: 68fb ldr r3, [r7, #12]
  24722. 800ad46: 681b ldr r3, [r3, #0]
  24723. 800ad48: 4a21 ldr r2, [pc, #132] @ (800add0 <DMA_SetConfig+0x34c>)
  24724. 800ad4a: 4293 cmp r3, r2
  24725. 800ad4c: d009 beq.n 800ad62 <DMA_SetConfig+0x2de>
  24726. 800ad4e: 68fb ldr r3, [r7, #12]
  24727. 800ad50: 681b ldr r3, [r3, #0]
  24728. 800ad52: 4a20 ldr r2, [pc, #128] @ (800add4 <DMA_SetConfig+0x350>)
  24729. 800ad54: 4293 cmp r3, r2
  24730. 800ad56: d004 beq.n 800ad62 <DMA_SetConfig+0x2de>
  24731. 800ad58: 68fb ldr r3, [r7, #12]
  24732. 800ad5a: 681b ldr r3, [r3, #0]
  24733. 800ad5c: 4a1e ldr r2, [pc, #120] @ (800add8 <DMA_SetConfig+0x354>)
  24734. 800ad5e: 4293 cmp r3, r2
  24735. 800ad60: d101 bne.n 800ad66 <DMA_SetConfig+0x2e2>
  24736. 800ad62: 2301 movs r3, #1
  24737. 800ad64: e000 b.n 800ad68 <DMA_SetConfig+0x2e4>
  24738. 800ad66: 2300 movs r3, #0
  24739. 800ad68: 2b00 cmp r3, #0
  24740. 800ad6a: d020 beq.n 800adae <DMA_SetConfig+0x32a>
  24741. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24742. 800ad6c: 68fb ldr r3, [r7, #12]
  24743. 800ad6e: 6ddb ldr r3, [r3, #92] @ 0x5c
  24744. 800ad70: f003 031f and.w r3, r3, #31
  24745. 800ad74: 2201 movs r2, #1
  24746. 800ad76: 409a lsls r2, r3
  24747. 800ad78: 693b ldr r3, [r7, #16]
  24748. 800ad7a: 605a str r2, [r3, #4]
  24749. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  24750. 800ad7c: 68fb ldr r3, [r7, #12]
  24751. 800ad7e: 681b ldr r3, [r3, #0]
  24752. 800ad80: 683a ldr r2, [r7, #0]
  24753. 800ad82: 605a str r2, [r3, #4]
  24754. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24755. 800ad84: 68fb ldr r3, [r7, #12]
  24756. 800ad86: 689b ldr r3, [r3, #8]
  24757. 800ad88: 2b40 cmp r3, #64 @ 0x40
  24758. 800ad8a: d108 bne.n 800ad9e <DMA_SetConfig+0x31a>
  24759. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  24760. 800ad8c: 68fb ldr r3, [r7, #12]
  24761. 800ad8e: 681b ldr r3, [r3, #0]
  24762. 800ad90: 687a ldr r2, [r7, #4]
  24763. 800ad92: 609a str r2, [r3, #8]
  24764. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  24765. 800ad94: 68fb ldr r3, [r7, #12]
  24766. 800ad96: 681b ldr r3, [r3, #0]
  24767. 800ad98: 68ba ldr r2, [r7, #8]
  24768. 800ad9a: 60da str r2, [r3, #12]
  24769. }
  24770. 800ad9c: e007 b.n 800adae <DMA_SetConfig+0x32a>
  24771. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  24772. 800ad9e: 68fb ldr r3, [r7, #12]
  24773. 800ada0: 681b ldr r3, [r3, #0]
  24774. 800ada2: 68ba ldr r2, [r7, #8]
  24775. 800ada4: 609a str r2, [r3, #8]
  24776. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  24777. 800ada6: 68fb ldr r3, [r7, #12]
  24778. 800ada8: 681b ldr r3, [r3, #0]
  24779. 800adaa: 687a ldr r2, [r7, #4]
  24780. 800adac: 60da str r2, [r3, #12]
  24781. }
  24782. 800adae: bf00 nop
  24783. 800adb0: 371c adds r7, #28
  24784. 800adb2: 46bd mov sp, r7
  24785. 800adb4: f85d 7b04 ldr.w r7, [sp], #4
  24786. 800adb8: 4770 bx lr
  24787. 800adba: bf00 nop
  24788. 800adbc: 58025408 .word 0x58025408
  24789. 800adc0: 5802541c .word 0x5802541c
  24790. 800adc4: 58025430 .word 0x58025430
  24791. 800adc8: 58025444 .word 0x58025444
  24792. 800adcc: 58025458 .word 0x58025458
  24793. 800add0: 5802546c .word 0x5802546c
  24794. 800add4: 58025480 .word 0x58025480
  24795. 800add8: 58025494 .word 0x58025494
  24796. 0800addc <DMA_CalcBaseAndBitshift>:
  24797. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24798. * the configuration information for the specified DMA Stream.
  24799. * @retval Stream base address
  24800. */
  24801. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  24802. {
  24803. 800addc: b480 push {r7}
  24804. 800adde: b085 sub sp, #20
  24805. 800ade0: af00 add r7, sp, #0
  24806. 800ade2: 6078 str r0, [r7, #4]
  24807. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24808. 800ade4: 687b ldr r3, [r7, #4]
  24809. 800ade6: 681b ldr r3, [r3, #0]
  24810. 800ade8: 4a42 ldr r2, [pc, #264] @ (800aef4 <DMA_CalcBaseAndBitshift+0x118>)
  24811. 800adea: 4293 cmp r3, r2
  24812. 800adec: d04a beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24813. 800adee: 687b ldr r3, [r7, #4]
  24814. 800adf0: 681b ldr r3, [r3, #0]
  24815. 800adf2: 4a41 ldr r2, [pc, #260] @ (800aef8 <DMA_CalcBaseAndBitshift+0x11c>)
  24816. 800adf4: 4293 cmp r3, r2
  24817. 800adf6: d045 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24818. 800adf8: 687b ldr r3, [r7, #4]
  24819. 800adfa: 681b ldr r3, [r3, #0]
  24820. 800adfc: 4a3f ldr r2, [pc, #252] @ (800aefc <DMA_CalcBaseAndBitshift+0x120>)
  24821. 800adfe: 4293 cmp r3, r2
  24822. 800ae00: d040 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24823. 800ae02: 687b ldr r3, [r7, #4]
  24824. 800ae04: 681b ldr r3, [r3, #0]
  24825. 800ae06: 4a3e ldr r2, [pc, #248] @ (800af00 <DMA_CalcBaseAndBitshift+0x124>)
  24826. 800ae08: 4293 cmp r3, r2
  24827. 800ae0a: d03b beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24828. 800ae0c: 687b ldr r3, [r7, #4]
  24829. 800ae0e: 681b ldr r3, [r3, #0]
  24830. 800ae10: 4a3c ldr r2, [pc, #240] @ (800af04 <DMA_CalcBaseAndBitshift+0x128>)
  24831. 800ae12: 4293 cmp r3, r2
  24832. 800ae14: d036 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24833. 800ae16: 687b ldr r3, [r7, #4]
  24834. 800ae18: 681b ldr r3, [r3, #0]
  24835. 800ae1a: 4a3b ldr r2, [pc, #236] @ (800af08 <DMA_CalcBaseAndBitshift+0x12c>)
  24836. 800ae1c: 4293 cmp r3, r2
  24837. 800ae1e: d031 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24838. 800ae20: 687b ldr r3, [r7, #4]
  24839. 800ae22: 681b ldr r3, [r3, #0]
  24840. 800ae24: 4a39 ldr r2, [pc, #228] @ (800af0c <DMA_CalcBaseAndBitshift+0x130>)
  24841. 800ae26: 4293 cmp r3, r2
  24842. 800ae28: d02c beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24843. 800ae2a: 687b ldr r3, [r7, #4]
  24844. 800ae2c: 681b ldr r3, [r3, #0]
  24845. 800ae2e: 4a38 ldr r2, [pc, #224] @ (800af10 <DMA_CalcBaseAndBitshift+0x134>)
  24846. 800ae30: 4293 cmp r3, r2
  24847. 800ae32: d027 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24848. 800ae34: 687b ldr r3, [r7, #4]
  24849. 800ae36: 681b ldr r3, [r3, #0]
  24850. 800ae38: 4a36 ldr r2, [pc, #216] @ (800af14 <DMA_CalcBaseAndBitshift+0x138>)
  24851. 800ae3a: 4293 cmp r3, r2
  24852. 800ae3c: d022 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24853. 800ae3e: 687b ldr r3, [r7, #4]
  24854. 800ae40: 681b ldr r3, [r3, #0]
  24855. 800ae42: 4a35 ldr r2, [pc, #212] @ (800af18 <DMA_CalcBaseAndBitshift+0x13c>)
  24856. 800ae44: 4293 cmp r3, r2
  24857. 800ae46: d01d beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24858. 800ae48: 687b ldr r3, [r7, #4]
  24859. 800ae4a: 681b ldr r3, [r3, #0]
  24860. 800ae4c: 4a33 ldr r2, [pc, #204] @ (800af1c <DMA_CalcBaseAndBitshift+0x140>)
  24861. 800ae4e: 4293 cmp r3, r2
  24862. 800ae50: d018 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24863. 800ae52: 687b ldr r3, [r7, #4]
  24864. 800ae54: 681b ldr r3, [r3, #0]
  24865. 800ae56: 4a32 ldr r2, [pc, #200] @ (800af20 <DMA_CalcBaseAndBitshift+0x144>)
  24866. 800ae58: 4293 cmp r3, r2
  24867. 800ae5a: d013 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24868. 800ae5c: 687b ldr r3, [r7, #4]
  24869. 800ae5e: 681b ldr r3, [r3, #0]
  24870. 800ae60: 4a30 ldr r2, [pc, #192] @ (800af24 <DMA_CalcBaseAndBitshift+0x148>)
  24871. 800ae62: 4293 cmp r3, r2
  24872. 800ae64: d00e beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24873. 800ae66: 687b ldr r3, [r7, #4]
  24874. 800ae68: 681b ldr r3, [r3, #0]
  24875. 800ae6a: 4a2f ldr r2, [pc, #188] @ (800af28 <DMA_CalcBaseAndBitshift+0x14c>)
  24876. 800ae6c: 4293 cmp r3, r2
  24877. 800ae6e: d009 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24878. 800ae70: 687b ldr r3, [r7, #4]
  24879. 800ae72: 681b ldr r3, [r3, #0]
  24880. 800ae74: 4a2d ldr r2, [pc, #180] @ (800af2c <DMA_CalcBaseAndBitshift+0x150>)
  24881. 800ae76: 4293 cmp r3, r2
  24882. 800ae78: d004 beq.n 800ae84 <DMA_CalcBaseAndBitshift+0xa8>
  24883. 800ae7a: 687b ldr r3, [r7, #4]
  24884. 800ae7c: 681b ldr r3, [r3, #0]
  24885. 800ae7e: 4a2c ldr r2, [pc, #176] @ (800af30 <DMA_CalcBaseAndBitshift+0x154>)
  24886. 800ae80: 4293 cmp r3, r2
  24887. 800ae82: d101 bne.n 800ae88 <DMA_CalcBaseAndBitshift+0xac>
  24888. 800ae84: 2301 movs r3, #1
  24889. 800ae86: e000 b.n 800ae8a <DMA_CalcBaseAndBitshift+0xae>
  24890. 800ae88: 2300 movs r3, #0
  24891. 800ae8a: 2b00 cmp r3, #0
  24892. 800ae8c: d024 beq.n 800aed8 <DMA_CalcBaseAndBitshift+0xfc>
  24893. {
  24894. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24895. 800ae8e: 687b ldr r3, [r7, #4]
  24896. 800ae90: 681b ldr r3, [r3, #0]
  24897. 800ae92: b2db uxtb r3, r3
  24898. 800ae94: 3b10 subs r3, #16
  24899. 800ae96: 4a27 ldr r2, [pc, #156] @ (800af34 <DMA_CalcBaseAndBitshift+0x158>)
  24900. 800ae98: fba2 2303 umull r2, r3, r2, r3
  24901. 800ae9c: 091b lsrs r3, r3, #4
  24902. 800ae9e: 60fb str r3, [r7, #12]
  24903. /* lookup table for necessary bitshift of flags within status registers */
  24904. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  24905. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  24906. 800aea0: 68fb ldr r3, [r7, #12]
  24907. 800aea2: f003 0307 and.w r3, r3, #7
  24908. 800aea6: 4a24 ldr r2, [pc, #144] @ (800af38 <DMA_CalcBaseAndBitshift+0x15c>)
  24909. 800aea8: 5cd3 ldrb r3, [r2, r3]
  24910. 800aeaa: 461a mov r2, r3
  24911. 800aeac: 687b ldr r3, [r7, #4]
  24912. 800aeae: 65da str r2, [r3, #92] @ 0x5c
  24913. if (stream_number > 3U)
  24914. 800aeb0: 68fb ldr r3, [r7, #12]
  24915. 800aeb2: 2b03 cmp r3, #3
  24916. 800aeb4: d908 bls.n 800aec8 <DMA_CalcBaseAndBitshift+0xec>
  24917. {
  24918. /* return pointer to HISR and HIFCR */
  24919. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  24920. 800aeb6: 687b ldr r3, [r7, #4]
  24921. 800aeb8: 681b ldr r3, [r3, #0]
  24922. 800aeba: 461a mov r2, r3
  24923. 800aebc: 4b1f ldr r3, [pc, #124] @ (800af3c <DMA_CalcBaseAndBitshift+0x160>)
  24924. 800aebe: 4013 ands r3, r2
  24925. 800aec0: 1d1a adds r2, r3, #4
  24926. 800aec2: 687b ldr r3, [r7, #4]
  24927. 800aec4: 659a str r2, [r3, #88] @ 0x58
  24928. 800aec6: e00d b.n 800aee4 <DMA_CalcBaseAndBitshift+0x108>
  24929. }
  24930. else
  24931. {
  24932. /* return pointer to LISR and LIFCR */
  24933. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  24934. 800aec8: 687b ldr r3, [r7, #4]
  24935. 800aeca: 681b ldr r3, [r3, #0]
  24936. 800aecc: 461a mov r2, r3
  24937. 800aece: 4b1b ldr r3, [pc, #108] @ (800af3c <DMA_CalcBaseAndBitshift+0x160>)
  24938. 800aed0: 4013 ands r3, r2
  24939. 800aed2: 687a ldr r2, [r7, #4]
  24940. 800aed4: 6593 str r3, [r2, #88] @ 0x58
  24941. 800aed6: e005 b.n 800aee4 <DMA_CalcBaseAndBitshift+0x108>
  24942. }
  24943. }
  24944. else /* BDMA instance(s) */
  24945. {
  24946. /* return pointer to ISR and IFCR */
  24947. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  24948. 800aed8: 687b ldr r3, [r7, #4]
  24949. 800aeda: 681b ldr r3, [r3, #0]
  24950. 800aedc: f023 02ff bic.w r2, r3, #255 @ 0xff
  24951. 800aee0: 687b ldr r3, [r7, #4]
  24952. 800aee2: 659a str r2, [r3, #88] @ 0x58
  24953. }
  24954. return hdma->StreamBaseAddress;
  24955. 800aee4: 687b ldr r3, [r7, #4]
  24956. 800aee6: 6d9b ldr r3, [r3, #88] @ 0x58
  24957. }
  24958. 800aee8: 4618 mov r0, r3
  24959. 800aeea: 3714 adds r7, #20
  24960. 800aeec: 46bd mov sp, r7
  24961. 800aeee: f85d 7b04 ldr.w r7, [sp], #4
  24962. 800aef2: 4770 bx lr
  24963. 800aef4: 40020010 .word 0x40020010
  24964. 800aef8: 40020028 .word 0x40020028
  24965. 800aefc: 40020040 .word 0x40020040
  24966. 800af00: 40020058 .word 0x40020058
  24967. 800af04: 40020070 .word 0x40020070
  24968. 800af08: 40020088 .word 0x40020088
  24969. 800af0c: 400200a0 .word 0x400200a0
  24970. 800af10: 400200b8 .word 0x400200b8
  24971. 800af14: 40020410 .word 0x40020410
  24972. 800af18: 40020428 .word 0x40020428
  24973. 800af1c: 40020440 .word 0x40020440
  24974. 800af20: 40020458 .word 0x40020458
  24975. 800af24: 40020470 .word 0x40020470
  24976. 800af28: 40020488 .word 0x40020488
  24977. 800af2c: 400204a0 .word 0x400204a0
  24978. 800af30: 400204b8 .word 0x400204b8
  24979. 800af34: aaaaaaab .word 0xaaaaaaab
  24980. 800af38: 0801879c .word 0x0801879c
  24981. 800af3c: fffffc00 .word 0xfffffc00
  24982. 0800af40 <DMA_CheckFifoParam>:
  24983. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24984. * the configuration information for the specified DMA Stream.
  24985. * @retval HAL status
  24986. */
  24987. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  24988. {
  24989. 800af40: b480 push {r7}
  24990. 800af42: b085 sub sp, #20
  24991. 800af44: af00 add r7, sp, #0
  24992. 800af46: 6078 str r0, [r7, #4]
  24993. HAL_StatusTypeDef status = HAL_OK;
  24994. 800af48: 2300 movs r3, #0
  24995. 800af4a: 73fb strb r3, [r7, #15]
  24996. /* Memory Data size equal to Byte */
  24997. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  24998. 800af4c: 687b ldr r3, [r7, #4]
  24999. 800af4e: 699b ldr r3, [r3, #24]
  25000. 800af50: 2b00 cmp r3, #0
  25001. 800af52: d120 bne.n 800af96 <DMA_CheckFifoParam+0x56>
  25002. {
  25003. switch (hdma->Init.FIFOThreshold)
  25004. 800af54: 687b ldr r3, [r7, #4]
  25005. 800af56: 6a9b ldr r3, [r3, #40] @ 0x28
  25006. 800af58: 2b03 cmp r3, #3
  25007. 800af5a: d858 bhi.n 800b00e <DMA_CheckFifoParam+0xce>
  25008. 800af5c: a201 add r2, pc, #4 @ (adr r2, 800af64 <DMA_CheckFifoParam+0x24>)
  25009. 800af5e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25010. 800af62: bf00 nop
  25011. 800af64: 0800af75 .word 0x0800af75
  25012. 800af68: 0800af87 .word 0x0800af87
  25013. 800af6c: 0800af75 .word 0x0800af75
  25014. 800af70: 0800b00f .word 0x0800b00f
  25015. {
  25016. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  25017. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  25018. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25019. 800af74: 687b ldr r3, [r7, #4]
  25020. 800af76: 6adb ldr r3, [r3, #44] @ 0x2c
  25021. 800af78: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25022. 800af7c: 2b00 cmp r3, #0
  25023. 800af7e: d048 beq.n 800b012 <DMA_CheckFifoParam+0xd2>
  25024. {
  25025. status = HAL_ERROR;
  25026. 800af80: 2301 movs r3, #1
  25027. 800af82: 73fb strb r3, [r7, #15]
  25028. }
  25029. break;
  25030. 800af84: e045 b.n 800b012 <DMA_CheckFifoParam+0xd2>
  25031. case DMA_FIFO_THRESHOLD_HALFFULL:
  25032. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  25033. 800af86: 687b ldr r3, [r7, #4]
  25034. 800af88: 6adb ldr r3, [r3, #44] @ 0x2c
  25035. 800af8a: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  25036. 800af8e: d142 bne.n 800b016 <DMA_CheckFifoParam+0xd6>
  25037. {
  25038. status = HAL_ERROR;
  25039. 800af90: 2301 movs r3, #1
  25040. 800af92: 73fb strb r3, [r7, #15]
  25041. }
  25042. break;
  25043. 800af94: e03f b.n 800b016 <DMA_CheckFifoParam+0xd6>
  25044. break;
  25045. }
  25046. }
  25047. /* Memory Data size equal to Half-Word */
  25048. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  25049. 800af96: 687b ldr r3, [r7, #4]
  25050. 800af98: 699b ldr r3, [r3, #24]
  25051. 800af9a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25052. 800af9e: d123 bne.n 800afe8 <DMA_CheckFifoParam+0xa8>
  25053. {
  25054. switch (hdma->Init.FIFOThreshold)
  25055. 800afa0: 687b ldr r3, [r7, #4]
  25056. 800afa2: 6a9b ldr r3, [r3, #40] @ 0x28
  25057. 800afa4: 2b03 cmp r3, #3
  25058. 800afa6: d838 bhi.n 800b01a <DMA_CheckFifoParam+0xda>
  25059. 800afa8: a201 add r2, pc, #4 @ (adr r2, 800afb0 <DMA_CheckFifoParam+0x70>)
  25060. 800afaa: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25061. 800afae: bf00 nop
  25062. 800afb0: 0800afc1 .word 0x0800afc1
  25063. 800afb4: 0800afc7 .word 0x0800afc7
  25064. 800afb8: 0800afc1 .word 0x0800afc1
  25065. 800afbc: 0800afd9 .word 0x0800afd9
  25066. {
  25067. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  25068. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  25069. status = HAL_ERROR;
  25070. 800afc0: 2301 movs r3, #1
  25071. 800afc2: 73fb strb r3, [r7, #15]
  25072. break;
  25073. 800afc4: e030 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25074. case DMA_FIFO_THRESHOLD_HALFFULL:
  25075. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25076. 800afc6: 687b ldr r3, [r7, #4]
  25077. 800afc8: 6adb ldr r3, [r3, #44] @ 0x2c
  25078. 800afca: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25079. 800afce: 2b00 cmp r3, #0
  25080. 800afd0: d025 beq.n 800b01e <DMA_CheckFifoParam+0xde>
  25081. {
  25082. status = HAL_ERROR;
  25083. 800afd2: 2301 movs r3, #1
  25084. 800afd4: 73fb strb r3, [r7, #15]
  25085. }
  25086. break;
  25087. 800afd6: e022 b.n 800b01e <DMA_CheckFifoParam+0xde>
  25088. case DMA_FIFO_THRESHOLD_FULL:
  25089. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  25090. 800afd8: 687b ldr r3, [r7, #4]
  25091. 800afda: 6adb ldr r3, [r3, #44] @ 0x2c
  25092. 800afdc: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  25093. 800afe0: d11f bne.n 800b022 <DMA_CheckFifoParam+0xe2>
  25094. {
  25095. status = HAL_ERROR;
  25096. 800afe2: 2301 movs r3, #1
  25097. 800afe4: 73fb strb r3, [r7, #15]
  25098. }
  25099. break;
  25100. 800afe6: e01c b.n 800b022 <DMA_CheckFifoParam+0xe2>
  25101. }
  25102. /* Memory Data size equal to Word */
  25103. else
  25104. {
  25105. switch (hdma->Init.FIFOThreshold)
  25106. 800afe8: 687b ldr r3, [r7, #4]
  25107. 800afea: 6a9b ldr r3, [r3, #40] @ 0x28
  25108. 800afec: 2b02 cmp r3, #2
  25109. 800afee: d902 bls.n 800aff6 <DMA_CheckFifoParam+0xb6>
  25110. 800aff0: 2b03 cmp r3, #3
  25111. 800aff2: d003 beq.n 800affc <DMA_CheckFifoParam+0xbc>
  25112. status = HAL_ERROR;
  25113. }
  25114. break;
  25115. default:
  25116. break;
  25117. 800aff4: e018 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25118. status = HAL_ERROR;
  25119. 800aff6: 2301 movs r3, #1
  25120. 800aff8: 73fb strb r3, [r7, #15]
  25121. break;
  25122. 800affa: e015 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25123. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25124. 800affc: 687b ldr r3, [r7, #4]
  25125. 800affe: 6adb ldr r3, [r3, #44] @ 0x2c
  25126. 800b000: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25127. 800b004: 2b00 cmp r3, #0
  25128. 800b006: d00e beq.n 800b026 <DMA_CheckFifoParam+0xe6>
  25129. status = HAL_ERROR;
  25130. 800b008: 2301 movs r3, #1
  25131. 800b00a: 73fb strb r3, [r7, #15]
  25132. break;
  25133. 800b00c: e00b b.n 800b026 <DMA_CheckFifoParam+0xe6>
  25134. break;
  25135. 800b00e: bf00 nop
  25136. 800b010: e00a b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25137. break;
  25138. 800b012: bf00 nop
  25139. 800b014: e008 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25140. break;
  25141. 800b016: bf00 nop
  25142. 800b018: e006 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25143. break;
  25144. 800b01a: bf00 nop
  25145. 800b01c: e004 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25146. break;
  25147. 800b01e: bf00 nop
  25148. 800b020: e002 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25149. break;
  25150. 800b022: bf00 nop
  25151. 800b024: e000 b.n 800b028 <DMA_CheckFifoParam+0xe8>
  25152. break;
  25153. 800b026: bf00 nop
  25154. }
  25155. }
  25156. return status;
  25157. 800b028: 7bfb ldrb r3, [r7, #15]
  25158. }
  25159. 800b02a: 4618 mov r0, r3
  25160. 800b02c: 3714 adds r7, #20
  25161. 800b02e: 46bd mov sp, r7
  25162. 800b030: f85d 7b04 ldr.w r7, [sp], #4
  25163. 800b034: 4770 bx lr
  25164. 800b036: bf00 nop
  25165. 0800b038 <DMA_CalcDMAMUXChannelBaseAndMask>:
  25166. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25167. * the configuration information for the specified DMA Stream.
  25168. * @retval HAL status
  25169. */
  25170. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  25171. {
  25172. 800b038: b480 push {r7}
  25173. 800b03a: b085 sub sp, #20
  25174. 800b03c: af00 add r7, sp, #0
  25175. 800b03e: 6078 str r0, [r7, #4]
  25176. uint32_t stream_number;
  25177. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  25178. 800b040: 687b ldr r3, [r7, #4]
  25179. 800b042: 681b ldr r3, [r3, #0]
  25180. 800b044: 60bb str r3, [r7, #8]
  25181. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25182. 800b046: 687b ldr r3, [r7, #4]
  25183. 800b048: 681b ldr r3, [r3, #0]
  25184. 800b04a: 4a38 ldr r2, [pc, #224] @ (800b12c <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  25185. 800b04c: 4293 cmp r3, r2
  25186. 800b04e: d022 beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25187. 800b050: 687b ldr r3, [r7, #4]
  25188. 800b052: 681b ldr r3, [r3, #0]
  25189. 800b054: 4a36 ldr r2, [pc, #216] @ (800b130 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  25190. 800b056: 4293 cmp r3, r2
  25191. 800b058: d01d beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25192. 800b05a: 687b ldr r3, [r7, #4]
  25193. 800b05c: 681b ldr r3, [r3, #0]
  25194. 800b05e: 4a35 ldr r2, [pc, #212] @ (800b134 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  25195. 800b060: 4293 cmp r3, r2
  25196. 800b062: d018 beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25197. 800b064: 687b ldr r3, [r7, #4]
  25198. 800b066: 681b ldr r3, [r3, #0]
  25199. 800b068: 4a33 ldr r2, [pc, #204] @ (800b138 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  25200. 800b06a: 4293 cmp r3, r2
  25201. 800b06c: d013 beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25202. 800b06e: 687b ldr r3, [r7, #4]
  25203. 800b070: 681b ldr r3, [r3, #0]
  25204. 800b072: 4a32 ldr r2, [pc, #200] @ (800b13c <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  25205. 800b074: 4293 cmp r3, r2
  25206. 800b076: d00e beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25207. 800b078: 687b ldr r3, [r7, #4]
  25208. 800b07a: 681b ldr r3, [r3, #0]
  25209. 800b07c: 4a30 ldr r2, [pc, #192] @ (800b140 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  25210. 800b07e: 4293 cmp r3, r2
  25211. 800b080: d009 beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25212. 800b082: 687b ldr r3, [r7, #4]
  25213. 800b084: 681b ldr r3, [r3, #0]
  25214. 800b086: 4a2f ldr r2, [pc, #188] @ (800b144 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  25215. 800b088: 4293 cmp r3, r2
  25216. 800b08a: d004 beq.n 800b096 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25217. 800b08c: 687b ldr r3, [r7, #4]
  25218. 800b08e: 681b ldr r3, [r3, #0]
  25219. 800b090: 4a2d ldr r2, [pc, #180] @ (800b148 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  25220. 800b092: 4293 cmp r3, r2
  25221. 800b094: d101 bne.n 800b09a <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  25222. 800b096: 2301 movs r3, #1
  25223. 800b098: e000 b.n 800b09c <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  25224. 800b09a: 2300 movs r3, #0
  25225. 800b09c: 2b00 cmp r3, #0
  25226. 800b09e: d01a beq.n 800b0d6 <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  25227. {
  25228. /* BDMA Channels are connected to DMAMUX2 channels */
  25229. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  25230. 800b0a0: 687b ldr r3, [r7, #4]
  25231. 800b0a2: 681b ldr r3, [r3, #0]
  25232. 800b0a4: b2db uxtb r3, r3
  25233. 800b0a6: 3b08 subs r3, #8
  25234. 800b0a8: 4a28 ldr r2, [pc, #160] @ (800b14c <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  25235. 800b0aa: fba2 2303 umull r2, r3, r2, r3
  25236. 800b0ae: 091b lsrs r3, r3, #4
  25237. 800b0b0: 60fb str r3, [r7, #12]
  25238. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  25239. 800b0b2: 68fa ldr r2, [r7, #12]
  25240. 800b0b4: 4b26 ldr r3, [pc, #152] @ (800b150 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  25241. 800b0b6: 4413 add r3, r2
  25242. 800b0b8: 009b lsls r3, r3, #2
  25243. 800b0ba: 461a mov r2, r3
  25244. 800b0bc: 687b ldr r3, [r7, #4]
  25245. 800b0be: 661a str r2, [r3, #96] @ 0x60
  25246. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  25247. 800b0c0: 687b ldr r3, [r7, #4]
  25248. 800b0c2: 4a24 ldr r2, [pc, #144] @ (800b154 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  25249. 800b0c4: 665a str r2, [r3, #100] @ 0x64
  25250. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25251. 800b0c6: 68fb ldr r3, [r7, #12]
  25252. 800b0c8: f003 031f and.w r3, r3, #31
  25253. 800b0cc: 2201 movs r2, #1
  25254. 800b0ce: 409a lsls r2, r3
  25255. 800b0d0: 687b ldr r3, [r7, #4]
  25256. 800b0d2: 669a str r2, [r3, #104] @ 0x68
  25257. }
  25258. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25259. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25260. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25261. }
  25262. }
  25263. 800b0d4: e024 b.n 800b120 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  25264. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  25265. 800b0d6: 687b ldr r3, [r7, #4]
  25266. 800b0d8: 681b ldr r3, [r3, #0]
  25267. 800b0da: b2db uxtb r3, r3
  25268. 800b0dc: 3b10 subs r3, #16
  25269. 800b0de: 4a1e ldr r2, [pc, #120] @ (800b158 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  25270. 800b0e0: fba2 2303 umull r2, r3, r2, r3
  25271. 800b0e4: 091b lsrs r3, r3, #4
  25272. 800b0e6: 60fb str r3, [r7, #12]
  25273. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  25274. 800b0e8: 68bb ldr r3, [r7, #8]
  25275. 800b0ea: 4a1c ldr r2, [pc, #112] @ (800b15c <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  25276. 800b0ec: 4293 cmp r3, r2
  25277. 800b0ee: d806 bhi.n 800b0fe <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25278. 800b0f0: 68bb ldr r3, [r7, #8]
  25279. 800b0f2: 4a1b ldr r2, [pc, #108] @ (800b160 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  25280. 800b0f4: 4293 cmp r3, r2
  25281. 800b0f6: d902 bls.n 800b0fe <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25282. stream_number += 8U;
  25283. 800b0f8: 68fb ldr r3, [r7, #12]
  25284. 800b0fa: 3308 adds r3, #8
  25285. 800b0fc: 60fb str r3, [r7, #12]
  25286. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25287. 800b0fe: 68fa ldr r2, [r7, #12]
  25288. 800b100: 4b18 ldr r3, [pc, #96] @ (800b164 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  25289. 800b102: 4413 add r3, r2
  25290. 800b104: 009b lsls r3, r3, #2
  25291. 800b106: 461a mov r2, r3
  25292. 800b108: 687b ldr r3, [r7, #4]
  25293. 800b10a: 661a str r2, [r3, #96] @ 0x60
  25294. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25295. 800b10c: 687b ldr r3, [r7, #4]
  25296. 800b10e: 4a16 ldr r2, [pc, #88] @ (800b168 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  25297. 800b110: 665a str r2, [r3, #100] @ 0x64
  25298. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25299. 800b112: 68fb ldr r3, [r7, #12]
  25300. 800b114: f003 031f and.w r3, r3, #31
  25301. 800b118: 2201 movs r2, #1
  25302. 800b11a: 409a lsls r2, r3
  25303. 800b11c: 687b ldr r3, [r7, #4]
  25304. 800b11e: 669a str r2, [r3, #104] @ 0x68
  25305. }
  25306. 800b120: bf00 nop
  25307. 800b122: 3714 adds r7, #20
  25308. 800b124: 46bd mov sp, r7
  25309. 800b126: f85d 7b04 ldr.w r7, [sp], #4
  25310. 800b12a: 4770 bx lr
  25311. 800b12c: 58025408 .word 0x58025408
  25312. 800b130: 5802541c .word 0x5802541c
  25313. 800b134: 58025430 .word 0x58025430
  25314. 800b138: 58025444 .word 0x58025444
  25315. 800b13c: 58025458 .word 0x58025458
  25316. 800b140: 5802546c .word 0x5802546c
  25317. 800b144: 58025480 .word 0x58025480
  25318. 800b148: 58025494 .word 0x58025494
  25319. 800b14c: cccccccd .word 0xcccccccd
  25320. 800b150: 16009600 .word 0x16009600
  25321. 800b154: 58025880 .word 0x58025880
  25322. 800b158: aaaaaaab .word 0xaaaaaaab
  25323. 800b15c: 400204b8 .word 0x400204b8
  25324. 800b160: 4002040f .word 0x4002040f
  25325. 800b164: 10008200 .word 0x10008200
  25326. 800b168: 40020880 .word 0x40020880
  25327. 0800b16c <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  25328. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25329. * the configuration information for the specified DMA Stream.
  25330. * @retval HAL status
  25331. */
  25332. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  25333. {
  25334. 800b16c: b480 push {r7}
  25335. 800b16e: b085 sub sp, #20
  25336. 800b170: af00 add r7, sp, #0
  25337. 800b172: 6078 str r0, [r7, #4]
  25338. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  25339. 800b174: 687b ldr r3, [r7, #4]
  25340. 800b176: 685b ldr r3, [r3, #4]
  25341. 800b178: b2db uxtb r3, r3
  25342. 800b17a: 60fb str r3, [r7, #12]
  25343. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  25344. 800b17c: 68fb ldr r3, [r7, #12]
  25345. 800b17e: 2b00 cmp r3, #0
  25346. 800b180: d04a beq.n 800b218 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25347. 800b182: 68fb ldr r3, [r7, #12]
  25348. 800b184: 2b08 cmp r3, #8
  25349. 800b186: d847 bhi.n 800b218 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25350. {
  25351. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25352. 800b188: 687b ldr r3, [r7, #4]
  25353. 800b18a: 681b ldr r3, [r3, #0]
  25354. 800b18c: 4a25 ldr r2, [pc, #148] @ (800b224 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  25355. 800b18e: 4293 cmp r3, r2
  25356. 800b190: d022 beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25357. 800b192: 687b ldr r3, [r7, #4]
  25358. 800b194: 681b ldr r3, [r3, #0]
  25359. 800b196: 4a24 ldr r2, [pc, #144] @ (800b228 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  25360. 800b198: 4293 cmp r3, r2
  25361. 800b19a: d01d beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25362. 800b19c: 687b ldr r3, [r7, #4]
  25363. 800b19e: 681b ldr r3, [r3, #0]
  25364. 800b1a0: 4a22 ldr r2, [pc, #136] @ (800b22c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  25365. 800b1a2: 4293 cmp r3, r2
  25366. 800b1a4: d018 beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25367. 800b1a6: 687b ldr r3, [r7, #4]
  25368. 800b1a8: 681b ldr r3, [r3, #0]
  25369. 800b1aa: 4a21 ldr r2, [pc, #132] @ (800b230 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  25370. 800b1ac: 4293 cmp r3, r2
  25371. 800b1ae: d013 beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25372. 800b1b0: 687b ldr r3, [r7, #4]
  25373. 800b1b2: 681b ldr r3, [r3, #0]
  25374. 800b1b4: 4a1f ldr r2, [pc, #124] @ (800b234 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  25375. 800b1b6: 4293 cmp r3, r2
  25376. 800b1b8: d00e beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25377. 800b1ba: 687b ldr r3, [r7, #4]
  25378. 800b1bc: 681b ldr r3, [r3, #0]
  25379. 800b1be: 4a1e ldr r2, [pc, #120] @ (800b238 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  25380. 800b1c0: 4293 cmp r3, r2
  25381. 800b1c2: d009 beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25382. 800b1c4: 687b ldr r3, [r7, #4]
  25383. 800b1c6: 681b ldr r3, [r3, #0]
  25384. 800b1c8: 4a1c ldr r2, [pc, #112] @ (800b23c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  25385. 800b1ca: 4293 cmp r3, r2
  25386. 800b1cc: d004 beq.n 800b1d8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25387. 800b1ce: 687b ldr r3, [r7, #4]
  25388. 800b1d0: 681b ldr r3, [r3, #0]
  25389. 800b1d2: 4a1b ldr r2, [pc, #108] @ (800b240 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  25390. 800b1d4: 4293 cmp r3, r2
  25391. 800b1d6: d101 bne.n 800b1dc <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  25392. 800b1d8: 2301 movs r3, #1
  25393. 800b1da: e000 b.n 800b1de <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  25394. 800b1dc: 2300 movs r3, #0
  25395. 800b1de: 2b00 cmp r3, #0
  25396. 800b1e0: d00a beq.n 800b1f8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  25397. {
  25398. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  25399. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  25400. 800b1e2: 68fa ldr r2, [r7, #12]
  25401. 800b1e4: 4b17 ldr r3, [pc, #92] @ (800b244 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  25402. 800b1e6: 4413 add r3, r2
  25403. 800b1e8: 009b lsls r3, r3, #2
  25404. 800b1ea: 461a mov r2, r3
  25405. 800b1ec: 687b ldr r3, [r7, #4]
  25406. 800b1ee: 66da str r2, [r3, #108] @ 0x6c
  25407. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  25408. 800b1f0: 687b ldr r3, [r7, #4]
  25409. 800b1f2: 4a15 ldr r2, [pc, #84] @ (800b248 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  25410. 800b1f4: 671a str r2, [r3, #112] @ 0x70
  25411. 800b1f6: e009 b.n 800b20c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  25412. }
  25413. else
  25414. {
  25415. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  25416. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  25417. 800b1f8: 68fa ldr r2, [r7, #12]
  25418. 800b1fa: 4b14 ldr r3, [pc, #80] @ (800b24c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  25419. 800b1fc: 4413 add r3, r2
  25420. 800b1fe: 009b lsls r3, r3, #2
  25421. 800b200: 461a mov r2, r3
  25422. 800b202: 687b ldr r3, [r7, #4]
  25423. 800b204: 66da str r2, [r3, #108] @ 0x6c
  25424. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  25425. 800b206: 687b ldr r3, [r7, #4]
  25426. 800b208: 4a11 ldr r2, [pc, #68] @ (800b250 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  25427. 800b20a: 671a str r2, [r3, #112] @ 0x70
  25428. }
  25429. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  25430. 800b20c: 68fb ldr r3, [r7, #12]
  25431. 800b20e: 3b01 subs r3, #1
  25432. 800b210: 2201 movs r2, #1
  25433. 800b212: 409a lsls r2, r3
  25434. 800b214: 687b ldr r3, [r7, #4]
  25435. 800b216: 675a str r2, [r3, #116] @ 0x74
  25436. }
  25437. }
  25438. 800b218: bf00 nop
  25439. 800b21a: 3714 adds r7, #20
  25440. 800b21c: 46bd mov sp, r7
  25441. 800b21e: f85d 7b04 ldr.w r7, [sp], #4
  25442. 800b222: 4770 bx lr
  25443. 800b224: 58025408 .word 0x58025408
  25444. 800b228: 5802541c .word 0x5802541c
  25445. 800b22c: 58025430 .word 0x58025430
  25446. 800b230: 58025444 .word 0x58025444
  25447. 800b234: 58025458 .word 0x58025458
  25448. 800b238: 5802546c .word 0x5802546c
  25449. 800b23c: 58025480 .word 0x58025480
  25450. 800b240: 58025494 .word 0x58025494
  25451. 800b244: 1600963f .word 0x1600963f
  25452. 800b248: 58025940 .word 0x58025940
  25453. 800b24c: 1000823f .word 0x1000823f
  25454. 800b250: 40020940 .word 0x40020940
  25455. 0800b254 <HAL_GPIO_Init>:
  25456. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  25457. * the configuration information for the specified GPIO peripheral.
  25458. * @retval None
  25459. */
  25460. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  25461. {
  25462. 800b254: b480 push {r7}
  25463. 800b256: b089 sub sp, #36 @ 0x24
  25464. 800b258: af00 add r7, sp, #0
  25465. 800b25a: 6078 str r0, [r7, #4]
  25466. 800b25c: 6039 str r1, [r7, #0]
  25467. uint32_t position = 0x00U;
  25468. 800b25e: 2300 movs r3, #0
  25469. 800b260: 61fb str r3, [r7, #28]
  25470. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  25471. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25472. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  25473. #else
  25474. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  25475. 800b262: 4b89 ldr r3, [pc, #548] @ (800b488 <HAL_GPIO_Init+0x234>)
  25476. 800b264: 617b str r3, [r7, #20]
  25477. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  25478. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  25479. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  25480. /* Configure the port pins */
  25481. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25482. 800b266: e194 b.n 800b592 <HAL_GPIO_Init+0x33e>
  25483. {
  25484. /* Get current io position */
  25485. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  25486. 800b268: 683b ldr r3, [r7, #0]
  25487. 800b26a: 681a ldr r2, [r3, #0]
  25488. 800b26c: 2101 movs r1, #1
  25489. 800b26e: 69fb ldr r3, [r7, #28]
  25490. 800b270: fa01 f303 lsl.w r3, r1, r3
  25491. 800b274: 4013 ands r3, r2
  25492. 800b276: 613b str r3, [r7, #16]
  25493. if (iocurrent != 0x00U)
  25494. 800b278: 693b ldr r3, [r7, #16]
  25495. 800b27a: 2b00 cmp r3, #0
  25496. 800b27c: f000 8186 beq.w 800b58c <HAL_GPIO_Init+0x338>
  25497. {
  25498. /*--------------------- GPIO Mode Configuration ------------------------*/
  25499. /* In case of Output or Alternate function mode selection */
  25500. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  25501. 800b280: 683b ldr r3, [r7, #0]
  25502. 800b282: 685b ldr r3, [r3, #4]
  25503. 800b284: f003 0303 and.w r3, r3, #3
  25504. 800b288: 2b01 cmp r3, #1
  25505. 800b28a: d005 beq.n 800b298 <HAL_GPIO_Init+0x44>
  25506. 800b28c: 683b ldr r3, [r7, #0]
  25507. 800b28e: 685b ldr r3, [r3, #4]
  25508. 800b290: f003 0303 and.w r3, r3, #3
  25509. 800b294: 2b02 cmp r3, #2
  25510. 800b296: d130 bne.n 800b2fa <HAL_GPIO_Init+0xa6>
  25511. {
  25512. /* Check the Speed parameter */
  25513. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  25514. /* Configure the IO Speed */
  25515. temp = GPIOx->OSPEEDR;
  25516. 800b298: 687b ldr r3, [r7, #4]
  25517. 800b29a: 689b ldr r3, [r3, #8]
  25518. 800b29c: 61bb str r3, [r7, #24]
  25519. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  25520. 800b29e: 69fb ldr r3, [r7, #28]
  25521. 800b2a0: 005b lsls r3, r3, #1
  25522. 800b2a2: 2203 movs r2, #3
  25523. 800b2a4: fa02 f303 lsl.w r3, r2, r3
  25524. 800b2a8: 43db mvns r3, r3
  25525. 800b2aa: 69ba ldr r2, [r7, #24]
  25526. 800b2ac: 4013 ands r3, r2
  25527. 800b2ae: 61bb str r3, [r7, #24]
  25528. temp |= (GPIO_Init->Speed << (position * 2U));
  25529. 800b2b0: 683b ldr r3, [r7, #0]
  25530. 800b2b2: 68da ldr r2, [r3, #12]
  25531. 800b2b4: 69fb ldr r3, [r7, #28]
  25532. 800b2b6: 005b lsls r3, r3, #1
  25533. 800b2b8: fa02 f303 lsl.w r3, r2, r3
  25534. 800b2bc: 69ba ldr r2, [r7, #24]
  25535. 800b2be: 4313 orrs r3, r2
  25536. 800b2c0: 61bb str r3, [r7, #24]
  25537. GPIOx->OSPEEDR = temp;
  25538. 800b2c2: 687b ldr r3, [r7, #4]
  25539. 800b2c4: 69ba ldr r2, [r7, #24]
  25540. 800b2c6: 609a str r2, [r3, #8]
  25541. /* Configure the IO Output Type */
  25542. temp = GPIOx->OTYPER;
  25543. 800b2c8: 687b ldr r3, [r7, #4]
  25544. 800b2ca: 685b ldr r3, [r3, #4]
  25545. 800b2cc: 61bb str r3, [r7, #24]
  25546. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  25547. 800b2ce: 2201 movs r2, #1
  25548. 800b2d0: 69fb ldr r3, [r7, #28]
  25549. 800b2d2: fa02 f303 lsl.w r3, r2, r3
  25550. 800b2d6: 43db mvns r3, r3
  25551. 800b2d8: 69ba ldr r2, [r7, #24]
  25552. 800b2da: 4013 ands r3, r2
  25553. 800b2dc: 61bb str r3, [r7, #24]
  25554. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  25555. 800b2de: 683b ldr r3, [r7, #0]
  25556. 800b2e0: 685b ldr r3, [r3, #4]
  25557. 800b2e2: 091b lsrs r3, r3, #4
  25558. 800b2e4: f003 0201 and.w r2, r3, #1
  25559. 800b2e8: 69fb ldr r3, [r7, #28]
  25560. 800b2ea: fa02 f303 lsl.w r3, r2, r3
  25561. 800b2ee: 69ba ldr r2, [r7, #24]
  25562. 800b2f0: 4313 orrs r3, r2
  25563. 800b2f2: 61bb str r3, [r7, #24]
  25564. GPIOx->OTYPER = temp;
  25565. 800b2f4: 687b ldr r3, [r7, #4]
  25566. 800b2f6: 69ba ldr r2, [r7, #24]
  25567. 800b2f8: 605a str r2, [r3, #4]
  25568. }
  25569. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  25570. 800b2fa: 683b ldr r3, [r7, #0]
  25571. 800b2fc: 685b ldr r3, [r3, #4]
  25572. 800b2fe: f003 0303 and.w r3, r3, #3
  25573. 800b302: 2b03 cmp r3, #3
  25574. 800b304: d017 beq.n 800b336 <HAL_GPIO_Init+0xe2>
  25575. {
  25576. /* Check the Pull parameter */
  25577. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  25578. /* Activate the Pull-up or Pull down resistor for the current IO */
  25579. temp = GPIOx->PUPDR;
  25580. 800b306: 687b ldr r3, [r7, #4]
  25581. 800b308: 68db ldr r3, [r3, #12]
  25582. 800b30a: 61bb str r3, [r7, #24]
  25583. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  25584. 800b30c: 69fb ldr r3, [r7, #28]
  25585. 800b30e: 005b lsls r3, r3, #1
  25586. 800b310: 2203 movs r2, #3
  25587. 800b312: fa02 f303 lsl.w r3, r2, r3
  25588. 800b316: 43db mvns r3, r3
  25589. 800b318: 69ba ldr r2, [r7, #24]
  25590. 800b31a: 4013 ands r3, r2
  25591. 800b31c: 61bb str r3, [r7, #24]
  25592. temp |= ((GPIO_Init->Pull) << (position * 2U));
  25593. 800b31e: 683b ldr r3, [r7, #0]
  25594. 800b320: 689a ldr r2, [r3, #8]
  25595. 800b322: 69fb ldr r3, [r7, #28]
  25596. 800b324: 005b lsls r3, r3, #1
  25597. 800b326: fa02 f303 lsl.w r3, r2, r3
  25598. 800b32a: 69ba ldr r2, [r7, #24]
  25599. 800b32c: 4313 orrs r3, r2
  25600. 800b32e: 61bb str r3, [r7, #24]
  25601. GPIOx->PUPDR = temp;
  25602. 800b330: 687b ldr r3, [r7, #4]
  25603. 800b332: 69ba ldr r2, [r7, #24]
  25604. 800b334: 60da str r2, [r3, #12]
  25605. }
  25606. /* In case of Alternate function mode selection */
  25607. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  25608. 800b336: 683b ldr r3, [r7, #0]
  25609. 800b338: 685b ldr r3, [r3, #4]
  25610. 800b33a: f003 0303 and.w r3, r3, #3
  25611. 800b33e: 2b02 cmp r3, #2
  25612. 800b340: d123 bne.n 800b38a <HAL_GPIO_Init+0x136>
  25613. /* Check the Alternate function parameters */
  25614. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  25615. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  25616. /* Configure Alternate function mapped with the current IO */
  25617. temp = GPIOx->AFR[position >> 3U];
  25618. 800b342: 69fb ldr r3, [r7, #28]
  25619. 800b344: 08da lsrs r2, r3, #3
  25620. 800b346: 687b ldr r3, [r7, #4]
  25621. 800b348: 3208 adds r2, #8
  25622. 800b34a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  25623. 800b34e: 61bb str r3, [r7, #24]
  25624. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  25625. 800b350: 69fb ldr r3, [r7, #28]
  25626. 800b352: f003 0307 and.w r3, r3, #7
  25627. 800b356: 009b lsls r3, r3, #2
  25628. 800b358: 220f movs r2, #15
  25629. 800b35a: fa02 f303 lsl.w r3, r2, r3
  25630. 800b35e: 43db mvns r3, r3
  25631. 800b360: 69ba ldr r2, [r7, #24]
  25632. 800b362: 4013 ands r3, r2
  25633. 800b364: 61bb str r3, [r7, #24]
  25634. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  25635. 800b366: 683b ldr r3, [r7, #0]
  25636. 800b368: 691a ldr r2, [r3, #16]
  25637. 800b36a: 69fb ldr r3, [r7, #28]
  25638. 800b36c: f003 0307 and.w r3, r3, #7
  25639. 800b370: 009b lsls r3, r3, #2
  25640. 800b372: fa02 f303 lsl.w r3, r2, r3
  25641. 800b376: 69ba ldr r2, [r7, #24]
  25642. 800b378: 4313 orrs r3, r2
  25643. 800b37a: 61bb str r3, [r7, #24]
  25644. GPIOx->AFR[position >> 3U] = temp;
  25645. 800b37c: 69fb ldr r3, [r7, #28]
  25646. 800b37e: 08da lsrs r2, r3, #3
  25647. 800b380: 687b ldr r3, [r7, #4]
  25648. 800b382: 3208 adds r2, #8
  25649. 800b384: 69b9 ldr r1, [r7, #24]
  25650. 800b386: f843 1022 str.w r1, [r3, r2, lsl #2]
  25651. }
  25652. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  25653. temp = GPIOx->MODER;
  25654. 800b38a: 687b ldr r3, [r7, #4]
  25655. 800b38c: 681b ldr r3, [r3, #0]
  25656. 800b38e: 61bb str r3, [r7, #24]
  25657. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  25658. 800b390: 69fb ldr r3, [r7, #28]
  25659. 800b392: 005b lsls r3, r3, #1
  25660. 800b394: 2203 movs r2, #3
  25661. 800b396: fa02 f303 lsl.w r3, r2, r3
  25662. 800b39a: 43db mvns r3, r3
  25663. 800b39c: 69ba ldr r2, [r7, #24]
  25664. 800b39e: 4013 ands r3, r2
  25665. 800b3a0: 61bb str r3, [r7, #24]
  25666. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  25667. 800b3a2: 683b ldr r3, [r7, #0]
  25668. 800b3a4: 685b ldr r3, [r3, #4]
  25669. 800b3a6: f003 0203 and.w r2, r3, #3
  25670. 800b3aa: 69fb ldr r3, [r7, #28]
  25671. 800b3ac: 005b lsls r3, r3, #1
  25672. 800b3ae: fa02 f303 lsl.w r3, r2, r3
  25673. 800b3b2: 69ba ldr r2, [r7, #24]
  25674. 800b3b4: 4313 orrs r3, r2
  25675. 800b3b6: 61bb str r3, [r7, #24]
  25676. GPIOx->MODER = temp;
  25677. 800b3b8: 687b ldr r3, [r7, #4]
  25678. 800b3ba: 69ba ldr r2, [r7, #24]
  25679. 800b3bc: 601a str r2, [r3, #0]
  25680. /*--------------------- EXTI Mode Configuration ------------------------*/
  25681. /* Configure the External Interrupt or event for the current IO */
  25682. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  25683. 800b3be: 683b ldr r3, [r7, #0]
  25684. 800b3c0: 685b ldr r3, [r3, #4]
  25685. 800b3c2: f403 3340 and.w r3, r3, #196608 @ 0x30000
  25686. 800b3c6: 2b00 cmp r3, #0
  25687. 800b3c8: f000 80e0 beq.w 800b58c <HAL_GPIO_Init+0x338>
  25688. {
  25689. /* Enable SYSCFG Clock */
  25690. __HAL_RCC_SYSCFG_CLK_ENABLE();
  25691. 800b3cc: 4b2f ldr r3, [pc, #188] @ (800b48c <HAL_GPIO_Init+0x238>)
  25692. 800b3ce: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25693. 800b3d2: 4a2e ldr r2, [pc, #184] @ (800b48c <HAL_GPIO_Init+0x238>)
  25694. 800b3d4: f043 0302 orr.w r3, r3, #2
  25695. 800b3d8: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  25696. 800b3dc: 4b2b ldr r3, [pc, #172] @ (800b48c <HAL_GPIO_Init+0x238>)
  25697. 800b3de: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25698. 800b3e2: f003 0302 and.w r3, r3, #2
  25699. 800b3e6: 60fb str r3, [r7, #12]
  25700. 800b3e8: 68fb ldr r3, [r7, #12]
  25701. temp = SYSCFG->EXTICR[position >> 2U];
  25702. 800b3ea: 4a29 ldr r2, [pc, #164] @ (800b490 <HAL_GPIO_Init+0x23c>)
  25703. 800b3ec: 69fb ldr r3, [r7, #28]
  25704. 800b3ee: 089b lsrs r3, r3, #2
  25705. 800b3f0: 3302 adds r3, #2
  25706. 800b3f2: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  25707. 800b3f6: 61bb str r3, [r7, #24]
  25708. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  25709. 800b3f8: 69fb ldr r3, [r7, #28]
  25710. 800b3fa: f003 0303 and.w r3, r3, #3
  25711. 800b3fe: 009b lsls r3, r3, #2
  25712. 800b400: 220f movs r2, #15
  25713. 800b402: fa02 f303 lsl.w r3, r2, r3
  25714. 800b406: 43db mvns r3, r3
  25715. 800b408: 69ba ldr r2, [r7, #24]
  25716. 800b40a: 4013 ands r3, r2
  25717. 800b40c: 61bb str r3, [r7, #24]
  25718. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  25719. 800b40e: 687b ldr r3, [r7, #4]
  25720. 800b410: 4a20 ldr r2, [pc, #128] @ (800b494 <HAL_GPIO_Init+0x240>)
  25721. 800b412: 4293 cmp r3, r2
  25722. 800b414: d052 beq.n 800b4bc <HAL_GPIO_Init+0x268>
  25723. 800b416: 687b ldr r3, [r7, #4]
  25724. 800b418: 4a1f ldr r2, [pc, #124] @ (800b498 <HAL_GPIO_Init+0x244>)
  25725. 800b41a: 4293 cmp r3, r2
  25726. 800b41c: d031 beq.n 800b482 <HAL_GPIO_Init+0x22e>
  25727. 800b41e: 687b ldr r3, [r7, #4]
  25728. 800b420: 4a1e ldr r2, [pc, #120] @ (800b49c <HAL_GPIO_Init+0x248>)
  25729. 800b422: 4293 cmp r3, r2
  25730. 800b424: d02b beq.n 800b47e <HAL_GPIO_Init+0x22a>
  25731. 800b426: 687b ldr r3, [r7, #4]
  25732. 800b428: 4a1d ldr r2, [pc, #116] @ (800b4a0 <HAL_GPIO_Init+0x24c>)
  25733. 800b42a: 4293 cmp r3, r2
  25734. 800b42c: d025 beq.n 800b47a <HAL_GPIO_Init+0x226>
  25735. 800b42e: 687b ldr r3, [r7, #4]
  25736. 800b430: 4a1c ldr r2, [pc, #112] @ (800b4a4 <HAL_GPIO_Init+0x250>)
  25737. 800b432: 4293 cmp r3, r2
  25738. 800b434: d01f beq.n 800b476 <HAL_GPIO_Init+0x222>
  25739. 800b436: 687b ldr r3, [r7, #4]
  25740. 800b438: 4a1b ldr r2, [pc, #108] @ (800b4a8 <HAL_GPIO_Init+0x254>)
  25741. 800b43a: 4293 cmp r3, r2
  25742. 800b43c: d019 beq.n 800b472 <HAL_GPIO_Init+0x21e>
  25743. 800b43e: 687b ldr r3, [r7, #4]
  25744. 800b440: 4a1a ldr r2, [pc, #104] @ (800b4ac <HAL_GPIO_Init+0x258>)
  25745. 800b442: 4293 cmp r3, r2
  25746. 800b444: d013 beq.n 800b46e <HAL_GPIO_Init+0x21a>
  25747. 800b446: 687b ldr r3, [r7, #4]
  25748. 800b448: 4a19 ldr r2, [pc, #100] @ (800b4b0 <HAL_GPIO_Init+0x25c>)
  25749. 800b44a: 4293 cmp r3, r2
  25750. 800b44c: d00d beq.n 800b46a <HAL_GPIO_Init+0x216>
  25751. 800b44e: 687b ldr r3, [r7, #4]
  25752. 800b450: 4a18 ldr r2, [pc, #96] @ (800b4b4 <HAL_GPIO_Init+0x260>)
  25753. 800b452: 4293 cmp r3, r2
  25754. 800b454: d007 beq.n 800b466 <HAL_GPIO_Init+0x212>
  25755. 800b456: 687b ldr r3, [r7, #4]
  25756. 800b458: 4a17 ldr r2, [pc, #92] @ (800b4b8 <HAL_GPIO_Init+0x264>)
  25757. 800b45a: 4293 cmp r3, r2
  25758. 800b45c: d101 bne.n 800b462 <HAL_GPIO_Init+0x20e>
  25759. 800b45e: 2309 movs r3, #9
  25760. 800b460: e02d b.n 800b4be <HAL_GPIO_Init+0x26a>
  25761. 800b462: 230a movs r3, #10
  25762. 800b464: e02b b.n 800b4be <HAL_GPIO_Init+0x26a>
  25763. 800b466: 2308 movs r3, #8
  25764. 800b468: e029 b.n 800b4be <HAL_GPIO_Init+0x26a>
  25765. 800b46a: 2307 movs r3, #7
  25766. 800b46c: e027 b.n 800b4be <HAL_GPIO_Init+0x26a>
  25767. 800b46e: 2306 movs r3, #6
  25768. 800b470: e025 b.n 800b4be <HAL_GPIO_Init+0x26a>
  25769. 800b472: 2305 movs r3, #5
  25770. 800b474: e023 b.n 800b4be <HAL_GPIO_Init+0x26a>
  25771. 800b476: 2304 movs r3, #4
  25772. 800b478: e021 b.n 800b4be <HAL_GPIO_Init+0x26a>
  25773. 800b47a: 2303 movs r3, #3
  25774. 800b47c: e01f b.n 800b4be <HAL_GPIO_Init+0x26a>
  25775. 800b47e: 2302 movs r3, #2
  25776. 800b480: e01d b.n 800b4be <HAL_GPIO_Init+0x26a>
  25777. 800b482: 2301 movs r3, #1
  25778. 800b484: e01b b.n 800b4be <HAL_GPIO_Init+0x26a>
  25779. 800b486: bf00 nop
  25780. 800b488: 58000080 .word 0x58000080
  25781. 800b48c: 58024400 .word 0x58024400
  25782. 800b490: 58000400 .word 0x58000400
  25783. 800b494: 58020000 .word 0x58020000
  25784. 800b498: 58020400 .word 0x58020400
  25785. 800b49c: 58020800 .word 0x58020800
  25786. 800b4a0: 58020c00 .word 0x58020c00
  25787. 800b4a4: 58021000 .word 0x58021000
  25788. 800b4a8: 58021400 .word 0x58021400
  25789. 800b4ac: 58021800 .word 0x58021800
  25790. 800b4b0: 58021c00 .word 0x58021c00
  25791. 800b4b4: 58022000 .word 0x58022000
  25792. 800b4b8: 58022400 .word 0x58022400
  25793. 800b4bc: 2300 movs r3, #0
  25794. 800b4be: 69fa ldr r2, [r7, #28]
  25795. 800b4c0: f002 0203 and.w r2, r2, #3
  25796. 800b4c4: 0092 lsls r2, r2, #2
  25797. 800b4c6: 4093 lsls r3, r2
  25798. 800b4c8: 69ba ldr r2, [r7, #24]
  25799. 800b4ca: 4313 orrs r3, r2
  25800. 800b4cc: 61bb str r3, [r7, #24]
  25801. SYSCFG->EXTICR[position >> 2U] = temp;
  25802. 800b4ce: 4938 ldr r1, [pc, #224] @ (800b5b0 <HAL_GPIO_Init+0x35c>)
  25803. 800b4d0: 69fb ldr r3, [r7, #28]
  25804. 800b4d2: 089b lsrs r3, r3, #2
  25805. 800b4d4: 3302 adds r3, #2
  25806. 800b4d6: 69ba ldr r2, [r7, #24]
  25807. 800b4d8: f841 2023 str.w r2, [r1, r3, lsl #2]
  25808. /* Clear Rising Falling edge configuration */
  25809. temp = EXTI->RTSR1;
  25810. 800b4dc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25811. 800b4e0: 681b ldr r3, [r3, #0]
  25812. 800b4e2: 61bb str r3, [r7, #24]
  25813. temp &= ~(iocurrent);
  25814. 800b4e4: 693b ldr r3, [r7, #16]
  25815. 800b4e6: 43db mvns r3, r3
  25816. 800b4e8: 69ba ldr r2, [r7, #24]
  25817. 800b4ea: 4013 ands r3, r2
  25818. 800b4ec: 61bb str r3, [r7, #24]
  25819. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  25820. 800b4ee: 683b ldr r3, [r7, #0]
  25821. 800b4f0: 685b ldr r3, [r3, #4]
  25822. 800b4f2: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  25823. 800b4f6: 2b00 cmp r3, #0
  25824. 800b4f8: d003 beq.n 800b502 <HAL_GPIO_Init+0x2ae>
  25825. {
  25826. temp |= iocurrent;
  25827. 800b4fa: 69ba ldr r2, [r7, #24]
  25828. 800b4fc: 693b ldr r3, [r7, #16]
  25829. 800b4fe: 4313 orrs r3, r2
  25830. 800b500: 61bb str r3, [r7, #24]
  25831. }
  25832. EXTI->RTSR1 = temp;
  25833. 800b502: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25834. 800b506: 69bb ldr r3, [r7, #24]
  25835. 800b508: 6013 str r3, [r2, #0]
  25836. temp = EXTI->FTSR1;
  25837. 800b50a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25838. 800b50e: 685b ldr r3, [r3, #4]
  25839. 800b510: 61bb str r3, [r7, #24]
  25840. temp &= ~(iocurrent);
  25841. 800b512: 693b ldr r3, [r7, #16]
  25842. 800b514: 43db mvns r3, r3
  25843. 800b516: 69ba ldr r2, [r7, #24]
  25844. 800b518: 4013 ands r3, r2
  25845. 800b51a: 61bb str r3, [r7, #24]
  25846. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  25847. 800b51c: 683b ldr r3, [r7, #0]
  25848. 800b51e: 685b ldr r3, [r3, #4]
  25849. 800b520: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  25850. 800b524: 2b00 cmp r3, #0
  25851. 800b526: d003 beq.n 800b530 <HAL_GPIO_Init+0x2dc>
  25852. {
  25853. temp |= iocurrent;
  25854. 800b528: 69ba ldr r2, [r7, #24]
  25855. 800b52a: 693b ldr r3, [r7, #16]
  25856. 800b52c: 4313 orrs r3, r2
  25857. 800b52e: 61bb str r3, [r7, #24]
  25858. }
  25859. EXTI->FTSR1 = temp;
  25860. 800b530: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25861. 800b534: 69bb ldr r3, [r7, #24]
  25862. 800b536: 6053 str r3, [r2, #4]
  25863. temp = EXTI_CurrentCPU->EMR1;
  25864. 800b538: 697b ldr r3, [r7, #20]
  25865. 800b53a: 685b ldr r3, [r3, #4]
  25866. 800b53c: 61bb str r3, [r7, #24]
  25867. temp &= ~(iocurrent);
  25868. 800b53e: 693b ldr r3, [r7, #16]
  25869. 800b540: 43db mvns r3, r3
  25870. 800b542: 69ba ldr r2, [r7, #24]
  25871. 800b544: 4013 ands r3, r2
  25872. 800b546: 61bb str r3, [r7, #24]
  25873. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  25874. 800b548: 683b ldr r3, [r7, #0]
  25875. 800b54a: 685b ldr r3, [r3, #4]
  25876. 800b54c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25877. 800b550: 2b00 cmp r3, #0
  25878. 800b552: d003 beq.n 800b55c <HAL_GPIO_Init+0x308>
  25879. {
  25880. temp |= iocurrent;
  25881. 800b554: 69ba ldr r2, [r7, #24]
  25882. 800b556: 693b ldr r3, [r7, #16]
  25883. 800b558: 4313 orrs r3, r2
  25884. 800b55a: 61bb str r3, [r7, #24]
  25885. }
  25886. EXTI_CurrentCPU->EMR1 = temp;
  25887. 800b55c: 697b ldr r3, [r7, #20]
  25888. 800b55e: 69ba ldr r2, [r7, #24]
  25889. 800b560: 605a str r2, [r3, #4]
  25890. /* Clear EXTI line configuration */
  25891. temp = EXTI_CurrentCPU->IMR1;
  25892. 800b562: 697b ldr r3, [r7, #20]
  25893. 800b564: 681b ldr r3, [r3, #0]
  25894. 800b566: 61bb str r3, [r7, #24]
  25895. temp &= ~(iocurrent);
  25896. 800b568: 693b ldr r3, [r7, #16]
  25897. 800b56a: 43db mvns r3, r3
  25898. 800b56c: 69ba ldr r2, [r7, #24]
  25899. 800b56e: 4013 ands r3, r2
  25900. 800b570: 61bb str r3, [r7, #24]
  25901. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  25902. 800b572: 683b ldr r3, [r7, #0]
  25903. 800b574: 685b ldr r3, [r3, #4]
  25904. 800b576: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25905. 800b57a: 2b00 cmp r3, #0
  25906. 800b57c: d003 beq.n 800b586 <HAL_GPIO_Init+0x332>
  25907. {
  25908. temp |= iocurrent;
  25909. 800b57e: 69ba ldr r2, [r7, #24]
  25910. 800b580: 693b ldr r3, [r7, #16]
  25911. 800b582: 4313 orrs r3, r2
  25912. 800b584: 61bb str r3, [r7, #24]
  25913. }
  25914. EXTI_CurrentCPU->IMR1 = temp;
  25915. 800b586: 697b ldr r3, [r7, #20]
  25916. 800b588: 69ba ldr r2, [r7, #24]
  25917. 800b58a: 601a str r2, [r3, #0]
  25918. }
  25919. }
  25920. position++;
  25921. 800b58c: 69fb ldr r3, [r7, #28]
  25922. 800b58e: 3301 adds r3, #1
  25923. 800b590: 61fb str r3, [r7, #28]
  25924. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25925. 800b592: 683b ldr r3, [r7, #0]
  25926. 800b594: 681a ldr r2, [r3, #0]
  25927. 800b596: 69fb ldr r3, [r7, #28]
  25928. 800b598: fa22 f303 lsr.w r3, r2, r3
  25929. 800b59c: 2b00 cmp r3, #0
  25930. 800b59e: f47f ae63 bne.w 800b268 <HAL_GPIO_Init+0x14>
  25931. }
  25932. }
  25933. 800b5a2: bf00 nop
  25934. 800b5a4: bf00 nop
  25935. 800b5a6: 3724 adds r7, #36 @ 0x24
  25936. 800b5a8: 46bd mov sp, r7
  25937. 800b5aa: f85d 7b04 ldr.w r7, [sp], #4
  25938. 800b5ae: 4770 bx lr
  25939. 800b5b0: 58000400 .word 0x58000400
  25940. 0800b5b4 <HAL_GPIO_ReadPin>:
  25941. * @param GPIO_Pin: specifies the port bit to read.
  25942. * This parameter can be GPIO_PIN_x where x can be (0..15).
  25943. * @retval The input port pin value.
  25944. */
  25945. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25946. {
  25947. 800b5b4: b480 push {r7}
  25948. 800b5b6: b085 sub sp, #20
  25949. 800b5b8: af00 add r7, sp, #0
  25950. 800b5ba: 6078 str r0, [r7, #4]
  25951. 800b5bc: 460b mov r3, r1
  25952. 800b5be: 807b strh r3, [r7, #2]
  25953. GPIO_PinState bitstatus;
  25954. /* Check the parameters */
  25955. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25956. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  25957. 800b5c0: 687b ldr r3, [r7, #4]
  25958. 800b5c2: 691a ldr r2, [r3, #16]
  25959. 800b5c4: 887b ldrh r3, [r7, #2]
  25960. 800b5c6: 4013 ands r3, r2
  25961. 800b5c8: 2b00 cmp r3, #0
  25962. 800b5ca: d002 beq.n 800b5d2 <HAL_GPIO_ReadPin+0x1e>
  25963. {
  25964. bitstatus = GPIO_PIN_SET;
  25965. 800b5cc: 2301 movs r3, #1
  25966. 800b5ce: 73fb strb r3, [r7, #15]
  25967. 800b5d0: e001 b.n 800b5d6 <HAL_GPIO_ReadPin+0x22>
  25968. }
  25969. else
  25970. {
  25971. bitstatus = GPIO_PIN_RESET;
  25972. 800b5d2: 2300 movs r3, #0
  25973. 800b5d4: 73fb strb r3, [r7, #15]
  25974. }
  25975. return bitstatus;
  25976. 800b5d6: 7bfb ldrb r3, [r7, #15]
  25977. }
  25978. 800b5d8: 4618 mov r0, r3
  25979. 800b5da: 3714 adds r7, #20
  25980. 800b5dc: 46bd mov sp, r7
  25981. 800b5de: f85d 7b04 ldr.w r7, [sp], #4
  25982. 800b5e2: 4770 bx lr
  25983. 0800b5e4 <HAL_GPIO_WritePin>:
  25984. * @arg GPIO_PIN_RESET: to clear the port pin
  25985. * @arg GPIO_PIN_SET: to set the port pin
  25986. * @retval None
  25987. */
  25988. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  25989. {
  25990. 800b5e4: b480 push {r7}
  25991. 800b5e6: b083 sub sp, #12
  25992. 800b5e8: af00 add r7, sp, #0
  25993. 800b5ea: 6078 str r0, [r7, #4]
  25994. 800b5ec: 460b mov r3, r1
  25995. 800b5ee: 807b strh r3, [r7, #2]
  25996. 800b5f0: 4613 mov r3, r2
  25997. 800b5f2: 707b strb r3, [r7, #1]
  25998. /* Check the parameters */
  25999. assert_param(IS_GPIO_PIN(GPIO_Pin));
  26000. assert_param(IS_GPIO_PIN_ACTION(PinState));
  26001. if (PinState != GPIO_PIN_RESET)
  26002. 800b5f4: 787b ldrb r3, [r7, #1]
  26003. 800b5f6: 2b00 cmp r3, #0
  26004. 800b5f8: d003 beq.n 800b602 <HAL_GPIO_WritePin+0x1e>
  26005. {
  26006. GPIOx->BSRR = GPIO_Pin;
  26007. 800b5fa: 887a ldrh r2, [r7, #2]
  26008. 800b5fc: 687b ldr r3, [r7, #4]
  26009. 800b5fe: 619a str r2, [r3, #24]
  26010. }
  26011. else
  26012. {
  26013. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  26014. }
  26015. }
  26016. 800b600: e003 b.n 800b60a <HAL_GPIO_WritePin+0x26>
  26017. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  26018. 800b602: 887b ldrh r3, [r7, #2]
  26019. 800b604: 041a lsls r2, r3, #16
  26020. 800b606: 687b ldr r3, [r7, #4]
  26021. 800b608: 619a str r2, [r3, #24]
  26022. }
  26023. 800b60a: bf00 nop
  26024. 800b60c: 370c adds r7, #12
  26025. 800b60e: 46bd mov sp, r7
  26026. 800b610: f85d 7b04 ldr.w r7, [sp], #4
  26027. 800b614: 4770 bx lr
  26028. 0800b616 <HAL_GPIO_TogglePin>:
  26029. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  26030. * @param GPIO_Pin: Specifies the pins to be toggled.
  26031. * @retval None
  26032. */
  26033. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  26034. {
  26035. 800b616: b480 push {r7}
  26036. 800b618: b085 sub sp, #20
  26037. 800b61a: af00 add r7, sp, #0
  26038. 800b61c: 6078 str r0, [r7, #4]
  26039. 800b61e: 460b mov r3, r1
  26040. 800b620: 807b strh r3, [r7, #2]
  26041. /* Check the parameters */
  26042. assert_param(IS_GPIO_PIN(GPIO_Pin));
  26043. /* get current Output Data Register value */
  26044. odr = GPIOx->ODR;
  26045. 800b622: 687b ldr r3, [r7, #4]
  26046. 800b624: 695b ldr r3, [r3, #20]
  26047. 800b626: 60fb str r3, [r7, #12]
  26048. /* Set selected pins that were at low level, and reset ones that were high */
  26049. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  26050. 800b628: 887a ldrh r2, [r7, #2]
  26051. 800b62a: 68fb ldr r3, [r7, #12]
  26052. 800b62c: 4013 ands r3, r2
  26053. 800b62e: 041a lsls r2, r3, #16
  26054. 800b630: 68fb ldr r3, [r7, #12]
  26055. 800b632: 43d9 mvns r1, r3
  26056. 800b634: 887b ldrh r3, [r7, #2]
  26057. 800b636: 400b ands r3, r1
  26058. 800b638: 431a orrs r2, r3
  26059. 800b63a: 687b ldr r3, [r7, #4]
  26060. 800b63c: 619a str r2, [r3, #24]
  26061. }
  26062. 800b63e: bf00 nop
  26063. 800b640: 3714 adds r7, #20
  26064. 800b642: 46bd mov sp, r7
  26065. 800b644: f85d 7b04 ldr.w r7, [sp], #4
  26066. 800b648: 4770 bx lr
  26067. 0800b64a <HAL_GPIO_EXTI_IRQHandler>:
  26068. * @brief Handle EXTI interrupt request.
  26069. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  26070. * @retval None
  26071. */
  26072. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  26073. {
  26074. 800b64a: b580 push {r7, lr}
  26075. 800b64c: b082 sub sp, #8
  26076. 800b64e: af00 add r7, sp, #0
  26077. 800b650: 4603 mov r3, r0
  26078. 800b652: 80fb strh r3, [r7, #6]
  26079. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  26080. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26081. }
  26082. #else
  26083. /* EXTI line interrupt detected */
  26084. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  26085. 800b654: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26086. 800b658: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  26087. 800b65c: 88fb ldrh r3, [r7, #6]
  26088. 800b65e: 4013 ands r3, r2
  26089. 800b660: 2b00 cmp r3, #0
  26090. 800b662: d008 beq.n 800b676 <HAL_GPIO_EXTI_IRQHandler+0x2c>
  26091. {
  26092. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  26093. 800b664: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26094. 800b668: 88fb ldrh r3, [r7, #6]
  26095. 800b66a: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  26096. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26097. 800b66e: 88fb ldrh r3, [r7, #6]
  26098. 800b670: 4618 mov r0, r3
  26099. 800b672: f7f4 ffcf bl 8000614 <HAL_GPIO_EXTI_Callback>
  26100. }
  26101. #endif
  26102. }
  26103. 800b676: bf00 nop
  26104. 800b678: 3708 adds r7, #8
  26105. 800b67a: 46bd mov sp, r7
  26106. 800b67c: bd80 pop {r7, pc}
  26107. 0800b67e <HAL_IWDG_Init>:
  26108. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26109. * the configuration information for the specified IWDG module.
  26110. * @retval HAL status
  26111. */
  26112. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  26113. {
  26114. 800b67e: b580 push {r7, lr}
  26115. 800b680: b084 sub sp, #16
  26116. 800b682: af00 add r7, sp, #0
  26117. 800b684: 6078 str r0, [r7, #4]
  26118. uint32_t tickstart;
  26119. /* Check the IWDG handle allocation */
  26120. if (hiwdg == NULL)
  26121. 800b686: 687b ldr r3, [r7, #4]
  26122. 800b688: 2b00 cmp r3, #0
  26123. 800b68a: d101 bne.n 800b690 <HAL_IWDG_Init+0x12>
  26124. {
  26125. return HAL_ERROR;
  26126. 800b68c: 2301 movs r3, #1
  26127. 800b68e: e041 b.n 800b714 <HAL_IWDG_Init+0x96>
  26128. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  26129. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  26130. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  26131. /* Enable IWDG. LSI is turned on automatically */
  26132. __HAL_IWDG_START(hiwdg);
  26133. 800b690: 687b ldr r3, [r7, #4]
  26134. 800b692: 681b ldr r3, [r3, #0]
  26135. 800b694: f64c 42cc movw r2, #52428 @ 0xcccc
  26136. 800b698: 601a str r2, [r3, #0]
  26137. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  26138. 0x5555 in KR */
  26139. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  26140. 800b69a: 687b ldr r3, [r7, #4]
  26141. 800b69c: 681b ldr r3, [r3, #0]
  26142. 800b69e: f245 5255 movw r2, #21845 @ 0x5555
  26143. 800b6a2: 601a str r2, [r3, #0]
  26144. /* Write to IWDG registers the Prescaler & Reload values to work with */
  26145. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  26146. 800b6a4: 687b ldr r3, [r7, #4]
  26147. 800b6a6: 681b ldr r3, [r3, #0]
  26148. 800b6a8: 687a ldr r2, [r7, #4]
  26149. 800b6aa: 6852 ldr r2, [r2, #4]
  26150. 800b6ac: 605a str r2, [r3, #4]
  26151. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  26152. 800b6ae: 687b ldr r3, [r7, #4]
  26153. 800b6b0: 681b ldr r3, [r3, #0]
  26154. 800b6b2: 687a ldr r2, [r7, #4]
  26155. 800b6b4: 6892 ldr r2, [r2, #8]
  26156. 800b6b6: 609a str r2, [r3, #8]
  26157. /* Check pending flag, if previous update not done, return timeout */
  26158. tickstart = HAL_GetTick();
  26159. 800b6b8: f7fa fbf4 bl 8005ea4 <HAL_GetTick>
  26160. 800b6bc: 60f8 str r0, [r7, #12]
  26161. /* Wait for register to be updated */
  26162. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26163. 800b6be: e00f b.n 800b6e0 <HAL_IWDG_Init+0x62>
  26164. {
  26165. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  26166. 800b6c0: f7fa fbf0 bl 8005ea4 <HAL_GetTick>
  26167. 800b6c4: 4602 mov r2, r0
  26168. 800b6c6: 68fb ldr r3, [r7, #12]
  26169. 800b6c8: 1ad3 subs r3, r2, r3
  26170. 800b6ca: 2b31 cmp r3, #49 @ 0x31
  26171. 800b6cc: d908 bls.n 800b6e0 <HAL_IWDG_Init+0x62>
  26172. {
  26173. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26174. 800b6ce: 687b ldr r3, [r7, #4]
  26175. 800b6d0: 681b ldr r3, [r3, #0]
  26176. 800b6d2: 68db ldr r3, [r3, #12]
  26177. 800b6d4: f003 0307 and.w r3, r3, #7
  26178. 800b6d8: 2b00 cmp r3, #0
  26179. 800b6da: d001 beq.n 800b6e0 <HAL_IWDG_Init+0x62>
  26180. {
  26181. return HAL_TIMEOUT;
  26182. 800b6dc: 2303 movs r3, #3
  26183. 800b6de: e019 b.n 800b714 <HAL_IWDG_Init+0x96>
  26184. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26185. 800b6e0: 687b ldr r3, [r7, #4]
  26186. 800b6e2: 681b ldr r3, [r3, #0]
  26187. 800b6e4: 68db ldr r3, [r3, #12]
  26188. 800b6e6: f003 0307 and.w r3, r3, #7
  26189. 800b6ea: 2b00 cmp r3, #0
  26190. 800b6ec: d1e8 bne.n 800b6c0 <HAL_IWDG_Init+0x42>
  26191. }
  26192. }
  26193. /* If window parameter is different than current value, modify window
  26194. register */
  26195. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  26196. 800b6ee: 687b ldr r3, [r7, #4]
  26197. 800b6f0: 681b ldr r3, [r3, #0]
  26198. 800b6f2: 691a ldr r2, [r3, #16]
  26199. 800b6f4: 687b ldr r3, [r7, #4]
  26200. 800b6f6: 68db ldr r3, [r3, #12]
  26201. 800b6f8: 429a cmp r2, r3
  26202. 800b6fa: d005 beq.n 800b708 <HAL_IWDG_Init+0x8a>
  26203. {
  26204. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  26205. even if window feature is disabled, Watchdog will be reloaded by writing
  26206. windows register */
  26207. hiwdg->Instance->WINR = hiwdg->Init.Window;
  26208. 800b6fc: 687b ldr r3, [r7, #4]
  26209. 800b6fe: 681b ldr r3, [r3, #0]
  26210. 800b700: 687a ldr r2, [r7, #4]
  26211. 800b702: 68d2 ldr r2, [r2, #12]
  26212. 800b704: 611a str r2, [r3, #16]
  26213. 800b706: e004 b.n 800b712 <HAL_IWDG_Init+0x94>
  26214. }
  26215. else
  26216. {
  26217. /* Reload IWDG counter with value defined in the reload register */
  26218. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26219. 800b708: 687b ldr r3, [r7, #4]
  26220. 800b70a: 681b ldr r3, [r3, #0]
  26221. 800b70c: f64a 22aa movw r2, #43690 @ 0xaaaa
  26222. 800b710: 601a str r2, [r3, #0]
  26223. }
  26224. /* Return function status */
  26225. return HAL_OK;
  26226. 800b712: 2300 movs r3, #0
  26227. }
  26228. 800b714: 4618 mov r0, r3
  26229. 800b716: 3710 adds r7, #16
  26230. 800b718: 46bd mov sp, r7
  26231. 800b71a: bd80 pop {r7, pc}
  26232. 0800b71c <HAL_IWDG_Refresh>:
  26233. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26234. * the configuration information for the specified IWDG module.
  26235. * @retval HAL status
  26236. */
  26237. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  26238. {
  26239. 800b71c: b480 push {r7}
  26240. 800b71e: b083 sub sp, #12
  26241. 800b720: af00 add r7, sp, #0
  26242. 800b722: 6078 str r0, [r7, #4]
  26243. /* Reload IWDG counter with value defined in the reload register */
  26244. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26245. 800b724: 687b ldr r3, [r7, #4]
  26246. 800b726: 681b ldr r3, [r3, #0]
  26247. 800b728: f64a 22aa movw r2, #43690 @ 0xaaaa
  26248. 800b72c: 601a str r2, [r3, #0]
  26249. /* Return function status */
  26250. return HAL_OK;
  26251. 800b72e: 2300 movs r3, #0
  26252. }
  26253. 800b730: 4618 mov r0, r3
  26254. 800b732: 370c adds r7, #12
  26255. 800b734: 46bd mov sp, r7
  26256. 800b736: f85d 7b04 ldr.w r7, [sp], #4
  26257. 800b73a: 4770 bx lr
  26258. 0800b73c <HAL_PWR_ConfigPVD>:
  26259. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26260. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  26261. * @retval None.
  26262. */
  26263. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  26264. {
  26265. 800b73c: b480 push {r7}
  26266. 800b73e: b083 sub sp, #12
  26267. 800b740: af00 add r7, sp, #0
  26268. 800b742: 6078 str r0, [r7, #4]
  26269. /* Check the PVD configuration parameter */
  26270. if (sConfigPVD == NULL)
  26271. 800b744: 687b ldr r3, [r7, #4]
  26272. 800b746: 2b00 cmp r3, #0
  26273. 800b748: d069 beq.n 800b81e <HAL_PWR_ConfigPVD+0xe2>
  26274. /* Check the parameters */
  26275. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  26276. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  26277. /* Set PLS[7:5] bits according to PVDLevel value */
  26278. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  26279. 800b74a: 4b38 ldr r3, [pc, #224] @ (800b82c <HAL_PWR_ConfigPVD+0xf0>)
  26280. 800b74c: 681b ldr r3, [r3, #0]
  26281. 800b74e: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  26282. 800b752: 687b ldr r3, [r7, #4]
  26283. 800b754: 681b ldr r3, [r3, #0]
  26284. 800b756: 4935 ldr r1, [pc, #212] @ (800b82c <HAL_PWR_ConfigPVD+0xf0>)
  26285. 800b758: 4313 orrs r3, r2
  26286. 800b75a: 600b str r3, [r1, #0]
  26287. /* Clear previous config */
  26288. #if !defined (DUAL_CORE)
  26289. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  26290. 800b75c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26291. 800b760: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26292. 800b764: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26293. 800b768: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26294. 800b76c: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26295. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  26296. 800b770: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26297. 800b774: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26298. 800b778: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26299. 800b77c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26300. 800b780: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26301. #endif /* !defined (DUAL_CORE) */
  26302. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  26303. 800b784: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26304. 800b788: 681b ldr r3, [r3, #0]
  26305. 800b78a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26306. 800b78e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26307. 800b792: 6013 str r3, [r2, #0]
  26308. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  26309. 800b794: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26310. 800b798: 685b ldr r3, [r3, #4]
  26311. 800b79a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26312. 800b79e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26313. 800b7a2: 6053 str r3, [r2, #4]
  26314. #if !defined (DUAL_CORE)
  26315. /* Interrupt mode configuration */
  26316. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  26317. 800b7a4: 687b ldr r3, [r7, #4]
  26318. 800b7a6: 685b ldr r3, [r3, #4]
  26319. 800b7a8: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26320. 800b7ac: 2b00 cmp r3, #0
  26321. 800b7ae: d009 beq.n 800b7c4 <HAL_PWR_ConfigPVD+0x88>
  26322. {
  26323. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  26324. 800b7b0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26325. 800b7b4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26326. 800b7b8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26327. 800b7bc: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26328. 800b7c0: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26329. }
  26330. /* Event mode configuration */
  26331. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  26332. 800b7c4: 687b ldr r3, [r7, #4]
  26333. 800b7c6: 685b ldr r3, [r3, #4]
  26334. 800b7c8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26335. 800b7cc: 2b00 cmp r3, #0
  26336. 800b7ce: d009 beq.n 800b7e4 <HAL_PWR_ConfigPVD+0xa8>
  26337. {
  26338. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  26339. 800b7d0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26340. 800b7d4: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26341. 800b7d8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26342. 800b7dc: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26343. 800b7e0: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26344. }
  26345. #endif /* !defined (DUAL_CORE) */
  26346. /* Rising edge configuration */
  26347. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  26348. 800b7e4: 687b ldr r3, [r7, #4]
  26349. 800b7e6: 685b ldr r3, [r3, #4]
  26350. 800b7e8: f003 0301 and.w r3, r3, #1
  26351. 800b7ec: 2b00 cmp r3, #0
  26352. 800b7ee: d007 beq.n 800b800 <HAL_PWR_ConfigPVD+0xc4>
  26353. {
  26354. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  26355. 800b7f0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26356. 800b7f4: 681b ldr r3, [r3, #0]
  26357. 800b7f6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26358. 800b7fa: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26359. 800b7fe: 6013 str r3, [r2, #0]
  26360. }
  26361. /* Falling edge configuration */
  26362. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  26363. 800b800: 687b ldr r3, [r7, #4]
  26364. 800b802: 685b ldr r3, [r3, #4]
  26365. 800b804: f003 0302 and.w r3, r3, #2
  26366. 800b808: 2b00 cmp r3, #0
  26367. 800b80a: d009 beq.n 800b820 <HAL_PWR_ConfigPVD+0xe4>
  26368. {
  26369. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  26370. 800b80c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26371. 800b810: 685b ldr r3, [r3, #4]
  26372. 800b812: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26373. 800b816: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26374. 800b81a: 6053 str r3, [r2, #4]
  26375. 800b81c: e000 b.n 800b820 <HAL_PWR_ConfigPVD+0xe4>
  26376. return;
  26377. 800b81e: bf00 nop
  26378. }
  26379. }
  26380. 800b820: 370c adds r7, #12
  26381. 800b822: 46bd mov sp, r7
  26382. 800b824: f85d 7b04 ldr.w r7, [sp], #4
  26383. 800b828: 4770 bx lr
  26384. 800b82a: bf00 nop
  26385. 800b82c: 58024800 .word 0x58024800
  26386. 0800b830 <HAL_PWR_EnablePVD>:
  26387. /**
  26388. * @brief Enable the Programmable Voltage Detector (PVD).
  26389. * @retval None.
  26390. */
  26391. void HAL_PWR_EnablePVD (void)
  26392. {
  26393. 800b830: b480 push {r7}
  26394. 800b832: af00 add r7, sp, #0
  26395. /* Enable the power voltage detector */
  26396. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  26397. 800b834: 4b05 ldr r3, [pc, #20] @ (800b84c <HAL_PWR_EnablePVD+0x1c>)
  26398. 800b836: 681b ldr r3, [r3, #0]
  26399. 800b838: 4a04 ldr r2, [pc, #16] @ (800b84c <HAL_PWR_EnablePVD+0x1c>)
  26400. 800b83a: f043 0310 orr.w r3, r3, #16
  26401. 800b83e: 6013 str r3, [r2, #0]
  26402. }
  26403. 800b840: bf00 nop
  26404. 800b842: 46bd mov sp, r7
  26405. 800b844: f85d 7b04 ldr.w r7, [sp], #4
  26406. 800b848: 4770 bx lr
  26407. 800b84a: bf00 nop
  26408. 800b84c: 58024800 .word 0x58024800
  26409. 0800b850 <HAL_PWREx_ConfigSupply>:
  26410. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  26411. * regulator.
  26412. * @retval HAL status.
  26413. */
  26414. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  26415. {
  26416. 800b850: b580 push {r7, lr}
  26417. 800b852: b084 sub sp, #16
  26418. 800b854: af00 add r7, sp, #0
  26419. 800b856: 6078 str r0, [r7, #4]
  26420. /* Check the parameters */
  26421. assert_param (IS_PWR_SUPPLY (SupplySource));
  26422. /* Check if supply source was configured */
  26423. #if defined (PWR_FLAG_SCUEN)
  26424. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  26425. 800b858: 4b19 ldr r3, [pc, #100] @ (800b8c0 <HAL_PWREx_ConfigSupply+0x70>)
  26426. 800b85a: 68db ldr r3, [r3, #12]
  26427. 800b85c: f003 0304 and.w r3, r3, #4
  26428. 800b860: 2b04 cmp r3, #4
  26429. 800b862: d00a beq.n 800b87a <HAL_PWREx_ConfigSupply+0x2a>
  26430. #else
  26431. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  26432. #endif /* defined (PWR_FLAG_SCUEN) */
  26433. {
  26434. /* Check supply configuration */
  26435. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  26436. 800b864: 4b16 ldr r3, [pc, #88] @ (800b8c0 <HAL_PWREx_ConfigSupply+0x70>)
  26437. 800b866: 68db ldr r3, [r3, #12]
  26438. 800b868: f003 0307 and.w r3, r3, #7
  26439. 800b86c: 687a ldr r2, [r7, #4]
  26440. 800b86e: 429a cmp r2, r3
  26441. 800b870: d001 beq.n 800b876 <HAL_PWREx_ConfigSupply+0x26>
  26442. {
  26443. /* Supply configuration update locked, can't apply a new supply config */
  26444. return HAL_ERROR;
  26445. 800b872: 2301 movs r3, #1
  26446. 800b874: e01f b.n 800b8b6 <HAL_PWREx_ConfigSupply+0x66>
  26447. else
  26448. {
  26449. /* Supply configuration update locked, but new supply configuration
  26450. matches with old supply configuration : nothing to do
  26451. */
  26452. return HAL_OK;
  26453. 800b876: 2300 movs r3, #0
  26454. 800b878: e01d b.n 800b8b6 <HAL_PWREx_ConfigSupply+0x66>
  26455. }
  26456. }
  26457. /* Set the power supply configuration */
  26458. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  26459. 800b87a: 4b11 ldr r3, [pc, #68] @ (800b8c0 <HAL_PWREx_ConfigSupply+0x70>)
  26460. 800b87c: 68db ldr r3, [r3, #12]
  26461. 800b87e: f023 0207 bic.w r2, r3, #7
  26462. 800b882: 490f ldr r1, [pc, #60] @ (800b8c0 <HAL_PWREx_ConfigSupply+0x70>)
  26463. 800b884: 687b ldr r3, [r7, #4]
  26464. 800b886: 4313 orrs r3, r2
  26465. 800b888: 60cb str r3, [r1, #12]
  26466. /* Get tick */
  26467. tickstart = HAL_GetTick ();
  26468. 800b88a: f7fa fb0b bl 8005ea4 <HAL_GetTick>
  26469. 800b88e: 60f8 str r0, [r7, #12]
  26470. /* Wait till voltage level flag is set */
  26471. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26472. 800b890: e009 b.n 800b8a6 <HAL_PWREx_ConfigSupply+0x56>
  26473. {
  26474. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  26475. 800b892: f7fa fb07 bl 8005ea4 <HAL_GetTick>
  26476. 800b896: 4602 mov r2, r0
  26477. 800b898: 68fb ldr r3, [r7, #12]
  26478. 800b89a: 1ad3 subs r3, r2, r3
  26479. 800b89c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  26480. 800b8a0: d901 bls.n 800b8a6 <HAL_PWREx_ConfigSupply+0x56>
  26481. {
  26482. return HAL_ERROR;
  26483. 800b8a2: 2301 movs r3, #1
  26484. 800b8a4: e007 b.n 800b8b6 <HAL_PWREx_ConfigSupply+0x66>
  26485. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26486. 800b8a6: 4b06 ldr r3, [pc, #24] @ (800b8c0 <HAL_PWREx_ConfigSupply+0x70>)
  26487. 800b8a8: 685b ldr r3, [r3, #4]
  26488. 800b8aa: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26489. 800b8ae: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26490. 800b8b2: d1ee bne.n 800b892 <HAL_PWREx_ConfigSupply+0x42>
  26491. }
  26492. }
  26493. }
  26494. #endif /* defined (SMPS) */
  26495. return HAL_OK;
  26496. 800b8b4: 2300 movs r3, #0
  26497. }
  26498. 800b8b6: 4618 mov r0, r3
  26499. 800b8b8: 3710 adds r7, #16
  26500. 800b8ba: 46bd mov sp, r7
  26501. 800b8bc: bd80 pop {r7, pc}
  26502. 800b8be: bf00 nop
  26503. 800b8c0: 58024800 .word 0x58024800
  26504. 0800b8c4 <HAL_PWREx_ConfigAVD>:
  26505. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26506. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  26507. * @retval None.
  26508. */
  26509. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  26510. {
  26511. 800b8c4: b480 push {r7}
  26512. 800b8c6: b083 sub sp, #12
  26513. 800b8c8: af00 add r7, sp, #0
  26514. 800b8ca: 6078 str r0, [r7, #4]
  26515. /* Check the parameters */
  26516. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  26517. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  26518. /* Set the ALS[18:17] bits according to AVDLevel value */
  26519. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  26520. 800b8cc: 4b37 ldr r3, [pc, #220] @ (800b9ac <HAL_PWREx_ConfigAVD+0xe8>)
  26521. 800b8ce: 681b ldr r3, [r3, #0]
  26522. 800b8d0: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  26523. 800b8d4: 687b ldr r3, [r7, #4]
  26524. 800b8d6: 681b ldr r3, [r3, #0]
  26525. 800b8d8: 4934 ldr r1, [pc, #208] @ (800b9ac <HAL_PWREx_ConfigAVD+0xe8>)
  26526. 800b8da: 4313 orrs r3, r2
  26527. 800b8dc: 600b str r3, [r1, #0]
  26528. /* Clear any previous config */
  26529. #if !defined (DUAL_CORE)
  26530. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  26531. 800b8de: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26532. 800b8e2: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26533. 800b8e6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26534. 800b8ea: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26535. 800b8ee: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26536. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  26537. 800b8f2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26538. 800b8f6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26539. 800b8fa: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26540. 800b8fe: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26541. 800b902: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26542. #endif /* !defined (DUAL_CORE) */
  26543. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  26544. 800b906: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26545. 800b90a: 681b ldr r3, [r3, #0]
  26546. 800b90c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26547. 800b910: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26548. 800b914: 6013 str r3, [r2, #0]
  26549. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  26550. 800b916: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26551. 800b91a: 685b ldr r3, [r3, #4]
  26552. 800b91c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26553. 800b920: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26554. 800b924: 6053 str r3, [r2, #4]
  26555. #if !defined (DUAL_CORE)
  26556. /* Configure the interrupt mode */
  26557. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  26558. 800b926: 687b ldr r3, [r7, #4]
  26559. 800b928: 685b ldr r3, [r3, #4]
  26560. 800b92a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26561. 800b92e: 2b00 cmp r3, #0
  26562. 800b930: d009 beq.n 800b946 <HAL_PWREx_ConfigAVD+0x82>
  26563. {
  26564. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  26565. 800b932: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26566. 800b936: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26567. 800b93a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26568. 800b93e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26569. 800b942: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26570. }
  26571. /* Configure the event mode */
  26572. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  26573. 800b946: 687b ldr r3, [r7, #4]
  26574. 800b948: 685b ldr r3, [r3, #4]
  26575. 800b94a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26576. 800b94e: 2b00 cmp r3, #0
  26577. 800b950: d009 beq.n 800b966 <HAL_PWREx_ConfigAVD+0xa2>
  26578. {
  26579. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  26580. 800b952: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26581. 800b956: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26582. 800b95a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26583. 800b95e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26584. 800b962: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26585. }
  26586. #endif /* !defined (DUAL_CORE) */
  26587. /* Rising edge configuration */
  26588. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  26589. 800b966: 687b ldr r3, [r7, #4]
  26590. 800b968: 685b ldr r3, [r3, #4]
  26591. 800b96a: f003 0301 and.w r3, r3, #1
  26592. 800b96e: 2b00 cmp r3, #0
  26593. 800b970: d007 beq.n 800b982 <HAL_PWREx_ConfigAVD+0xbe>
  26594. {
  26595. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  26596. 800b972: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26597. 800b976: 681b ldr r3, [r3, #0]
  26598. 800b978: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26599. 800b97c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26600. 800b980: 6013 str r3, [r2, #0]
  26601. }
  26602. /* Falling edge configuration */
  26603. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  26604. 800b982: 687b ldr r3, [r7, #4]
  26605. 800b984: 685b ldr r3, [r3, #4]
  26606. 800b986: f003 0302 and.w r3, r3, #2
  26607. 800b98a: 2b00 cmp r3, #0
  26608. 800b98c: d007 beq.n 800b99e <HAL_PWREx_ConfigAVD+0xda>
  26609. {
  26610. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  26611. 800b98e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26612. 800b992: 685b ldr r3, [r3, #4]
  26613. 800b994: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26614. 800b998: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26615. 800b99c: 6053 str r3, [r2, #4]
  26616. }
  26617. }
  26618. 800b99e: bf00 nop
  26619. 800b9a0: 370c adds r7, #12
  26620. 800b9a2: 46bd mov sp, r7
  26621. 800b9a4: f85d 7b04 ldr.w r7, [sp], #4
  26622. 800b9a8: 4770 bx lr
  26623. 800b9aa: bf00 nop
  26624. 800b9ac: 58024800 .word 0x58024800
  26625. 0800b9b0 <HAL_PWREx_EnableAVD>:
  26626. /**
  26627. * @brief Enable the Analog Voltage Detector (AVD).
  26628. * @retval None.
  26629. */
  26630. void HAL_PWREx_EnableAVD (void)
  26631. {
  26632. 800b9b0: b480 push {r7}
  26633. 800b9b2: af00 add r7, sp, #0
  26634. /* Enable the Analog Voltage Detector */
  26635. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  26636. 800b9b4: 4b05 ldr r3, [pc, #20] @ (800b9cc <HAL_PWREx_EnableAVD+0x1c>)
  26637. 800b9b6: 681b ldr r3, [r3, #0]
  26638. 800b9b8: 4a04 ldr r2, [pc, #16] @ (800b9cc <HAL_PWREx_EnableAVD+0x1c>)
  26639. 800b9ba: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26640. 800b9be: 6013 str r3, [r2, #0]
  26641. }
  26642. 800b9c0: bf00 nop
  26643. 800b9c2: 46bd mov sp, r7
  26644. 800b9c4: f85d 7b04 ldr.w r7, [sp], #4
  26645. 800b9c8: 4770 bx lr
  26646. 800b9ca: bf00 nop
  26647. 800b9cc: 58024800 .word 0x58024800
  26648. 0800b9d0 <HAL_RCC_OscConfig>:
  26649. * supported by this function. User should request a transition to HSE Off
  26650. * first and then HSE On or HSE Bypass.
  26651. * @retval HAL status
  26652. */
  26653. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  26654. {
  26655. 800b9d0: b580 push {r7, lr}
  26656. 800b9d2: b08c sub sp, #48 @ 0x30
  26657. 800b9d4: af00 add r7, sp, #0
  26658. 800b9d6: 6078 str r0, [r7, #4]
  26659. uint32_t tickstart;
  26660. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  26661. /* Check Null pointer */
  26662. if (RCC_OscInitStruct == NULL)
  26663. 800b9d8: 687b ldr r3, [r7, #4]
  26664. 800b9da: 2b00 cmp r3, #0
  26665. 800b9dc: d102 bne.n 800b9e4 <HAL_RCC_OscConfig+0x14>
  26666. {
  26667. return HAL_ERROR;
  26668. 800b9de: 2301 movs r3, #1
  26669. 800b9e0: f000 bc48 b.w 800c274 <HAL_RCC_OscConfig+0x8a4>
  26670. }
  26671. /* Check the parameters */
  26672. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  26673. /*------------------------------- HSE Configuration ------------------------*/
  26674. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  26675. 800b9e4: 687b ldr r3, [r7, #4]
  26676. 800b9e6: 681b ldr r3, [r3, #0]
  26677. 800b9e8: f003 0301 and.w r3, r3, #1
  26678. 800b9ec: 2b00 cmp r3, #0
  26679. 800b9ee: f000 8088 beq.w 800bb02 <HAL_RCC_OscConfig+0x132>
  26680. {
  26681. /* Check the parameters */
  26682. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  26683. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26684. 800b9f2: 4b99 ldr r3, [pc, #612] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26685. 800b9f4: 691b ldr r3, [r3, #16]
  26686. 800b9f6: f003 0338 and.w r3, r3, #56 @ 0x38
  26687. 800b9fa: 62fb str r3, [r7, #44] @ 0x2c
  26688. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26689. 800b9fc: 4b96 ldr r3, [pc, #600] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26690. 800b9fe: 6a9b ldr r3, [r3, #40] @ 0x28
  26691. 800ba00: 62bb str r3, [r7, #40] @ 0x28
  26692. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  26693. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  26694. 800ba02: 6afb ldr r3, [r7, #44] @ 0x2c
  26695. 800ba04: 2b10 cmp r3, #16
  26696. 800ba06: d007 beq.n 800ba18 <HAL_RCC_OscConfig+0x48>
  26697. 800ba08: 6afb ldr r3, [r7, #44] @ 0x2c
  26698. 800ba0a: 2b18 cmp r3, #24
  26699. 800ba0c: d111 bne.n 800ba32 <HAL_RCC_OscConfig+0x62>
  26700. 800ba0e: 6abb ldr r3, [r7, #40] @ 0x28
  26701. 800ba10: f003 0303 and.w r3, r3, #3
  26702. 800ba14: 2b02 cmp r3, #2
  26703. 800ba16: d10c bne.n 800ba32 <HAL_RCC_OscConfig+0x62>
  26704. {
  26705. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26706. 800ba18: 4b8f ldr r3, [pc, #572] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26707. 800ba1a: 681b ldr r3, [r3, #0]
  26708. 800ba1c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26709. 800ba20: 2b00 cmp r3, #0
  26710. 800ba22: d06d beq.n 800bb00 <HAL_RCC_OscConfig+0x130>
  26711. 800ba24: 687b ldr r3, [r7, #4]
  26712. 800ba26: 685b ldr r3, [r3, #4]
  26713. 800ba28: 2b00 cmp r3, #0
  26714. 800ba2a: d169 bne.n 800bb00 <HAL_RCC_OscConfig+0x130>
  26715. {
  26716. return HAL_ERROR;
  26717. 800ba2c: 2301 movs r3, #1
  26718. 800ba2e: f000 bc21 b.w 800c274 <HAL_RCC_OscConfig+0x8a4>
  26719. }
  26720. }
  26721. else
  26722. {
  26723. /* Set the new HSE configuration ---------------------------------------*/
  26724. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  26725. 800ba32: 687b ldr r3, [r7, #4]
  26726. 800ba34: 685b ldr r3, [r3, #4]
  26727. 800ba36: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26728. 800ba3a: d106 bne.n 800ba4a <HAL_RCC_OscConfig+0x7a>
  26729. 800ba3c: 4b86 ldr r3, [pc, #536] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26730. 800ba3e: 681b ldr r3, [r3, #0]
  26731. 800ba40: 4a85 ldr r2, [pc, #532] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26732. 800ba42: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26733. 800ba46: 6013 str r3, [r2, #0]
  26734. 800ba48: e02e b.n 800baa8 <HAL_RCC_OscConfig+0xd8>
  26735. 800ba4a: 687b ldr r3, [r7, #4]
  26736. 800ba4c: 685b ldr r3, [r3, #4]
  26737. 800ba4e: 2b00 cmp r3, #0
  26738. 800ba50: d10c bne.n 800ba6c <HAL_RCC_OscConfig+0x9c>
  26739. 800ba52: 4b81 ldr r3, [pc, #516] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26740. 800ba54: 681b ldr r3, [r3, #0]
  26741. 800ba56: 4a80 ldr r2, [pc, #512] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26742. 800ba58: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26743. 800ba5c: 6013 str r3, [r2, #0]
  26744. 800ba5e: 4b7e ldr r3, [pc, #504] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26745. 800ba60: 681b ldr r3, [r3, #0]
  26746. 800ba62: 4a7d ldr r2, [pc, #500] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26747. 800ba64: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26748. 800ba68: 6013 str r3, [r2, #0]
  26749. 800ba6a: e01d b.n 800baa8 <HAL_RCC_OscConfig+0xd8>
  26750. 800ba6c: 687b ldr r3, [r7, #4]
  26751. 800ba6e: 685b ldr r3, [r3, #4]
  26752. 800ba70: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26753. 800ba74: d10c bne.n 800ba90 <HAL_RCC_OscConfig+0xc0>
  26754. 800ba76: 4b78 ldr r3, [pc, #480] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26755. 800ba78: 681b ldr r3, [r3, #0]
  26756. 800ba7a: 4a77 ldr r2, [pc, #476] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26757. 800ba7c: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26758. 800ba80: 6013 str r3, [r2, #0]
  26759. 800ba82: 4b75 ldr r3, [pc, #468] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26760. 800ba84: 681b ldr r3, [r3, #0]
  26761. 800ba86: 4a74 ldr r2, [pc, #464] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26762. 800ba88: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26763. 800ba8c: 6013 str r3, [r2, #0]
  26764. 800ba8e: e00b b.n 800baa8 <HAL_RCC_OscConfig+0xd8>
  26765. 800ba90: 4b71 ldr r3, [pc, #452] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26766. 800ba92: 681b ldr r3, [r3, #0]
  26767. 800ba94: 4a70 ldr r2, [pc, #448] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26768. 800ba96: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26769. 800ba9a: 6013 str r3, [r2, #0]
  26770. 800ba9c: 4b6e ldr r3, [pc, #440] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26771. 800ba9e: 681b ldr r3, [r3, #0]
  26772. 800baa0: 4a6d ldr r2, [pc, #436] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26773. 800baa2: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26774. 800baa6: 6013 str r3, [r2, #0]
  26775. /* Check the HSE State */
  26776. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  26777. 800baa8: 687b ldr r3, [r7, #4]
  26778. 800baaa: 685b ldr r3, [r3, #4]
  26779. 800baac: 2b00 cmp r3, #0
  26780. 800baae: d013 beq.n 800bad8 <HAL_RCC_OscConfig+0x108>
  26781. {
  26782. /* Get Start Tick*/
  26783. tickstart = HAL_GetTick();
  26784. 800bab0: f7fa f9f8 bl 8005ea4 <HAL_GetTick>
  26785. 800bab4: 6278 str r0, [r7, #36] @ 0x24
  26786. /* Wait till HSE is ready */
  26787. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26788. 800bab6: e008 b.n 800baca <HAL_RCC_OscConfig+0xfa>
  26789. {
  26790. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26791. 800bab8: f7fa f9f4 bl 8005ea4 <HAL_GetTick>
  26792. 800babc: 4602 mov r2, r0
  26793. 800babe: 6a7b ldr r3, [r7, #36] @ 0x24
  26794. 800bac0: 1ad3 subs r3, r2, r3
  26795. 800bac2: 2b64 cmp r3, #100 @ 0x64
  26796. 800bac4: d901 bls.n 800baca <HAL_RCC_OscConfig+0xfa>
  26797. {
  26798. return HAL_TIMEOUT;
  26799. 800bac6: 2303 movs r3, #3
  26800. 800bac8: e3d4 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  26801. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26802. 800baca: 4b63 ldr r3, [pc, #396] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26803. 800bacc: 681b ldr r3, [r3, #0]
  26804. 800bace: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26805. 800bad2: 2b00 cmp r3, #0
  26806. 800bad4: d0f0 beq.n 800bab8 <HAL_RCC_OscConfig+0xe8>
  26807. 800bad6: e014 b.n 800bb02 <HAL_RCC_OscConfig+0x132>
  26808. }
  26809. }
  26810. else
  26811. {
  26812. /* Get Start Tick*/
  26813. tickstart = HAL_GetTick();
  26814. 800bad8: f7fa f9e4 bl 8005ea4 <HAL_GetTick>
  26815. 800badc: 6278 str r0, [r7, #36] @ 0x24
  26816. /* Wait till HSE is disabled */
  26817. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26818. 800bade: e008 b.n 800baf2 <HAL_RCC_OscConfig+0x122>
  26819. {
  26820. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26821. 800bae0: f7fa f9e0 bl 8005ea4 <HAL_GetTick>
  26822. 800bae4: 4602 mov r2, r0
  26823. 800bae6: 6a7b ldr r3, [r7, #36] @ 0x24
  26824. 800bae8: 1ad3 subs r3, r2, r3
  26825. 800baea: 2b64 cmp r3, #100 @ 0x64
  26826. 800baec: d901 bls.n 800baf2 <HAL_RCC_OscConfig+0x122>
  26827. {
  26828. return HAL_TIMEOUT;
  26829. 800baee: 2303 movs r3, #3
  26830. 800baf0: e3c0 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  26831. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26832. 800baf2: 4b59 ldr r3, [pc, #356] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26833. 800baf4: 681b ldr r3, [r3, #0]
  26834. 800baf6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26835. 800bafa: 2b00 cmp r3, #0
  26836. 800bafc: d1f0 bne.n 800bae0 <HAL_RCC_OscConfig+0x110>
  26837. 800bafe: e000 b.n 800bb02 <HAL_RCC_OscConfig+0x132>
  26838. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26839. 800bb00: bf00 nop
  26840. }
  26841. }
  26842. }
  26843. }
  26844. /*----------------------------- HSI Configuration --------------------------*/
  26845. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  26846. 800bb02: 687b ldr r3, [r7, #4]
  26847. 800bb04: 681b ldr r3, [r3, #0]
  26848. 800bb06: f003 0302 and.w r3, r3, #2
  26849. 800bb0a: 2b00 cmp r3, #0
  26850. 800bb0c: f000 80ca beq.w 800bca4 <HAL_RCC_OscConfig+0x2d4>
  26851. /* Check the parameters */
  26852. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  26853. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  26854. /* When the HSI is used as system clock it will not be disabled */
  26855. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26856. 800bb10: 4b51 ldr r3, [pc, #324] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26857. 800bb12: 691b ldr r3, [r3, #16]
  26858. 800bb14: f003 0338 and.w r3, r3, #56 @ 0x38
  26859. 800bb18: 623b str r3, [r7, #32]
  26860. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26861. 800bb1a: 4b4f ldr r3, [pc, #316] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26862. 800bb1c: 6a9b ldr r3, [r3, #40] @ 0x28
  26863. 800bb1e: 61fb str r3, [r7, #28]
  26864. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  26865. 800bb20: 6a3b ldr r3, [r7, #32]
  26866. 800bb22: 2b00 cmp r3, #0
  26867. 800bb24: d007 beq.n 800bb36 <HAL_RCC_OscConfig+0x166>
  26868. 800bb26: 6a3b ldr r3, [r7, #32]
  26869. 800bb28: 2b18 cmp r3, #24
  26870. 800bb2a: d156 bne.n 800bbda <HAL_RCC_OscConfig+0x20a>
  26871. 800bb2c: 69fb ldr r3, [r7, #28]
  26872. 800bb2e: f003 0303 and.w r3, r3, #3
  26873. 800bb32: 2b00 cmp r3, #0
  26874. 800bb34: d151 bne.n 800bbda <HAL_RCC_OscConfig+0x20a>
  26875. {
  26876. /* When HSI is used as system clock it will not be disabled */
  26877. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26878. 800bb36: 4b48 ldr r3, [pc, #288] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26879. 800bb38: 681b ldr r3, [r3, #0]
  26880. 800bb3a: f003 0304 and.w r3, r3, #4
  26881. 800bb3e: 2b00 cmp r3, #0
  26882. 800bb40: d005 beq.n 800bb4e <HAL_RCC_OscConfig+0x17e>
  26883. 800bb42: 687b ldr r3, [r7, #4]
  26884. 800bb44: 68db ldr r3, [r3, #12]
  26885. 800bb46: 2b00 cmp r3, #0
  26886. 800bb48: d101 bne.n 800bb4e <HAL_RCC_OscConfig+0x17e>
  26887. {
  26888. return HAL_ERROR;
  26889. 800bb4a: 2301 movs r3, #1
  26890. 800bb4c: e392 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  26891. }
  26892. /* Otherwise, only HSI division and calibration are allowed */
  26893. else
  26894. {
  26895. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  26896. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26897. 800bb4e: 4b42 ldr r3, [pc, #264] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26898. 800bb50: 681b ldr r3, [r3, #0]
  26899. 800bb52: f023 0219 bic.w r2, r3, #25
  26900. 800bb56: 687b ldr r3, [r7, #4]
  26901. 800bb58: 68db ldr r3, [r3, #12]
  26902. 800bb5a: 493f ldr r1, [pc, #252] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26903. 800bb5c: 4313 orrs r3, r2
  26904. 800bb5e: 600b str r3, [r1, #0]
  26905. /* Get Start Tick*/
  26906. tickstart = HAL_GetTick();
  26907. 800bb60: f7fa f9a0 bl 8005ea4 <HAL_GetTick>
  26908. 800bb64: 6278 str r0, [r7, #36] @ 0x24
  26909. /* Wait till HSI is ready */
  26910. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26911. 800bb66: e008 b.n 800bb7a <HAL_RCC_OscConfig+0x1aa>
  26912. {
  26913. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26914. 800bb68: f7fa f99c bl 8005ea4 <HAL_GetTick>
  26915. 800bb6c: 4602 mov r2, r0
  26916. 800bb6e: 6a7b ldr r3, [r7, #36] @ 0x24
  26917. 800bb70: 1ad3 subs r3, r2, r3
  26918. 800bb72: 2b02 cmp r3, #2
  26919. 800bb74: d901 bls.n 800bb7a <HAL_RCC_OscConfig+0x1aa>
  26920. {
  26921. return HAL_TIMEOUT;
  26922. 800bb76: 2303 movs r3, #3
  26923. 800bb78: e37c b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  26924. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26925. 800bb7a: 4b37 ldr r3, [pc, #220] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26926. 800bb7c: 681b ldr r3, [r3, #0]
  26927. 800bb7e: f003 0304 and.w r3, r3, #4
  26928. 800bb82: 2b00 cmp r3, #0
  26929. 800bb84: d0f0 beq.n 800bb68 <HAL_RCC_OscConfig+0x198>
  26930. }
  26931. }
  26932. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26933. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26934. 800bb86: f7fa f999 bl 8005ebc <HAL_GetREVID>
  26935. 800bb8a: 4603 mov r3, r0
  26936. 800bb8c: f241 0203 movw r2, #4099 @ 0x1003
  26937. 800bb90: 4293 cmp r3, r2
  26938. 800bb92: d817 bhi.n 800bbc4 <HAL_RCC_OscConfig+0x1f4>
  26939. 800bb94: 687b ldr r3, [r7, #4]
  26940. 800bb96: 691b ldr r3, [r3, #16]
  26941. 800bb98: 2b40 cmp r3, #64 @ 0x40
  26942. 800bb9a: d108 bne.n 800bbae <HAL_RCC_OscConfig+0x1de>
  26943. 800bb9c: 4b2e ldr r3, [pc, #184] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26944. 800bb9e: 685b ldr r3, [r3, #4]
  26945. 800bba0: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26946. 800bba4: 4a2c ldr r2, [pc, #176] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26947. 800bba6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26948. 800bbaa: 6053 str r3, [r2, #4]
  26949. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26950. 800bbac: e07a b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  26951. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26952. 800bbae: 4b2a ldr r3, [pc, #168] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26953. 800bbb0: 685b ldr r3, [r3, #4]
  26954. 800bbb2: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26955. 800bbb6: 687b ldr r3, [r7, #4]
  26956. 800bbb8: 691b ldr r3, [r3, #16]
  26957. 800bbba: 031b lsls r3, r3, #12
  26958. 800bbbc: 4926 ldr r1, [pc, #152] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26959. 800bbbe: 4313 orrs r3, r2
  26960. 800bbc0: 604b str r3, [r1, #4]
  26961. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26962. 800bbc2: e06f b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  26963. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26964. 800bbc4: 4b24 ldr r3, [pc, #144] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26965. 800bbc6: 685b ldr r3, [r3, #4]
  26966. 800bbc8: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26967. 800bbcc: 687b ldr r3, [r7, #4]
  26968. 800bbce: 691b ldr r3, [r3, #16]
  26969. 800bbd0: 061b lsls r3, r3, #24
  26970. 800bbd2: 4921 ldr r1, [pc, #132] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26971. 800bbd4: 4313 orrs r3, r2
  26972. 800bbd6: 604b str r3, [r1, #4]
  26973. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26974. 800bbd8: e064 b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  26975. }
  26976. else
  26977. {
  26978. /* Check the HSI State */
  26979. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  26980. 800bbda: 687b ldr r3, [r7, #4]
  26981. 800bbdc: 68db ldr r3, [r3, #12]
  26982. 800bbde: 2b00 cmp r3, #0
  26983. 800bbe0: d047 beq.n 800bc72 <HAL_RCC_OscConfig+0x2a2>
  26984. {
  26985. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  26986. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26987. 800bbe2: 4b1d ldr r3, [pc, #116] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26988. 800bbe4: 681b ldr r3, [r3, #0]
  26989. 800bbe6: f023 0219 bic.w r2, r3, #25
  26990. 800bbea: 687b ldr r3, [r7, #4]
  26991. 800bbec: 68db ldr r3, [r3, #12]
  26992. 800bbee: 491a ldr r1, [pc, #104] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  26993. 800bbf0: 4313 orrs r3, r2
  26994. 800bbf2: 600b str r3, [r1, #0]
  26995. /* Get Start Tick*/
  26996. tickstart = HAL_GetTick();
  26997. 800bbf4: f7fa f956 bl 8005ea4 <HAL_GetTick>
  26998. 800bbf8: 6278 str r0, [r7, #36] @ 0x24
  26999. /* Wait till HSI is ready */
  27000. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  27001. 800bbfa: e008 b.n 800bc0e <HAL_RCC_OscConfig+0x23e>
  27002. {
  27003. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  27004. 800bbfc: f7fa f952 bl 8005ea4 <HAL_GetTick>
  27005. 800bc00: 4602 mov r2, r0
  27006. 800bc02: 6a7b ldr r3, [r7, #36] @ 0x24
  27007. 800bc04: 1ad3 subs r3, r2, r3
  27008. 800bc06: 2b02 cmp r3, #2
  27009. 800bc08: d901 bls.n 800bc0e <HAL_RCC_OscConfig+0x23e>
  27010. {
  27011. return HAL_TIMEOUT;
  27012. 800bc0a: 2303 movs r3, #3
  27013. 800bc0c: e332 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27014. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  27015. 800bc0e: 4b12 ldr r3, [pc, #72] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  27016. 800bc10: 681b ldr r3, [r3, #0]
  27017. 800bc12: f003 0304 and.w r3, r3, #4
  27018. 800bc16: 2b00 cmp r3, #0
  27019. 800bc18: d0f0 beq.n 800bbfc <HAL_RCC_OscConfig+0x22c>
  27020. }
  27021. }
  27022. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  27023. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  27024. 800bc1a: f7fa f94f bl 8005ebc <HAL_GetREVID>
  27025. 800bc1e: 4603 mov r3, r0
  27026. 800bc20: f241 0203 movw r2, #4099 @ 0x1003
  27027. 800bc24: 4293 cmp r3, r2
  27028. 800bc26: d819 bhi.n 800bc5c <HAL_RCC_OscConfig+0x28c>
  27029. 800bc28: 687b ldr r3, [r7, #4]
  27030. 800bc2a: 691b ldr r3, [r3, #16]
  27031. 800bc2c: 2b40 cmp r3, #64 @ 0x40
  27032. 800bc2e: d108 bne.n 800bc42 <HAL_RCC_OscConfig+0x272>
  27033. 800bc30: 4b09 ldr r3, [pc, #36] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  27034. 800bc32: 685b ldr r3, [r3, #4]
  27035. 800bc34: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  27036. 800bc38: 4a07 ldr r2, [pc, #28] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  27037. 800bc3a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27038. 800bc3e: 6053 str r3, [r2, #4]
  27039. 800bc40: e030 b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  27040. 800bc42: 4b05 ldr r3, [pc, #20] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  27041. 800bc44: 685b ldr r3, [r3, #4]
  27042. 800bc46: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  27043. 800bc4a: 687b ldr r3, [r7, #4]
  27044. 800bc4c: 691b ldr r3, [r3, #16]
  27045. 800bc4e: 031b lsls r3, r3, #12
  27046. 800bc50: 4901 ldr r1, [pc, #4] @ (800bc58 <HAL_RCC_OscConfig+0x288>)
  27047. 800bc52: 4313 orrs r3, r2
  27048. 800bc54: 604b str r3, [r1, #4]
  27049. 800bc56: e025 b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  27050. 800bc58: 58024400 .word 0x58024400
  27051. 800bc5c: 4b9a ldr r3, [pc, #616] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27052. 800bc5e: 685b ldr r3, [r3, #4]
  27053. 800bc60: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  27054. 800bc64: 687b ldr r3, [r7, #4]
  27055. 800bc66: 691b ldr r3, [r3, #16]
  27056. 800bc68: 061b lsls r3, r3, #24
  27057. 800bc6a: 4997 ldr r1, [pc, #604] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27058. 800bc6c: 4313 orrs r3, r2
  27059. 800bc6e: 604b str r3, [r1, #4]
  27060. 800bc70: e018 b.n 800bca4 <HAL_RCC_OscConfig+0x2d4>
  27061. }
  27062. else
  27063. {
  27064. /* Disable the Internal High Speed oscillator (HSI). */
  27065. __HAL_RCC_HSI_DISABLE();
  27066. 800bc72: 4b95 ldr r3, [pc, #596] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27067. 800bc74: 681b ldr r3, [r3, #0]
  27068. 800bc76: 4a94 ldr r2, [pc, #592] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27069. 800bc78: f023 0301 bic.w r3, r3, #1
  27070. 800bc7c: 6013 str r3, [r2, #0]
  27071. /* Get Start Tick*/
  27072. tickstart = HAL_GetTick();
  27073. 800bc7e: f7fa f911 bl 8005ea4 <HAL_GetTick>
  27074. 800bc82: 6278 str r0, [r7, #36] @ 0x24
  27075. /* Wait till HSI is disabled */
  27076. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27077. 800bc84: e008 b.n 800bc98 <HAL_RCC_OscConfig+0x2c8>
  27078. {
  27079. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  27080. 800bc86: f7fa f90d bl 8005ea4 <HAL_GetTick>
  27081. 800bc8a: 4602 mov r2, r0
  27082. 800bc8c: 6a7b ldr r3, [r7, #36] @ 0x24
  27083. 800bc8e: 1ad3 subs r3, r2, r3
  27084. 800bc90: 2b02 cmp r3, #2
  27085. 800bc92: d901 bls.n 800bc98 <HAL_RCC_OscConfig+0x2c8>
  27086. {
  27087. return HAL_TIMEOUT;
  27088. 800bc94: 2303 movs r3, #3
  27089. 800bc96: e2ed b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27090. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27091. 800bc98: 4b8b ldr r3, [pc, #556] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27092. 800bc9a: 681b ldr r3, [r3, #0]
  27093. 800bc9c: f003 0304 and.w r3, r3, #4
  27094. 800bca0: 2b00 cmp r3, #0
  27095. 800bca2: d1f0 bne.n 800bc86 <HAL_RCC_OscConfig+0x2b6>
  27096. }
  27097. }
  27098. }
  27099. }
  27100. /*----------------------------- CSI Configuration --------------------------*/
  27101. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  27102. 800bca4: 687b ldr r3, [r7, #4]
  27103. 800bca6: 681b ldr r3, [r3, #0]
  27104. 800bca8: f003 0310 and.w r3, r3, #16
  27105. 800bcac: 2b00 cmp r3, #0
  27106. 800bcae: f000 80a9 beq.w 800be04 <HAL_RCC_OscConfig+0x434>
  27107. /* Check the parameters */
  27108. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  27109. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  27110. /* When the CSI is used as system clock it will not disabled */
  27111. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  27112. 800bcb2: 4b85 ldr r3, [pc, #532] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27113. 800bcb4: 691b ldr r3, [r3, #16]
  27114. 800bcb6: f003 0338 and.w r3, r3, #56 @ 0x38
  27115. 800bcba: 61bb str r3, [r7, #24]
  27116. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  27117. 800bcbc: 4b82 ldr r3, [pc, #520] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27118. 800bcbe: 6a9b ldr r3, [r3, #40] @ 0x28
  27119. 800bcc0: 617b str r3, [r7, #20]
  27120. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  27121. 800bcc2: 69bb ldr r3, [r7, #24]
  27122. 800bcc4: 2b08 cmp r3, #8
  27123. 800bcc6: d007 beq.n 800bcd8 <HAL_RCC_OscConfig+0x308>
  27124. 800bcc8: 69bb ldr r3, [r7, #24]
  27125. 800bcca: 2b18 cmp r3, #24
  27126. 800bccc: d13a bne.n 800bd44 <HAL_RCC_OscConfig+0x374>
  27127. 800bcce: 697b ldr r3, [r7, #20]
  27128. 800bcd0: f003 0303 and.w r3, r3, #3
  27129. 800bcd4: 2b01 cmp r3, #1
  27130. 800bcd6: d135 bne.n 800bd44 <HAL_RCC_OscConfig+0x374>
  27131. {
  27132. /* When CSI is used as system clock it will not disabled */
  27133. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27134. 800bcd8: 4b7b ldr r3, [pc, #492] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27135. 800bcda: 681b ldr r3, [r3, #0]
  27136. 800bcdc: f403 7380 and.w r3, r3, #256 @ 0x100
  27137. 800bce0: 2b00 cmp r3, #0
  27138. 800bce2: d005 beq.n 800bcf0 <HAL_RCC_OscConfig+0x320>
  27139. 800bce4: 687b ldr r3, [r7, #4]
  27140. 800bce6: 69db ldr r3, [r3, #28]
  27141. 800bce8: 2b80 cmp r3, #128 @ 0x80
  27142. 800bcea: d001 beq.n 800bcf0 <HAL_RCC_OscConfig+0x320>
  27143. {
  27144. return HAL_ERROR;
  27145. 800bcec: 2301 movs r3, #1
  27146. 800bcee: e2c1 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27147. }
  27148. /* Otherwise, just the calibration is allowed */
  27149. else
  27150. {
  27151. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27152. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27153. 800bcf0: f7fa f8e4 bl 8005ebc <HAL_GetREVID>
  27154. 800bcf4: 4603 mov r3, r0
  27155. 800bcf6: f241 0203 movw r2, #4099 @ 0x1003
  27156. 800bcfa: 4293 cmp r3, r2
  27157. 800bcfc: d817 bhi.n 800bd2e <HAL_RCC_OscConfig+0x35e>
  27158. 800bcfe: 687b ldr r3, [r7, #4]
  27159. 800bd00: 6a1b ldr r3, [r3, #32]
  27160. 800bd02: 2b20 cmp r3, #32
  27161. 800bd04: d108 bne.n 800bd18 <HAL_RCC_OscConfig+0x348>
  27162. 800bd06: 4b70 ldr r3, [pc, #448] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27163. 800bd08: 685b ldr r3, [r3, #4]
  27164. 800bd0a: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27165. 800bd0e: 4a6e ldr r2, [pc, #440] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27166. 800bd10: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27167. 800bd14: 6053 str r3, [r2, #4]
  27168. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27169. 800bd16: e075 b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27170. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27171. 800bd18: 4b6b ldr r3, [pc, #428] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27172. 800bd1a: 685b ldr r3, [r3, #4]
  27173. 800bd1c: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27174. 800bd20: 687b ldr r3, [r7, #4]
  27175. 800bd22: 6a1b ldr r3, [r3, #32]
  27176. 800bd24: 069b lsls r3, r3, #26
  27177. 800bd26: 4968 ldr r1, [pc, #416] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27178. 800bd28: 4313 orrs r3, r2
  27179. 800bd2a: 604b str r3, [r1, #4]
  27180. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27181. 800bd2c: e06a b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27182. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27183. 800bd2e: 4b66 ldr r3, [pc, #408] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27184. 800bd30: 68db ldr r3, [r3, #12]
  27185. 800bd32: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27186. 800bd36: 687b ldr r3, [r7, #4]
  27187. 800bd38: 6a1b ldr r3, [r3, #32]
  27188. 800bd3a: 061b lsls r3, r3, #24
  27189. 800bd3c: 4962 ldr r1, [pc, #392] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27190. 800bd3e: 4313 orrs r3, r2
  27191. 800bd40: 60cb str r3, [r1, #12]
  27192. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27193. 800bd42: e05f b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27194. }
  27195. }
  27196. else
  27197. {
  27198. /* Check the CSI State */
  27199. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  27200. 800bd44: 687b ldr r3, [r7, #4]
  27201. 800bd46: 69db ldr r3, [r3, #28]
  27202. 800bd48: 2b00 cmp r3, #0
  27203. 800bd4a: d042 beq.n 800bdd2 <HAL_RCC_OscConfig+0x402>
  27204. {
  27205. /* Enable the Internal High Speed oscillator (CSI). */
  27206. __HAL_RCC_CSI_ENABLE();
  27207. 800bd4c: 4b5e ldr r3, [pc, #376] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27208. 800bd4e: 681b ldr r3, [r3, #0]
  27209. 800bd50: 4a5d ldr r2, [pc, #372] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27210. 800bd52: f043 0380 orr.w r3, r3, #128 @ 0x80
  27211. 800bd56: 6013 str r3, [r2, #0]
  27212. /* Get Start Tick*/
  27213. tickstart = HAL_GetTick();
  27214. 800bd58: f7fa f8a4 bl 8005ea4 <HAL_GetTick>
  27215. 800bd5c: 6278 str r0, [r7, #36] @ 0x24
  27216. /* Wait till CSI is ready */
  27217. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27218. 800bd5e: e008 b.n 800bd72 <HAL_RCC_OscConfig+0x3a2>
  27219. {
  27220. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27221. 800bd60: f7fa f8a0 bl 8005ea4 <HAL_GetTick>
  27222. 800bd64: 4602 mov r2, r0
  27223. 800bd66: 6a7b ldr r3, [r7, #36] @ 0x24
  27224. 800bd68: 1ad3 subs r3, r2, r3
  27225. 800bd6a: 2b02 cmp r3, #2
  27226. 800bd6c: d901 bls.n 800bd72 <HAL_RCC_OscConfig+0x3a2>
  27227. {
  27228. return HAL_TIMEOUT;
  27229. 800bd6e: 2303 movs r3, #3
  27230. 800bd70: e280 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27231. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27232. 800bd72: 4b55 ldr r3, [pc, #340] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27233. 800bd74: 681b ldr r3, [r3, #0]
  27234. 800bd76: f403 7380 and.w r3, r3, #256 @ 0x100
  27235. 800bd7a: 2b00 cmp r3, #0
  27236. 800bd7c: d0f0 beq.n 800bd60 <HAL_RCC_OscConfig+0x390>
  27237. }
  27238. }
  27239. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27240. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27241. 800bd7e: f7fa f89d bl 8005ebc <HAL_GetREVID>
  27242. 800bd82: 4603 mov r3, r0
  27243. 800bd84: f241 0203 movw r2, #4099 @ 0x1003
  27244. 800bd88: 4293 cmp r3, r2
  27245. 800bd8a: d817 bhi.n 800bdbc <HAL_RCC_OscConfig+0x3ec>
  27246. 800bd8c: 687b ldr r3, [r7, #4]
  27247. 800bd8e: 6a1b ldr r3, [r3, #32]
  27248. 800bd90: 2b20 cmp r3, #32
  27249. 800bd92: d108 bne.n 800bda6 <HAL_RCC_OscConfig+0x3d6>
  27250. 800bd94: 4b4c ldr r3, [pc, #304] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27251. 800bd96: 685b ldr r3, [r3, #4]
  27252. 800bd98: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27253. 800bd9c: 4a4a ldr r2, [pc, #296] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27254. 800bd9e: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27255. 800bda2: 6053 str r3, [r2, #4]
  27256. 800bda4: e02e b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27257. 800bda6: 4b48 ldr r3, [pc, #288] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27258. 800bda8: 685b ldr r3, [r3, #4]
  27259. 800bdaa: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27260. 800bdae: 687b ldr r3, [r7, #4]
  27261. 800bdb0: 6a1b ldr r3, [r3, #32]
  27262. 800bdb2: 069b lsls r3, r3, #26
  27263. 800bdb4: 4944 ldr r1, [pc, #272] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27264. 800bdb6: 4313 orrs r3, r2
  27265. 800bdb8: 604b str r3, [r1, #4]
  27266. 800bdba: e023 b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27267. 800bdbc: 4b42 ldr r3, [pc, #264] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27268. 800bdbe: 68db ldr r3, [r3, #12]
  27269. 800bdc0: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27270. 800bdc4: 687b ldr r3, [r7, #4]
  27271. 800bdc6: 6a1b ldr r3, [r3, #32]
  27272. 800bdc8: 061b lsls r3, r3, #24
  27273. 800bdca: 493f ldr r1, [pc, #252] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27274. 800bdcc: 4313 orrs r3, r2
  27275. 800bdce: 60cb str r3, [r1, #12]
  27276. 800bdd0: e018 b.n 800be04 <HAL_RCC_OscConfig+0x434>
  27277. }
  27278. else
  27279. {
  27280. /* Disable the Internal High Speed oscillator (CSI). */
  27281. __HAL_RCC_CSI_DISABLE();
  27282. 800bdd2: 4b3d ldr r3, [pc, #244] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27283. 800bdd4: 681b ldr r3, [r3, #0]
  27284. 800bdd6: 4a3c ldr r2, [pc, #240] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27285. 800bdd8: f023 0380 bic.w r3, r3, #128 @ 0x80
  27286. 800bddc: 6013 str r3, [r2, #0]
  27287. /* Get Start Tick*/
  27288. tickstart = HAL_GetTick();
  27289. 800bdde: f7fa f861 bl 8005ea4 <HAL_GetTick>
  27290. 800bde2: 6278 str r0, [r7, #36] @ 0x24
  27291. /* Wait till CSI is disabled */
  27292. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27293. 800bde4: e008 b.n 800bdf8 <HAL_RCC_OscConfig+0x428>
  27294. {
  27295. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27296. 800bde6: f7fa f85d bl 8005ea4 <HAL_GetTick>
  27297. 800bdea: 4602 mov r2, r0
  27298. 800bdec: 6a7b ldr r3, [r7, #36] @ 0x24
  27299. 800bdee: 1ad3 subs r3, r2, r3
  27300. 800bdf0: 2b02 cmp r3, #2
  27301. 800bdf2: d901 bls.n 800bdf8 <HAL_RCC_OscConfig+0x428>
  27302. {
  27303. return HAL_TIMEOUT;
  27304. 800bdf4: 2303 movs r3, #3
  27305. 800bdf6: e23d b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27306. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27307. 800bdf8: 4b33 ldr r3, [pc, #204] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27308. 800bdfa: 681b ldr r3, [r3, #0]
  27309. 800bdfc: f403 7380 and.w r3, r3, #256 @ 0x100
  27310. 800be00: 2b00 cmp r3, #0
  27311. 800be02: d1f0 bne.n 800bde6 <HAL_RCC_OscConfig+0x416>
  27312. }
  27313. }
  27314. }
  27315. }
  27316. /*------------------------------ LSI Configuration -------------------------*/
  27317. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  27318. 800be04: 687b ldr r3, [r7, #4]
  27319. 800be06: 681b ldr r3, [r3, #0]
  27320. 800be08: f003 0308 and.w r3, r3, #8
  27321. 800be0c: 2b00 cmp r3, #0
  27322. 800be0e: d036 beq.n 800be7e <HAL_RCC_OscConfig+0x4ae>
  27323. {
  27324. /* Check the parameters */
  27325. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  27326. /* Check the LSI State */
  27327. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  27328. 800be10: 687b ldr r3, [r7, #4]
  27329. 800be12: 695b ldr r3, [r3, #20]
  27330. 800be14: 2b00 cmp r3, #0
  27331. 800be16: d019 beq.n 800be4c <HAL_RCC_OscConfig+0x47c>
  27332. {
  27333. /* Enable the Internal Low Speed oscillator (LSI). */
  27334. __HAL_RCC_LSI_ENABLE();
  27335. 800be18: 4b2b ldr r3, [pc, #172] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27336. 800be1a: 6f5b ldr r3, [r3, #116] @ 0x74
  27337. 800be1c: 4a2a ldr r2, [pc, #168] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27338. 800be1e: f043 0301 orr.w r3, r3, #1
  27339. 800be22: 6753 str r3, [r2, #116] @ 0x74
  27340. /* Get Start Tick*/
  27341. tickstart = HAL_GetTick();
  27342. 800be24: f7fa f83e bl 8005ea4 <HAL_GetTick>
  27343. 800be28: 6278 str r0, [r7, #36] @ 0x24
  27344. /* Wait till LSI is ready */
  27345. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27346. 800be2a: e008 b.n 800be3e <HAL_RCC_OscConfig+0x46e>
  27347. {
  27348. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27349. 800be2c: f7fa f83a bl 8005ea4 <HAL_GetTick>
  27350. 800be30: 4602 mov r2, r0
  27351. 800be32: 6a7b ldr r3, [r7, #36] @ 0x24
  27352. 800be34: 1ad3 subs r3, r2, r3
  27353. 800be36: 2b02 cmp r3, #2
  27354. 800be38: d901 bls.n 800be3e <HAL_RCC_OscConfig+0x46e>
  27355. {
  27356. return HAL_TIMEOUT;
  27357. 800be3a: 2303 movs r3, #3
  27358. 800be3c: e21a b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27359. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27360. 800be3e: 4b22 ldr r3, [pc, #136] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27361. 800be40: 6f5b ldr r3, [r3, #116] @ 0x74
  27362. 800be42: f003 0302 and.w r3, r3, #2
  27363. 800be46: 2b00 cmp r3, #0
  27364. 800be48: d0f0 beq.n 800be2c <HAL_RCC_OscConfig+0x45c>
  27365. 800be4a: e018 b.n 800be7e <HAL_RCC_OscConfig+0x4ae>
  27366. }
  27367. }
  27368. else
  27369. {
  27370. /* Disable the Internal Low Speed oscillator (LSI). */
  27371. __HAL_RCC_LSI_DISABLE();
  27372. 800be4c: 4b1e ldr r3, [pc, #120] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27373. 800be4e: 6f5b ldr r3, [r3, #116] @ 0x74
  27374. 800be50: 4a1d ldr r2, [pc, #116] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27375. 800be52: f023 0301 bic.w r3, r3, #1
  27376. 800be56: 6753 str r3, [r2, #116] @ 0x74
  27377. /* Get Start Tick*/
  27378. tickstart = HAL_GetTick();
  27379. 800be58: f7fa f824 bl 8005ea4 <HAL_GetTick>
  27380. 800be5c: 6278 str r0, [r7, #36] @ 0x24
  27381. /* Wait till LSI is ready */
  27382. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27383. 800be5e: e008 b.n 800be72 <HAL_RCC_OscConfig+0x4a2>
  27384. {
  27385. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27386. 800be60: f7fa f820 bl 8005ea4 <HAL_GetTick>
  27387. 800be64: 4602 mov r2, r0
  27388. 800be66: 6a7b ldr r3, [r7, #36] @ 0x24
  27389. 800be68: 1ad3 subs r3, r2, r3
  27390. 800be6a: 2b02 cmp r3, #2
  27391. 800be6c: d901 bls.n 800be72 <HAL_RCC_OscConfig+0x4a2>
  27392. {
  27393. return HAL_TIMEOUT;
  27394. 800be6e: 2303 movs r3, #3
  27395. 800be70: e200 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27396. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27397. 800be72: 4b15 ldr r3, [pc, #84] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27398. 800be74: 6f5b ldr r3, [r3, #116] @ 0x74
  27399. 800be76: f003 0302 and.w r3, r3, #2
  27400. 800be7a: 2b00 cmp r3, #0
  27401. 800be7c: d1f0 bne.n 800be60 <HAL_RCC_OscConfig+0x490>
  27402. }
  27403. }
  27404. }
  27405. /*------------------------------ HSI48 Configuration -------------------------*/
  27406. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  27407. 800be7e: 687b ldr r3, [r7, #4]
  27408. 800be80: 681b ldr r3, [r3, #0]
  27409. 800be82: f003 0320 and.w r3, r3, #32
  27410. 800be86: 2b00 cmp r3, #0
  27411. 800be88: d039 beq.n 800befe <HAL_RCC_OscConfig+0x52e>
  27412. {
  27413. /* Check the parameters */
  27414. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  27415. /* Check the HSI48 State */
  27416. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  27417. 800be8a: 687b ldr r3, [r7, #4]
  27418. 800be8c: 699b ldr r3, [r3, #24]
  27419. 800be8e: 2b00 cmp r3, #0
  27420. 800be90: d01c beq.n 800becc <HAL_RCC_OscConfig+0x4fc>
  27421. {
  27422. /* Enable the Internal Low Speed oscillator (HSI48). */
  27423. __HAL_RCC_HSI48_ENABLE();
  27424. 800be92: 4b0d ldr r3, [pc, #52] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27425. 800be94: 681b ldr r3, [r3, #0]
  27426. 800be96: 4a0c ldr r2, [pc, #48] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27427. 800be98: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  27428. 800be9c: 6013 str r3, [r2, #0]
  27429. /* Get time-out */
  27430. tickstart = HAL_GetTick();
  27431. 800be9e: f7fa f801 bl 8005ea4 <HAL_GetTick>
  27432. 800bea2: 6278 str r0, [r7, #36] @ 0x24
  27433. /* Wait till HSI48 is ready */
  27434. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27435. 800bea4: e008 b.n 800beb8 <HAL_RCC_OscConfig+0x4e8>
  27436. {
  27437. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27438. 800bea6: f7f9 fffd bl 8005ea4 <HAL_GetTick>
  27439. 800beaa: 4602 mov r2, r0
  27440. 800beac: 6a7b ldr r3, [r7, #36] @ 0x24
  27441. 800beae: 1ad3 subs r3, r2, r3
  27442. 800beb0: 2b02 cmp r3, #2
  27443. 800beb2: d901 bls.n 800beb8 <HAL_RCC_OscConfig+0x4e8>
  27444. {
  27445. return HAL_TIMEOUT;
  27446. 800beb4: 2303 movs r3, #3
  27447. 800beb6: e1dd b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27448. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27449. 800beb8: 4b03 ldr r3, [pc, #12] @ (800bec8 <HAL_RCC_OscConfig+0x4f8>)
  27450. 800beba: 681b ldr r3, [r3, #0]
  27451. 800bebc: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27452. 800bec0: 2b00 cmp r3, #0
  27453. 800bec2: d0f0 beq.n 800bea6 <HAL_RCC_OscConfig+0x4d6>
  27454. 800bec4: e01b b.n 800befe <HAL_RCC_OscConfig+0x52e>
  27455. 800bec6: bf00 nop
  27456. 800bec8: 58024400 .word 0x58024400
  27457. }
  27458. }
  27459. else
  27460. {
  27461. /* Disable the Internal Low Speed oscillator (HSI48). */
  27462. __HAL_RCC_HSI48_DISABLE();
  27463. 800becc: 4b9b ldr r3, [pc, #620] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27464. 800bece: 681b ldr r3, [r3, #0]
  27465. 800bed0: 4a9a ldr r2, [pc, #616] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27466. 800bed2: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  27467. 800bed6: 6013 str r3, [r2, #0]
  27468. /* Get time-out */
  27469. tickstart = HAL_GetTick();
  27470. 800bed8: f7f9 ffe4 bl 8005ea4 <HAL_GetTick>
  27471. 800bedc: 6278 str r0, [r7, #36] @ 0x24
  27472. /* Wait till HSI48 is ready */
  27473. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27474. 800bede: e008 b.n 800bef2 <HAL_RCC_OscConfig+0x522>
  27475. {
  27476. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27477. 800bee0: f7f9 ffe0 bl 8005ea4 <HAL_GetTick>
  27478. 800bee4: 4602 mov r2, r0
  27479. 800bee6: 6a7b ldr r3, [r7, #36] @ 0x24
  27480. 800bee8: 1ad3 subs r3, r2, r3
  27481. 800beea: 2b02 cmp r3, #2
  27482. 800beec: d901 bls.n 800bef2 <HAL_RCC_OscConfig+0x522>
  27483. {
  27484. return HAL_TIMEOUT;
  27485. 800beee: 2303 movs r3, #3
  27486. 800bef0: e1c0 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27487. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27488. 800bef2: 4b92 ldr r3, [pc, #584] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27489. 800bef4: 681b ldr r3, [r3, #0]
  27490. 800bef6: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27491. 800befa: 2b00 cmp r3, #0
  27492. 800befc: d1f0 bne.n 800bee0 <HAL_RCC_OscConfig+0x510>
  27493. }
  27494. }
  27495. }
  27496. }
  27497. /*------------------------------ LSE Configuration -------------------------*/
  27498. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  27499. 800befe: 687b ldr r3, [r7, #4]
  27500. 800bf00: 681b ldr r3, [r3, #0]
  27501. 800bf02: f003 0304 and.w r3, r3, #4
  27502. 800bf06: 2b00 cmp r3, #0
  27503. 800bf08: f000 8081 beq.w 800c00e <HAL_RCC_OscConfig+0x63e>
  27504. {
  27505. /* Check the parameters */
  27506. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  27507. /* Enable write access to Backup domain */
  27508. PWR->CR1 |= PWR_CR1_DBP;
  27509. 800bf0c: 4b8c ldr r3, [pc, #560] @ (800c140 <HAL_RCC_OscConfig+0x770>)
  27510. 800bf0e: 681b ldr r3, [r3, #0]
  27511. 800bf10: 4a8b ldr r2, [pc, #556] @ (800c140 <HAL_RCC_OscConfig+0x770>)
  27512. 800bf12: f443 7380 orr.w r3, r3, #256 @ 0x100
  27513. 800bf16: 6013 str r3, [r2, #0]
  27514. /* Wait for Backup domain Write protection disable */
  27515. tickstart = HAL_GetTick();
  27516. 800bf18: f7f9 ffc4 bl 8005ea4 <HAL_GetTick>
  27517. 800bf1c: 6278 str r0, [r7, #36] @ 0x24
  27518. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27519. 800bf1e: e008 b.n 800bf32 <HAL_RCC_OscConfig+0x562>
  27520. {
  27521. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  27522. 800bf20: f7f9 ffc0 bl 8005ea4 <HAL_GetTick>
  27523. 800bf24: 4602 mov r2, r0
  27524. 800bf26: 6a7b ldr r3, [r7, #36] @ 0x24
  27525. 800bf28: 1ad3 subs r3, r2, r3
  27526. 800bf2a: 2b64 cmp r3, #100 @ 0x64
  27527. 800bf2c: d901 bls.n 800bf32 <HAL_RCC_OscConfig+0x562>
  27528. {
  27529. return HAL_TIMEOUT;
  27530. 800bf2e: 2303 movs r3, #3
  27531. 800bf30: e1a0 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27532. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27533. 800bf32: 4b83 ldr r3, [pc, #524] @ (800c140 <HAL_RCC_OscConfig+0x770>)
  27534. 800bf34: 681b ldr r3, [r3, #0]
  27535. 800bf36: f403 7380 and.w r3, r3, #256 @ 0x100
  27536. 800bf3a: 2b00 cmp r3, #0
  27537. 800bf3c: d0f0 beq.n 800bf20 <HAL_RCC_OscConfig+0x550>
  27538. }
  27539. }
  27540. /* Set the new LSE configuration -----------------------------------------*/
  27541. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  27542. 800bf3e: 687b ldr r3, [r7, #4]
  27543. 800bf40: 689b ldr r3, [r3, #8]
  27544. 800bf42: 2b01 cmp r3, #1
  27545. 800bf44: d106 bne.n 800bf54 <HAL_RCC_OscConfig+0x584>
  27546. 800bf46: 4b7d ldr r3, [pc, #500] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27547. 800bf48: 6f1b ldr r3, [r3, #112] @ 0x70
  27548. 800bf4a: 4a7c ldr r2, [pc, #496] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27549. 800bf4c: f043 0301 orr.w r3, r3, #1
  27550. 800bf50: 6713 str r3, [r2, #112] @ 0x70
  27551. 800bf52: e02d b.n 800bfb0 <HAL_RCC_OscConfig+0x5e0>
  27552. 800bf54: 687b ldr r3, [r7, #4]
  27553. 800bf56: 689b ldr r3, [r3, #8]
  27554. 800bf58: 2b00 cmp r3, #0
  27555. 800bf5a: d10c bne.n 800bf76 <HAL_RCC_OscConfig+0x5a6>
  27556. 800bf5c: 4b77 ldr r3, [pc, #476] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27557. 800bf5e: 6f1b ldr r3, [r3, #112] @ 0x70
  27558. 800bf60: 4a76 ldr r2, [pc, #472] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27559. 800bf62: f023 0301 bic.w r3, r3, #1
  27560. 800bf66: 6713 str r3, [r2, #112] @ 0x70
  27561. 800bf68: 4b74 ldr r3, [pc, #464] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27562. 800bf6a: 6f1b ldr r3, [r3, #112] @ 0x70
  27563. 800bf6c: 4a73 ldr r2, [pc, #460] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27564. 800bf6e: f023 0304 bic.w r3, r3, #4
  27565. 800bf72: 6713 str r3, [r2, #112] @ 0x70
  27566. 800bf74: e01c b.n 800bfb0 <HAL_RCC_OscConfig+0x5e0>
  27567. 800bf76: 687b ldr r3, [r7, #4]
  27568. 800bf78: 689b ldr r3, [r3, #8]
  27569. 800bf7a: 2b05 cmp r3, #5
  27570. 800bf7c: d10c bne.n 800bf98 <HAL_RCC_OscConfig+0x5c8>
  27571. 800bf7e: 4b6f ldr r3, [pc, #444] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27572. 800bf80: 6f1b ldr r3, [r3, #112] @ 0x70
  27573. 800bf82: 4a6e ldr r2, [pc, #440] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27574. 800bf84: f043 0304 orr.w r3, r3, #4
  27575. 800bf88: 6713 str r3, [r2, #112] @ 0x70
  27576. 800bf8a: 4b6c ldr r3, [pc, #432] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27577. 800bf8c: 6f1b ldr r3, [r3, #112] @ 0x70
  27578. 800bf8e: 4a6b ldr r2, [pc, #428] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27579. 800bf90: f043 0301 orr.w r3, r3, #1
  27580. 800bf94: 6713 str r3, [r2, #112] @ 0x70
  27581. 800bf96: e00b b.n 800bfb0 <HAL_RCC_OscConfig+0x5e0>
  27582. 800bf98: 4b68 ldr r3, [pc, #416] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27583. 800bf9a: 6f1b ldr r3, [r3, #112] @ 0x70
  27584. 800bf9c: 4a67 ldr r2, [pc, #412] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27585. 800bf9e: f023 0301 bic.w r3, r3, #1
  27586. 800bfa2: 6713 str r3, [r2, #112] @ 0x70
  27587. 800bfa4: 4b65 ldr r3, [pc, #404] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27588. 800bfa6: 6f1b ldr r3, [r3, #112] @ 0x70
  27589. 800bfa8: 4a64 ldr r2, [pc, #400] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27590. 800bfaa: f023 0304 bic.w r3, r3, #4
  27591. 800bfae: 6713 str r3, [r2, #112] @ 0x70
  27592. /* Check the LSE State */
  27593. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  27594. 800bfb0: 687b ldr r3, [r7, #4]
  27595. 800bfb2: 689b ldr r3, [r3, #8]
  27596. 800bfb4: 2b00 cmp r3, #0
  27597. 800bfb6: d015 beq.n 800bfe4 <HAL_RCC_OscConfig+0x614>
  27598. {
  27599. /* Get Start Tick*/
  27600. tickstart = HAL_GetTick();
  27601. 800bfb8: f7f9 ff74 bl 8005ea4 <HAL_GetTick>
  27602. 800bfbc: 6278 str r0, [r7, #36] @ 0x24
  27603. /* Wait till LSE is ready */
  27604. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27605. 800bfbe: e00a b.n 800bfd6 <HAL_RCC_OscConfig+0x606>
  27606. {
  27607. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27608. 800bfc0: f7f9 ff70 bl 8005ea4 <HAL_GetTick>
  27609. 800bfc4: 4602 mov r2, r0
  27610. 800bfc6: 6a7b ldr r3, [r7, #36] @ 0x24
  27611. 800bfc8: 1ad3 subs r3, r2, r3
  27612. 800bfca: f241 3288 movw r2, #5000 @ 0x1388
  27613. 800bfce: 4293 cmp r3, r2
  27614. 800bfd0: d901 bls.n 800bfd6 <HAL_RCC_OscConfig+0x606>
  27615. {
  27616. return HAL_TIMEOUT;
  27617. 800bfd2: 2303 movs r3, #3
  27618. 800bfd4: e14e b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27619. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27620. 800bfd6: 4b59 ldr r3, [pc, #356] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27621. 800bfd8: 6f1b ldr r3, [r3, #112] @ 0x70
  27622. 800bfda: f003 0302 and.w r3, r3, #2
  27623. 800bfde: 2b00 cmp r3, #0
  27624. 800bfe0: d0ee beq.n 800bfc0 <HAL_RCC_OscConfig+0x5f0>
  27625. 800bfe2: e014 b.n 800c00e <HAL_RCC_OscConfig+0x63e>
  27626. }
  27627. }
  27628. else
  27629. {
  27630. /* Get Start Tick*/
  27631. tickstart = HAL_GetTick();
  27632. 800bfe4: f7f9 ff5e bl 8005ea4 <HAL_GetTick>
  27633. 800bfe8: 6278 str r0, [r7, #36] @ 0x24
  27634. /* Wait till LSE is disabled */
  27635. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27636. 800bfea: e00a b.n 800c002 <HAL_RCC_OscConfig+0x632>
  27637. {
  27638. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27639. 800bfec: f7f9 ff5a bl 8005ea4 <HAL_GetTick>
  27640. 800bff0: 4602 mov r2, r0
  27641. 800bff2: 6a7b ldr r3, [r7, #36] @ 0x24
  27642. 800bff4: 1ad3 subs r3, r2, r3
  27643. 800bff6: f241 3288 movw r2, #5000 @ 0x1388
  27644. 800bffa: 4293 cmp r3, r2
  27645. 800bffc: d901 bls.n 800c002 <HAL_RCC_OscConfig+0x632>
  27646. {
  27647. return HAL_TIMEOUT;
  27648. 800bffe: 2303 movs r3, #3
  27649. 800c000: e138 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27650. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27651. 800c002: 4b4e ldr r3, [pc, #312] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27652. 800c004: 6f1b ldr r3, [r3, #112] @ 0x70
  27653. 800c006: f003 0302 and.w r3, r3, #2
  27654. 800c00a: 2b00 cmp r3, #0
  27655. 800c00c: d1ee bne.n 800bfec <HAL_RCC_OscConfig+0x61c>
  27656. }
  27657. }
  27658. /*-------------------------------- PLL Configuration -----------------------*/
  27659. /* Check the parameters */
  27660. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  27661. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  27662. 800c00e: 687b ldr r3, [r7, #4]
  27663. 800c010: 6a5b ldr r3, [r3, #36] @ 0x24
  27664. 800c012: 2b00 cmp r3, #0
  27665. 800c014: f000 812d beq.w 800c272 <HAL_RCC_OscConfig+0x8a2>
  27666. {
  27667. /* Check if the PLL is used as system clock or not */
  27668. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  27669. 800c018: 4b48 ldr r3, [pc, #288] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27670. 800c01a: 691b ldr r3, [r3, #16]
  27671. 800c01c: f003 0338 and.w r3, r3, #56 @ 0x38
  27672. 800c020: 2b18 cmp r3, #24
  27673. 800c022: f000 80bd beq.w 800c1a0 <HAL_RCC_OscConfig+0x7d0>
  27674. {
  27675. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  27676. 800c026: 687b ldr r3, [r7, #4]
  27677. 800c028: 6a5b ldr r3, [r3, #36] @ 0x24
  27678. 800c02a: 2b02 cmp r3, #2
  27679. 800c02c: f040 809e bne.w 800c16c <HAL_RCC_OscConfig+0x79c>
  27680. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  27681. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  27682. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27683. /* Disable the main PLL. */
  27684. __HAL_RCC_PLL_DISABLE();
  27685. 800c030: 4b42 ldr r3, [pc, #264] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27686. 800c032: 681b ldr r3, [r3, #0]
  27687. 800c034: 4a41 ldr r2, [pc, #260] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27688. 800c036: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27689. 800c03a: 6013 str r3, [r2, #0]
  27690. /* Get Start Tick*/
  27691. tickstart = HAL_GetTick();
  27692. 800c03c: f7f9 ff32 bl 8005ea4 <HAL_GetTick>
  27693. 800c040: 6278 str r0, [r7, #36] @ 0x24
  27694. /* Wait till PLL is disabled */
  27695. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27696. 800c042: e008 b.n 800c056 <HAL_RCC_OscConfig+0x686>
  27697. {
  27698. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27699. 800c044: f7f9 ff2e bl 8005ea4 <HAL_GetTick>
  27700. 800c048: 4602 mov r2, r0
  27701. 800c04a: 6a7b ldr r3, [r7, #36] @ 0x24
  27702. 800c04c: 1ad3 subs r3, r2, r3
  27703. 800c04e: 2b02 cmp r3, #2
  27704. 800c050: d901 bls.n 800c056 <HAL_RCC_OscConfig+0x686>
  27705. {
  27706. return HAL_TIMEOUT;
  27707. 800c052: 2303 movs r3, #3
  27708. 800c054: e10e b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27709. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27710. 800c056: 4b39 ldr r3, [pc, #228] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27711. 800c058: 681b ldr r3, [r3, #0]
  27712. 800c05a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27713. 800c05e: 2b00 cmp r3, #0
  27714. 800c060: d1f0 bne.n 800c044 <HAL_RCC_OscConfig+0x674>
  27715. }
  27716. }
  27717. /* Configure the main PLL clock source, multiplication and division factors. */
  27718. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  27719. 800c062: 4b36 ldr r3, [pc, #216] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27720. 800c064: 6a9a ldr r2, [r3, #40] @ 0x28
  27721. 800c066: 4b37 ldr r3, [pc, #220] @ (800c144 <HAL_RCC_OscConfig+0x774>)
  27722. 800c068: 4013 ands r3, r2
  27723. 800c06a: 687a ldr r2, [r7, #4]
  27724. 800c06c: 6a91 ldr r1, [r2, #40] @ 0x28
  27725. 800c06e: 687a ldr r2, [r7, #4]
  27726. 800c070: 6ad2 ldr r2, [r2, #44] @ 0x2c
  27727. 800c072: 0112 lsls r2, r2, #4
  27728. 800c074: 430a orrs r2, r1
  27729. 800c076: 4931 ldr r1, [pc, #196] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27730. 800c078: 4313 orrs r3, r2
  27731. 800c07a: 628b str r3, [r1, #40] @ 0x28
  27732. 800c07c: 687b ldr r3, [r7, #4]
  27733. 800c07e: 6b1b ldr r3, [r3, #48] @ 0x30
  27734. 800c080: 3b01 subs r3, #1
  27735. 800c082: f3c3 0208 ubfx r2, r3, #0, #9
  27736. 800c086: 687b ldr r3, [r7, #4]
  27737. 800c088: 6b5b ldr r3, [r3, #52] @ 0x34
  27738. 800c08a: 3b01 subs r3, #1
  27739. 800c08c: 025b lsls r3, r3, #9
  27740. 800c08e: b29b uxth r3, r3
  27741. 800c090: 431a orrs r2, r3
  27742. 800c092: 687b ldr r3, [r7, #4]
  27743. 800c094: 6b9b ldr r3, [r3, #56] @ 0x38
  27744. 800c096: 3b01 subs r3, #1
  27745. 800c098: 041b lsls r3, r3, #16
  27746. 800c09a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27747. 800c09e: 431a orrs r2, r3
  27748. 800c0a0: 687b ldr r3, [r7, #4]
  27749. 800c0a2: 6bdb ldr r3, [r3, #60] @ 0x3c
  27750. 800c0a4: 3b01 subs r3, #1
  27751. 800c0a6: 061b lsls r3, r3, #24
  27752. 800c0a8: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27753. 800c0ac: 4923 ldr r1, [pc, #140] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27754. 800c0ae: 4313 orrs r3, r2
  27755. 800c0b0: 630b str r3, [r1, #48] @ 0x30
  27756. RCC_OscInitStruct->PLL.PLLP,
  27757. RCC_OscInitStruct->PLL.PLLQ,
  27758. RCC_OscInitStruct->PLL.PLLR);
  27759. /* Disable PLLFRACN . */
  27760. __HAL_RCC_PLLFRACN_DISABLE();
  27761. 800c0b2: 4b22 ldr r3, [pc, #136] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27762. 800c0b4: 6adb ldr r3, [r3, #44] @ 0x2c
  27763. 800c0b6: 4a21 ldr r2, [pc, #132] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27764. 800c0b8: f023 0301 bic.w r3, r3, #1
  27765. 800c0bc: 62d3 str r3, [r2, #44] @ 0x2c
  27766. /* Configure PLL PLL1FRACN */
  27767. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27768. 800c0be: 4b1f ldr r3, [pc, #124] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27769. 800c0c0: 6b5a ldr r2, [r3, #52] @ 0x34
  27770. 800c0c2: 4b21 ldr r3, [pc, #132] @ (800c148 <HAL_RCC_OscConfig+0x778>)
  27771. 800c0c4: 4013 ands r3, r2
  27772. 800c0c6: 687a ldr r2, [r7, #4]
  27773. 800c0c8: 6c92 ldr r2, [r2, #72] @ 0x48
  27774. 800c0ca: 00d2 lsls r2, r2, #3
  27775. 800c0cc: 491b ldr r1, [pc, #108] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27776. 800c0ce: 4313 orrs r3, r2
  27777. 800c0d0: 634b str r3, [r1, #52] @ 0x34
  27778. /* Select PLL1 input reference frequency range: VCI */
  27779. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  27780. 800c0d2: 4b1a ldr r3, [pc, #104] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27781. 800c0d4: 6adb ldr r3, [r3, #44] @ 0x2c
  27782. 800c0d6: f023 020c bic.w r2, r3, #12
  27783. 800c0da: 687b ldr r3, [r7, #4]
  27784. 800c0dc: 6c1b ldr r3, [r3, #64] @ 0x40
  27785. 800c0de: 4917 ldr r1, [pc, #92] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27786. 800c0e0: 4313 orrs r3, r2
  27787. 800c0e2: 62cb str r3, [r1, #44] @ 0x2c
  27788. /* Select PLL1 output frequency range : VCO */
  27789. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  27790. 800c0e4: 4b15 ldr r3, [pc, #84] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27791. 800c0e6: 6adb ldr r3, [r3, #44] @ 0x2c
  27792. 800c0e8: f023 0202 bic.w r2, r3, #2
  27793. 800c0ec: 687b ldr r3, [r7, #4]
  27794. 800c0ee: 6c5b ldr r3, [r3, #68] @ 0x44
  27795. 800c0f0: 4912 ldr r1, [pc, #72] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27796. 800c0f2: 4313 orrs r3, r2
  27797. 800c0f4: 62cb str r3, [r1, #44] @ 0x2c
  27798. /* Enable PLL System Clock output. */
  27799. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  27800. 800c0f6: 4b11 ldr r3, [pc, #68] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27801. 800c0f8: 6adb ldr r3, [r3, #44] @ 0x2c
  27802. 800c0fa: 4a10 ldr r2, [pc, #64] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27803. 800c0fc: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  27804. 800c100: 62d3 str r3, [r2, #44] @ 0x2c
  27805. /* Enable PLL1Q Clock output. */
  27806. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27807. 800c102: 4b0e ldr r3, [pc, #56] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27808. 800c104: 6adb ldr r3, [r3, #44] @ 0x2c
  27809. 800c106: 4a0d ldr r2, [pc, #52] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27810. 800c108: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27811. 800c10c: 62d3 str r3, [r2, #44] @ 0x2c
  27812. /* Enable PLL1R Clock output. */
  27813. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  27814. 800c10e: 4b0b ldr r3, [pc, #44] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27815. 800c110: 6adb ldr r3, [r3, #44] @ 0x2c
  27816. 800c112: 4a0a ldr r2, [pc, #40] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27817. 800c114: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  27818. 800c118: 62d3 str r3, [r2, #44] @ 0x2c
  27819. /* Enable PLL1FRACN . */
  27820. __HAL_RCC_PLLFRACN_ENABLE();
  27821. 800c11a: 4b08 ldr r3, [pc, #32] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27822. 800c11c: 6adb ldr r3, [r3, #44] @ 0x2c
  27823. 800c11e: 4a07 ldr r2, [pc, #28] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27824. 800c120: f043 0301 orr.w r3, r3, #1
  27825. 800c124: 62d3 str r3, [r2, #44] @ 0x2c
  27826. /* Enable the main PLL. */
  27827. __HAL_RCC_PLL_ENABLE();
  27828. 800c126: 4b05 ldr r3, [pc, #20] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27829. 800c128: 681b ldr r3, [r3, #0]
  27830. 800c12a: 4a04 ldr r2, [pc, #16] @ (800c13c <HAL_RCC_OscConfig+0x76c>)
  27831. 800c12c: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27832. 800c130: 6013 str r3, [r2, #0]
  27833. /* Get Start Tick*/
  27834. tickstart = HAL_GetTick();
  27835. 800c132: f7f9 feb7 bl 8005ea4 <HAL_GetTick>
  27836. 800c136: 6278 str r0, [r7, #36] @ 0x24
  27837. /* Wait till PLL is ready */
  27838. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27839. 800c138: e011 b.n 800c15e <HAL_RCC_OscConfig+0x78e>
  27840. 800c13a: bf00 nop
  27841. 800c13c: 58024400 .word 0x58024400
  27842. 800c140: 58024800 .word 0x58024800
  27843. 800c144: fffffc0c .word 0xfffffc0c
  27844. 800c148: ffff0007 .word 0xffff0007
  27845. {
  27846. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27847. 800c14c: f7f9 feaa bl 8005ea4 <HAL_GetTick>
  27848. 800c150: 4602 mov r2, r0
  27849. 800c152: 6a7b ldr r3, [r7, #36] @ 0x24
  27850. 800c154: 1ad3 subs r3, r2, r3
  27851. 800c156: 2b02 cmp r3, #2
  27852. 800c158: d901 bls.n 800c15e <HAL_RCC_OscConfig+0x78e>
  27853. {
  27854. return HAL_TIMEOUT;
  27855. 800c15a: 2303 movs r3, #3
  27856. 800c15c: e08a b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27857. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27858. 800c15e: 4b47 ldr r3, [pc, #284] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27859. 800c160: 681b ldr r3, [r3, #0]
  27860. 800c162: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27861. 800c166: 2b00 cmp r3, #0
  27862. 800c168: d0f0 beq.n 800c14c <HAL_RCC_OscConfig+0x77c>
  27863. 800c16a: e082 b.n 800c272 <HAL_RCC_OscConfig+0x8a2>
  27864. }
  27865. }
  27866. else
  27867. {
  27868. /* Disable the main PLL. */
  27869. __HAL_RCC_PLL_DISABLE();
  27870. 800c16c: 4b43 ldr r3, [pc, #268] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27871. 800c16e: 681b ldr r3, [r3, #0]
  27872. 800c170: 4a42 ldr r2, [pc, #264] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27873. 800c172: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27874. 800c176: 6013 str r3, [r2, #0]
  27875. /* Get Start Tick*/
  27876. tickstart = HAL_GetTick();
  27877. 800c178: f7f9 fe94 bl 8005ea4 <HAL_GetTick>
  27878. 800c17c: 6278 str r0, [r7, #36] @ 0x24
  27879. /* Wait till PLL is disabled */
  27880. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27881. 800c17e: e008 b.n 800c192 <HAL_RCC_OscConfig+0x7c2>
  27882. {
  27883. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27884. 800c180: f7f9 fe90 bl 8005ea4 <HAL_GetTick>
  27885. 800c184: 4602 mov r2, r0
  27886. 800c186: 6a7b ldr r3, [r7, #36] @ 0x24
  27887. 800c188: 1ad3 subs r3, r2, r3
  27888. 800c18a: 2b02 cmp r3, #2
  27889. 800c18c: d901 bls.n 800c192 <HAL_RCC_OscConfig+0x7c2>
  27890. {
  27891. return HAL_TIMEOUT;
  27892. 800c18e: 2303 movs r3, #3
  27893. 800c190: e070 b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27894. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27895. 800c192: 4b3a ldr r3, [pc, #232] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27896. 800c194: 681b ldr r3, [r3, #0]
  27897. 800c196: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27898. 800c19a: 2b00 cmp r3, #0
  27899. 800c19c: d1f0 bne.n 800c180 <HAL_RCC_OscConfig+0x7b0>
  27900. 800c19e: e068 b.n 800c272 <HAL_RCC_OscConfig+0x8a2>
  27901. }
  27902. }
  27903. else
  27904. {
  27905. /* Do not return HAL_ERROR if request repeats the current configuration */
  27906. temp1_pllckcfg = RCC->PLLCKSELR;
  27907. 800c1a0: 4b36 ldr r3, [pc, #216] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27908. 800c1a2: 6a9b ldr r3, [r3, #40] @ 0x28
  27909. 800c1a4: 613b str r3, [r7, #16]
  27910. temp2_pllckcfg = RCC->PLL1DIVR;
  27911. 800c1a6: 4b35 ldr r3, [pc, #212] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27912. 800c1a8: 6b1b ldr r3, [r3, #48] @ 0x30
  27913. 800c1aa: 60fb str r3, [r7, #12]
  27914. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27915. 800c1ac: 687b ldr r3, [r7, #4]
  27916. 800c1ae: 6a5b ldr r3, [r3, #36] @ 0x24
  27917. 800c1b0: 2b01 cmp r3, #1
  27918. 800c1b2: d031 beq.n 800c218 <HAL_RCC_OscConfig+0x848>
  27919. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27920. 800c1b4: 693b ldr r3, [r7, #16]
  27921. 800c1b6: f003 0203 and.w r2, r3, #3
  27922. 800c1ba: 687b ldr r3, [r7, #4]
  27923. 800c1bc: 6a9b ldr r3, [r3, #40] @ 0x28
  27924. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27925. 800c1be: 429a cmp r2, r3
  27926. 800c1c0: d12a bne.n 800c218 <HAL_RCC_OscConfig+0x848>
  27927. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27928. 800c1c2: 693b ldr r3, [r7, #16]
  27929. 800c1c4: 091b lsrs r3, r3, #4
  27930. 800c1c6: f003 023f and.w r2, r3, #63 @ 0x3f
  27931. 800c1ca: 687b ldr r3, [r7, #4]
  27932. 800c1cc: 6adb ldr r3, [r3, #44] @ 0x2c
  27933. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27934. 800c1ce: 429a cmp r2, r3
  27935. 800c1d0: d122 bne.n 800c218 <HAL_RCC_OscConfig+0x848>
  27936. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27937. 800c1d2: 68fb ldr r3, [r7, #12]
  27938. 800c1d4: f3c3 0208 ubfx r2, r3, #0, #9
  27939. 800c1d8: 687b ldr r3, [r7, #4]
  27940. 800c1da: 6b1b ldr r3, [r3, #48] @ 0x30
  27941. 800c1dc: 3b01 subs r3, #1
  27942. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27943. 800c1de: 429a cmp r2, r3
  27944. 800c1e0: d11a bne.n 800c218 <HAL_RCC_OscConfig+0x848>
  27945. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27946. 800c1e2: 68fb ldr r3, [r7, #12]
  27947. 800c1e4: 0a5b lsrs r3, r3, #9
  27948. 800c1e6: f003 027f and.w r2, r3, #127 @ 0x7f
  27949. 800c1ea: 687b ldr r3, [r7, #4]
  27950. 800c1ec: 6b5b ldr r3, [r3, #52] @ 0x34
  27951. 800c1ee: 3b01 subs r3, #1
  27952. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27953. 800c1f0: 429a cmp r2, r3
  27954. 800c1f2: d111 bne.n 800c218 <HAL_RCC_OscConfig+0x848>
  27955. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27956. 800c1f4: 68fb ldr r3, [r7, #12]
  27957. 800c1f6: 0c1b lsrs r3, r3, #16
  27958. 800c1f8: f003 027f and.w r2, r3, #127 @ 0x7f
  27959. 800c1fc: 687b ldr r3, [r7, #4]
  27960. 800c1fe: 6b9b ldr r3, [r3, #56] @ 0x38
  27961. 800c200: 3b01 subs r3, #1
  27962. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27963. 800c202: 429a cmp r2, r3
  27964. 800c204: d108 bne.n 800c218 <HAL_RCC_OscConfig+0x848>
  27965. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  27966. 800c206: 68fb ldr r3, [r7, #12]
  27967. 800c208: 0e1b lsrs r3, r3, #24
  27968. 800c20a: f003 027f and.w r2, r3, #127 @ 0x7f
  27969. 800c20e: 687b ldr r3, [r7, #4]
  27970. 800c210: 6bdb ldr r3, [r3, #60] @ 0x3c
  27971. 800c212: 3b01 subs r3, #1
  27972. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27973. 800c214: 429a cmp r2, r3
  27974. 800c216: d001 beq.n 800c21c <HAL_RCC_OscConfig+0x84c>
  27975. {
  27976. return HAL_ERROR;
  27977. 800c218: 2301 movs r3, #1
  27978. 800c21a: e02b b.n 800c274 <HAL_RCC_OscConfig+0x8a4>
  27979. }
  27980. else
  27981. {
  27982. /* Check if only fractional part needs to be updated */
  27983. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  27984. 800c21c: 4b17 ldr r3, [pc, #92] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  27985. 800c21e: 6b5b ldr r3, [r3, #52] @ 0x34
  27986. 800c220: 08db lsrs r3, r3, #3
  27987. 800c222: f3c3 030c ubfx r3, r3, #0, #13
  27988. 800c226: 613b str r3, [r7, #16]
  27989. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  27990. 800c228: 687b ldr r3, [r7, #4]
  27991. 800c22a: 6c9b ldr r3, [r3, #72] @ 0x48
  27992. 800c22c: 693a ldr r2, [r7, #16]
  27993. 800c22e: 429a cmp r2, r3
  27994. 800c230: d01f beq.n 800c272 <HAL_RCC_OscConfig+0x8a2>
  27995. {
  27996. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27997. /* Disable PLL1FRACEN */
  27998. __HAL_RCC_PLLFRACN_DISABLE();
  27999. 800c232: 4b12 ldr r3, [pc, #72] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28000. 800c234: 6adb ldr r3, [r3, #44] @ 0x2c
  28001. 800c236: 4a11 ldr r2, [pc, #68] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28002. 800c238: f023 0301 bic.w r3, r3, #1
  28003. 800c23c: 62d3 str r3, [r2, #44] @ 0x2c
  28004. /* Get Start Tick*/
  28005. tickstart = HAL_GetTick();
  28006. 800c23e: f7f9 fe31 bl 8005ea4 <HAL_GetTick>
  28007. 800c242: 6278 str r0, [r7, #36] @ 0x24
  28008. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  28009. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  28010. 800c244: bf00 nop
  28011. 800c246: f7f9 fe2d bl 8005ea4 <HAL_GetTick>
  28012. 800c24a: 4602 mov r2, r0
  28013. 800c24c: 6a7b ldr r3, [r7, #36] @ 0x24
  28014. 800c24e: 4293 cmp r3, r2
  28015. 800c250: d0f9 beq.n 800c246 <HAL_RCC_OscConfig+0x876>
  28016. {
  28017. }
  28018. /* Configure PLL1 PLL1FRACN */
  28019. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  28020. 800c252: 4b0a ldr r3, [pc, #40] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28021. 800c254: 6b5a ldr r2, [r3, #52] @ 0x34
  28022. 800c256: 4b0a ldr r3, [pc, #40] @ (800c280 <HAL_RCC_OscConfig+0x8b0>)
  28023. 800c258: 4013 ands r3, r2
  28024. 800c25a: 687a ldr r2, [r7, #4]
  28025. 800c25c: 6c92 ldr r2, [r2, #72] @ 0x48
  28026. 800c25e: 00d2 lsls r2, r2, #3
  28027. 800c260: 4906 ldr r1, [pc, #24] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28028. 800c262: 4313 orrs r3, r2
  28029. 800c264: 634b str r3, [r1, #52] @ 0x34
  28030. /* Enable PLL1FRACEN to latch new value. */
  28031. __HAL_RCC_PLLFRACN_ENABLE();
  28032. 800c266: 4b05 ldr r3, [pc, #20] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28033. 800c268: 6adb ldr r3, [r3, #44] @ 0x2c
  28034. 800c26a: 4a04 ldr r2, [pc, #16] @ (800c27c <HAL_RCC_OscConfig+0x8ac>)
  28035. 800c26c: f043 0301 orr.w r3, r3, #1
  28036. 800c270: 62d3 str r3, [r2, #44] @ 0x2c
  28037. }
  28038. }
  28039. }
  28040. }
  28041. return HAL_OK;
  28042. 800c272: 2300 movs r3, #0
  28043. }
  28044. 800c274: 4618 mov r0, r3
  28045. 800c276: 3730 adds r7, #48 @ 0x30
  28046. 800c278: 46bd mov sp, r7
  28047. 800c27a: bd80 pop {r7, pc}
  28048. 800c27c: 58024400 .word 0x58024400
  28049. 800c280: ffff0007 .word 0xffff0007
  28050. 0800c284 <HAL_RCC_ClockConfig>:
  28051. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  28052. * (for more details refer to section above "Initialization/de-initialization functions")
  28053. * @retval None
  28054. */
  28055. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  28056. {
  28057. 800c284: b580 push {r7, lr}
  28058. 800c286: b086 sub sp, #24
  28059. 800c288: af00 add r7, sp, #0
  28060. 800c28a: 6078 str r0, [r7, #4]
  28061. 800c28c: 6039 str r1, [r7, #0]
  28062. HAL_StatusTypeDef halstatus;
  28063. uint32_t tickstart;
  28064. uint32_t common_system_clock;
  28065. /* Check Null pointer */
  28066. if (RCC_ClkInitStruct == NULL)
  28067. 800c28e: 687b ldr r3, [r7, #4]
  28068. 800c290: 2b00 cmp r3, #0
  28069. 800c292: d101 bne.n 800c298 <HAL_RCC_ClockConfig+0x14>
  28070. {
  28071. return HAL_ERROR;
  28072. 800c294: 2301 movs r3, #1
  28073. 800c296: e19c b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28074. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  28075. must be correctly programmed according to the frequency of the CPU clock
  28076. (HCLK) and the supply voltage of the device. */
  28077. /* Increasing the CPU frequency */
  28078. if (FLatency > __HAL_FLASH_GET_LATENCY())
  28079. 800c298: 4b8a ldr r3, [pc, #552] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28080. 800c29a: 681b ldr r3, [r3, #0]
  28081. 800c29c: f003 030f and.w r3, r3, #15
  28082. 800c2a0: 683a ldr r2, [r7, #0]
  28083. 800c2a2: 429a cmp r2, r3
  28084. 800c2a4: d910 bls.n 800c2c8 <HAL_RCC_ClockConfig+0x44>
  28085. {
  28086. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28087. __HAL_FLASH_SET_LATENCY(FLatency);
  28088. 800c2a6: 4b87 ldr r3, [pc, #540] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28089. 800c2a8: 681b ldr r3, [r3, #0]
  28090. 800c2aa: f023 020f bic.w r2, r3, #15
  28091. 800c2ae: 4985 ldr r1, [pc, #532] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28092. 800c2b0: 683b ldr r3, [r7, #0]
  28093. 800c2b2: 4313 orrs r3, r2
  28094. 800c2b4: 600b str r3, [r1, #0]
  28095. /* Check that the new number of wait states is taken into account to access the Flash
  28096. memory by reading the FLASH_ACR register */
  28097. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28098. 800c2b6: 4b83 ldr r3, [pc, #524] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28099. 800c2b8: 681b ldr r3, [r3, #0]
  28100. 800c2ba: f003 030f and.w r3, r3, #15
  28101. 800c2be: 683a ldr r2, [r7, #0]
  28102. 800c2c0: 429a cmp r2, r3
  28103. 800c2c2: d001 beq.n 800c2c8 <HAL_RCC_ClockConfig+0x44>
  28104. {
  28105. return HAL_ERROR;
  28106. 800c2c4: 2301 movs r3, #1
  28107. 800c2c6: e184 b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28108. }
  28109. /* Increasing the BUS frequency divider */
  28110. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  28111. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28112. 800c2c8: 687b ldr r3, [r7, #4]
  28113. 800c2ca: 681b ldr r3, [r3, #0]
  28114. 800c2cc: f003 0304 and.w r3, r3, #4
  28115. 800c2d0: 2b00 cmp r3, #0
  28116. 800c2d2: d010 beq.n 800c2f6 <HAL_RCC_ClockConfig+0x72>
  28117. {
  28118. #if defined (RCC_D1CFGR_D1PPRE)
  28119. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28120. 800c2d4: 687b ldr r3, [r7, #4]
  28121. 800c2d6: 691a ldr r2, [r3, #16]
  28122. 800c2d8: 4b7b ldr r3, [pc, #492] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28123. 800c2da: 699b ldr r3, [r3, #24]
  28124. 800c2dc: f003 0370 and.w r3, r3, #112 @ 0x70
  28125. 800c2e0: 429a cmp r2, r3
  28126. 800c2e2: d908 bls.n 800c2f6 <HAL_RCC_ClockConfig+0x72>
  28127. {
  28128. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28129. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28130. 800c2e4: 4b78 ldr r3, [pc, #480] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28131. 800c2e6: 699b ldr r3, [r3, #24]
  28132. 800c2e8: f023 0270 bic.w r2, r3, #112 @ 0x70
  28133. 800c2ec: 687b ldr r3, [r7, #4]
  28134. 800c2ee: 691b ldr r3, [r3, #16]
  28135. 800c2f0: 4975 ldr r1, [pc, #468] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28136. 800c2f2: 4313 orrs r3, r2
  28137. 800c2f4: 618b str r3, [r1, #24]
  28138. }
  28139. #endif
  28140. }
  28141. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28142. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28143. 800c2f6: 687b ldr r3, [r7, #4]
  28144. 800c2f8: 681b ldr r3, [r3, #0]
  28145. 800c2fa: f003 0308 and.w r3, r3, #8
  28146. 800c2fe: 2b00 cmp r3, #0
  28147. 800c300: d010 beq.n 800c324 <HAL_RCC_ClockConfig+0xa0>
  28148. {
  28149. #if defined (RCC_D2CFGR_D2PPRE1)
  28150. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28151. 800c302: 687b ldr r3, [r7, #4]
  28152. 800c304: 695a ldr r2, [r3, #20]
  28153. 800c306: 4b70 ldr r3, [pc, #448] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28154. 800c308: 69db ldr r3, [r3, #28]
  28155. 800c30a: f003 0370 and.w r3, r3, #112 @ 0x70
  28156. 800c30e: 429a cmp r2, r3
  28157. 800c310: d908 bls.n 800c324 <HAL_RCC_ClockConfig+0xa0>
  28158. {
  28159. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28160. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28161. 800c312: 4b6d ldr r3, [pc, #436] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28162. 800c314: 69db ldr r3, [r3, #28]
  28163. 800c316: f023 0270 bic.w r2, r3, #112 @ 0x70
  28164. 800c31a: 687b ldr r3, [r7, #4]
  28165. 800c31c: 695b ldr r3, [r3, #20]
  28166. 800c31e: 496a ldr r1, [pc, #424] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28167. 800c320: 4313 orrs r3, r2
  28168. 800c322: 61cb str r3, [r1, #28]
  28169. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28170. }
  28171. #endif
  28172. }
  28173. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28174. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28175. 800c324: 687b ldr r3, [r7, #4]
  28176. 800c326: 681b ldr r3, [r3, #0]
  28177. 800c328: f003 0310 and.w r3, r3, #16
  28178. 800c32c: 2b00 cmp r3, #0
  28179. 800c32e: d010 beq.n 800c352 <HAL_RCC_ClockConfig+0xce>
  28180. {
  28181. #if defined(RCC_D2CFGR_D2PPRE2)
  28182. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28183. 800c330: 687b ldr r3, [r7, #4]
  28184. 800c332: 699a ldr r2, [r3, #24]
  28185. 800c334: 4b64 ldr r3, [pc, #400] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28186. 800c336: 69db ldr r3, [r3, #28]
  28187. 800c338: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28188. 800c33c: 429a cmp r2, r3
  28189. 800c33e: d908 bls.n 800c352 <HAL_RCC_ClockConfig+0xce>
  28190. {
  28191. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28192. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28193. 800c340: 4b61 ldr r3, [pc, #388] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28194. 800c342: 69db ldr r3, [r3, #28]
  28195. 800c344: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28196. 800c348: 687b ldr r3, [r7, #4]
  28197. 800c34a: 699b ldr r3, [r3, #24]
  28198. 800c34c: 495e ldr r1, [pc, #376] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28199. 800c34e: 4313 orrs r3, r2
  28200. 800c350: 61cb str r3, [r1, #28]
  28201. }
  28202. #endif
  28203. }
  28204. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  28205. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28206. 800c352: 687b ldr r3, [r7, #4]
  28207. 800c354: 681b ldr r3, [r3, #0]
  28208. 800c356: f003 0320 and.w r3, r3, #32
  28209. 800c35a: 2b00 cmp r3, #0
  28210. 800c35c: d010 beq.n 800c380 <HAL_RCC_ClockConfig+0xfc>
  28211. {
  28212. #if defined(RCC_D3CFGR_D3PPRE)
  28213. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28214. 800c35e: 687b ldr r3, [r7, #4]
  28215. 800c360: 69da ldr r2, [r3, #28]
  28216. 800c362: 4b59 ldr r3, [pc, #356] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28217. 800c364: 6a1b ldr r3, [r3, #32]
  28218. 800c366: f003 0370 and.w r3, r3, #112 @ 0x70
  28219. 800c36a: 429a cmp r2, r3
  28220. 800c36c: d908 bls.n 800c380 <HAL_RCC_ClockConfig+0xfc>
  28221. {
  28222. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28223. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28224. 800c36e: 4b56 ldr r3, [pc, #344] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28225. 800c370: 6a1b ldr r3, [r3, #32]
  28226. 800c372: f023 0270 bic.w r2, r3, #112 @ 0x70
  28227. 800c376: 687b ldr r3, [r7, #4]
  28228. 800c378: 69db ldr r3, [r3, #28]
  28229. 800c37a: 4953 ldr r1, [pc, #332] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28230. 800c37c: 4313 orrs r3, r2
  28231. 800c37e: 620b str r3, [r1, #32]
  28232. }
  28233. #endif
  28234. }
  28235. /*-------------------------- HCLK Configuration --------------------------*/
  28236. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28237. 800c380: 687b ldr r3, [r7, #4]
  28238. 800c382: 681b ldr r3, [r3, #0]
  28239. 800c384: f003 0302 and.w r3, r3, #2
  28240. 800c388: 2b00 cmp r3, #0
  28241. 800c38a: d010 beq.n 800c3ae <HAL_RCC_ClockConfig+0x12a>
  28242. {
  28243. #if defined (RCC_D1CFGR_HPRE)
  28244. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28245. 800c38c: 687b ldr r3, [r7, #4]
  28246. 800c38e: 68da ldr r2, [r3, #12]
  28247. 800c390: 4b4d ldr r3, [pc, #308] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28248. 800c392: 699b ldr r3, [r3, #24]
  28249. 800c394: f003 030f and.w r3, r3, #15
  28250. 800c398: 429a cmp r2, r3
  28251. 800c39a: d908 bls.n 800c3ae <HAL_RCC_ClockConfig+0x12a>
  28252. {
  28253. /* Set the new HCLK clock divider */
  28254. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28255. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28256. 800c39c: 4b4a ldr r3, [pc, #296] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28257. 800c39e: 699b ldr r3, [r3, #24]
  28258. 800c3a0: f023 020f bic.w r2, r3, #15
  28259. 800c3a4: 687b ldr r3, [r7, #4]
  28260. 800c3a6: 68db ldr r3, [r3, #12]
  28261. 800c3a8: 4947 ldr r1, [pc, #284] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28262. 800c3aa: 4313 orrs r3, r2
  28263. 800c3ac: 618b str r3, [r1, #24]
  28264. }
  28265. #endif
  28266. }
  28267. /*------------------------- SYSCLK Configuration -------------------------*/
  28268. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  28269. 800c3ae: 687b ldr r3, [r7, #4]
  28270. 800c3b0: 681b ldr r3, [r3, #0]
  28271. 800c3b2: f003 0301 and.w r3, r3, #1
  28272. 800c3b6: 2b00 cmp r3, #0
  28273. 800c3b8: d055 beq.n 800c466 <HAL_RCC_ClockConfig+0x1e2>
  28274. {
  28275. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  28276. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  28277. #if defined(RCC_D1CFGR_D1CPRE)
  28278. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28279. 800c3ba: 4b43 ldr r3, [pc, #268] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28280. 800c3bc: 699b ldr r3, [r3, #24]
  28281. 800c3be: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  28282. 800c3c2: 687b ldr r3, [r7, #4]
  28283. 800c3c4: 689b ldr r3, [r3, #8]
  28284. 800c3c6: 4940 ldr r1, [pc, #256] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28285. 800c3c8: 4313 orrs r3, r2
  28286. 800c3ca: 618b str r3, [r1, #24]
  28287. #else
  28288. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28289. #endif
  28290. /* HSE is selected as System Clock Source */
  28291. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  28292. 800c3cc: 687b ldr r3, [r7, #4]
  28293. 800c3ce: 685b ldr r3, [r3, #4]
  28294. 800c3d0: 2b02 cmp r3, #2
  28295. 800c3d2: d107 bne.n 800c3e4 <HAL_RCC_ClockConfig+0x160>
  28296. {
  28297. /* Check the HSE ready flag */
  28298. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  28299. 800c3d4: 4b3c ldr r3, [pc, #240] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28300. 800c3d6: 681b ldr r3, [r3, #0]
  28301. 800c3d8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  28302. 800c3dc: 2b00 cmp r3, #0
  28303. 800c3de: d121 bne.n 800c424 <HAL_RCC_ClockConfig+0x1a0>
  28304. {
  28305. return HAL_ERROR;
  28306. 800c3e0: 2301 movs r3, #1
  28307. 800c3e2: e0f6 b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28308. }
  28309. }
  28310. /* PLL is selected as System Clock Source */
  28311. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  28312. 800c3e4: 687b ldr r3, [r7, #4]
  28313. 800c3e6: 685b ldr r3, [r3, #4]
  28314. 800c3e8: 2b03 cmp r3, #3
  28315. 800c3ea: d107 bne.n 800c3fc <HAL_RCC_ClockConfig+0x178>
  28316. {
  28317. /* Check the PLL ready flag */
  28318. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  28319. 800c3ec: 4b36 ldr r3, [pc, #216] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28320. 800c3ee: 681b ldr r3, [r3, #0]
  28321. 800c3f0: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  28322. 800c3f4: 2b00 cmp r3, #0
  28323. 800c3f6: d115 bne.n 800c424 <HAL_RCC_ClockConfig+0x1a0>
  28324. {
  28325. return HAL_ERROR;
  28326. 800c3f8: 2301 movs r3, #1
  28327. 800c3fa: e0ea b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28328. }
  28329. }
  28330. /* CSI is selected as System Clock Source */
  28331. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  28332. 800c3fc: 687b ldr r3, [r7, #4]
  28333. 800c3fe: 685b ldr r3, [r3, #4]
  28334. 800c400: 2b01 cmp r3, #1
  28335. 800c402: d107 bne.n 800c414 <HAL_RCC_ClockConfig+0x190>
  28336. {
  28337. /* Check the PLL ready flag */
  28338. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  28339. 800c404: 4b30 ldr r3, [pc, #192] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28340. 800c406: 681b ldr r3, [r3, #0]
  28341. 800c408: f403 7380 and.w r3, r3, #256 @ 0x100
  28342. 800c40c: 2b00 cmp r3, #0
  28343. 800c40e: d109 bne.n 800c424 <HAL_RCC_ClockConfig+0x1a0>
  28344. {
  28345. return HAL_ERROR;
  28346. 800c410: 2301 movs r3, #1
  28347. 800c412: e0de b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28348. }
  28349. /* HSI is selected as System Clock Source */
  28350. else
  28351. {
  28352. /* Check the HSI ready flag */
  28353. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  28354. 800c414: 4b2c ldr r3, [pc, #176] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28355. 800c416: 681b ldr r3, [r3, #0]
  28356. 800c418: f003 0304 and.w r3, r3, #4
  28357. 800c41c: 2b00 cmp r3, #0
  28358. 800c41e: d101 bne.n 800c424 <HAL_RCC_ClockConfig+0x1a0>
  28359. {
  28360. return HAL_ERROR;
  28361. 800c420: 2301 movs r3, #1
  28362. 800c422: e0d6 b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28363. }
  28364. }
  28365. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  28366. 800c424: 4b28 ldr r3, [pc, #160] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28367. 800c426: 691b ldr r3, [r3, #16]
  28368. 800c428: f023 0207 bic.w r2, r3, #7
  28369. 800c42c: 687b ldr r3, [r7, #4]
  28370. 800c42e: 685b ldr r3, [r3, #4]
  28371. 800c430: 4925 ldr r1, [pc, #148] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28372. 800c432: 4313 orrs r3, r2
  28373. 800c434: 610b str r3, [r1, #16]
  28374. /* Get Start Tick*/
  28375. tickstart = HAL_GetTick();
  28376. 800c436: f7f9 fd35 bl 8005ea4 <HAL_GetTick>
  28377. 800c43a: 6178 str r0, [r7, #20]
  28378. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28379. 800c43c: e00a b.n 800c454 <HAL_RCC_ClockConfig+0x1d0>
  28380. {
  28381. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  28382. 800c43e: f7f9 fd31 bl 8005ea4 <HAL_GetTick>
  28383. 800c442: 4602 mov r2, r0
  28384. 800c444: 697b ldr r3, [r7, #20]
  28385. 800c446: 1ad3 subs r3, r2, r3
  28386. 800c448: f241 3288 movw r2, #5000 @ 0x1388
  28387. 800c44c: 4293 cmp r3, r2
  28388. 800c44e: d901 bls.n 800c454 <HAL_RCC_ClockConfig+0x1d0>
  28389. {
  28390. return HAL_TIMEOUT;
  28391. 800c450: 2303 movs r3, #3
  28392. 800c452: e0be b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28393. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28394. 800c454: 4b1c ldr r3, [pc, #112] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28395. 800c456: 691b ldr r3, [r3, #16]
  28396. 800c458: f003 0238 and.w r2, r3, #56 @ 0x38
  28397. 800c45c: 687b ldr r3, [r7, #4]
  28398. 800c45e: 685b ldr r3, [r3, #4]
  28399. 800c460: 00db lsls r3, r3, #3
  28400. 800c462: 429a cmp r2, r3
  28401. 800c464: d1eb bne.n 800c43e <HAL_RCC_ClockConfig+0x1ba>
  28402. }
  28403. /* Decreasing the BUS frequency divider */
  28404. /*-------------------------- HCLK Configuration --------------------------*/
  28405. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28406. 800c466: 687b ldr r3, [r7, #4]
  28407. 800c468: 681b ldr r3, [r3, #0]
  28408. 800c46a: f003 0302 and.w r3, r3, #2
  28409. 800c46e: 2b00 cmp r3, #0
  28410. 800c470: d010 beq.n 800c494 <HAL_RCC_ClockConfig+0x210>
  28411. {
  28412. #if defined(RCC_D1CFGR_HPRE)
  28413. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28414. 800c472: 687b ldr r3, [r7, #4]
  28415. 800c474: 68da ldr r2, [r3, #12]
  28416. 800c476: 4b14 ldr r3, [pc, #80] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28417. 800c478: 699b ldr r3, [r3, #24]
  28418. 800c47a: f003 030f and.w r3, r3, #15
  28419. 800c47e: 429a cmp r2, r3
  28420. 800c480: d208 bcs.n 800c494 <HAL_RCC_ClockConfig+0x210>
  28421. {
  28422. /* Set the new HCLK clock divider */
  28423. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28424. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28425. 800c482: 4b11 ldr r3, [pc, #68] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28426. 800c484: 699b ldr r3, [r3, #24]
  28427. 800c486: f023 020f bic.w r2, r3, #15
  28428. 800c48a: 687b ldr r3, [r7, #4]
  28429. 800c48c: 68db ldr r3, [r3, #12]
  28430. 800c48e: 490e ldr r1, [pc, #56] @ (800c4c8 <HAL_RCC_ClockConfig+0x244>)
  28431. 800c490: 4313 orrs r3, r2
  28432. 800c492: 618b str r3, [r1, #24]
  28433. }
  28434. #endif
  28435. }
  28436. /* Decreasing the number of wait states because of lower CPU frequency */
  28437. if (FLatency < __HAL_FLASH_GET_LATENCY())
  28438. 800c494: 4b0b ldr r3, [pc, #44] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28439. 800c496: 681b ldr r3, [r3, #0]
  28440. 800c498: f003 030f and.w r3, r3, #15
  28441. 800c49c: 683a ldr r2, [r7, #0]
  28442. 800c49e: 429a cmp r2, r3
  28443. 800c4a0: d214 bcs.n 800c4cc <HAL_RCC_ClockConfig+0x248>
  28444. {
  28445. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28446. __HAL_FLASH_SET_LATENCY(FLatency);
  28447. 800c4a2: 4b08 ldr r3, [pc, #32] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28448. 800c4a4: 681b ldr r3, [r3, #0]
  28449. 800c4a6: f023 020f bic.w r2, r3, #15
  28450. 800c4aa: 4906 ldr r1, [pc, #24] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28451. 800c4ac: 683b ldr r3, [r7, #0]
  28452. 800c4ae: 4313 orrs r3, r2
  28453. 800c4b0: 600b str r3, [r1, #0]
  28454. /* Check that the new number of wait states is taken into account to access the Flash
  28455. memory by reading the FLASH_ACR register */
  28456. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28457. 800c4b2: 4b04 ldr r3, [pc, #16] @ (800c4c4 <HAL_RCC_ClockConfig+0x240>)
  28458. 800c4b4: 681b ldr r3, [r3, #0]
  28459. 800c4b6: f003 030f and.w r3, r3, #15
  28460. 800c4ba: 683a ldr r2, [r7, #0]
  28461. 800c4bc: 429a cmp r2, r3
  28462. 800c4be: d005 beq.n 800c4cc <HAL_RCC_ClockConfig+0x248>
  28463. {
  28464. return HAL_ERROR;
  28465. 800c4c0: 2301 movs r3, #1
  28466. 800c4c2: e086 b.n 800c5d2 <HAL_RCC_ClockConfig+0x34e>
  28467. 800c4c4: 52002000 .word 0x52002000
  28468. 800c4c8: 58024400 .word 0x58024400
  28469. }
  28470. }
  28471. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  28472. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28473. 800c4cc: 687b ldr r3, [r7, #4]
  28474. 800c4ce: 681b ldr r3, [r3, #0]
  28475. 800c4d0: f003 0304 and.w r3, r3, #4
  28476. 800c4d4: 2b00 cmp r3, #0
  28477. 800c4d6: d010 beq.n 800c4fa <HAL_RCC_ClockConfig+0x276>
  28478. {
  28479. #if defined(RCC_D1CFGR_D1PPRE)
  28480. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28481. 800c4d8: 687b ldr r3, [r7, #4]
  28482. 800c4da: 691a ldr r2, [r3, #16]
  28483. 800c4dc: 4b3f ldr r3, [pc, #252] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28484. 800c4de: 699b ldr r3, [r3, #24]
  28485. 800c4e0: f003 0370 and.w r3, r3, #112 @ 0x70
  28486. 800c4e4: 429a cmp r2, r3
  28487. 800c4e6: d208 bcs.n 800c4fa <HAL_RCC_ClockConfig+0x276>
  28488. {
  28489. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28490. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28491. 800c4e8: 4b3c ldr r3, [pc, #240] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28492. 800c4ea: 699b ldr r3, [r3, #24]
  28493. 800c4ec: f023 0270 bic.w r2, r3, #112 @ 0x70
  28494. 800c4f0: 687b ldr r3, [r7, #4]
  28495. 800c4f2: 691b ldr r3, [r3, #16]
  28496. 800c4f4: 4939 ldr r1, [pc, #228] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28497. 800c4f6: 4313 orrs r3, r2
  28498. 800c4f8: 618b str r3, [r1, #24]
  28499. }
  28500. #endif
  28501. }
  28502. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28503. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28504. 800c4fa: 687b ldr r3, [r7, #4]
  28505. 800c4fc: 681b ldr r3, [r3, #0]
  28506. 800c4fe: f003 0308 and.w r3, r3, #8
  28507. 800c502: 2b00 cmp r3, #0
  28508. 800c504: d010 beq.n 800c528 <HAL_RCC_ClockConfig+0x2a4>
  28509. {
  28510. #if defined(RCC_D2CFGR_D2PPRE1)
  28511. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28512. 800c506: 687b ldr r3, [r7, #4]
  28513. 800c508: 695a ldr r2, [r3, #20]
  28514. 800c50a: 4b34 ldr r3, [pc, #208] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28515. 800c50c: 69db ldr r3, [r3, #28]
  28516. 800c50e: f003 0370 and.w r3, r3, #112 @ 0x70
  28517. 800c512: 429a cmp r2, r3
  28518. 800c514: d208 bcs.n 800c528 <HAL_RCC_ClockConfig+0x2a4>
  28519. {
  28520. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28521. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28522. 800c516: 4b31 ldr r3, [pc, #196] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28523. 800c518: 69db ldr r3, [r3, #28]
  28524. 800c51a: f023 0270 bic.w r2, r3, #112 @ 0x70
  28525. 800c51e: 687b ldr r3, [r7, #4]
  28526. 800c520: 695b ldr r3, [r3, #20]
  28527. 800c522: 492e ldr r1, [pc, #184] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28528. 800c524: 4313 orrs r3, r2
  28529. 800c526: 61cb str r3, [r1, #28]
  28530. }
  28531. #endif
  28532. }
  28533. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28534. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28535. 800c528: 687b ldr r3, [r7, #4]
  28536. 800c52a: 681b ldr r3, [r3, #0]
  28537. 800c52c: f003 0310 and.w r3, r3, #16
  28538. 800c530: 2b00 cmp r3, #0
  28539. 800c532: d010 beq.n 800c556 <HAL_RCC_ClockConfig+0x2d2>
  28540. {
  28541. #if defined (RCC_D2CFGR_D2PPRE2)
  28542. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28543. 800c534: 687b ldr r3, [r7, #4]
  28544. 800c536: 699a ldr r2, [r3, #24]
  28545. 800c538: 4b28 ldr r3, [pc, #160] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28546. 800c53a: 69db ldr r3, [r3, #28]
  28547. 800c53c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28548. 800c540: 429a cmp r2, r3
  28549. 800c542: d208 bcs.n 800c556 <HAL_RCC_ClockConfig+0x2d2>
  28550. {
  28551. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28552. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28553. 800c544: 4b25 ldr r3, [pc, #148] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28554. 800c546: 69db ldr r3, [r3, #28]
  28555. 800c548: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28556. 800c54c: 687b ldr r3, [r7, #4]
  28557. 800c54e: 699b ldr r3, [r3, #24]
  28558. 800c550: 4922 ldr r1, [pc, #136] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28559. 800c552: 4313 orrs r3, r2
  28560. 800c554: 61cb str r3, [r1, #28]
  28561. }
  28562. #endif
  28563. }
  28564. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  28565. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28566. 800c556: 687b ldr r3, [r7, #4]
  28567. 800c558: 681b ldr r3, [r3, #0]
  28568. 800c55a: f003 0320 and.w r3, r3, #32
  28569. 800c55e: 2b00 cmp r3, #0
  28570. 800c560: d010 beq.n 800c584 <HAL_RCC_ClockConfig+0x300>
  28571. {
  28572. #if defined(RCC_D3CFGR_D3PPRE)
  28573. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28574. 800c562: 687b ldr r3, [r7, #4]
  28575. 800c564: 69da ldr r2, [r3, #28]
  28576. 800c566: 4b1d ldr r3, [pc, #116] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28577. 800c568: 6a1b ldr r3, [r3, #32]
  28578. 800c56a: f003 0370 and.w r3, r3, #112 @ 0x70
  28579. 800c56e: 429a cmp r2, r3
  28580. 800c570: d208 bcs.n 800c584 <HAL_RCC_ClockConfig+0x300>
  28581. {
  28582. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28583. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28584. 800c572: 4b1a ldr r3, [pc, #104] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28585. 800c574: 6a1b ldr r3, [r3, #32]
  28586. 800c576: f023 0270 bic.w r2, r3, #112 @ 0x70
  28587. 800c57a: 687b ldr r3, [r7, #4]
  28588. 800c57c: 69db ldr r3, [r3, #28]
  28589. 800c57e: 4917 ldr r1, [pc, #92] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28590. 800c580: 4313 orrs r3, r2
  28591. 800c582: 620b str r3, [r1, #32]
  28592. #endif
  28593. }
  28594. /* Update the SystemCoreClock global variable */
  28595. #if defined(RCC_D1CFGR_D1CPRE)
  28596. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  28597. 800c584: f000 f834 bl 800c5f0 <HAL_RCC_GetSysClockFreq>
  28598. 800c588: 4602 mov r2, r0
  28599. 800c58a: 4b14 ldr r3, [pc, #80] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28600. 800c58c: 699b ldr r3, [r3, #24]
  28601. 800c58e: 0a1b lsrs r3, r3, #8
  28602. 800c590: f003 030f and.w r3, r3, #15
  28603. 800c594: 4912 ldr r1, [pc, #72] @ (800c5e0 <HAL_RCC_ClockConfig+0x35c>)
  28604. 800c596: 5ccb ldrb r3, [r1, r3]
  28605. 800c598: f003 031f and.w r3, r3, #31
  28606. 800c59c: fa22 f303 lsr.w r3, r2, r3
  28607. 800c5a0: 613b str r3, [r7, #16]
  28608. #else
  28609. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  28610. #endif
  28611. #if defined(RCC_D1CFGR_HPRE)
  28612. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28613. 800c5a2: 4b0e ldr r3, [pc, #56] @ (800c5dc <HAL_RCC_ClockConfig+0x358>)
  28614. 800c5a4: 699b ldr r3, [r3, #24]
  28615. 800c5a6: f003 030f and.w r3, r3, #15
  28616. 800c5aa: 4a0d ldr r2, [pc, #52] @ (800c5e0 <HAL_RCC_ClockConfig+0x35c>)
  28617. 800c5ac: 5cd3 ldrb r3, [r2, r3]
  28618. 800c5ae: f003 031f and.w r3, r3, #31
  28619. 800c5b2: 693a ldr r2, [r7, #16]
  28620. 800c5b4: fa22 f303 lsr.w r3, r2, r3
  28621. 800c5b8: 4a0a ldr r2, [pc, #40] @ (800c5e4 <HAL_RCC_ClockConfig+0x360>)
  28622. 800c5ba: 6013 str r3, [r2, #0]
  28623. #endif
  28624. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28625. SystemCoreClock = SystemD2Clock;
  28626. #else
  28627. SystemCoreClock = common_system_clock;
  28628. 800c5bc: 4a0a ldr r2, [pc, #40] @ (800c5e8 <HAL_RCC_ClockConfig+0x364>)
  28629. 800c5be: 693b ldr r3, [r7, #16]
  28630. 800c5c0: 6013 str r3, [r2, #0]
  28631. #endif /* DUAL_CORE && CORE_CM4 */
  28632. /* Configure the source of time base considering new system clocks settings*/
  28633. halstatus = HAL_InitTick(uwTickPrio);
  28634. 800c5c2: 4b0a ldr r3, [pc, #40] @ (800c5ec <HAL_RCC_ClockConfig+0x368>)
  28635. 800c5c4: 681b ldr r3, [r3, #0]
  28636. 800c5c6: 4618 mov r0, r3
  28637. 800c5c8: f7f8 f89c bl 8004704 <HAL_InitTick>
  28638. 800c5cc: 4603 mov r3, r0
  28639. 800c5ce: 73fb strb r3, [r7, #15]
  28640. return halstatus;
  28641. 800c5d0: 7bfb ldrb r3, [r7, #15]
  28642. }
  28643. 800c5d2: 4618 mov r0, r3
  28644. 800c5d4: 3718 adds r7, #24
  28645. 800c5d6: 46bd mov sp, r7
  28646. 800c5d8: bd80 pop {r7, pc}
  28647. 800c5da: bf00 nop
  28648. 800c5dc: 58024400 .word 0x58024400
  28649. 800c5e0: 0801878c .word 0x0801878c
  28650. 800c5e4: 24000038 .word 0x24000038
  28651. 800c5e8: 24000034 .word 0x24000034
  28652. 800c5ec: 2400003c .word 0x2400003c
  28653. 0800c5f0 <HAL_RCC_GetSysClockFreq>:
  28654. *
  28655. *
  28656. * @retval SYSCLK frequency
  28657. */
  28658. uint32_t HAL_RCC_GetSysClockFreq(void)
  28659. {
  28660. 800c5f0: b480 push {r7}
  28661. 800c5f2: b089 sub sp, #36 @ 0x24
  28662. 800c5f4: af00 add r7, sp, #0
  28663. float_t fracn1, pllvco;
  28664. uint32_t sysclockfreq;
  28665. /* Get SYSCLK source -------------------------------------------------------*/
  28666. switch (RCC->CFGR & RCC_CFGR_SWS)
  28667. 800c5f6: 4bb3 ldr r3, [pc, #716] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28668. 800c5f8: 691b ldr r3, [r3, #16]
  28669. 800c5fa: f003 0338 and.w r3, r3, #56 @ 0x38
  28670. 800c5fe: 2b18 cmp r3, #24
  28671. 800c600: f200 8155 bhi.w 800c8ae <HAL_RCC_GetSysClockFreq+0x2be>
  28672. 800c604: a201 add r2, pc, #4 @ (adr r2, 800c60c <HAL_RCC_GetSysClockFreq+0x1c>)
  28673. 800c606: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28674. 800c60a: bf00 nop
  28675. 800c60c: 0800c671 .word 0x0800c671
  28676. 800c610: 0800c8af .word 0x0800c8af
  28677. 800c614: 0800c8af .word 0x0800c8af
  28678. 800c618: 0800c8af .word 0x0800c8af
  28679. 800c61c: 0800c8af .word 0x0800c8af
  28680. 800c620: 0800c8af .word 0x0800c8af
  28681. 800c624: 0800c8af .word 0x0800c8af
  28682. 800c628: 0800c8af .word 0x0800c8af
  28683. 800c62c: 0800c697 .word 0x0800c697
  28684. 800c630: 0800c8af .word 0x0800c8af
  28685. 800c634: 0800c8af .word 0x0800c8af
  28686. 800c638: 0800c8af .word 0x0800c8af
  28687. 800c63c: 0800c8af .word 0x0800c8af
  28688. 800c640: 0800c8af .word 0x0800c8af
  28689. 800c644: 0800c8af .word 0x0800c8af
  28690. 800c648: 0800c8af .word 0x0800c8af
  28691. 800c64c: 0800c69d .word 0x0800c69d
  28692. 800c650: 0800c8af .word 0x0800c8af
  28693. 800c654: 0800c8af .word 0x0800c8af
  28694. 800c658: 0800c8af .word 0x0800c8af
  28695. 800c65c: 0800c8af .word 0x0800c8af
  28696. 800c660: 0800c8af .word 0x0800c8af
  28697. 800c664: 0800c8af .word 0x0800c8af
  28698. 800c668: 0800c8af .word 0x0800c8af
  28699. 800c66c: 0800c6a3 .word 0x0800c6a3
  28700. {
  28701. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  28702. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28703. 800c670: 4b94 ldr r3, [pc, #592] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28704. 800c672: 681b ldr r3, [r3, #0]
  28705. 800c674: f003 0320 and.w r3, r3, #32
  28706. 800c678: 2b00 cmp r3, #0
  28707. 800c67a: d009 beq.n 800c690 <HAL_RCC_GetSysClockFreq+0xa0>
  28708. {
  28709. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28710. 800c67c: 4b91 ldr r3, [pc, #580] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28711. 800c67e: 681b ldr r3, [r3, #0]
  28712. 800c680: 08db lsrs r3, r3, #3
  28713. 800c682: f003 0303 and.w r3, r3, #3
  28714. 800c686: 4a90 ldr r2, [pc, #576] @ (800c8c8 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28715. 800c688: fa22 f303 lsr.w r3, r2, r3
  28716. 800c68c: 61bb str r3, [r7, #24]
  28717. else
  28718. {
  28719. sysclockfreq = (uint32_t) HSI_VALUE;
  28720. }
  28721. break;
  28722. 800c68e: e111 b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28723. sysclockfreq = (uint32_t) HSI_VALUE;
  28724. 800c690: 4b8d ldr r3, [pc, #564] @ (800c8c8 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28725. 800c692: 61bb str r3, [r7, #24]
  28726. break;
  28727. 800c694: e10e b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28728. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  28729. sysclockfreq = CSI_VALUE;
  28730. 800c696: 4b8d ldr r3, [pc, #564] @ (800c8cc <HAL_RCC_GetSysClockFreq+0x2dc>)
  28731. 800c698: 61bb str r3, [r7, #24]
  28732. break;
  28733. 800c69a: e10b b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28734. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  28735. sysclockfreq = HSE_VALUE;
  28736. 800c69c: 4b8c ldr r3, [pc, #560] @ (800c8d0 <HAL_RCC_GetSysClockFreq+0x2e0>)
  28737. 800c69e: 61bb str r3, [r7, #24]
  28738. break;
  28739. 800c6a0: e108 b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28740. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  28741. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  28742. SYSCLK = PLL_VCO / PLLR
  28743. */
  28744. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28745. 800c6a2: 4b88 ldr r3, [pc, #544] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28746. 800c6a4: 6a9b ldr r3, [r3, #40] @ 0x28
  28747. 800c6a6: f003 0303 and.w r3, r3, #3
  28748. 800c6aa: 617b str r3, [r7, #20]
  28749. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  28750. 800c6ac: 4b85 ldr r3, [pc, #532] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28751. 800c6ae: 6a9b ldr r3, [r3, #40] @ 0x28
  28752. 800c6b0: 091b lsrs r3, r3, #4
  28753. 800c6b2: f003 033f and.w r3, r3, #63 @ 0x3f
  28754. 800c6b6: 613b str r3, [r7, #16]
  28755. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  28756. 800c6b8: 4b82 ldr r3, [pc, #520] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28757. 800c6ba: 6adb ldr r3, [r3, #44] @ 0x2c
  28758. 800c6bc: f003 0301 and.w r3, r3, #1
  28759. 800c6c0: 60fb str r3, [r7, #12]
  28760. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  28761. 800c6c2: 4b80 ldr r3, [pc, #512] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28762. 800c6c4: 6b5b ldr r3, [r3, #52] @ 0x34
  28763. 800c6c6: 08db lsrs r3, r3, #3
  28764. 800c6c8: f3c3 030c ubfx r3, r3, #0, #13
  28765. 800c6cc: 68fa ldr r2, [r7, #12]
  28766. 800c6ce: fb02 f303 mul.w r3, r2, r3
  28767. 800c6d2: ee07 3a90 vmov s15, r3
  28768. 800c6d6: eef8 7a67 vcvt.f32.u32 s15, s15
  28769. 800c6da: edc7 7a02 vstr s15, [r7, #8]
  28770. if (pllm != 0U)
  28771. 800c6de: 693b ldr r3, [r7, #16]
  28772. 800c6e0: 2b00 cmp r3, #0
  28773. 800c6e2: f000 80e1 beq.w 800c8a8 <HAL_RCC_GetSysClockFreq+0x2b8>
  28774. 800c6e6: 697b ldr r3, [r7, #20]
  28775. 800c6e8: 2b02 cmp r3, #2
  28776. 800c6ea: f000 8083 beq.w 800c7f4 <HAL_RCC_GetSysClockFreq+0x204>
  28777. 800c6ee: 697b ldr r3, [r7, #20]
  28778. 800c6f0: 2b02 cmp r3, #2
  28779. 800c6f2: f200 80a1 bhi.w 800c838 <HAL_RCC_GetSysClockFreq+0x248>
  28780. 800c6f6: 697b ldr r3, [r7, #20]
  28781. 800c6f8: 2b00 cmp r3, #0
  28782. 800c6fa: d003 beq.n 800c704 <HAL_RCC_GetSysClockFreq+0x114>
  28783. 800c6fc: 697b ldr r3, [r7, #20]
  28784. 800c6fe: 2b01 cmp r3, #1
  28785. 800c700: d056 beq.n 800c7b0 <HAL_RCC_GetSysClockFreq+0x1c0>
  28786. 800c702: e099 b.n 800c838 <HAL_RCC_GetSysClockFreq+0x248>
  28787. {
  28788. switch (pllsource)
  28789. {
  28790. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28791. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28792. 800c704: 4b6f ldr r3, [pc, #444] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28793. 800c706: 681b ldr r3, [r3, #0]
  28794. 800c708: f003 0320 and.w r3, r3, #32
  28795. 800c70c: 2b00 cmp r3, #0
  28796. 800c70e: d02d beq.n 800c76c <HAL_RCC_GetSysClockFreq+0x17c>
  28797. {
  28798. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28799. 800c710: 4b6c ldr r3, [pc, #432] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28800. 800c712: 681b ldr r3, [r3, #0]
  28801. 800c714: 08db lsrs r3, r3, #3
  28802. 800c716: f003 0303 and.w r3, r3, #3
  28803. 800c71a: 4a6b ldr r2, [pc, #428] @ (800c8c8 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28804. 800c71c: fa22 f303 lsr.w r3, r2, r3
  28805. 800c720: 607b str r3, [r7, #4]
  28806. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28807. 800c722: 687b ldr r3, [r7, #4]
  28808. 800c724: ee07 3a90 vmov s15, r3
  28809. 800c728: eef8 6a67 vcvt.f32.u32 s13, s15
  28810. 800c72c: 693b ldr r3, [r7, #16]
  28811. 800c72e: ee07 3a90 vmov s15, r3
  28812. 800c732: eef8 7a67 vcvt.f32.u32 s15, s15
  28813. 800c736: ee86 7aa7 vdiv.f32 s14, s13, s15
  28814. 800c73a: 4b62 ldr r3, [pc, #392] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28815. 800c73c: 6b1b ldr r3, [r3, #48] @ 0x30
  28816. 800c73e: f3c3 0308 ubfx r3, r3, #0, #9
  28817. 800c742: ee07 3a90 vmov s15, r3
  28818. 800c746: eef8 6a67 vcvt.f32.u32 s13, s15
  28819. 800c74a: ed97 6a02 vldr s12, [r7, #8]
  28820. 800c74e: eddf 5a61 vldr s11, [pc, #388] @ 800c8d4 <HAL_RCC_GetSysClockFreq+0x2e4>
  28821. 800c752: eec6 7a25 vdiv.f32 s15, s12, s11
  28822. 800c756: ee76 7aa7 vadd.f32 s15, s13, s15
  28823. 800c75a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28824. 800c75e: ee77 7aa6 vadd.f32 s15, s15, s13
  28825. 800c762: ee67 7a27 vmul.f32 s15, s14, s15
  28826. 800c766: edc7 7a07 vstr s15, [r7, #28]
  28827. }
  28828. else
  28829. {
  28830. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28831. }
  28832. break;
  28833. 800c76a: e087 b.n 800c87c <HAL_RCC_GetSysClockFreq+0x28c>
  28834. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28835. 800c76c: 693b ldr r3, [r7, #16]
  28836. 800c76e: ee07 3a90 vmov s15, r3
  28837. 800c772: eef8 7a67 vcvt.f32.u32 s15, s15
  28838. 800c776: eddf 6a58 vldr s13, [pc, #352] @ 800c8d8 <HAL_RCC_GetSysClockFreq+0x2e8>
  28839. 800c77a: ee86 7aa7 vdiv.f32 s14, s13, s15
  28840. 800c77e: 4b51 ldr r3, [pc, #324] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28841. 800c780: 6b1b ldr r3, [r3, #48] @ 0x30
  28842. 800c782: f3c3 0308 ubfx r3, r3, #0, #9
  28843. 800c786: ee07 3a90 vmov s15, r3
  28844. 800c78a: eef8 6a67 vcvt.f32.u32 s13, s15
  28845. 800c78e: ed97 6a02 vldr s12, [r7, #8]
  28846. 800c792: eddf 5a50 vldr s11, [pc, #320] @ 800c8d4 <HAL_RCC_GetSysClockFreq+0x2e4>
  28847. 800c796: eec6 7a25 vdiv.f32 s15, s12, s11
  28848. 800c79a: ee76 7aa7 vadd.f32 s15, s13, s15
  28849. 800c79e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28850. 800c7a2: ee77 7aa6 vadd.f32 s15, s15, s13
  28851. 800c7a6: ee67 7a27 vmul.f32 s15, s14, s15
  28852. 800c7aa: edc7 7a07 vstr s15, [r7, #28]
  28853. break;
  28854. 800c7ae: e065 b.n 800c87c <HAL_RCC_GetSysClockFreq+0x28c>
  28855. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28856. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28857. 800c7b0: 693b ldr r3, [r7, #16]
  28858. 800c7b2: ee07 3a90 vmov s15, r3
  28859. 800c7b6: eef8 7a67 vcvt.f32.u32 s15, s15
  28860. 800c7ba: eddf 6a48 vldr s13, [pc, #288] @ 800c8dc <HAL_RCC_GetSysClockFreq+0x2ec>
  28861. 800c7be: ee86 7aa7 vdiv.f32 s14, s13, s15
  28862. 800c7c2: 4b40 ldr r3, [pc, #256] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28863. 800c7c4: 6b1b ldr r3, [r3, #48] @ 0x30
  28864. 800c7c6: f3c3 0308 ubfx r3, r3, #0, #9
  28865. 800c7ca: ee07 3a90 vmov s15, r3
  28866. 800c7ce: eef8 6a67 vcvt.f32.u32 s13, s15
  28867. 800c7d2: ed97 6a02 vldr s12, [r7, #8]
  28868. 800c7d6: eddf 5a3f vldr s11, [pc, #252] @ 800c8d4 <HAL_RCC_GetSysClockFreq+0x2e4>
  28869. 800c7da: eec6 7a25 vdiv.f32 s15, s12, s11
  28870. 800c7de: ee76 7aa7 vadd.f32 s15, s13, s15
  28871. 800c7e2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28872. 800c7e6: ee77 7aa6 vadd.f32 s15, s15, s13
  28873. 800c7ea: ee67 7a27 vmul.f32 s15, s14, s15
  28874. 800c7ee: edc7 7a07 vstr s15, [r7, #28]
  28875. break;
  28876. 800c7f2: e043 b.n 800c87c <HAL_RCC_GetSysClockFreq+0x28c>
  28877. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28878. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28879. 800c7f4: 693b ldr r3, [r7, #16]
  28880. 800c7f6: ee07 3a90 vmov s15, r3
  28881. 800c7fa: eef8 7a67 vcvt.f32.u32 s15, s15
  28882. 800c7fe: eddf 6a38 vldr s13, [pc, #224] @ 800c8e0 <HAL_RCC_GetSysClockFreq+0x2f0>
  28883. 800c802: ee86 7aa7 vdiv.f32 s14, s13, s15
  28884. 800c806: 4b2f ldr r3, [pc, #188] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28885. 800c808: 6b1b ldr r3, [r3, #48] @ 0x30
  28886. 800c80a: f3c3 0308 ubfx r3, r3, #0, #9
  28887. 800c80e: ee07 3a90 vmov s15, r3
  28888. 800c812: eef8 6a67 vcvt.f32.u32 s13, s15
  28889. 800c816: ed97 6a02 vldr s12, [r7, #8]
  28890. 800c81a: eddf 5a2e vldr s11, [pc, #184] @ 800c8d4 <HAL_RCC_GetSysClockFreq+0x2e4>
  28891. 800c81e: eec6 7a25 vdiv.f32 s15, s12, s11
  28892. 800c822: ee76 7aa7 vadd.f32 s15, s13, s15
  28893. 800c826: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28894. 800c82a: ee77 7aa6 vadd.f32 s15, s15, s13
  28895. 800c82e: ee67 7a27 vmul.f32 s15, s14, s15
  28896. 800c832: edc7 7a07 vstr s15, [r7, #28]
  28897. break;
  28898. 800c836: e021 b.n 800c87c <HAL_RCC_GetSysClockFreq+0x28c>
  28899. default:
  28900. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28901. 800c838: 693b ldr r3, [r7, #16]
  28902. 800c83a: ee07 3a90 vmov s15, r3
  28903. 800c83e: eef8 7a67 vcvt.f32.u32 s15, s15
  28904. 800c842: eddf 6a26 vldr s13, [pc, #152] @ 800c8dc <HAL_RCC_GetSysClockFreq+0x2ec>
  28905. 800c846: ee86 7aa7 vdiv.f32 s14, s13, s15
  28906. 800c84a: 4b1e ldr r3, [pc, #120] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28907. 800c84c: 6b1b ldr r3, [r3, #48] @ 0x30
  28908. 800c84e: f3c3 0308 ubfx r3, r3, #0, #9
  28909. 800c852: ee07 3a90 vmov s15, r3
  28910. 800c856: eef8 6a67 vcvt.f32.u32 s13, s15
  28911. 800c85a: ed97 6a02 vldr s12, [r7, #8]
  28912. 800c85e: eddf 5a1d vldr s11, [pc, #116] @ 800c8d4 <HAL_RCC_GetSysClockFreq+0x2e4>
  28913. 800c862: eec6 7a25 vdiv.f32 s15, s12, s11
  28914. 800c866: ee76 7aa7 vadd.f32 s15, s13, s15
  28915. 800c86a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28916. 800c86e: ee77 7aa6 vadd.f32 s15, s15, s13
  28917. 800c872: ee67 7a27 vmul.f32 s15, s14, s15
  28918. 800c876: edc7 7a07 vstr s15, [r7, #28]
  28919. break;
  28920. 800c87a: bf00 nop
  28921. }
  28922. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  28923. 800c87c: 4b11 ldr r3, [pc, #68] @ (800c8c4 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28924. 800c87e: 6b1b ldr r3, [r3, #48] @ 0x30
  28925. 800c880: 0a5b lsrs r3, r3, #9
  28926. 800c882: f003 037f and.w r3, r3, #127 @ 0x7f
  28927. 800c886: 3301 adds r3, #1
  28928. 800c888: 603b str r3, [r7, #0]
  28929. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  28930. 800c88a: 683b ldr r3, [r7, #0]
  28931. 800c88c: ee07 3a90 vmov s15, r3
  28932. 800c890: eeb8 7a67 vcvt.f32.u32 s14, s15
  28933. 800c894: edd7 6a07 vldr s13, [r7, #28]
  28934. 800c898: eec6 7a87 vdiv.f32 s15, s13, s14
  28935. 800c89c: eefc 7ae7 vcvt.u32.f32 s15, s15
  28936. 800c8a0: ee17 3a90 vmov r3, s15
  28937. 800c8a4: 61bb str r3, [r7, #24]
  28938. }
  28939. else
  28940. {
  28941. sysclockfreq = 0U;
  28942. }
  28943. break;
  28944. 800c8a6: e005 b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28945. sysclockfreq = 0U;
  28946. 800c8a8: 2300 movs r3, #0
  28947. 800c8aa: 61bb str r3, [r7, #24]
  28948. break;
  28949. 800c8ac: e002 b.n 800c8b4 <HAL_RCC_GetSysClockFreq+0x2c4>
  28950. default:
  28951. sysclockfreq = CSI_VALUE;
  28952. 800c8ae: 4b07 ldr r3, [pc, #28] @ (800c8cc <HAL_RCC_GetSysClockFreq+0x2dc>)
  28953. 800c8b0: 61bb str r3, [r7, #24]
  28954. break;
  28955. 800c8b2: bf00 nop
  28956. }
  28957. return sysclockfreq;
  28958. 800c8b4: 69bb ldr r3, [r7, #24]
  28959. }
  28960. 800c8b6: 4618 mov r0, r3
  28961. 800c8b8: 3724 adds r7, #36 @ 0x24
  28962. 800c8ba: 46bd mov sp, r7
  28963. 800c8bc: f85d 7b04 ldr.w r7, [sp], #4
  28964. 800c8c0: 4770 bx lr
  28965. 800c8c2: bf00 nop
  28966. 800c8c4: 58024400 .word 0x58024400
  28967. 800c8c8: 03d09000 .word 0x03d09000
  28968. 800c8cc: 003d0900 .word 0x003d0900
  28969. 800c8d0: 017d7840 .word 0x017d7840
  28970. 800c8d4: 46000000 .word 0x46000000
  28971. 800c8d8: 4c742400 .word 0x4c742400
  28972. 800c8dc: 4a742400 .word 0x4a742400
  28973. 800c8e0: 4bbebc20 .word 0x4bbebc20
  28974. 0800c8e4 <HAL_RCC_GetHCLKFreq>:
  28975. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  28976. * and updated within this function
  28977. * @retval HCLK frequency
  28978. */
  28979. uint32_t HAL_RCC_GetHCLKFreq(void)
  28980. {
  28981. 800c8e4: b580 push {r7, lr}
  28982. 800c8e6: b082 sub sp, #8
  28983. 800c8e8: af00 add r7, sp, #0
  28984. uint32_t common_system_clock;
  28985. #if defined(RCC_D1CFGR_D1CPRE)
  28986. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  28987. 800c8ea: f7ff fe81 bl 800c5f0 <HAL_RCC_GetSysClockFreq>
  28988. 800c8ee: 4602 mov r2, r0
  28989. 800c8f0: 4b10 ldr r3, [pc, #64] @ (800c934 <HAL_RCC_GetHCLKFreq+0x50>)
  28990. 800c8f2: 699b ldr r3, [r3, #24]
  28991. 800c8f4: 0a1b lsrs r3, r3, #8
  28992. 800c8f6: f003 030f and.w r3, r3, #15
  28993. 800c8fa: 490f ldr r1, [pc, #60] @ (800c938 <HAL_RCC_GetHCLKFreq+0x54>)
  28994. 800c8fc: 5ccb ldrb r3, [r1, r3]
  28995. 800c8fe: f003 031f and.w r3, r3, #31
  28996. 800c902: fa22 f303 lsr.w r3, r2, r3
  28997. 800c906: 607b str r3, [r7, #4]
  28998. #else
  28999. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  29000. #endif
  29001. #if defined(RCC_D1CFGR_HPRE)
  29002. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  29003. 800c908: 4b0a ldr r3, [pc, #40] @ (800c934 <HAL_RCC_GetHCLKFreq+0x50>)
  29004. 800c90a: 699b ldr r3, [r3, #24]
  29005. 800c90c: f003 030f and.w r3, r3, #15
  29006. 800c910: 4a09 ldr r2, [pc, #36] @ (800c938 <HAL_RCC_GetHCLKFreq+0x54>)
  29007. 800c912: 5cd3 ldrb r3, [r2, r3]
  29008. 800c914: f003 031f and.w r3, r3, #31
  29009. 800c918: 687a ldr r2, [r7, #4]
  29010. 800c91a: fa22 f303 lsr.w r3, r2, r3
  29011. 800c91e: 4a07 ldr r2, [pc, #28] @ (800c93c <HAL_RCC_GetHCLKFreq+0x58>)
  29012. 800c920: 6013 str r3, [r2, #0]
  29013. #endif
  29014. #if defined(DUAL_CORE) && defined(CORE_CM4)
  29015. SystemCoreClock = SystemD2Clock;
  29016. #else
  29017. SystemCoreClock = common_system_clock;
  29018. 800c922: 4a07 ldr r2, [pc, #28] @ (800c940 <HAL_RCC_GetHCLKFreq+0x5c>)
  29019. 800c924: 687b ldr r3, [r7, #4]
  29020. 800c926: 6013 str r3, [r2, #0]
  29021. #endif /* DUAL_CORE && CORE_CM4 */
  29022. return SystemD2Clock;
  29023. 800c928: 4b04 ldr r3, [pc, #16] @ (800c93c <HAL_RCC_GetHCLKFreq+0x58>)
  29024. 800c92a: 681b ldr r3, [r3, #0]
  29025. }
  29026. 800c92c: 4618 mov r0, r3
  29027. 800c92e: 3708 adds r7, #8
  29028. 800c930: 46bd mov sp, r7
  29029. 800c932: bd80 pop {r7, pc}
  29030. 800c934: 58024400 .word 0x58024400
  29031. 800c938: 0801878c .word 0x0801878c
  29032. 800c93c: 24000038 .word 0x24000038
  29033. 800c940: 24000034 .word 0x24000034
  29034. 0800c944 <HAL_RCC_GetPCLK1Freq>:
  29035. * @note Each time PCLK1 changes, this function must be called to update the
  29036. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  29037. * @retval PCLK1 frequency
  29038. */
  29039. uint32_t HAL_RCC_GetPCLK1Freq(void)
  29040. {
  29041. 800c944: b580 push {r7, lr}
  29042. 800c946: af00 add r7, sp, #0
  29043. #if defined (RCC_D2CFGR_D2PPRE1)
  29044. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29045. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  29046. 800c948: f7ff ffcc bl 800c8e4 <HAL_RCC_GetHCLKFreq>
  29047. 800c94c: 4602 mov r2, r0
  29048. 800c94e: 4b06 ldr r3, [pc, #24] @ (800c968 <HAL_RCC_GetPCLK1Freq+0x24>)
  29049. 800c950: 69db ldr r3, [r3, #28]
  29050. 800c952: 091b lsrs r3, r3, #4
  29051. 800c954: f003 0307 and.w r3, r3, #7
  29052. 800c958: 4904 ldr r1, [pc, #16] @ (800c96c <HAL_RCC_GetPCLK1Freq+0x28>)
  29053. 800c95a: 5ccb ldrb r3, [r1, r3]
  29054. 800c95c: f003 031f and.w r3, r3, #31
  29055. 800c960: fa22 f303 lsr.w r3, r2, r3
  29056. #else
  29057. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29058. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  29059. #endif
  29060. }
  29061. 800c964: 4618 mov r0, r3
  29062. 800c966: bd80 pop {r7, pc}
  29063. 800c968: 58024400 .word 0x58024400
  29064. 800c96c: 0801878c .word 0x0801878c
  29065. 0800c970 <HAL_RCC_GetPCLK2Freq>:
  29066. * @note Each time PCLK2 changes, this function must be called to update the
  29067. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  29068. * @retval PCLK1 frequency
  29069. */
  29070. uint32_t HAL_RCC_GetPCLK2Freq(void)
  29071. {
  29072. 800c970: b580 push {r7, lr}
  29073. 800c972: af00 add r7, sp, #0
  29074. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29075. #if defined(RCC_D2CFGR_D2PPRE2)
  29076. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  29077. 800c974: f7ff ffb6 bl 800c8e4 <HAL_RCC_GetHCLKFreq>
  29078. 800c978: 4602 mov r2, r0
  29079. 800c97a: 4b06 ldr r3, [pc, #24] @ (800c994 <HAL_RCC_GetPCLK2Freq+0x24>)
  29080. 800c97c: 69db ldr r3, [r3, #28]
  29081. 800c97e: 0a1b lsrs r3, r3, #8
  29082. 800c980: f003 0307 and.w r3, r3, #7
  29083. 800c984: 4904 ldr r1, [pc, #16] @ (800c998 <HAL_RCC_GetPCLK2Freq+0x28>)
  29084. 800c986: 5ccb ldrb r3, [r1, r3]
  29085. 800c988: f003 031f and.w r3, r3, #31
  29086. 800c98c: fa22 f303 lsr.w r3, r2, r3
  29087. #else
  29088. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  29089. #endif
  29090. }
  29091. 800c990: 4618 mov r0, r3
  29092. 800c992: bd80 pop {r7, pc}
  29093. 800c994: 58024400 .word 0x58024400
  29094. 800c998: 0801878c .word 0x0801878c
  29095. 0800c99c <HAL_RCC_GetClockConfig>:
  29096. * will be configured.
  29097. * @param pFLatency: Pointer on the Flash Latency.
  29098. * @retval None
  29099. */
  29100. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  29101. {
  29102. 800c99c: b480 push {r7}
  29103. 800c99e: b083 sub sp, #12
  29104. 800c9a0: af00 add r7, sp, #0
  29105. 800c9a2: 6078 str r0, [r7, #4]
  29106. 800c9a4: 6039 str r1, [r7, #0]
  29107. /* Set all possible values for the Clock type parameter --------------------*/
  29108. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  29109. 800c9a6: 687b ldr r3, [r7, #4]
  29110. 800c9a8: 223f movs r2, #63 @ 0x3f
  29111. 800c9aa: 601a str r2, [r3, #0]
  29112. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  29113. /* Get the SYSCLK configuration --------------------------------------------*/
  29114. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  29115. 800c9ac: 4b1a ldr r3, [pc, #104] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29116. 800c9ae: 691b ldr r3, [r3, #16]
  29117. 800c9b0: f003 0207 and.w r2, r3, #7
  29118. 800c9b4: 687b ldr r3, [r7, #4]
  29119. 800c9b6: 605a str r2, [r3, #4]
  29120. #if defined(RCC_D1CFGR_D1CPRE)
  29121. /* Get the SYSCLK configuration ----------------------------------------------*/
  29122. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  29123. 800c9b8: 4b17 ldr r3, [pc, #92] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29124. 800c9ba: 699b ldr r3, [r3, #24]
  29125. 800c9bc: f403 6270 and.w r2, r3, #3840 @ 0xf00
  29126. 800c9c0: 687b ldr r3, [r7, #4]
  29127. 800c9c2: 609a str r2, [r3, #8]
  29128. /* Get the D1HCLK configuration ----------------------------------------------*/
  29129. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  29130. 800c9c4: 4b14 ldr r3, [pc, #80] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29131. 800c9c6: 699b ldr r3, [r3, #24]
  29132. 800c9c8: f003 020f and.w r2, r3, #15
  29133. 800c9cc: 687b ldr r3, [r7, #4]
  29134. 800c9ce: 60da str r2, [r3, #12]
  29135. /* Get the APB3 configuration ----------------------------------------------*/
  29136. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  29137. 800c9d0: 4b11 ldr r3, [pc, #68] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29138. 800c9d2: 699b ldr r3, [r3, #24]
  29139. 800c9d4: f003 0270 and.w r2, r3, #112 @ 0x70
  29140. 800c9d8: 687b ldr r3, [r7, #4]
  29141. 800c9da: 611a str r2, [r3, #16]
  29142. /* Get the APB1 configuration ----------------------------------------------*/
  29143. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  29144. 800c9dc: 4b0e ldr r3, [pc, #56] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29145. 800c9de: 69db ldr r3, [r3, #28]
  29146. 800c9e0: f003 0270 and.w r2, r3, #112 @ 0x70
  29147. 800c9e4: 687b ldr r3, [r7, #4]
  29148. 800c9e6: 615a str r2, [r3, #20]
  29149. /* Get the APB2 configuration ----------------------------------------------*/
  29150. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  29151. 800c9e8: 4b0b ldr r3, [pc, #44] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29152. 800c9ea: 69db ldr r3, [r3, #28]
  29153. 800c9ec: f403 62e0 and.w r2, r3, #1792 @ 0x700
  29154. 800c9f0: 687b ldr r3, [r7, #4]
  29155. 800c9f2: 619a str r2, [r3, #24]
  29156. /* Get the APB4 configuration ----------------------------------------------*/
  29157. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  29158. 800c9f4: 4b08 ldr r3, [pc, #32] @ (800ca18 <HAL_RCC_GetClockConfig+0x7c>)
  29159. 800c9f6: 6a1b ldr r3, [r3, #32]
  29160. 800c9f8: f003 0270 and.w r2, r3, #112 @ 0x70
  29161. 800c9fc: 687b ldr r3, [r7, #4]
  29162. 800c9fe: 61da str r2, [r3, #28]
  29163. /* Get the APB4 configuration ----------------------------------------------*/
  29164. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  29165. #endif
  29166. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  29167. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  29168. 800ca00: 4b06 ldr r3, [pc, #24] @ (800ca1c <HAL_RCC_GetClockConfig+0x80>)
  29169. 800ca02: 681b ldr r3, [r3, #0]
  29170. 800ca04: f003 020f and.w r2, r3, #15
  29171. 800ca08: 683b ldr r3, [r7, #0]
  29172. 800ca0a: 601a str r2, [r3, #0]
  29173. }
  29174. 800ca0c: bf00 nop
  29175. 800ca0e: 370c adds r7, #12
  29176. 800ca10: 46bd mov sp, r7
  29177. 800ca12: f85d 7b04 ldr.w r7, [sp], #4
  29178. 800ca16: 4770 bx lr
  29179. 800ca18: 58024400 .word 0x58024400
  29180. 800ca1c: 52002000 .word 0x52002000
  29181. 0800ca20 <HAL_RCCEx_PeriphCLKConfig>:
  29182. * (*) : Available on some STM32H7 lines only.
  29183. *
  29184. * @retval HAL status
  29185. */
  29186. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  29187. {
  29188. 800ca20: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  29189. 800ca24: b0c8 sub sp, #288 @ 0x120
  29190. 800ca26: af00 add r7, sp, #0
  29191. 800ca28: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  29192. uint32_t tmpreg;
  29193. uint32_t tickstart;
  29194. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  29195. 800ca2c: 2300 movs r3, #0
  29196. 800ca2e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29197. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  29198. 800ca32: 2300 movs r3, #0
  29199. 800ca34: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29200. /*---------------------------- SPDIFRX configuration -------------------------------*/
  29201. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  29202. 800ca38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29203. 800ca3c: e9d3 2300 ldrd r2, r3, [r3]
  29204. 800ca40: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  29205. 800ca44: 2500 movs r5, #0
  29206. 800ca46: ea54 0305 orrs.w r3, r4, r5
  29207. 800ca4a: d049 beq.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29208. {
  29209. switch (PeriphClkInit->SpdifrxClockSelection)
  29210. 800ca4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29211. 800ca50: 6e9b ldr r3, [r3, #104] @ 0x68
  29212. 800ca52: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29213. 800ca56: d02f beq.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x98>
  29214. 800ca58: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29215. 800ca5c: d828 bhi.n 800cab0 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29216. 800ca5e: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29217. 800ca62: d01a beq.n 800ca9a <HAL_RCCEx_PeriphCLKConfig+0x7a>
  29218. 800ca64: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29219. 800ca68: d822 bhi.n 800cab0 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29220. 800ca6a: 2b00 cmp r3, #0
  29221. 800ca6c: d003 beq.n 800ca76 <HAL_RCCEx_PeriphCLKConfig+0x56>
  29222. 800ca6e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  29223. 800ca72: d007 beq.n 800ca84 <HAL_RCCEx_PeriphCLKConfig+0x64>
  29224. 800ca74: e01c b.n 800cab0 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29225. {
  29226. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  29227. /* Enable PLL1Q Clock output generated form System PLL . */
  29228. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29229. 800ca76: 4bb8 ldr r3, [pc, #736] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29230. 800ca78: 6adb ldr r3, [r3, #44] @ 0x2c
  29231. 800ca7a: 4ab7 ldr r2, [pc, #732] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29232. 800ca7c: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29233. 800ca80: 62d3 str r3, [r2, #44] @ 0x2c
  29234. /* SPDIFRX clock source configuration done later after clock selection check */
  29235. break;
  29236. 800ca82: e01a b.n 800caba <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29237. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  29238. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29239. 800ca84: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29240. 800ca88: 3308 adds r3, #8
  29241. 800ca8a: 2102 movs r1, #2
  29242. 800ca8c: 4618 mov r0, r3
  29243. 800ca8e: f002 fb45 bl 800f11c <RCCEx_PLL2_Config>
  29244. 800ca92: 4603 mov r3, r0
  29245. 800ca94: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29246. /* SPDIFRX clock source configuration done later after clock selection check */
  29247. break;
  29248. 800ca98: e00f b.n 800caba <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29249. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  29250. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29251. 800ca9a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29252. 800ca9e: 3328 adds r3, #40 @ 0x28
  29253. 800caa0: 2102 movs r1, #2
  29254. 800caa2: 4618 mov r0, r3
  29255. 800caa4: f002 fbec bl 800f280 <RCCEx_PLL3_Config>
  29256. 800caa8: 4603 mov r3, r0
  29257. 800caaa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29258. /* SPDIFRX clock source configuration done later after clock selection check */
  29259. break;
  29260. 800caae: e004 b.n 800caba <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29261. /* Internal OSC clock is used as source of SPDIFRX clock*/
  29262. /* SPDIFRX clock source configuration done later after clock selection check */
  29263. break;
  29264. default:
  29265. ret = HAL_ERROR;
  29266. 800cab0: 2301 movs r3, #1
  29267. 800cab2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29268. break;
  29269. 800cab6: e000 b.n 800caba <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29270. break;
  29271. 800cab8: bf00 nop
  29272. }
  29273. if (ret == HAL_OK)
  29274. 800caba: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29275. 800cabe: 2b00 cmp r3, #0
  29276. 800cac0: d10a bne.n 800cad8 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  29277. {
  29278. /* Set the source of SPDIFRX clock*/
  29279. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  29280. 800cac2: 4ba5 ldr r3, [pc, #660] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29281. 800cac4: 6d1b ldr r3, [r3, #80] @ 0x50
  29282. 800cac6: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  29283. 800caca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29284. 800cace: 6e9b ldr r3, [r3, #104] @ 0x68
  29285. 800cad0: 4aa1 ldr r2, [pc, #644] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29286. 800cad2: 430b orrs r3, r1
  29287. 800cad4: 6513 str r3, [r2, #80] @ 0x50
  29288. 800cad6: e003 b.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29289. }
  29290. else
  29291. {
  29292. /* set overall return value */
  29293. status = ret;
  29294. 800cad8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29295. 800cadc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29296. }
  29297. }
  29298. /*---------------------------- SAI1 configuration -------------------------------*/
  29299. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  29300. 800cae0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29301. 800cae4: e9d3 2300 ldrd r2, r3, [r3]
  29302. 800cae8: f402 7880 and.w r8, r2, #256 @ 0x100
  29303. 800caec: f04f 0900 mov.w r9, #0
  29304. 800caf0: ea58 0309 orrs.w r3, r8, r9
  29305. 800caf4: d047 beq.n 800cb86 <HAL_RCCEx_PeriphCLKConfig+0x166>
  29306. {
  29307. switch (PeriphClkInit->Sai1ClockSelection)
  29308. 800caf6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29309. 800cafa: 6d9b ldr r3, [r3, #88] @ 0x58
  29310. 800cafc: 2b04 cmp r3, #4
  29311. 800cafe: d82a bhi.n 800cb56 <HAL_RCCEx_PeriphCLKConfig+0x136>
  29312. 800cb00: a201 add r2, pc, #4 @ (adr r2, 800cb08 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  29313. 800cb02: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29314. 800cb06: bf00 nop
  29315. 800cb08: 0800cb1d .word 0x0800cb1d
  29316. 800cb0c: 0800cb2b .word 0x0800cb2b
  29317. 800cb10: 0800cb41 .word 0x0800cb41
  29318. 800cb14: 0800cb5f .word 0x0800cb5f
  29319. 800cb18: 0800cb5f .word 0x0800cb5f
  29320. {
  29321. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  29322. /* Enable SAI Clock output generated form System PLL . */
  29323. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29324. 800cb1c: 4b8e ldr r3, [pc, #568] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29325. 800cb1e: 6adb ldr r3, [r3, #44] @ 0x2c
  29326. 800cb20: 4a8d ldr r2, [pc, #564] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29327. 800cb22: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29328. 800cb26: 62d3 str r3, [r2, #44] @ 0x2c
  29329. /* SAI1 clock source configuration done later after clock selection check */
  29330. break;
  29331. 800cb28: e01a b.n 800cb60 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29332. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  29333. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29334. 800cb2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29335. 800cb2e: 3308 adds r3, #8
  29336. 800cb30: 2100 movs r1, #0
  29337. 800cb32: 4618 mov r0, r3
  29338. 800cb34: f002 faf2 bl 800f11c <RCCEx_PLL2_Config>
  29339. 800cb38: 4603 mov r3, r0
  29340. 800cb3a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29341. /* SAI1 clock source configuration done later after clock selection check */
  29342. break;
  29343. 800cb3e: e00f b.n 800cb60 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29344. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  29345. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29346. 800cb40: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29347. 800cb44: 3328 adds r3, #40 @ 0x28
  29348. 800cb46: 2100 movs r1, #0
  29349. 800cb48: 4618 mov r0, r3
  29350. 800cb4a: f002 fb99 bl 800f280 <RCCEx_PLL3_Config>
  29351. 800cb4e: 4603 mov r3, r0
  29352. 800cb50: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29353. /* SAI1 clock source configuration done later after clock selection check */
  29354. break;
  29355. 800cb54: e004 b.n 800cb60 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29356. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  29357. /* SAI1 clock source configuration done later after clock selection check */
  29358. break;
  29359. default:
  29360. ret = HAL_ERROR;
  29361. 800cb56: 2301 movs r3, #1
  29362. 800cb58: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29363. break;
  29364. 800cb5c: e000 b.n 800cb60 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29365. break;
  29366. 800cb5e: bf00 nop
  29367. }
  29368. if (ret == HAL_OK)
  29369. 800cb60: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29370. 800cb64: 2b00 cmp r3, #0
  29371. 800cb66: d10a bne.n 800cb7e <HAL_RCCEx_PeriphCLKConfig+0x15e>
  29372. {
  29373. /* Set the source of SAI1 clock*/
  29374. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  29375. 800cb68: 4b7b ldr r3, [pc, #492] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29376. 800cb6a: 6d1b ldr r3, [r3, #80] @ 0x50
  29377. 800cb6c: f023 0107 bic.w r1, r3, #7
  29378. 800cb70: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29379. 800cb74: 6d9b ldr r3, [r3, #88] @ 0x58
  29380. 800cb76: 4a78 ldr r2, [pc, #480] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29381. 800cb78: 430b orrs r3, r1
  29382. 800cb7a: 6513 str r3, [r2, #80] @ 0x50
  29383. 800cb7c: e003 b.n 800cb86 <HAL_RCCEx_PeriphCLKConfig+0x166>
  29384. }
  29385. else
  29386. {
  29387. /* set overall return value */
  29388. status = ret;
  29389. 800cb7e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29390. 800cb82: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29391. }
  29392. }
  29393. #if defined(SAI3)
  29394. /*---------------------------- SAI2/3 configuration -------------------------------*/
  29395. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  29396. 800cb86: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29397. 800cb8a: e9d3 2300 ldrd r2, r3, [r3]
  29398. 800cb8e: f402 7a00 and.w sl, r2, #512 @ 0x200
  29399. 800cb92: f04f 0b00 mov.w fp, #0
  29400. 800cb96: ea5a 030b orrs.w r3, sl, fp
  29401. 800cb9a: d04c beq.n 800cc36 <HAL_RCCEx_PeriphCLKConfig+0x216>
  29402. {
  29403. switch (PeriphClkInit->Sai23ClockSelection)
  29404. 800cb9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29405. 800cba0: 6ddb ldr r3, [r3, #92] @ 0x5c
  29406. 800cba2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29407. 800cba6: d030 beq.n 800cc0a <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  29408. 800cba8: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29409. 800cbac: d829 bhi.n 800cc02 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29410. 800cbae: 2bc0 cmp r3, #192 @ 0xc0
  29411. 800cbb0: d02d beq.n 800cc0e <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  29412. 800cbb2: 2bc0 cmp r3, #192 @ 0xc0
  29413. 800cbb4: d825 bhi.n 800cc02 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29414. 800cbb6: 2b80 cmp r3, #128 @ 0x80
  29415. 800cbb8: d018 beq.n 800cbec <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  29416. 800cbba: 2b80 cmp r3, #128 @ 0x80
  29417. 800cbbc: d821 bhi.n 800cc02 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29418. 800cbbe: 2b00 cmp r3, #0
  29419. 800cbc0: d002 beq.n 800cbc8 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  29420. 800cbc2: 2b40 cmp r3, #64 @ 0x40
  29421. 800cbc4: d007 beq.n 800cbd6 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  29422. 800cbc6: e01c b.n 800cc02 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29423. {
  29424. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  29425. /* Enable SAI Clock output generated form System PLL . */
  29426. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29427. 800cbc8: 4b63 ldr r3, [pc, #396] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29428. 800cbca: 6adb ldr r3, [r3, #44] @ 0x2c
  29429. 800cbcc: 4a62 ldr r2, [pc, #392] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29430. 800cbce: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29431. 800cbd2: 62d3 str r3, [r2, #44] @ 0x2c
  29432. /* SAI2/3 clock source configuration done later after clock selection check */
  29433. break;
  29434. 800cbd4: e01c b.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29435. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  29436. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29437. 800cbd6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29438. 800cbda: 3308 adds r3, #8
  29439. 800cbdc: 2100 movs r1, #0
  29440. 800cbde: 4618 mov r0, r3
  29441. 800cbe0: f002 fa9c bl 800f11c <RCCEx_PLL2_Config>
  29442. 800cbe4: 4603 mov r3, r0
  29443. 800cbe6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29444. /* SAI2/3 clock source configuration done later after clock selection check */
  29445. break;
  29446. 800cbea: e011 b.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29447. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  29448. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29449. 800cbec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29450. 800cbf0: 3328 adds r3, #40 @ 0x28
  29451. 800cbf2: 2100 movs r1, #0
  29452. 800cbf4: 4618 mov r0, r3
  29453. 800cbf6: f002 fb43 bl 800f280 <RCCEx_PLL3_Config>
  29454. 800cbfa: 4603 mov r3, r0
  29455. 800cbfc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29456. /* SAI2/3 clock source configuration done later after clock selection check */
  29457. break;
  29458. 800cc00: e006 b.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29459. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  29460. /* SAI2/3 clock source configuration done later after clock selection check */
  29461. break;
  29462. default:
  29463. ret = HAL_ERROR;
  29464. 800cc02: 2301 movs r3, #1
  29465. 800cc04: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29466. break;
  29467. 800cc08: e002 b.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29468. break;
  29469. 800cc0a: bf00 nop
  29470. 800cc0c: e000 b.n 800cc10 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29471. break;
  29472. 800cc0e: bf00 nop
  29473. }
  29474. if (ret == HAL_OK)
  29475. 800cc10: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29476. 800cc14: 2b00 cmp r3, #0
  29477. 800cc16: d10a bne.n 800cc2e <HAL_RCCEx_PeriphCLKConfig+0x20e>
  29478. {
  29479. /* Set the source of SAI2/3 clock*/
  29480. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  29481. 800cc18: 4b4f ldr r3, [pc, #316] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29482. 800cc1a: 6d1b ldr r3, [r3, #80] @ 0x50
  29483. 800cc1c: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  29484. 800cc20: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29485. 800cc24: 6ddb ldr r3, [r3, #92] @ 0x5c
  29486. 800cc26: 4a4c ldr r2, [pc, #304] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29487. 800cc28: 430b orrs r3, r1
  29488. 800cc2a: 6513 str r3, [r2, #80] @ 0x50
  29489. 800cc2c: e003 b.n 800cc36 <HAL_RCCEx_PeriphCLKConfig+0x216>
  29490. }
  29491. else
  29492. {
  29493. /* set overall return value */
  29494. status = ret;
  29495. 800cc2e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29496. 800cc32: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29497. }
  29498. #endif /*SAI2B*/
  29499. #if defined(SAI4)
  29500. /*---------------------------- SAI4A configuration -------------------------------*/
  29501. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  29502. 800cc36: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29503. 800cc3a: e9d3 2300 ldrd r2, r3, [r3]
  29504. 800cc3e: f402 6380 and.w r3, r2, #1024 @ 0x400
  29505. 800cc42: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  29506. 800cc46: 2300 movs r3, #0
  29507. 800cc48: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  29508. 800cc4c: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  29509. 800cc50: 460b mov r3, r1
  29510. 800cc52: 4313 orrs r3, r2
  29511. 800cc54: d053 beq.n 800ccfe <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29512. {
  29513. switch (PeriphClkInit->Sai4AClockSelection)
  29514. 800cc56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29515. 800cc5a: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29516. 800cc5e: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29517. 800cc62: d035 beq.n 800ccd0 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  29518. 800cc64: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29519. 800cc68: d82e bhi.n 800ccc8 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29520. 800cc6a: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29521. 800cc6e: d031 beq.n 800ccd4 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  29522. 800cc70: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29523. 800cc74: d828 bhi.n 800ccc8 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29524. 800cc76: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29525. 800cc7a: d01a beq.n 800ccb2 <HAL_RCCEx_PeriphCLKConfig+0x292>
  29526. 800cc7c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29527. 800cc80: d822 bhi.n 800ccc8 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29528. 800cc82: 2b00 cmp r3, #0
  29529. 800cc84: d003 beq.n 800cc8e <HAL_RCCEx_PeriphCLKConfig+0x26e>
  29530. 800cc86: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29531. 800cc8a: d007 beq.n 800cc9c <HAL_RCCEx_PeriphCLKConfig+0x27c>
  29532. 800cc8c: e01c b.n 800ccc8 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29533. {
  29534. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29535. /* Enable SAI Clock output generated form System PLL . */
  29536. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29537. 800cc8e: 4b32 ldr r3, [pc, #200] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29538. 800cc90: 6adb ldr r3, [r3, #44] @ 0x2c
  29539. 800cc92: 4a31 ldr r2, [pc, #196] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29540. 800cc94: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29541. 800cc98: 62d3 str r3, [r2, #44] @ 0x2c
  29542. /* SAI1 clock source configuration done later after clock selection check */
  29543. break;
  29544. 800cc9a: e01c b.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29545. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29546. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29547. 800cc9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29548. 800cca0: 3308 adds r3, #8
  29549. 800cca2: 2100 movs r1, #0
  29550. 800cca4: 4618 mov r0, r3
  29551. 800cca6: f002 fa39 bl 800f11c <RCCEx_PLL2_Config>
  29552. 800ccaa: 4603 mov r3, r0
  29553. 800ccac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29554. /* SAI2 clock source configuration done later after clock selection check */
  29555. break;
  29556. 800ccb0: e011 b.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29557. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29558. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29559. 800ccb2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29560. 800ccb6: 3328 adds r3, #40 @ 0x28
  29561. 800ccb8: 2100 movs r1, #0
  29562. 800ccba: 4618 mov r0, r3
  29563. 800ccbc: f002 fae0 bl 800f280 <RCCEx_PLL3_Config>
  29564. 800ccc0: 4603 mov r3, r0
  29565. 800ccc2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29566. /* SAI1 clock source configuration done later after clock selection check */
  29567. break;
  29568. 800ccc6: e006 b.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29569. /* SAI4A clock source configuration done later after clock selection check */
  29570. break;
  29571. #endif /* RCC_VER_3_0 */
  29572. default:
  29573. ret = HAL_ERROR;
  29574. 800ccc8: 2301 movs r3, #1
  29575. 800ccca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29576. break;
  29577. 800ccce: e002 b.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29578. break;
  29579. 800ccd0: bf00 nop
  29580. 800ccd2: e000 b.n 800ccd6 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29581. break;
  29582. 800ccd4: bf00 nop
  29583. }
  29584. if (ret == HAL_OK)
  29585. 800ccd6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29586. 800ccda: 2b00 cmp r3, #0
  29587. 800ccdc: d10b bne.n 800ccf6 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  29588. {
  29589. /* Set the source of SAI4A clock*/
  29590. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  29591. 800ccde: 4b1e ldr r3, [pc, #120] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29592. 800cce0: 6d9b ldr r3, [r3, #88] @ 0x58
  29593. 800cce2: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  29594. 800cce6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29595. 800ccea: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29596. 800ccee: 4a1a ldr r2, [pc, #104] @ (800cd58 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29597. 800ccf0: 430b orrs r3, r1
  29598. 800ccf2: 6593 str r3, [r2, #88] @ 0x58
  29599. 800ccf4: e003 b.n 800ccfe <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29600. }
  29601. else
  29602. {
  29603. /* set overall return value */
  29604. status = ret;
  29605. 800ccf6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29606. 800ccfa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29607. }
  29608. }
  29609. /*---------------------------- SAI4B configuration -------------------------------*/
  29610. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  29611. 800ccfe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29612. 800cd02: e9d3 2300 ldrd r2, r3, [r3]
  29613. 800cd06: f402 6300 and.w r3, r2, #2048 @ 0x800
  29614. 800cd0a: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  29615. 800cd0e: 2300 movs r3, #0
  29616. 800cd10: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  29617. 800cd14: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  29618. 800cd18: 460b mov r3, r1
  29619. 800cd1a: 4313 orrs r3, r2
  29620. 800cd1c: d056 beq.n 800cdcc <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29621. {
  29622. switch (PeriphClkInit->Sai4BClockSelection)
  29623. 800cd1e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29624. 800cd22: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29625. 800cd26: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29626. 800cd2a: d038 beq.n 800cd9e <HAL_RCCEx_PeriphCLKConfig+0x37e>
  29627. 800cd2c: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29628. 800cd30: d831 bhi.n 800cd96 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29629. 800cd32: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29630. 800cd36: d034 beq.n 800cda2 <HAL_RCCEx_PeriphCLKConfig+0x382>
  29631. 800cd38: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29632. 800cd3c: d82b bhi.n 800cd96 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29633. 800cd3e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29634. 800cd42: d01d beq.n 800cd80 <HAL_RCCEx_PeriphCLKConfig+0x360>
  29635. 800cd44: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29636. 800cd48: d825 bhi.n 800cd96 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29637. 800cd4a: 2b00 cmp r3, #0
  29638. 800cd4c: d006 beq.n 800cd5c <HAL_RCCEx_PeriphCLKConfig+0x33c>
  29639. 800cd4e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  29640. 800cd52: d00a beq.n 800cd6a <HAL_RCCEx_PeriphCLKConfig+0x34a>
  29641. 800cd54: e01f b.n 800cd96 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29642. 800cd56: bf00 nop
  29643. 800cd58: 58024400 .word 0x58024400
  29644. {
  29645. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29646. /* Enable SAI Clock output generated form System PLL . */
  29647. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29648. 800cd5c: 4ba2 ldr r3, [pc, #648] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29649. 800cd5e: 6adb ldr r3, [r3, #44] @ 0x2c
  29650. 800cd60: 4aa1 ldr r2, [pc, #644] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29651. 800cd62: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29652. 800cd66: 62d3 str r3, [r2, #44] @ 0x2c
  29653. /* SAI1 clock source configuration done later after clock selection check */
  29654. break;
  29655. 800cd68: e01c b.n 800cda4 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29656. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29657. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29658. 800cd6a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29659. 800cd6e: 3308 adds r3, #8
  29660. 800cd70: 2100 movs r1, #0
  29661. 800cd72: 4618 mov r0, r3
  29662. 800cd74: f002 f9d2 bl 800f11c <RCCEx_PLL2_Config>
  29663. 800cd78: 4603 mov r3, r0
  29664. 800cd7a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29665. /* SAI2 clock source configuration done later after clock selection check */
  29666. break;
  29667. 800cd7e: e011 b.n 800cda4 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29668. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29669. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29670. 800cd80: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29671. 800cd84: 3328 adds r3, #40 @ 0x28
  29672. 800cd86: 2100 movs r1, #0
  29673. 800cd88: 4618 mov r0, r3
  29674. 800cd8a: f002 fa79 bl 800f280 <RCCEx_PLL3_Config>
  29675. 800cd8e: 4603 mov r3, r0
  29676. 800cd90: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29677. /* SAI1 clock source configuration done later after clock selection check */
  29678. break;
  29679. 800cd94: e006 b.n 800cda4 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29680. /* SAI4B clock source configuration done later after clock selection check */
  29681. break;
  29682. #endif /* RCC_VER_3_0 */
  29683. default:
  29684. ret = HAL_ERROR;
  29685. 800cd96: 2301 movs r3, #1
  29686. 800cd98: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29687. break;
  29688. 800cd9c: e002 b.n 800cda4 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29689. break;
  29690. 800cd9e: bf00 nop
  29691. 800cda0: e000 b.n 800cda4 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29692. break;
  29693. 800cda2: bf00 nop
  29694. }
  29695. if (ret == HAL_OK)
  29696. 800cda4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29697. 800cda8: 2b00 cmp r3, #0
  29698. 800cdaa: d10b bne.n 800cdc4 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  29699. {
  29700. /* Set the source of SAI4B clock*/
  29701. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  29702. 800cdac: 4b8e ldr r3, [pc, #568] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29703. 800cdae: 6d9b ldr r3, [r3, #88] @ 0x58
  29704. 800cdb0: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  29705. 800cdb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29706. 800cdb8: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29707. 800cdbc: 4a8a ldr r2, [pc, #552] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29708. 800cdbe: 430b orrs r3, r1
  29709. 800cdc0: 6593 str r3, [r2, #88] @ 0x58
  29710. 800cdc2: e003 b.n 800cdcc <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29711. }
  29712. else
  29713. {
  29714. /* set overall return value */
  29715. status = ret;
  29716. 800cdc4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29717. 800cdc8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29718. }
  29719. #endif /*SAI4*/
  29720. #if defined(QUADSPI)
  29721. /*---------------------------- QSPI configuration -------------------------------*/
  29722. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  29723. 800cdcc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29724. 800cdd0: e9d3 2300 ldrd r2, r3, [r3]
  29725. 800cdd4: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  29726. 800cdd8: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  29727. 800cddc: 2300 movs r3, #0
  29728. 800cdde: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  29729. 800cde2: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  29730. 800cde6: 460b mov r3, r1
  29731. 800cde8: 4313 orrs r3, r2
  29732. 800cdea: d03a beq.n 800ce62 <HAL_RCCEx_PeriphCLKConfig+0x442>
  29733. {
  29734. switch (PeriphClkInit->QspiClockSelection)
  29735. 800cdec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29736. 800cdf0: 6cdb ldr r3, [r3, #76] @ 0x4c
  29737. 800cdf2: 2b30 cmp r3, #48 @ 0x30
  29738. 800cdf4: d01f beq.n 800ce36 <HAL_RCCEx_PeriphCLKConfig+0x416>
  29739. 800cdf6: 2b30 cmp r3, #48 @ 0x30
  29740. 800cdf8: d819 bhi.n 800ce2e <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29741. 800cdfa: 2b20 cmp r3, #32
  29742. 800cdfc: d00c beq.n 800ce18 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  29743. 800cdfe: 2b20 cmp r3, #32
  29744. 800ce00: d815 bhi.n 800ce2e <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29745. 800ce02: 2b00 cmp r3, #0
  29746. 800ce04: d019 beq.n 800ce3a <HAL_RCCEx_PeriphCLKConfig+0x41a>
  29747. 800ce06: 2b10 cmp r3, #16
  29748. 800ce08: d111 bne.n 800ce2e <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29749. {
  29750. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  29751. /* Enable QSPI Clock output generated form System PLL . */
  29752. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29753. 800ce0a: 4b77 ldr r3, [pc, #476] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29754. 800ce0c: 6adb ldr r3, [r3, #44] @ 0x2c
  29755. 800ce0e: 4a76 ldr r2, [pc, #472] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29756. 800ce10: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29757. 800ce14: 62d3 str r3, [r2, #44] @ 0x2c
  29758. /* QSPI clock source configuration done later after clock selection check */
  29759. break;
  29760. 800ce16: e011 b.n 800ce3c <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29761. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  29762. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29763. 800ce18: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29764. 800ce1c: 3308 adds r3, #8
  29765. 800ce1e: 2102 movs r1, #2
  29766. 800ce20: 4618 mov r0, r3
  29767. 800ce22: f002 f97b bl 800f11c <RCCEx_PLL2_Config>
  29768. 800ce26: 4603 mov r3, r0
  29769. 800ce28: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29770. /* QSPI clock source configuration done later after clock selection check */
  29771. break;
  29772. 800ce2c: e006 b.n 800ce3c <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29773. case RCC_QSPICLKSOURCE_D1HCLK:
  29774. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  29775. break;
  29776. default:
  29777. ret = HAL_ERROR;
  29778. 800ce2e: 2301 movs r3, #1
  29779. 800ce30: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29780. break;
  29781. 800ce34: e002 b.n 800ce3c <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29782. break;
  29783. 800ce36: bf00 nop
  29784. 800ce38: e000 b.n 800ce3c <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29785. break;
  29786. 800ce3a: bf00 nop
  29787. }
  29788. if (ret == HAL_OK)
  29789. 800ce3c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29790. 800ce40: 2b00 cmp r3, #0
  29791. 800ce42: d10a bne.n 800ce5a <HAL_RCCEx_PeriphCLKConfig+0x43a>
  29792. {
  29793. /* Set the source of QSPI clock*/
  29794. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  29795. 800ce44: 4b68 ldr r3, [pc, #416] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29796. 800ce46: 6cdb ldr r3, [r3, #76] @ 0x4c
  29797. 800ce48: f023 0130 bic.w r1, r3, #48 @ 0x30
  29798. 800ce4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29799. 800ce50: 6cdb ldr r3, [r3, #76] @ 0x4c
  29800. 800ce52: 4a65 ldr r2, [pc, #404] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29801. 800ce54: 430b orrs r3, r1
  29802. 800ce56: 64d3 str r3, [r2, #76] @ 0x4c
  29803. 800ce58: e003 b.n 800ce62 <HAL_RCCEx_PeriphCLKConfig+0x442>
  29804. }
  29805. else
  29806. {
  29807. /* set overall return value */
  29808. status = ret;
  29809. 800ce5a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29810. 800ce5e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29811. }
  29812. }
  29813. #endif /*OCTOSPI*/
  29814. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  29815. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  29816. 800ce62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29817. 800ce66: e9d3 2300 ldrd r2, r3, [r3]
  29818. 800ce6a: f402 5380 and.w r3, r2, #4096 @ 0x1000
  29819. 800ce6e: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  29820. 800ce72: 2300 movs r3, #0
  29821. 800ce74: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  29822. 800ce78: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  29823. 800ce7c: 460b mov r3, r1
  29824. 800ce7e: 4313 orrs r3, r2
  29825. 800ce80: d051 beq.n 800cf26 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29826. {
  29827. switch (PeriphClkInit->Spi123ClockSelection)
  29828. 800ce82: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29829. 800ce86: 6e1b ldr r3, [r3, #96] @ 0x60
  29830. 800ce88: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29831. 800ce8c: d035 beq.n 800cefa <HAL_RCCEx_PeriphCLKConfig+0x4da>
  29832. 800ce8e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29833. 800ce92: d82e bhi.n 800cef2 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29834. 800ce94: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29835. 800ce98: d031 beq.n 800cefe <HAL_RCCEx_PeriphCLKConfig+0x4de>
  29836. 800ce9a: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29837. 800ce9e: d828 bhi.n 800cef2 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29838. 800cea0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29839. 800cea4: d01a beq.n 800cedc <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  29840. 800cea6: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29841. 800ceaa: d822 bhi.n 800cef2 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29842. 800ceac: 2b00 cmp r3, #0
  29843. 800ceae: d003 beq.n 800ceb8 <HAL_RCCEx_PeriphCLKConfig+0x498>
  29844. 800ceb0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29845. 800ceb4: d007 beq.n 800cec6 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  29846. 800ceb6: e01c b.n 800cef2 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29847. {
  29848. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  29849. /* Enable SPI Clock output generated form System PLL . */
  29850. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29851. 800ceb8: 4b4b ldr r3, [pc, #300] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29852. 800ceba: 6adb ldr r3, [r3, #44] @ 0x2c
  29853. 800cebc: 4a4a ldr r2, [pc, #296] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29854. 800cebe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29855. 800cec2: 62d3 str r3, [r2, #44] @ 0x2c
  29856. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29857. break;
  29858. 800cec4: e01c b.n 800cf00 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29859. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  29860. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29861. 800cec6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29862. 800ceca: 3308 adds r3, #8
  29863. 800cecc: 2100 movs r1, #0
  29864. 800cece: 4618 mov r0, r3
  29865. 800ced0: f002 f924 bl 800f11c <RCCEx_PLL2_Config>
  29866. 800ced4: 4603 mov r3, r0
  29867. 800ced6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29868. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29869. break;
  29870. 800ceda: e011 b.n 800cf00 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29871. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  29872. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29873. 800cedc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29874. 800cee0: 3328 adds r3, #40 @ 0x28
  29875. 800cee2: 2100 movs r1, #0
  29876. 800cee4: 4618 mov r0, r3
  29877. 800cee6: f002 f9cb bl 800f280 <RCCEx_PLL3_Config>
  29878. 800ceea: 4603 mov r3, r0
  29879. 800ceec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29880. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29881. break;
  29882. 800cef0: e006 b.n 800cf00 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29883. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  29884. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29885. break;
  29886. default:
  29887. ret = HAL_ERROR;
  29888. 800cef2: 2301 movs r3, #1
  29889. 800cef4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29890. break;
  29891. 800cef8: e002 b.n 800cf00 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29892. break;
  29893. 800cefa: bf00 nop
  29894. 800cefc: e000 b.n 800cf00 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29895. break;
  29896. 800cefe: bf00 nop
  29897. }
  29898. if (ret == HAL_OK)
  29899. 800cf00: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29900. 800cf04: 2b00 cmp r3, #0
  29901. 800cf06: d10a bne.n 800cf1e <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  29902. {
  29903. /* Set the source of SPI1/2/3 clock*/
  29904. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  29905. 800cf08: 4b37 ldr r3, [pc, #220] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29906. 800cf0a: 6d1b ldr r3, [r3, #80] @ 0x50
  29907. 800cf0c: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  29908. 800cf10: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29909. 800cf14: 6e1b ldr r3, [r3, #96] @ 0x60
  29910. 800cf16: 4a34 ldr r2, [pc, #208] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29911. 800cf18: 430b orrs r3, r1
  29912. 800cf1a: 6513 str r3, [r2, #80] @ 0x50
  29913. 800cf1c: e003 b.n 800cf26 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29914. }
  29915. else
  29916. {
  29917. /* set overall return value */
  29918. status = ret;
  29919. 800cf1e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29920. 800cf22: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29921. }
  29922. }
  29923. /*---------------------------- SPI4/5 configuration -------------------------------*/
  29924. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  29925. 800cf26: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29926. 800cf2a: e9d3 2300 ldrd r2, r3, [r3]
  29927. 800cf2e: f402 5300 and.w r3, r2, #8192 @ 0x2000
  29928. 800cf32: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29929. 800cf36: 2300 movs r3, #0
  29930. 800cf38: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29931. 800cf3c: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  29932. 800cf40: 460b mov r3, r1
  29933. 800cf42: 4313 orrs r3, r2
  29934. 800cf44: d056 beq.n 800cff4 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29935. {
  29936. switch (PeriphClkInit->Spi45ClockSelection)
  29937. 800cf46: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29938. 800cf4a: 6e5b ldr r3, [r3, #100] @ 0x64
  29939. 800cf4c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29940. 800cf50: d033 beq.n 800cfba <HAL_RCCEx_PeriphCLKConfig+0x59a>
  29941. 800cf52: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29942. 800cf56: d82c bhi.n 800cfb2 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29943. 800cf58: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29944. 800cf5c: d02f beq.n 800cfbe <HAL_RCCEx_PeriphCLKConfig+0x59e>
  29945. 800cf5e: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29946. 800cf62: d826 bhi.n 800cfb2 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29947. 800cf64: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29948. 800cf68: d02b beq.n 800cfc2 <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  29949. 800cf6a: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29950. 800cf6e: d820 bhi.n 800cfb2 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29951. 800cf70: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29952. 800cf74: d012 beq.n 800cf9c <HAL_RCCEx_PeriphCLKConfig+0x57c>
  29953. 800cf76: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29954. 800cf7a: d81a bhi.n 800cfb2 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29955. 800cf7c: 2b00 cmp r3, #0
  29956. 800cf7e: d022 beq.n 800cfc6 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  29957. 800cf80: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29958. 800cf84: d115 bne.n 800cfb2 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29959. /* SPI4/5 clock source configuration done later after clock selection check */
  29960. break;
  29961. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  29962. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29963. 800cf86: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29964. 800cf8a: 3308 adds r3, #8
  29965. 800cf8c: 2101 movs r1, #1
  29966. 800cf8e: 4618 mov r0, r3
  29967. 800cf90: f002 f8c4 bl 800f11c <RCCEx_PLL2_Config>
  29968. 800cf94: 4603 mov r3, r0
  29969. 800cf96: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29970. /* SPI4/5 clock source configuration done later after clock selection check */
  29971. break;
  29972. 800cf9a: e015 b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29973. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  29974. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29975. 800cf9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29976. 800cfa0: 3328 adds r3, #40 @ 0x28
  29977. 800cfa2: 2101 movs r1, #1
  29978. 800cfa4: 4618 mov r0, r3
  29979. 800cfa6: f002 f96b bl 800f280 <RCCEx_PLL3_Config>
  29980. 800cfaa: 4603 mov r3, r0
  29981. 800cfac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29982. /* SPI4/5 clock source configuration done later after clock selection check */
  29983. break;
  29984. 800cfb0: e00a b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29985. /* HSE, oscillator is used as source of SPI4/5 clock */
  29986. /* SPI4/5 clock source configuration done later after clock selection check */
  29987. break;
  29988. default:
  29989. ret = HAL_ERROR;
  29990. 800cfb2: 2301 movs r3, #1
  29991. 800cfb4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29992. break;
  29993. 800cfb8: e006 b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29994. break;
  29995. 800cfba: bf00 nop
  29996. 800cfbc: e004 b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29997. break;
  29998. 800cfbe: bf00 nop
  29999. 800cfc0: e002 b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  30000. break;
  30001. 800cfc2: bf00 nop
  30002. 800cfc4: e000 b.n 800cfc8 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  30003. break;
  30004. 800cfc6: bf00 nop
  30005. }
  30006. if (ret == HAL_OK)
  30007. 800cfc8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30008. 800cfcc: 2b00 cmp r3, #0
  30009. 800cfce: d10d bne.n 800cfec <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  30010. {
  30011. /* Set the source of SPI4/5 clock*/
  30012. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  30013. 800cfd0: 4b05 ldr r3, [pc, #20] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  30014. 800cfd2: 6d1b ldr r3, [r3, #80] @ 0x50
  30015. 800cfd4: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  30016. 800cfd8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30017. 800cfdc: 6e5b ldr r3, [r3, #100] @ 0x64
  30018. 800cfde: 4a02 ldr r2, [pc, #8] @ (800cfe8 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  30019. 800cfe0: 430b orrs r3, r1
  30020. 800cfe2: 6513 str r3, [r2, #80] @ 0x50
  30021. 800cfe4: e006 b.n 800cff4 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  30022. 800cfe6: bf00 nop
  30023. 800cfe8: 58024400 .word 0x58024400
  30024. }
  30025. else
  30026. {
  30027. /* set overall return value */
  30028. status = ret;
  30029. 800cfec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30030. 800cff0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30031. }
  30032. }
  30033. /*---------------------------- SPI6 configuration -------------------------------*/
  30034. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  30035. 800cff4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30036. 800cff8: e9d3 2300 ldrd r2, r3, [r3]
  30037. 800cffc: f402 4380 and.w r3, r2, #16384 @ 0x4000
  30038. 800d000: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  30039. 800d004: 2300 movs r3, #0
  30040. 800d006: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  30041. 800d00a: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  30042. 800d00e: 460b mov r3, r1
  30043. 800d010: 4313 orrs r3, r2
  30044. 800d012: d055 beq.n 800d0c0 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  30045. {
  30046. switch (PeriphClkInit->Spi6ClockSelection)
  30047. 800d014: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30048. 800d018: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30049. 800d01c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30050. 800d020: d033 beq.n 800d08a <HAL_RCCEx_PeriphCLKConfig+0x66a>
  30051. 800d022: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30052. 800d026: d82c bhi.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30053. 800d028: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30054. 800d02c: d02f beq.n 800d08e <HAL_RCCEx_PeriphCLKConfig+0x66e>
  30055. 800d02e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30056. 800d032: d826 bhi.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30057. 800d034: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30058. 800d038: d02b beq.n 800d092 <HAL_RCCEx_PeriphCLKConfig+0x672>
  30059. 800d03a: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30060. 800d03e: d820 bhi.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30061. 800d040: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30062. 800d044: d012 beq.n 800d06c <HAL_RCCEx_PeriphCLKConfig+0x64c>
  30063. 800d046: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30064. 800d04a: d81a bhi.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30065. 800d04c: 2b00 cmp r3, #0
  30066. 800d04e: d022 beq.n 800d096 <HAL_RCCEx_PeriphCLKConfig+0x676>
  30067. 800d050: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30068. 800d054: d115 bne.n 800d082 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30069. /* SPI6 clock source configuration done later after clock selection check */
  30070. break;
  30071. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  30072. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30073. 800d056: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30074. 800d05a: 3308 adds r3, #8
  30075. 800d05c: 2101 movs r1, #1
  30076. 800d05e: 4618 mov r0, r3
  30077. 800d060: f002 f85c bl 800f11c <RCCEx_PLL2_Config>
  30078. 800d064: 4603 mov r3, r0
  30079. 800d066: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30080. /* SPI6 clock source configuration done later after clock selection check */
  30081. break;
  30082. 800d06a: e015 b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30083. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  30084. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30085. 800d06c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30086. 800d070: 3328 adds r3, #40 @ 0x28
  30087. 800d072: 2101 movs r1, #1
  30088. 800d074: 4618 mov r0, r3
  30089. 800d076: f002 f903 bl 800f280 <RCCEx_PLL3_Config>
  30090. 800d07a: 4603 mov r3, r0
  30091. 800d07c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30092. /* SPI6 clock source configuration done later after clock selection check */
  30093. break;
  30094. 800d080: e00a b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30095. /* SPI6 clock source configuration done later after clock selection check */
  30096. break;
  30097. #endif
  30098. default:
  30099. ret = HAL_ERROR;
  30100. 800d082: 2301 movs r3, #1
  30101. 800d084: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30102. break;
  30103. 800d088: e006 b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30104. break;
  30105. 800d08a: bf00 nop
  30106. 800d08c: e004 b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30107. break;
  30108. 800d08e: bf00 nop
  30109. 800d090: e002 b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30110. break;
  30111. 800d092: bf00 nop
  30112. 800d094: e000 b.n 800d098 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30113. break;
  30114. 800d096: bf00 nop
  30115. }
  30116. if (ret == HAL_OK)
  30117. 800d098: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30118. 800d09c: 2b00 cmp r3, #0
  30119. 800d09e: d10b bne.n 800d0b8 <HAL_RCCEx_PeriphCLKConfig+0x698>
  30120. {
  30121. /* Set the source of SPI6 clock*/
  30122. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  30123. 800d0a0: 4ba3 ldr r3, [pc, #652] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30124. 800d0a2: 6d9b ldr r3, [r3, #88] @ 0x58
  30125. 800d0a4: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30126. 800d0a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30127. 800d0ac: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30128. 800d0b0: 4a9f ldr r2, [pc, #636] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30129. 800d0b2: 430b orrs r3, r1
  30130. 800d0b4: 6593 str r3, [r2, #88] @ 0x58
  30131. 800d0b6: e003 b.n 800d0c0 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  30132. }
  30133. else
  30134. {
  30135. /* set overall return value */
  30136. status = ret;
  30137. 800d0b8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30138. 800d0bc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30139. }
  30140. #endif /*DSI*/
  30141. #if defined(FDCAN1) || defined(FDCAN2)
  30142. /*---------------------------- FDCAN configuration -------------------------------*/
  30143. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  30144. 800d0c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30145. 800d0c4: e9d3 2300 ldrd r2, r3, [r3]
  30146. 800d0c8: f402 4300 and.w r3, r2, #32768 @ 0x8000
  30147. 800d0cc: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  30148. 800d0d0: 2300 movs r3, #0
  30149. 800d0d2: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  30150. 800d0d6: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  30151. 800d0da: 460b mov r3, r1
  30152. 800d0dc: 4313 orrs r3, r2
  30153. 800d0de: d037 beq.n 800d150 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30154. {
  30155. switch (PeriphClkInit->FdcanClockSelection)
  30156. 800d0e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30157. 800d0e4: 6f1b ldr r3, [r3, #112] @ 0x70
  30158. 800d0e6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30159. 800d0ea: d00e beq.n 800d10a <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  30160. 800d0ec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30161. 800d0f0: d816 bhi.n 800d120 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30162. 800d0f2: 2b00 cmp r3, #0
  30163. 800d0f4: d018 beq.n 800d128 <HAL_RCCEx_PeriphCLKConfig+0x708>
  30164. 800d0f6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30165. 800d0fa: d111 bne.n 800d120 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30166. {
  30167. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  30168. /* Enable FDCAN Clock output generated form System PLL . */
  30169. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30170. 800d0fc: 4b8c ldr r3, [pc, #560] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30171. 800d0fe: 6adb ldr r3, [r3, #44] @ 0x2c
  30172. 800d100: 4a8b ldr r2, [pc, #556] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30173. 800d102: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30174. 800d106: 62d3 str r3, [r2, #44] @ 0x2c
  30175. /* FDCAN clock source configuration done later after clock selection check */
  30176. break;
  30177. 800d108: e00f b.n 800d12a <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30178. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  30179. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30180. 800d10a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30181. 800d10e: 3308 adds r3, #8
  30182. 800d110: 2101 movs r1, #1
  30183. 800d112: 4618 mov r0, r3
  30184. 800d114: f002 f802 bl 800f11c <RCCEx_PLL2_Config>
  30185. 800d118: 4603 mov r3, r0
  30186. 800d11a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30187. /* FDCAN clock source configuration done later after clock selection check */
  30188. break;
  30189. 800d11e: e004 b.n 800d12a <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30190. /* HSE is used as clock source for FDCAN*/
  30191. /* FDCAN clock source configuration done later after clock selection check */
  30192. break;
  30193. default:
  30194. ret = HAL_ERROR;
  30195. 800d120: 2301 movs r3, #1
  30196. 800d122: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30197. break;
  30198. 800d126: e000 b.n 800d12a <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30199. break;
  30200. 800d128: bf00 nop
  30201. }
  30202. if (ret == HAL_OK)
  30203. 800d12a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30204. 800d12e: 2b00 cmp r3, #0
  30205. 800d130: d10a bne.n 800d148 <HAL_RCCEx_PeriphCLKConfig+0x728>
  30206. {
  30207. /* Set the source of FDCAN clock*/
  30208. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  30209. 800d132: 4b7f ldr r3, [pc, #508] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30210. 800d134: 6d1b ldr r3, [r3, #80] @ 0x50
  30211. 800d136: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30212. 800d13a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30213. 800d13e: 6f1b ldr r3, [r3, #112] @ 0x70
  30214. 800d140: 4a7b ldr r2, [pc, #492] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30215. 800d142: 430b orrs r3, r1
  30216. 800d144: 6513 str r3, [r2, #80] @ 0x50
  30217. 800d146: e003 b.n 800d150 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30218. }
  30219. else
  30220. {
  30221. /* set overall return value */
  30222. status = ret;
  30223. 800d148: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30224. 800d14c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30225. }
  30226. }
  30227. #endif /*FDCAN1 || FDCAN2*/
  30228. /*---------------------------- FMC configuration -------------------------------*/
  30229. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  30230. 800d150: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30231. 800d154: e9d3 2300 ldrd r2, r3, [r3]
  30232. 800d158: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  30233. 800d15c: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  30234. 800d160: 2300 movs r3, #0
  30235. 800d162: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  30236. 800d166: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  30237. 800d16a: 460b mov r3, r1
  30238. 800d16c: 4313 orrs r3, r2
  30239. 800d16e: d039 beq.n 800d1e4 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30240. {
  30241. switch (PeriphClkInit->FmcClockSelection)
  30242. 800d170: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30243. 800d174: 6c9b ldr r3, [r3, #72] @ 0x48
  30244. 800d176: 2b03 cmp r3, #3
  30245. 800d178: d81c bhi.n 800d1b4 <HAL_RCCEx_PeriphCLKConfig+0x794>
  30246. 800d17a: a201 add r2, pc, #4 @ (adr r2, 800d180 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  30247. 800d17c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30248. 800d180: 0800d1bd .word 0x0800d1bd
  30249. 800d184: 0800d191 .word 0x0800d191
  30250. 800d188: 0800d19f .word 0x0800d19f
  30251. 800d18c: 0800d1bd .word 0x0800d1bd
  30252. {
  30253. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  30254. /* Enable FMC Clock output generated form System PLL . */
  30255. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30256. 800d190: 4b67 ldr r3, [pc, #412] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30257. 800d192: 6adb ldr r3, [r3, #44] @ 0x2c
  30258. 800d194: 4a66 ldr r2, [pc, #408] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30259. 800d196: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30260. 800d19a: 62d3 str r3, [r2, #44] @ 0x2c
  30261. /* FMC clock source configuration done later after clock selection check */
  30262. break;
  30263. 800d19c: e00f b.n 800d1be <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30264. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  30265. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30266. 800d19e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30267. 800d1a2: 3308 adds r3, #8
  30268. 800d1a4: 2102 movs r1, #2
  30269. 800d1a6: 4618 mov r0, r3
  30270. 800d1a8: f001 ffb8 bl 800f11c <RCCEx_PLL2_Config>
  30271. 800d1ac: 4603 mov r3, r0
  30272. 800d1ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30273. /* FMC clock source configuration done later after clock selection check */
  30274. break;
  30275. 800d1b2: e004 b.n 800d1be <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30276. case RCC_FMCCLKSOURCE_HCLK:
  30277. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  30278. break;
  30279. default:
  30280. ret = HAL_ERROR;
  30281. 800d1b4: 2301 movs r3, #1
  30282. 800d1b6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30283. break;
  30284. 800d1ba: e000 b.n 800d1be <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30285. break;
  30286. 800d1bc: bf00 nop
  30287. }
  30288. if (ret == HAL_OK)
  30289. 800d1be: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30290. 800d1c2: 2b00 cmp r3, #0
  30291. 800d1c4: d10a bne.n 800d1dc <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  30292. {
  30293. /* Set the source of FMC clock*/
  30294. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  30295. 800d1c6: 4b5a ldr r3, [pc, #360] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30296. 800d1c8: 6cdb ldr r3, [r3, #76] @ 0x4c
  30297. 800d1ca: f023 0103 bic.w r1, r3, #3
  30298. 800d1ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30299. 800d1d2: 6c9b ldr r3, [r3, #72] @ 0x48
  30300. 800d1d4: 4a56 ldr r2, [pc, #344] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30301. 800d1d6: 430b orrs r3, r1
  30302. 800d1d8: 64d3 str r3, [r2, #76] @ 0x4c
  30303. 800d1da: e003 b.n 800d1e4 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30304. }
  30305. else
  30306. {
  30307. /* set overall return value */
  30308. status = ret;
  30309. 800d1dc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30310. 800d1e0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30311. }
  30312. }
  30313. /*---------------------------- RTC configuration -------------------------------*/
  30314. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  30315. 800d1e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30316. 800d1e8: e9d3 2300 ldrd r2, r3, [r3]
  30317. 800d1ec: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  30318. 800d1f0: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30319. 800d1f4: 2300 movs r3, #0
  30320. 800d1f6: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30321. 800d1fa: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  30322. 800d1fe: 460b mov r3, r1
  30323. 800d200: 4313 orrs r3, r2
  30324. 800d202: f000 809f beq.w 800d344 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30325. {
  30326. /* check for RTC Parameters used to output RTCCLK */
  30327. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  30328. /* Enable write access to Backup domain */
  30329. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  30330. 800d206: 4b4b ldr r3, [pc, #300] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30331. 800d208: 681b ldr r3, [r3, #0]
  30332. 800d20a: 4a4a ldr r2, [pc, #296] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30333. 800d20c: f443 7380 orr.w r3, r3, #256 @ 0x100
  30334. 800d210: 6013 str r3, [r2, #0]
  30335. /* Wait for Backup domain Write protection disable */
  30336. tickstart = HAL_GetTick();
  30337. 800d212: f7f8 fe47 bl 8005ea4 <HAL_GetTick>
  30338. 800d216: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30339. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30340. 800d21a: e00b b.n 800d234 <HAL_RCCEx_PeriphCLKConfig+0x814>
  30341. {
  30342. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  30343. 800d21c: f7f8 fe42 bl 8005ea4 <HAL_GetTick>
  30344. 800d220: 4602 mov r2, r0
  30345. 800d222: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30346. 800d226: 1ad3 subs r3, r2, r3
  30347. 800d228: 2b64 cmp r3, #100 @ 0x64
  30348. 800d22a: d903 bls.n 800d234 <HAL_RCCEx_PeriphCLKConfig+0x814>
  30349. {
  30350. ret = HAL_TIMEOUT;
  30351. 800d22c: 2303 movs r3, #3
  30352. 800d22e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30353. break;
  30354. 800d232: e005 b.n 800d240 <HAL_RCCEx_PeriphCLKConfig+0x820>
  30355. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30356. 800d234: 4b3f ldr r3, [pc, #252] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30357. 800d236: 681b ldr r3, [r3, #0]
  30358. 800d238: f403 7380 and.w r3, r3, #256 @ 0x100
  30359. 800d23c: 2b00 cmp r3, #0
  30360. 800d23e: d0ed beq.n 800d21c <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  30361. }
  30362. }
  30363. if (ret == HAL_OK)
  30364. 800d240: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30365. 800d244: 2b00 cmp r3, #0
  30366. 800d246: d179 bne.n 800d33c <HAL_RCCEx_PeriphCLKConfig+0x91c>
  30367. {
  30368. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  30369. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  30370. 800d248: 4b39 ldr r3, [pc, #228] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30371. 800d24a: 6f1a ldr r2, [r3, #112] @ 0x70
  30372. 800d24c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30373. 800d250: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30374. 800d254: 4053 eors r3, r2
  30375. 800d256: f403 7340 and.w r3, r3, #768 @ 0x300
  30376. 800d25a: 2b00 cmp r3, #0
  30377. 800d25c: d015 beq.n 800d28a <HAL_RCCEx_PeriphCLKConfig+0x86a>
  30378. {
  30379. /* Store the content of BDCR register before the reset of Backup Domain */
  30380. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  30381. 800d25e: 4b34 ldr r3, [pc, #208] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30382. 800d260: 6f1b ldr r3, [r3, #112] @ 0x70
  30383. 800d262: f423 7340 bic.w r3, r3, #768 @ 0x300
  30384. 800d266: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  30385. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  30386. __HAL_RCC_BACKUPRESET_FORCE();
  30387. 800d26a: 4b31 ldr r3, [pc, #196] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30388. 800d26c: 6f1b ldr r3, [r3, #112] @ 0x70
  30389. 800d26e: 4a30 ldr r2, [pc, #192] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30390. 800d270: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  30391. 800d274: 6713 str r3, [r2, #112] @ 0x70
  30392. __HAL_RCC_BACKUPRESET_RELEASE();
  30393. 800d276: 4b2e ldr r3, [pc, #184] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30394. 800d278: 6f1b ldr r3, [r3, #112] @ 0x70
  30395. 800d27a: 4a2d ldr r2, [pc, #180] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30396. 800d27c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  30397. 800d280: 6713 str r3, [r2, #112] @ 0x70
  30398. /* Restore the Content of BDCR register */
  30399. RCC->BDCR = tmpreg;
  30400. 800d282: 4a2b ldr r2, [pc, #172] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30401. 800d284: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  30402. 800d288: 6713 str r3, [r2, #112] @ 0x70
  30403. }
  30404. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  30405. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  30406. 800d28a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30407. 800d28e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30408. 800d292: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30409. 800d296: d118 bne.n 800d2ca <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30410. {
  30411. /* Get Start Tick*/
  30412. tickstart = HAL_GetTick();
  30413. 800d298: f7f8 fe04 bl 8005ea4 <HAL_GetTick>
  30414. 800d29c: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30415. /* Wait till LSE is ready */
  30416. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30417. 800d2a0: e00d b.n 800d2be <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30418. {
  30419. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  30420. 800d2a2: f7f8 fdff bl 8005ea4 <HAL_GetTick>
  30421. 800d2a6: 4602 mov r2, r0
  30422. 800d2a8: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30423. 800d2ac: 1ad2 subs r2, r2, r3
  30424. 800d2ae: f241 3388 movw r3, #5000 @ 0x1388
  30425. 800d2b2: 429a cmp r2, r3
  30426. 800d2b4: d903 bls.n 800d2be <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30427. {
  30428. ret = HAL_TIMEOUT;
  30429. 800d2b6: 2303 movs r3, #3
  30430. 800d2b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30431. break;
  30432. 800d2bc: e005 b.n 800d2ca <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30433. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30434. 800d2be: 4b1c ldr r3, [pc, #112] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30435. 800d2c0: 6f1b ldr r3, [r3, #112] @ 0x70
  30436. 800d2c2: f003 0302 and.w r3, r3, #2
  30437. 800d2c6: 2b00 cmp r3, #0
  30438. 800d2c8: d0eb beq.n 800d2a2 <HAL_RCCEx_PeriphCLKConfig+0x882>
  30439. }
  30440. }
  30441. }
  30442. if (ret == HAL_OK)
  30443. 800d2ca: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30444. 800d2ce: 2b00 cmp r3, #0
  30445. 800d2d0: d129 bne.n 800d326 <HAL_RCCEx_PeriphCLKConfig+0x906>
  30446. {
  30447. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  30448. 800d2d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30449. 800d2d6: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30450. 800d2da: f403 7340 and.w r3, r3, #768 @ 0x300
  30451. 800d2de: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30452. 800d2e2: d10e bne.n 800d302 <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  30453. 800d2e4: 4b12 ldr r3, [pc, #72] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30454. 800d2e6: 691b ldr r3, [r3, #16]
  30455. 800d2e8: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  30456. 800d2ec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30457. 800d2f0: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30458. 800d2f4: 091a lsrs r2, r3, #4
  30459. 800d2f6: 4b10 ldr r3, [pc, #64] @ (800d338 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  30460. 800d2f8: 4013 ands r3, r2
  30461. 800d2fa: 4a0d ldr r2, [pc, #52] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30462. 800d2fc: 430b orrs r3, r1
  30463. 800d2fe: 6113 str r3, [r2, #16]
  30464. 800d300: e005 b.n 800d30e <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  30465. 800d302: 4b0b ldr r3, [pc, #44] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30466. 800d304: 691b ldr r3, [r3, #16]
  30467. 800d306: 4a0a ldr r2, [pc, #40] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30468. 800d308: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  30469. 800d30c: 6113 str r3, [r2, #16]
  30470. 800d30e: 4b08 ldr r3, [pc, #32] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30471. 800d310: 6f19 ldr r1, [r3, #112] @ 0x70
  30472. 800d312: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30473. 800d316: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30474. 800d31a: f3c3 030b ubfx r3, r3, #0, #12
  30475. 800d31e: 4a04 ldr r2, [pc, #16] @ (800d330 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30476. 800d320: 430b orrs r3, r1
  30477. 800d322: 6713 str r3, [r2, #112] @ 0x70
  30478. 800d324: e00e b.n 800d344 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30479. }
  30480. else
  30481. {
  30482. /* set overall return value */
  30483. status = ret;
  30484. 800d326: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30485. 800d32a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30486. 800d32e: e009 b.n 800d344 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30487. 800d330: 58024400 .word 0x58024400
  30488. 800d334: 58024800 .word 0x58024800
  30489. 800d338: 00ffffcf .word 0x00ffffcf
  30490. }
  30491. }
  30492. else
  30493. {
  30494. /* set overall return value */
  30495. status = ret;
  30496. 800d33c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30497. 800d340: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30498. }
  30499. }
  30500. /*-------------------------- USART1/6 configuration --------------------------*/
  30501. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  30502. 800d344: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30503. 800d348: e9d3 2300 ldrd r2, r3, [r3]
  30504. 800d34c: f002 0301 and.w r3, r2, #1
  30505. 800d350: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30506. 800d354: 2300 movs r3, #0
  30507. 800d356: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  30508. 800d35a: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  30509. 800d35e: 460b mov r3, r1
  30510. 800d360: 4313 orrs r3, r2
  30511. 800d362: f000 8089 beq.w 800d478 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30512. {
  30513. switch (PeriphClkInit->Usart16ClockSelection)
  30514. 800d366: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30515. 800d36a: 6fdb ldr r3, [r3, #124] @ 0x7c
  30516. 800d36c: 2b28 cmp r3, #40 @ 0x28
  30517. 800d36e: d86b bhi.n 800d448 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  30518. 800d370: a201 add r2, pc, #4 @ (adr r2, 800d378 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  30519. 800d372: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30520. 800d376: bf00 nop
  30521. 800d378: 0800d451 .word 0x0800d451
  30522. 800d37c: 0800d449 .word 0x0800d449
  30523. 800d380: 0800d449 .word 0x0800d449
  30524. 800d384: 0800d449 .word 0x0800d449
  30525. 800d388: 0800d449 .word 0x0800d449
  30526. 800d38c: 0800d449 .word 0x0800d449
  30527. 800d390: 0800d449 .word 0x0800d449
  30528. 800d394: 0800d449 .word 0x0800d449
  30529. 800d398: 0800d41d .word 0x0800d41d
  30530. 800d39c: 0800d449 .word 0x0800d449
  30531. 800d3a0: 0800d449 .word 0x0800d449
  30532. 800d3a4: 0800d449 .word 0x0800d449
  30533. 800d3a8: 0800d449 .word 0x0800d449
  30534. 800d3ac: 0800d449 .word 0x0800d449
  30535. 800d3b0: 0800d449 .word 0x0800d449
  30536. 800d3b4: 0800d449 .word 0x0800d449
  30537. 800d3b8: 0800d433 .word 0x0800d433
  30538. 800d3bc: 0800d449 .word 0x0800d449
  30539. 800d3c0: 0800d449 .word 0x0800d449
  30540. 800d3c4: 0800d449 .word 0x0800d449
  30541. 800d3c8: 0800d449 .word 0x0800d449
  30542. 800d3cc: 0800d449 .word 0x0800d449
  30543. 800d3d0: 0800d449 .word 0x0800d449
  30544. 800d3d4: 0800d449 .word 0x0800d449
  30545. 800d3d8: 0800d451 .word 0x0800d451
  30546. 800d3dc: 0800d449 .word 0x0800d449
  30547. 800d3e0: 0800d449 .word 0x0800d449
  30548. 800d3e4: 0800d449 .word 0x0800d449
  30549. 800d3e8: 0800d449 .word 0x0800d449
  30550. 800d3ec: 0800d449 .word 0x0800d449
  30551. 800d3f0: 0800d449 .word 0x0800d449
  30552. 800d3f4: 0800d449 .word 0x0800d449
  30553. 800d3f8: 0800d451 .word 0x0800d451
  30554. 800d3fc: 0800d449 .word 0x0800d449
  30555. 800d400: 0800d449 .word 0x0800d449
  30556. 800d404: 0800d449 .word 0x0800d449
  30557. 800d408: 0800d449 .word 0x0800d449
  30558. 800d40c: 0800d449 .word 0x0800d449
  30559. 800d410: 0800d449 .word 0x0800d449
  30560. 800d414: 0800d449 .word 0x0800d449
  30561. 800d418: 0800d451 .word 0x0800d451
  30562. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  30563. /* USART1/6 clock source configuration done later after clock selection check */
  30564. break;
  30565. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  30566. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30567. 800d41c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30568. 800d420: 3308 adds r3, #8
  30569. 800d422: 2101 movs r1, #1
  30570. 800d424: 4618 mov r0, r3
  30571. 800d426: f001 fe79 bl 800f11c <RCCEx_PLL2_Config>
  30572. 800d42a: 4603 mov r3, r0
  30573. 800d42c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30574. /* USART1/6 clock source configuration done later after clock selection check */
  30575. break;
  30576. 800d430: e00f b.n 800d452 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30577. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  30578. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30579. 800d432: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30580. 800d436: 3328 adds r3, #40 @ 0x28
  30581. 800d438: 2101 movs r1, #1
  30582. 800d43a: 4618 mov r0, r3
  30583. 800d43c: f001 ff20 bl 800f280 <RCCEx_PLL3_Config>
  30584. 800d440: 4603 mov r3, r0
  30585. 800d442: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30586. /* USART1/6 clock source configuration done later after clock selection check */
  30587. break;
  30588. 800d446: e004 b.n 800d452 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30589. /* LSE, oscillator is used as source of USART1/6 clock */
  30590. /* USART1/6 clock source configuration done later after clock selection check */
  30591. break;
  30592. default:
  30593. ret = HAL_ERROR;
  30594. 800d448: 2301 movs r3, #1
  30595. 800d44a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30596. break;
  30597. 800d44e: e000 b.n 800d452 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30598. break;
  30599. 800d450: bf00 nop
  30600. }
  30601. if (ret == HAL_OK)
  30602. 800d452: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30603. 800d456: 2b00 cmp r3, #0
  30604. 800d458: d10a bne.n 800d470 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  30605. {
  30606. /* Set the source of USART1/6 clock */
  30607. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  30608. 800d45a: 4bbf ldr r3, [pc, #764] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30609. 800d45c: 6d5b ldr r3, [r3, #84] @ 0x54
  30610. 800d45e: f023 0138 bic.w r1, r3, #56 @ 0x38
  30611. 800d462: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30612. 800d466: 6fdb ldr r3, [r3, #124] @ 0x7c
  30613. 800d468: 4abb ldr r2, [pc, #748] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30614. 800d46a: 430b orrs r3, r1
  30615. 800d46c: 6553 str r3, [r2, #84] @ 0x54
  30616. 800d46e: e003 b.n 800d478 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30617. }
  30618. else
  30619. {
  30620. /* set overall return value */
  30621. status = ret;
  30622. 800d470: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30623. 800d474: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30624. }
  30625. }
  30626. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  30627. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  30628. 800d478: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30629. 800d47c: e9d3 2300 ldrd r2, r3, [r3]
  30630. 800d480: f002 0302 and.w r3, r2, #2
  30631. 800d484: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30632. 800d488: 2300 movs r3, #0
  30633. 800d48a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30634. 800d48e: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  30635. 800d492: 460b mov r3, r1
  30636. 800d494: 4313 orrs r3, r2
  30637. 800d496: d041 beq.n 800d51c <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30638. {
  30639. switch (PeriphClkInit->Usart234578ClockSelection)
  30640. 800d498: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30641. 800d49c: 6f9b ldr r3, [r3, #120] @ 0x78
  30642. 800d49e: 2b05 cmp r3, #5
  30643. 800d4a0: d824 bhi.n 800d4ec <HAL_RCCEx_PeriphCLKConfig+0xacc>
  30644. 800d4a2: a201 add r2, pc, #4 @ (adr r2, 800d4a8 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  30645. 800d4a4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30646. 800d4a8: 0800d4f5 .word 0x0800d4f5
  30647. 800d4ac: 0800d4c1 .word 0x0800d4c1
  30648. 800d4b0: 0800d4d7 .word 0x0800d4d7
  30649. 800d4b4: 0800d4f5 .word 0x0800d4f5
  30650. 800d4b8: 0800d4f5 .word 0x0800d4f5
  30651. 800d4bc: 0800d4f5 .word 0x0800d4f5
  30652. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  30653. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30654. break;
  30655. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  30656. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30657. 800d4c0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30658. 800d4c4: 3308 adds r3, #8
  30659. 800d4c6: 2101 movs r1, #1
  30660. 800d4c8: 4618 mov r0, r3
  30661. 800d4ca: f001 fe27 bl 800f11c <RCCEx_PLL2_Config>
  30662. 800d4ce: 4603 mov r3, r0
  30663. 800d4d0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30664. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30665. break;
  30666. 800d4d4: e00f b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30667. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  30668. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30669. 800d4d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30670. 800d4da: 3328 adds r3, #40 @ 0x28
  30671. 800d4dc: 2101 movs r1, #1
  30672. 800d4de: 4618 mov r0, r3
  30673. 800d4e0: f001 fece bl 800f280 <RCCEx_PLL3_Config>
  30674. 800d4e4: 4603 mov r3, r0
  30675. 800d4e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30676. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30677. break;
  30678. 800d4ea: e004 b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30679. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  30680. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30681. break;
  30682. default:
  30683. ret = HAL_ERROR;
  30684. 800d4ec: 2301 movs r3, #1
  30685. 800d4ee: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30686. break;
  30687. 800d4f2: e000 b.n 800d4f6 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30688. break;
  30689. 800d4f4: bf00 nop
  30690. }
  30691. if (ret == HAL_OK)
  30692. 800d4f6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30693. 800d4fa: 2b00 cmp r3, #0
  30694. 800d4fc: d10a bne.n 800d514 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  30695. {
  30696. /* Set the source of USART2/3/4/5/7/8 clock */
  30697. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  30698. 800d4fe: 4b96 ldr r3, [pc, #600] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30699. 800d500: 6d5b ldr r3, [r3, #84] @ 0x54
  30700. 800d502: f023 0107 bic.w r1, r3, #7
  30701. 800d506: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30702. 800d50a: 6f9b ldr r3, [r3, #120] @ 0x78
  30703. 800d50c: 4a92 ldr r2, [pc, #584] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30704. 800d50e: 430b orrs r3, r1
  30705. 800d510: 6553 str r3, [r2, #84] @ 0x54
  30706. 800d512: e003 b.n 800d51c <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30707. }
  30708. else
  30709. {
  30710. /* set overall return value */
  30711. status = ret;
  30712. 800d514: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30713. 800d518: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30714. }
  30715. }
  30716. /*-------------------------- LPUART1 Configuration -------------------------*/
  30717. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  30718. 800d51c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30719. 800d520: e9d3 2300 ldrd r2, r3, [r3]
  30720. 800d524: f002 0304 and.w r3, r2, #4
  30721. 800d528: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  30722. 800d52c: 2300 movs r3, #0
  30723. 800d52e: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30724. 800d532: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  30725. 800d536: 460b mov r3, r1
  30726. 800d538: 4313 orrs r3, r2
  30727. 800d53a: d044 beq.n 800d5c6 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30728. {
  30729. switch (PeriphClkInit->Lpuart1ClockSelection)
  30730. 800d53c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30731. 800d540: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30732. 800d544: 2b05 cmp r3, #5
  30733. 800d546: d825 bhi.n 800d594 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  30734. 800d548: a201 add r2, pc, #4 @ (adr r2, 800d550 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  30735. 800d54a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30736. 800d54e: bf00 nop
  30737. 800d550: 0800d59d .word 0x0800d59d
  30738. 800d554: 0800d569 .word 0x0800d569
  30739. 800d558: 0800d57f .word 0x0800d57f
  30740. 800d55c: 0800d59d .word 0x0800d59d
  30741. 800d560: 0800d59d .word 0x0800d59d
  30742. 800d564: 0800d59d .word 0x0800d59d
  30743. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  30744. /* LPUART1 clock source configuration done later after clock selection check */
  30745. break;
  30746. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  30747. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30748. 800d568: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30749. 800d56c: 3308 adds r3, #8
  30750. 800d56e: 2101 movs r1, #1
  30751. 800d570: 4618 mov r0, r3
  30752. 800d572: f001 fdd3 bl 800f11c <RCCEx_PLL2_Config>
  30753. 800d576: 4603 mov r3, r0
  30754. 800d578: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30755. /* LPUART1 clock source configuration done later after clock selection check */
  30756. break;
  30757. 800d57c: e00f b.n 800d59e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30758. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  30759. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30760. 800d57e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30761. 800d582: 3328 adds r3, #40 @ 0x28
  30762. 800d584: 2101 movs r1, #1
  30763. 800d586: 4618 mov r0, r3
  30764. 800d588: f001 fe7a bl 800f280 <RCCEx_PLL3_Config>
  30765. 800d58c: 4603 mov r3, r0
  30766. 800d58e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30767. /* LPUART1 clock source configuration done later after clock selection check */
  30768. break;
  30769. 800d592: e004 b.n 800d59e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30770. /* LSE, oscillator is used as source of LPUART1 clock */
  30771. /* LPUART1 clock source configuration done later after clock selection check */
  30772. break;
  30773. default:
  30774. ret = HAL_ERROR;
  30775. 800d594: 2301 movs r3, #1
  30776. 800d596: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30777. break;
  30778. 800d59a: e000 b.n 800d59e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30779. break;
  30780. 800d59c: bf00 nop
  30781. }
  30782. if (ret == HAL_OK)
  30783. 800d59e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30784. 800d5a2: 2b00 cmp r3, #0
  30785. 800d5a4: d10b bne.n 800d5be <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  30786. {
  30787. /* Set the source of LPUART1 clock */
  30788. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  30789. 800d5a6: 4b6c ldr r3, [pc, #432] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30790. 800d5a8: 6d9b ldr r3, [r3, #88] @ 0x58
  30791. 800d5aa: f023 0107 bic.w r1, r3, #7
  30792. 800d5ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30793. 800d5b2: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30794. 800d5b6: 4a68 ldr r2, [pc, #416] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30795. 800d5b8: 430b orrs r3, r1
  30796. 800d5ba: 6593 str r3, [r2, #88] @ 0x58
  30797. 800d5bc: e003 b.n 800d5c6 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30798. }
  30799. else
  30800. {
  30801. /* set overall return value */
  30802. status = ret;
  30803. 800d5be: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30804. 800d5c2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30805. }
  30806. }
  30807. /*---------------------------- LPTIM1 configuration -------------------------------*/
  30808. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  30809. 800d5c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30810. 800d5ca: e9d3 2300 ldrd r2, r3, [r3]
  30811. 800d5ce: f002 0320 and.w r3, r2, #32
  30812. 800d5d2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30813. 800d5d6: 2300 movs r3, #0
  30814. 800d5d8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30815. 800d5dc: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  30816. 800d5e0: 460b mov r3, r1
  30817. 800d5e2: 4313 orrs r3, r2
  30818. 800d5e4: d055 beq.n 800d692 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30819. {
  30820. switch (PeriphClkInit->Lptim1ClockSelection)
  30821. 800d5e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30822. 800d5ea: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30823. 800d5ee: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30824. 800d5f2: d033 beq.n 800d65c <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  30825. 800d5f4: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30826. 800d5f8: d82c bhi.n 800d654 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30827. 800d5fa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30828. 800d5fe: d02f beq.n 800d660 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  30829. 800d600: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30830. 800d604: d826 bhi.n 800d654 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30831. 800d606: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30832. 800d60a: d02b beq.n 800d664 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  30833. 800d60c: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30834. 800d610: d820 bhi.n 800d654 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30835. 800d612: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30836. 800d616: d012 beq.n 800d63e <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  30837. 800d618: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30838. 800d61c: d81a bhi.n 800d654 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30839. 800d61e: 2b00 cmp r3, #0
  30840. 800d620: d022 beq.n 800d668 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  30841. 800d622: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30842. 800d626: d115 bne.n 800d654 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30843. /* LPTIM1 clock source configuration done later after clock selection check */
  30844. break;
  30845. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  30846. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30847. 800d628: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30848. 800d62c: 3308 adds r3, #8
  30849. 800d62e: 2100 movs r1, #0
  30850. 800d630: 4618 mov r0, r3
  30851. 800d632: f001 fd73 bl 800f11c <RCCEx_PLL2_Config>
  30852. 800d636: 4603 mov r3, r0
  30853. 800d638: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30854. /* LPTIM1 clock source configuration done later after clock selection check */
  30855. break;
  30856. 800d63c: e015 b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30857. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  30858. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30859. 800d63e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30860. 800d642: 3328 adds r3, #40 @ 0x28
  30861. 800d644: 2102 movs r1, #2
  30862. 800d646: 4618 mov r0, r3
  30863. 800d648: f001 fe1a bl 800f280 <RCCEx_PLL3_Config>
  30864. 800d64c: 4603 mov r3, r0
  30865. 800d64e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30866. /* LPTIM1 clock source configuration done later after clock selection check */
  30867. break;
  30868. 800d652: e00a b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30869. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  30870. /* LPTIM1 clock source configuration done later after clock selection check */
  30871. break;
  30872. default:
  30873. ret = HAL_ERROR;
  30874. 800d654: 2301 movs r3, #1
  30875. 800d656: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30876. break;
  30877. 800d65a: e006 b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30878. break;
  30879. 800d65c: bf00 nop
  30880. 800d65e: e004 b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30881. break;
  30882. 800d660: bf00 nop
  30883. 800d662: e002 b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30884. break;
  30885. 800d664: bf00 nop
  30886. 800d666: e000 b.n 800d66a <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30887. break;
  30888. 800d668: bf00 nop
  30889. }
  30890. if (ret == HAL_OK)
  30891. 800d66a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30892. 800d66e: 2b00 cmp r3, #0
  30893. 800d670: d10b bne.n 800d68a <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  30894. {
  30895. /* Set the source of LPTIM1 clock*/
  30896. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  30897. 800d672: 4b39 ldr r3, [pc, #228] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30898. 800d674: 6d5b ldr r3, [r3, #84] @ 0x54
  30899. 800d676: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30900. 800d67a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30901. 800d67e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30902. 800d682: 4a35 ldr r2, [pc, #212] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30903. 800d684: 430b orrs r3, r1
  30904. 800d686: 6553 str r3, [r2, #84] @ 0x54
  30905. 800d688: e003 b.n 800d692 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30906. }
  30907. else
  30908. {
  30909. /* set overall return value */
  30910. status = ret;
  30911. 800d68a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30912. 800d68e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30913. }
  30914. }
  30915. /*---------------------------- LPTIM2 configuration -------------------------------*/
  30916. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  30917. 800d692: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30918. 800d696: e9d3 2300 ldrd r2, r3, [r3]
  30919. 800d69a: f002 0340 and.w r3, r2, #64 @ 0x40
  30920. 800d69e: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30921. 800d6a2: 2300 movs r3, #0
  30922. 800d6a4: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30923. 800d6a8: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  30924. 800d6ac: 460b mov r3, r1
  30925. 800d6ae: 4313 orrs r3, r2
  30926. 800d6b0: d058 beq.n 800d764 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30927. {
  30928. switch (PeriphClkInit->Lptim2ClockSelection)
  30929. 800d6b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30930. 800d6b6: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30931. 800d6ba: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30932. 800d6be: d033 beq.n 800d728 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  30933. 800d6c0: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30934. 800d6c4: d82c bhi.n 800d720 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30935. 800d6c6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30936. 800d6ca: d02f beq.n 800d72c <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  30937. 800d6cc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30938. 800d6d0: d826 bhi.n 800d720 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30939. 800d6d2: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30940. 800d6d6: d02b beq.n 800d730 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  30941. 800d6d8: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30942. 800d6dc: d820 bhi.n 800d720 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30943. 800d6de: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30944. 800d6e2: d012 beq.n 800d70a <HAL_RCCEx_PeriphCLKConfig+0xcea>
  30945. 800d6e4: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30946. 800d6e8: d81a bhi.n 800d720 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30947. 800d6ea: 2b00 cmp r3, #0
  30948. 800d6ec: d022 beq.n 800d734 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  30949. 800d6ee: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  30950. 800d6f2: d115 bne.n 800d720 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30951. /* LPTIM2 clock source configuration done later after clock selection check */
  30952. break;
  30953. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  30954. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30955. 800d6f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30956. 800d6f8: 3308 adds r3, #8
  30957. 800d6fa: 2100 movs r1, #0
  30958. 800d6fc: 4618 mov r0, r3
  30959. 800d6fe: f001 fd0d bl 800f11c <RCCEx_PLL2_Config>
  30960. 800d702: 4603 mov r3, r0
  30961. 800d704: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30962. /* LPTIM2 clock source configuration done later after clock selection check */
  30963. break;
  30964. 800d708: e015 b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30965. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  30966. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30967. 800d70a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30968. 800d70e: 3328 adds r3, #40 @ 0x28
  30969. 800d710: 2102 movs r1, #2
  30970. 800d712: 4618 mov r0, r3
  30971. 800d714: f001 fdb4 bl 800f280 <RCCEx_PLL3_Config>
  30972. 800d718: 4603 mov r3, r0
  30973. 800d71a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30974. /* LPTIM2 clock source configuration done later after clock selection check */
  30975. break;
  30976. 800d71e: e00a b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30977. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  30978. /* LPTIM2 clock source configuration done later after clock selection check */
  30979. break;
  30980. default:
  30981. ret = HAL_ERROR;
  30982. 800d720: 2301 movs r3, #1
  30983. 800d722: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30984. break;
  30985. 800d726: e006 b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30986. break;
  30987. 800d728: bf00 nop
  30988. 800d72a: e004 b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30989. break;
  30990. 800d72c: bf00 nop
  30991. 800d72e: e002 b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30992. break;
  30993. 800d730: bf00 nop
  30994. 800d732: e000 b.n 800d736 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30995. break;
  30996. 800d734: bf00 nop
  30997. }
  30998. if (ret == HAL_OK)
  30999. 800d736: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31000. 800d73a: 2b00 cmp r3, #0
  31001. 800d73c: d10e bne.n 800d75c <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  31002. {
  31003. /* Set the source of LPTIM2 clock*/
  31004. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  31005. 800d73e: 4b06 ldr r3, [pc, #24] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  31006. 800d740: 6d9b ldr r3, [r3, #88] @ 0x58
  31007. 800d742: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  31008. 800d746: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31009. 800d74a: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  31010. 800d74e: 4a02 ldr r2, [pc, #8] @ (800d758 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  31011. 800d750: 430b orrs r3, r1
  31012. 800d752: 6593 str r3, [r2, #88] @ 0x58
  31013. 800d754: e006 b.n 800d764 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  31014. 800d756: bf00 nop
  31015. 800d758: 58024400 .word 0x58024400
  31016. }
  31017. else
  31018. {
  31019. /* set overall return value */
  31020. status = ret;
  31021. 800d75c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31022. 800d760: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31023. }
  31024. }
  31025. /*---------------------------- LPTIM345 configuration -------------------------------*/
  31026. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  31027. 800d764: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31028. 800d768: e9d3 2300 ldrd r2, r3, [r3]
  31029. 800d76c: f002 0380 and.w r3, r2, #128 @ 0x80
  31030. 800d770: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  31031. 800d774: 2300 movs r3, #0
  31032. 800d776: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  31033. 800d77a: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  31034. 800d77e: 460b mov r3, r1
  31035. 800d780: 4313 orrs r3, r2
  31036. 800d782: d055 beq.n 800d830 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  31037. {
  31038. switch (PeriphClkInit->Lptim345ClockSelection)
  31039. 800d784: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31040. 800d788: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  31041. 800d78c: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  31042. 800d790: d033 beq.n 800d7fa <HAL_RCCEx_PeriphCLKConfig+0xdda>
  31043. 800d792: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  31044. 800d796: d82c bhi.n 800d7f2 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31045. 800d798: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  31046. 800d79c: d02f beq.n 800d7fe <HAL_RCCEx_PeriphCLKConfig+0xdde>
  31047. 800d79e: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  31048. 800d7a2: d826 bhi.n 800d7f2 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31049. 800d7a4: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  31050. 800d7a8: d02b beq.n 800d802 <HAL_RCCEx_PeriphCLKConfig+0xde2>
  31051. 800d7aa: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  31052. 800d7ae: d820 bhi.n 800d7f2 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31053. 800d7b0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31054. 800d7b4: d012 beq.n 800d7dc <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  31055. 800d7b6: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31056. 800d7ba: d81a bhi.n 800d7f2 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31057. 800d7bc: 2b00 cmp r3, #0
  31058. 800d7be: d022 beq.n 800d806 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  31059. 800d7c0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31060. 800d7c4: d115 bne.n 800d7f2 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31061. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  31062. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31063. break;
  31064. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  31065. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31066. 800d7c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31067. 800d7ca: 3308 adds r3, #8
  31068. 800d7cc: 2100 movs r1, #0
  31069. 800d7ce: 4618 mov r0, r3
  31070. 800d7d0: f001 fca4 bl 800f11c <RCCEx_PLL2_Config>
  31071. 800d7d4: 4603 mov r3, r0
  31072. 800d7d6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31073. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31074. break;
  31075. 800d7da: e015 b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31076. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  31077. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31078. 800d7dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31079. 800d7e0: 3328 adds r3, #40 @ 0x28
  31080. 800d7e2: 2102 movs r1, #2
  31081. 800d7e4: 4618 mov r0, r3
  31082. 800d7e6: f001 fd4b bl 800f280 <RCCEx_PLL3_Config>
  31083. 800d7ea: 4603 mov r3, r0
  31084. 800d7ec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31085. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31086. break;
  31087. 800d7f0: e00a b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31088. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  31089. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31090. break;
  31091. default:
  31092. ret = HAL_ERROR;
  31093. 800d7f2: 2301 movs r3, #1
  31094. 800d7f4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31095. break;
  31096. 800d7f8: e006 b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31097. break;
  31098. 800d7fa: bf00 nop
  31099. 800d7fc: e004 b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31100. break;
  31101. 800d7fe: bf00 nop
  31102. 800d800: e002 b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31103. break;
  31104. 800d802: bf00 nop
  31105. 800d804: e000 b.n 800d808 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31106. break;
  31107. 800d806: bf00 nop
  31108. }
  31109. if (ret == HAL_OK)
  31110. 800d808: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31111. 800d80c: 2b00 cmp r3, #0
  31112. 800d80e: d10b bne.n 800d828 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  31113. {
  31114. /* Set the source of LPTIM3/4/5 clock */
  31115. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  31116. 800d810: 4bbb ldr r3, [pc, #748] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31117. 800d812: 6d9b ldr r3, [r3, #88] @ 0x58
  31118. 800d814: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  31119. 800d818: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31120. 800d81c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  31121. 800d820: 4ab7 ldr r2, [pc, #732] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31122. 800d822: 430b orrs r3, r1
  31123. 800d824: 6593 str r3, [r2, #88] @ 0x58
  31124. 800d826: e003 b.n 800d830 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  31125. }
  31126. else
  31127. {
  31128. /* set overall return value */
  31129. status = ret;
  31130. 800d828: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31131. 800d82c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31132. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  31133. }
  31134. #else
  31135. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  31136. 800d830: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31137. 800d834: e9d3 2300 ldrd r2, r3, [r3]
  31138. 800d838: f002 0308 and.w r3, r2, #8
  31139. 800d83c: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31140. 800d840: 2300 movs r3, #0
  31141. 800d842: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31142. 800d846: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  31143. 800d84a: 460b mov r3, r1
  31144. 800d84c: 4313 orrs r3, r2
  31145. 800d84e: d01e beq.n 800d88e <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  31146. {
  31147. /* Check the parameters */
  31148. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  31149. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  31150. 800d850: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31151. 800d854: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31152. 800d858: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31153. 800d85c: d10c bne.n 800d878 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31154. {
  31155. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31156. 800d85e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31157. 800d862: 3328 adds r3, #40 @ 0x28
  31158. 800d864: 2102 movs r1, #2
  31159. 800d866: 4618 mov r0, r3
  31160. 800d868: f001 fd0a bl 800f280 <RCCEx_PLL3_Config>
  31161. 800d86c: 4603 mov r3, r0
  31162. 800d86e: 2b00 cmp r3, #0
  31163. 800d870: d002 beq.n 800d878 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31164. {
  31165. status = HAL_ERROR;
  31166. 800d872: 2301 movs r3, #1
  31167. 800d874: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31168. }
  31169. }
  31170. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  31171. 800d878: 4ba1 ldr r3, [pc, #644] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31172. 800d87a: 6d5b ldr r3, [r3, #84] @ 0x54
  31173. 800d87c: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31174. 800d880: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31175. 800d884: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31176. 800d888: 4a9d ldr r2, [pc, #628] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31177. 800d88a: 430b orrs r3, r1
  31178. 800d88c: 6553 str r3, [r2, #84] @ 0x54
  31179. }
  31180. #endif /* I2C5 */
  31181. /*------------------------------ I2C4 Configuration ------------------------*/
  31182. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  31183. 800d88e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31184. 800d892: e9d3 2300 ldrd r2, r3, [r3]
  31185. 800d896: f002 0310 and.w r3, r2, #16
  31186. 800d89a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  31187. 800d89e: 2300 movs r3, #0
  31188. 800d8a0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31189. 800d8a4: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  31190. 800d8a8: 460b mov r3, r1
  31191. 800d8aa: 4313 orrs r3, r2
  31192. 800d8ac: d01e beq.n 800d8ec <HAL_RCCEx_PeriphCLKConfig+0xecc>
  31193. {
  31194. /* Check the parameters */
  31195. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  31196. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  31197. 800d8ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31198. 800d8b2: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31199. 800d8b6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31200. 800d8ba: d10c bne.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31201. {
  31202. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31203. 800d8bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31204. 800d8c0: 3328 adds r3, #40 @ 0x28
  31205. 800d8c2: 2102 movs r1, #2
  31206. 800d8c4: 4618 mov r0, r3
  31207. 800d8c6: f001 fcdb bl 800f280 <RCCEx_PLL3_Config>
  31208. 800d8ca: 4603 mov r3, r0
  31209. 800d8cc: 2b00 cmp r3, #0
  31210. 800d8ce: d002 beq.n 800d8d6 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31211. {
  31212. status = HAL_ERROR;
  31213. 800d8d0: 2301 movs r3, #1
  31214. 800d8d2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31215. }
  31216. }
  31217. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  31218. 800d8d6: 4b8a ldr r3, [pc, #552] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31219. 800d8d8: 6d9b ldr r3, [r3, #88] @ 0x58
  31220. 800d8da: f423 7140 bic.w r1, r3, #768 @ 0x300
  31221. 800d8de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31222. 800d8e2: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31223. 800d8e6: 4a86 ldr r2, [pc, #536] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31224. 800d8e8: 430b orrs r3, r1
  31225. 800d8ea: 6593 str r3, [r2, #88] @ 0x58
  31226. }
  31227. /*---------------------------- ADC configuration -------------------------------*/
  31228. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  31229. 800d8ec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31230. 800d8f0: e9d3 2300 ldrd r2, r3, [r3]
  31231. 800d8f4: f402 2300 and.w r3, r2, #524288 @ 0x80000
  31232. 800d8f8: 67bb str r3, [r7, #120] @ 0x78
  31233. 800d8fa: 2300 movs r3, #0
  31234. 800d8fc: 67fb str r3, [r7, #124] @ 0x7c
  31235. 800d8fe: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  31236. 800d902: 460b mov r3, r1
  31237. 800d904: 4313 orrs r3, r2
  31238. 800d906: d03e beq.n 800d986 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31239. {
  31240. switch (PeriphClkInit->AdcClockSelection)
  31241. 800d908: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31242. 800d90c: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31243. 800d910: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31244. 800d914: d022 beq.n 800d95c <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  31245. 800d916: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31246. 800d91a: d81b bhi.n 800d954 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31247. 800d91c: 2b00 cmp r3, #0
  31248. 800d91e: d003 beq.n 800d928 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  31249. 800d920: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31250. 800d924: d00b beq.n 800d93e <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  31251. 800d926: e015 b.n 800d954 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31252. {
  31253. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  31254. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31255. 800d928: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31256. 800d92c: 3308 adds r3, #8
  31257. 800d92e: 2100 movs r1, #0
  31258. 800d930: 4618 mov r0, r3
  31259. 800d932: f001 fbf3 bl 800f11c <RCCEx_PLL2_Config>
  31260. 800d936: 4603 mov r3, r0
  31261. 800d938: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31262. /* ADC clock source configuration done later after clock selection check */
  31263. break;
  31264. 800d93c: e00f b.n 800d95e <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31265. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  31266. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31267. 800d93e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31268. 800d942: 3328 adds r3, #40 @ 0x28
  31269. 800d944: 2102 movs r1, #2
  31270. 800d946: 4618 mov r0, r3
  31271. 800d948: f001 fc9a bl 800f280 <RCCEx_PLL3_Config>
  31272. 800d94c: 4603 mov r3, r0
  31273. 800d94e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31274. /* ADC clock source configuration done later after clock selection check */
  31275. break;
  31276. 800d952: e004 b.n 800d95e <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31277. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  31278. /* ADC clock source configuration done later after clock selection check */
  31279. break;
  31280. default:
  31281. ret = HAL_ERROR;
  31282. 800d954: 2301 movs r3, #1
  31283. 800d956: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31284. break;
  31285. 800d95a: e000 b.n 800d95e <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31286. break;
  31287. 800d95c: bf00 nop
  31288. }
  31289. if (ret == HAL_OK)
  31290. 800d95e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31291. 800d962: 2b00 cmp r3, #0
  31292. 800d964: d10b bne.n 800d97e <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  31293. {
  31294. /* Set the source of ADC clock*/
  31295. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  31296. 800d966: 4b66 ldr r3, [pc, #408] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31297. 800d968: 6d9b ldr r3, [r3, #88] @ 0x58
  31298. 800d96a: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  31299. 800d96e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31300. 800d972: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31301. 800d976: 4a62 ldr r2, [pc, #392] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31302. 800d978: 430b orrs r3, r1
  31303. 800d97a: 6593 str r3, [r2, #88] @ 0x58
  31304. 800d97c: e003 b.n 800d986 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31305. }
  31306. else
  31307. {
  31308. /* set overall return value */
  31309. status = ret;
  31310. 800d97e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31311. 800d982: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31312. }
  31313. }
  31314. /*------------------------------ USB Configuration -------------------------*/
  31315. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  31316. 800d986: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31317. 800d98a: e9d3 2300 ldrd r2, r3, [r3]
  31318. 800d98e: f402 2380 and.w r3, r2, #262144 @ 0x40000
  31319. 800d992: 673b str r3, [r7, #112] @ 0x70
  31320. 800d994: 2300 movs r3, #0
  31321. 800d996: 677b str r3, [r7, #116] @ 0x74
  31322. 800d998: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  31323. 800d99c: 460b mov r3, r1
  31324. 800d99e: 4313 orrs r3, r2
  31325. 800d9a0: d03b beq.n 800da1a <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31326. {
  31327. switch (PeriphClkInit->UsbClockSelection)
  31328. 800d9a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31329. 800d9a6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31330. 800d9aa: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31331. 800d9ae: d01f beq.n 800d9f0 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  31332. 800d9b0: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31333. 800d9b4: d818 bhi.n 800d9e8 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31334. 800d9b6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31335. 800d9ba: d003 beq.n 800d9c4 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  31336. 800d9bc: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31337. 800d9c0: d007 beq.n 800d9d2 <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  31338. 800d9c2: e011 b.n 800d9e8 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31339. {
  31340. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  31341. /* Enable USB Clock output generated form System USB . */
  31342. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31343. 800d9c4: 4b4e ldr r3, [pc, #312] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31344. 800d9c6: 6adb ldr r3, [r3, #44] @ 0x2c
  31345. 800d9c8: 4a4d ldr r2, [pc, #308] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31346. 800d9ca: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31347. 800d9ce: 62d3 str r3, [r2, #44] @ 0x2c
  31348. /* USB clock source configuration done later after clock selection check */
  31349. break;
  31350. 800d9d0: e00f b.n 800d9f2 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31351. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  31352. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31353. 800d9d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31354. 800d9d6: 3328 adds r3, #40 @ 0x28
  31355. 800d9d8: 2101 movs r1, #1
  31356. 800d9da: 4618 mov r0, r3
  31357. 800d9dc: f001 fc50 bl 800f280 <RCCEx_PLL3_Config>
  31358. 800d9e0: 4603 mov r3, r0
  31359. 800d9e2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31360. /* USB clock source configuration done later after clock selection check */
  31361. break;
  31362. 800d9e6: e004 b.n 800d9f2 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31363. /* HSI48 oscillator is used as source of USB clock */
  31364. /* USB clock source configuration done later after clock selection check */
  31365. break;
  31366. default:
  31367. ret = HAL_ERROR;
  31368. 800d9e8: 2301 movs r3, #1
  31369. 800d9ea: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31370. break;
  31371. 800d9ee: e000 b.n 800d9f2 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31372. break;
  31373. 800d9f0: bf00 nop
  31374. }
  31375. if (ret == HAL_OK)
  31376. 800d9f2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31377. 800d9f6: 2b00 cmp r3, #0
  31378. 800d9f8: d10b bne.n 800da12 <HAL_RCCEx_PeriphCLKConfig+0xff2>
  31379. {
  31380. /* Set the source of USB clock*/
  31381. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  31382. 800d9fa: 4b41 ldr r3, [pc, #260] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31383. 800d9fc: 6d5b ldr r3, [r3, #84] @ 0x54
  31384. 800d9fe: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  31385. 800da02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31386. 800da06: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31387. 800da0a: 4a3d ldr r2, [pc, #244] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31388. 800da0c: 430b orrs r3, r1
  31389. 800da0e: 6553 str r3, [r2, #84] @ 0x54
  31390. 800da10: e003 b.n 800da1a <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31391. }
  31392. else
  31393. {
  31394. /* set overall return value */
  31395. status = ret;
  31396. 800da12: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31397. 800da16: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31398. }
  31399. }
  31400. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  31401. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  31402. 800da1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31403. 800da1e: e9d3 2300 ldrd r2, r3, [r3]
  31404. 800da22: f402 3380 and.w r3, r2, #65536 @ 0x10000
  31405. 800da26: 66bb str r3, [r7, #104] @ 0x68
  31406. 800da28: 2300 movs r3, #0
  31407. 800da2a: 66fb str r3, [r7, #108] @ 0x6c
  31408. 800da2c: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  31409. 800da30: 460b mov r3, r1
  31410. 800da32: 4313 orrs r3, r2
  31411. 800da34: d031 beq.n 800da9a <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31412. {
  31413. /* Check the parameters */
  31414. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  31415. switch (PeriphClkInit->SdmmcClockSelection)
  31416. 800da36: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31417. 800da3a: 6d1b ldr r3, [r3, #80] @ 0x50
  31418. 800da3c: 2b00 cmp r3, #0
  31419. 800da3e: d003 beq.n 800da48 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  31420. 800da40: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31421. 800da44: d007 beq.n 800da56 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  31422. 800da46: e011 b.n 800da6c <HAL_RCCEx_PeriphCLKConfig+0x104c>
  31423. {
  31424. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  31425. /* Enable SDMMC Clock output generated form System PLL . */
  31426. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31427. 800da48: 4b2d ldr r3, [pc, #180] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31428. 800da4a: 6adb ldr r3, [r3, #44] @ 0x2c
  31429. 800da4c: 4a2c ldr r2, [pc, #176] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31430. 800da4e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31431. 800da52: 62d3 str r3, [r2, #44] @ 0x2c
  31432. /* SDMMC clock source configuration done later after clock selection check */
  31433. break;
  31434. 800da54: e00e b.n 800da74 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31435. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  31436. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31437. 800da56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31438. 800da5a: 3308 adds r3, #8
  31439. 800da5c: 2102 movs r1, #2
  31440. 800da5e: 4618 mov r0, r3
  31441. 800da60: f001 fb5c bl 800f11c <RCCEx_PLL2_Config>
  31442. 800da64: 4603 mov r3, r0
  31443. 800da66: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31444. /* SDMMC clock source configuration done later after clock selection check */
  31445. break;
  31446. 800da6a: e003 b.n 800da74 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31447. default:
  31448. ret = HAL_ERROR;
  31449. 800da6c: 2301 movs r3, #1
  31450. 800da6e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31451. break;
  31452. 800da72: bf00 nop
  31453. }
  31454. if (ret == HAL_OK)
  31455. 800da74: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31456. 800da78: 2b00 cmp r3, #0
  31457. 800da7a: d10a bne.n 800da92 <HAL_RCCEx_PeriphCLKConfig+0x1072>
  31458. {
  31459. /* Set the source of SDMMC clock*/
  31460. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  31461. 800da7c: 4b20 ldr r3, [pc, #128] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31462. 800da7e: 6cdb ldr r3, [r3, #76] @ 0x4c
  31463. 800da80: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31464. 800da84: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31465. 800da88: 6d1b ldr r3, [r3, #80] @ 0x50
  31466. 800da8a: 4a1d ldr r2, [pc, #116] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31467. 800da8c: 430b orrs r3, r1
  31468. 800da8e: 64d3 str r3, [r2, #76] @ 0x4c
  31469. 800da90: e003 b.n 800da9a <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31470. }
  31471. else
  31472. {
  31473. /* set overall return value */
  31474. status = ret;
  31475. 800da92: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31476. 800da96: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31477. }
  31478. }
  31479. #endif /* LTDC */
  31480. /*------------------------------ RNG Configuration -------------------------*/
  31481. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  31482. 800da9a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31483. 800da9e: e9d3 2300 ldrd r2, r3, [r3]
  31484. 800daa2: f402 3300 and.w r3, r2, #131072 @ 0x20000
  31485. 800daa6: 663b str r3, [r7, #96] @ 0x60
  31486. 800daa8: 2300 movs r3, #0
  31487. 800daaa: 667b str r3, [r7, #100] @ 0x64
  31488. 800daac: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  31489. 800dab0: 460b mov r3, r1
  31490. 800dab2: 4313 orrs r3, r2
  31491. 800dab4: d03b beq.n 800db2e <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31492. {
  31493. switch (PeriphClkInit->RngClockSelection)
  31494. 800dab6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31495. 800daba: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31496. 800dabe: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31497. 800dac2: d018 beq.n 800daf6 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  31498. 800dac4: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31499. 800dac8: d811 bhi.n 800daee <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31500. 800daca: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31501. 800dace: d014 beq.n 800dafa <HAL_RCCEx_PeriphCLKConfig+0x10da>
  31502. 800dad0: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31503. 800dad4: d80b bhi.n 800daee <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31504. 800dad6: 2b00 cmp r3, #0
  31505. 800dad8: d014 beq.n 800db04 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  31506. 800dada: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31507. 800dade: d106 bne.n 800daee <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31508. {
  31509. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  31510. /* Enable RNG Clock output generated form System RNG . */
  31511. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31512. 800dae0: 4b07 ldr r3, [pc, #28] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31513. 800dae2: 6adb ldr r3, [r3, #44] @ 0x2c
  31514. 800dae4: 4a06 ldr r2, [pc, #24] @ (800db00 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31515. 800dae6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31516. 800daea: 62d3 str r3, [r2, #44] @ 0x2c
  31517. /* RNG clock source configuration done later after clock selection check */
  31518. break;
  31519. 800daec: e00b b.n 800db06 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31520. /* HSI48 oscillator is used as source of RNG clock */
  31521. /* RNG clock source configuration done later after clock selection check */
  31522. break;
  31523. default:
  31524. ret = HAL_ERROR;
  31525. 800daee: 2301 movs r3, #1
  31526. 800daf0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31527. break;
  31528. 800daf4: e007 b.n 800db06 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31529. break;
  31530. 800daf6: bf00 nop
  31531. 800daf8: e005 b.n 800db06 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31532. break;
  31533. 800dafa: bf00 nop
  31534. 800dafc: e003 b.n 800db06 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31535. 800dafe: bf00 nop
  31536. 800db00: 58024400 .word 0x58024400
  31537. break;
  31538. 800db04: bf00 nop
  31539. }
  31540. if (ret == HAL_OK)
  31541. 800db06: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31542. 800db0a: 2b00 cmp r3, #0
  31543. 800db0c: d10b bne.n 800db26 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  31544. {
  31545. /* Set the source of RNG clock*/
  31546. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  31547. 800db0e: 4bba ldr r3, [pc, #744] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31548. 800db10: 6d5b ldr r3, [r3, #84] @ 0x54
  31549. 800db12: f423 7140 bic.w r1, r3, #768 @ 0x300
  31550. 800db16: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31551. 800db1a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31552. 800db1e: 4ab6 ldr r2, [pc, #728] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31553. 800db20: 430b orrs r3, r1
  31554. 800db22: 6553 str r3, [r2, #84] @ 0x54
  31555. 800db24: e003 b.n 800db2e <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31556. }
  31557. else
  31558. {
  31559. /* set overall return value */
  31560. status = ret;
  31561. 800db26: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31562. 800db2a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31563. }
  31564. }
  31565. /*------------------------------ SWPMI1 Configuration ------------------------*/
  31566. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  31567. 800db2e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31568. 800db32: e9d3 2300 ldrd r2, r3, [r3]
  31569. 800db36: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  31570. 800db3a: 65bb str r3, [r7, #88] @ 0x58
  31571. 800db3c: 2300 movs r3, #0
  31572. 800db3e: 65fb str r3, [r7, #92] @ 0x5c
  31573. 800db40: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  31574. 800db44: 460b mov r3, r1
  31575. 800db46: 4313 orrs r3, r2
  31576. 800db48: d009 beq.n 800db5e <HAL_RCCEx_PeriphCLKConfig+0x113e>
  31577. {
  31578. /* Check the parameters */
  31579. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  31580. /* Configure the SWPMI1 interface clock source */
  31581. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  31582. 800db4a: 4bab ldr r3, [pc, #684] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31583. 800db4c: 6d1b ldr r3, [r3, #80] @ 0x50
  31584. 800db4e: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  31585. 800db52: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31586. 800db56: 6f5b ldr r3, [r3, #116] @ 0x74
  31587. 800db58: 4aa7 ldr r2, [pc, #668] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31588. 800db5a: 430b orrs r3, r1
  31589. 800db5c: 6513 str r3, [r2, #80] @ 0x50
  31590. }
  31591. #if defined(HRTIM1)
  31592. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  31593. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  31594. 800db5e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31595. 800db62: e9d3 2300 ldrd r2, r3, [r3]
  31596. 800db66: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  31597. 800db6a: 653b str r3, [r7, #80] @ 0x50
  31598. 800db6c: 2300 movs r3, #0
  31599. 800db6e: 657b str r3, [r7, #84] @ 0x54
  31600. 800db70: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  31601. 800db74: 460b mov r3, r1
  31602. 800db76: 4313 orrs r3, r2
  31603. 800db78: d00a beq.n 800db90 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  31604. {
  31605. /* Check the parameters */
  31606. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  31607. /* Configure the HRTIM1 clock source */
  31608. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  31609. 800db7a: 4b9f ldr r3, [pc, #636] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31610. 800db7c: 691b ldr r3, [r3, #16]
  31611. 800db7e: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  31612. 800db82: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31613. 800db86: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  31614. 800db8a: 4a9b ldr r2, [pc, #620] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31615. 800db8c: 430b orrs r3, r1
  31616. 800db8e: 6113 str r3, [r2, #16]
  31617. }
  31618. #endif /*HRTIM1*/
  31619. /*------------------------------ DFSDM1 Configuration ------------------------*/
  31620. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  31621. 800db90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31622. 800db94: e9d3 2300 ldrd r2, r3, [r3]
  31623. 800db98: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  31624. 800db9c: 64bb str r3, [r7, #72] @ 0x48
  31625. 800db9e: 2300 movs r3, #0
  31626. 800dba0: 64fb str r3, [r7, #76] @ 0x4c
  31627. 800dba2: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  31628. 800dba6: 460b mov r3, r1
  31629. 800dba8: 4313 orrs r3, r2
  31630. 800dbaa: d009 beq.n 800dbc0 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  31631. {
  31632. /* Check the parameters */
  31633. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  31634. /* Configure the DFSDM1 interface clock source */
  31635. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  31636. 800dbac: 4b92 ldr r3, [pc, #584] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31637. 800dbae: 6d1b ldr r3, [r3, #80] @ 0x50
  31638. 800dbb0: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  31639. 800dbb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31640. 800dbb8: 6edb ldr r3, [r3, #108] @ 0x6c
  31641. 800dbba: 4a8f ldr r2, [pc, #572] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31642. 800dbbc: 430b orrs r3, r1
  31643. 800dbbe: 6513 str r3, [r2, #80] @ 0x50
  31644. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  31645. }
  31646. #endif /* DFSDM2 */
  31647. /*------------------------------------ TIM configuration --------------------------------------*/
  31648. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  31649. 800dbc0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31650. 800dbc4: e9d3 2300 ldrd r2, r3, [r3]
  31651. 800dbc8: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  31652. 800dbcc: 643b str r3, [r7, #64] @ 0x40
  31653. 800dbce: 2300 movs r3, #0
  31654. 800dbd0: 647b str r3, [r7, #68] @ 0x44
  31655. 800dbd2: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  31656. 800dbd6: 460b mov r3, r1
  31657. 800dbd8: 4313 orrs r3, r2
  31658. 800dbda: d00e beq.n 800dbfa <HAL_RCCEx_PeriphCLKConfig+0x11da>
  31659. {
  31660. /* Check the parameters */
  31661. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  31662. /* Configure Timer Prescaler */
  31663. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  31664. 800dbdc: 4b86 ldr r3, [pc, #536] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31665. 800dbde: 691b ldr r3, [r3, #16]
  31666. 800dbe0: 4a85 ldr r2, [pc, #532] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31667. 800dbe2: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  31668. 800dbe6: 6113 str r3, [r2, #16]
  31669. 800dbe8: 4b83 ldr r3, [pc, #524] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31670. 800dbea: 6919 ldr r1, [r3, #16]
  31671. 800dbec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31672. 800dbf0: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  31673. 800dbf4: 4a80 ldr r2, [pc, #512] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31674. 800dbf6: 430b orrs r3, r1
  31675. 800dbf8: 6113 str r3, [r2, #16]
  31676. }
  31677. /*------------------------------------ CKPER configuration --------------------------------------*/
  31678. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  31679. 800dbfa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31680. 800dbfe: e9d3 2300 ldrd r2, r3, [r3]
  31681. 800dc02: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  31682. 800dc06: 63bb str r3, [r7, #56] @ 0x38
  31683. 800dc08: 2300 movs r3, #0
  31684. 800dc0a: 63fb str r3, [r7, #60] @ 0x3c
  31685. 800dc0c: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  31686. 800dc10: 460b mov r3, r1
  31687. 800dc12: 4313 orrs r3, r2
  31688. 800dc14: d009 beq.n 800dc2a <HAL_RCCEx_PeriphCLKConfig+0x120a>
  31689. {
  31690. /* Check the parameters */
  31691. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  31692. /* Configure the CKPER clock source */
  31693. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  31694. 800dc16: 4b78 ldr r3, [pc, #480] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31695. 800dc18: 6cdb ldr r3, [r3, #76] @ 0x4c
  31696. 800dc1a: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  31697. 800dc1e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31698. 800dc22: 6d5b ldr r3, [r3, #84] @ 0x54
  31699. 800dc24: 4a74 ldr r2, [pc, #464] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31700. 800dc26: 430b orrs r3, r1
  31701. 800dc28: 64d3 str r3, [r2, #76] @ 0x4c
  31702. }
  31703. /*------------------------------ CEC Configuration ------------------------*/
  31704. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  31705. 800dc2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31706. 800dc2e: e9d3 2300 ldrd r2, r3, [r3]
  31707. 800dc32: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  31708. 800dc36: 633b str r3, [r7, #48] @ 0x30
  31709. 800dc38: 2300 movs r3, #0
  31710. 800dc3a: 637b str r3, [r7, #52] @ 0x34
  31711. 800dc3c: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  31712. 800dc40: 460b mov r3, r1
  31713. 800dc42: 4313 orrs r3, r2
  31714. 800dc44: d00a beq.n 800dc5c <HAL_RCCEx_PeriphCLKConfig+0x123c>
  31715. {
  31716. /* Check the parameters */
  31717. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  31718. /* Configure the CEC interface clock source */
  31719. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  31720. 800dc46: 4b6c ldr r3, [pc, #432] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31721. 800dc48: 6d5b ldr r3, [r3, #84] @ 0x54
  31722. 800dc4a: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  31723. 800dc4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31724. 800dc52: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  31725. 800dc56: 4a68 ldr r2, [pc, #416] @ (800ddf8 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31726. 800dc58: 430b orrs r3, r1
  31727. 800dc5a: 6553 str r3, [r2, #84] @ 0x54
  31728. }
  31729. /*---------------------------- PLL2 configuration -------------------------------*/
  31730. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  31731. 800dc5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31732. 800dc60: e9d3 2300 ldrd r2, r3, [r3]
  31733. 800dc64: 2100 movs r1, #0
  31734. 800dc66: 62b9 str r1, [r7, #40] @ 0x28
  31735. 800dc68: f003 0301 and.w r3, r3, #1
  31736. 800dc6c: 62fb str r3, [r7, #44] @ 0x2c
  31737. 800dc6e: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  31738. 800dc72: 460b mov r3, r1
  31739. 800dc74: 4313 orrs r3, r2
  31740. 800dc76: d011 beq.n 800dc9c <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31741. {
  31742. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31743. 800dc78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31744. 800dc7c: 3308 adds r3, #8
  31745. 800dc7e: 2100 movs r1, #0
  31746. 800dc80: 4618 mov r0, r3
  31747. 800dc82: f001 fa4b bl 800f11c <RCCEx_PLL2_Config>
  31748. 800dc86: 4603 mov r3, r0
  31749. 800dc88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31750. if (ret == HAL_OK)
  31751. 800dc8c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31752. 800dc90: 2b00 cmp r3, #0
  31753. 800dc92: d003 beq.n 800dc9c <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31754. /*Nothing to do*/
  31755. }
  31756. else
  31757. {
  31758. /* set overall return value */
  31759. status = ret;
  31760. 800dc94: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31761. 800dc98: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31762. }
  31763. }
  31764. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  31765. 800dc9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31766. 800dca0: e9d3 2300 ldrd r2, r3, [r3]
  31767. 800dca4: 2100 movs r1, #0
  31768. 800dca6: 6239 str r1, [r7, #32]
  31769. 800dca8: f003 0302 and.w r3, r3, #2
  31770. 800dcac: 627b str r3, [r7, #36] @ 0x24
  31771. 800dcae: e9d7 1208 ldrd r1, r2, [r7, #32]
  31772. 800dcb2: 460b mov r3, r1
  31773. 800dcb4: 4313 orrs r3, r2
  31774. 800dcb6: d011 beq.n 800dcdc <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31775. {
  31776. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  31777. 800dcb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31778. 800dcbc: 3308 adds r3, #8
  31779. 800dcbe: 2101 movs r1, #1
  31780. 800dcc0: 4618 mov r0, r3
  31781. 800dcc2: f001 fa2b bl 800f11c <RCCEx_PLL2_Config>
  31782. 800dcc6: 4603 mov r3, r0
  31783. 800dcc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31784. if (ret == HAL_OK)
  31785. 800dccc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31786. 800dcd0: 2b00 cmp r3, #0
  31787. 800dcd2: d003 beq.n 800dcdc <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31788. /*Nothing to do*/
  31789. }
  31790. else
  31791. {
  31792. /* set overall return value */
  31793. status = ret;
  31794. 800dcd4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31795. 800dcd8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31796. }
  31797. }
  31798. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  31799. 800dcdc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31800. 800dce0: e9d3 2300 ldrd r2, r3, [r3]
  31801. 800dce4: 2100 movs r1, #0
  31802. 800dce6: 61b9 str r1, [r7, #24]
  31803. 800dce8: f003 0304 and.w r3, r3, #4
  31804. 800dcec: 61fb str r3, [r7, #28]
  31805. 800dcee: e9d7 1206 ldrd r1, r2, [r7, #24]
  31806. 800dcf2: 460b mov r3, r1
  31807. 800dcf4: 4313 orrs r3, r2
  31808. 800dcf6: d011 beq.n 800dd1c <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31809. {
  31810. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31811. 800dcf8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31812. 800dcfc: 3308 adds r3, #8
  31813. 800dcfe: 2102 movs r1, #2
  31814. 800dd00: 4618 mov r0, r3
  31815. 800dd02: f001 fa0b bl 800f11c <RCCEx_PLL2_Config>
  31816. 800dd06: 4603 mov r3, r0
  31817. 800dd08: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31818. if (ret == HAL_OK)
  31819. 800dd0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31820. 800dd10: 2b00 cmp r3, #0
  31821. 800dd12: d003 beq.n 800dd1c <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31822. /*Nothing to do*/
  31823. }
  31824. else
  31825. {
  31826. /* set overall return value */
  31827. status = ret;
  31828. 800dd14: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31829. 800dd18: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31830. }
  31831. }
  31832. /*---------------------------- PLL3 configuration -------------------------------*/
  31833. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  31834. 800dd1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31835. 800dd20: e9d3 2300 ldrd r2, r3, [r3]
  31836. 800dd24: 2100 movs r1, #0
  31837. 800dd26: 6139 str r1, [r7, #16]
  31838. 800dd28: f003 0308 and.w r3, r3, #8
  31839. 800dd2c: 617b str r3, [r7, #20]
  31840. 800dd2e: e9d7 1204 ldrd r1, r2, [r7, #16]
  31841. 800dd32: 460b mov r3, r1
  31842. 800dd34: 4313 orrs r3, r2
  31843. 800dd36: d011 beq.n 800dd5c <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31844. {
  31845. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  31846. 800dd38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31847. 800dd3c: 3328 adds r3, #40 @ 0x28
  31848. 800dd3e: 2100 movs r1, #0
  31849. 800dd40: 4618 mov r0, r3
  31850. 800dd42: f001 fa9d bl 800f280 <RCCEx_PLL3_Config>
  31851. 800dd46: 4603 mov r3, r0
  31852. 800dd48: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31853. if (ret == HAL_OK)
  31854. 800dd4c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31855. 800dd50: 2b00 cmp r3, #0
  31856. 800dd52: d003 beq.n 800dd5c <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31857. /*Nothing to do*/
  31858. }
  31859. else
  31860. {
  31861. /* set overall return value */
  31862. status = ret;
  31863. 800dd54: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31864. 800dd58: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31865. }
  31866. }
  31867. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  31868. 800dd5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31869. 800dd60: e9d3 2300 ldrd r2, r3, [r3]
  31870. 800dd64: 2100 movs r1, #0
  31871. 800dd66: 60b9 str r1, [r7, #8]
  31872. 800dd68: f003 0310 and.w r3, r3, #16
  31873. 800dd6c: 60fb str r3, [r7, #12]
  31874. 800dd6e: e9d7 1202 ldrd r1, r2, [r7, #8]
  31875. 800dd72: 460b mov r3, r1
  31876. 800dd74: 4313 orrs r3, r2
  31877. 800dd76: d011 beq.n 800dd9c <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31878. {
  31879. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31880. 800dd78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31881. 800dd7c: 3328 adds r3, #40 @ 0x28
  31882. 800dd7e: 2101 movs r1, #1
  31883. 800dd80: 4618 mov r0, r3
  31884. 800dd82: f001 fa7d bl 800f280 <RCCEx_PLL3_Config>
  31885. 800dd86: 4603 mov r3, r0
  31886. 800dd88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31887. if (ret == HAL_OK)
  31888. 800dd8c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31889. 800dd90: 2b00 cmp r3, #0
  31890. 800dd92: d003 beq.n 800dd9c <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31891. /*Nothing to do*/
  31892. }
  31893. else
  31894. {
  31895. /* set overall return value */
  31896. status = ret;
  31897. 800dd94: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31898. 800dd98: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31899. }
  31900. }
  31901. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  31902. 800dd9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31903. 800dda0: e9d3 2300 ldrd r2, r3, [r3]
  31904. 800dda4: 2100 movs r1, #0
  31905. 800dda6: 6039 str r1, [r7, #0]
  31906. 800dda8: f003 0320 and.w r3, r3, #32
  31907. 800ddac: 607b str r3, [r7, #4]
  31908. 800ddae: e9d7 1200 ldrd r1, r2, [r7]
  31909. 800ddb2: 460b mov r3, r1
  31910. 800ddb4: 4313 orrs r3, r2
  31911. 800ddb6: d011 beq.n 800dddc <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31912. {
  31913. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31914. 800ddb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31915. 800ddbc: 3328 adds r3, #40 @ 0x28
  31916. 800ddbe: 2102 movs r1, #2
  31917. 800ddc0: 4618 mov r0, r3
  31918. 800ddc2: f001 fa5d bl 800f280 <RCCEx_PLL3_Config>
  31919. 800ddc6: 4603 mov r3, r0
  31920. 800ddc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31921. if (ret == HAL_OK)
  31922. 800ddcc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31923. 800ddd0: 2b00 cmp r3, #0
  31924. 800ddd2: d003 beq.n 800dddc <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31925. /*Nothing to do*/
  31926. }
  31927. else
  31928. {
  31929. /* set overall return value */
  31930. status = ret;
  31931. 800ddd4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31932. 800ddd8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31933. }
  31934. }
  31935. if (status == HAL_OK)
  31936. 800dddc: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  31937. 800dde0: 2b00 cmp r3, #0
  31938. 800dde2: d101 bne.n 800dde8 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  31939. {
  31940. return HAL_OK;
  31941. 800dde4: 2300 movs r3, #0
  31942. 800dde6: e000 b.n 800ddea <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  31943. }
  31944. return HAL_ERROR;
  31945. 800dde8: 2301 movs r3, #1
  31946. }
  31947. 800ddea: 4618 mov r0, r3
  31948. 800ddec: f507 7790 add.w r7, r7, #288 @ 0x120
  31949. 800ddf0: 46bd mov sp, r7
  31950. 800ddf2: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31951. 800ddf6: bf00 nop
  31952. 800ddf8: 58024400 .word 0x58024400
  31953. 0800ddfc <HAL_RCCEx_GetPeriphCLKFreq>:
  31954. * @retval Frequency in KHz
  31955. *
  31956. * (*) : Available on some STM32H7 lines only.
  31957. */
  31958. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  31959. {
  31960. 800ddfc: b580 push {r7, lr}
  31961. 800ddfe: b090 sub sp, #64 @ 0x40
  31962. 800de00: af00 add r7, sp, #0
  31963. 800de02: e9c7 0100 strd r0, r1, [r7]
  31964. /* This variable is used to store the SAI and CKP clock source */
  31965. uint32_t saiclocksource;
  31966. uint32_t ckpclocksource;
  31967. uint32_t srcclk;
  31968. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  31969. 800de06: e9d7 2300 ldrd r2, r3, [r7]
  31970. 800de0a: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  31971. 800de0e: 430b orrs r3, r1
  31972. 800de10: f040 8094 bne.w 800df3c <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  31973. {
  31974. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  31975. 800de14: 4b9e ldr r3, [pc, #632] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31976. 800de16: 6d1b ldr r3, [r3, #80] @ 0x50
  31977. 800de18: f003 0307 and.w r3, r3, #7
  31978. 800de1c: 633b str r3, [r7, #48] @ 0x30
  31979. switch (saiclocksource)
  31980. 800de1e: 6b3b ldr r3, [r7, #48] @ 0x30
  31981. 800de20: 2b04 cmp r3, #4
  31982. 800de22: f200 8087 bhi.w 800df34 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  31983. 800de26: a201 add r2, pc, #4 @ (adr r2, 800de2c <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  31984. 800de28: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31985. 800de2c: 0800de41 .word 0x0800de41
  31986. 800de30: 0800de69 .word 0x0800de69
  31987. 800de34: 0800de91 .word 0x0800de91
  31988. 800de38: 0800df2d .word 0x0800df2d
  31989. 800de3c: 0800deb9 .word 0x0800deb9
  31990. {
  31991. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  31992. {
  31993. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31994. 800de40: 4b93 ldr r3, [pc, #588] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31995. 800de42: 681b ldr r3, [r3, #0]
  31996. 800de44: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31997. 800de48: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31998. 800de4c: d108 bne.n 800de60 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  31999. {
  32000. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32001. 800de4e: f107 0324 add.w r3, r7, #36 @ 0x24
  32002. 800de52: 4618 mov r0, r3
  32003. 800de54: f001 f810 bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  32004. frequency = pll1_clocks.PLL1_Q_Frequency;
  32005. 800de58: 6abb ldr r3, [r7, #40] @ 0x28
  32006. 800de5a: 63fb str r3, [r7, #60] @ 0x3c
  32007. }
  32008. else
  32009. {
  32010. frequency = 0;
  32011. }
  32012. break;
  32013. 800de5c: f000 bd45 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32014. frequency = 0;
  32015. 800de60: 2300 movs r3, #0
  32016. 800de62: 63fb str r3, [r7, #60] @ 0x3c
  32017. break;
  32018. 800de64: f000 bd41 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32019. }
  32020. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  32021. {
  32022. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32023. 800de68: 4b89 ldr r3, [pc, #548] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32024. 800de6a: 681b ldr r3, [r3, #0]
  32025. 800de6c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32026. 800de70: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32027. 800de74: d108 bne.n 800de88 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  32028. {
  32029. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32030. 800de76: f107 0318 add.w r3, r7, #24
  32031. 800de7a: 4618 mov r0, r3
  32032. 800de7c: f000 fd54 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  32033. frequency = pll2_clocks.PLL2_P_Frequency;
  32034. 800de80: 69bb ldr r3, [r7, #24]
  32035. 800de82: 63fb str r3, [r7, #60] @ 0x3c
  32036. }
  32037. else
  32038. {
  32039. frequency = 0;
  32040. }
  32041. break;
  32042. 800de84: f000 bd31 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32043. frequency = 0;
  32044. 800de88: 2300 movs r3, #0
  32045. 800de8a: 63fb str r3, [r7, #60] @ 0x3c
  32046. break;
  32047. 800de8c: f000 bd2d b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32048. }
  32049. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  32050. {
  32051. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32052. 800de90: 4b7f ldr r3, [pc, #508] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32053. 800de92: 681b ldr r3, [r3, #0]
  32054. 800de94: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32055. 800de98: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32056. 800de9c: d108 bne.n 800deb0 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  32057. {
  32058. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32059. 800de9e: f107 030c add.w r3, r7, #12
  32060. 800dea2: 4618 mov r0, r3
  32061. 800dea4: f000 fe94 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  32062. frequency = pll3_clocks.PLL3_P_Frequency;
  32063. 800dea8: 68fb ldr r3, [r7, #12]
  32064. 800deaa: 63fb str r3, [r7, #60] @ 0x3c
  32065. }
  32066. else
  32067. {
  32068. frequency = 0;
  32069. }
  32070. break;
  32071. 800deac: f000 bd1d b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32072. frequency = 0;
  32073. 800deb0: 2300 movs r3, #0
  32074. 800deb2: 63fb str r3, [r7, #60] @ 0x3c
  32075. break;
  32076. 800deb4: f000 bd19 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32077. }
  32078. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  32079. {
  32080. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32081. 800deb8: 4b75 ldr r3, [pc, #468] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32082. 800deba: 6cdb ldr r3, [r3, #76] @ 0x4c
  32083. 800debc: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32084. 800dec0: 637b str r3, [r7, #52] @ 0x34
  32085. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32086. 800dec2: 4b73 ldr r3, [pc, #460] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32087. 800dec4: 681b ldr r3, [r3, #0]
  32088. 800dec6: f003 0304 and.w r3, r3, #4
  32089. 800deca: 2b04 cmp r3, #4
  32090. 800decc: d10c bne.n 800dee8 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32091. 800dece: 6b7b ldr r3, [r7, #52] @ 0x34
  32092. 800ded0: 2b00 cmp r3, #0
  32093. 800ded2: d109 bne.n 800dee8 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32094. {
  32095. /* In Case the CKPER Source is HSI */
  32096. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32097. 800ded4: 4b6e ldr r3, [pc, #440] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32098. 800ded6: 681b ldr r3, [r3, #0]
  32099. 800ded8: 08db lsrs r3, r3, #3
  32100. 800deda: f003 0303 and.w r3, r3, #3
  32101. 800dede: 4a6d ldr r2, [pc, #436] @ (800e094 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32102. 800dee0: fa22 f303 lsr.w r3, r2, r3
  32103. 800dee4: 63fb str r3, [r7, #60] @ 0x3c
  32104. 800dee6: e01f b.n 800df28 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32105. }
  32106. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32107. 800dee8: 4b69 ldr r3, [pc, #420] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32108. 800deea: 681b ldr r3, [r3, #0]
  32109. 800deec: f403 7380 and.w r3, r3, #256 @ 0x100
  32110. 800def0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32111. 800def4: d106 bne.n 800df04 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32112. 800def6: 6b7b ldr r3, [r7, #52] @ 0x34
  32113. 800def8: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32114. 800defc: d102 bne.n 800df04 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32115. {
  32116. /* In Case the CKPER Source is CSI */
  32117. frequency = CSI_VALUE;
  32118. 800defe: 4b66 ldr r3, [pc, #408] @ (800e098 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32119. 800df00: 63fb str r3, [r7, #60] @ 0x3c
  32120. 800df02: e011 b.n 800df28 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32121. }
  32122. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32123. 800df04: 4b62 ldr r3, [pc, #392] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32124. 800df06: 681b ldr r3, [r3, #0]
  32125. 800df08: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32126. 800df0c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32127. 800df10: d106 bne.n 800df20 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32128. 800df12: 6b7b ldr r3, [r7, #52] @ 0x34
  32129. 800df14: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32130. 800df18: d102 bne.n 800df20 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32131. {
  32132. /* In Case the CKPER Source is HSE */
  32133. frequency = HSE_VALUE;
  32134. 800df1a: 4b60 ldr r3, [pc, #384] @ (800e09c <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32135. 800df1c: 63fb str r3, [r7, #60] @ 0x3c
  32136. 800df1e: e003 b.n 800df28 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32137. }
  32138. else
  32139. {
  32140. /* In Case the CKPER is disabled*/
  32141. frequency = 0;
  32142. 800df20: 2300 movs r3, #0
  32143. 800df22: 63fb str r3, [r7, #60] @ 0x3c
  32144. }
  32145. break;
  32146. 800df24: f000 bce1 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32147. 800df28: f000 bcdf b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32148. }
  32149. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  32150. {
  32151. frequency = EXTERNAL_CLOCK_VALUE;
  32152. 800df2c: 4b5c ldr r3, [pc, #368] @ (800e0a0 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32153. 800df2e: 63fb str r3, [r7, #60] @ 0x3c
  32154. break;
  32155. 800df30: f000 bcdb b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32156. }
  32157. default :
  32158. {
  32159. frequency = 0;
  32160. 800df34: 2300 movs r3, #0
  32161. 800df36: 63fb str r3, [r7, #60] @ 0x3c
  32162. break;
  32163. 800df38: f000 bcd7 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32164. }
  32165. }
  32166. }
  32167. #if defined(SAI3)
  32168. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  32169. 800df3c: e9d7 2300 ldrd r2, r3, [r7]
  32170. 800df40: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  32171. 800df44: 430b orrs r3, r1
  32172. 800df46: f040 80ad bne.w 800e0a4 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  32173. {
  32174. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  32175. 800df4a: 4b51 ldr r3, [pc, #324] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32176. 800df4c: 6d1b ldr r3, [r3, #80] @ 0x50
  32177. 800df4e: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  32178. 800df52: 633b str r3, [r7, #48] @ 0x30
  32179. switch (saiclocksource)
  32180. 800df54: 6b3b ldr r3, [r7, #48] @ 0x30
  32181. 800df56: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32182. 800df5a: d056 beq.n 800e00a <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  32183. 800df5c: 6b3b ldr r3, [r7, #48] @ 0x30
  32184. 800df5e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32185. 800df62: f200 8090 bhi.w 800e086 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32186. 800df66: 6b3b ldr r3, [r7, #48] @ 0x30
  32187. 800df68: 2bc0 cmp r3, #192 @ 0xc0
  32188. 800df6a: f000 8088 beq.w 800e07e <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  32189. 800df6e: 6b3b ldr r3, [r7, #48] @ 0x30
  32190. 800df70: 2bc0 cmp r3, #192 @ 0xc0
  32191. 800df72: f200 8088 bhi.w 800e086 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32192. 800df76: 6b3b ldr r3, [r7, #48] @ 0x30
  32193. 800df78: 2b80 cmp r3, #128 @ 0x80
  32194. 800df7a: d032 beq.n 800dfe2 <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  32195. 800df7c: 6b3b ldr r3, [r7, #48] @ 0x30
  32196. 800df7e: 2b80 cmp r3, #128 @ 0x80
  32197. 800df80: f200 8081 bhi.w 800e086 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32198. 800df84: 6b3b ldr r3, [r7, #48] @ 0x30
  32199. 800df86: 2b00 cmp r3, #0
  32200. 800df88: d003 beq.n 800df92 <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  32201. 800df8a: 6b3b ldr r3, [r7, #48] @ 0x30
  32202. 800df8c: 2b40 cmp r3, #64 @ 0x40
  32203. 800df8e: d014 beq.n 800dfba <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  32204. 800df90: e079 b.n 800e086 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32205. {
  32206. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  32207. {
  32208. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32209. 800df92: 4b3f ldr r3, [pc, #252] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32210. 800df94: 681b ldr r3, [r3, #0]
  32211. 800df96: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32212. 800df9a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32213. 800df9e: d108 bne.n 800dfb2 <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  32214. {
  32215. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32216. 800dfa0: f107 0324 add.w r3, r7, #36 @ 0x24
  32217. 800dfa4: 4618 mov r0, r3
  32218. 800dfa6: f000 ff67 bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  32219. frequency = pll1_clocks.PLL1_Q_Frequency;
  32220. 800dfaa: 6abb ldr r3, [r7, #40] @ 0x28
  32221. 800dfac: 63fb str r3, [r7, #60] @ 0x3c
  32222. }
  32223. else
  32224. {
  32225. frequency = 0;
  32226. }
  32227. break;
  32228. 800dfae: f000 bc9c b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32229. frequency = 0;
  32230. 800dfb2: 2300 movs r3, #0
  32231. 800dfb4: 63fb str r3, [r7, #60] @ 0x3c
  32232. break;
  32233. 800dfb6: f000 bc98 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32234. }
  32235. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  32236. {
  32237. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32238. 800dfba: 4b35 ldr r3, [pc, #212] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32239. 800dfbc: 681b ldr r3, [r3, #0]
  32240. 800dfbe: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32241. 800dfc2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32242. 800dfc6: d108 bne.n 800dfda <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  32243. {
  32244. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32245. 800dfc8: f107 0318 add.w r3, r7, #24
  32246. 800dfcc: 4618 mov r0, r3
  32247. 800dfce: f000 fcab bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  32248. frequency = pll2_clocks.PLL2_P_Frequency;
  32249. 800dfd2: 69bb ldr r3, [r7, #24]
  32250. 800dfd4: 63fb str r3, [r7, #60] @ 0x3c
  32251. }
  32252. else
  32253. {
  32254. frequency = 0;
  32255. }
  32256. break;
  32257. 800dfd6: f000 bc88 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32258. frequency = 0;
  32259. 800dfda: 2300 movs r3, #0
  32260. 800dfdc: 63fb str r3, [r7, #60] @ 0x3c
  32261. break;
  32262. 800dfde: f000 bc84 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32263. }
  32264. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  32265. {
  32266. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32267. 800dfe2: 4b2b ldr r3, [pc, #172] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32268. 800dfe4: 681b ldr r3, [r3, #0]
  32269. 800dfe6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32270. 800dfea: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32271. 800dfee: d108 bne.n 800e002 <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  32272. {
  32273. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32274. 800dff0: f107 030c add.w r3, r7, #12
  32275. 800dff4: 4618 mov r0, r3
  32276. 800dff6: f000 fdeb bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  32277. frequency = pll3_clocks.PLL3_P_Frequency;
  32278. 800dffa: 68fb ldr r3, [r7, #12]
  32279. 800dffc: 63fb str r3, [r7, #60] @ 0x3c
  32280. }
  32281. else
  32282. {
  32283. frequency = 0;
  32284. }
  32285. break;
  32286. 800dffe: f000 bc74 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32287. frequency = 0;
  32288. 800e002: 2300 movs r3, #0
  32289. 800e004: 63fb str r3, [r7, #60] @ 0x3c
  32290. break;
  32291. 800e006: f000 bc70 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32292. }
  32293. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  32294. {
  32295. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32296. 800e00a: 4b21 ldr r3, [pc, #132] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32297. 800e00c: 6cdb ldr r3, [r3, #76] @ 0x4c
  32298. 800e00e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32299. 800e012: 637b str r3, [r7, #52] @ 0x34
  32300. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32301. 800e014: 4b1e ldr r3, [pc, #120] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32302. 800e016: 681b ldr r3, [r3, #0]
  32303. 800e018: f003 0304 and.w r3, r3, #4
  32304. 800e01c: 2b04 cmp r3, #4
  32305. 800e01e: d10c bne.n 800e03a <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32306. 800e020: 6b7b ldr r3, [r7, #52] @ 0x34
  32307. 800e022: 2b00 cmp r3, #0
  32308. 800e024: d109 bne.n 800e03a <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32309. {
  32310. /* In Case the CKPER Source is HSI */
  32311. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32312. 800e026: 4b1a ldr r3, [pc, #104] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32313. 800e028: 681b ldr r3, [r3, #0]
  32314. 800e02a: 08db lsrs r3, r3, #3
  32315. 800e02c: f003 0303 and.w r3, r3, #3
  32316. 800e030: 4a18 ldr r2, [pc, #96] @ (800e094 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32317. 800e032: fa22 f303 lsr.w r3, r2, r3
  32318. 800e036: 63fb str r3, [r7, #60] @ 0x3c
  32319. 800e038: e01f b.n 800e07a <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32320. }
  32321. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32322. 800e03a: 4b15 ldr r3, [pc, #84] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32323. 800e03c: 681b ldr r3, [r3, #0]
  32324. 800e03e: f403 7380 and.w r3, r3, #256 @ 0x100
  32325. 800e042: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32326. 800e046: d106 bne.n 800e056 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32327. 800e048: 6b7b ldr r3, [r7, #52] @ 0x34
  32328. 800e04a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32329. 800e04e: d102 bne.n 800e056 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32330. {
  32331. /* In Case the CKPER Source is CSI */
  32332. frequency = CSI_VALUE;
  32333. 800e050: 4b11 ldr r3, [pc, #68] @ (800e098 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32334. 800e052: 63fb str r3, [r7, #60] @ 0x3c
  32335. 800e054: e011 b.n 800e07a <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32336. }
  32337. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32338. 800e056: 4b0e ldr r3, [pc, #56] @ (800e090 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32339. 800e058: 681b ldr r3, [r3, #0]
  32340. 800e05a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32341. 800e05e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32342. 800e062: d106 bne.n 800e072 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32343. 800e064: 6b7b ldr r3, [r7, #52] @ 0x34
  32344. 800e066: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32345. 800e06a: d102 bne.n 800e072 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32346. {
  32347. /* In Case the CKPER Source is HSE */
  32348. frequency = HSE_VALUE;
  32349. 800e06c: 4b0b ldr r3, [pc, #44] @ (800e09c <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32350. 800e06e: 63fb str r3, [r7, #60] @ 0x3c
  32351. 800e070: e003 b.n 800e07a <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32352. }
  32353. else
  32354. {
  32355. /* In Case the CKPER is disabled*/
  32356. frequency = 0;
  32357. 800e072: 2300 movs r3, #0
  32358. 800e074: 63fb str r3, [r7, #60] @ 0x3c
  32359. }
  32360. break;
  32361. 800e076: f000 bc38 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32362. 800e07a: f000 bc36 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32363. }
  32364. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  32365. {
  32366. frequency = EXTERNAL_CLOCK_VALUE;
  32367. 800e07e: 4b08 ldr r3, [pc, #32] @ (800e0a0 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32368. 800e080: 63fb str r3, [r7, #60] @ 0x3c
  32369. break;
  32370. 800e082: f000 bc32 b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32371. }
  32372. default :
  32373. {
  32374. frequency = 0;
  32375. 800e086: 2300 movs r3, #0
  32376. 800e088: 63fb str r3, [r7, #60] @ 0x3c
  32377. break;
  32378. 800e08a: f000 bc2e b.w 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32379. 800e08e: bf00 nop
  32380. 800e090: 58024400 .word 0x58024400
  32381. 800e094: 03d09000 .word 0x03d09000
  32382. 800e098: 003d0900 .word 0x003d0900
  32383. 800e09c: 017d7840 .word 0x017d7840
  32384. 800e0a0: 00bb8000 .word 0x00bb8000
  32385. }
  32386. }
  32387. #endif
  32388. #if defined(SAI4)
  32389. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  32390. 800e0a4: e9d7 2300 ldrd r2, r3, [r7]
  32391. 800e0a8: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  32392. 800e0ac: 430b orrs r3, r1
  32393. 800e0ae: f040 809c bne.w 800e1ea <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  32394. {
  32395. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  32396. 800e0b2: 4b9e ldr r3, [pc, #632] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32397. 800e0b4: 6d9b ldr r3, [r3, #88] @ 0x58
  32398. 800e0b6: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  32399. 800e0ba: 633b str r3, [r7, #48] @ 0x30
  32400. switch (saiclocksource)
  32401. 800e0bc: 6b3b ldr r3, [r7, #48] @ 0x30
  32402. 800e0be: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32403. 800e0c2: d054 beq.n 800e16e <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  32404. 800e0c4: 6b3b ldr r3, [r7, #48] @ 0x30
  32405. 800e0c6: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32406. 800e0ca: f200 808b bhi.w 800e1e4 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32407. 800e0ce: 6b3b ldr r3, [r7, #48] @ 0x30
  32408. 800e0d0: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32409. 800e0d4: f000 8083 beq.w 800e1de <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  32410. 800e0d8: 6b3b ldr r3, [r7, #48] @ 0x30
  32411. 800e0da: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32412. 800e0de: f200 8081 bhi.w 800e1e4 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32413. 800e0e2: 6b3b ldr r3, [r7, #48] @ 0x30
  32414. 800e0e4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32415. 800e0e8: d02f beq.n 800e14a <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  32416. 800e0ea: 6b3b ldr r3, [r7, #48] @ 0x30
  32417. 800e0ec: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32418. 800e0f0: d878 bhi.n 800e1e4 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32419. 800e0f2: 6b3b ldr r3, [r7, #48] @ 0x30
  32420. 800e0f4: 2b00 cmp r3, #0
  32421. 800e0f6: d004 beq.n 800e102 <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  32422. 800e0f8: 6b3b ldr r3, [r7, #48] @ 0x30
  32423. 800e0fa: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  32424. 800e0fe: d012 beq.n 800e126 <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  32425. 800e100: e070 b.n 800e1e4 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32426. {
  32427. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  32428. {
  32429. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32430. 800e102: 4b8a ldr r3, [pc, #552] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32431. 800e104: 681b ldr r3, [r3, #0]
  32432. 800e106: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32433. 800e10a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32434. 800e10e: d107 bne.n 800e120 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  32435. {
  32436. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32437. 800e110: f107 0324 add.w r3, r7, #36 @ 0x24
  32438. 800e114: 4618 mov r0, r3
  32439. 800e116: f000 feaf bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  32440. frequency = pll1_clocks.PLL1_Q_Frequency;
  32441. 800e11a: 6abb ldr r3, [r7, #40] @ 0x28
  32442. 800e11c: 63fb str r3, [r7, #60] @ 0x3c
  32443. }
  32444. else
  32445. {
  32446. frequency = 0;
  32447. }
  32448. break;
  32449. 800e11e: e3e4 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32450. frequency = 0;
  32451. 800e120: 2300 movs r3, #0
  32452. 800e122: 63fb str r3, [r7, #60] @ 0x3c
  32453. break;
  32454. 800e124: e3e1 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32455. }
  32456. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  32457. {
  32458. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32459. 800e126: 4b81 ldr r3, [pc, #516] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32460. 800e128: 681b ldr r3, [r3, #0]
  32461. 800e12a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32462. 800e12e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32463. 800e132: d107 bne.n 800e144 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  32464. {
  32465. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32466. 800e134: f107 0318 add.w r3, r7, #24
  32467. 800e138: 4618 mov r0, r3
  32468. 800e13a: f000 fbf5 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  32469. frequency = pll2_clocks.PLL2_P_Frequency;
  32470. 800e13e: 69bb ldr r3, [r7, #24]
  32471. 800e140: 63fb str r3, [r7, #60] @ 0x3c
  32472. }
  32473. else
  32474. {
  32475. frequency = 0;
  32476. }
  32477. break;
  32478. 800e142: e3d2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32479. frequency = 0;
  32480. 800e144: 2300 movs r3, #0
  32481. 800e146: 63fb str r3, [r7, #60] @ 0x3c
  32482. break;
  32483. 800e148: e3cf b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32484. }
  32485. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  32486. {
  32487. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32488. 800e14a: 4b78 ldr r3, [pc, #480] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32489. 800e14c: 681b ldr r3, [r3, #0]
  32490. 800e14e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32491. 800e152: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32492. 800e156: d107 bne.n 800e168 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  32493. {
  32494. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32495. 800e158: f107 030c add.w r3, r7, #12
  32496. 800e15c: 4618 mov r0, r3
  32497. 800e15e: f000 fd37 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  32498. frequency = pll3_clocks.PLL3_P_Frequency;
  32499. 800e162: 68fb ldr r3, [r7, #12]
  32500. 800e164: 63fb str r3, [r7, #60] @ 0x3c
  32501. }
  32502. else
  32503. {
  32504. frequency = 0;
  32505. }
  32506. break;
  32507. 800e166: e3c0 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32508. frequency = 0;
  32509. 800e168: 2300 movs r3, #0
  32510. 800e16a: 63fb str r3, [r7, #60] @ 0x3c
  32511. break;
  32512. 800e16c: e3bd b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32513. }
  32514. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  32515. {
  32516. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32517. 800e16e: 4b6f ldr r3, [pc, #444] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32518. 800e170: 6cdb ldr r3, [r3, #76] @ 0x4c
  32519. 800e172: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32520. 800e176: 637b str r3, [r7, #52] @ 0x34
  32521. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32522. 800e178: 4b6c ldr r3, [pc, #432] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32523. 800e17a: 681b ldr r3, [r3, #0]
  32524. 800e17c: f003 0304 and.w r3, r3, #4
  32525. 800e180: 2b04 cmp r3, #4
  32526. 800e182: d10c bne.n 800e19e <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32527. 800e184: 6b7b ldr r3, [r7, #52] @ 0x34
  32528. 800e186: 2b00 cmp r3, #0
  32529. 800e188: d109 bne.n 800e19e <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32530. {
  32531. /* In Case the CKPER Source is HSI */
  32532. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32533. 800e18a: 4b68 ldr r3, [pc, #416] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32534. 800e18c: 681b ldr r3, [r3, #0]
  32535. 800e18e: 08db lsrs r3, r3, #3
  32536. 800e190: f003 0303 and.w r3, r3, #3
  32537. 800e194: 4a66 ldr r2, [pc, #408] @ (800e330 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32538. 800e196: fa22 f303 lsr.w r3, r2, r3
  32539. 800e19a: 63fb str r3, [r7, #60] @ 0x3c
  32540. 800e19c: e01e b.n 800e1dc <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32541. }
  32542. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32543. 800e19e: 4b63 ldr r3, [pc, #396] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32544. 800e1a0: 681b ldr r3, [r3, #0]
  32545. 800e1a2: f403 7380 and.w r3, r3, #256 @ 0x100
  32546. 800e1a6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32547. 800e1aa: d106 bne.n 800e1ba <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32548. 800e1ac: 6b7b ldr r3, [r7, #52] @ 0x34
  32549. 800e1ae: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32550. 800e1b2: d102 bne.n 800e1ba <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32551. {
  32552. /* In Case the CKPER Source is CSI */
  32553. frequency = CSI_VALUE;
  32554. 800e1b4: 4b5f ldr r3, [pc, #380] @ (800e334 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32555. 800e1b6: 63fb str r3, [r7, #60] @ 0x3c
  32556. 800e1b8: e010 b.n 800e1dc <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32557. }
  32558. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32559. 800e1ba: 4b5c ldr r3, [pc, #368] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32560. 800e1bc: 681b ldr r3, [r3, #0]
  32561. 800e1be: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32562. 800e1c2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32563. 800e1c6: d106 bne.n 800e1d6 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32564. 800e1c8: 6b7b ldr r3, [r7, #52] @ 0x34
  32565. 800e1ca: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32566. 800e1ce: d102 bne.n 800e1d6 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32567. {
  32568. /* In Case the CKPER Source is HSE */
  32569. frequency = HSE_VALUE;
  32570. 800e1d0: 4b59 ldr r3, [pc, #356] @ (800e338 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32571. 800e1d2: 63fb str r3, [r7, #60] @ 0x3c
  32572. 800e1d4: e002 b.n 800e1dc <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32573. }
  32574. else
  32575. {
  32576. /* In Case the CKPER is disabled*/
  32577. frequency = 0;
  32578. 800e1d6: 2300 movs r3, #0
  32579. 800e1d8: 63fb str r3, [r7, #60] @ 0x3c
  32580. }
  32581. break;
  32582. 800e1da: e386 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32583. 800e1dc: e385 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32584. }
  32585. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  32586. {
  32587. frequency = EXTERNAL_CLOCK_VALUE;
  32588. 800e1de: 4b57 ldr r3, [pc, #348] @ (800e33c <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32589. 800e1e0: 63fb str r3, [r7, #60] @ 0x3c
  32590. break;
  32591. 800e1e2: e382 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32592. }
  32593. default :
  32594. {
  32595. frequency = 0;
  32596. 800e1e4: 2300 movs r3, #0
  32597. 800e1e6: 63fb str r3, [r7, #60] @ 0x3c
  32598. break;
  32599. 800e1e8: e37f b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32600. }
  32601. }
  32602. }
  32603. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  32604. 800e1ea: e9d7 2300 ldrd r2, r3, [r7]
  32605. 800e1ee: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  32606. 800e1f2: 430b orrs r3, r1
  32607. 800e1f4: f040 80a7 bne.w 800e346 <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  32608. {
  32609. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  32610. 800e1f8: 4b4c ldr r3, [pc, #304] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32611. 800e1fa: 6d9b ldr r3, [r3, #88] @ 0x58
  32612. 800e1fc: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  32613. 800e200: 633b str r3, [r7, #48] @ 0x30
  32614. switch (saiclocksource)
  32615. 800e202: 6b3b ldr r3, [r7, #48] @ 0x30
  32616. 800e204: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32617. 800e208: d055 beq.n 800e2b6 <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  32618. 800e20a: 6b3b ldr r3, [r7, #48] @ 0x30
  32619. 800e20c: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32620. 800e210: f200 8096 bhi.w 800e340 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32621. 800e214: 6b3b ldr r3, [r7, #48] @ 0x30
  32622. 800e216: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32623. 800e21a: f000 8084 beq.w 800e326 <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  32624. 800e21e: 6b3b ldr r3, [r7, #48] @ 0x30
  32625. 800e220: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32626. 800e224: f200 808c bhi.w 800e340 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32627. 800e228: 6b3b ldr r3, [r7, #48] @ 0x30
  32628. 800e22a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32629. 800e22e: d030 beq.n 800e292 <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  32630. 800e230: 6b3b ldr r3, [r7, #48] @ 0x30
  32631. 800e232: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32632. 800e236: f200 8083 bhi.w 800e340 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32633. 800e23a: 6b3b ldr r3, [r7, #48] @ 0x30
  32634. 800e23c: 2b00 cmp r3, #0
  32635. 800e23e: d004 beq.n 800e24a <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  32636. 800e240: 6b3b ldr r3, [r7, #48] @ 0x30
  32637. 800e242: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  32638. 800e246: d012 beq.n 800e26e <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  32639. 800e248: e07a b.n 800e340 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32640. {
  32641. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  32642. {
  32643. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32644. 800e24a: 4b38 ldr r3, [pc, #224] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32645. 800e24c: 681b ldr r3, [r3, #0]
  32646. 800e24e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32647. 800e252: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32648. 800e256: d107 bne.n 800e268 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  32649. {
  32650. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32651. 800e258: f107 0324 add.w r3, r7, #36 @ 0x24
  32652. 800e25c: 4618 mov r0, r3
  32653. 800e25e: f000 fe0b bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  32654. frequency = pll1_clocks.PLL1_Q_Frequency;
  32655. 800e262: 6abb ldr r3, [r7, #40] @ 0x28
  32656. 800e264: 63fb str r3, [r7, #60] @ 0x3c
  32657. }
  32658. else
  32659. {
  32660. frequency = 0;
  32661. }
  32662. break;
  32663. 800e266: e340 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32664. frequency = 0;
  32665. 800e268: 2300 movs r3, #0
  32666. 800e26a: 63fb str r3, [r7, #60] @ 0x3c
  32667. break;
  32668. 800e26c: e33d b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32669. }
  32670. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  32671. {
  32672. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32673. 800e26e: 4b2f ldr r3, [pc, #188] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32674. 800e270: 681b ldr r3, [r3, #0]
  32675. 800e272: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32676. 800e276: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32677. 800e27a: d107 bne.n 800e28c <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  32678. {
  32679. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32680. 800e27c: f107 0318 add.w r3, r7, #24
  32681. 800e280: 4618 mov r0, r3
  32682. 800e282: f000 fb51 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  32683. frequency = pll2_clocks.PLL2_P_Frequency;
  32684. 800e286: 69bb ldr r3, [r7, #24]
  32685. 800e288: 63fb str r3, [r7, #60] @ 0x3c
  32686. }
  32687. else
  32688. {
  32689. frequency = 0;
  32690. }
  32691. break;
  32692. 800e28a: e32e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32693. frequency = 0;
  32694. 800e28c: 2300 movs r3, #0
  32695. 800e28e: 63fb str r3, [r7, #60] @ 0x3c
  32696. break;
  32697. 800e290: e32b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32698. }
  32699. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  32700. {
  32701. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32702. 800e292: 4b26 ldr r3, [pc, #152] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32703. 800e294: 681b ldr r3, [r3, #0]
  32704. 800e296: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32705. 800e29a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32706. 800e29e: d107 bne.n 800e2b0 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  32707. {
  32708. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32709. 800e2a0: f107 030c add.w r3, r7, #12
  32710. 800e2a4: 4618 mov r0, r3
  32711. 800e2a6: f000 fc93 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  32712. frequency = pll3_clocks.PLL3_P_Frequency;
  32713. 800e2aa: 68fb ldr r3, [r7, #12]
  32714. 800e2ac: 63fb str r3, [r7, #60] @ 0x3c
  32715. }
  32716. else
  32717. {
  32718. frequency = 0;
  32719. }
  32720. break;
  32721. 800e2ae: e31c b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32722. frequency = 0;
  32723. 800e2b0: 2300 movs r3, #0
  32724. 800e2b2: 63fb str r3, [r7, #60] @ 0x3c
  32725. break;
  32726. 800e2b4: e319 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32727. }
  32728. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  32729. {
  32730. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32731. 800e2b6: 4b1d ldr r3, [pc, #116] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32732. 800e2b8: 6cdb ldr r3, [r3, #76] @ 0x4c
  32733. 800e2ba: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32734. 800e2be: 637b str r3, [r7, #52] @ 0x34
  32735. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32736. 800e2c0: 4b1a ldr r3, [pc, #104] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32737. 800e2c2: 681b ldr r3, [r3, #0]
  32738. 800e2c4: f003 0304 and.w r3, r3, #4
  32739. 800e2c8: 2b04 cmp r3, #4
  32740. 800e2ca: d10c bne.n 800e2e6 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32741. 800e2cc: 6b7b ldr r3, [r7, #52] @ 0x34
  32742. 800e2ce: 2b00 cmp r3, #0
  32743. 800e2d0: d109 bne.n 800e2e6 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32744. {
  32745. /* In Case the CKPER Source is HSI */
  32746. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32747. 800e2d2: 4b16 ldr r3, [pc, #88] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32748. 800e2d4: 681b ldr r3, [r3, #0]
  32749. 800e2d6: 08db lsrs r3, r3, #3
  32750. 800e2d8: f003 0303 and.w r3, r3, #3
  32751. 800e2dc: 4a14 ldr r2, [pc, #80] @ (800e330 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32752. 800e2de: fa22 f303 lsr.w r3, r2, r3
  32753. 800e2e2: 63fb str r3, [r7, #60] @ 0x3c
  32754. 800e2e4: e01e b.n 800e324 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32755. }
  32756. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32757. 800e2e6: 4b11 ldr r3, [pc, #68] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32758. 800e2e8: 681b ldr r3, [r3, #0]
  32759. 800e2ea: f403 7380 and.w r3, r3, #256 @ 0x100
  32760. 800e2ee: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32761. 800e2f2: d106 bne.n 800e302 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32762. 800e2f4: 6b7b ldr r3, [r7, #52] @ 0x34
  32763. 800e2f6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32764. 800e2fa: d102 bne.n 800e302 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32765. {
  32766. /* In Case the CKPER Source is CSI */
  32767. frequency = CSI_VALUE;
  32768. 800e2fc: 4b0d ldr r3, [pc, #52] @ (800e334 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32769. 800e2fe: 63fb str r3, [r7, #60] @ 0x3c
  32770. 800e300: e010 b.n 800e324 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32771. }
  32772. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32773. 800e302: 4b0a ldr r3, [pc, #40] @ (800e32c <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32774. 800e304: 681b ldr r3, [r3, #0]
  32775. 800e306: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32776. 800e30a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32777. 800e30e: d106 bne.n 800e31e <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32778. 800e310: 6b7b ldr r3, [r7, #52] @ 0x34
  32779. 800e312: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32780. 800e316: d102 bne.n 800e31e <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32781. {
  32782. /* In Case the CKPER Source is HSE */
  32783. frequency = HSE_VALUE;
  32784. 800e318: 4b07 ldr r3, [pc, #28] @ (800e338 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32785. 800e31a: 63fb str r3, [r7, #60] @ 0x3c
  32786. 800e31c: e002 b.n 800e324 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32787. }
  32788. else
  32789. {
  32790. /* In Case the CKPER is disabled*/
  32791. frequency = 0;
  32792. 800e31e: 2300 movs r3, #0
  32793. 800e320: 63fb str r3, [r7, #60] @ 0x3c
  32794. }
  32795. break;
  32796. 800e322: e2e2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32797. 800e324: e2e1 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32798. }
  32799. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  32800. {
  32801. frequency = EXTERNAL_CLOCK_VALUE;
  32802. 800e326: 4b05 ldr r3, [pc, #20] @ (800e33c <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32803. 800e328: 63fb str r3, [r7, #60] @ 0x3c
  32804. break;
  32805. 800e32a: e2de b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32806. 800e32c: 58024400 .word 0x58024400
  32807. 800e330: 03d09000 .word 0x03d09000
  32808. 800e334: 003d0900 .word 0x003d0900
  32809. 800e338: 017d7840 .word 0x017d7840
  32810. 800e33c: 00bb8000 .word 0x00bb8000
  32811. }
  32812. default :
  32813. {
  32814. frequency = 0;
  32815. 800e340: 2300 movs r3, #0
  32816. 800e342: 63fb str r3, [r7, #60] @ 0x3c
  32817. break;
  32818. 800e344: e2d1 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32819. }
  32820. }
  32821. }
  32822. #endif /*SAI4*/
  32823. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  32824. 800e346: e9d7 2300 ldrd r2, r3, [r7]
  32825. 800e34a: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  32826. 800e34e: 430b orrs r3, r1
  32827. 800e350: f040 809c bne.w 800e48c <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  32828. {
  32829. /* Get SPI1/2/3 clock source */
  32830. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  32831. 800e354: 4b93 ldr r3, [pc, #588] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32832. 800e356: 6d1b ldr r3, [r3, #80] @ 0x50
  32833. 800e358: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  32834. 800e35c: 63bb str r3, [r7, #56] @ 0x38
  32835. switch (srcclk)
  32836. 800e35e: 6bbb ldr r3, [r7, #56] @ 0x38
  32837. 800e360: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32838. 800e364: d054 beq.n 800e410 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  32839. 800e366: 6bbb ldr r3, [r7, #56] @ 0x38
  32840. 800e368: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32841. 800e36c: f200 808b bhi.w 800e486 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32842. 800e370: 6bbb ldr r3, [r7, #56] @ 0x38
  32843. 800e372: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32844. 800e376: f000 8083 beq.w 800e480 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  32845. 800e37a: 6bbb ldr r3, [r7, #56] @ 0x38
  32846. 800e37c: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32847. 800e380: f200 8081 bhi.w 800e486 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32848. 800e384: 6bbb ldr r3, [r7, #56] @ 0x38
  32849. 800e386: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32850. 800e38a: d02f beq.n 800e3ec <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  32851. 800e38c: 6bbb ldr r3, [r7, #56] @ 0x38
  32852. 800e38e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32853. 800e392: d878 bhi.n 800e486 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32854. 800e394: 6bbb ldr r3, [r7, #56] @ 0x38
  32855. 800e396: 2b00 cmp r3, #0
  32856. 800e398: d004 beq.n 800e3a4 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  32857. 800e39a: 6bbb ldr r3, [r7, #56] @ 0x38
  32858. 800e39c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32859. 800e3a0: d012 beq.n 800e3c8 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  32860. 800e3a2: e070 b.n 800e486 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32861. {
  32862. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  32863. {
  32864. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32865. 800e3a4: 4b7f ldr r3, [pc, #508] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32866. 800e3a6: 681b ldr r3, [r3, #0]
  32867. 800e3a8: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32868. 800e3ac: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32869. 800e3b0: d107 bne.n 800e3c2 <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  32870. {
  32871. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32872. 800e3b2: f107 0324 add.w r3, r7, #36 @ 0x24
  32873. 800e3b6: 4618 mov r0, r3
  32874. 800e3b8: f000 fd5e bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  32875. frequency = pll1_clocks.PLL1_Q_Frequency;
  32876. 800e3bc: 6abb ldr r3, [r7, #40] @ 0x28
  32877. 800e3be: 63fb str r3, [r7, #60] @ 0x3c
  32878. }
  32879. else
  32880. {
  32881. frequency = 0;
  32882. }
  32883. break;
  32884. 800e3c0: e293 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32885. frequency = 0;
  32886. 800e3c2: 2300 movs r3, #0
  32887. 800e3c4: 63fb str r3, [r7, #60] @ 0x3c
  32888. break;
  32889. 800e3c6: e290 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32890. }
  32891. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  32892. {
  32893. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32894. 800e3c8: 4b76 ldr r3, [pc, #472] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32895. 800e3ca: 681b ldr r3, [r3, #0]
  32896. 800e3cc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32897. 800e3d0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32898. 800e3d4: d107 bne.n 800e3e6 <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  32899. {
  32900. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32901. 800e3d6: f107 0318 add.w r3, r7, #24
  32902. 800e3da: 4618 mov r0, r3
  32903. 800e3dc: f000 faa4 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  32904. frequency = pll2_clocks.PLL2_P_Frequency;
  32905. 800e3e0: 69bb ldr r3, [r7, #24]
  32906. 800e3e2: 63fb str r3, [r7, #60] @ 0x3c
  32907. }
  32908. else
  32909. {
  32910. frequency = 0;
  32911. }
  32912. break;
  32913. 800e3e4: e281 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32914. frequency = 0;
  32915. 800e3e6: 2300 movs r3, #0
  32916. 800e3e8: 63fb str r3, [r7, #60] @ 0x3c
  32917. break;
  32918. 800e3ea: e27e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32919. }
  32920. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  32921. {
  32922. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32923. 800e3ec: 4b6d ldr r3, [pc, #436] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32924. 800e3ee: 681b ldr r3, [r3, #0]
  32925. 800e3f0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32926. 800e3f4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32927. 800e3f8: d107 bne.n 800e40a <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  32928. {
  32929. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32930. 800e3fa: f107 030c add.w r3, r7, #12
  32931. 800e3fe: 4618 mov r0, r3
  32932. 800e400: f000 fbe6 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  32933. frequency = pll3_clocks.PLL3_P_Frequency;
  32934. 800e404: 68fb ldr r3, [r7, #12]
  32935. 800e406: 63fb str r3, [r7, #60] @ 0x3c
  32936. }
  32937. else
  32938. {
  32939. frequency = 0;
  32940. }
  32941. break;
  32942. 800e408: e26f b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32943. frequency = 0;
  32944. 800e40a: 2300 movs r3, #0
  32945. 800e40c: 63fb str r3, [r7, #60] @ 0x3c
  32946. break;
  32947. 800e40e: e26c b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32948. }
  32949. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  32950. {
  32951. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32952. 800e410: 4b64 ldr r3, [pc, #400] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32953. 800e412: 6cdb ldr r3, [r3, #76] @ 0x4c
  32954. 800e414: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32955. 800e418: 637b str r3, [r7, #52] @ 0x34
  32956. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32957. 800e41a: 4b62 ldr r3, [pc, #392] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32958. 800e41c: 681b ldr r3, [r3, #0]
  32959. 800e41e: f003 0304 and.w r3, r3, #4
  32960. 800e422: 2b04 cmp r3, #4
  32961. 800e424: d10c bne.n 800e440 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32962. 800e426: 6b7b ldr r3, [r7, #52] @ 0x34
  32963. 800e428: 2b00 cmp r3, #0
  32964. 800e42a: d109 bne.n 800e440 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32965. {
  32966. /* In Case the CKPER Source is HSI */
  32967. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32968. 800e42c: 4b5d ldr r3, [pc, #372] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32969. 800e42e: 681b ldr r3, [r3, #0]
  32970. 800e430: 08db lsrs r3, r3, #3
  32971. 800e432: f003 0303 and.w r3, r3, #3
  32972. 800e436: 4a5c ldr r2, [pc, #368] @ (800e5a8 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32973. 800e438: fa22 f303 lsr.w r3, r2, r3
  32974. 800e43c: 63fb str r3, [r7, #60] @ 0x3c
  32975. 800e43e: e01e b.n 800e47e <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32976. }
  32977. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32978. 800e440: 4b58 ldr r3, [pc, #352] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32979. 800e442: 681b ldr r3, [r3, #0]
  32980. 800e444: f403 7380 and.w r3, r3, #256 @ 0x100
  32981. 800e448: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32982. 800e44c: d106 bne.n 800e45c <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32983. 800e44e: 6b7b ldr r3, [r7, #52] @ 0x34
  32984. 800e450: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32985. 800e454: d102 bne.n 800e45c <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32986. {
  32987. /* In Case the CKPER Source is CSI */
  32988. frequency = CSI_VALUE;
  32989. 800e456: 4b55 ldr r3, [pc, #340] @ (800e5ac <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32990. 800e458: 63fb str r3, [r7, #60] @ 0x3c
  32991. 800e45a: e010 b.n 800e47e <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32992. }
  32993. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32994. 800e45c: 4b51 ldr r3, [pc, #324] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32995. 800e45e: 681b ldr r3, [r3, #0]
  32996. 800e460: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32997. 800e464: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32998. 800e468: d106 bne.n 800e478 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32999. 800e46a: 6b7b ldr r3, [r7, #52] @ 0x34
  33000. 800e46c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33001. 800e470: d102 bne.n 800e478 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  33002. {
  33003. /* In Case the CKPER Source is HSE */
  33004. frequency = HSE_VALUE;
  33005. 800e472: 4b4f ldr r3, [pc, #316] @ (800e5b0 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  33006. 800e474: 63fb str r3, [r7, #60] @ 0x3c
  33007. 800e476: e002 b.n 800e47e <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  33008. }
  33009. else
  33010. {
  33011. /* In Case the CKPER is disabled*/
  33012. frequency = 0;
  33013. 800e478: 2300 movs r3, #0
  33014. 800e47a: 63fb str r3, [r7, #60] @ 0x3c
  33015. }
  33016. break;
  33017. 800e47c: e235 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33018. 800e47e: e234 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33019. }
  33020. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  33021. {
  33022. frequency = EXTERNAL_CLOCK_VALUE;
  33023. 800e480: 4b4c ldr r3, [pc, #304] @ (800e5b4 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  33024. 800e482: 63fb str r3, [r7, #60] @ 0x3c
  33025. break;
  33026. 800e484: e231 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33027. }
  33028. default :
  33029. {
  33030. frequency = 0;
  33031. 800e486: 2300 movs r3, #0
  33032. 800e488: 63fb str r3, [r7, #60] @ 0x3c
  33033. break;
  33034. 800e48a: e22e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33035. }
  33036. }
  33037. }
  33038. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  33039. 800e48c: e9d7 2300 ldrd r2, r3, [r7]
  33040. 800e490: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  33041. 800e494: 430b orrs r3, r1
  33042. 800e496: f040 808f bne.w 800e5b8 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  33043. {
  33044. /* Get SPI45 clock source */
  33045. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  33046. 800e49a: 4b42 ldr r3, [pc, #264] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33047. 800e49c: 6d1b ldr r3, [r3, #80] @ 0x50
  33048. 800e49e: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  33049. 800e4a2: 63bb str r3, [r7, #56] @ 0x38
  33050. switch (srcclk)
  33051. 800e4a4: 6bbb ldr r3, [r7, #56] @ 0x38
  33052. 800e4a6: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33053. 800e4aa: d06b beq.n 800e584 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  33054. 800e4ac: 6bbb ldr r3, [r7, #56] @ 0x38
  33055. 800e4ae: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33056. 800e4b2: d874 bhi.n 800e59e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33057. 800e4b4: 6bbb ldr r3, [r7, #56] @ 0x38
  33058. 800e4b6: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33059. 800e4ba: d056 beq.n 800e56a <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  33060. 800e4bc: 6bbb ldr r3, [r7, #56] @ 0x38
  33061. 800e4be: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33062. 800e4c2: d86c bhi.n 800e59e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33063. 800e4c4: 6bbb ldr r3, [r7, #56] @ 0x38
  33064. 800e4c6: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33065. 800e4ca: d03b beq.n 800e544 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  33066. 800e4cc: 6bbb ldr r3, [r7, #56] @ 0x38
  33067. 800e4ce: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33068. 800e4d2: d864 bhi.n 800e59e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33069. 800e4d4: 6bbb ldr r3, [r7, #56] @ 0x38
  33070. 800e4d6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33071. 800e4da: d021 beq.n 800e520 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  33072. 800e4dc: 6bbb ldr r3, [r7, #56] @ 0x38
  33073. 800e4de: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33074. 800e4e2: d85c bhi.n 800e59e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33075. 800e4e4: 6bbb ldr r3, [r7, #56] @ 0x38
  33076. 800e4e6: 2b00 cmp r3, #0
  33077. 800e4e8: d004 beq.n 800e4f4 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  33078. 800e4ea: 6bbb ldr r3, [r7, #56] @ 0x38
  33079. 800e4ec: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33080. 800e4f0: d004 beq.n 800e4fc <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  33081. 800e4f2: e054 b.n 800e59e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33082. {
  33083. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  33084. {
  33085. frequency = HAL_RCC_GetPCLK1Freq();
  33086. 800e4f4: f7fe fa26 bl 800c944 <HAL_RCC_GetPCLK1Freq>
  33087. 800e4f8: 63f8 str r0, [r7, #60] @ 0x3c
  33088. break;
  33089. 800e4fa: e1f6 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33090. }
  33091. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  33092. {
  33093. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33094. 800e4fc: 4b29 ldr r3, [pc, #164] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33095. 800e4fe: 681b ldr r3, [r3, #0]
  33096. 800e500: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33097. 800e504: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33098. 800e508: d107 bne.n 800e51a <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  33099. {
  33100. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33101. 800e50a: f107 0318 add.w r3, r7, #24
  33102. 800e50e: 4618 mov r0, r3
  33103. 800e510: f000 fa0a bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  33104. frequency = pll2_clocks.PLL2_Q_Frequency;
  33105. 800e514: 69fb ldr r3, [r7, #28]
  33106. 800e516: 63fb str r3, [r7, #60] @ 0x3c
  33107. }
  33108. else
  33109. {
  33110. frequency = 0;
  33111. }
  33112. break;
  33113. 800e518: e1e7 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33114. frequency = 0;
  33115. 800e51a: 2300 movs r3, #0
  33116. 800e51c: 63fb str r3, [r7, #60] @ 0x3c
  33117. break;
  33118. 800e51e: e1e4 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33119. }
  33120. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  33121. {
  33122. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33123. 800e520: 4b20 ldr r3, [pc, #128] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33124. 800e522: 681b ldr r3, [r3, #0]
  33125. 800e524: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33126. 800e528: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33127. 800e52c: d107 bne.n 800e53e <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  33128. {
  33129. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33130. 800e52e: f107 030c add.w r3, r7, #12
  33131. 800e532: 4618 mov r0, r3
  33132. 800e534: f000 fb4c bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  33133. frequency = pll3_clocks.PLL3_Q_Frequency;
  33134. 800e538: 693b ldr r3, [r7, #16]
  33135. 800e53a: 63fb str r3, [r7, #60] @ 0x3c
  33136. }
  33137. else
  33138. {
  33139. frequency = 0;
  33140. }
  33141. break;
  33142. 800e53c: e1d5 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33143. frequency = 0;
  33144. 800e53e: 2300 movs r3, #0
  33145. 800e540: 63fb str r3, [r7, #60] @ 0x3c
  33146. break;
  33147. 800e542: e1d2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33148. }
  33149. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  33150. {
  33151. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33152. 800e544: 4b17 ldr r3, [pc, #92] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33153. 800e546: 681b ldr r3, [r3, #0]
  33154. 800e548: f003 0304 and.w r3, r3, #4
  33155. 800e54c: 2b04 cmp r3, #4
  33156. 800e54e: d109 bne.n 800e564 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  33157. {
  33158. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33159. 800e550: 4b14 ldr r3, [pc, #80] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33160. 800e552: 681b ldr r3, [r3, #0]
  33161. 800e554: 08db lsrs r3, r3, #3
  33162. 800e556: f003 0303 and.w r3, r3, #3
  33163. 800e55a: 4a13 ldr r2, [pc, #76] @ (800e5a8 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  33164. 800e55c: fa22 f303 lsr.w r3, r2, r3
  33165. 800e560: 63fb str r3, [r7, #60] @ 0x3c
  33166. }
  33167. else
  33168. {
  33169. frequency = 0;
  33170. }
  33171. break;
  33172. 800e562: e1c2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33173. frequency = 0;
  33174. 800e564: 2300 movs r3, #0
  33175. 800e566: 63fb str r3, [r7, #60] @ 0x3c
  33176. break;
  33177. 800e568: e1bf b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33178. }
  33179. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  33180. {
  33181. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33182. 800e56a: 4b0e ldr r3, [pc, #56] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33183. 800e56c: 681b ldr r3, [r3, #0]
  33184. 800e56e: f403 7380 and.w r3, r3, #256 @ 0x100
  33185. 800e572: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33186. 800e576: d102 bne.n 800e57e <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  33187. {
  33188. frequency = CSI_VALUE;
  33189. 800e578: 4b0c ldr r3, [pc, #48] @ (800e5ac <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  33190. 800e57a: 63fb str r3, [r7, #60] @ 0x3c
  33191. }
  33192. else
  33193. {
  33194. frequency = 0;
  33195. }
  33196. break;
  33197. 800e57c: e1b5 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33198. frequency = 0;
  33199. 800e57e: 2300 movs r3, #0
  33200. 800e580: 63fb str r3, [r7, #60] @ 0x3c
  33201. break;
  33202. 800e582: e1b2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33203. }
  33204. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  33205. {
  33206. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33207. 800e584: 4b07 ldr r3, [pc, #28] @ (800e5a4 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33208. 800e586: 681b ldr r3, [r3, #0]
  33209. 800e588: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33210. 800e58c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33211. 800e590: d102 bne.n 800e598 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  33212. {
  33213. frequency = HSE_VALUE;
  33214. 800e592: 4b07 ldr r3, [pc, #28] @ (800e5b0 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  33215. 800e594: 63fb str r3, [r7, #60] @ 0x3c
  33216. }
  33217. else
  33218. {
  33219. frequency = 0;
  33220. }
  33221. break;
  33222. 800e596: e1a8 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33223. frequency = 0;
  33224. 800e598: 2300 movs r3, #0
  33225. 800e59a: 63fb str r3, [r7, #60] @ 0x3c
  33226. break;
  33227. 800e59c: e1a5 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33228. }
  33229. default :
  33230. {
  33231. frequency = 0;
  33232. 800e59e: 2300 movs r3, #0
  33233. 800e5a0: 63fb str r3, [r7, #60] @ 0x3c
  33234. break;
  33235. 800e5a2: e1a2 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33236. 800e5a4: 58024400 .word 0x58024400
  33237. 800e5a8: 03d09000 .word 0x03d09000
  33238. 800e5ac: 003d0900 .word 0x003d0900
  33239. 800e5b0: 017d7840 .word 0x017d7840
  33240. 800e5b4: 00bb8000 .word 0x00bb8000
  33241. }
  33242. }
  33243. }
  33244. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  33245. 800e5b8: e9d7 2300 ldrd r2, r3, [r7]
  33246. 800e5bc: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  33247. 800e5c0: 430b orrs r3, r1
  33248. 800e5c2: d173 bne.n 800e6ac <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  33249. {
  33250. /* Get ADC clock source */
  33251. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  33252. 800e5c4: 4b9c ldr r3, [pc, #624] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33253. 800e5c6: 6d9b ldr r3, [r3, #88] @ 0x58
  33254. 800e5c8: f403 3340 and.w r3, r3, #196608 @ 0x30000
  33255. 800e5cc: 63bb str r3, [r7, #56] @ 0x38
  33256. switch (srcclk)
  33257. 800e5ce: 6bbb ldr r3, [r7, #56] @ 0x38
  33258. 800e5d0: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33259. 800e5d4: d02f beq.n 800e636 <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  33260. 800e5d6: 6bbb ldr r3, [r7, #56] @ 0x38
  33261. 800e5d8: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33262. 800e5dc: d863 bhi.n 800e6a6 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33263. 800e5de: 6bbb ldr r3, [r7, #56] @ 0x38
  33264. 800e5e0: 2b00 cmp r3, #0
  33265. 800e5e2: d004 beq.n 800e5ee <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  33266. 800e5e4: 6bbb ldr r3, [r7, #56] @ 0x38
  33267. 800e5e6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33268. 800e5ea: d012 beq.n 800e612 <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  33269. 800e5ec: e05b b.n 800e6a6 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33270. {
  33271. case RCC_ADCCLKSOURCE_PLL2:
  33272. {
  33273. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33274. 800e5ee: 4b92 ldr r3, [pc, #584] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33275. 800e5f0: 681b ldr r3, [r3, #0]
  33276. 800e5f2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33277. 800e5f6: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33278. 800e5fa: d107 bne.n 800e60c <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  33279. {
  33280. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33281. 800e5fc: f107 0318 add.w r3, r7, #24
  33282. 800e600: 4618 mov r0, r3
  33283. 800e602: f000 f991 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  33284. frequency = pll2_clocks.PLL2_P_Frequency;
  33285. 800e606: 69bb ldr r3, [r7, #24]
  33286. 800e608: 63fb str r3, [r7, #60] @ 0x3c
  33287. }
  33288. else
  33289. {
  33290. frequency = 0;
  33291. }
  33292. break;
  33293. 800e60a: e16e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33294. frequency = 0;
  33295. 800e60c: 2300 movs r3, #0
  33296. 800e60e: 63fb str r3, [r7, #60] @ 0x3c
  33297. break;
  33298. 800e610: e16b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33299. }
  33300. case RCC_ADCCLKSOURCE_PLL3:
  33301. {
  33302. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33303. 800e612: 4b89 ldr r3, [pc, #548] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33304. 800e614: 681b ldr r3, [r3, #0]
  33305. 800e616: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33306. 800e61a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33307. 800e61e: d107 bne.n 800e630 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  33308. {
  33309. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33310. 800e620: f107 030c add.w r3, r7, #12
  33311. 800e624: 4618 mov r0, r3
  33312. 800e626: f000 fad3 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  33313. frequency = pll3_clocks.PLL3_R_Frequency;
  33314. 800e62a: 697b ldr r3, [r7, #20]
  33315. 800e62c: 63fb str r3, [r7, #60] @ 0x3c
  33316. }
  33317. else
  33318. {
  33319. frequency = 0;
  33320. }
  33321. break;
  33322. 800e62e: e15c b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33323. frequency = 0;
  33324. 800e630: 2300 movs r3, #0
  33325. 800e632: 63fb str r3, [r7, #60] @ 0x3c
  33326. break;
  33327. 800e634: e159 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33328. }
  33329. case RCC_ADCCLKSOURCE_CLKP:
  33330. {
  33331. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  33332. 800e636: 4b80 ldr r3, [pc, #512] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33333. 800e638: 6cdb ldr r3, [r3, #76] @ 0x4c
  33334. 800e63a: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33335. 800e63e: 637b str r3, [r7, #52] @ 0x34
  33336. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  33337. 800e640: 4b7d ldr r3, [pc, #500] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33338. 800e642: 681b ldr r3, [r3, #0]
  33339. 800e644: f003 0304 and.w r3, r3, #4
  33340. 800e648: 2b04 cmp r3, #4
  33341. 800e64a: d10c bne.n 800e666 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33342. 800e64c: 6b7b ldr r3, [r7, #52] @ 0x34
  33343. 800e64e: 2b00 cmp r3, #0
  33344. 800e650: d109 bne.n 800e666 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33345. {
  33346. /* In Case the CKPER Source is HSI */
  33347. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33348. 800e652: 4b79 ldr r3, [pc, #484] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33349. 800e654: 681b ldr r3, [r3, #0]
  33350. 800e656: 08db lsrs r3, r3, #3
  33351. 800e658: f003 0303 and.w r3, r3, #3
  33352. 800e65c: 4a77 ldr r2, [pc, #476] @ (800e83c <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33353. 800e65e: fa22 f303 lsr.w r3, r2, r3
  33354. 800e662: 63fb str r3, [r7, #60] @ 0x3c
  33355. 800e664: e01e b.n 800e6a4 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33356. }
  33357. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  33358. 800e666: 4b74 ldr r3, [pc, #464] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33359. 800e668: 681b ldr r3, [r3, #0]
  33360. 800e66a: f403 7380 and.w r3, r3, #256 @ 0x100
  33361. 800e66e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33362. 800e672: d106 bne.n 800e682 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33363. 800e674: 6b7b ldr r3, [r7, #52] @ 0x34
  33364. 800e676: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33365. 800e67a: d102 bne.n 800e682 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33366. {
  33367. /* In Case the CKPER Source is CSI */
  33368. frequency = CSI_VALUE;
  33369. 800e67c: 4b70 ldr r3, [pc, #448] @ (800e840 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33370. 800e67e: 63fb str r3, [r7, #60] @ 0x3c
  33371. 800e680: e010 b.n 800e6a4 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33372. }
  33373. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  33374. 800e682: 4b6d ldr r3, [pc, #436] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33375. 800e684: 681b ldr r3, [r3, #0]
  33376. 800e686: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33377. 800e68a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33378. 800e68e: d106 bne.n 800e69e <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33379. 800e690: 6b7b ldr r3, [r7, #52] @ 0x34
  33380. 800e692: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33381. 800e696: d102 bne.n 800e69e <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33382. {
  33383. /* In Case the CKPER Source is HSE */
  33384. frequency = HSE_VALUE;
  33385. 800e698: 4b6a ldr r3, [pc, #424] @ (800e844 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33386. 800e69a: 63fb str r3, [r7, #60] @ 0x3c
  33387. 800e69c: e002 b.n 800e6a4 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33388. }
  33389. else
  33390. {
  33391. /* In Case the CKPER is disabled*/
  33392. frequency = 0;
  33393. 800e69e: 2300 movs r3, #0
  33394. 800e6a0: 63fb str r3, [r7, #60] @ 0x3c
  33395. }
  33396. break;
  33397. 800e6a2: e122 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33398. 800e6a4: e121 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33399. }
  33400. default :
  33401. {
  33402. frequency = 0;
  33403. 800e6a6: 2300 movs r3, #0
  33404. 800e6a8: 63fb str r3, [r7, #60] @ 0x3c
  33405. break;
  33406. 800e6aa: e11e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33407. }
  33408. }
  33409. }
  33410. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  33411. 800e6ac: e9d7 2300 ldrd r2, r3, [r7]
  33412. 800e6b0: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  33413. 800e6b4: 430b orrs r3, r1
  33414. 800e6b6: d133 bne.n 800e720 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  33415. {
  33416. /* Get SDMMC clock source */
  33417. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  33418. 800e6b8: 4b5f ldr r3, [pc, #380] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33419. 800e6ba: 6cdb ldr r3, [r3, #76] @ 0x4c
  33420. 800e6bc: f403 3380 and.w r3, r3, #65536 @ 0x10000
  33421. 800e6c0: 63bb str r3, [r7, #56] @ 0x38
  33422. switch (srcclk)
  33423. 800e6c2: 6bbb ldr r3, [r7, #56] @ 0x38
  33424. 800e6c4: 2b00 cmp r3, #0
  33425. 800e6c6: d004 beq.n 800e6d2 <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  33426. 800e6c8: 6bbb ldr r3, [r7, #56] @ 0x38
  33427. 800e6ca: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33428. 800e6ce: d012 beq.n 800e6f6 <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  33429. 800e6d0: e023 b.n 800e71a <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  33430. {
  33431. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  33432. {
  33433. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33434. 800e6d2: 4b59 ldr r3, [pc, #356] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33435. 800e6d4: 681b ldr r3, [r3, #0]
  33436. 800e6d6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33437. 800e6da: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33438. 800e6de: d107 bne.n 800e6f0 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  33439. {
  33440. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33441. 800e6e0: f107 0324 add.w r3, r7, #36 @ 0x24
  33442. 800e6e4: 4618 mov r0, r3
  33443. 800e6e6: f000 fbc7 bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  33444. frequency = pll1_clocks.PLL1_Q_Frequency;
  33445. 800e6ea: 6abb ldr r3, [r7, #40] @ 0x28
  33446. 800e6ec: 63fb str r3, [r7, #60] @ 0x3c
  33447. }
  33448. else
  33449. {
  33450. frequency = 0;
  33451. }
  33452. break;
  33453. 800e6ee: e0fc b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33454. frequency = 0;
  33455. 800e6f0: 2300 movs r3, #0
  33456. 800e6f2: 63fb str r3, [r7, #60] @ 0x3c
  33457. break;
  33458. 800e6f4: e0f9 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33459. }
  33460. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  33461. {
  33462. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33463. 800e6f6: 4b50 ldr r3, [pc, #320] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33464. 800e6f8: 681b ldr r3, [r3, #0]
  33465. 800e6fa: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33466. 800e6fe: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33467. 800e702: d107 bne.n 800e714 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  33468. {
  33469. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33470. 800e704: f107 0318 add.w r3, r7, #24
  33471. 800e708: 4618 mov r0, r3
  33472. 800e70a: f000 f90d bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  33473. frequency = pll2_clocks.PLL2_R_Frequency;
  33474. 800e70e: 6a3b ldr r3, [r7, #32]
  33475. 800e710: 63fb str r3, [r7, #60] @ 0x3c
  33476. }
  33477. else
  33478. {
  33479. frequency = 0;
  33480. }
  33481. break;
  33482. 800e712: e0ea b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33483. frequency = 0;
  33484. 800e714: 2300 movs r3, #0
  33485. 800e716: 63fb str r3, [r7, #60] @ 0x3c
  33486. break;
  33487. 800e718: e0e7 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33488. }
  33489. default :
  33490. {
  33491. frequency = 0;
  33492. 800e71a: 2300 movs r3, #0
  33493. 800e71c: 63fb str r3, [r7, #60] @ 0x3c
  33494. break;
  33495. 800e71e: e0e4 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33496. }
  33497. }
  33498. }
  33499. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  33500. 800e720: e9d7 2300 ldrd r2, r3, [r7]
  33501. 800e724: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  33502. 800e728: 430b orrs r3, r1
  33503. 800e72a: f040 808d bne.w 800e848 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  33504. {
  33505. /* Get SPI6 clock source */
  33506. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  33507. 800e72e: 4b42 ldr r3, [pc, #264] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33508. 800e730: 6d9b ldr r3, [r3, #88] @ 0x58
  33509. 800e732: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  33510. 800e736: 63bb str r3, [r7, #56] @ 0x38
  33511. switch (srcclk)
  33512. 800e738: 6bbb ldr r3, [r7, #56] @ 0x38
  33513. 800e73a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33514. 800e73e: d06b beq.n 800e818 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  33515. 800e740: 6bbb ldr r3, [r7, #56] @ 0x38
  33516. 800e742: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33517. 800e746: d874 bhi.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33518. 800e748: 6bbb ldr r3, [r7, #56] @ 0x38
  33519. 800e74a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33520. 800e74e: d056 beq.n 800e7fe <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  33521. 800e750: 6bbb ldr r3, [r7, #56] @ 0x38
  33522. 800e752: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33523. 800e756: d86c bhi.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33524. 800e758: 6bbb ldr r3, [r7, #56] @ 0x38
  33525. 800e75a: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33526. 800e75e: d03b beq.n 800e7d8 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  33527. 800e760: 6bbb ldr r3, [r7, #56] @ 0x38
  33528. 800e762: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33529. 800e766: d864 bhi.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33530. 800e768: 6bbb ldr r3, [r7, #56] @ 0x38
  33531. 800e76a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33532. 800e76e: d021 beq.n 800e7b4 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  33533. 800e770: 6bbb ldr r3, [r7, #56] @ 0x38
  33534. 800e772: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33535. 800e776: d85c bhi.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33536. 800e778: 6bbb ldr r3, [r7, #56] @ 0x38
  33537. 800e77a: 2b00 cmp r3, #0
  33538. 800e77c: d004 beq.n 800e788 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  33539. 800e77e: 6bbb ldr r3, [r7, #56] @ 0x38
  33540. 800e780: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33541. 800e784: d004 beq.n 800e790 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  33542. 800e786: e054 b.n 800e832 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33543. {
  33544. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  33545. {
  33546. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  33547. 800e788: f000 f8b8 bl 800e8fc <HAL_RCCEx_GetD3PCLK1Freq>
  33548. 800e78c: 63f8 str r0, [r7, #60] @ 0x3c
  33549. break;
  33550. 800e78e: e0ac b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33551. }
  33552. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  33553. {
  33554. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33555. 800e790: 4b29 ldr r3, [pc, #164] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33556. 800e792: 681b ldr r3, [r3, #0]
  33557. 800e794: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33558. 800e798: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33559. 800e79c: d107 bne.n 800e7ae <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  33560. {
  33561. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33562. 800e79e: f107 0318 add.w r3, r7, #24
  33563. 800e7a2: 4618 mov r0, r3
  33564. 800e7a4: f000 f8c0 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  33565. frequency = pll2_clocks.PLL2_Q_Frequency;
  33566. 800e7a8: 69fb ldr r3, [r7, #28]
  33567. 800e7aa: 63fb str r3, [r7, #60] @ 0x3c
  33568. }
  33569. else
  33570. {
  33571. frequency = 0;
  33572. }
  33573. break;
  33574. 800e7ac: e09d b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33575. frequency = 0;
  33576. 800e7ae: 2300 movs r3, #0
  33577. 800e7b0: 63fb str r3, [r7, #60] @ 0x3c
  33578. break;
  33579. 800e7b2: e09a b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33580. }
  33581. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  33582. {
  33583. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33584. 800e7b4: 4b20 ldr r3, [pc, #128] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33585. 800e7b6: 681b ldr r3, [r3, #0]
  33586. 800e7b8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33587. 800e7bc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33588. 800e7c0: d107 bne.n 800e7d2 <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  33589. {
  33590. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33591. 800e7c2: f107 030c add.w r3, r7, #12
  33592. 800e7c6: 4618 mov r0, r3
  33593. 800e7c8: f000 fa02 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  33594. frequency = pll3_clocks.PLL3_Q_Frequency;
  33595. 800e7cc: 693b ldr r3, [r7, #16]
  33596. 800e7ce: 63fb str r3, [r7, #60] @ 0x3c
  33597. }
  33598. else
  33599. {
  33600. frequency = 0;
  33601. }
  33602. break;
  33603. 800e7d0: e08b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33604. frequency = 0;
  33605. 800e7d2: 2300 movs r3, #0
  33606. 800e7d4: 63fb str r3, [r7, #60] @ 0x3c
  33607. break;
  33608. 800e7d6: e088 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33609. }
  33610. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  33611. {
  33612. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33613. 800e7d8: 4b17 ldr r3, [pc, #92] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33614. 800e7da: 681b ldr r3, [r3, #0]
  33615. 800e7dc: f003 0304 and.w r3, r3, #4
  33616. 800e7e0: 2b04 cmp r3, #4
  33617. 800e7e2: d109 bne.n 800e7f8 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  33618. {
  33619. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33620. 800e7e4: 4b14 ldr r3, [pc, #80] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33621. 800e7e6: 681b ldr r3, [r3, #0]
  33622. 800e7e8: 08db lsrs r3, r3, #3
  33623. 800e7ea: f003 0303 and.w r3, r3, #3
  33624. 800e7ee: 4a13 ldr r2, [pc, #76] @ (800e83c <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33625. 800e7f0: fa22 f303 lsr.w r3, r2, r3
  33626. 800e7f4: 63fb str r3, [r7, #60] @ 0x3c
  33627. }
  33628. else
  33629. {
  33630. frequency = 0;
  33631. }
  33632. break;
  33633. 800e7f6: e078 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33634. frequency = 0;
  33635. 800e7f8: 2300 movs r3, #0
  33636. 800e7fa: 63fb str r3, [r7, #60] @ 0x3c
  33637. break;
  33638. 800e7fc: e075 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33639. }
  33640. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  33641. {
  33642. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33643. 800e7fe: 4b0e ldr r3, [pc, #56] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33644. 800e800: 681b ldr r3, [r3, #0]
  33645. 800e802: f403 7380 and.w r3, r3, #256 @ 0x100
  33646. 800e806: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33647. 800e80a: d102 bne.n 800e812 <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  33648. {
  33649. frequency = CSI_VALUE;
  33650. 800e80c: 4b0c ldr r3, [pc, #48] @ (800e840 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33651. 800e80e: 63fb str r3, [r7, #60] @ 0x3c
  33652. }
  33653. else
  33654. {
  33655. frequency = 0;
  33656. }
  33657. break;
  33658. 800e810: e06b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33659. frequency = 0;
  33660. 800e812: 2300 movs r3, #0
  33661. 800e814: 63fb str r3, [r7, #60] @ 0x3c
  33662. break;
  33663. 800e816: e068 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33664. }
  33665. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  33666. {
  33667. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33668. 800e818: 4b07 ldr r3, [pc, #28] @ (800e838 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33669. 800e81a: 681b ldr r3, [r3, #0]
  33670. 800e81c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33671. 800e820: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33672. 800e824: d102 bne.n 800e82c <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  33673. {
  33674. frequency = HSE_VALUE;
  33675. 800e826: 4b07 ldr r3, [pc, #28] @ (800e844 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33676. 800e828: 63fb str r3, [r7, #60] @ 0x3c
  33677. }
  33678. else
  33679. {
  33680. frequency = 0;
  33681. }
  33682. break;
  33683. 800e82a: e05e b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33684. frequency = 0;
  33685. 800e82c: 2300 movs r3, #0
  33686. 800e82e: 63fb str r3, [r7, #60] @ 0x3c
  33687. break;
  33688. 800e830: e05b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33689. break;
  33690. }
  33691. #endif /* RCC_SPI6CLKSOURCE_PIN */
  33692. default :
  33693. {
  33694. frequency = 0;
  33695. 800e832: 2300 movs r3, #0
  33696. 800e834: 63fb str r3, [r7, #60] @ 0x3c
  33697. break;
  33698. 800e836: e058 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33699. 800e838: 58024400 .word 0x58024400
  33700. 800e83c: 03d09000 .word 0x03d09000
  33701. 800e840: 003d0900 .word 0x003d0900
  33702. 800e844: 017d7840 .word 0x017d7840
  33703. }
  33704. }
  33705. }
  33706. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  33707. 800e848: e9d7 2300 ldrd r2, r3, [r7]
  33708. 800e84c: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  33709. 800e850: 430b orrs r3, r1
  33710. 800e852: d148 bne.n 800e8e6 <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  33711. {
  33712. /* Get FDCAN clock source */
  33713. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  33714. 800e854: 4b27 ldr r3, [pc, #156] @ (800e8f4 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33715. 800e856: 6d1b ldr r3, [r3, #80] @ 0x50
  33716. 800e858: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33717. 800e85c: 63bb str r3, [r7, #56] @ 0x38
  33718. switch (srcclk)
  33719. 800e85e: 6bbb ldr r3, [r7, #56] @ 0x38
  33720. 800e860: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33721. 800e864: d02a beq.n 800e8bc <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  33722. 800e866: 6bbb ldr r3, [r7, #56] @ 0x38
  33723. 800e868: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33724. 800e86c: d838 bhi.n 800e8e0 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33725. 800e86e: 6bbb ldr r3, [r7, #56] @ 0x38
  33726. 800e870: 2b00 cmp r3, #0
  33727. 800e872: d004 beq.n 800e87e <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  33728. 800e874: 6bbb ldr r3, [r7, #56] @ 0x38
  33729. 800e876: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33730. 800e87a: d00d beq.n 800e898 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  33731. 800e87c: e030 b.n 800e8e0 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33732. {
  33733. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  33734. {
  33735. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33736. 800e87e: 4b1d ldr r3, [pc, #116] @ (800e8f4 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33737. 800e880: 681b ldr r3, [r3, #0]
  33738. 800e882: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33739. 800e886: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33740. 800e88a: d102 bne.n 800e892 <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  33741. {
  33742. frequency = HSE_VALUE;
  33743. 800e88c: 4b1a ldr r3, [pc, #104] @ (800e8f8 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  33744. 800e88e: 63fb str r3, [r7, #60] @ 0x3c
  33745. }
  33746. else
  33747. {
  33748. frequency = 0;
  33749. }
  33750. break;
  33751. 800e890: e02b b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33752. frequency = 0;
  33753. 800e892: 2300 movs r3, #0
  33754. 800e894: 63fb str r3, [r7, #60] @ 0x3c
  33755. break;
  33756. 800e896: e028 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33757. }
  33758. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  33759. {
  33760. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33761. 800e898: 4b16 ldr r3, [pc, #88] @ (800e8f4 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33762. 800e89a: 681b ldr r3, [r3, #0]
  33763. 800e89c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33764. 800e8a0: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33765. 800e8a4: d107 bne.n 800e8b6 <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  33766. {
  33767. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33768. 800e8a6: f107 0324 add.w r3, r7, #36 @ 0x24
  33769. 800e8aa: 4618 mov r0, r3
  33770. 800e8ac: f000 fae4 bl 800ee78 <HAL_RCCEx_GetPLL1ClockFreq>
  33771. frequency = pll1_clocks.PLL1_Q_Frequency;
  33772. 800e8b0: 6abb ldr r3, [r7, #40] @ 0x28
  33773. 800e8b2: 63fb str r3, [r7, #60] @ 0x3c
  33774. }
  33775. else
  33776. {
  33777. frequency = 0;
  33778. }
  33779. break;
  33780. 800e8b4: e019 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33781. frequency = 0;
  33782. 800e8b6: 2300 movs r3, #0
  33783. 800e8b8: 63fb str r3, [r7, #60] @ 0x3c
  33784. break;
  33785. 800e8ba: e016 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33786. }
  33787. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  33788. {
  33789. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33790. 800e8bc: 4b0d ldr r3, [pc, #52] @ (800e8f4 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33791. 800e8be: 681b ldr r3, [r3, #0]
  33792. 800e8c0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33793. 800e8c4: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33794. 800e8c8: d107 bne.n 800e8da <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  33795. {
  33796. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33797. 800e8ca: f107 0318 add.w r3, r7, #24
  33798. 800e8ce: 4618 mov r0, r3
  33799. 800e8d0: f000 f82a bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  33800. frequency = pll2_clocks.PLL2_Q_Frequency;
  33801. 800e8d4: 69fb ldr r3, [r7, #28]
  33802. 800e8d6: 63fb str r3, [r7, #60] @ 0x3c
  33803. }
  33804. else
  33805. {
  33806. frequency = 0;
  33807. }
  33808. break;
  33809. 800e8d8: e007 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33810. frequency = 0;
  33811. 800e8da: 2300 movs r3, #0
  33812. 800e8dc: 63fb str r3, [r7, #60] @ 0x3c
  33813. break;
  33814. 800e8de: e004 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33815. }
  33816. default :
  33817. {
  33818. frequency = 0;
  33819. 800e8e0: 2300 movs r3, #0
  33820. 800e8e2: 63fb str r3, [r7, #60] @ 0x3c
  33821. break;
  33822. 800e8e4: e001 b.n 800e8ea <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33823. }
  33824. }
  33825. }
  33826. else
  33827. {
  33828. frequency = 0;
  33829. 800e8e6: 2300 movs r3, #0
  33830. 800e8e8: 63fb str r3, [r7, #60] @ 0x3c
  33831. }
  33832. return frequency;
  33833. 800e8ea: 6bfb ldr r3, [r7, #60] @ 0x3c
  33834. }
  33835. 800e8ec: 4618 mov r0, r3
  33836. 800e8ee: 3740 adds r7, #64 @ 0x40
  33837. 800e8f0: 46bd mov sp, r7
  33838. 800e8f2: bd80 pop {r7, pc}
  33839. 800e8f4: 58024400 .word 0x58024400
  33840. 800e8f8: 017d7840 .word 0x017d7840
  33841. 0800e8fc <HAL_RCCEx_GetD3PCLK1Freq>:
  33842. * @note Each time D3PCLK1 changes, this function must be called to update the
  33843. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  33844. * @retval D3PCLK1 frequency
  33845. */
  33846. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  33847. {
  33848. 800e8fc: b580 push {r7, lr}
  33849. 800e8fe: af00 add r7, sp, #0
  33850. #if defined(RCC_D3CFGR_D3PPRE)
  33851. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33852. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  33853. 800e900: f7fd fff0 bl 800c8e4 <HAL_RCC_GetHCLKFreq>
  33854. 800e904: 4602 mov r2, r0
  33855. 800e906: 4b06 ldr r3, [pc, #24] @ (800e920 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  33856. 800e908: 6a1b ldr r3, [r3, #32]
  33857. 800e90a: 091b lsrs r3, r3, #4
  33858. 800e90c: f003 0307 and.w r3, r3, #7
  33859. 800e910: 4904 ldr r1, [pc, #16] @ (800e924 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  33860. 800e912: 5ccb ldrb r3, [r1, r3]
  33861. 800e914: f003 031f and.w r3, r3, #31
  33862. 800e918: fa22 f303 lsr.w r3, r2, r3
  33863. #else
  33864. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33865. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  33866. #endif
  33867. }
  33868. 800e91c: 4618 mov r0, r3
  33869. 800e91e: bd80 pop {r7, pc}
  33870. 800e920: 58024400 .word 0x58024400
  33871. 800e924: 0801878c .word 0x0801878c
  33872. 0800e928 <HAL_RCCEx_GetPLL2ClockFreq>:
  33873. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  33874. * @param PLL2_Clocks structure.
  33875. * @retval None
  33876. */
  33877. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  33878. {
  33879. 800e928: b480 push {r7}
  33880. 800e92a: b089 sub sp, #36 @ 0x24
  33881. 800e92c: af00 add r7, sp, #0
  33882. 800e92e: 6078 str r0, [r7, #4]
  33883. float_t fracn2, pll2vco;
  33884. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  33885. PLL2xCLK = PLL2_VCO / PLL2x
  33886. */
  33887. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33888. 800e930: 4ba1 ldr r3, [pc, #644] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33889. 800e932: 6a9b ldr r3, [r3, #40] @ 0x28
  33890. 800e934: f003 0303 and.w r3, r3, #3
  33891. 800e938: 61bb str r3, [r7, #24]
  33892. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  33893. 800e93a: 4b9f ldr r3, [pc, #636] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33894. 800e93c: 6a9b ldr r3, [r3, #40] @ 0x28
  33895. 800e93e: 0b1b lsrs r3, r3, #12
  33896. 800e940: f003 033f and.w r3, r3, #63 @ 0x3f
  33897. 800e944: 617b str r3, [r7, #20]
  33898. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  33899. 800e946: 4b9c ldr r3, [pc, #624] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33900. 800e948: 6adb ldr r3, [r3, #44] @ 0x2c
  33901. 800e94a: 091b lsrs r3, r3, #4
  33902. 800e94c: f003 0301 and.w r3, r3, #1
  33903. 800e950: 613b str r3, [r7, #16]
  33904. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  33905. 800e952: 4b99 ldr r3, [pc, #612] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33906. 800e954: 6bdb ldr r3, [r3, #60] @ 0x3c
  33907. 800e956: 08db lsrs r3, r3, #3
  33908. 800e958: f3c3 030c ubfx r3, r3, #0, #13
  33909. 800e95c: 693a ldr r2, [r7, #16]
  33910. 800e95e: fb02 f303 mul.w r3, r2, r3
  33911. 800e962: ee07 3a90 vmov s15, r3
  33912. 800e966: eef8 7a67 vcvt.f32.u32 s15, s15
  33913. 800e96a: edc7 7a03 vstr s15, [r7, #12]
  33914. if (pll2m != 0U)
  33915. 800e96e: 697b ldr r3, [r7, #20]
  33916. 800e970: 2b00 cmp r3, #0
  33917. 800e972: f000 8111 beq.w 800eb98 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  33918. {
  33919. switch (pllsource)
  33920. 800e976: 69bb ldr r3, [r7, #24]
  33921. 800e978: 2b02 cmp r3, #2
  33922. 800e97a: f000 8083 beq.w 800ea84 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  33923. 800e97e: 69bb ldr r3, [r7, #24]
  33924. 800e980: 2b02 cmp r3, #2
  33925. 800e982: f200 80a1 bhi.w 800eac8 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33926. 800e986: 69bb ldr r3, [r7, #24]
  33927. 800e988: 2b00 cmp r3, #0
  33928. 800e98a: d003 beq.n 800e994 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  33929. 800e98c: 69bb ldr r3, [r7, #24]
  33930. 800e98e: 2b01 cmp r3, #1
  33931. 800e990: d056 beq.n 800ea40 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  33932. 800e992: e099 b.n 800eac8 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33933. {
  33934. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33935. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33936. 800e994: 4b88 ldr r3, [pc, #544] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33937. 800e996: 681b ldr r3, [r3, #0]
  33938. 800e998: f003 0320 and.w r3, r3, #32
  33939. 800e99c: 2b00 cmp r3, #0
  33940. 800e99e: d02d beq.n 800e9fc <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  33941. {
  33942. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33943. 800e9a0: 4b85 ldr r3, [pc, #532] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33944. 800e9a2: 681b ldr r3, [r3, #0]
  33945. 800e9a4: 08db lsrs r3, r3, #3
  33946. 800e9a6: f003 0303 and.w r3, r3, #3
  33947. 800e9aa: 4a84 ldr r2, [pc, #528] @ (800ebbc <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  33948. 800e9ac: fa22 f303 lsr.w r3, r2, r3
  33949. 800e9b0: 60bb str r3, [r7, #8]
  33950. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33951. 800e9b2: 68bb ldr r3, [r7, #8]
  33952. 800e9b4: ee07 3a90 vmov s15, r3
  33953. 800e9b8: eef8 6a67 vcvt.f32.u32 s13, s15
  33954. 800e9bc: 697b ldr r3, [r7, #20]
  33955. 800e9be: ee07 3a90 vmov s15, r3
  33956. 800e9c2: eef8 7a67 vcvt.f32.u32 s15, s15
  33957. 800e9c6: ee86 7aa7 vdiv.f32 s14, s13, s15
  33958. 800e9ca: 4b7b ldr r3, [pc, #492] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33959. 800e9cc: 6b9b ldr r3, [r3, #56] @ 0x38
  33960. 800e9ce: f3c3 0308 ubfx r3, r3, #0, #9
  33961. 800e9d2: ee07 3a90 vmov s15, r3
  33962. 800e9d6: eef8 6a67 vcvt.f32.u32 s13, s15
  33963. 800e9da: ed97 6a03 vldr s12, [r7, #12]
  33964. 800e9de: eddf 5a78 vldr s11, [pc, #480] @ 800ebc0 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33965. 800e9e2: eec6 7a25 vdiv.f32 s15, s12, s11
  33966. 800e9e6: ee76 7aa7 vadd.f32 s15, s13, s15
  33967. 800e9ea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33968. 800e9ee: ee77 7aa6 vadd.f32 s15, s15, s13
  33969. 800e9f2: ee67 7a27 vmul.f32 s15, s14, s15
  33970. 800e9f6: edc7 7a07 vstr s15, [r7, #28]
  33971. }
  33972. else
  33973. {
  33974. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33975. }
  33976. break;
  33977. 800e9fa: e087 b.n 800eb0c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33978. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33979. 800e9fc: 697b ldr r3, [r7, #20]
  33980. 800e9fe: ee07 3a90 vmov s15, r3
  33981. 800ea02: eef8 7a67 vcvt.f32.u32 s15, s15
  33982. 800ea06: eddf 6a6f vldr s13, [pc, #444] @ 800ebc4 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  33983. 800ea0a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33984. 800ea0e: 4b6a ldr r3, [pc, #424] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33985. 800ea10: 6b9b ldr r3, [r3, #56] @ 0x38
  33986. 800ea12: f3c3 0308 ubfx r3, r3, #0, #9
  33987. 800ea16: ee07 3a90 vmov s15, r3
  33988. 800ea1a: eef8 6a67 vcvt.f32.u32 s13, s15
  33989. 800ea1e: ed97 6a03 vldr s12, [r7, #12]
  33990. 800ea22: eddf 5a67 vldr s11, [pc, #412] @ 800ebc0 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33991. 800ea26: eec6 7a25 vdiv.f32 s15, s12, s11
  33992. 800ea2a: ee76 7aa7 vadd.f32 s15, s13, s15
  33993. 800ea2e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33994. 800ea32: ee77 7aa6 vadd.f32 s15, s15, s13
  33995. 800ea36: ee67 7a27 vmul.f32 s15, s14, s15
  33996. 800ea3a: edc7 7a07 vstr s15, [r7, #28]
  33997. break;
  33998. 800ea3e: e065 b.n 800eb0c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33999. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34000. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  34001. 800ea40: 697b ldr r3, [r7, #20]
  34002. 800ea42: ee07 3a90 vmov s15, r3
  34003. 800ea46: eef8 7a67 vcvt.f32.u32 s15, s15
  34004. 800ea4a: eddf 6a5f vldr s13, [pc, #380] @ 800ebc8 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  34005. 800ea4e: ee86 7aa7 vdiv.f32 s14, s13, s15
  34006. 800ea52: 4b59 ldr r3, [pc, #356] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34007. 800ea54: 6b9b ldr r3, [r3, #56] @ 0x38
  34008. 800ea56: f3c3 0308 ubfx r3, r3, #0, #9
  34009. 800ea5a: ee07 3a90 vmov s15, r3
  34010. 800ea5e: eef8 6a67 vcvt.f32.u32 s13, s15
  34011. 800ea62: ed97 6a03 vldr s12, [r7, #12]
  34012. 800ea66: eddf 5a56 vldr s11, [pc, #344] @ 800ebc0 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  34013. 800ea6a: eec6 7a25 vdiv.f32 s15, s12, s11
  34014. 800ea6e: ee76 7aa7 vadd.f32 s15, s13, s15
  34015. 800ea72: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34016. 800ea76: ee77 7aa6 vadd.f32 s15, s15, s13
  34017. 800ea7a: ee67 7a27 vmul.f32 s15, s14, s15
  34018. 800ea7e: edc7 7a07 vstr s15, [r7, #28]
  34019. break;
  34020. 800ea82: e043 b.n 800eb0c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  34021. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34022. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  34023. 800ea84: 697b ldr r3, [r7, #20]
  34024. 800ea86: ee07 3a90 vmov s15, r3
  34025. 800ea8a: eef8 7a67 vcvt.f32.u32 s15, s15
  34026. 800ea8e: eddf 6a4f vldr s13, [pc, #316] @ 800ebcc <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  34027. 800ea92: ee86 7aa7 vdiv.f32 s14, s13, s15
  34028. 800ea96: 4b48 ldr r3, [pc, #288] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34029. 800ea98: 6b9b ldr r3, [r3, #56] @ 0x38
  34030. 800ea9a: f3c3 0308 ubfx r3, r3, #0, #9
  34031. 800ea9e: ee07 3a90 vmov s15, r3
  34032. 800eaa2: eef8 6a67 vcvt.f32.u32 s13, s15
  34033. 800eaa6: ed97 6a03 vldr s12, [r7, #12]
  34034. 800eaaa: eddf 5a45 vldr s11, [pc, #276] @ 800ebc0 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  34035. 800eaae: eec6 7a25 vdiv.f32 s15, s12, s11
  34036. 800eab2: ee76 7aa7 vadd.f32 s15, s13, s15
  34037. 800eab6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34038. 800eaba: ee77 7aa6 vadd.f32 s15, s15, s13
  34039. 800eabe: ee67 7a27 vmul.f32 s15, s14, s15
  34040. 800eac2: edc7 7a07 vstr s15, [r7, #28]
  34041. break;
  34042. 800eac6: e021 b.n 800eb0c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  34043. default:
  34044. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  34045. 800eac8: 697b ldr r3, [r7, #20]
  34046. 800eaca: ee07 3a90 vmov s15, r3
  34047. 800eace: eef8 7a67 vcvt.f32.u32 s15, s15
  34048. 800ead2: eddf 6a3d vldr s13, [pc, #244] @ 800ebc8 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  34049. 800ead6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34050. 800eada: 4b37 ldr r3, [pc, #220] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34051. 800eadc: 6b9b ldr r3, [r3, #56] @ 0x38
  34052. 800eade: f3c3 0308 ubfx r3, r3, #0, #9
  34053. 800eae2: ee07 3a90 vmov s15, r3
  34054. 800eae6: eef8 6a67 vcvt.f32.u32 s13, s15
  34055. 800eaea: ed97 6a03 vldr s12, [r7, #12]
  34056. 800eaee: eddf 5a34 vldr s11, [pc, #208] @ 800ebc0 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  34057. 800eaf2: eec6 7a25 vdiv.f32 s15, s12, s11
  34058. 800eaf6: ee76 7aa7 vadd.f32 s15, s13, s15
  34059. 800eafa: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34060. 800eafe: ee77 7aa6 vadd.f32 s15, s15, s13
  34061. 800eb02: ee67 7a27 vmul.f32 s15, s14, s15
  34062. 800eb06: edc7 7a07 vstr s15, [r7, #28]
  34063. break;
  34064. 800eb0a: bf00 nop
  34065. }
  34066. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  34067. 800eb0c: 4b2a ldr r3, [pc, #168] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34068. 800eb0e: 6b9b ldr r3, [r3, #56] @ 0x38
  34069. 800eb10: 0a5b lsrs r3, r3, #9
  34070. 800eb12: f003 037f and.w r3, r3, #127 @ 0x7f
  34071. 800eb16: ee07 3a90 vmov s15, r3
  34072. 800eb1a: eef8 7a67 vcvt.f32.u32 s15, s15
  34073. 800eb1e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34074. 800eb22: ee37 7a87 vadd.f32 s14, s15, s14
  34075. 800eb26: edd7 6a07 vldr s13, [r7, #28]
  34076. 800eb2a: eec6 7a87 vdiv.f32 s15, s13, s14
  34077. 800eb2e: eefc 7ae7 vcvt.u32.f32 s15, s15
  34078. 800eb32: ee17 2a90 vmov r2, s15
  34079. 800eb36: 687b ldr r3, [r7, #4]
  34080. 800eb38: 601a str r2, [r3, #0]
  34081. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  34082. 800eb3a: 4b1f ldr r3, [pc, #124] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34083. 800eb3c: 6b9b ldr r3, [r3, #56] @ 0x38
  34084. 800eb3e: 0c1b lsrs r3, r3, #16
  34085. 800eb40: f003 037f and.w r3, r3, #127 @ 0x7f
  34086. 800eb44: ee07 3a90 vmov s15, r3
  34087. 800eb48: eef8 7a67 vcvt.f32.u32 s15, s15
  34088. 800eb4c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34089. 800eb50: ee37 7a87 vadd.f32 s14, s15, s14
  34090. 800eb54: edd7 6a07 vldr s13, [r7, #28]
  34091. 800eb58: eec6 7a87 vdiv.f32 s15, s13, s14
  34092. 800eb5c: eefc 7ae7 vcvt.u32.f32 s15, s15
  34093. 800eb60: ee17 2a90 vmov r2, s15
  34094. 800eb64: 687b ldr r3, [r7, #4]
  34095. 800eb66: 605a str r2, [r3, #4]
  34096. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  34097. 800eb68: 4b13 ldr r3, [pc, #76] @ (800ebb8 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34098. 800eb6a: 6b9b ldr r3, [r3, #56] @ 0x38
  34099. 800eb6c: 0e1b lsrs r3, r3, #24
  34100. 800eb6e: f003 037f and.w r3, r3, #127 @ 0x7f
  34101. 800eb72: ee07 3a90 vmov s15, r3
  34102. 800eb76: eef8 7a67 vcvt.f32.u32 s15, s15
  34103. 800eb7a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34104. 800eb7e: ee37 7a87 vadd.f32 s14, s15, s14
  34105. 800eb82: edd7 6a07 vldr s13, [r7, #28]
  34106. 800eb86: eec6 7a87 vdiv.f32 s15, s13, s14
  34107. 800eb8a: eefc 7ae7 vcvt.u32.f32 s15, s15
  34108. 800eb8e: ee17 2a90 vmov r2, s15
  34109. 800eb92: 687b ldr r3, [r7, #4]
  34110. 800eb94: 609a str r2, [r3, #8]
  34111. {
  34112. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34113. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34114. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34115. }
  34116. }
  34117. 800eb96: e008 b.n 800ebaa <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  34118. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34119. 800eb98: 687b ldr r3, [r7, #4]
  34120. 800eb9a: 2200 movs r2, #0
  34121. 800eb9c: 601a str r2, [r3, #0]
  34122. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34123. 800eb9e: 687b ldr r3, [r7, #4]
  34124. 800eba0: 2200 movs r2, #0
  34125. 800eba2: 605a str r2, [r3, #4]
  34126. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34127. 800eba4: 687b ldr r3, [r7, #4]
  34128. 800eba6: 2200 movs r2, #0
  34129. 800eba8: 609a str r2, [r3, #8]
  34130. }
  34131. 800ebaa: bf00 nop
  34132. 800ebac: 3724 adds r7, #36 @ 0x24
  34133. 800ebae: 46bd mov sp, r7
  34134. 800ebb0: f85d 7b04 ldr.w r7, [sp], #4
  34135. 800ebb4: 4770 bx lr
  34136. 800ebb6: bf00 nop
  34137. 800ebb8: 58024400 .word 0x58024400
  34138. 800ebbc: 03d09000 .word 0x03d09000
  34139. 800ebc0: 46000000 .word 0x46000000
  34140. 800ebc4: 4c742400 .word 0x4c742400
  34141. 800ebc8: 4a742400 .word 0x4a742400
  34142. 800ebcc: 4bbebc20 .word 0x4bbebc20
  34143. 0800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>:
  34144. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  34145. * @param PLL3_Clocks structure.
  34146. * @retval None
  34147. */
  34148. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  34149. {
  34150. 800ebd0: b480 push {r7}
  34151. 800ebd2: b089 sub sp, #36 @ 0x24
  34152. 800ebd4: af00 add r7, sp, #0
  34153. 800ebd6: 6078 str r0, [r7, #4]
  34154. float_t fracn3, pll3vco;
  34155. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  34156. PLL3xCLK = PLL3_VCO / PLLxR
  34157. */
  34158. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34159. 800ebd8: 4ba1 ldr r3, [pc, #644] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34160. 800ebda: 6a9b ldr r3, [r3, #40] @ 0x28
  34161. 800ebdc: f003 0303 and.w r3, r3, #3
  34162. 800ebe0: 61bb str r3, [r7, #24]
  34163. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  34164. 800ebe2: 4b9f ldr r3, [pc, #636] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34165. 800ebe4: 6a9b ldr r3, [r3, #40] @ 0x28
  34166. 800ebe6: 0d1b lsrs r3, r3, #20
  34167. 800ebe8: f003 033f and.w r3, r3, #63 @ 0x3f
  34168. 800ebec: 617b str r3, [r7, #20]
  34169. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  34170. 800ebee: 4b9c ldr r3, [pc, #624] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34171. 800ebf0: 6adb ldr r3, [r3, #44] @ 0x2c
  34172. 800ebf2: 0a1b lsrs r3, r3, #8
  34173. 800ebf4: f003 0301 and.w r3, r3, #1
  34174. 800ebf8: 613b str r3, [r7, #16]
  34175. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  34176. 800ebfa: 4b99 ldr r3, [pc, #612] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34177. 800ebfc: 6c5b ldr r3, [r3, #68] @ 0x44
  34178. 800ebfe: 08db lsrs r3, r3, #3
  34179. 800ec00: f3c3 030c ubfx r3, r3, #0, #13
  34180. 800ec04: 693a ldr r2, [r7, #16]
  34181. 800ec06: fb02 f303 mul.w r3, r2, r3
  34182. 800ec0a: ee07 3a90 vmov s15, r3
  34183. 800ec0e: eef8 7a67 vcvt.f32.u32 s15, s15
  34184. 800ec12: edc7 7a03 vstr s15, [r7, #12]
  34185. if (pll3m != 0U)
  34186. 800ec16: 697b ldr r3, [r7, #20]
  34187. 800ec18: 2b00 cmp r3, #0
  34188. 800ec1a: f000 8111 beq.w 800ee40 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  34189. {
  34190. switch (pllsource)
  34191. 800ec1e: 69bb ldr r3, [r7, #24]
  34192. 800ec20: 2b02 cmp r3, #2
  34193. 800ec22: f000 8083 beq.w 800ed2c <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  34194. 800ec26: 69bb ldr r3, [r7, #24]
  34195. 800ec28: 2b02 cmp r3, #2
  34196. 800ec2a: f200 80a1 bhi.w 800ed70 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34197. 800ec2e: 69bb ldr r3, [r7, #24]
  34198. 800ec30: 2b00 cmp r3, #0
  34199. 800ec32: d003 beq.n 800ec3c <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  34200. 800ec34: 69bb ldr r3, [r7, #24]
  34201. 800ec36: 2b01 cmp r3, #1
  34202. 800ec38: d056 beq.n 800ece8 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  34203. 800ec3a: e099 b.n 800ed70 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34204. {
  34205. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34206. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34207. 800ec3c: 4b88 ldr r3, [pc, #544] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34208. 800ec3e: 681b ldr r3, [r3, #0]
  34209. 800ec40: f003 0320 and.w r3, r3, #32
  34210. 800ec44: 2b00 cmp r3, #0
  34211. 800ec46: d02d beq.n 800eca4 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  34212. {
  34213. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34214. 800ec48: 4b85 ldr r3, [pc, #532] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34215. 800ec4a: 681b ldr r3, [r3, #0]
  34216. 800ec4c: 08db lsrs r3, r3, #3
  34217. 800ec4e: f003 0303 and.w r3, r3, #3
  34218. 800ec52: 4a84 ldr r2, [pc, #528] @ (800ee64 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  34219. 800ec54: fa22 f303 lsr.w r3, r2, r3
  34220. 800ec58: 60bb str r3, [r7, #8]
  34221. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34222. 800ec5a: 68bb ldr r3, [r7, #8]
  34223. 800ec5c: ee07 3a90 vmov s15, r3
  34224. 800ec60: eef8 6a67 vcvt.f32.u32 s13, s15
  34225. 800ec64: 697b ldr r3, [r7, #20]
  34226. 800ec66: ee07 3a90 vmov s15, r3
  34227. 800ec6a: eef8 7a67 vcvt.f32.u32 s15, s15
  34228. 800ec6e: ee86 7aa7 vdiv.f32 s14, s13, s15
  34229. 800ec72: 4b7b ldr r3, [pc, #492] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34230. 800ec74: 6c1b ldr r3, [r3, #64] @ 0x40
  34231. 800ec76: f3c3 0308 ubfx r3, r3, #0, #9
  34232. 800ec7a: ee07 3a90 vmov s15, r3
  34233. 800ec7e: eef8 6a67 vcvt.f32.u32 s13, s15
  34234. 800ec82: ed97 6a03 vldr s12, [r7, #12]
  34235. 800ec86: eddf 5a78 vldr s11, [pc, #480] @ 800ee68 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34236. 800ec8a: eec6 7a25 vdiv.f32 s15, s12, s11
  34237. 800ec8e: ee76 7aa7 vadd.f32 s15, s13, s15
  34238. 800ec92: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34239. 800ec96: ee77 7aa6 vadd.f32 s15, s15, s13
  34240. 800ec9a: ee67 7a27 vmul.f32 s15, s14, s15
  34241. 800ec9e: edc7 7a07 vstr s15, [r7, #28]
  34242. }
  34243. else
  34244. {
  34245. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34246. }
  34247. break;
  34248. 800eca2: e087 b.n 800edb4 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34249. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34250. 800eca4: 697b ldr r3, [r7, #20]
  34251. 800eca6: ee07 3a90 vmov s15, r3
  34252. 800ecaa: eef8 7a67 vcvt.f32.u32 s15, s15
  34253. 800ecae: eddf 6a6f vldr s13, [pc, #444] @ 800ee6c <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  34254. 800ecb2: ee86 7aa7 vdiv.f32 s14, s13, s15
  34255. 800ecb6: 4b6a ldr r3, [pc, #424] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34256. 800ecb8: 6c1b ldr r3, [r3, #64] @ 0x40
  34257. 800ecba: f3c3 0308 ubfx r3, r3, #0, #9
  34258. 800ecbe: ee07 3a90 vmov s15, r3
  34259. 800ecc2: eef8 6a67 vcvt.f32.u32 s13, s15
  34260. 800ecc6: ed97 6a03 vldr s12, [r7, #12]
  34261. 800ecca: eddf 5a67 vldr s11, [pc, #412] @ 800ee68 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34262. 800ecce: eec6 7a25 vdiv.f32 s15, s12, s11
  34263. 800ecd2: ee76 7aa7 vadd.f32 s15, s13, s15
  34264. 800ecd6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34265. 800ecda: ee77 7aa6 vadd.f32 s15, s15, s13
  34266. 800ecde: ee67 7a27 vmul.f32 s15, s14, s15
  34267. 800ece2: edc7 7a07 vstr s15, [r7, #28]
  34268. break;
  34269. 800ece6: e065 b.n 800edb4 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34270. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34271. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34272. 800ece8: 697b ldr r3, [r7, #20]
  34273. 800ecea: ee07 3a90 vmov s15, r3
  34274. 800ecee: eef8 7a67 vcvt.f32.u32 s15, s15
  34275. 800ecf2: eddf 6a5f vldr s13, [pc, #380] @ 800ee70 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34276. 800ecf6: ee86 7aa7 vdiv.f32 s14, s13, s15
  34277. 800ecfa: 4b59 ldr r3, [pc, #356] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34278. 800ecfc: 6c1b ldr r3, [r3, #64] @ 0x40
  34279. 800ecfe: f3c3 0308 ubfx r3, r3, #0, #9
  34280. 800ed02: ee07 3a90 vmov s15, r3
  34281. 800ed06: eef8 6a67 vcvt.f32.u32 s13, s15
  34282. 800ed0a: ed97 6a03 vldr s12, [r7, #12]
  34283. 800ed0e: eddf 5a56 vldr s11, [pc, #344] @ 800ee68 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34284. 800ed12: eec6 7a25 vdiv.f32 s15, s12, s11
  34285. 800ed16: ee76 7aa7 vadd.f32 s15, s13, s15
  34286. 800ed1a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34287. 800ed1e: ee77 7aa6 vadd.f32 s15, s15, s13
  34288. 800ed22: ee67 7a27 vmul.f32 s15, s14, s15
  34289. 800ed26: edc7 7a07 vstr s15, [r7, #28]
  34290. break;
  34291. 800ed2a: e043 b.n 800edb4 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34292. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34293. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34294. 800ed2c: 697b ldr r3, [r7, #20]
  34295. 800ed2e: ee07 3a90 vmov s15, r3
  34296. 800ed32: eef8 7a67 vcvt.f32.u32 s15, s15
  34297. 800ed36: eddf 6a4f vldr s13, [pc, #316] @ 800ee74 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  34298. 800ed3a: ee86 7aa7 vdiv.f32 s14, s13, s15
  34299. 800ed3e: 4b48 ldr r3, [pc, #288] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34300. 800ed40: 6c1b ldr r3, [r3, #64] @ 0x40
  34301. 800ed42: f3c3 0308 ubfx r3, r3, #0, #9
  34302. 800ed46: ee07 3a90 vmov s15, r3
  34303. 800ed4a: eef8 6a67 vcvt.f32.u32 s13, s15
  34304. 800ed4e: ed97 6a03 vldr s12, [r7, #12]
  34305. 800ed52: eddf 5a45 vldr s11, [pc, #276] @ 800ee68 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34306. 800ed56: eec6 7a25 vdiv.f32 s15, s12, s11
  34307. 800ed5a: ee76 7aa7 vadd.f32 s15, s13, s15
  34308. 800ed5e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34309. 800ed62: ee77 7aa6 vadd.f32 s15, s15, s13
  34310. 800ed66: ee67 7a27 vmul.f32 s15, s14, s15
  34311. 800ed6a: edc7 7a07 vstr s15, [r7, #28]
  34312. break;
  34313. 800ed6e: e021 b.n 800edb4 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34314. default:
  34315. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34316. 800ed70: 697b ldr r3, [r7, #20]
  34317. 800ed72: ee07 3a90 vmov s15, r3
  34318. 800ed76: eef8 7a67 vcvt.f32.u32 s15, s15
  34319. 800ed7a: eddf 6a3d vldr s13, [pc, #244] @ 800ee70 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34320. 800ed7e: ee86 7aa7 vdiv.f32 s14, s13, s15
  34321. 800ed82: 4b37 ldr r3, [pc, #220] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34322. 800ed84: 6c1b ldr r3, [r3, #64] @ 0x40
  34323. 800ed86: f3c3 0308 ubfx r3, r3, #0, #9
  34324. 800ed8a: ee07 3a90 vmov s15, r3
  34325. 800ed8e: eef8 6a67 vcvt.f32.u32 s13, s15
  34326. 800ed92: ed97 6a03 vldr s12, [r7, #12]
  34327. 800ed96: eddf 5a34 vldr s11, [pc, #208] @ 800ee68 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34328. 800ed9a: eec6 7a25 vdiv.f32 s15, s12, s11
  34329. 800ed9e: ee76 7aa7 vadd.f32 s15, s13, s15
  34330. 800eda2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34331. 800eda6: ee77 7aa6 vadd.f32 s15, s15, s13
  34332. 800edaa: ee67 7a27 vmul.f32 s15, s14, s15
  34333. 800edae: edc7 7a07 vstr s15, [r7, #28]
  34334. break;
  34335. 800edb2: bf00 nop
  34336. }
  34337. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  34338. 800edb4: 4b2a ldr r3, [pc, #168] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34339. 800edb6: 6c1b ldr r3, [r3, #64] @ 0x40
  34340. 800edb8: 0a5b lsrs r3, r3, #9
  34341. 800edba: f003 037f and.w r3, r3, #127 @ 0x7f
  34342. 800edbe: ee07 3a90 vmov s15, r3
  34343. 800edc2: eef8 7a67 vcvt.f32.u32 s15, s15
  34344. 800edc6: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34345. 800edca: ee37 7a87 vadd.f32 s14, s15, s14
  34346. 800edce: edd7 6a07 vldr s13, [r7, #28]
  34347. 800edd2: eec6 7a87 vdiv.f32 s15, s13, s14
  34348. 800edd6: eefc 7ae7 vcvt.u32.f32 s15, s15
  34349. 800edda: ee17 2a90 vmov r2, s15
  34350. 800edde: 687b ldr r3, [r7, #4]
  34351. 800ede0: 601a str r2, [r3, #0]
  34352. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  34353. 800ede2: 4b1f ldr r3, [pc, #124] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34354. 800ede4: 6c1b ldr r3, [r3, #64] @ 0x40
  34355. 800ede6: 0c1b lsrs r3, r3, #16
  34356. 800ede8: f003 037f and.w r3, r3, #127 @ 0x7f
  34357. 800edec: ee07 3a90 vmov s15, r3
  34358. 800edf0: eef8 7a67 vcvt.f32.u32 s15, s15
  34359. 800edf4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34360. 800edf8: ee37 7a87 vadd.f32 s14, s15, s14
  34361. 800edfc: edd7 6a07 vldr s13, [r7, #28]
  34362. 800ee00: eec6 7a87 vdiv.f32 s15, s13, s14
  34363. 800ee04: eefc 7ae7 vcvt.u32.f32 s15, s15
  34364. 800ee08: ee17 2a90 vmov r2, s15
  34365. 800ee0c: 687b ldr r3, [r7, #4]
  34366. 800ee0e: 605a str r2, [r3, #4]
  34367. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  34368. 800ee10: 4b13 ldr r3, [pc, #76] @ (800ee60 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34369. 800ee12: 6c1b ldr r3, [r3, #64] @ 0x40
  34370. 800ee14: 0e1b lsrs r3, r3, #24
  34371. 800ee16: f003 037f and.w r3, r3, #127 @ 0x7f
  34372. 800ee1a: ee07 3a90 vmov s15, r3
  34373. 800ee1e: eef8 7a67 vcvt.f32.u32 s15, s15
  34374. 800ee22: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34375. 800ee26: ee37 7a87 vadd.f32 s14, s15, s14
  34376. 800ee2a: edd7 6a07 vldr s13, [r7, #28]
  34377. 800ee2e: eec6 7a87 vdiv.f32 s15, s13, s14
  34378. 800ee32: eefc 7ae7 vcvt.u32.f32 s15, s15
  34379. 800ee36: ee17 2a90 vmov r2, s15
  34380. 800ee3a: 687b ldr r3, [r7, #4]
  34381. 800ee3c: 609a str r2, [r3, #8]
  34382. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34383. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34384. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34385. }
  34386. }
  34387. 800ee3e: e008 b.n 800ee52 <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  34388. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34389. 800ee40: 687b ldr r3, [r7, #4]
  34390. 800ee42: 2200 movs r2, #0
  34391. 800ee44: 601a str r2, [r3, #0]
  34392. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34393. 800ee46: 687b ldr r3, [r7, #4]
  34394. 800ee48: 2200 movs r2, #0
  34395. 800ee4a: 605a str r2, [r3, #4]
  34396. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34397. 800ee4c: 687b ldr r3, [r7, #4]
  34398. 800ee4e: 2200 movs r2, #0
  34399. 800ee50: 609a str r2, [r3, #8]
  34400. }
  34401. 800ee52: bf00 nop
  34402. 800ee54: 3724 adds r7, #36 @ 0x24
  34403. 800ee56: 46bd mov sp, r7
  34404. 800ee58: f85d 7b04 ldr.w r7, [sp], #4
  34405. 800ee5c: 4770 bx lr
  34406. 800ee5e: bf00 nop
  34407. 800ee60: 58024400 .word 0x58024400
  34408. 800ee64: 03d09000 .word 0x03d09000
  34409. 800ee68: 46000000 .word 0x46000000
  34410. 800ee6c: 4c742400 .word 0x4c742400
  34411. 800ee70: 4a742400 .word 0x4a742400
  34412. 800ee74: 4bbebc20 .word 0x4bbebc20
  34413. 0800ee78 <HAL_RCCEx_GetPLL1ClockFreq>:
  34414. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  34415. * @param PLL1_Clocks structure.
  34416. * @retval None
  34417. */
  34418. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  34419. {
  34420. 800ee78: b480 push {r7}
  34421. 800ee7a: b089 sub sp, #36 @ 0x24
  34422. 800ee7c: af00 add r7, sp, #0
  34423. 800ee7e: 6078 str r0, [r7, #4]
  34424. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  34425. float_t fracn1, pll1vco;
  34426. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34427. 800ee80: 4ba0 ldr r3, [pc, #640] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34428. 800ee82: 6a9b ldr r3, [r3, #40] @ 0x28
  34429. 800ee84: f003 0303 and.w r3, r3, #3
  34430. 800ee88: 61bb str r3, [r7, #24]
  34431. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  34432. 800ee8a: 4b9e ldr r3, [pc, #632] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34433. 800ee8c: 6a9b ldr r3, [r3, #40] @ 0x28
  34434. 800ee8e: 091b lsrs r3, r3, #4
  34435. 800ee90: f003 033f and.w r3, r3, #63 @ 0x3f
  34436. 800ee94: 617b str r3, [r7, #20]
  34437. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  34438. 800ee96: 4b9b ldr r3, [pc, #620] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34439. 800ee98: 6adb ldr r3, [r3, #44] @ 0x2c
  34440. 800ee9a: f003 0301 and.w r3, r3, #1
  34441. 800ee9e: 613b str r3, [r7, #16]
  34442. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  34443. 800eea0: 4b98 ldr r3, [pc, #608] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34444. 800eea2: 6b5b ldr r3, [r3, #52] @ 0x34
  34445. 800eea4: 08db lsrs r3, r3, #3
  34446. 800eea6: f3c3 030c ubfx r3, r3, #0, #13
  34447. 800eeaa: 693a ldr r2, [r7, #16]
  34448. 800eeac: fb02 f303 mul.w r3, r2, r3
  34449. 800eeb0: ee07 3a90 vmov s15, r3
  34450. 800eeb4: eef8 7a67 vcvt.f32.u32 s15, s15
  34451. 800eeb8: edc7 7a03 vstr s15, [r7, #12]
  34452. if (pll1m != 0U)
  34453. 800eebc: 697b ldr r3, [r7, #20]
  34454. 800eebe: 2b00 cmp r3, #0
  34455. 800eec0: f000 8111 beq.w 800f0e6 <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  34456. {
  34457. switch (pllsource)
  34458. 800eec4: 69bb ldr r3, [r7, #24]
  34459. 800eec6: 2b02 cmp r3, #2
  34460. 800eec8: f000 8083 beq.w 800efd2 <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  34461. 800eecc: 69bb ldr r3, [r7, #24]
  34462. 800eece: 2b02 cmp r3, #2
  34463. 800eed0: f200 80a1 bhi.w 800f016 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34464. 800eed4: 69bb ldr r3, [r7, #24]
  34465. 800eed6: 2b00 cmp r3, #0
  34466. 800eed8: d003 beq.n 800eee2 <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  34467. 800eeda: 69bb ldr r3, [r7, #24]
  34468. 800eedc: 2b01 cmp r3, #1
  34469. 800eede: d056 beq.n 800ef8e <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  34470. 800eee0: e099 b.n 800f016 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34471. {
  34472. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34473. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34474. 800eee2: 4b88 ldr r3, [pc, #544] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34475. 800eee4: 681b ldr r3, [r3, #0]
  34476. 800eee6: f003 0320 and.w r3, r3, #32
  34477. 800eeea: 2b00 cmp r3, #0
  34478. 800eeec: d02d beq.n 800ef4a <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  34479. {
  34480. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34481. 800eeee: 4b85 ldr r3, [pc, #532] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34482. 800eef0: 681b ldr r3, [r3, #0]
  34483. 800eef2: 08db lsrs r3, r3, #3
  34484. 800eef4: f003 0303 and.w r3, r3, #3
  34485. 800eef8: 4a83 ldr r2, [pc, #524] @ (800f108 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  34486. 800eefa: fa22 f303 lsr.w r3, r2, r3
  34487. 800eefe: 60bb str r3, [r7, #8]
  34488. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34489. 800ef00: 68bb ldr r3, [r7, #8]
  34490. 800ef02: ee07 3a90 vmov s15, r3
  34491. 800ef06: eef8 6a67 vcvt.f32.u32 s13, s15
  34492. 800ef0a: 697b ldr r3, [r7, #20]
  34493. 800ef0c: ee07 3a90 vmov s15, r3
  34494. 800ef10: eef8 7a67 vcvt.f32.u32 s15, s15
  34495. 800ef14: ee86 7aa7 vdiv.f32 s14, s13, s15
  34496. 800ef18: 4b7a ldr r3, [pc, #488] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34497. 800ef1a: 6b1b ldr r3, [r3, #48] @ 0x30
  34498. 800ef1c: f3c3 0308 ubfx r3, r3, #0, #9
  34499. 800ef20: ee07 3a90 vmov s15, r3
  34500. 800ef24: eef8 6a67 vcvt.f32.u32 s13, s15
  34501. 800ef28: ed97 6a03 vldr s12, [r7, #12]
  34502. 800ef2c: eddf 5a77 vldr s11, [pc, #476] @ 800f10c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34503. 800ef30: eec6 7a25 vdiv.f32 s15, s12, s11
  34504. 800ef34: ee76 7aa7 vadd.f32 s15, s13, s15
  34505. 800ef38: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34506. 800ef3c: ee77 7aa6 vadd.f32 s15, s15, s13
  34507. 800ef40: ee67 7a27 vmul.f32 s15, s14, s15
  34508. 800ef44: edc7 7a07 vstr s15, [r7, #28]
  34509. }
  34510. else
  34511. {
  34512. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34513. }
  34514. break;
  34515. 800ef48: e087 b.n 800f05a <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34516. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34517. 800ef4a: 697b ldr r3, [r7, #20]
  34518. 800ef4c: ee07 3a90 vmov s15, r3
  34519. 800ef50: eef8 7a67 vcvt.f32.u32 s15, s15
  34520. 800ef54: eddf 6a6e vldr s13, [pc, #440] @ 800f110 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34521. 800ef58: ee86 7aa7 vdiv.f32 s14, s13, s15
  34522. 800ef5c: 4b69 ldr r3, [pc, #420] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34523. 800ef5e: 6b1b ldr r3, [r3, #48] @ 0x30
  34524. 800ef60: f3c3 0308 ubfx r3, r3, #0, #9
  34525. 800ef64: ee07 3a90 vmov s15, r3
  34526. 800ef68: eef8 6a67 vcvt.f32.u32 s13, s15
  34527. 800ef6c: ed97 6a03 vldr s12, [r7, #12]
  34528. 800ef70: eddf 5a66 vldr s11, [pc, #408] @ 800f10c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34529. 800ef74: eec6 7a25 vdiv.f32 s15, s12, s11
  34530. 800ef78: ee76 7aa7 vadd.f32 s15, s13, s15
  34531. 800ef7c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34532. 800ef80: ee77 7aa6 vadd.f32 s15, s15, s13
  34533. 800ef84: ee67 7a27 vmul.f32 s15, s14, s15
  34534. 800ef88: edc7 7a07 vstr s15, [r7, #28]
  34535. break;
  34536. 800ef8c: e065 b.n 800f05a <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34537. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34538. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34539. 800ef8e: 697b ldr r3, [r7, #20]
  34540. 800ef90: ee07 3a90 vmov s15, r3
  34541. 800ef94: eef8 7a67 vcvt.f32.u32 s15, s15
  34542. 800ef98: eddf 6a5e vldr s13, [pc, #376] @ 800f114 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  34543. 800ef9c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34544. 800efa0: 4b58 ldr r3, [pc, #352] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34545. 800efa2: 6b1b ldr r3, [r3, #48] @ 0x30
  34546. 800efa4: f3c3 0308 ubfx r3, r3, #0, #9
  34547. 800efa8: ee07 3a90 vmov s15, r3
  34548. 800efac: eef8 6a67 vcvt.f32.u32 s13, s15
  34549. 800efb0: ed97 6a03 vldr s12, [r7, #12]
  34550. 800efb4: eddf 5a55 vldr s11, [pc, #340] @ 800f10c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34551. 800efb8: eec6 7a25 vdiv.f32 s15, s12, s11
  34552. 800efbc: ee76 7aa7 vadd.f32 s15, s13, s15
  34553. 800efc0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34554. 800efc4: ee77 7aa6 vadd.f32 s15, s15, s13
  34555. 800efc8: ee67 7a27 vmul.f32 s15, s14, s15
  34556. 800efcc: edc7 7a07 vstr s15, [r7, #28]
  34557. break;
  34558. 800efd0: e043 b.n 800f05a <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34559. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34560. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34561. 800efd2: 697b ldr r3, [r7, #20]
  34562. 800efd4: ee07 3a90 vmov s15, r3
  34563. 800efd8: eef8 7a67 vcvt.f32.u32 s15, s15
  34564. 800efdc: eddf 6a4e vldr s13, [pc, #312] @ 800f118 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  34565. 800efe0: ee86 7aa7 vdiv.f32 s14, s13, s15
  34566. 800efe4: 4b47 ldr r3, [pc, #284] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34567. 800efe6: 6b1b ldr r3, [r3, #48] @ 0x30
  34568. 800efe8: f3c3 0308 ubfx r3, r3, #0, #9
  34569. 800efec: ee07 3a90 vmov s15, r3
  34570. 800eff0: eef8 6a67 vcvt.f32.u32 s13, s15
  34571. 800eff4: ed97 6a03 vldr s12, [r7, #12]
  34572. 800eff8: eddf 5a44 vldr s11, [pc, #272] @ 800f10c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34573. 800effc: eec6 7a25 vdiv.f32 s15, s12, s11
  34574. 800f000: ee76 7aa7 vadd.f32 s15, s13, s15
  34575. 800f004: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34576. 800f008: ee77 7aa6 vadd.f32 s15, s15, s13
  34577. 800f00c: ee67 7a27 vmul.f32 s15, s14, s15
  34578. 800f010: edc7 7a07 vstr s15, [r7, #28]
  34579. break;
  34580. 800f014: e021 b.n 800f05a <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34581. default:
  34582. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34583. 800f016: 697b ldr r3, [r7, #20]
  34584. 800f018: ee07 3a90 vmov s15, r3
  34585. 800f01c: eef8 7a67 vcvt.f32.u32 s15, s15
  34586. 800f020: eddf 6a3b vldr s13, [pc, #236] @ 800f110 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34587. 800f024: ee86 7aa7 vdiv.f32 s14, s13, s15
  34588. 800f028: 4b36 ldr r3, [pc, #216] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34589. 800f02a: 6b1b ldr r3, [r3, #48] @ 0x30
  34590. 800f02c: f3c3 0308 ubfx r3, r3, #0, #9
  34591. 800f030: ee07 3a90 vmov s15, r3
  34592. 800f034: eef8 6a67 vcvt.f32.u32 s13, s15
  34593. 800f038: ed97 6a03 vldr s12, [r7, #12]
  34594. 800f03c: eddf 5a33 vldr s11, [pc, #204] @ 800f10c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34595. 800f040: eec6 7a25 vdiv.f32 s15, s12, s11
  34596. 800f044: ee76 7aa7 vadd.f32 s15, s13, s15
  34597. 800f048: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34598. 800f04c: ee77 7aa6 vadd.f32 s15, s15, s13
  34599. 800f050: ee67 7a27 vmul.f32 s15, s14, s15
  34600. 800f054: edc7 7a07 vstr s15, [r7, #28]
  34601. break;
  34602. 800f058: bf00 nop
  34603. }
  34604. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  34605. 800f05a: 4b2a ldr r3, [pc, #168] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34606. 800f05c: 6b1b ldr r3, [r3, #48] @ 0x30
  34607. 800f05e: 0a5b lsrs r3, r3, #9
  34608. 800f060: f003 037f and.w r3, r3, #127 @ 0x7f
  34609. 800f064: ee07 3a90 vmov s15, r3
  34610. 800f068: eef8 7a67 vcvt.f32.u32 s15, s15
  34611. 800f06c: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34612. 800f070: ee37 7a87 vadd.f32 s14, s15, s14
  34613. 800f074: edd7 6a07 vldr s13, [r7, #28]
  34614. 800f078: eec6 7a87 vdiv.f32 s15, s13, s14
  34615. 800f07c: eefc 7ae7 vcvt.u32.f32 s15, s15
  34616. 800f080: ee17 2a90 vmov r2, s15
  34617. 800f084: 687b ldr r3, [r7, #4]
  34618. 800f086: 601a str r2, [r3, #0]
  34619. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  34620. 800f088: 4b1e ldr r3, [pc, #120] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34621. 800f08a: 6b1b ldr r3, [r3, #48] @ 0x30
  34622. 800f08c: 0c1b lsrs r3, r3, #16
  34623. 800f08e: f003 037f and.w r3, r3, #127 @ 0x7f
  34624. 800f092: ee07 3a90 vmov s15, r3
  34625. 800f096: eef8 7a67 vcvt.f32.u32 s15, s15
  34626. 800f09a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34627. 800f09e: ee37 7a87 vadd.f32 s14, s15, s14
  34628. 800f0a2: edd7 6a07 vldr s13, [r7, #28]
  34629. 800f0a6: eec6 7a87 vdiv.f32 s15, s13, s14
  34630. 800f0aa: eefc 7ae7 vcvt.u32.f32 s15, s15
  34631. 800f0ae: ee17 2a90 vmov r2, s15
  34632. 800f0b2: 687b ldr r3, [r7, #4]
  34633. 800f0b4: 605a str r2, [r3, #4]
  34634. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  34635. 800f0b6: 4b13 ldr r3, [pc, #76] @ (800f104 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34636. 800f0b8: 6b1b ldr r3, [r3, #48] @ 0x30
  34637. 800f0ba: 0e1b lsrs r3, r3, #24
  34638. 800f0bc: f003 037f and.w r3, r3, #127 @ 0x7f
  34639. 800f0c0: ee07 3a90 vmov s15, r3
  34640. 800f0c4: eef8 7a67 vcvt.f32.u32 s15, s15
  34641. 800f0c8: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34642. 800f0cc: ee37 7a87 vadd.f32 s14, s15, s14
  34643. 800f0d0: edd7 6a07 vldr s13, [r7, #28]
  34644. 800f0d4: eec6 7a87 vdiv.f32 s15, s13, s14
  34645. 800f0d8: eefc 7ae7 vcvt.u32.f32 s15, s15
  34646. 800f0dc: ee17 2a90 vmov r2, s15
  34647. 800f0e0: 687b ldr r3, [r7, #4]
  34648. 800f0e2: 609a str r2, [r3, #8]
  34649. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34650. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34651. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34652. }
  34653. }
  34654. 800f0e4: e008 b.n 800f0f8 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  34655. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34656. 800f0e6: 687b ldr r3, [r7, #4]
  34657. 800f0e8: 2200 movs r2, #0
  34658. 800f0ea: 601a str r2, [r3, #0]
  34659. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34660. 800f0ec: 687b ldr r3, [r7, #4]
  34661. 800f0ee: 2200 movs r2, #0
  34662. 800f0f0: 605a str r2, [r3, #4]
  34663. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34664. 800f0f2: 687b ldr r3, [r7, #4]
  34665. 800f0f4: 2200 movs r2, #0
  34666. 800f0f6: 609a str r2, [r3, #8]
  34667. }
  34668. 800f0f8: bf00 nop
  34669. 800f0fa: 3724 adds r7, #36 @ 0x24
  34670. 800f0fc: 46bd mov sp, r7
  34671. 800f0fe: f85d 7b04 ldr.w r7, [sp], #4
  34672. 800f102: 4770 bx lr
  34673. 800f104: 58024400 .word 0x58024400
  34674. 800f108: 03d09000 .word 0x03d09000
  34675. 800f10c: 46000000 .word 0x46000000
  34676. 800f110: 4c742400 .word 0x4c742400
  34677. 800f114: 4a742400 .word 0x4a742400
  34678. 800f118: 4bbebc20 .word 0x4bbebc20
  34679. 0800f11c <RCCEx_PLL2_Config>:
  34680. * @note PLL2 is temporary disabled to apply new parameters
  34681. *
  34682. * @retval HAL status
  34683. */
  34684. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  34685. {
  34686. 800f11c: b580 push {r7, lr}
  34687. 800f11e: b084 sub sp, #16
  34688. 800f120: af00 add r7, sp, #0
  34689. 800f122: 6078 str r0, [r7, #4]
  34690. 800f124: 6039 str r1, [r7, #0]
  34691. uint32_t tickstart;
  34692. HAL_StatusTypeDef status = HAL_OK;
  34693. 800f126: 2300 movs r3, #0
  34694. 800f128: 73fb strb r3, [r7, #15]
  34695. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  34696. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  34697. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  34698. /* Check that PLL2 OSC clock source is already set */
  34699. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34700. 800f12a: 4b53 ldr r3, [pc, #332] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34701. 800f12c: 6a9b ldr r3, [r3, #40] @ 0x28
  34702. 800f12e: f003 0303 and.w r3, r3, #3
  34703. 800f132: 2b03 cmp r3, #3
  34704. 800f134: d101 bne.n 800f13a <RCCEx_PLL2_Config+0x1e>
  34705. {
  34706. return HAL_ERROR;
  34707. 800f136: 2301 movs r3, #1
  34708. 800f138: e099 b.n 800f26e <RCCEx_PLL2_Config+0x152>
  34709. else
  34710. {
  34711. /* Disable PLL2. */
  34712. __HAL_RCC_PLL2_DISABLE();
  34713. 800f13a: 4b4f ldr r3, [pc, #316] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34714. 800f13c: 681b ldr r3, [r3, #0]
  34715. 800f13e: 4a4e ldr r2, [pc, #312] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34716. 800f140: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34717. 800f144: 6013 str r3, [r2, #0]
  34718. /* Get Start Tick*/
  34719. tickstart = HAL_GetTick();
  34720. 800f146: f7f6 fead bl 8005ea4 <HAL_GetTick>
  34721. 800f14a: 60b8 str r0, [r7, #8]
  34722. /* Wait till PLL is disabled */
  34723. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34724. 800f14c: e008 b.n 800f160 <RCCEx_PLL2_Config+0x44>
  34725. {
  34726. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34727. 800f14e: f7f6 fea9 bl 8005ea4 <HAL_GetTick>
  34728. 800f152: 4602 mov r2, r0
  34729. 800f154: 68bb ldr r3, [r7, #8]
  34730. 800f156: 1ad3 subs r3, r2, r3
  34731. 800f158: 2b02 cmp r3, #2
  34732. 800f15a: d901 bls.n 800f160 <RCCEx_PLL2_Config+0x44>
  34733. {
  34734. return HAL_TIMEOUT;
  34735. 800f15c: 2303 movs r3, #3
  34736. 800f15e: e086 b.n 800f26e <RCCEx_PLL2_Config+0x152>
  34737. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34738. 800f160: 4b45 ldr r3, [pc, #276] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34739. 800f162: 681b ldr r3, [r3, #0]
  34740. 800f164: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34741. 800f168: 2b00 cmp r3, #0
  34742. 800f16a: d1f0 bne.n 800f14e <RCCEx_PLL2_Config+0x32>
  34743. }
  34744. }
  34745. /* Configure PLL2 multiplication and division factors. */
  34746. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  34747. 800f16c: 4b42 ldr r3, [pc, #264] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34748. 800f16e: 6a9b ldr r3, [r3, #40] @ 0x28
  34749. 800f170: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  34750. 800f174: 687b ldr r3, [r7, #4]
  34751. 800f176: 681b ldr r3, [r3, #0]
  34752. 800f178: 031b lsls r3, r3, #12
  34753. 800f17a: 493f ldr r1, [pc, #252] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34754. 800f17c: 4313 orrs r3, r2
  34755. 800f17e: 628b str r3, [r1, #40] @ 0x28
  34756. 800f180: 687b ldr r3, [r7, #4]
  34757. 800f182: 685b ldr r3, [r3, #4]
  34758. 800f184: 3b01 subs r3, #1
  34759. 800f186: f3c3 0208 ubfx r2, r3, #0, #9
  34760. 800f18a: 687b ldr r3, [r7, #4]
  34761. 800f18c: 689b ldr r3, [r3, #8]
  34762. 800f18e: 3b01 subs r3, #1
  34763. 800f190: 025b lsls r3, r3, #9
  34764. 800f192: b29b uxth r3, r3
  34765. 800f194: 431a orrs r2, r3
  34766. 800f196: 687b ldr r3, [r7, #4]
  34767. 800f198: 68db ldr r3, [r3, #12]
  34768. 800f19a: 3b01 subs r3, #1
  34769. 800f19c: 041b lsls r3, r3, #16
  34770. 800f19e: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34771. 800f1a2: 431a orrs r2, r3
  34772. 800f1a4: 687b ldr r3, [r7, #4]
  34773. 800f1a6: 691b ldr r3, [r3, #16]
  34774. 800f1a8: 3b01 subs r3, #1
  34775. 800f1aa: 061b lsls r3, r3, #24
  34776. 800f1ac: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34777. 800f1b0: 4931 ldr r1, [pc, #196] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34778. 800f1b2: 4313 orrs r3, r2
  34779. 800f1b4: 638b str r3, [r1, #56] @ 0x38
  34780. pll2->PLL2P,
  34781. pll2->PLL2Q,
  34782. pll2->PLL2R);
  34783. /* Select PLL2 input reference frequency range: VCI */
  34784. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  34785. 800f1b6: 4b30 ldr r3, [pc, #192] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34786. 800f1b8: 6adb ldr r3, [r3, #44] @ 0x2c
  34787. 800f1ba: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  34788. 800f1be: 687b ldr r3, [r7, #4]
  34789. 800f1c0: 695b ldr r3, [r3, #20]
  34790. 800f1c2: 492d ldr r1, [pc, #180] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34791. 800f1c4: 4313 orrs r3, r2
  34792. 800f1c6: 62cb str r3, [r1, #44] @ 0x2c
  34793. /* Select PLL2 output frequency range : VCO */
  34794. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  34795. 800f1c8: 4b2b ldr r3, [pc, #172] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34796. 800f1ca: 6adb ldr r3, [r3, #44] @ 0x2c
  34797. 800f1cc: f023 0220 bic.w r2, r3, #32
  34798. 800f1d0: 687b ldr r3, [r7, #4]
  34799. 800f1d2: 699b ldr r3, [r3, #24]
  34800. 800f1d4: 4928 ldr r1, [pc, #160] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34801. 800f1d6: 4313 orrs r3, r2
  34802. 800f1d8: 62cb str r3, [r1, #44] @ 0x2c
  34803. /* Disable PLL2FRACN . */
  34804. __HAL_RCC_PLL2FRACN_DISABLE();
  34805. 800f1da: 4b27 ldr r3, [pc, #156] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34806. 800f1dc: 6adb ldr r3, [r3, #44] @ 0x2c
  34807. 800f1de: 4a26 ldr r2, [pc, #152] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34808. 800f1e0: f023 0310 bic.w r3, r3, #16
  34809. 800f1e4: 62d3 str r3, [r2, #44] @ 0x2c
  34810. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  34811. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  34812. 800f1e6: 4b24 ldr r3, [pc, #144] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34813. 800f1e8: 6bda ldr r2, [r3, #60] @ 0x3c
  34814. 800f1ea: 4b24 ldr r3, [pc, #144] @ (800f27c <RCCEx_PLL2_Config+0x160>)
  34815. 800f1ec: 4013 ands r3, r2
  34816. 800f1ee: 687a ldr r2, [r7, #4]
  34817. 800f1f0: 69d2 ldr r2, [r2, #28]
  34818. 800f1f2: 00d2 lsls r2, r2, #3
  34819. 800f1f4: 4920 ldr r1, [pc, #128] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34820. 800f1f6: 4313 orrs r3, r2
  34821. 800f1f8: 63cb str r3, [r1, #60] @ 0x3c
  34822. /* Enable PLL2FRACN . */
  34823. __HAL_RCC_PLL2FRACN_ENABLE();
  34824. 800f1fa: 4b1f ldr r3, [pc, #124] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34825. 800f1fc: 6adb ldr r3, [r3, #44] @ 0x2c
  34826. 800f1fe: 4a1e ldr r2, [pc, #120] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34827. 800f200: f043 0310 orr.w r3, r3, #16
  34828. 800f204: 62d3 str r3, [r2, #44] @ 0x2c
  34829. /* Enable the PLL2 clock output */
  34830. if (Divider == DIVIDER_P_UPDATE)
  34831. 800f206: 683b ldr r3, [r7, #0]
  34832. 800f208: 2b00 cmp r3, #0
  34833. 800f20a: d106 bne.n 800f21a <RCCEx_PLL2_Config+0xfe>
  34834. {
  34835. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  34836. 800f20c: 4b1a ldr r3, [pc, #104] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34837. 800f20e: 6adb ldr r3, [r3, #44] @ 0x2c
  34838. 800f210: 4a19 ldr r2, [pc, #100] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34839. 800f212: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  34840. 800f216: 62d3 str r3, [r2, #44] @ 0x2c
  34841. 800f218: e00f b.n 800f23a <RCCEx_PLL2_Config+0x11e>
  34842. }
  34843. else if (Divider == DIVIDER_Q_UPDATE)
  34844. 800f21a: 683b ldr r3, [r7, #0]
  34845. 800f21c: 2b01 cmp r3, #1
  34846. 800f21e: d106 bne.n 800f22e <RCCEx_PLL2_Config+0x112>
  34847. {
  34848. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  34849. 800f220: 4b15 ldr r3, [pc, #84] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34850. 800f222: 6adb ldr r3, [r3, #44] @ 0x2c
  34851. 800f224: 4a14 ldr r2, [pc, #80] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34852. 800f226: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  34853. 800f22a: 62d3 str r3, [r2, #44] @ 0x2c
  34854. 800f22c: e005 b.n 800f23a <RCCEx_PLL2_Config+0x11e>
  34855. }
  34856. else
  34857. {
  34858. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  34859. 800f22e: 4b12 ldr r3, [pc, #72] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34860. 800f230: 6adb ldr r3, [r3, #44] @ 0x2c
  34861. 800f232: 4a11 ldr r2, [pc, #68] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34862. 800f234: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  34863. 800f238: 62d3 str r3, [r2, #44] @ 0x2c
  34864. }
  34865. /* Enable PLL2. */
  34866. __HAL_RCC_PLL2_ENABLE();
  34867. 800f23a: 4b0f ldr r3, [pc, #60] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34868. 800f23c: 681b ldr r3, [r3, #0]
  34869. 800f23e: 4a0e ldr r2, [pc, #56] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34870. 800f240: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  34871. 800f244: 6013 str r3, [r2, #0]
  34872. /* Get Start Tick*/
  34873. tickstart = HAL_GetTick();
  34874. 800f246: f7f6 fe2d bl 8005ea4 <HAL_GetTick>
  34875. 800f24a: 60b8 str r0, [r7, #8]
  34876. /* Wait till PLL2 is ready */
  34877. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34878. 800f24c: e008 b.n 800f260 <RCCEx_PLL2_Config+0x144>
  34879. {
  34880. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34881. 800f24e: f7f6 fe29 bl 8005ea4 <HAL_GetTick>
  34882. 800f252: 4602 mov r2, r0
  34883. 800f254: 68bb ldr r3, [r7, #8]
  34884. 800f256: 1ad3 subs r3, r2, r3
  34885. 800f258: 2b02 cmp r3, #2
  34886. 800f25a: d901 bls.n 800f260 <RCCEx_PLL2_Config+0x144>
  34887. {
  34888. return HAL_TIMEOUT;
  34889. 800f25c: 2303 movs r3, #3
  34890. 800f25e: e006 b.n 800f26e <RCCEx_PLL2_Config+0x152>
  34891. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34892. 800f260: 4b05 ldr r3, [pc, #20] @ (800f278 <RCCEx_PLL2_Config+0x15c>)
  34893. 800f262: 681b ldr r3, [r3, #0]
  34894. 800f264: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34895. 800f268: 2b00 cmp r3, #0
  34896. 800f26a: d0f0 beq.n 800f24e <RCCEx_PLL2_Config+0x132>
  34897. }
  34898. }
  34899. return status;
  34900. 800f26c: 7bfb ldrb r3, [r7, #15]
  34901. }
  34902. 800f26e: 4618 mov r0, r3
  34903. 800f270: 3710 adds r7, #16
  34904. 800f272: 46bd mov sp, r7
  34905. 800f274: bd80 pop {r7, pc}
  34906. 800f276: bf00 nop
  34907. 800f278: 58024400 .word 0x58024400
  34908. 800f27c: ffff0007 .word 0xffff0007
  34909. 0800f280 <RCCEx_PLL3_Config>:
  34910. * @note PLL3 is temporary disabled to apply new parameters
  34911. *
  34912. * @retval HAL status
  34913. */
  34914. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  34915. {
  34916. 800f280: b580 push {r7, lr}
  34917. 800f282: b084 sub sp, #16
  34918. 800f284: af00 add r7, sp, #0
  34919. 800f286: 6078 str r0, [r7, #4]
  34920. 800f288: 6039 str r1, [r7, #0]
  34921. uint32_t tickstart;
  34922. HAL_StatusTypeDef status = HAL_OK;
  34923. 800f28a: 2300 movs r3, #0
  34924. 800f28c: 73fb strb r3, [r7, #15]
  34925. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  34926. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  34927. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  34928. /* Check that PLL3 OSC clock source is already set */
  34929. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34930. 800f28e: 4b53 ldr r3, [pc, #332] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34931. 800f290: 6a9b ldr r3, [r3, #40] @ 0x28
  34932. 800f292: f003 0303 and.w r3, r3, #3
  34933. 800f296: 2b03 cmp r3, #3
  34934. 800f298: d101 bne.n 800f29e <RCCEx_PLL3_Config+0x1e>
  34935. {
  34936. return HAL_ERROR;
  34937. 800f29a: 2301 movs r3, #1
  34938. 800f29c: e099 b.n 800f3d2 <RCCEx_PLL3_Config+0x152>
  34939. else
  34940. {
  34941. /* Disable PLL3. */
  34942. __HAL_RCC_PLL3_DISABLE();
  34943. 800f29e: 4b4f ldr r3, [pc, #316] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34944. 800f2a0: 681b ldr r3, [r3, #0]
  34945. 800f2a2: 4a4e ldr r2, [pc, #312] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34946. 800f2a4: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34947. 800f2a8: 6013 str r3, [r2, #0]
  34948. /* Get Start Tick*/
  34949. tickstart = HAL_GetTick();
  34950. 800f2aa: f7f6 fdfb bl 8005ea4 <HAL_GetTick>
  34951. 800f2ae: 60b8 str r0, [r7, #8]
  34952. /* Wait till PLL3 is ready */
  34953. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34954. 800f2b0: e008 b.n 800f2c4 <RCCEx_PLL3_Config+0x44>
  34955. {
  34956. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34957. 800f2b2: f7f6 fdf7 bl 8005ea4 <HAL_GetTick>
  34958. 800f2b6: 4602 mov r2, r0
  34959. 800f2b8: 68bb ldr r3, [r7, #8]
  34960. 800f2ba: 1ad3 subs r3, r2, r3
  34961. 800f2bc: 2b02 cmp r3, #2
  34962. 800f2be: d901 bls.n 800f2c4 <RCCEx_PLL3_Config+0x44>
  34963. {
  34964. return HAL_TIMEOUT;
  34965. 800f2c0: 2303 movs r3, #3
  34966. 800f2c2: e086 b.n 800f3d2 <RCCEx_PLL3_Config+0x152>
  34967. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34968. 800f2c4: 4b45 ldr r3, [pc, #276] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34969. 800f2c6: 681b ldr r3, [r3, #0]
  34970. 800f2c8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34971. 800f2cc: 2b00 cmp r3, #0
  34972. 800f2ce: d1f0 bne.n 800f2b2 <RCCEx_PLL3_Config+0x32>
  34973. }
  34974. }
  34975. /* Configure the PLL3 multiplication and division factors. */
  34976. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  34977. 800f2d0: 4b42 ldr r3, [pc, #264] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34978. 800f2d2: 6a9b ldr r3, [r3, #40] @ 0x28
  34979. 800f2d4: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  34980. 800f2d8: 687b ldr r3, [r7, #4]
  34981. 800f2da: 681b ldr r3, [r3, #0]
  34982. 800f2dc: 051b lsls r3, r3, #20
  34983. 800f2de: 493f ldr r1, [pc, #252] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  34984. 800f2e0: 4313 orrs r3, r2
  34985. 800f2e2: 628b str r3, [r1, #40] @ 0x28
  34986. 800f2e4: 687b ldr r3, [r7, #4]
  34987. 800f2e6: 685b ldr r3, [r3, #4]
  34988. 800f2e8: 3b01 subs r3, #1
  34989. 800f2ea: f3c3 0208 ubfx r2, r3, #0, #9
  34990. 800f2ee: 687b ldr r3, [r7, #4]
  34991. 800f2f0: 689b ldr r3, [r3, #8]
  34992. 800f2f2: 3b01 subs r3, #1
  34993. 800f2f4: 025b lsls r3, r3, #9
  34994. 800f2f6: b29b uxth r3, r3
  34995. 800f2f8: 431a orrs r2, r3
  34996. 800f2fa: 687b ldr r3, [r7, #4]
  34997. 800f2fc: 68db ldr r3, [r3, #12]
  34998. 800f2fe: 3b01 subs r3, #1
  34999. 800f300: 041b lsls r3, r3, #16
  35000. 800f302: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  35001. 800f306: 431a orrs r2, r3
  35002. 800f308: 687b ldr r3, [r7, #4]
  35003. 800f30a: 691b ldr r3, [r3, #16]
  35004. 800f30c: 3b01 subs r3, #1
  35005. 800f30e: 061b lsls r3, r3, #24
  35006. 800f310: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  35007. 800f314: 4931 ldr r1, [pc, #196] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35008. 800f316: 4313 orrs r3, r2
  35009. 800f318: 640b str r3, [r1, #64] @ 0x40
  35010. pll3->PLL3P,
  35011. pll3->PLL3Q,
  35012. pll3->PLL3R);
  35013. /* Select PLL3 input reference frequency range: VCI */
  35014. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  35015. 800f31a: 4b30 ldr r3, [pc, #192] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35016. 800f31c: 6adb ldr r3, [r3, #44] @ 0x2c
  35017. 800f31e: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  35018. 800f322: 687b ldr r3, [r7, #4]
  35019. 800f324: 695b ldr r3, [r3, #20]
  35020. 800f326: 492d ldr r1, [pc, #180] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35021. 800f328: 4313 orrs r3, r2
  35022. 800f32a: 62cb str r3, [r1, #44] @ 0x2c
  35023. /* Select PLL3 output frequency range : VCO */
  35024. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  35025. 800f32c: 4b2b ldr r3, [pc, #172] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35026. 800f32e: 6adb ldr r3, [r3, #44] @ 0x2c
  35027. 800f330: f423 7200 bic.w r2, r3, #512 @ 0x200
  35028. 800f334: 687b ldr r3, [r7, #4]
  35029. 800f336: 699b ldr r3, [r3, #24]
  35030. 800f338: 4928 ldr r1, [pc, #160] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35031. 800f33a: 4313 orrs r3, r2
  35032. 800f33c: 62cb str r3, [r1, #44] @ 0x2c
  35033. /* Disable PLL3FRACN . */
  35034. __HAL_RCC_PLL3FRACN_DISABLE();
  35035. 800f33e: 4b27 ldr r3, [pc, #156] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35036. 800f340: 6adb ldr r3, [r3, #44] @ 0x2c
  35037. 800f342: 4a26 ldr r2, [pc, #152] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35038. 800f344: f423 7380 bic.w r3, r3, #256 @ 0x100
  35039. 800f348: 62d3 str r3, [r2, #44] @ 0x2c
  35040. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  35041. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  35042. 800f34a: 4b24 ldr r3, [pc, #144] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35043. 800f34c: 6c5a ldr r2, [r3, #68] @ 0x44
  35044. 800f34e: 4b24 ldr r3, [pc, #144] @ (800f3e0 <RCCEx_PLL3_Config+0x160>)
  35045. 800f350: 4013 ands r3, r2
  35046. 800f352: 687a ldr r2, [r7, #4]
  35047. 800f354: 69d2 ldr r2, [r2, #28]
  35048. 800f356: 00d2 lsls r2, r2, #3
  35049. 800f358: 4920 ldr r1, [pc, #128] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35050. 800f35a: 4313 orrs r3, r2
  35051. 800f35c: 644b str r3, [r1, #68] @ 0x44
  35052. /* Enable PLL3FRACN . */
  35053. __HAL_RCC_PLL3FRACN_ENABLE();
  35054. 800f35e: 4b1f ldr r3, [pc, #124] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35055. 800f360: 6adb ldr r3, [r3, #44] @ 0x2c
  35056. 800f362: 4a1e ldr r2, [pc, #120] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35057. 800f364: f443 7380 orr.w r3, r3, #256 @ 0x100
  35058. 800f368: 62d3 str r3, [r2, #44] @ 0x2c
  35059. /* Enable the PLL3 clock output */
  35060. if (Divider == DIVIDER_P_UPDATE)
  35061. 800f36a: 683b ldr r3, [r7, #0]
  35062. 800f36c: 2b00 cmp r3, #0
  35063. 800f36e: d106 bne.n 800f37e <RCCEx_PLL3_Config+0xfe>
  35064. {
  35065. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  35066. 800f370: 4b1a ldr r3, [pc, #104] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35067. 800f372: 6adb ldr r3, [r3, #44] @ 0x2c
  35068. 800f374: 4a19 ldr r2, [pc, #100] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35069. 800f376: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  35070. 800f37a: 62d3 str r3, [r2, #44] @ 0x2c
  35071. 800f37c: e00f b.n 800f39e <RCCEx_PLL3_Config+0x11e>
  35072. }
  35073. else if (Divider == DIVIDER_Q_UPDATE)
  35074. 800f37e: 683b ldr r3, [r7, #0]
  35075. 800f380: 2b01 cmp r3, #1
  35076. 800f382: d106 bne.n 800f392 <RCCEx_PLL3_Config+0x112>
  35077. {
  35078. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  35079. 800f384: 4b15 ldr r3, [pc, #84] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35080. 800f386: 6adb ldr r3, [r3, #44] @ 0x2c
  35081. 800f388: 4a14 ldr r2, [pc, #80] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35082. 800f38a: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  35083. 800f38e: 62d3 str r3, [r2, #44] @ 0x2c
  35084. 800f390: e005 b.n 800f39e <RCCEx_PLL3_Config+0x11e>
  35085. }
  35086. else
  35087. {
  35088. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  35089. 800f392: 4b12 ldr r3, [pc, #72] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35090. 800f394: 6adb ldr r3, [r3, #44] @ 0x2c
  35091. 800f396: 4a11 ldr r2, [pc, #68] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35092. 800f398: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  35093. 800f39c: 62d3 str r3, [r2, #44] @ 0x2c
  35094. }
  35095. /* Enable PLL3. */
  35096. __HAL_RCC_PLL3_ENABLE();
  35097. 800f39e: 4b0f ldr r3, [pc, #60] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35098. 800f3a0: 681b ldr r3, [r3, #0]
  35099. 800f3a2: 4a0e ldr r2, [pc, #56] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35100. 800f3a4: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  35101. 800f3a8: 6013 str r3, [r2, #0]
  35102. /* Get Start Tick*/
  35103. tickstart = HAL_GetTick();
  35104. 800f3aa: f7f6 fd7b bl 8005ea4 <HAL_GetTick>
  35105. 800f3ae: 60b8 str r0, [r7, #8]
  35106. /* Wait till PLL3 is ready */
  35107. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35108. 800f3b0: e008 b.n 800f3c4 <RCCEx_PLL3_Config+0x144>
  35109. {
  35110. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  35111. 800f3b2: f7f6 fd77 bl 8005ea4 <HAL_GetTick>
  35112. 800f3b6: 4602 mov r2, r0
  35113. 800f3b8: 68bb ldr r3, [r7, #8]
  35114. 800f3ba: 1ad3 subs r3, r2, r3
  35115. 800f3bc: 2b02 cmp r3, #2
  35116. 800f3be: d901 bls.n 800f3c4 <RCCEx_PLL3_Config+0x144>
  35117. {
  35118. return HAL_TIMEOUT;
  35119. 800f3c0: 2303 movs r3, #3
  35120. 800f3c2: e006 b.n 800f3d2 <RCCEx_PLL3_Config+0x152>
  35121. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35122. 800f3c4: 4b05 ldr r3, [pc, #20] @ (800f3dc <RCCEx_PLL3_Config+0x15c>)
  35123. 800f3c6: 681b ldr r3, [r3, #0]
  35124. 800f3c8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  35125. 800f3cc: 2b00 cmp r3, #0
  35126. 800f3ce: d0f0 beq.n 800f3b2 <RCCEx_PLL3_Config+0x132>
  35127. }
  35128. }
  35129. return status;
  35130. 800f3d0: 7bfb ldrb r3, [r7, #15]
  35131. }
  35132. 800f3d2: 4618 mov r0, r3
  35133. 800f3d4: 3710 adds r7, #16
  35134. 800f3d6: 46bd mov sp, r7
  35135. 800f3d8: bd80 pop {r7, pc}
  35136. 800f3da: bf00 nop
  35137. 800f3dc: 58024400 .word 0x58024400
  35138. 800f3e0: ffff0007 .word 0xffff0007
  35139. 0800f3e4 <HAL_RNG_Init>:
  35140. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  35141. * the configuration information for RNG.
  35142. * @retval HAL status
  35143. */
  35144. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  35145. {
  35146. 800f3e4: b580 push {r7, lr}
  35147. 800f3e6: b084 sub sp, #16
  35148. 800f3e8: af00 add r7, sp, #0
  35149. 800f3ea: 6078 str r0, [r7, #4]
  35150. uint32_t tickstart;
  35151. /* Check the RNG handle allocation */
  35152. if (hrng == NULL)
  35153. 800f3ec: 687b ldr r3, [r7, #4]
  35154. 800f3ee: 2b00 cmp r3, #0
  35155. 800f3f0: d101 bne.n 800f3f6 <HAL_RNG_Init+0x12>
  35156. {
  35157. return HAL_ERROR;
  35158. 800f3f2: 2301 movs r3, #1
  35159. 800f3f4: e054 b.n 800f4a0 <HAL_RNG_Init+0xbc>
  35160. /* Init the low level hardware */
  35161. hrng->MspInitCallback(hrng);
  35162. }
  35163. #else
  35164. if (hrng->State == HAL_RNG_STATE_RESET)
  35165. 800f3f6: 687b ldr r3, [r7, #4]
  35166. 800f3f8: 7a5b ldrb r3, [r3, #9]
  35167. 800f3fa: b2db uxtb r3, r3
  35168. 800f3fc: 2b00 cmp r3, #0
  35169. 800f3fe: d105 bne.n 800f40c <HAL_RNG_Init+0x28>
  35170. {
  35171. /* Allocate lock resource and initialize it */
  35172. hrng->Lock = HAL_UNLOCKED;
  35173. 800f400: 687b ldr r3, [r7, #4]
  35174. 800f402: 2200 movs r2, #0
  35175. 800f404: 721a strb r2, [r3, #8]
  35176. /* Init the low level hardware */
  35177. HAL_RNG_MspInit(hrng);
  35178. 800f406: 6878 ldr r0, [r7, #4]
  35179. 800f408: f7f4 ff30 bl 800426c <HAL_RNG_MspInit>
  35180. }
  35181. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  35182. /* Change RNG peripheral state */
  35183. hrng->State = HAL_RNG_STATE_BUSY;
  35184. 800f40c: 687b ldr r3, [r7, #4]
  35185. 800f40e: 2202 movs r2, #2
  35186. 800f410: 725a strb r2, [r3, #9]
  35187. }
  35188. }
  35189. }
  35190. #else
  35191. /* Clock Error Detection Configuration */
  35192. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  35193. 800f412: 687b ldr r3, [r7, #4]
  35194. 800f414: 681b ldr r3, [r3, #0]
  35195. 800f416: 681b ldr r3, [r3, #0]
  35196. 800f418: f023 0120 bic.w r1, r3, #32
  35197. 800f41c: 687b ldr r3, [r7, #4]
  35198. 800f41e: 685a ldr r2, [r3, #4]
  35199. 800f420: 687b ldr r3, [r7, #4]
  35200. 800f422: 681b ldr r3, [r3, #0]
  35201. 800f424: 430a orrs r2, r1
  35202. 800f426: 601a str r2, [r3, #0]
  35203. #endif /* RNG_CR_CONDRST */
  35204. /* Enable the RNG Peripheral */
  35205. __HAL_RNG_ENABLE(hrng);
  35206. 800f428: 687b ldr r3, [r7, #4]
  35207. 800f42a: 681b ldr r3, [r3, #0]
  35208. 800f42c: 681a ldr r2, [r3, #0]
  35209. 800f42e: 687b ldr r3, [r7, #4]
  35210. 800f430: 681b ldr r3, [r3, #0]
  35211. 800f432: f042 0204 orr.w r2, r2, #4
  35212. 800f436: 601a str r2, [r3, #0]
  35213. /* verify that no seed error */
  35214. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  35215. 800f438: 687b ldr r3, [r7, #4]
  35216. 800f43a: 681b ldr r3, [r3, #0]
  35217. 800f43c: 685b ldr r3, [r3, #4]
  35218. 800f43e: f003 0340 and.w r3, r3, #64 @ 0x40
  35219. 800f442: 2b40 cmp r3, #64 @ 0x40
  35220. 800f444: d104 bne.n 800f450 <HAL_RNG_Init+0x6c>
  35221. {
  35222. hrng->State = HAL_RNG_STATE_ERROR;
  35223. 800f446: 687b ldr r3, [r7, #4]
  35224. 800f448: 2204 movs r2, #4
  35225. 800f44a: 725a strb r2, [r3, #9]
  35226. return HAL_ERROR;
  35227. 800f44c: 2301 movs r3, #1
  35228. 800f44e: e027 b.n 800f4a0 <HAL_RNG_Init+0xbc>
  35229. }
  35230. /* Get tick */
  35231. tickstart = HAL_GetTick();
  35232. 800f450: f7f6 fd28 bl 8005ea4 <HAL_GetTick>
  35233. 800f454: 60f8 str r0, [r7, #12]
  35234. /* Check if data register contains valid random data */
  35235. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35236. 800f456: e015 b.n 800f484 <HAL_RNG_Init+0xa0>
  35237. {
  35238. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  35239. 800f458: f7f6 fd24 bl 8005ea4 <HAL_GetTick>
  35240. 800f45c: 4602 mov r2, r0
  35241. 800f45e: 68fb ldr r3, [r7, #12]
  35242. 800f460: 1ad3 subs r3, r2, r3
  35243. 800f462: 2b02 cmp r3, #2
  35244. 800f464: d90e bls.n 800f484 <HAL_RNG_Init+0xa0>
  35245. {
  35246. /* New check to avoid false timeout detection in case of preemption */
  35247. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35248. 800f466: 687b ldr r3, [r7, #4]
  35249. 800f468: 681b ldr r3, [r3, #0]
  35250. 800f46a: 685b ldr r3, [r3, #4]
  35251. 800f46c: f003 0304 and.w r3, r3, #4
  35252. 800f470: 2b04 cmp r3, #4
  35253. 800f472: d107 bne.n 800f484 <HAL_RNG_Init+0xa0>
  35254. {
  35255. hrng->State = HAL_RNG_STATE_ERROR;
  35256. 800f474: 687b ldr r3, [r7, #4]
  35257. 800f476: 2204 movs r2, #4
  35258. 800f478: 725a strb r2, [r3, #9]
  35259. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  35260. 800f47a: 687b ldr r3, [r7, #4]
  35261. 800f47c: 2202 movs r2, #2
  35262. 800f47e: 60da str r2, [r3, #12]
  35263. return HAL_ERROR;
  35264. 800f480: 2301 movs r3, #1
  35265. 800f482: e00d b.n 800f4a0 <HAL_RNG_Init+0xbc>
  35266. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35267. 800f484: 687b ldr r3, [r7, #4]
  35268. 800f486: 681b ldr r3, [r3, #0]
  35269. 800f488: 685b ldr r3, [r3, #4]
  35270. 800f48a: f003 0304 and.w r3, r3, #4
  35271. 800f48e: 2b04 cmp r3, #4
  35272. 800f490: d0e2 beq.n 800f458 <HAL_RNG_Init+0x74>
  35273. }
  35274. }
  35275. }
  35276. /* Initialize the RNG state */
  35277. hrng->State = HAL_RNG_STATE_READY;
  35278. 800f492: 687b ldr r3, [r7, #4]
  35279. 800f494: 2201 movs r2, #1
  35280. 800f496: 725a strb r2, [r3, #9]
  35281. /* Initialise the error code */
  35282. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  35283. 800f498: 687b ldr r3, [r7, #4]
  35284. 800f49a: 2200 movs r2, #0
  35285. 800f49c: 60da str r2, [r3, #12]
  35286. /* Return function status */
  35287. return HAL_OK;
  35288. 800f49e: 2300 movs r3, #0
  35289. }
  35290. 800f4a0: 4618 mov r0, r3
  35291. 800f4a2: 3710 adds r7, #16
  35292. 800f4a4: 46bd mov sp, r7
  35293. 800f4a6: bd80 pop {r7, pc}
  35294. 0800f4a8 <HAL_TIM_Base_Init>:
  35295. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  35296. * @param htim TIM Base handle
  35297. * @retval HAL status
  35298. */
  35299. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  35300. {
  35301. 800f4a8: b580 push {r7, lr}
  35302. 800f4aa: b082 sub sp, #8
  35303. 800f4ac: af00 add r7, sp, #0
  35304. 800f4ae: 6078 str r0, [r7, #4]
  35305. /* Check the TIM handle allocation */
  35306. if (htim == NULL)
  35307. 800f4b0: 687b ldr r3, [r7, #4]
  35308. 800f4b2: 2b00 cmp r3, #0
  35309. 800f4b4: d101 bne.n 800f4ba <HAL_TIM_Base_Init+0x12>
  35310. {
  35311. return HAL_ERROR;
  35312. 800f4b6: 2301 movs r3, #1
  35313. 800f4b8: e049 b.n 800f54e <HAL_TIM_Base_Init+0xa6>
  35314. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35315. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35316. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35317. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35318. if (htim->State == HAL_TIM_STATE_RESET)
  35319. 800f4ba: 687b ldr r3, [r7, #4]
  35320. 800f4bc: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35321. 800f4c0: b2db uxtb r3, r3
  35322. 800f4c2: 2b00 cmp r3, #0
  35323. 800f4c4: d106 bne.n 800f4d4 <HAL_TIM_Base_Init+0x2c>
  35324. {
  35325. /* Allocate lock resource and initialize it */
  35326. htim->Lock = HAL_UNLOCKED;
  35327. 800f4c6: 687b ldr r3, [r7, #4]
  35328. 800f4c8: 2200 movs r2, #0
  35329. 800f4ca: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35330. }
  35331. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35332. htim->Base_MspInitCallback(htim);
  35333. #else
  35334. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35335. HAL_TIM_Base_MspInit(htim);
  35336. 800f4ce: 6878 ldr r0, [r7, #4]
  35337. 800f4d0: f7f4 ff40 bl 8004354 <HAL_TIM_Base_MspInit>
  35338. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35339. }
  35340. /* Set the TIM state */
  35341. htim->State = HAL_TIM_STATE_BUSY;
  35342. 800f4d4: 687b ldr r3, [r7, #4]
  35343. 800f4d6: 2202 movs r2, #2
  35344. 800f4d8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35345. /* Set the Time Base configuration */
  35346. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35347. 800f4dc: 687b ldr r3, [r7, #4]
  35348. 800f4de: 681a ldr r2, [r3, #0]
  35349. 800f4e0: 687b ldr r3, [r7, #4]
  35350. 800f4e2: 3304 adds r3, #4
  35351. 800f4e4: 4619 mov r1, r3
  35352. 800f4e6: 4610 mov r0, r2
  35353. 800f4e8: f001 f918 bl 801071c <TIM_Base_SetConfig>
  35354. /* Initialize the DMA burst operation state */
  35355. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35356. 800f4ec: 687b ldr r3, [r7, #4]
  35357. 800f4ee: 2201 movs r2, #1
  35358. 800f4f0: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35359. /* Initialize the TIM channels state */
  35360. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35361. 800f4f4: 687b ldr r3, [r7, #4]
  35362. 800f4f6: 2201 movs r2, #1
  35363. 800f4f8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35364. 800f4fc: 687b ldr r3, [r7, #4]
  35365. 800f4fe: 2201 movs r2, #1
  35366. 800f500: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35367. 800f504: 687b ldr r3, [r7, #4]
  35368. 800f506: 2201 movs r2, #1
  35369. 800f508: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35370. 800f50c: 687b ldr r3, [r7, #4]
  35371. 800f50e: 2201 movs r2, #1
  35372. 800f510: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35373. 800f514: 687b ldr r3, [r7, #4]
  35374. 800f516: 2201 movs r2, #1
  35375. 800f518: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35376. 800f51c: 687b ldr r3, [r7, #4]
  35377. 800f51e: 2201 movs r2, #1
  35378. 800f520: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35379. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35380. 800f524: 687b ldr r3, [r7, #4]
  35381. 800f526: 2201 movs r2, #1
  35382. 800f528: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35383. 800f52c: 687b ldr r3, [r7, #4]
  35384. 800f52e: 2201 movs r2, #1
  35385. 800f530: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35386. 800f534: 687b ldr r3, [r7, #4]
  35387. 800f536: 2201 movs r2, #1
  35388. 800f538: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35389. 800f53c: 687b ldr r3, [r7, #4]
  35390. 800f53e: 2201 movs r2, #1
  35391. 800f540: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35392. /* Initialize the TIM state*/
  35393. htim->State = HAL_TIM_STATE_READY;
  35394. 800f544: 687b ldr r3, [r7, #4]
  35395. 800f546: 2201 movs r2, #1
  35396. 800f548: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35397. return HAL_OK;
  35398. 800f54c: 2300 movs r3, #0
  35399. }
  35400. 800f54e: 4618 mov r0, r3
  35401. 800f550: 3708 adds r7, #8
  35402. 800f552: 46bd mov sp, r7
  35403. 800f554: bd80 pop {r7, pc}
  35404. ...
  35405. 0800f558 <HAL_TIM_Base_Start>:
  35406. * @brief Starts the TIM Base generation.
  35407. * @param htim TIM Base handle
  35408. * @retval HAL status
  35409. */
  35410. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  35411. {
  35412. 800f558: b480 push {r7}
  35413. 800f55a: b085 sub sp, #20
  35414. 800f55c: af00 add r7, sp, #0
  35415. 800f55e: 6078 str r0, [r7, #4]
  35416. /* Check the parameters */
  35417. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35418. /* Check the TIM state */
  35419. if (htim->State != HAL_TIM_STATE_READY)
  35420. 800f560: 687b ldr r3, [r7, #4]
  35421. 800f562: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35422. 800f566: b2db uxtb r3, r3
  35423. 800f568: 2b01 cmp r3, #1
  35424. 800f56a: d001 beq.n 800f570 <HAL_TIM_Base_Start+0x18>
  35425. {
  35426. return HAL_ERROR;
  35427. 800f56c: 2301 movs r3, #1
  35428. 800f56e: e04c b.n 800f60a <HAL_TIM_Base_Start+0xb2>
  35429. }
  35430. /* Set the TIM state */
  35431. htim->State = HAL_TIM_STATE_BUSY;
  35432. 800f570: 687b ldr r3, [r7, #4]
  35433. 800f572: 2202 movs r2, #2
  35434. 800f574: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35435. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35436. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35437. 800f578: 687b ldr r3, [r7, #4]
  35438. 800f57a: 681b ldr r3, [r3, #0]
  35439. 800f57c: 4a26 ldr r2, [pc, #152] @ (800f618 <HAL_TIM_Base_Start+0xc0>)
  35440. 800f57e: 4293 cmp r3, r2
  35441. 800f580: d022 beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35442. 800f582: 687b ldr r3, [r7, #4]
  35443. 800f584: 681b ldr r3, [r3, #0]
  35444. 800f586: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35445. 800f58a: d01d beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35446. 800f58c: 687b ldr r3, [r7, #4]
  35447. 800f58e: 681b ldr r3, [r3, #0]
  35448. 800f590: 4a22 ldr r2, [pc, #136] @ (800f61c <HAL_TIM_Base_Start+0xc4>)
  35449. 800f592: 4293 cmp r3, r2
  35450. 800f594: d018 beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35451. 800f596: 687b ldr r3, [r7, #4]
  35452. 800f598: 681b ldr r3, [r3, #0]
  35453. 800f59a: 4a21 ldr r2, [pc, #132] @ (800f620 <HAL_TIM_Base_Start+0xc8>)
  35454. 800f59c: 4293 cmp r3, r2
  35455. 800f59e: d013 beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35456. 800f5a0: 687b ldr r3, [r7, #4]
  35457. 800f5a2: 681b ldr r3, [r3, #0]
  35458. 800f5a4: 4a1f ldr r2, [pc, #124] @ (800f624 <HAL_TIM_Base_Start+0xcc>)
  35459. 800f5a6: 4293 cmp r3, r2
  35460. 800f5a8: d00e beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35461. 800f5aa: 687b ldr r3, [r7, #4]
  35462. 800f5ac: 681b ldr r3, [r3, #0]
  35463. 800f5ae: 4a1e ldr r2, [pc, #120] @ (800f628 <HAL_TIM_Base_Start+0xd0>)
  35464. 800f5b0: 4293 cmp r3, r2
  35465. 800f5b2: d009 beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35466. 800f5b4: 687b ldr r3, [r7, #4]
  35467. 800f5b6: 681b ldr r3, [r3, #0]
  35468. 800f5b8: 4a1c ldr r2, [pc, #112] @ (800f62c <HAL_TIM_Base_Start+0xd4>)
  35469. 800f5ba: 4293 cmp r3, r2
  35470. 800f5bc: d004 beq.n 800f5c8 <HAL_TIM_Base_Start+0x70>
  35471. 800f5be: 687b ldr r3, [r7, #4]
  35472. 800f5c0: 681b ldr r3, [r3, #0]
  35473. 800f5c2: 4a1b ldr r2, [pc, #108] @ (800f630 <HAL_TIM_Base_Start+0xd8>)
  35474. 800f5c4: 4293 cmp r3, r2
  35475. 800f5c6: d115 bne.n 800f5f4 <HAL_TIM_Base_Start+0x9c>
  35476. {
  35477. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35478. 800f5c8: 687b ldr r3, [r7, #4]
  35479. 800f5ca: 681b ldr r3, [r3, #0]
  35480. 800f5cc: 689a ldr r2, [r3, #8]
  35481. 800f5ce: 4b19 ldr r3, [pc, #100] @ (800f634 <HAL_TIM_Base_Start+0xdc>)
  35482. 800f5d0: 4013 ands r3, r2
  35483. 800f5d2: 60fb str r3, [r7, #12]
  35484. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35485. 800f5d4: 68fb ldr r3, [r7, #12]
  35486. 800f5d6: 2b06 cmp r3, #6
  35487. 800f5d8: d015 beq.n 800f606 <HAL_TIM_Base_Start+0xae>
  35488. 800f5da: 68fb ldr r3, [r7, #12]
  35489. 800f5dc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35490. 800f5e0: d011 beq.n 800f606 <HAL_TIM_Base_Start+0xae>
  35491. {
  35492. __HAL_TIM_ENABLE(htim);
  35493. 800f5e2: 687b ldr r3, [r7, #4]
  35494. 800f5e4: 681b ldr r3, [r3, #0]
  35495. 800f5e6: 681a ldr r2, [r3, #0]
  35496. 800f5e8: 687b ldr r3, [r7, #4]
  35497. 800f5ea: 681b ldr r3, [r3, #0]
  35498. 800f5ec: f042 0201 orr.w r2, r2, #1
  35499. 800f5f0: 601a str r2, [r3, #0]
  35500. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35501. 800f5f2: e008 b.n 800f606 <HAL_TIM_Base_Start+0xae>
  35502. }
  35503. }
  35504. else
  35505. {
  35506. __HAL_TIM_ENABLE(htim);
  35507. 800f5f4: 687b ldr r3, [r7, #4]
  35508. 800f5f6: 681b ldr r3, [r3, #0]
  35509. 800f5f8: 681a ldr r2, [r3, #0]
  35510. 800f5fa: 687b ldr r3, [r7, #4]
  35511. 800f5fc: 681b ldr r3, [r3, #0]
  35512. 800f5fe: f042 0201 orr.w r2, r2, #1
  35513. 800f602: 601a str r2, [r3, #0]
  35514. 800f604: e000 b.n 800f608 <HAL_TIM_Base_Start+0xb0>
  35515. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35516. 800f606: bf00 nop
  35517. }
  35518. /* Return function status */
  35519. return HAL_OK;
  35520. 800f608: 2300 movs r3, #0
  35521. }
  35522. 800f60a: 4618 mov r0, r3
  35523. 800f60c: 3714 adds r7, #20
  35524. 800f60e: 46bd mov sp, r7
  35525. 800f610: f85d 7b04 ldr.w r7, [sp], #4
  35526. 800f614: 4770 bx lr
  35527. 800f616: bf00 nop
  35528. 800f618: 40010000 .word 0x40010000
  35529. 800f61c: 40000400 .word 0x40000400
  35530. 800f620: 40000800 .word 0x40000800
  35531. 800f624: 40000c00 .word 0x40000c00
  35532. 800f628: 40010400 .word 0x40010400
  35533. 800f62c: 40001800 .word 0x40001800
  35534. 800f630: 40014000 .word 0x40014000
  35535. 800f634: 00010007 .word 0x00010007
  35536. 0800f638 <HAL_TIM_Base_Start_IT>:
  35537. * @brief Starts the TIM Base generation in interrupt mode.
  35538. * @param htim TIM Base handle
  35539. * @retval HAL status
  35540. */
  35541. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  35542. {
  35543. 800f638: b480 push {r7}
  35544. 800f63a: b085 sub sp, #20
  35545. 800f63c: af00 add r7, sp, #0
  35546. 800f63e: 6078 str r0, [r7, #4]
  35547. /* Check the parameters */
  35548. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35549. /* Check the TIM state */
  35550. if (htim->State != HAL_TIM_STATE_READY)
  35551. 800f640: 687b ldr r3, [r7, #4]
  35552. 800f642: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35553. 800f646: b2db uxtb r3, r3
  35554. 800f648: 2b01 cmp r3, #1
  35555. 800f64a: d001 beq.n 800f650 <HAL_TIM_Base_Start_IT+0x18>
  35556. {
  35557. return HAL_ERROR;
  35558. 800f64c: 2301 movs r3, #1
  35559. 800f64e: e054 b.n 800f6fa <HAL_TIM_Base_Start_IT+0xc2>
  35560. }
  35561. /* Set the TIM state */
  35562. htim->State = HAL_TIM_STATE_BUSY;
  35563. 800f650: 687b ldr r3, [r7, #4]
  35564. 800f652: 2202 movs r2, #2
  35565. 800f654: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35566. /* Enable the TIM Update interrupt */
  35567. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  35568. 800f658: 687b ldr r3, [r7, #4]
  35569. 800f65a: 681b ldr r3, [r3, #0]
  35570. 800f65c: 68da ldr r2, [r3, #12]
  35571. 800f65e: 687b ldr r3, [r7, #4]
  35572. 800f660: 681b ldr r3, [r3, #0]
  35573. 800f662: f042 0201 orr.w r2, r2, #1
  35574. 800f666: 60da str r2, [r3, #12]
  35575. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35576. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35577. 800f668: 687b ldr r3, [r7, #4]
  35578. 800f66a: 681b ldr r3, [r3, #0]
  35579. 800f66c: 4a26 ldr r2, [pc, #152] @ (800f708 <HAL_TIM_Base_Start_IT+0xd0>)
  35580. 800f66e: 4293 cmp r3, r2
  35581. 800f670: d022 beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35582. 800f672: 687b ldr r3, [r7, #4]
  35583. 800f674: 681b ldr r3, [r3, #0]
  35584. 800f676: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35585. 800f67a: d01d beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35586. 800f67c: 687b ldr r3, [r7, #4]
  35587. 800f67e: 681b ldr r3, [r3, #0]
  35588. 800f680: 4a22 ldr r2, [pc, #136] @ (800f70c <HAL_TIM_Base_Start_IT+0xd4>)
  35589. 800f682: 4293 cmp r3, r2
  35590. 800f684: d018 beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35591. 800f686: 687b ldr r3, [r7, #4]
  35592. 800f688: 681b ldr r3, [r3, #0]
  35593. 800f68a: 4a21 ldr r2, [pc, #132] @ (800f710 <HAL_TIM_Base_Start_IT+0xd8>)
  35594. 800f68c: 4293 cmp r3, r2
  35595. 800f68e: d013 beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35596. 800f690: 687b ldr r3, [r7, #4]
  35597. 800f692: 681b ldr r3, [r3, #0]
  35598. 800f694: 4a1f ldr r2, [pc, #124] @ (800f714 <HAL_TIM_Base_Start_IT+0xdc>)
  35599. 800f696: 4293 cmp r3, r2
  35600. 800f698: d00e beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35601. 800f69a: 687b ldr r3, [r7, #4]
  35602. 800f69c: 681b ldr r3, [r3, #0]
  35603. 800f69e: 4a1e ldr r2, [pc, #120] @ (800f718 <HAL_TIM_Base_Start_IT+0xe0>)
  35604. 800f6a0: 4293 cmp r3, r2
  35605. 800f6a2: d009 beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35606. 800f6a4: 687b ldr r3, [r7, #4]
  35607. 800f6a6: 681b ldr r3, [r3, #0]
  35608. 800f6a8: 4a1c ldr r2, [pc, #112] @ (800f71c <HAL_TIM_Base_Start_IT+0xe4>)
  35609. 800f6aa: 4293 cmp r3, r2
  35610. 800f6ac: d004 beq.n 800f6b8 <HAL_TIM_Base_Start_IT+0x80>
  35611. 800f6ae: 687b ldr r3, [r7, #4]
  35612. 800f6b0: 681b ldr r3, [r3, #0]
  35613. 800f6b2: 4a1b ldr r2, [pc, #108] @ (800f720 <HAL_TIM_Base_Start_IT+0xe8>)
  35614. 800f6b4: 4293 cmp r3, r2
  35615. 800f6b6: d115 bne.n 800f6e4 <HAL_TIM_Base_Start_IT+0xac>
  35616. {
  35617. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35618. 800f6b8: 687b ldr r3, [r7, #4]
  35619. 800f6ba: 681b ldr r3, [r3, #0]
  35620. 800f6bc: 689a ldr r2, [r3, #8]
  35621. 800f6be: 4b19 ldr r3, [pc, #100] @ (800f724 <HAL_TIM_Base_Start_IT+0xec>)
  35622. 800f6c0: 4013 ands r3, r2
  35623. 800f6c2: 60fb str r3, [r7, #12]
  35624. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35625. 800f6c4: 68fb ldr r3, [r7, #12]
  35626. 800f6c6: 2b06 cmp r3, #6
  35627. 800f6c8: d015 beq.n 800f6f6 <HAL_TIM_Base_Start_IT+0xbe>
  35628. 800f6ca: 68fb ldr r3, [r7, #12]
  35629. 800f6cc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35630. 800f6d0: d011 beq.n 800f6f6 <HAL_TIM_Base_Start_IT+0xbe>
  35631. {
  35632. __HAL_TIM_ENABLE(htim);
  35633. 800f6d2: 687b ldr r3, [r7, #4]
  35634. 800f6d4: 681b ldr r3, [r3, #0]
  35635. 800f6d6: 681a ldr r2, [r3, #0]
  35636. 800f6d8: 687b ldr r3, [r7, #4]
  35637. 800f6da: 681b ldr r3, [r3, #0]
  35638. 800f6dc: f042 0201 orr.w r2, r2, #1
  35639. 800f6e0: 601a str r2, [r3, #0]
  35640. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35641. 800f6e2: e008 b.n 800f6f6 <HAL_TIM_Base_Start_IT+0xbe>
  35642. }
  35643. }
  35644. else
  35645. {
  35646. __HAL_TIM_ENABLE(htim);
  35647. 800f6e4: 687b ldr r3, [r7, #4]
  35648. 800f6e6: 681b ldr r3, [r3, #0]
  35649. 800f6e8: 681a ldr r2, [r3, #0]
  35650. 800f6ea: 687b ldr r3, [r7, #4]
  35651. 800f6ec: 681b ldr r3, [r3, #0]
  35652. 800f6ee: f042 0201 orr.w r2, r2, #1
  35653. 800f6f2: 601a str r2, [r3, #0]
  35654. 800f6f4: e000 b.n 800f6f8 <HAL_TIM_Base_Start_IT+0xc0>
  35655. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35656. 800f6f6: bf00 nop
  35657. }
  35658. /* Return function status */
  35659. return HAL_OK;
  35660. 800f6f8: 2300 movs r3, #0
  35661. }
  35662. 800f6fa: 4618 mov r0, r3
  35663. 800f6fc: 3714 adds r7, #20
  35664. 800f6fe: 46bd mov sp, r7
  35665. 800f700: f85d 7b04 ldr.w r7, [sp], #4
  35666. 800f704: 4770 bx lr
  35667. 800f706: bf00 nop
  35668. 800f708: 40010000 .word 0x40010000
  35669. 800f70c: 40000400 .word 0x40000400
  35670. 800f710: 40000800 .word 0x40000800
  35671. 800f714: 40000c00 .word 0x40000c00
  35672. 800f718: 40010400 .word 0x40010400
  35673. 800f71c: 40001800 .word 0x40001800
  35674. 800f720: 40014000 .word 0x40014000
  35675. 800f724: 00010007 .word 0x00010007
  35676. 0800f728 <HAL_TIM_PWM_Init>:
  35677. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  35678. * @param htim TIM PWM handle
  35679. * @retval HAL status
  35680. */
  35681. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  35682. {
  35683. 800f728: b580 push {r7, lr}
  35684. 800f72a: b082 sub sp, #8
  35685. 800f72c: af00 add r7, sp, #0
  35686. 800f72e: 6078 str r0, [r7, #4]
  35687. /* Check the TIM handle allocation */
  35688. if (htim == NULL)
  35689. 800f730: 687b ldr r3, [r7, #4]
  35690. 800f732: 2b00 cmp r3, #0
  35691. 800f734: d101 bne.n 800f73a <HAL_TIM_PWM_Init+0x12>
  35692. {
  35693. return HAL_ERROR;
  35694. 800f736: 2301 movs r3, #1
  35695. 800f738: e049 b.n 800f7ce <HAL_TIM_PWM_Init+0xa6>
  35696. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35697. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35698. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35699. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35700. if (htim->State == HAL_TIM_STATE_RESET)
  35701. 800f73a: 687b ldr r3, [r7, #4]
  35702. 800f73c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35703. 800f740: b2db uxtb r3, r3
  35704. 800f742: 2b00 cmp r3, #0
  35705. 800f744: d106 bne.n 800f754 <HAL_TIM_PWM_Init+0x2c>
  35706. {
  35707. /* Allocate lock resource and initialize it */
  35708. htim->Lock = HAL_UNLOCKED;
  35709. 800f746: 687b ldr r3, [r7, #4]
  35710. 800f748: 2200 movs r2, #0
  35711. 800f74a: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35712. }
  35713. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35714. htim->PWM_MspInitCallback(htim);
  35715. #else
  35716. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35717. HAL_TIM_PWM_MspInit(htim);
  35718. 800f74e: 6878 ldr r0, [r7, #4]
  35719. 800f750: f7f4 fdc6 bl 80042e0 <HAL_TIM_PWM_MspInit>
  35720. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35721. }
  35722. /* Set the TIM state */
  35723. htim->State = HAL_TIM_STATE_BUSY;
  35724. 800f754: 687b ldr r3, [r7, #4]
  35725. 800f756: 2202 movs r2, #2
  35726. 800f758: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35727. /* Init the base time for the PWM */
  35728. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35729. 800f75c: 687b ldr r3, [r7, #4]
  35730. 800f75e: 681a ldr r2, [r3, #0]
  35731. 800f760: 687b ldr r3, [r7, #4]
  35732. 800f762: 3304 adds r3, #4
  35733. 800f764: 4619 mov r1, r3
  35734. 800f766: 4610 mov r0, r2
  35735. 800f768: f000 ffd8 bl 801071c <TIM_Base_SetConfig>
  35736. /* Initialize the DMA burst operation state */
  35737. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35738. 800f76c: 687b ldr r3, [r7, #4]
  35739. 800f76e: 2201 movs r2, #1
  35740. 800f770: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35741. /* Initialize the TIM channels state */
  35742. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35743. 800f774: 687b ldr r3, [r7, #4]
  35744. 800f776: 2201 movs r2, #1
  35745. 800f778: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35746. 800f77c: 687b ldr r3, [r7, #4]
  35747. 800f77e: 2201 movs r2, #1
  35748. 800f780: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35749. 800f784: 687b ldr r3, [r7, #4]
  35750. 800f786: 2201 movs r2, #1
  35751. 800f788: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35752. 800f78c: 687b ldr r3, [r7, #4]
  35753. 800f78e: 2201 movs r2, #1
  35754. 800f790: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35755. 800f794: 687b ldr r3, [r7, #4]
  35756. 800f796: 2201 movs r2, #1
  35757. 800f798: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35758. 800f79c: 687b ldr r3, [r7, #4]
  35759. 800f79e: 2201 movs r2, #1
  35760. 800f7a0: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35761. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35762. 800f7a4: 687b ldr r3, [r7, #4]
  35763. 800f7a6: 2201 movs r2, #1
  35764. 800f7a8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35765. 800f7ac: 687b ldr r3, [r7, #4]
  35766. 800f7ae: 2201 movs r2, #1
  35767. 800f7b0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35768. 800f7b4: 687b ldr r3, [r7, #4]
  35769. 800f7b6: 2201 movs r2, #1
  35770. 800f7b8: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35771. 800f7bc: 687b ldr r3, [r7, #4]
  35772. 800f7be: 2201 movs r2, #1
  35773. 800f7c0: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35774. /* Initialize the TIM state*/
  35775. htim->State = HAL_TIM_STATE_READY;
  35776. 800f7c4: 687b ldr r3, [r7, #4]
  35777. 800f7c6: 2201 movs r2, #1
  35778. 800f7c8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35779. return HAL_OK;
  35780. 800f7cc: 2300 movs r3, #0
  35781. }
  35782. 800f7ce: 4618 mov r0, r3
  35783. 800f7d0: 3708 adds r7, #8
  35784. 800f7d2: 46bd mov sp, r7
  35785. 800f7d4: bd80 pop {r7, pc}
  35786. ...
  35787. 0800f7d8 <HAL_TIM_PWM_Start>:
  35788. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35789. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35790. * @retval HAL status
  35791. */
  35792. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  35793. {
  35794. 800f7d8: b580 push {r7, lr}
  35795. 800f7da: b084 sub sp, #16
  35796. 800f7dc: af00 add r7, sp, #0
  35797. 800f7de: 6078 str r0, [r7, #4]
  35798. 800f7e0: 6039 str r1, [r7, #0]
  35799. /* Check the parameters */
  35800. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35801. /* Check the TIM channel state */
  35802. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  35803. 800f7e2: 683b ldr r3, [r7, #0]
  35804. 800f7e4: 2b00 cmp r3, #0
  35805. 800f7e6: d109 bne.n 800f7fc <HAL_TIM_PWM_Start+0x24>
  35806. 800f7e8: 687b ldr r3, [r7, #4]
  35807. 800f7ea: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35808. 800f7ee: b2db uxtb r3, r3
  35809. 800f7f0: 2b01 cmp r3, #1
  35810. 800f7f2: bf14 ite ne
  35811. 800f7f4: 2301 movne r3, #1
  35812. 800f7f6: 2300 moveq r3, #0
  35813. 800f7f8: b2db uxtb r3, r3
  35814. 800f7fa: e03c b.n 800f876 <HAL_TIM_PWM_Start+0x9e>
  35815. 800f7fc: 683b ldr r3, [r7, #0]
  35816. 800f7fe: 2b04 cmp r3, #4
  35817. 800f800: d109 bne.n 800f816 <HAL_TIM_PWM_Start+0x3e>
  35818. 800f802: 687b ldr r3, [r7, #4]
  35819. 800f804: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35820. 800f808: b2db uxtb r3, r3
  35821. 800f80a: 2b01 cmp r3, #1
  35822. 800f80c: bf14 ite ne
  35823. 800f80e: 2301 movne r3, #1
  35824. 800f810: 2300 moveq r3, #0
  35825. 800f812: b2db uxtb r3, r3
  35826. 800f814: e02f b.n 800f876 <HAL_TIM_PWM_Start+0x9e>
  35827. 800f816: 683b ldr r3, [r7, #0]
  35828. 800f818: 2b08 cmp r3, #8
  35829. 800f81a: d109 bne.n 800f830 <HAL_TIM_PWM_Start+0x58>
  35830. 800f81c: 687b ldr r3, [r7, #4]
  35831. 800f81e: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35832. 800f822: b2db uxtb r3, r3
  35833. 800f824: 2b01 cmp r3, #1
  35834. 800f826: bf14 ite ne
  35835. 800f828: 2301 movne r3, #1
  35836. 800f82a: 2300 moveq r3, #0
  35837. 800f82c: b2db uxtb r3, r3
  35838. 800f82e: e022 b.n 800f876 <HAL_TIM_PWM_Start+0x9e>
  35839. 800f830: 683b ldr r3, [r7, #0]
  35840. 800f832: 2b0c cmp r3, #12
  35841. 800f834: d109 bne.n 800f84a <HAL_TIM_PWM_Start+0x72>
  35842. 800f836: 687b ldr r3, [r7, #4]
  35843. 800f838: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35844. 800f83c: b2db uxtb r3, r3
  35845. 800f83e: 2b01 cmp r3, #1
  35846. 800f840: bf14 ite ne
  35847. 800f842: 2301 movne r3, #1
  35848. 800f844: 2300 moveq r3, #0
  35849. 800f846: b2db uxtb r3, r3
  35850. 800f848: e015 b.n 800f876 <HAL_TIM_PWM_Start+0x9e>
  35851. 800f84a: 683b ldr r3, [r7, #0]
  35852. 800f84c: 2b10 cmp r3, #16
  35853. 800f84e: d109 bne.n 800f864 <HAL_TIM_PWM_Start+0x8c>
  35854. 800f850: 687b ldr r3, [r7, #4]
  35855. 800f852: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35856. 800f856: b2db uxtb r3, r3
  35857. 800f858: 2b01 cmp r3, #1
  35858. 800f85a: bf14 ite ne
  35859. 800f85c: 2301 movne r3, #1
  35860. 800f85e: 2300 moveq r3, #0
  35861. 800f860: b2db uxtb r3, r3
  35862. 800f862: e008 b.n 800f876 <HAL_TIM_PWM_Start+0x9e>
  35863. 800f864: 687b ldr r3, [r7, #4]
  35864. 800f866: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35865. 800f86a: b2db uxtb r3, r3
  35866. 800f86c: 2b01 cmp r3, #1
  35867. 800f86e: bf14 ite ne
  35868. 800f870: 2301 movne r3, #1
  35869. 800f872: 2300 moveq r3, #0
  35870. 800f874: b2db uxtb r3, r3
  35871. 800f876: 2b00 cmp r3, #0
  35872. 800f878: d001 beq.n 800f87e <HAL_TIM_PWM_Start+0xa6>
  35873. {
  35874. return HAL_ERROR;
  35875. 800f87a: 2301 movs r3, #1
  35876. 800f87c: e0a1 b.n 800f9c2 <HAL_TIM_PWM_Start+0x1ea>
  35877. }
  35878. /* Set the TIM channel state */
  35879. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35880. 800f87e: 683b ldr r3, [r7, #0]
  35881. 800f880: 2b00 cmp r3, #0
  35882. 800f882: d104 bne.n 800f88e <HAL_TIM_PWM_Start+0xb6>
  35883. 800f884: 687b ldr r3, [r7, #4]
  35884. 800f886: 2202 movs r2, #2
  35885. 800f888: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35886. 800f88c: e023 b.n 800f8d6 <HAL_TIM_PWM_Start+0xfe>
  35887. 800f88e: 683b ldr r3, [r7, #0]
  35888. 800f890: 2b04 cmp r3, #4
  35889. 800f892: d104 bne.n 800f89e <HAL_TIM_PWM_Start+0xc6>
  35890. 800f894: 687b ldr r3, [r7, #4]
  35891. 800f896: 2202 movs r2, #2
  35892. 800f898: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35893. 800f89c: e01b b.n 800f8d6 <HAL_TIM_PWM_Start+0xfe>
  35894. 800f89e: 683b ldr r3, [r7, #0]
  35895. 800f8a0: 2b08 cmp r3, #8
  35896. 800f8a2: d104 bne.n 800f8ae <HAL_TIM_PWM_Start+0xd6>
  35897. 800f8a4: 687b ldr r3, [r7, #4]
  35898. 800f8a6: 2202 movs r2, #2
  35899. 800f8a8: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35900. 800f8ac: e013 b.n 800f8d6 <HAL_TIM_PWM_Start+0xfe>
  35901. 800f8ae: 683b ldr r3, [r7, #0]
  35902. 800f8b0: 2b0c cmp r3, #12
  35903. 800f8b2: d104 bne.n 800f8be <HAL_TIM_PWM_Start+0xe6>
  35904. 800f8b4: 687b ldr r3, [r7, #4]
  35905. 800f8b6: 2202 movs r2, #2
  35906. 800f8b8: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35907. 800f8bc: e00b b.n 800f8d6 <HAL_TIM_PWM_Start+0xfe>
  35908. 800f8be: 683b ldr r3, [r7, #0]
  35909. 800f8c0: 2b10 cmp r3, #16
  35910. 800f8c2: d104 bne.n 800f8ce <HAL_TIM_PWM_Start+0xf6>
  35911. 800f8c4: 687b ldr r3, [r7, #4]
  35912. 800f8c6: 2202 movs r2, #2
  35913. 800f8c8: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35914. 800f8cc: e003 b.n 800f8d6 <HAL_TIM_PWM_Start+0xfe>
  35915. 800f8ce: 687b ldr r3, [r7, #4]
  35916. 800f8d0: 2202 movs r2, #2
  35917. 800f8d2: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35918. /* Enable the Capture compare channel */
  35919. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35920. 800f8d6: 687b ldr r3, [r7, #4]
  35921. 800f8d8: 681b ldr r3, [r3, #0]
  35922. 800f8da: 2201 movs r2, #1
  35923. 800f8dc: 6839 ldr r1, [r7, #0]
  35924. 800f8de: 4618 mov r0, r3
  35925. 800f8e0: f001 fc60 bl 80111a4 <TIM_CCxChannelCmd>
  35926. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35927. 800f8e4: 687b ldr r3, [r7, #4]
  35928. 800f8e6: 681b ldr r3, [r3, #0]
  35929. 800f8e8: 4a38 ldr r2, [pc, #224] @ (800f9cc <HAL_TIM_PWM_Start+0x1f4>)
  35930. 800f8ea: 4293 cmp r3, r2
  35931. 800f8ec: d013 beq.n 800f916 <HAL_TIM_PWM_Start+0x13e>
  35932. 800f8ee: 687b ldr r3, [r7, #4]
  35933. 800f8f0: 681b ldr r3, [r3, #0]
  35934. 800f8f2: 4a37 ldr r2, [pc, #220] @ (800f9d0 <HAL_TIM_PWM_Start+0x1f8>)
  35935. 800f8f4: 4293 cmp r3, r2
  35936. 800f8f6: d00e beq.n 800f916 <HAL_TIM_PWM_Start+0x13e>
  35937. 800f8f8: 687b ldr r3, [r7, #4]
  35938. 800f8fa: 681b ldr r3, [r3, #0]
  35939. 800f8fc: 4a35 ldr r2, [pc, #212] @ (800f9d4 <HAL_TIM_PWM_Start+0x1fc>)
  35940. 800f8fe: 4293 cmp r3, r2
  35941. 800f900: d009 beq.n 800f916 <HAL_TIM_PWM_Start+0x13e>
  35942. 800f902: 687b ldr r3, [r7, #4]
  35943. 800f904: 681b ldr r3, [r3, #0]
  35944. 800f906: 4a34 ldr r2, [pc, #208] @ (800f9d8 <HAL_TIM_PWM_Start+0x200>)
  35945. 800f908: 4293 cmp r3, r2
  35946. 800f90a: d004 beq.n 800f916 <HAL_TIM_PWM_Start+0x13e>
  35947. 800f90c: 687b ldr r3, [r7, #4]
  35948. 800f90e: 681b ldr r3, [r3, #0]
  35949. 800f910: 4a32 ldr r2, [pc, #200] @ (800f9dc <HAL_TIM_PWM_Start+0x204>)
  35950. 800f912: 4293 cmp r3, r2
  35951. 800f914: d101 bne.n 800f91a <HAL_TIM_PWM_Start+0x142>
  35952. 800f916: 2301 movs r3, #1
  35953. 800f918: e000 b.n 800f91c <HAL_TIM_PWM_Start+0x144>
  35954. 800f91a: 2300 movs r3, #0
  35955. 800f91c: 2b00 cmp r3, #0
  35956. 800f91e: d007 beq.n 800f930 <HAL_TIM_PWM_Start+0x158>
  35957. {
  35958. /* Enable the main output */
  35959. __HAL_TIM_MOE_ENABLE(htim);
  35960. 800f920: 687b ldr r3, [r7, #4]
  35961. 800f922: 681b ldr r3, [r3, #0]
  35962. 800f924: 6c5a ldr r2, [r3, #68] @ 0x44
  35963. 800f926: 687b ldr r3, [r7, #4]
  35964. 800f928: 681b ldr r3, [r3, #0]
  35965. 800f92a: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  35966. 800f92e: 645a str r2, [r3, #68] @ 0x44
  35967. }
  35968. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35969. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35970. 800f930: 687b ldr r3, [r7, #4]
  35971. 800f932: 681b ldr r3, [r3, #0]
  35972. 800f934: 4a25 ldr r2, [pc, #148] @ (800f9cc <HAL_TIM_PWM_Start+0x1f4>)
  35973. 800f936: 4293 cmp r3, r2
  35974. 800f938: d022 beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35975. 800f93a: 687b ldr r3, [r7, #4]
  35976. 800f93c: 681b ldr r3, [r3, #0]
  35977. 800f93e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35978. 800f942: d01d beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35979. 800f944: 687b ldr r3, [r7, #4]
  35980. 800f946: 681b ldr r3, [r3, #0]
  35981. 800f948: 4a25 ldr r2, [pc, #148] @ (800f9e0 <HAL_TIM_PWM_Start+0x208>)
  35982. 800f94a: 4293 cmp r3, r2
  35983. 800f94c: d018 beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35984. 800f94e: 687b ldr r3, [r7, #4]
  35985. 800f950: 681b ldr r3, [r3, #0]
  35986. 800f952: 4a24 ldr r2, [pc, #144] @ (800f9e4 <HAL_TIM_PWM_Start+0x20c>)
  35987. 800f954: 4293 cmp r3, r2
  35988. 800f956: d013 beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35989. 800f958: 687b ldr r3, [r7, #4]
  35990. 800f95a: 681b ldr r3, [r3, #0]
  35991. 800f95c: 4a22 ldr r2, [pc, #136] @ (800f9e8 <HAL_TIM_PWM_Start+0x210>)
  35992. 800f95e: 4293 cmp r3, r2
  35993. 800f960: d00e beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35994. 800f962: 687b ldr r3, [r7, #4]
  35995. 800f964: 681b ldr r3, [r3, #0]
  35996. 800f966: 4a1a ldr r2, [pc, #104] @ (800f9d0 <HAL_TIM_PWM_Start+0x1f8>)
  35997. 800f968: 4293 cmp r3, r2
  35998. 800f96a: d009 beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  35999. 800f96c: 687b ldr r3, [r7, #4]
  36000. 800f96e: 681b ldr r3, [r3, #0]
  36001. 800f970: 4a1e ldr r2, [pc, #120] @ (800f9ec <HAL_TIM_PWM_Start+0x214>)
  36002. 800f972: 4293 cmp r3, r2
  36003. 800f974: d004 beq.n 800f980 <HAL_TIM_PWM_Start+0x1a8>
  36004. 800f976: 687b ldr r3, [r7, #4]
  36005. 800f978: 681b ldr r3, [r3, #0]
  36006. 800f97a: 4a16 ldr r2, [pc, #88] @ (800f9d4 <HAL_TIM_PWM_Start+0x1fc>)
  36007. 800f97c: 4293 cmp r3, r2
  36008. 800f97e: d115 bne.n 800f9ac <HAL_TIM_PWM_Start+0x1d4>
  36009. {
  36010. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  36011. 800f980: 687b ldr r3, [r7, #4]
  36012. 800f982: 681b ldr r3, [r3, #0]
  36013. 800f984: 689a ldr r2, [r3, #8]
  36014. 800f986: 4b1a ldr r3, [pc, #104] @ (800f9f0 <HAL_TIM_PWM_Start+0x218>)
  36015. 800f988: 4013 ands r3, r2
  36016. 800f98a: 60fb str r3, [r7, #12]
  36017. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36018. 800f98c: 68fb ldr r3, [r7, #12]
  36019. 800f98e: 2b06 cmp r3, #6
  36020. 800f990: d015 beq.n 800f9be <HAL_TIM_PWM_Start+0x1e6>
  36021. 800f992: 68fb ldr r3, [r7, #12]
  36022. 800f994: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  36023. 800f998: d011 beq.n 800f9be <HAL_TIM_PWM_Start+0x1e6>
  36024. {
  36025. __HAL_TIM_ENABLE(htim);
  36026. 800f99a: 687b ldr r3, [r7, #4]
  36027. 800f99c: 681b ldr r3, [r3, #0]
  36028. 800f99e: 681a ldr r2, [r3, #0]
  36029. 800f9a0: 687b ldr r3, [r7, #4]
  36030. 800f9a2: 681b ldr r3, [r3, #0]
  36031. 800f9a4: f042 0201 orr.w r2, r2, #1
  36032. 800f9a8: 601a str r2, [r3, #0]
  36033. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36034. 800f9aa: e008 b.n 800f9be <HAL_TIM_PWM_Start+0x1e6>
  36035. }
  36036. }
  36037. else
  36038. {
  36039. __HAL_TIM_ENABLE(htim);
  36040. 800f9ac: 687b ldr r3, [r7, #4]
  36041. 800f9ae: 681b ldr r3, [r3, #0]
  36042. 800f9b0: 681a ldr r2, [r3, #0]
  36043. 800f9b2: 687b ldr r3, [r7, #4]
  36044. 800f9b4: 681b ldr r3, [r3, #0]
  36045. 800f9b6: f042 0201 orr.w r2, r2, #1
  36046. 800f9ba: 601a str r2, [r3, #0]
  36047. 800f9bc: e000 b.n 800f9c0 <HAL_TIM_PWM_Start+0x1e8>
  36048. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36049. 800f9be: bf00 nop
  36050. }
  36051. /* Return function status */
  36052. return HAL_OK;
  36053. 800f9c0: 2300 movs r3, #0
  36054. }
  36055. 800f9c2: 4618 mov r0, r3
  36056. 800f9c4: 3710 adds r7, #16
  36057. 800f9c6: 46bd mov sp, r7
  36058. 800f9c8: bd80 pop {r7, pc}
  36059. 800f9ca: bf00 nop
  36060. 800f9cc: 40010000 .word 0x40010000
  36061. 800f9d0: 40010400 .word 0x40010400
  36062. 800f9d4: 40014000 .word 0x40014000
  36063. 800f9d8: 40014400 .word 0x40014400
  36064. 800f9dc: 40014800 .word 0x40014800
  36065. 800f9e0: 40000400 .word 0x40000400
  36066. 800f9e4: 40000800 .word 0x40000800
  36067. 800f9e8: 40000c00 .word 0x40000c00
  36068. 800f9ec: 40001800 .word 0x40001800
  36069. 800f9f0: 00010007 .word 0x00010007
  36070. 0800f9f4 <HAL_TIM_PWM_Stop>:
  36071. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  36072. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  36073. * @retval HAL status
  36074. */
  36075. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  36076. {
  36077. 800f9f4: b580 push {r7, lr}
  36078. 800f9f6: b082 sub sp, #8
  36079. 800f9f8: af00 add r7, sp, #0
  36080. 800f9fa: 6078 str r0, [r7, #4]
  36081. 800f9fc: 6039 str r1, [r7, #0]
  36082. /* Check the parameters */
  36083. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36084. /* Disable the Capture compare channel */
  36085. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  36086. 800f9fe: 687b ldr r3, [r7, #4]
  36087. 800fa00: 681b ldr r3, [r3, #0]
  36088. 800fa02: 2200 movs r2, #0
  36089. 800fa04: 6839 ldr r1, [r7, #0]
  36090. 800fa06: 4618 mov r0, r3
  36091. 800fa08: f001 fbcc bl 80111a4 <TIM_CCxChannelCmd>
  36092. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  36093. 800fa0c: 687b ldr r3, [r7, #4]
  36094. 800fa0e: 681b ldr r3, [r3, #0]
  36095. 800fa10: 4a3e ldr r2, [pc, #248] @ (800fb0c <HAL_TIM_PWM_Stop+0x118>)
  36096. 800fa12: 4293 cmp r3, r2
  36097. 800fa14: d013 beq.n 800fa3e <HAL_TIM_PWM_Stop+0x4a>
  36098. 800fa16: 687b ldr r3, [r7, #4]
  36099. 800fa18: 681b ldr r3, [r3, #0]
  36100. 800fa1a: 4a3d ldr r2, [pc, #244] @ (800fb10 <HAL_TIM_PWM_Stop+0x11c>)
  36101. 800fa1c: 4293 cmp r3, r2
  36102. 800fa1e: d00e beq.n 800fa3e <HAL_TIM_PWM_Stop+0x4a>
  36103. 800fa20: 687b ldr r3, [r7, #4]
  36104. 800fa22: 681b ldr r3, [r3, #0]
  36105. 800fa24: 4a3b ldr r2, [pc, #236] @ (800fb14 <HAL_TIM_PWM_Stop+0x120>)
  36106. 800fa26: 4293 cmp r3, r2
  36107. 800fa28: d009 beq.n 800fa3e <HAL_TIM_PWM_Stop+0x4a>
  36108. 800fa2a: 687b ldr r3, [r7, #4]
  36109. 800fa2c: 681b ldr r3, [r3, #0]
  36110. 800fa2e: 4a3a ldr r2, [pc, #232] @ (800fb18 <HAL_TIM_PWM_Stop+0x124>)
  36111. 800fa30: 4293 cmp r3, r2
  36112. 800fa32: d004 beq.n 800fa3e <HAL_TIM_PWM_Stop+0x4a>
  36113. 800fa34: 687b ldr r3, [r7, #4]
  36114. 800fa36: 681b ldr r3, [r3, #0]
  36115. 800fa38: 4a38 ldr r2, [pc, #224] @ (800fb1c <HAL_TIM_PWM_Stop+0x128>)
  36116. 800fa3a: 4293 cmp r3, r2
  36117. 800fa3c: d101 bne.n 800fa42 <HAL_TIM_PWM_Stop+0x4e>
  36118. 800fa3e: 2301 movs r3, #1
  36119. 800fa40: e000 b.n 800fa44 <HAL_TIM_PWM_Stop+0x50>
  36120. 800fa42: 2300 movs r3, #0
  36121. 800fa44: 2b00 cmp r3, #0
  36122. 800fa46: d017 beq.n 800fa78 <HAL_TIM_PWM_Stop+0x84>
  36123. {
  36124. /* Disable the Main Output */
  36125. __HAL_TIM_MOE_DISABLE(htim);
  36126. 800fa48: 687b ldr r3, [r7, #4]
  36127. 800fa4a: 681b ldr r3, [r3, #0]
  36128. 800fa4c: 6a1a ldr r2, [r3, #32]
  36129. 800fa4e: f241 1311 movw r3, #4369 @ 0x1111
  36130. 800fa52: 4013 ands r3, r2
  36131. 800fa54: 2b00 cmp r3, #0
  36132. 800fa56: d10f bne.n 800fa78 <HAL_TIM_PWM_Stop+0x84>
  36133. 800fa58: 687b ldr r3, [r7, #4]
  36134. 800fa5a: 681b ldr r3, [r3, #0]
  36135. 800fa5c: 6a1a ldr r2, [r3, #32]
  36136. 800fa5e: f240 4344 movw r3, #1092 @ 0x444
  36137. 800fa62: 4013 ands r3, r2
  36138. 800fa64: 2b00 cmp r3, #0
  36139. 800fa66: d107 bne.n 800fa78 <HAL_TIM_PWM_Stop+0x84>
  36140. 800fa68: 687b ldr r3, [r7, #4]
  36141. 800fa6a: 681b ldr r3, [r3, #0]
  36142. 800fa6c: 6c5a ldr r2, [r3, #68] @ 0x44
  36143. 800fa6e: 687b ldr r3, [r7, #4]
  36144. 800fa70: 681b ldr r3, [r3, #0]
  36145. 800fa72: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  36146. 800fa76: 645a str r2, [r3, #68] @ 0x44
  36147. }
  36148. /* Disable the Peripheral */
  36149. __HAL_TIM_DISABLE(htim);
  36150. 800fa78: 687b ldr r3, [r7, #4]
  36151. 800fa7a: 681b ldr r3, [r3, #0]
  36152. 800fa7c: 6a1a ldr r2, [r3, #32]
  36153. 800fa7e: f241 1311 movw r3, #4369 @ 0x1111
  36154. 800fa82: 4013 ands r3, r2
  36155. 800fa84: 2b00 cmp r3, #0
  36156. 800fa86: d10f bne.n 800faa8 <HAL_TIM_PWM_Stop+0xb4>
  36157. 800fa88: 687b ldr r3, [r7, #4]
  36158. 800fa8a: 681b ldr r3, [r3, #0]
  36159. 800fa8c: 6a1a ldr r2, [r3, #32]
  36160. 800fa8e: f240 4344 movw r3, #1092 @ 0x444
  36161. 800fa92: 4013 ands r3, r2
  36162. 800fa94: 2b00 cmp r3, #0
  36163. 800fa96: d107 bne.n 800faa8 <HAL_TIM_PWM_Stop+0xb4>
  36164. 800fa98: 687b ldr r3, [r7, #4]
  36165. 800fa9a: 681b ldr r3, [r3, #0]
  36166. 800fa9c: 681a ldr r2, [r3, #0]
  36167. 800fa9e: 687b ldr r3, [r7, #4]
  36168. 800faa0: 681b ldr r3, [r3, #0]
  36169. 800faa2: f022 0201 bic.w r2, r2, #1
  36170. 800faa6: 601a str r2, [r3, #0]
  36171. /* Set the TIM channel state */
  36172. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  36173. 800faa8: 683b ldr r3, [r7, #0]
  36174. 800faaa: 2b00 cmp r3, #0
  36175. 800faac: d104 bne.n 800fab8 <HAL_TIM_PWM_Stop+0xc4>
  36176. 800faae: 687b ldr r3, [r7, #4]
  36177. 800fab0: 2201 movs r2, #1
  36178. 800fab2: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36179. 800fab6: e023 b.n 800fb00 <HAL_TIM_PWM_Stop+0x10c>
  36180. 800fab8: 683b ldr r3, [r7, #0]
  36181. 800faba: 2b04 cmp r3, #4
  36182. 800fabc: d104 bne.n 800fac8 <HAL_TIM_PWM_Stop+0xd4>
  36183. 800fabe: 687b ldr r3, [r7, #4]
  36184. 800fac0: 2201 movs r2, #1
  36185. 800fac2: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36186. 800fac6: e01b b.n 800fb00 <HAL_TIM_PWM_Stop+0x10c>
  36187. 800fac8: 683b ldr r3, [r7, #0]
  36188. 800faca: 2b08 cmp r3, #8
  36189. 800facc: d104 bne.n 800fad8 <HAL_TIM_PWM_Stop+0xe4>
  36190. 800face: 687b ldr r3, [r7, #4]
  36191. 800fad0: 2201 movs r2, #1
  36192. 800fad2: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36193. 800fad6: e013 b.n 800fb00 <HAL_TIM_PWM_Stop+0x10c>
  36194. 800fad8: 683b ldr r3, [r7, #0]
  36195. 800fada: 2b0c cmp r3, #12
  36196. 800fadc: d104 bne.n 800fae8 <HAL_TIM_PWM_Stop+0xf4>
  36197. 800fade: 687b ldr r3, [r7, #4]
  36198. 800fae0: 2201 movs r2, #1
  36199. 800fae2: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36200. 800fae6: e00b b.n 800fb00 <HAL_TIM_PWM_Stop+0x10c>
  36201. 800fae8: 683b ldr r3, [r7, #0]
  36202. 800faea: 2b10 cmp r3, #16
  36203. 800faec: d104 bne.n 800faf8 <HAL_TIM_PWM_Stop+0x104>
  36204. 800faee: 687b ldr r3, [r7, #4]
  36205. 800faf0: 2201 movs r2, #1
  36206. 800faf2: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36207. 800faf6: e003 b.n 800fb00 <HAL_TIM_PWM_Stop+0x10c>
  36208. 800faf8: 687b ldr r3, [r7, #4]
  36209. 800fafa: 2201 movs r2, #1
  36210. 800fafc: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36211. /* Return function status */
  36212. return HAL_OK;
  36213. 800fb00: 2300 movs r3, #0
  36214. }
  36215. 800fb02: 4618 mov r0, r3
  36216. 800fb04: 3708 adds r7, #8
  36217. 800fb06: 46bd mov sp, r7
  36218. 800fb08: bd80 pop {r7, pc}
  36219. 800fb0a: bf00 nop
  36220. 800fb0c: 40010000 .word 0x40010000
  36221. 800fb10: 40010400 .word 0x40010400
  36222. 800fb14: 40014000 .word 0x40014000
  36223. 800fb18: 40014400 .word 0x40014400
  36224. 800fb1c: 40014800 .word 0x40014800
  36225. 0800fb20 <HAL_TIM_IC_Init>:
  36226. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  36227. * @param htim TIM Input Capture handle
  36228. * @retval HAL status
  36229. */
  36230. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  36231. {
  36232. 800fb20: b580 push {r7, lr}
  36233. 800fb22: b082 sub sp, #8
  36234. 800fb24: af00 add r7, sp, #0
  36235. 800fb26: 6078 str r0, [r7, #4]
  36236. /* Check the TIM handle allocation */
  36237. if (htim == NULL)
  36238. 800fb28: 687b ldr r3, [r7, #4]
  36239. 800fb2a: 2b00 cmp r3, #0
  36240. 800fb2c: d101 bne.n 800fb32 <HAL_TIM_IC_Init+0x12>
  36241. {
  36242. return HAL_ERROR;
  36243. 800fb2e: 2301 movs r3, #1
  36244. 800fb30: e049 b.n 800fbc6 <HAL_TIM_IC_Init+0xa6>
  36245. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  36246. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  36247. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  36248. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  36249. if (htim->State == HAL_TIM_STATE_RESET)
  36250. 800fb32: 687b ldr r3, [r7, #4]
  36251. 800fb34: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  36252. 800fb38: b2db uxtb r3, r3
  36253. 800fb3a: 2b00 cmp r3, #0
  36254. 800fb3c: d106 bne.n 800fb4c <HAL_TIM_IC_Init+0x2c>
  36255. {
  36256. /* Allocate lock resource and initialize it */
  36257. htim->Lock = HAL_UNLOCKED;
  36258. 800fb3e: 687b ldr r3, [r7, #4]
  36259. 800fb40: 2200 movs r2, #0
  36260. 800fb42: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36261. }
  36262. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  36263. htim->IC_MspInitCallback(htim);
  36264. #else
  36265. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  36266. HAL_TIM_IC_MspInit(htim);
  36267. 800fb46: 6878 ldr r0, [r7, #4]
  36268. 800fb48: f000 f841 bl 800fbce <HAL_TIM_IC_MspInit>
  36269. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36270. }
  36271. /* Set the TIM state */
  36272. htim->State = HAL_TIM_STATE_BUSY;
  36273. 800fb4c: 687b ldr r3, [r7, #4]
  36274. 800fb4e: 2202 movs r2, #2
  36275. 800fb50: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36276. /* Init the base time for the input capture */
  36277. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  36278. 800fb54: 687b ldr r3, [r7, #4]
  36279. 800fb56: 681a ldr r2, [r3, #0]
  36280. 800fb58: 687b ldr r3, [r7, #4]
  36281. 800fb5a: 3304 adds r3, #4
  36282. 800fb5c: 4619 mov r1, r3
  36283. 800fb5e: 4610 mov r0, r2
  36284. 800fb60: f000 fddc bl 801071c <TIM_Base_SetConfig>
  36285. /* Initialize the DMA burst operation state */
  36286. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  36287. 800fb64: 687b ldr r3, [r7, #4]
  36288. 800fb66: 2201 movs r2, #1
  36289. 800fb68: f883 2048 strb.w r2, [r3, #72] @ 0x48
  36290. /* Initialize the TIM channels state */
  36291. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36292. 800fb6c: 687b ldr r3, [r7, #4]
  36293. 800fb6e: 2201 movs r2, #1
  36294. 800fb70: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36295. 800fb74: 687b ldr r3, [r7, #4]
  36296. 800fb76: 2201 movs r2, #1
  36297. 800fb78: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36298. 800fb7c: 687b ldr r3, [r7, #4]
  36299. 800fb7e: 2201 movs r2, #1
  36300. 800fb80: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36301. 800fb84: 687b ldr r3, [r7, #4]
  36302. 800fb86: 2201 movs r2, #1
  36303. 800fb88: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36304. 800fb8c: 687b ldr r3, [r7, #4]
  36305. 800fb8e: 2201 movs r2, #1
  36306. 800fb90: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36307. 800fb94: 687b ldr r3, [r7, #4]
  36308. 800fb96: 2201 movs r2, #1
  36309. 800fb98: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36310. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36311. 800fb9c: 687b ldr r3, [r7, #4]
  36312. 800fb9e: 2201 movs r2, #1
  36313. 800fba0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36314. 800fba4: 687b ldr r3, [r7, #4]
  36315. 800fba6: 2201 movs r2, #1
  36316. 800fba8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36317. 800fbac: 687b ldr r3, [r7, #4]
  36318. 800fbae: 2201 movs r2, #1
  36319. 800fbb0: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36320. 800fbb4: 687b ldr r3, [r7, #4]
  36321. 800fbb6: 2201 movs r2, #1
  36322. 800fbb8: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36323. /* Initialize the TIM state*/
  36324. htim->State = HAL_TIM_STATE_READY;
  36325. 800fbbc: 687b ldr r3, [r7, #4]
  36326. 800fbbe: 2201 movs r2, #1
  36327. 800fbc0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36328. return HAL_OK;
  36329. 800fbc4: 2300 movs r3, #0
  36330. }
  36331. 800fbc6: 4618 mov r0, r3
  36332. 800fbc8: 3708 adds r7, #8
  36333. 800fbca: 46bd mov sp, r7
  36334. 800fbcc: bd80 pop {r7, pc}
  36335. 0800fbce <HAL_TIM_IC_MspInit>:
  36336. * @brief Initializes the TIM Input Capture MSP.
  36337. * @param htim TIM Input Capture handle
  36338. * @retval None
  36339. */
  36340. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  36341. {
  36342. 800fbce: b480 push {r7}
  36343. 800fbd0: b083 sub sp, #12
  36344. 800fbd2: af00 add r7, sp, #0
  36345. 800fbd4: 6078 str r0, [r7, #4]
  36346. UNUSED(htim);
  36347. /* NOTE : This function should not be modified, when the callback is needed,
  36348. the HAL_TIM_IC_MspInit could be implemented in the user file
  36349. */
  36350. }
  36351. 800fbd6: bf00 nop
  36352. 800fbd8: 370c adds r7, #12
  36353. 800fbda: 46bd mov sp, r7
  36354. 800fbdc: f85d 7b04 ldr.w r7, [sp], #4
  36355. 800fbe0: 4770 bx lr
  36356. ...
  36357. 0800fbe4 <HAL_TIM_IC_Start_IT>:
  36358. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36359. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36360. * @retval HAL status
  36361. */
  36362. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  36363. {
  36364. 800fbe4: b580 push {r7, lr}
  36365. 800fbe6: b084 sub sp, #16
  36366. 800fbe8: af00 add r7, sp, #0
  36367. 800fbea: 6078 str r0, [r7, #4]
  36368. 800fbec: 6039 str r1, [r7, #0]
  36369. HAL_StatusTypeDef status = HAL_OK;
  36370. 800fbee: 2300 movs r3, #0
  36371. 800fbf0: 73fb strb r3, [r7, #15]
  36372. uint32_t tmpsmcr;
  36373. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36374. 800fbf2: 683b ldr r3, [r7, #0]
  36375. 800fbf4: 2b00 cmp r3, #0
  36376. 800fbf6: d104 bne.n 800fc02 <HAL_TIM_IC_Start_IT+0x1e>
  36377. 800fbf8: 687b ldr r3, [r7, #4]
  36378. 800fbfa: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36379. 800fbfe: b2db uxtb r3, r3
  36380. 800fc00: e023 b.n 800fc4a <HAL_TIM_IC_Start_IT+0x66>
  36381. 800fc02: 683b ldr r3, [r7, #0]
  36382. 800fc04: 2b04 cmp r3, #4
  36383. 800fc06: d104 bne.n 800fc12 <HAL_TIM_IC_Start_IT+0x2e>
  36384. 800fc08: 687b ldr r3, [r7, #4]
  36385. 800fc0a: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36386. 800fc0e: b2db uxtb r3, r3
  36387. 800fc10: e01b b.n 800fc4a <HAL_TIM_IC_Start_IT+0x66>
  36388. 800fc12: 683b ldr r3, [r7, #0]
  36389. 800fc14: 2b08 cmp r3, #8
  36390. 800fc16: d104 bne.n 800fc22 <HAL_TIM_IC_Start_IT+0x3e>
  36391. 800fc18: 687b ldr r3, [r7, #4]
  36392. 800fc1a: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36393. 800fc1e: b2db uxtb r3, r3
  36394. 800fc20: e013 b.n 800fc4a <HAL_TIM_IC_Start_IT+0x66>
  36395. 800fc22: 683b ldr r3, [r7, #0]
  36396. 800fc24: 2b0c cmp r3, #12
  36397. 800fc26: d104 bne.n 800fc32 <HAL_TIM_IC_Start_IT+0x4e>
  36398. 800fc28: 687b ldr r3, [r7, #4]
  36399. 800fc2a: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36400. 800fc2e: b2db uxtb r3, r3
  36401. 800fc30: e00b b.n 800fc4a <HAL_TIM_IC_Start_IT+0x66>
  36402. 800fc32: 683b ldr r3, [r7, #0]
  36403. 800fc34: 2b10 cmp r3, #16
  36404. 800fc36: d104 bne.n 800fc42 <HAL_TIM_IC_Start_IT+0x5e>
  36405. 800fc38: 687b ldr r3, [r7, #4]
  36406. 800fc3a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36407. 800fc3e: b2db uxtb r3, r3
  36408. 800fc40: e003 b.n 800fc4a <HAL_TIM_IC_Start_IT+0x66>
  36409. 800fc42: 687b ldr r3, [r7, #4]
  36410. 800fc44: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36411. 800fc48: b2db uxtb r3, r3
  36412. 800fc4a: 73bb strb r3, [r7, #14]
  36413. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  36414. 800fc4c: 683b ldr r3, [r7, #0]
  36415. 800fc4e: 2b00 cmp r3, #0
  36416. 800fc50: d104 bne.n 800fc5c <HAL_TIM_IC_Start_IT+0x78>
  36417. 800fc52: 687b ldr r3, [r7, #4]
  36418. 800fc54: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  36419. 800fc58: b2db uxtb r3, r3
  36420. 800fc5a: e013 b.n 800fc84 <HAL_TIM_IC_Start_IT+0xa0>
  36421. 800fc5c: 683b ldr r3, [r7, #0]
  36422. 800fc5e: 2b04 cmp r3, #4
  36423. 800fc60: d104 bne.n 800fc6c <HAL_TIM_IC_Start_IT+0x88>
  36424. 800fc62: 687b ldr r3, [r7, #4]
  36425. 800fc64: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  36426. 800fc68: b2db uxtb r3, r3
  36427. 800fc6a: e00b b.n 800fc84 <HAL_TIM_IC_Start_IT+0xa0>
  36428. 800fc6c: 683b ldr r3, [r7, #0]
  36429. 800fc6e: 2b08 cmp r3, #8
  36430. 800fc70: d104 bne.n 800fc7c <HAL_TIM_IC_Start_IT+0x98>
  36431. 800fc72: 687b ldr r3, [r7, #4]
  36432. 800fc74: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  36433. 800fc78: b2db uxtb r3, r3
  36434. 800fc7a: e003 b.n 800fc84 <HAL_TIM_IC_Start_IT+0xa0>
  36435. 800fc7c: 687b ldr r3, [r7, #4]
  36436. 800fc7e: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  36437. 800fc82: b2db uxtb r3, r3
  36438. 800fc84: 737b strb r3, [r7, #13]
  36439. /* Check the parameters */
  36440. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  36441. /* Check the TIM channel state */
  36442. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  36443. 800fc86: 7bbb ldrb r3, [r7, #14]
  36444. 800fc88: 2b01 cmp r3, #1
  36445. 800fc8a: d102 bne.n 800fc92 <HAL_TIM_IC_Start_IT+0xae>
  36446. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  36447. 800fc8c: 7b7b ldrb r3, [r7, #13]
  36448. 800fc8e: 2b01 cmp r3, #1
  36449. 800fc90: d001 beq.n 800fc96 <HAL_TIM_IC_Start_IT+0xb2>
  36450. {
  36451. return HAL_ERROR;
  36452. 800fc92: 2301 movs r3, #1
  36453. 800fc94: e0e2 b.n 800fe5c <HAL_TIM_IC_Start_IT+0x278>
  36454. }
  36455. /* Set the TIM channel state */
  36456. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36457. 800fc96: 683b ldr r3, [r7, #0]
  36458. 800fc98: 2b00 cmp r3, #0
  36459. 800fc9a: d104 bne.n 800fca6 <HAL_TIM_IC_Start_IT+0xc2>
  36460. 800fc9c: 687b ldr r3, [r7, #4]
  36461. 800fc9e: 2202 movs r2, #2
  36462. 800fca0: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36463. 800fca4: e023 b.n 800fcee <HAL_TIM_IC_Start_IT+0x10a>
  36464. 800fca6: 683b ldr r3, [r7, #0]
  36465. 800fca8: 2b04 cmp r3, #4
  36466. 800fcaa: d104 bne.n 800fcb6 <HAL_TIM_IC_Start_IT+0xd2>
  36467. 800fcac: 687b ldr r3, [r7, #4]
  36468. 800fcae: 2202 movs r2, #2
  36469. 800fcb0: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36470. 800fcb4: e01b b.n 800fcee <HAL_TIM_IC_Start_IT+0x10a>
  36471. 800fcb6: 683b ldr r3, [r7, #0]
  36472. 800fcb8: 2b08 cmp r3, #8
  36473. 800fcba: d104 bne.n 800fcc6 <HAL_TIM_IC_Start_IT+0xe2>
  36474. 800fcbc: 687b ldr r3, [r7, #4]
  36475. 800fcbe: 2202 movs r2, #2
  36476. 800fcc0: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36477. 800fcc4: e013 b.n 800fcee <HAL_TIM_IC_Start_IT+0x10a>
  36478. 800fcc6: 683b ldr r3, [r7, #0]
  36479. 800fcc8: 2b0c cmp r3, #12
  36480. 800fcca: d104 bne.n 800fcd6 <HAL_TIM_IC_Start_IT+0xf2>
  36481. 800fccc: 687b ldr r3, [r7, #4]
  36482. 800fcce: 2202 movs r2, #2
  36483. 800fcd0: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36484. 800fcd4: e00b b.n 800fcee <HAL_TIM_IC_Start_IT+0x10a>
  36485. 800fcd6: 683b ldr r3, [r7, #0]
  36486. 800fcd8: 2b10 cmp r3, #16
  36487. 800fcda: d104 bne.n 800fce6 <HAL_TIM_IC_Start_IT+0x102>
  36488. 800fcdc: 687b ldr r3, [r7, #4]
  36489. 800fcde: 2202 movs r2, #2
  36490. 800fce0: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36491. 800fce4: e003 b.n 800fcee <HAL_TIM_IC_Start_IT+0x10a>
  36492. 800fce6: 687b ldr r3, [r7, #4]
  36493. 800fce8: 2202 movs r2, #2
  36494. 800fcea: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36495. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36496. 800fcee: 683b ldr r3, [r7, #0]
  36497. 800fcf0: 2b00 cmp r3, #0
  36498. 800fcf2: d104 bne.n 800fcfe <HAL_TIM_IC_Start_IT+0x11a>
  36499. 800fcf4: 687b ldr r3, [r7, #4]
  36500. 800fcf6: 2202 movs r2, #2
  36501. 800fcf8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36502. 800fcfc: e013 b.n 800fd26 <HAL_TIM_IC_Start_IT+0x142>
  36503. 800fcfe: 683b ldr r3, [r7, #0]
  36504. 800fd00: 2b04 cmp r3, #4
  36505. 800fd02: d104 bne.n 800fd0e <HAL_TIM_IC_Start_IT+0x12a>
  36506. 800fd04: 687b ldr r3, [r7, #4]
  36507. 800fd06: 2202 movs r2, #2
  36508. 800fd08: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36509. 800fd0c: e00b b.n 800fd26 <HAL_TIM_IC_Start_IT+0x142>
  36510. 800fd0e: 683b ldr r3, [r7, #0]
  36511. 800fd10: 2b08 cmp r3, #8
  36512. 800fd12: d104 bne.n 800fd1e <HAL_TIM_IC_Start_IT+0x13a>
  36513. 800fd14: 687b ldr r3, [r7, #4]
  36514. 800fd16: 2202 movs r2, #2
  36515. 800fd18: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36516. 800fd1c: e003 b.n 800fd26 <HAL_TIM_IC_Start_IT+0x142>
  36517. 800fd1e: 687b ldr r3, [r7, #4]
  36518. 800fd20: 2202 movs r2, #2
  36519. 800fd22: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36520. switch (Channel)
  36521. 800fd26: 683b ldr r3, [r7, #0]
  36522. 800fd28: 2b0c cmp r3, #12
  36523. 800fd2a: d841 bhi.n 800fdb0 <HAL_TIM_IC_Start_IT+0x1cc>
  36524. 800fd2c: a201 add r2, pc, #4 @ (adr r2, 800fd34 <HAL_TIM_IC_Start_IT+0x150>)
  36525. 800fd2e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36526. 800fd32: bf00 nop
  36527. 800fd34: 0800fd69 .word 0x0800fd69
  36528. 800fd38: 0800fdb1 .word 0x0800fdb1
  36529. 800fd3c: 0800fdb1 .word 0x0800fdb1
  36530. 800fd40: 0800fdb1 .word 0x0800fdb1
  36531. 800fd44: 0800fd7b .word 0x0800fd7b
  36532. 800fd48: 0800fdb1 .word 0x0800fdb1
  36533. 800fd4c: 0800fdb1 .word 0x0800fdb1
  36534. 800fd50: 0800fdb1 .word 0x0800fdb1
  36535. 800fd54: 0800fd8d .word 0x0800fd8d
  36536. 800fd58: 0800fdb1 .word 0x0800fdb1
  36537. 800fd5c: 0800fdb1 .word 0x0800fdb1
  36538. 800fd60: 0800fdb1 .word 0x0800fdb1
  36539. 800fd64: 0800fd9f .word 0x0800fd9f
  36540. {
  36541. case TIM_CHANNEL_1:
  36542. {
  36543. /* Enable the TIM Capture/Compare 1 interrupt */
  36544. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  36545. 800fd68: 687b ldr r3, [r7, #4]
  36546. 800fd6a: 681b ldr r3, [r3, #0]
  36547. 800fd6c: 68da ldr r2, [r3, #12]
  36548. 800fd6e: 687b ldr r3, [r7, #4]
  36549. 800fd70: 681b ldr r3, [r3, #0]
  36550. 800fd72: f042 0202 orr.w r2, r2, #2
  36551. 800fd76: 60da str r2, [r3, #12]
  36552. break;
  36553. 800fd78: e01d b.n 800fdb6 <HAL_TIM_IC_Start_IT+0x1d2>
  36554. }
  36555. case TIM_CHANNEL_2:
  36556. {
  36557. /* Enable the TIM Capture/Compare 2 interrupt */
  36558. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  36559. 800fd7a: 687b ldr r3, [r7, #4]
  36560. 800fd7c: 681b ldr r3, [r3, #0]
  36561. 800fd7e: 68da ldr r2, [r3, #12]
  36562. 800fd80: 687b ldr r3, [r7, #4]
  36563. 800fd82: 681b ldr r3, [r3, #0]
  36564. 800fd84: f042 0204 orr.w r2, r2, #4
  36565. 800fd88: 60da str r2, [r3, #12]
  36566. break;
  36567. 800fd8a: e014 b.n 800fdb6 <HAL_TIM_IC_Start_IT+0x1d2>
  36568. }
  36569. case TIM_CHANNEL_3:
  36570. {
  36571. /* Enable the TIM Capture/Compare 3 interrupt */
  36572. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  36573. 800fd8c: 687b ldr r3, [r7, #4]
  36574. 800fd8e: 681b ldr r3, [r3, #0]
  36575. 800fd90: 68da ldr r2, [r3, #12]
  36576. 800fd92: 687b ldr r3, [r7, #4]
  36577. 800fd94: 681b ldr r3, [r3, #0]
  36578. 800fd96: f042 0208 orr.w r2, r2, #8
  36579. 800fd9a: 60da str r2, [r3, #12]
  36580. break;
  36581. 800fd9c: e00b b.n 800fdb6 <HAL_TIM_IC_Start_IT+0x1d2>
  36582. }
  36583. case TIM_CHANNEL_4:
  36584. {
  36585. /* Enable the TIM Capture/Compare 4 interrupt */
  36586. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  36587. 800fd9e: 687b ldr r3, [r7, #4]
  36588. 800fda0: 681b ldr r3, [r3, #0]
  36589. 800fda2: 68da ldr r2, [r3, #12]
  36590. 800fda4: 687b ldr r3, [r7, #4]
  36591. 800fda6: 681b ldr r3, [r3, #0]
  36592. 800fda8: f042 0210 orr.w r2, r2, #16
  36593. 800fdac: 60da str r2, [r3, #12]
  36594. break;
  36595. 800fdae: e002 b.n 800fdb6 <HAL_TIM_IC_Start_IT+0x1d2>
  36596. }
  36597. default:
  36598. status = HAL_ERROR;
  36599. 800fdb0: 2301 movs r3, #1
  36600. 800fdb2: 73fb strb r3, [r7, #15]
  36601. break;
  36602. 800fdb4: bf00 nop
  36603. }
  36604. if (status == HAL_OK)
  36605. 800fdb6: 7bfb ldrb r3, [r7, #15]
  36606. 800fdb8: 2b00 cmp r3, #0
  36607. 800fdba: d14e bne.n 800fe5a <HAL_TIM_IC_Start_IT+0x276>
  36608. {
  36609. /* Enable the Input Capture channel */
  36610. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  36611. 800fdbc: 687b ldr r3, [r7, #4]
  36612. 800fdbe: 681b ldr r3, [r3, #0]
  36613. 800fdc0: 2201 movs r2, #1
  36614. 800fdc2: 6839 ldr r1, [r7, #0]
  36615. 800fdc4: 4618 mov r0, r3
  36616. 800fdc6: f001 f9ed bl 80111a4 <TIM_CCxChannelCmd>
  36617. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  36618. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  36619. 800fdca: 687b ldr r3, [r7, #4]
  36620. 800fdcc: 681b ldr r3, [r3, #0]
  36621. 800fdce: 4a25 ldr r2, [pc, #148] @ (800fe64 <HAL_TIM_IC_Start_IT+0x280>)
  36622. 800fdd0: 4293 cmp r3, r2
  36623. 800fdd2: d022 beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36624. 800fdd4: 687b ldr r3, [r7, #4]
  36625. 800fdd6: 681b ldr r3, [r3, #0]
  36626. 800fdd8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36627. 800fddc: d01d beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36628. 800fdde: 687b ldr r3, [r7, #4]
  36629. 800fde0: 681b ldr r3, [r3, #0]
  36630. 800fde2: 4a21 ldr r2, [pc, #132] @ (800fe68 <HAL_TIM_IC_Start_IT+0x284>)
  36631. 800fde4: 4293 cmp r3, r2
  36632. 800fde6: d018 beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36633. 800fde8: 687b ldr r3, [r7, #4]
  36634. 800fdea: 681b ldr r3, [r3, #0]
  36635. 800fdec: 4a1f ldr r2, [pc, #124] @ (800fe6c <HAL_TIM_IC_Start_IT+0x288>)
  36636. 800fdee: 4293 cmp r3, r2
  36637. 800fdf0: d013 beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36638. 800fdf2: 687b ldr r3, [r7, #4]
  36639. 800fdf4: 681b ldr r3, [r3, #0]
  36640. 800fdf6: 4a1e ldr r2, [pc, #120] @ (800fe70 <HAL_TIM_IC_Start_IT+0x28c>)
  36641. 800fdf8: 4293 cmp r3, r2
  36642. 800fdfa: d00e beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36643. 800fdfc: 687b ldr r3, [r7, #4]
  36644. 800fdfe: 681b ldr r3, [r3, #0]
  36645. 800fe00: 4a1c ldr r2, [pc, #112] @ (800fe74 <HAL_TIM_IC_Start_IT+0x290>)
  36646. 800fe02: 4293 cmp r3, r2
  36647. 800fe04: d009 beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36648. 800fe06: 687b ldr r3, [r7, #4]
  36649. 800fe08: 681b ldr r3, [r3, #0]
  36650. 800fe0a: 4a1b ldr r2, [pc, #108] @ (800fe78 <HAL_TIM_IC_Start_IT+0x294>)
  36651. 800fe0c: 4293 cmp r3, r2
  36652. 800fe0e: d004 beq.n 800fe1a <HAL_TIM_IC_Start_IT+0x236>
  36653. 800fe10: 687b ldr r3, [r7, #4]
  36654. 800fe12: 681b ldr r3, [r3, #0]
  36655. 800fe14: 4a19 ldr r2, [pc, #100] @ (800fe7c <HAL_TIM_IC_Start_IT+0x298>)
  36656. 800fe16: 4293 cmp r3, r2
  36657. 800fe18: d115 bne.n 800fe46 <HAL_TIM_IC_Start_IT+0x262>
  36658. {
  36659. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  36660. 800fe1a: 687b ldr r3, [r7, #4]
  36661. 800fe1c: 681b ldr r3, [r3, #0]
  36662. 800fe1e: 689a ldr r2, [r3, #8]
  36663. 800fe20: 4b17 ldr r3, [pc, #92] @ (800fe80 <HAL_TIM_IC_Start_IT+0x29c>)
  36664. 800fe22: 4013 ands r3, r2
  36665. 800fe24: 60bb str r3, [r7, #8]
  36666. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36667. 800fe26: 68bb ldr r3, [r7, #8]
  36668. 800fe28: 2b06 cmp r3, #6
  36669. 800fe2a: d015 beq.n 800fe58 <HAL_TIM_IC_Start_IT+0x274>
  36670. 800fe2c: 68bb ldr r3, [r7, #8]
  36671. 800fe2e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  36672. 800fe32: d011 beq.n 800fe58 <HAL_TIM_IC_Start_IT+0x274>
  36673. {
  36674. __HAL_TIM_ENABLE(htim);
  36675. 800fe34: 687b ldr r3, [r7, #4]
  36676. 800fe36: 681b ldr r3, [r3, #0]
  36677. 800fe38: 681a ldr r2, [r3, #0]
  36678. 800fe3a: 687b ldr r3, [r7, #4]
  36679. 800fe3c: 681b ldr r3, [r3, #0]
  36680. 800fe3e: f042 0201 orr.w r2, r2, #1
  36681. 800fe42: 601a str r2, [r3, #0]
  36682. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36683. 800fe44: e008 b.n 800fe58 <HAL_TIM_IC_Start_IT+0x274>
  36684. }
  36685. }
  36686. else
  36687. {
  36688. __HAL_TIM_ENABLE(htim);
  36689. 800fe46: 687b ldr r3, [r7, #4]
  36690. 800fe48: 681b ldr r3, [r3, #0]
  36691. 800fe4a: 681a ldr r2, [r3, #0]
  36692. 800fe4c: 687b ldr r3, [r7, #4]
  36693. 800fe4e: 681b ldr r3, [r3, #0]
  36694. 800fe50: f042 0201 orr.w r2, r2, #1
  36695. 800fe54: 601a str r2, [r3, #0]
  36696. 800fe56: e000 b.n 800fe5a <HAL_TIM_IC_Start_IT+0x276>
  36697. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36698. 800fe58: bf00 nop
  36699. }
  36700. }
  36701. /* Return function status */
  36702. return status;
  36703. 800fe5a: 7bfb ldrb r3, [r7, #15]
  36704. }
  36705. 800fe5c: 4618 mov r0, r3
  36706. 800fe5e: 3710 adds r7, #16
  36707. 800fe60: 46bd mov sp, r7
  36708. 800fe62: bd80 pop {r7, pc}
  36709. 800fe64: 40010000 .word 0x40010000
  36710. 800fe68: 40000400 .word 0x40000400
  36711. 800fe6c: 40000800 .word 0x40000800
  36712. 800fe70: 40000c00 .word 0x40000c00
  36713. 800fe74: 40010400 .word 0x40010400
  36714. 800fe78: 40001800 .word 0x40001800
  36715. 800fe7c: 40014000 .word 0x40014000
  36716. 800fe80: 00010007 .word 0x00010007
  36717. 0800fe84 <HAL_TIM_IRQHandler>:
  36718. * @brief This function handles TIM interrupts requests.
  36719. * @param htim TIM handle
  36720. * @retval None
  36721. */
  36722. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  36723. {
  36724. 800fe84: b580 push {r7, lr}
  36725. 800fe86: b084 sub sp, #16
  36726. 800fe88: af00 add r7, sp, #0
  36727. 800fe8a: 6078 str r0, [r7, #4]
  36728. uint32_t itsource = htim->Instance->DIER;
  36729. 800fe8c: 687b ldr r3, [r7, #4]
  36730. 800fe8e: 681b ldr r3, [r3, #0]
  36731. 800fe90: 68db ldr r3, [r3, #12]
  36732. 800fe92: 60fb str r3, [r7, #12]
  36733. uint32_t itflag = htim->Instance->SR;
  36734. 800fe94: 687b ldr r3, [r7, #4]
  36735. 800fe96: 681b ldr r3, [r3, #0]
  36736. 800fe98: 691b ldr r3, [r3, #16]
  36737. 800fe9a: 60bb str r3, [r7, #8]
  36738. /* Capture compare 1 event */
  36739. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  36740. 800fe9c: 68bb ldr r3, [r7, #8]
  36741. 800fe9e: f003 0302 and.w r3, r3, #2
  36742. 800fea2: 2b00 cmp r3, #0
  36743. 800fea4: d020 beq.n 800fee8 <HAL_TIM_IRQHandler+0x64>
  36744. {
  36745. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  36746. 800fea6: 68fb ldr r3, [r7, #12]
  36747. 800fea8: f003 0302 and.w r3, r3, #2
  36748. 800feac: 2b00 cmp r3, #0
  36749. 800feae: d01b beq.n 800fee8 <HAL_TIM_IRQHandler+0x64>
  36750. {
  36751. {
  36752. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  36753. 800feb0: 687b ldr r3, [r7, #4]
  36754. 800feb2: 681b ldr r3, [r3, #0]
  36755. 800feb4: f06f 0202 mvn.w r2, #2
  36756. 800feb8: 611a str r2, [r3, #16]
  36757. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  36758. 800feba: 687b ldr r3, [r7, #4]
  36759. 800febc: 2201 movs r2, #1
  36760. 800febe: 771a strb r2, [r3, #28]
  36761. /* Input capture event */
  36762. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  36763. 800fec0: 687b ldr r3, [r7, #4]
  36764. 800fec2: 681b ldr r3, [r3, #0]
  36765. 800fec4: 699b ldr r3, [r3, #24]
  36766. 800fec6: f003 0303 and.w r3, r3, #3
  36767. 800feca: 2b00 cmp r3, #0
  36768. 800fecc: d003 beq.n 800fed6 <HAL_TIM_IRQHandler+0x52>
  36769. {
  36770. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36771. htim->IC_CaptureCallback(htim);
  36772. #else
  36773. HAL_TIM_IC_CaptureCallback(htim);
  36774. 800fece: 6878 ldr r0, [r7, #4]
  36775. 800fed0: f7f1 fd6c bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36776. 800fed4: e005 b.n 800fee2 <HAL_TIM_IRQHandler+0x5e>
  36777. {
  36778. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36779. htim->OC_DelayElapsedCallback(htim);
  36780. htim->PWM_PulseFinishedCallback(htim);
  36781. #else
  36782. HAL_TIM_OC_DelayElapsedCallback(htim);
  36783. 800fed6: 6878 ldr r0, [r7, #4]
  36784. 800fed8: f000 fbc8 bl 801066c <HAL_TIM_OC_DelayElapsedCallback>
  36785. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36786. 800fedc: 6878 ldr r0, [r7, #4]
  36787. 800fede: f000 fbcf bl 8010680 <HAL_TIM_PWM_PulseFinishedCallback>
  36788. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36789. }
  36790. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36791. 800fee2: 687b ldr r3, [r7, #4]
  36792. 800fee4: 2200 movs r2, #0
  36793. 800fee6: 771a strb r2, [r3, #28]
  36794. }
  36795. }
  36796. }
  36797. /* Capture compare 2 event */
  36798. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  36799. 800fee8: 68bb ldr r3, [r7, #8]
  36800. 800feea: f003 0304 and.w r3, r3, #4
  36801. 800feee: 2b00 cmp r3, #0
  36802. 800fef0: d020 beq.n 800ff34 <HAL_TIM_IRQHandler+0xb0>
  36803. {
  36804. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  36805. 800fef2: 68fb ldr r3, [r7, #12]
  36806. 800fef4: f003 0304 and.w r3, r3, #4
  36807. 800fef8: 2b00 cmp r3, #0
  36808. 800fefa: d01b beq.n 800ff34 <HAL_TIM_IRQHandler+0xb0>
  36809. {
  36810. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  36811. 800fefc: 687b ldr r3, [r7, #4]
  36812. 800fefe: 681b ldr r3, [r3, #0]
  36813. 800ff00: f06f 0204 mvn.w r2, #4
  36814. 800ff04: 611a str r2, [r3, #16]
  36815. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  36816. 800ff06: 687b ldr r3, [r7, #4]
  36817. 800ff08: 2202 movs r2, #2
  36818. 800ff0a: 771a strb r2, [r3, #28]
  36819. /* Input capture event */
  36820. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  36821. 800ff0c: 687b ldr r3, [r7, #4]
  36822. 800ff0e: 681b ldr r3, [r3, #0]
  36823. 800ff10: 699b ldr r3, [r3, #24]
  36824. 800ff12: f403 7340 and.w r3, r3, #768 @ 0x300
  36825. 800ff16: 2b00 cmp r3, #0
  36826. 800ff18: d003 beq.n 800ff22 <HAL_TIM_IRQHandler+0x9e>
  36827. {
  36828. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36829. htim->IC_CaptureCallback(htim);
  36830. #else
  36831. HAL_TIM_IC_CaptureCallback(htim);
  36832. 800ff1a: 6878 ldr r0, [r7, #4]
  36833. 800ff1c: f7f1 fd46 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36834. 800ff20: e005 b.n 800ff2e <HAL_TIM_IRQHandler+0xaa>
  36835. {
  36836. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36837. htim->OC_DelayElapsedCallback(htim);
  36838. htim->PWM_PulseFinishedCallback(htim);
  36839. #else
  36840. HAL_TIM_OC_DelayElapsedCallback(htim);
  36841. 800ff22: 6878 ldr r0, [r7, #4]
  36842. 800ff24: f000 fba2 bl 801066c <HAL_TIM_OC_DelayElapsedCallback>
  36843. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36844. 800ff28: 6878 ldr r0, [r7, #4]
  36845. 800ff2a: f000 fba9 bl 8010680 <HAL_TIM_PWM_PulseFinishedCallback>
  36846. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36847. }
  36848. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36849. 800ff2e: 687b ldr r3, [r7, #4]
  36850. 800ff30: 2200 movs r2, #0
  36851. 800ff32: 771a strb r2, [r3, #28]
  36852. }
  36853. }
  36854. /* Capture compare 3 event */
  36855. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  36856. 800ff34: 68bb ldr r3, [r7, #8]
  36857. 800ff36: f003 0308 and.w r3, r3, #8
  36858. 800ff3a: 2b00 cmp r3, #0
  36859. 800ff3c: d020 beq.n 800ff80 <HAL_TIM_IRQHandler+0xfc>
  36860. {
  36861. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  36862. 800ff3e: 68fb ldr r3, [r7, #12]
  36863. 800ff40: f003 0308 and.w r3, r3, #8
  36864. 800ff44: 2b00 cmp r3, #0
  36865. 800ff46: d01b beq.n 800ff80 <HAL_TIM_IRQHandler+0xfc>
  36866. {
  36867. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  36868. 800ff48: 687b ldr r3, [r7, #4]
  36869. 800ff4a: 681b ldr r3, [r3, #0]
  36870. 800ff4c: f06f 0208 mvn.w r2, #8
  36871. 800ff50: 611a str r2, [r3, #16]
  36872. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  36873. 800ff52: 687b ldr r3, [r7, #4]
  36874. 800ff54: 2204 movs r2, #4
  36875. 800ff56: 771a strb r2, [r3, #28]
  36876. /* Input capture event */
  36877. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  36878. 800ff58: 687b ldr r3, [r7, #4]
  36879. 800ff5a: 681b ldr r3, [r3, #0]
  36880. 800ff5c: 69db ldr r3, [r3, #28]
  36881. 800ff5e: f003 0303 and.w r3, r3, #3
  36882. 800ff62: 2b00 cmp r3, #0
  36883. 800ff64: d003 beq.n 800ff6e <HAL_TIM_IRQHandler+0xea>
  36884. {
  36885. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36886. htim->IC_CaptureCallback(htim);
  36887. #else
  36888. HAL_TIM_IC_CaptureCallback(htim);
  36889. 800ff66: 6878 ldr r0, [r7, #4]
  36890. 800ff68: f7f1 fd20 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36891. 800ff6c: e005 b.n 800ff7a <HAL_TIM_IRQHandler+0xf6>
  36892. {
  36893. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36894. htim->OC_DelayElapsedCallback(htim);
  36895. htim->PWM_PulseFinishedCallback(htim);
  36896. #else
  36897. HAL_TIM_OC_DelayElapsedCallback(htim);
  36898. 800ff6e: 6878 ldr r0, [r7, #4]
  36899. 800ff70: f000 fb7c bl 801066c <HAL_TIM_OC_DelayElapsedCallback>
  36900. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36901. 800ff74: 6878 ldr r0, [r7, #4]
  36902. 800ff76: f000 fb83 bl 8010680 <HAL_TIM_PWM_PulseFinishedCallback>
  36903. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36904. }
  36905. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36906. 800ff7a: 687b ldr r3, [r7, #4]
  36907. 800ff7c: 2200 movs r2, #0
  36908. 800ff7e: 771a strb r2, [r3, #28]
  36909. }
  36910. }
  36911. /* Capture compare 4 event */
  36912. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  36913. 800ff80: 68bb ldr r3, [r7, #8]
  36914. 800ff82: f003 0310 and.w r3, r3, #16
  36915. 800ff86: 2b00 cmp r3, #0
  36916. 800ff88: d020 beq.n 800ffcc <HAL_TIM_IRQHandler+0x148>
  36917. {
  36918. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  36919. 800ff8a: 68fb ldr r3, [r7, #12]
  36920. 800ff8c: f003 0310 and.w r3, r3, #16
  36921. 800ff90: 2b00 cmp r3, #0
  36922. 800ff92: d01b beq.n 800ffcc <HAL_TIM_IRQHandler+0x148>
  36923. {
  36924. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  36925. 800ff94: 687b ldr r3, [r7, #4]
  36926. 800ff96: 681b ldr r3, [r3, #0]
  36927. 800ff98: f06f 0210 mvn.w r2, #16
  36928. 800ff9c: 611a str r2, [r3, #16]
  36929. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  36930. 800ff9e: 687b ldr r3, [r7, #4]
  36931. 800ffa0: 2208 movs r2, #8
  36932. 800ffa2: 771a strb r2, [r3, #28]
  36933. /* Input capture event */
  36934. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  36935. 800ffa4: 687b ldr r3, [r7, #4]
  36936. 800ffa6: 681b ldr r3, [r3, #0]
  36937. 800ffa8: 69db ldr r3, [r3, #28]
  36938. 800ffaa: f403 7340 and.w r3, r3, #768 @ 0x300
  36939. 800ffae: 2b00 cmp r3, #0
  36940. 800ffb0: d003 beq.n 800ffba <HAL_TIM_IRQHandler+0x136>
  36941. {
  36942. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36943. htim->IC_CaptureCallback(htim);
  36944. #else
  36945. HAL_TIM_IC_CaptureCallback(htim);
  36946. 800ffb2: 6878 ldr r0, [r7, #4]
  36947. 800ffb4: f7f1 fcfa bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36948. 800ffb8: e005 b.n 800ffc6 <HAL_TIM_IRQHandler+0x142>
  36949. {
  36950. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36951. htim->OC_DelayElapsedCallback(htim);
  36952. htim->PWM_PulseFinishedCallback(htim);
  36953. #else
  36954. HAL_TIM_OC_DelayElapsedCallback(htim);
  36955. 800ffba: 6878 ldr r0, [r7, #4]
  36956. 800ffbc: f000 fb56 bl 801066c <HAL_TIM_OC_DelayElapsedCallback>
  36957. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36958. 800ffc0: 6878 ldr r0, [r7, #4]
  36959. 800ffc2: f000 fb5d bl 8010680 <HAL_TIM_PWM_PulseFinishedCallback>
  36960. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36961. }
  36962. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36963. 800ffc6: 687b ldr r3, [r7, #4]
  36964. 800ffc8: 2200 movs r2, #0
  36965. 800ffca: 771a strb r2, [r3, #28]
  36966. }
  36967. }
  36968. /* TIM Update event */
  36969. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  36970. 800ffcc: 68bb ldr r3, [r7, #8]
  36971. 800ffce: f003 0301 and.w r3, r3, #1
  36972. 800ffd2: 2b00 cmp r3, #0
  36973. 800ffd4: d00c beq.n 800fff0 <HAL_TIM_IRQHandler+0x16c>
  36974. {
  36975. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  36976. 800ffd6: 68fb ldr r3, [r7, #12]
  36977. 800ffd8: f003 0301 and.w r3, r3, #1
  36978. 800ffdc: 2b00 cmp r3, #0
  36979. 800ffde: d007 beq.n 800fff0 <HAL_TIM_IRQHandler+0x16c>
  36980. {
  36981. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  36982. 800ffe0: 687b ldr r3, [r7, #4]
  36983. 800ffe2: 681b ldr r3, [r3, #0]
  36984. 800ffe4: f06f 0201 mvn.w r2, #1
  36985. 800ffe8: 611a str r2, [r3, #16]
  36986. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36987. htim->PeriodElapsedCallback(htim);
  36988. #else
  36989. HAL_TIM_PeriodElapsedCallback(htim);
  36990. 800ffea: 6878 ldr r0, [r7, #4]
  36991. 800ffec: f7f1 ff3a bl 8001e64 <HAL_TIM_PeriodElapsedCallback>
  36992. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36993. }
  36994. }
  36995. /* TIM Break input event */
  36996. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36997. 800fff0: 68bb ldr r3, [r7, #8]
  36998. 800fff2: f003 0380 and.w r3, r3, #128 @ 0x80
  36999. 800fff6: 2b00 cmp r3, #0
  37000. 800fff8: d104 bne.n 8010004 <HAL_TIM_IRQHandler+0x180>
  37001. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  37002. 800fffa: 68bb ldr r3, [r7, #8]
  37003. 800fffc: f403 5300 and.w r3, r3, #8192 @ 0x2000
  37004. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  37005. 8010000: 2b00 cmp r3, #0
  37006. 8010002: d00c beq.n 801001e <HAL_TIM_IRQHandler+0x19a>
  37007. {
  37008. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  37009. 8010004: 68fb ldr r3, [r7, #12]
  37010. 8010006: f003 0380 and.w r3, r3, #128 @ 0x80
  37011. 801000a: 2b00 cmp r3, #0
  37012. 801000c: d007 beq.n 801001e <HAL_TIM_IRQHandler+0x19a>
  37013. {
  37014. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  37015. 801000e: 687b ldr r3, [r7, #4]
  37016. 8010010: 681b ldr r3, [r3, #0]
  37017. 8010012: f46f 5202 mvn.w r2, #8320 @ 0x2080
  37018. 8010016: 611a str r2, [r3, #16]
  37019. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37020. htim->BreakCallback(htim);
  37021. #else
  37022. HAL_TIMEx_BreakCallback(htim);
  37023. 8010018: 6878 ldr r0, [r7, #4]
  37024. 801001a: f001 f9ff bl 801141c <HAL_TIMEx_BreakCallback>
  37025. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37026. }
  37027. }
  37028. /* TIM Break2 input event */
  37029. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  37030. 801001e: 68bb ldr r3, [r7, #8]
  37031. 8010020: f403 7380 and.w r3, r3, #256 @ 0x100
  37032. 8010024: 2b00 cmp r3, #0
  37033. 8010026: d00c beq.n 8010042 <HAL_TIM_IRQHandler+0x1be>
  37034. {
  37035. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  37036. 8010028: 68fb ldr r3, [r7, #12]
  37037. 801002a: f003 0380 and.w r3, r3, #128 @ 0x80
  37038. 801002e: 2b00 cmp r3, #0
  37039. 8010030: d007 beq.n 8010042 <HAL_TIM_IRQHandler+0x1be>
  37040. {
  37041. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  37042. 8010032: 687b ldr r3, [r7, #4]
  37043. 8010034: 681b ldr r3, [r3, #0]
  37044. 8010036: f46f 7280 mvn.w r2, #256 @ 0x100
  37045. 801003a: 611a str r2, [r3, #16]
  37046. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37047. htim->Break2Callback(htim);
  37048. #else
  37049. HAL_TIMEx_Break2Callback(htim);
  37050. 801003c: 6878 ldr r0, [r7, #4]
  37051. 801003e: f001 f9f7 bl 8011430 <HAL_TIMEx_Break2Callback>
  37052. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37053. }
  37054. }
  37055. /* TIM Trigger detection event */
  37056. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  37057. 8010042: 68bb ldr r3, [r7, #8]
  37058. 8010044: f003 0340 and.w r3, r3, #64 @ 0x40
  37059. 8010048: 2b00 cmp r3, #0
  37060. 801004a: d00c beq.n 8010066 <HAL_TIM_IRQHandler+0x1e2>
  37061. {
  37062. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  37063. 801004c: 68fb ldr r3, [r7, #12]
  37064. 801004e: f003 0340 and.w r3, r3, #64 @ 0x40
  37065. 8010052: 2b00 cmp r3, #0
  37066. 8010054: d007 beq.n 8010066 <HAL_TIM_IRQHandler+0x1e2>
  37067. {
  37068. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  37069. 8010056: 687b ldr r3, [r7, #4]
  37070. 8010058: 681b ldr r3, [r3, #0]
  37071. 801005a: f06f 0240 mvn.w r2, #64 @ 0x40
  37072. 801005e: 611a str r2, [r3, #16]
  37073. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37074. htim->TriggerCallback(htim);
  37075. #else
  37076. HAL_TIM_TriggerCallback(htim);
  37077. 8010060: 6878 ldr r0, [r7, #4]
  37078. 8010062: f000 fb17 bl 8010694 <HAL_TIM_TriggerCallback>
  37079. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37080. }
  37081. }
  37082. /* TIM commutation event */
  37083. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  37084. 8010066: 68bb ldr r3, [r7, #8]
  37085. 8010068: f003 0320 and.w r3, r3, #32
  37086. 801006c: 2b00 cmp r3, #0
  37087. 801006e: d00c beq.n 801008a <HAL_TIM_IRQHandler+0x206>
  37088. {
  37089. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  37090. 8010070: 68fb ldr r3, [r7, #12]
  37091. 8010072: f003 0320 and.w r3, r3, #32
  37092. 8010076: 2b00 cmp r3, #0
  37093. 8010078: d007 beq.n 801008a <HAL_TIM_IRQHandler+0x206>
  37094. {
  37095. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  37096. 801007a: 687b ldr r3, [r7, #4]
  37097. 801007c: 681b ldr r3, [r3, #0]
  37098. 801007e: f06f 0220 mvn.w r2, #32
  37099. 8010082: 611a str r2, [r3, #16]
  37100. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37101. htim->CommutationCallback(htim);
  37102. #else
  37103. HAL_TIMEx_CommutCallback(htim);
  37104. 8010084: 6878 ldr r0, [r7, #4]
  37105. 8010086: f001 f9bf bl 8011408 <HAL_TIMEx_CommutCallback>
  37106. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37107. }
  37108. }
  37109. }
  37110. 801008a: bf00 nop
  37111. 801008c: 3710 adds r7, #16
  37112. 801008e: 46bd mov sp, r7
  37113. 8010090: bd80 pop {r7, pc}
  37114. 08010092 <HAL_TIM_IC_ConfigChannel>:
  37115. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37116. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37117. * @retval HAL status
  37118. */
  37119. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  37120. {
  37121. 8010092: b580 push {r7, lr}
  37122. 8010094: b086 sub sp, #24
  37123. 8010096: af00 add r7, sp, #0
  37124. 8010098: 60f8 str r0, [r7, #12]
  37125. 801009a: 60b9 str r1, [r7, #8]
  37126. 801009c: 607a str r2, [r7, #4]
  37127. HAL_StatusTypeDef status = HAL_OK;
  37128. 801009e: 2300 movs r3, #0
  37129. 80100a0: 75fb strb r3, [r7, #23]
  37130. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  37131. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  37132. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  37133. /* Process Locked */
  37134. __HAL_LOCK(htim);
  37135. 80100a2: 68fb ldr r3, [r7, #12]
  37136. 80100a4: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37137. 80100a8: 2b01 cmp r3, #1
  37138. 80100aa: d101 bne.n 80100b0 <HAL_TIM_IC_ConfigChannel+0x1e>
  37139. 80100ac: 2302 movs r3, #2
  37140. 80100ae: e088 b.n 80101c2 <HAL_TIM_IC_ConfigChannel+0x130>
  37141. 80100b0: 68fb ldr r3, [r7, #12]
  37142. 80100b2: 2201 movs r2, #1
  37143. 80100b4: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37144. if (Channel == TIM_CHANNEL_1)
  37145. 80100b8: 687b ldr r3, [r7, #4]
  37146. 80100ba: 2b00 cmp r3, #0
  37147. 80100bc: d11b bne.n 80100f6 <HAL_TIM_IC_ConfigChannel+0x64>
  37148. {
  37149. /* TI1 Configuration */
  37150. TIM_TI1_SetConfig(htim->Instance,
  37151. 80100be: 68fb ldr r3, [r7, #12]
  37152. 80100c0: 6818 ldr r0, [r3, #0]
  37153. sConfig->ICPolarity,
  37154. 80100c2: 68bb ldr r3, [r7, #8]
  37155. 80100c4: 6819 ldr r1, [r3, #0]
  37156. sConfig->ICSelection,
  37157. 80100c6: 68bb ldr r3, [r7, #8]
  37158. 80100c8: 685a ldr r2, [r3, #4]
  37159. sConfig->ICFilter);
  37160. 80100ca: 68bb ldr r3, [r7, #8]
  37161. 80100cc: 68db ldr r3, [r3, #12]
  37162. TIM_TI1_SetConfig(htim->Instance,
  37163. 80100ce: f000 fea1 bl 8010e14 <TIM_TI1_SetConfig>
  37164. /* Reset the IC1PSC Bits */
  37165. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  37166. 80100d2: 68fb ldr r3, [r7, #12]
  37167. 80100d4: 681b ldr r3, [r3, #0]
  37168. 80100d6: 699a ldr r2, [r3, #24]
  37169. 80100d8: 68fb ldr r3, [r7, #12]
  37170. 80100da: 681b ldr r3, [r3, #0]
  37171. 80100dc: f022 020c bic.w r2, r2, #12
  37172. 80100e0: 619a str r2, [r3, #24]
  37173. /* Set the IC1PSC value */
  37174. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  37175. 80100e2: 68fb ldr r3, [r7, #12]
  37176. 80100e4: 681b ldr r3, [r3, #0]
  37177. 80100e6: 6999 ldr r1, [r3, #24]
  37178. 80100e8: 68bb ldr r3, [r7, #8]
  37179. 80100ea: 689a ldr r2, [r3, #8]
  37180. 80100ec: 68fb ldr r3, [r7, #12]
  37181. 80100ee: 681b ldr r3, [r3, #0]
  37182. 80100f0: 430a orrs r2, r1
  37183. 80100f2: 619a str r2, [r3, #24]
  37184. 80100f4: e060 b.n 80101b8 <HAL_TIM_IC_ConfigChannel+0x126>
  37185. }
  37186. else if (Channel == TIM_CHANNEL_2)
  37187. 80100f6: 687b ldr r3, [r7, #4]
  37188. 80100f8: 2b04 cmp r3, #4
  37189. 80100fa: d11c bne.n 8010136 <HAL_TIM_IC_ConfigChannel+0xa4>
  37190. {
  37191. /* TI2 Configuration */
  37192. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37193. TIM_TI2_SetConfig(htim->Instance,
  37194. 80100fc: 68fb ldr r3, [r7, #12]
  37195. 80100fe: 6818 ldr r0, [r3, #0]
  37196. sConfig->ICPolarity,
  37197. 8010100: 68bb ldr r3, [r7, #8]
  37198. 8010102: 6819 ldr r1, [r3, #0]
  37199. sConfig->ICSelection,
  37200. 8010104: 68bb ldr r3, [r7, #8]
  37201. 8010106: 685a ldr r2, [r3, #4]
  37202. sConfig->ICFilter);
  37203. 8010108: 68bb ldr r3, [r7, #8]
  37204. 801010a: 68db ldr r3, [r3, #12]
  37205. TIM_TI2_SetConfig(htim->Instance,
  37206. 801010c: f000 ff25 bl 8010f5a <TIM_TI2_SetConfig>
  37207. /* Reset the IC2PSC Bits */
  37208. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  37209. 8010110: 68fb ldr r3, [r7, #12]
  37210. 8010112: 681b ldr r3, [r3, #0]
  37211. 8010114: 699a ldr r2, [r3, #24]
  37212. 8010116: 68fb ldr r3, [r7, #12]
  37213. 8010118: 681b ldr r3, [r3, #0]
  37214. 801011a: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37215. 801011e: 619a str r2, [r3, #24]
  37216. /* Set the IC2PSC value */
  37217. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  37218. 8010120: 68fb ldr r3, [r7, #12]
  37219. 8010122: 681b ldr r3, [r3, #0]
  37220. 8010124: 6999 ldr r1, [r3, #24]
  37221. 8010126: 68bb ldr r3, [r7, #8]
  37222. 8010128: 689b ldr r3, [r3, #8]
  37223. 801012a: 021a lsls r2, r3, #8
  37224. 801012c: 68fb ldr r3, [r7, #12]
  37225. 801012e: 681b ldr r3, [r3, #0]
  37226. 8010130: 430a orrs r2, r1
  37227. 8010132: 619a str r2, [r3, #24]
  37228. 8010134: e040 b.n 80101b8 <HAL_TIM_IC_ConfigChannel+0x126>
  37229. }
  37230. else if (Channel == TIM_CHANNEL_3)
  37231. 8010136: 687b ldr r3, [r7, #4]
  37232. 8010138: 2b08 cmp r3, #8
  37233. 801013a: d11b bne.n 8010174 <HAL_TIM_IC_ConfigChannel+0xe2>
  37234. {
  37235. /* TI3 Configuration */
  37236. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37237. TIM_TI3_SetConfig(htim->Instance,
  37238. 801013c: 68fb ldr r3, [r7, #12]
  37239. 801013e: 6818 ldr r0, [r3, #0]
  37240. sConfig->ICPolarity,
  37241. 8010140: 68bb ldr r3, [r7, #8]
  37242. 8010142: 6819 ldr r1, [r3, #0]
  37243. sConfig->ICSelection,
  37244. 8010144: 68bb ldr r3, [r7, #8]
  37245. 8010146: 685a ldr r2, [r3, #4]
  37246. sConfig->ICFilter);
  37247. 8010148: 68bb ldr r3, [r7, #8]
  37248. 801014a: 68db ldr r3, [r3, #12]
  37249. TIM_TI3_SetConfig(htim->Instance,
  37250. 801014c: f000 ff72 bl 8011034 <TIM_TI3_SetConfig>
  37251. /* Reset the IC3PSC Bits */
  37252. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  37253. 8010150: 68fb ldr r3, [r7, #12]
  37254. 8010152: 681b ldr r3, [r3, #0]
  37255. 8010154: 69da ldr r2, [r3, #28]
  37256. 8010156: 68fb ldr r3, [r7, #12]
  37257. 8010158: 681b ldr r3, [r3, #0]
  37258. 801015a: f022 020c bic.w r2, r2, #12
  37259. 801015e: 61da str r2, [r3, #28]
  37260. /* Set the IC3PSC value */
  37261. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  37262. 8010160: 68fb ldr r3, [r7, #12]
  37263. 8010162: 681b ldr r3, [r3, #0]
  37264. 8010164: 69d9 ldr r1, [r3, #28]
  37265. 8010166: 68bb ldr r3, [r7, #8]
  37266. 8010168: 689a ldr r2, [r3, #8]
  37267. 801016a: 68fb ldr r3, [r7, #12]
  37268. 801016c: 681b ldr r3, [r3, #0]
  37269. 801016e: 430a orrs r2, r1
  37270. 8010170: 61da str r2, [r3, #28]
  37271. 8010172: e021 b.n 80101b8 <HAL_TIM_IC_ConfigChannel+0x126>
  37272. }
  37273. else if (Channel == TIM_CHANNEL_4)
  37274. 8010174: 687b ldr r3, [r7, #4]
  37275. 8010176: 2b0c cmp r3, #12
  37276. 8010178: d11c bne.n 80101b4 <HAL_TIM_IC_ConfigChannel+0x122>
  37277. {
  37278. /* TI4 Configuration */
  37279. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37280. TIM_TI4_SetConfig(htim->Instance,
  37281. 801017a: 68fb ldr r3, [r7, #12]
  37282. 801017c: 6818 ldr r0, [r3, #0]
  37283. sConfig->ICPolarity,
  37284. 801017e: 68bb ldr r3, [r7, #8]
  37285. 8010180: 6819 ldr r1, [r3, #0]
  37286. sConfig->ICSelection,
  37287. 8010182: 68bb ldr r3, [r7, #8]
  37288. 8010184: 685a ldr r2, [r3, #4]
  37289. sConfig->ICFilter);
  37290. 8010186: 68bb ldr r3, [r7, #8]
  37291. 8010188: 68db ldr r3, [r3, #12]
  37292. TIM_TI4_SetConfig(htim->Instance,
  37293. 801018a: f000 ff8f bl 80110ac <TIM_TI4_SetConfig>
  37294. /* Reset the IC4PSC Bits */
  37295. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  37296. 801018e: 68fb ldr r3, [r7, #12]
  37297. 8010190: 681b ldr r3, [r3, #0]
  37298. 8010192: 69da ldr r2, [r3, #28]
  37299. 8010194: 68fb ldr r3, [r7, #12]
  37300. 8010196: 681b ldr r3, [r3, #0]
  37301. 8010198: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37302. 801019c: 61da str r2, [r3, #28]
  37303. /* Set the IC4PSC value */
  37304. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  37305. 801019e: 68fb ldr r3, [r7, #12]
  37306. 80101a0: 681b ldr r3, [r3, #0]
  37307. 80101a2: 69d9 ldr r1, [r3, #28]
  37308. 80101a4: 68bb ldr r3, [r7, #8]
  37309. 80101a6: 689b ldr r3, [r3, #8]
  37310. 80101a8: 021a lsls r2, r3, #8
  37311. 80101aa: 68fb ldr r3, [r7, #12]
  37312. 80101ac: 681b ldr r3, [r3, #0]
  37313. 80101ae: 430a orrs r2, r1
  37314. 80101b0: 61da str r2, [r3, #28]
  37315. 80101b2: e001 b.n 80101b8 <HAL_TIM_IC_ConfigChannel+0x126>
  37316. }
  37317. else
  37318. {
  37319. status = HAL_ERROR;
  37320. 80101b4: 2301 movs r3, #1
  37321. 80101b6: 75fb strb r3, [r7, #23]
  37322. }
  37323. __HAL_UNLOCK(htim);
  37324. 80101b8: 68fb ldr r3, [r7, #12]
  37325. 80101ba: 2200 movs r2, #0
  37326. 80101bc: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37327. return status;
  37328. 80101c0: 7dfb ldrb r3, [r7, #23]
  37329. }
  37330. 80101c2: 4618 mov r0, r3
  37331. 80101c4: 3718 adds r7, #24
  37332. 80101c6: 46bd mov sp, r7
  37333. 80101c8: bd80 pop {r7, pc}
  37334. ...
  37335. 080101cc <HAL_TIM_PWM_ConfigChannel>:
  37336. * @retval HAL status
  37337. */
  37338. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  37339. const TIM_OC_InitTypeDef *sConfig,
  37340. uint32_t Channel)
  37341. {
  37342. 80101cc: b580 push {r7, lr}
  37343. 80101ce: b086 sub sp, #24
  37344. 80101d0: af00 add r7, sp, #0
  37345. 80101d2: 60f8 str r0, [r7, #12]
  37346. 80101d4: 60b9 str r1, [r7, #8]
  37347. 80101d6: 607a str r2, [r7, #4]
  37348. HAL_StatusTypeDef status = HAL_OK;
  37349. 80101d8: 2300 movs r3, #0
  37350. 80101da: 75fb strb r3, [r7, #23]
  37351. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  37352. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  37353. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  37354. /* Process Locked */
  37355. __HAL_LOCK(htim);
  37356. 80101dc: 68fb ldr r3, [r7, #12]
  37357. 80101de: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37358. 80101e2: 2b01 cmp r3, #1
  37359. 80101e4: d101 bne.n 80101ea <HAL_TIM_PWM_ConfigChannel+0x1e>
  37360. 80101e6: 2302 movs r3, #2
  37361. 80101e8: e0ff b.n 80103ea <HAL_TIM_PWM_ConfigChannel+0x21e>
  37362. 80101ea: 68fb ldr r3, [r7, #12]
  37363. 80101ec: 2201 movs r2, #1
  37364. 80101ee: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37365. switch (Channel)
  37366. 80101f2: 687b ldr r3, [r7, #4]
  37367. 80101f4: 2b14 cmp r3, #20
  37368. 80101f6: f200 80f0 bhi.w 80103da <HAL_TIM_PWM_ConfigChannel+0x20e>
  37369. 80101fa: a201 add r2, pc, #4 @ (adr r2, 8010200 <HAL_TIM_PWM_ConfigChannel+0x34>)
  37370. 80101fc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37371. 8010200: 08010255 .word 0x08010255
  37372. 8010204: 080103db .word 0x080103db
  37373. 8010208: 080103db .word 0x080103db
  37374. 801020c: 080103db .word 0x080103db
  37375. 8010210: 08010295 .word 0x08010295
  37376. 8010214: 080103db .word 0x080103db
  37377. 8010218: 080103db .word 0x080103db
  37378. 801021c: 080103db .word 0x080103db
  37379. 8010220: 080102d7 .word 0x080102d7
  37380. 8010224: 080103db .word 0x080103db
  37381. 8010228: 080103db .word 0x080103db
  37382. 801022c: 080103db .word 0x080103db
  37383. 8010230: 08010317 .word 0x08010317
  37384. 8010234: 080103db .word 0x080103db
  37385. 8010238: 080103db .word 0x080103db
  37386. 801023c: 080103db .word 0x080103db
  37387. 8010240: 08010359 .word 0x08010359
  37388. 8010244: 080103db .word 0x080103db
  37389. 8010248: 080103db .word 0x080103db
  37390. 801024c: 080103db .word 0x080103db
  37391. 8010250: 08010399 .word 0x08010399
  37392. {
  37393. /* Check the parameters */
  37394. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37395. /* Configure the Channel 1 in PWM mode */
  37396. TIM_OC1_SetConfig(htim->Instance, sConfig);
  37397. 8010254: 68fb ldr r3, [r7, #12]
  37398. 8010256: 681b ldr r3, [r3, #0]
  37399. 8010258: 68b9 ldr r1, [r7, #8]
  37400. 801025a: 4618 mov r0, r3
  37401. 801025c: f000 fb04 bl 8010868 <TIM_OC1_SetConfig>
  37402. /* Set the Preload enable bit for channel1 */
  37403. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  37404. 8010260: 68fb ldr r3, [r7, #12]
  37405. 8010262: 681b ldr r3, [r3, #0]
  37406. 8010264: 699a ldr r2, [r3, #24]
  37407. 8010266: 68fb ldr r3, [r7, #12]
  37408. 8010268: 681b ldr r3, [r3, #0]
  37409. 801026a: f042 0208 orr.w r2, r2, #8
  37410. 801026e: 619a str r2, [r3, #24]
  37411. /* Configure the Output Fast mode */
  37412. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  37413. 8010270: 68fb ldr r3, [r7, #12]
  37414. 8010272: 681b ldr r3, [r3, #0]
  37415. 8010274: 699a ldr r2, [r3, #24]
  37416. 8010276: 68fb ldr r3, [r7, #12]
  37417. 8010278: 681b ldr r3, [r3, #0]
  37418. 801027a: f022 0204 bic.w r2, r2, #4
  37419. 801027e: 619a str r2, [r3, #24]
  37420. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  37421. 8010280: 68fb ldr r3, [r7, #12]
  37422. 8010282: 681b ldr r3, [r3, #0]
  37423. 8010284: 6999 ldr r1, [r3, #24]
  37424. 8010286: 68bb ldr r3, [r7, #8]
  37425. 8010288: 691a ldr r2, [r3, #16]
  37426. 801028a: 68fb ldr r3, [r7, #12]
  37427. 801028c: 681b ldr r3, [r3, #0]
  37428. 801028e: 430a orrs r2, r1
  37429. 8010290: 619a str r2, [r3, #24]
  37430. break;
  37431. 8010292: e0a5 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37432. {
  37433. /* Check the parameters */
  37434. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37435. /* Configure the Channel 2 in PWM mode */
  37436. TIM_OC2_SetConfig(htim->Instance, sConfig);
  37437. 8010294: 68fb ldr r3, [r7, #12]
  37438. 8010296: 681b ldr r3, [r3, #0]
  37439. 8010298: 68b9 ldr r1, [r7, #8]
  37440. 801029a: 4618 mov r0, r3
  37441. 801029c: f000 fb74 bl 8010988 <TIM_OC2_SetConfig>
  37442. /* Set the Preload enable bit for channel2 */
  37443. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  37444. 80102a0: 68fb ldr r3, [r7, #12]
  37445. 80102a2: 681b ldr r3, [r3, #0]
  37446. 80102a4: 699a ldr r2, [r3, #24]
  37447. 80102a6: 68fb ldr r3, [r7, #12]
  37448. 80102a8: 681b ldr r3, [r3, #0]
  37449. 80102aa: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37450. 80102ae: 619a str r2, [r3, #24]
  37451. /* Configure the Output Fast mode */
  37452. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  37453. 80102b0: 68fb ldr r3, [r7, #12]
  37454. 80102b2: 681b ldr r3, [r3, #0]
  37455. 80102b4: 699a ldr r2, [r3, #24]
  37456. 80102b6: 68fb ldr r3, [r7, #12]
  37457. 80102b8: 681b ldr r3, [r3, #0]
  37458. 80102ba: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37459. 80102be: 619a str r2, [r3, #24]
  37460. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  37461. 80102c0: 68fb ldr r3, [r7, #12]
  37462. 80102c2: 681b ldr r3, [r3, #0]
  37463. 80102c4: 6999 ldr r1, [r3, #24]
  37464. 80102c6: 68bb ldr r3, [r7, #8]
  37465. 80102c8: 691b ldr r3, [r3, #16]
  37466. 80102ca: 021a lsls r2, r3, #8
  37467. 80102cc: 68fb ldr r3, [r7, #12]
  37468. 80102ce: 681b ldr r3, [r3, #0]
  37469. 80102d0: 430a orrs r2, r1
  37470. 80102d2: 619a str r2, [r3, #24]
  37471. break;
  37472. 80102d4: e084 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37473. {
  37474. /* Check the parameters */
  37475. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37476. /* Configure the Channel 3 in PWM mode */
  37477. TIM_OC3_SetConfig(htim->Instance, sConfig);
  37478. 80102d6: 68fb ldr r3, [r7, #12]
  37479. 80102d8: 681b ldr r3, [r3, #0]
  37480. 80102da: 68b9 ldr r1, [r7, #8]
  37481. 80102dc: 4618 mov r0, r3
  37482. 80102de: f000 fbdd bl 8010a9c <TIM_OC3_SetConfig>
  37483. /* Set the Preload enable bit for channel3 */
  37484. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  37485. 80102e2: 68fb ldr r3, [r7, #12]
  37486. 80102e4: 681b ldr r3, [r3, #0]
  37487. 80102e6: 69da ldr r2, [r3, #28]
  37488. 80102e8: 68fb ldr r3, [r7, #12]
  37489. 80102ea: 681b ldr r3, [r3, #0]
  37490. 80102ec: f042 0208 orr.w r2, r2, #8
  37491. 80102f0: 61da str r2, [r3, #28]
  37492. /* Configure the Output Fast mode */
  37493. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  37494. 80102f2: 68fb ldr r3, [r7, #12]
  37495. 80102f4: 681b ldr r3, [r3, #0]
  37496. 80102f6: 69da ldr r2, [r3, #28]
  37497. 80102f8: 68fb ldr r3, [r7, #12]
  37498. 80102fa: 681b ldr r3, [r3, #0]
  37499. 80102fc: f022 0204 bic.w r2, r2, #4
  37500. 8010300: 61da str r2, [r3, #28]
  37501. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  37502. 8010302: 68fb ldr r3, [r7, #12]
  37503. 8010304: 681b ldr r3, [r3, #0]
  37504. 8010306: 69d9 ldr r1, [r3, #28]
  37505. 8010308: 68bb ldr r3, [r7, #8]
  37506. 801030a: 691a ldr r2, [r3, #16]
  37507. 801030c: 68fb ldr r3, [r7, #12]
  37508. 801030e: 681b ldr r3, [r3, #0]
  37509. 8010310: 430a orrs r2, r1
  37510. 8010312: 61da str r2, [r3, #28]
  37511. break;
  37512. 8010314: e064 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37513. {
  37514. /* Check the parameters */
  37515. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37516. /* Configure the Channel 4 in PWM mode */
  37517. TIM_OC4_SetConfig(htim->Instance, sConfig);
  37518. 8010316: 68fb ldr r3, [r7, #12]
  37519. 8010318: 681b ldr r3, [r3, #0]
  37520. 801031a: 68b9 ldr r1, [r7, #8]
  37521. 801031c: 4618 mov r0, r3
  37522. 801031e: f000 fc45 bl 8010bac <TIM_OC4_SetConfig>
  37523. /* Set the Preload enable bit for channel4 */
  37524. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  37525. 8010322: 68fb ldr r3, [r7, #12]
  37526. 8010324: 681b ldr r3, [r3, #0]
  37527. 8010326: 69da ldr r2, [r3, #28]
  37528. 8010328: 68fb ldr r3, [r7, #12]
  37529. 801032a: 681b ldr r3, [r3, #0]
  37530. 801032c: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37531. 8010330: 61da str r2, [r3, #28]
  37532. /* Configure the Output Fast mode */
  37533. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  37534. 8010332: 68fb ldr r3, [r7, #12]
  37535. 8010334: 681b ldr r3, [r3, #0]
  37536. 8010336: 69da ldr r2, [r3, #28]
  37537. 8010338: 68fb ldr r3, [r7, #12]
  37538. 801033a: 681b ldr r3, [r3, #0]
  37539. 801033c: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37540. 8010340: 61da str r2, [r3, #28]
  37541. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  37542. 8010342: 68fb ldr r3, [r7, #12]
  37543. 8010344: 681b ldr r3, [r3, #0]
  37544. 8010346: 69d9 ldr r1, [r3, #28]
  37545. 8010348: 68bb ldr r3, [r7, #8]
  37546. 801034a: 691b ldr r3, [r3, #16]
  37547. 801034c: 021a lsls r2, r3, #8
  37548. 801034e: 68fb ldr r3, [r7, #12]
  37549. 8010350: 681b ldr r3, [r3, #0]
  37550. 8010352: 430a orrs r2, r1
  37551. 8010354: 61da str r2, [r3, #28]
  37552. break;
  37553. 8010356: e043 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37554. {
  37555. /* Check the parameters */
  37556. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  37557. /* Configure the Channel 5 in PWM mode */
  37558. TIM_OC5_SetConfig(htim->Instance, sConfig);
  37559. 8010358: 68fb ldr r3, [r7, #12]
  37560. 801035a: 681b ldr r3, [r3, #0]
  37561. 801035c: 68b9 ldr r1, [r7, #8]
  37562. 801035e: 4618 mov r0, r3
  37563. 8010360: f000 fc8e bl 8010c80 <TIM_OC5_SetConfig>
  37564. /* Set the Preload enable bit for channel5*/
  37565. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  37566. 8010364: 68fb ldr r3, [r7, #12]
  37567. 8010366: 681b ldr r3, [r3, #0]
  37568. 8010368: 6d5a ldr r2, [r3, #84] @ 0x54
  37569. 801036a: 68fb ldr r3, [r7, #12]
  37570. 801036c: 681b ldr r3, [r3, #0]
  37571. 801036e: f042 0208 orr.w r2, r2, #8
  37572. 8010372: 655a str r2, [r3, #84] @ 0x54
  37573. /* Configure the Output Fast mode */
  37574. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  37575. 8010374: 68fb ldr r3, [r7, #12]
  37576. 8010376: 681b ldr r3, [r3, #0]
  37577. 8010378: 6d5a ldr r2, [r3, #84] @ 0x54
  37578. 801037a: 68fb ldr r3, [r7, #12]
  37579. 801037c: 681b ldr r3, [r3, #0]
  37580. 801037e: f022 0204 bic.w r2, r2, #4
  37581. 8010382: 655a str r2, [r3, #84] @ 0x54
  37582. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  37583. 8010384: 68fb ldr r3, [r7, #12]
  37584. 8010386: 681b ldr r3, [r3, #0]
  37585. 8010388: 6d59 ldr r1, [r3, #84] @ 0x54
  37586. 801038a: 68bb ldr r3, [r7, #8]
  37587. 801038c: 691a ldr r2, [r3, #16]
  37588. 801038e: 68fb ldr r3, [r7, #12]
  37589. 8010390: 681b ldr r3, [r3, #0]
  37590. 8010392: 430a orrs r2, r1
  37591. 8010394: 655a str r2, [r3, #84] @ 0x54
  37592. break;
  37593. 8010396: e023 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37594. {
  37595. /* Check the parameters */
  37596. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  37597. /* Configure the Channel 6 in PWM mode */
  37598. TIM_OC6_SetConfig(htim->Instance, sConfig);
  37599. 8010398: 68fb ldr r3, [r7, #12]
  37600. 801039a: 681b ldr r3, [r3, #0]
  37601. 801039c: 68b9 ldr r1, [r7, #8]
  37602. 801039e: 4618 mov r0, r3
  37603. 80103a0: f000 fcd2 bl 8010d48 <TIM_OC6_SetConfig>
  37604. /* Set the Preload enable bit for channel6 */
  37605. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  37606. 80103a4: 68fb ldr r3, [r7, #12]
  37607. 80103a6: 681b ldr r3, [r3, #0]
  37608. 80103a8: 6d5a ldr r2, [r3, #84] @ 0x54
  37609. 80103aa: 68fb ldr r3, [r7, #12]
  37610. 80103ac: 681b ldr r3, [r3, #0]
  37611. 80103ae: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37612. 80103b2: 655a str r2, [r3, #84] @ 0x54
  37613. /* Configure the Output Fast mode */
  37614. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  37615. 80103b4: 68fb ldr r3, [r7, #12]
  37616. 80103b6: 681b ldr r3, [r3, #0]
  37617. 80103b8: 6d5a ldr r2, [r3, #84] @ 0x54
  37618. 80103ba: 68fb ldr r3, [r7, #12]
  37619. 80103bc: 681b ldr r3, [r3, #0]
  37620. 80103be: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37621. 80103c2: 655a str r2, [r3, #84] @ 0x54
  37622. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  37623. 80103c4: 68fb ldr r3, [r7, #12]
  37624. 80103c6: 681b ldr r3, [r3, #0]
  37625. 80103c8: 6d59 ldr r1, [r3, #84] @ 0x54
  37626. 80103ca: 68bb ldr r3, [r7, #8]
  37627. 80103cc: 691b ldr r3, [r3, #16]
  37628. 80103ce: 021a lsls r2, r3, #8
  37629. 80103d0: 68fb ldr r3, [r7, #12]
  37630. 80103d2: 681b ldr r3, [r3, #0]
  37631. 80103d4: 430a orrs r2, r1
  37632. 80103d6: 655a str r2, [r3, #84] @ 0x54
  37633. break;
  37634. 80103d8: e002 b.n 80103e0 <HAL_TIM_PWM_ConfigChannel+0x214>
  37635. }
  37636. default:
  37637. status = HAL_ERROR;
  37638. 80103da: 2301 movs r3, #1
  37639. 80103dc: 75fb strb r3, [r7, #23]
  37640. break;
  37641. 80103de: bf00 nop
  37642. }
  37643. __HAL_UNLOCK(htim);
  37644. 80103e0: 68fb ldr r3, [r7, #12]
  37645. 80103e2: 2200 movs r2, #0
  37646. 80103e4: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37647. return status;
  37648. 80103e8: 7dfb ldrb r3, [r7, #23]
  37649. }
  37650. 80103ea: 4618 mov r0, r3
  37651. 80103ec: 3718 adds r7, #24
  37652. 80103ee: 46bd mov sp, r7
  37653. 80103f0: bd80 pop {r7, pc}
  37654. 80103f2: bf00 nop
  37655. 080103f4 <HAL_TIM_ConfigClockSource>:
  37656. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  37657. * contains the clock source information for the TIM peripheral.
  37658. * @retval HAL status
  37659. */
  37660. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  37661. {
  37662. 80103f4: b580 push {r7, lr}
  37663. 80103f6: b084 sub sp, #16
  37664. 80103f8: af00 add r7, sp, #0
  37665. 80103fa: 6078 str r0, [r7, #4]
  37666. 80103fc: 6039 str r1, [r7, #0]
  37667. HAL_StatusTypeDef status = HAL_OK;
  37668. 80103fe: 2300 movs r3, #0
  37669. 8010400: 73fb strb r3, [r7, #15]
  37670. uint32_t tmpsmcr;
  37671. /* Process Locked */
  37672. __HAL_LOCK(htim);
  37673. 8010402: 687b ldr r3, [r7, #4]
  37674. 8010404: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37675. 8010408: 2b01 cmp r3, #1
  37676. 801040a: d101 bne.n 8010410 <HAL_TIM_ConfigClockSource+0x1c>
  37677. 801040c: 2302 movs r3, #2
  37678. 801040e: e0dc b.n 80105ca <HAL_TIM_ConfigClockSource+0x1d6>
  37679. 8010410: 687b ldr r3, [r7, #4]
  37680. 8010412: 2201 movs r2, #1
  37681. 8010414: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37682. htim->State = HAL_TIM_STATE_BUSY;
  37683. 8010418: 687b ldr r3, [r7, #4]
  37684. 801041a: 2202 movs r2, #2
  37685. 801041c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37686. /* Check the parameters */
  37687. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  37688. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  37689. tmpsmcr = htim->Instance->SMCR;
  37690. 8010420: 687b ldr r3, [r7, #4]
  37691. 8010422: 681b ldr r3, [r3, #0]
  37692. 8010424: 689b ldr r3, [r3, #8]
  37693. 8010426: 60bb str r3, [r7, #8]
  37694. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  37695. 8010428: 68ba ldr r2, [r7, #8]
  37696. 801042a: 4b6a ldr r3, [pc, #424] @ (80105d4 <HAL_TIM_ConfigClockSource+0x1e0>)
  37697. 801042c: 4013 ands r3, r2
  37698. 801042e: 60bb str r3, [r7, #8]
  37699. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  37700. 8010430: 68bb ldr r3, [r7, #8]
  37701. 8010432: f423 437f bic.w r3, r3, #65280 @ 0xff00
  37702. 8010436: 60bb str r3, [r7, #8]
  37703. htim->Instance->SMCR = tmpsmcr;
  37704. 8010438: 687b ldr r3, [r7, #4]
  37705. 801043a: 681b ldr r3, [r3, #0]
  37706. 801043c: 68ba ldr r2, [r7, #8]
  37707. 801043e: 609a str r2, [r3, #8]
  37708. switch (sClockSourceConfig->ClockSource)
  37709. 8010440: 683b ldr r3, [r7, #0]
  37710. 8010442: 681b ldr r3, [r3, #0]
  37711. 8010444: 4a64 ldr r2, [pc, #400] @ (80105d8 <HAL_TIM_ConfigClockSource+0x1e4>)
  37712. 8010446: 4293 cmp r3, r2
  37713. 8010448: f000 80a9 beq.w 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37714. 801044c: 4a62 ldr r2, [pc, #392] @ (80105d8 <HAL_TIM_ConfigClockSource+0x1e4>)
  37715. 801044e: 4293 cmp r3, r2
  37716. 8010450: f200 80ae bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37717. 8010454: 4a61 ldr r2, [pc, #388] @ (80105dc <HAL_TIM_ConfigClockSource+0x1e8>)
  37718. 8010456: 4293 cmp r3, r2
  37719. 8010458: f000 80a1 beq.w 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37720. 801045c: 4a5f ldr r2, [pc, #380] @ (80105dc <HAL_TIM_ConfigClockSource+0x1e8>)
  37721. 801045e: 4293 cmp r3, r2
  37722. 8010460: f200 80a6 bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37723. 8010464: 4a5e ldr r2, [pc, #376] @ (80105e0 <HAL_TIM_ConfigClockSource+0x1ec>)
  37724. 8010466: 4293 cmp r3, r2
  37725. 8010468: f000 8099 beq.w 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37726. 801046c: 4a5c ldr r2, [pc, #368] @ (80105e0 <HAL_TIM_ConfigClockSource+0x1ec>)
  37727. 801046e: 4293 cmp r3, r2
  37728. 8010470: f200 809e bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37729. 8010474: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37730. 8010478: f000 8091 beq.w 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37731. 801047c: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37732. 8010480: f200 8096 bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37733. 8010484: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37734. 8010488: f000 8089 beq.w 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37735. 801048c: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37736. 8010490: f200 808e bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37737. 8010494: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37738. 8010498: d03e beq.n 8010518 <HAL_TIM_ConfigClockSource+0x124>
  37739. 801049a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37740. 801049e: f200 8087 bhi.w 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37741. 80104a2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37742. 80104a6: f000 8086 beq.w 80105b6 <HAL_TIM_ConfigClockSource+0x1c2>
  37743. 80104aa: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37744. 80104ae: d87f bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37745. 80104b0: 2b70 cmp r3, #112 @ 0x70
  37746. 80104b2: d01a beq.n 80104ea <HAL_TIM_ConfigClockSource+0xf6>
  37747. 80104b4: 2b70 cmp r3, #112 @ 0x70
  37748. 80104b6: d87b bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37749. 80104b8: 2b60 cmp r3, #96 @ 0x60
  37750. 80104ba: d050 beq.n 801055e <HAL_TIM_ConfigClockSource+0x16a>
  37751. 80104bc: 2b60 cmp r3, #96 @ 0x60
  37752. 80104be: d877 bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37753. 80104c0: 2b50 cmp r3, #80 @ 0x50
  37754. 80104c2: d03c beq.n 801053e <HAL_TIM_ConfigClockSource+0x14a>
  37755. 80104c4: 2b50 cmp r3, #80 @ 0x50
  37756. 80104c6: d873 bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37757. 80104c8: 2b40 cmp r3, #64 @ 0x40
  37758. 80104ca: d058 beq.n 801057e <HAL_TIM_ConfigClockSource+0x18a>
  37759. 80104cc: 2b40 cmp r3, #64 @ 0x40
  37760. 80104ce: d86f bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37761. 80104d0: 2b30 cmp r3, #48 @ 0x30
  37762. 80104d2: d064 beq.n 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37763. 80104d4: 2b30 cmp r3, #48 @ 0x30
  37764. 80104d6: d86b bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37765. 80104d8: 2b20 cmp r3, #32
  37766. 80104da: d060 beq.n 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37767. 80104dc: 2b20 cmp r3, #32
  37768. 80104de: d867 bhi.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37769. 80104e0: 2b00 cmp r3, #0
  37770. 80104e2: d05c beq.n 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37771. 80104e4: 2b10 cmp r3, #16
  37772. 80104e6: d05a beq.n 801059e <HAL_TIM_ConfigClockSource+0x1aa>
  37773. 80104e8: e062 b.n 80105b0 <HAL_TIM_ConfigClockSource+0x1bc>
  37774. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37775. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37776. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37777. /* Configure the ETR Clock source */
  37778. TIM_ETR_SetConfig(htim->Instance,
  37779. 80104ea: 687b ldr r3, [r7, #4]
  37780. 80104ec: 6818 ldr r0, [r3, #0]
  37781. sClockSourceConfig->ClockPrescaler,
  37782. 80104ee: 683b ldr r3, [r7, #0]
  37783. 80104f0: 6899 ldr r1, [r3, #8]
  37784. sClockSourceConfig->ClockPolarity,
  37785. 80104f2: 683b ldr r3, [r7, #0]
  37786. 80104f4: 685a ldr r2, [r3, #4]
  37787. sClockSourceConfig->ClockFilter);
  37788. 80104f6: 683b ldr r3, [r7, #0]
  37789. 80104f8: 68db ldr r3, [r3, #12]
  37790. TIM_ETR_SetConfig(htim->Instance,
  37791. 80104fa: f000 fe33 bl 8011164 <TIM_ETR_SetConfig>
  37792. /* Select the External clock mode1 and the ETRF trigger */
  37793. tmpsmcr = htim->Instance->SMCR;
  37794. 80104fe: 687b ldr r3, [r7, #4]
  37795. 8010500: 681b ldr r3, [r3, #0]
  37796. 8010502: 689b ldr r3, [r3, #8]
  37797. 8010504: 60bb str r3, [r7, #8]
  37798. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  37799. 8010506: 68bb ldr r3, [r7, #8]
  37800. 8010508: f043 0377 orr.w r3, r3, #119 @ 0x77
  37801. 801050c: 60bb str r3, [r7, #8]
  37802. /* Write to TIMx SMCR */
  37803. htim->Instance->SMCR = tmpsmcr;
  37804. 801050e: 687b ldr r3, [r7, #4]
  37805. 8010510: 681b ldr r3, [r3, #0]
  37806. 8010512: 68ba ldr r2, [r7, #8]
  37807. 8010514: 609a str r2, [r3, #8]
  37808. break;
  37809. 8010516: e04f b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37810. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37811. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37812. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37813. /* Configure the ETR Clock source */
  37814. TIM_ETR_SetConfig(htim->Instance,
  37815. 8010518: 687b ldr r3, [r7, #4]
  37816. 801051a: 6818 ldr r0, [r3, #0]
  37817. sClockSourceConfig->ClockPrescaler,
  37818. 801051c: 683b ldr r3, [r7, #0]
  37819. 801051e: 6899 ldr r1, [r3, #8]
  37820. sClockSourceConfig->ClockPolarity,
  37821. 8010520: 683b ldr r3, [r7, #0]
  37822. 8010522: 685a ldr r2, [r3, #4]
  37823. sClockSourceConfig->ClockFilter);
  37824. 8010524: 683b ldr r3, [r7, #0]
  37825. 8010526: 68db ldr r3, [r3, #12]
  37826. TIM_ETR_SetConfig(htim->Instance,
  37827. 8010528: f000 fe1c bl 8011164 <TIM_ETR_SetConfig>
  37828. /* Enable the External clock mode2 */
  37829. htim->Instance->SMCR |= TIM_SMCR_ECE;
  37830. 801052c: 687b ldr r3, [r7, #4]
  37831. 801052e: 681b ldr r3, [r3, #0]
  37832. 8010530: 689a ldr r2, [r3, #8]
  37833. 8010532: 687b ldr r3, [r7, #4]
  37834. 8010534: 681b ldr r3, [r3, #0]
  37835. 8010536: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  37836. 801053a: 609a str r2, [r3, #8]
  37837. break;
  37838. 801053c: e03c b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37839. /* Check TI1 input conditioning related parameters */
  37840. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37841. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37842. TIM_TI1_ConfigInputStage(htim->Instance,
  37843. 801053e: 687b ldr r3, [r7, #4]
  37844. 8010540: 6818 ldr r0, [r3, #0]
  37845. sClockSourceConfig->ClockPolarity,
  37846. 8010542: 683b ldr r3, [r7, #0]
  37847. 8010544: 6859 ldr r1, [r3, #4]
  37848. sClockSourceConfig->ClockFilter);
  37849. 8010546: 683b ldr r3, [r7, #0]
  37850. 8010548: 68db ldr r3, [r3, #12]
  37851. TIM_TI1_ConfigInputStage(htim->Instance,
  37852. 801054a: 461a mov r2, r3
  37853. 801054c: f000 fcd6 bl 8010efc <TIM_TI1_ConfigInputStage>
  37854. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  37855. 8010550: 687b ldr r3, [r7, #4]
  37856. 8010552: 681b ldr r3, [r3, #0]
  37857. 8010554: 2150 movs r1, #80 @ 0x50
  37858. 8010556: 4618 mov r0, r3
  37859. 8010558: f000 fde6 bl 8011128 <TIM_ITRx_SetConfig>
  37860. break;
  37861. 801055c: e02c b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37862. /* Check TI2 input conditioning related parameters */
  37863. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37864. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37865. TIM_TI2_ConfigInputStage(htim->Instance,
  37866. 801055e: 687b ldr r3, [r7, #4]
  37867. 8010560: 6818 ldr r0, [r3, #0]
  37868. sClockSourceConfig->ClockPolarity,
  37869. 8010562: 683b ldr r3, [r7, #0]
  37870. 8010564: 6859 ldr r1, [r3, #4]
  37871. sClockSourceConfig->ClockFilter);
  37872. 8010566: 683b ldr r3, [r7, #0]
  37873. 8010568: 68db ldr r3, [r3, #12]
  37874. TIM_TI2_ConfigInputStage(htim->Instance,
  37875. 801056a: 461a mov r2, r3
  37876. 801056c: f000 fd32 bl 8010fd4 <TIM_TI2_ConfigInputStage>
  37877. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  37878. 8010570: 687b ldr r3, [r7, #4]
  37879. 8010572: 681b ldr r3, [r3, #0]
  37880. 8010574: 2160 movs r1, #96 @ 0x60
  37881. 8010576: 4618 mov r0, r3
  37882. 8010578: f000 fdd6 bl 8011128 <TIM_ITRx_SetConfig>
  37883. break;
  37884. 801057c: e01c b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37885. /* Check TI1 input conditioning related parameters */
  37886. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37887. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37888. TIM_TI1_ConfigInputStage(htim->Instance,
  37889. 801057e: 687b ldr r3, [r7, #4]
  37890. 8010580: 6818 ldr r0, [r3, #0]
  37891. sClockSourceConfig->ClockPolarity,
  37892. 8010582: 683b ldr r3, [r7, #0]
  37893. 8010584: 6859 ldr r1, [r3, #4]
  37894. sClockSourceConfig->ClockFilter);
  37895. 8010586: 683b ldr r3, [r7, #0]
  37896. 8010588: 68db ldr r3, [r3, #12]
  37897. TIM_TI1_ConfigInputStage(htim->Instance,
  37898. 801058a: 461a mov r2, r3
  37899. 801058c: f000 fcb6 bl 8010efc <TIM_TI1_ConfigInputStage>
  37900. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  37901. 8010590: 687b ldr r3, [r7, #4]
  37902. 8010592: 681b ldr r3, [r3, #0]
  37903. 8010594: 2140 movs r1, #64 @ 0x40
  37904. 8010596: 4618 mov r0, r3
  37905. 8010598: f000 fdc6 bl 8011128 <TIM_ITRx_SetConfig>
  37906. break;
  37907. 801059c: e00c b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37908. case TIM_CLOCKSOURCE_ITR8:
  37909. {
  37910. /* Check whether or not the timer instance supports internal trigger input */
  37911. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  37912. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  37913. 801059e: 687b ldr r3, [r7, #4]
  37914. 80105a0: 681a ldr r2, [r3, #0]
  37915. 80105a2: 683b ldr r3, [r7, #0]
  37916. 80105a4: 681b ldr r3, [r3, #0]
  37917. 80105a6: 4619 mov r1, r3
  37918. 80105a8: 4610 mov r0, r2
  37919. 80105aa: f000 fdbd bl 8011128 <TIM_ITRx_SetConfig>
  37920. break;
  37921. 80105ae: e003 b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37922. }
  37923. default:
  37924. status = HAL_ERROR;
  37925. 80105b0: 2301 movs r3, #1
  37926. 80105b2: 73fb strb r3, [r7, #15]
  37927. break;
  37928. 80105b4: e000 b.n 80105b8 <HAL_TIM_ConfigClockSource+0x1c4>
  37929. break;
  37930. 80105b6: bf00 nop
  37931. }
  37932. htim->State = HAL_TIM_STATE_READY;
  37933. 80105b8: 687b ldr r3, [r7, #4]
  37934. 80105ba: 2201 movs r2, #1
  37935. 80105bc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37936. __HAL_UNLOCK(htim);
  37937. 80105c0: 687b ldr r3, [r7, #4]
  37938. 80105c2: 2200 movs r2, #0
  37939. 80105c4: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37940. return status;
  37941. 80105c8: 7bfb ldrb r3, [r7, #15]
  37942. }
  37943. 80105ca: 4618 mov r0, r3
  37944. 80105cc: 3710 adds r7, #16
  37945. 80105ce: 46bd mov sp, r7
  37946. 80105d0: bd80 pop {r7, pc}
  37947. 80105d2: bf00 nop
  37948. 80105d4: ffceff88 .word 0xffceff88
  37949. 80105d8: 00100040 .word 0x00100040
  37950. 80105dc: 00100030 .word 0x00100030
  37951. 80105e0: 00100020 .word 0x00100020
  37952. 080105e4 <HAL_TIM_ReadCapturedValue>:
  37953. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37954. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37955. * @retval Captured value
  37956. */
  37957. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  37958. {
  37959. 80105e4: b480 push {r7}
  37960. 80105e6: b085 sub sp, #20
  37961. 80105e8: af00 add r7, sp, #0
  37962. 80105ea: 6078 str r0, [r7, #4]
  37963. 80105ec: 6039 str r1, [r7, #0]
  37964. uint32_t tmpreg = 0U;
  37965. 80105ee: 2300 movs r3, #0
  37966. 80105f0: 60fb str r3, [r7, #12]
  37967. switch (Channel)
  37968. 80105f2: 683b ldr r3, [r7, #0]
  37969. 80105f4: 2b0c cmp r3, #12
  37970. 80105f6: d831 bhi.n 801065c <HAL_TIM_ReadCapturedValue+0x78>
  37971. 80105f8: a201 add r2, pc, #4 @ (adr r2, 8010600 <HAL_TIM_ReadCapturedValue+0x1c>)
  37972. 80105fa: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37973. 80105fe: bf00 nop
  37974. 8010600: 08010635 .word 0x08010635
  37975. 8010604: 0801065d .word 0x0801065d
  37976. 8010608: 0801065d .word 0x0801065d
  37977. 801060c: 0801065d .word 0x0801065d
  37978. 8010610: 0801063f .word 0x0801063f
  37979. 8010614: 0801065d .word 0x0801065d
  37980. 8010618: 0801065d .word 0x0801065d
  37981. 801061c: 0801065d .word 0x0801065d
  37982. 8010620: 08010649 .word 0x08010649
  37983. 8010624: 0801065d .word 0x0801065d
  37984. 8010628: 0801065d .word 0x0801065d
  37985. 801062c: 0801065d .word 0x0801065d
  37986. 8010630: 08010653 .word 0x08010653
  37987. {
  37988. /* Check the parameters */
  37989. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37990. /* Return the capture 1 value */
  37991. tmpreg = htim->Instance->CCR1;
  37992. 8010634: 687b ldr r3, [r7, #4]
  37993. 8010636: 681b ldr r3, [r3, #0]
  37994. 8010638: 6b5b ldr r3, [r3, #52] @ 0x34
  37995. 801063a: 60fb str r3, [r7, #12]
  37996. break;
  37997. 801063c: e00f b.n 801065e <HAL_TIM_ReadCapturedValue+0x7a>
  37998. {
  37999. /* Check the parameters */
  38000. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  38001. /* Return the capture 2 value */
  38002. tmpreg = htim->Instance->CCR2;
  38003. 801063e: 687b ldr r3, [r7, #4]
  38004. 8010640: 681b ldr r3, [r3, #0]
  38005. 8010642: 6b9b ldr r3, [r3, #56] @ 0x38
  38006. 8010644: 60fb str r3, [r7, #12]
  38007. break;
  38008. 8010646: e00a b.n 801065e <HAL_TIM_ReadCapturedValue+0x7a>
  38009. {
  38010. /* Check the parameters */
  38011. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  38012. /* Return the capture 3 value */
  38013. tmpreg = htim->Instance->CCR3;
  38014. 8010648: 687b ldr r3, [r7, #4]
  38015. 801064a: 681b ldr r3, [r3, #0]
  38016. 801064c: 6bdb ldr r3, [r3, #60] @ 0x3c
  38017. 801064e: 60fb str r3, [r7, #12]
  38018. break;
  38019. 8010650: e005 b.n 801065e <HAL_TIM_ReadCapturedValue+0x7a>
  38020. {
  38021. /* Check the parameters */
  38022. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  38023. /* Return the capture 4 value */
  38024. tmpreg = htim->Instance->CCR4;
  38025. 8010652: 687b ldr r3, [r7, #4]
  38026. 8010654: 681b ldr r3, [r3, #0]
  38027. 8010656: 6c1b ldr r3, [r3, #64] @ 0x40
  38028. 8010658: 60fb str r3, [r7, #12]
  38029. break;
  38030. 801065a: e000 b.n 801065e <HAL_TIM_ReadCapturedValue+0x7a>
  38031. }
  38032. default:
  38033. break;
  38034. 801065c: bf00 nop
  38035. }
  38036. return tmpreg;
  38037. 801065e: 68fb ldr r3, [r7, #12]
  38038. }
  38039. 8010660: 4618 mov r0, r3
  38040. 8010662: 3714 adds r7, #20
  38041. 8010664: 46bd mov sp, r7
  38042. 8010666: f85d 7b04 ldr.w r7, [sp], #4
  38043. 801066a: 4770 bx lr
  38044. 0801066c <HAL_TIM_OC_DelayElapsedCallback>:
  38045. * @brief Output Compare callback in non-blocking mode
  38046. * @param htim TIM OC handle
  38047. * @retval None
  38048. */
  38049. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  38050. {
  38051. 801066c: b480 push {r7}
  38052. 801066e: b083 sub sp, #12
  38053. 8010670: af00 add r7, sp, #0
  38054. 8010672: 6078 str r0, [r7, #4]
  38055. UNUSED(htim);
  38056. /* NOTE : This function should not be modified, when the callback is needed,
  38057. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  38058. */
  38059. }
  38060. 8010674: bf00 nop
  38061. 8010676: 370c adds r7, #12
  38062. 8010678: 46bd mov sp, r7
  38063. 801067a: f85d 7b04 ldr.w r7, [sp], #4
  38064. 801067e: 4770 bx lr
  38065. 08010680 <HAL_TIM_PWM_PulseFinishedCallback>:
  38066. * @brief PWM Pulse finished callback in non-blocking mode
  38067. * @param htim TIM handle
  38068. * @retval None
  38069. */
  38070. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  38071. {
  38072. 8010680: b480 push {r7}
  38073. 8010682: b083 sub sp, #12
  38074. 8010684: af00 add r7, sp, #0
  38075. 8010686: 6078 str r0, [r7, #4]
  38076. UNUSED(htim);
  38077. /* NOTE : This function should not be modified, when the callback is needed,
  38078. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  38079. */
  38080. }
  38081. 8010688: bf00 nop
  38082. 801068a: 370c adds r7, #12
  38083. 801068c: 46bd mov sp, r7
  38084. 801068e: f85d 7b04 ldr.w r7, [sp], #4
  38085. 8010692: 4770 bx lr
  38086. 08010694 <HAL_TIM_TriggerCallback>:
  38087. * @brief Hall Trigger detection callback in non-blocking mode
  38088. * @param htim TIM handle
  38089. * @retval None
  38090. */
  38091. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  38092. {
  38093. 8010694: b480 push {r7}
  38094. 8010696: b083 sub sp, #12
  38095. 8010698: af00 add r7, sp, #0
  38096. 801069a: 6078 str r0, [r7, #4]
  38097. UNUSED(htim);
  38098. /* NOTE : This function should not be modified, when the callback is needed,
  38099. the HAL_TIM_TriggerCallback could be implemented in the user file
  38100. */
  38101. }
  38102. 801069c: bf00 nop
  38103. 801069e: 370c adds r7, #12
  38104. 80106a0: 46bd mov sp, r7
  38105. 80106a2: f85d 7b04 ldr.w r7, [sp], #4
  38106. 80106a6: 4770 bx lr
  38107. 080106a8 <HAL_TIM_GetChannelState>:
  38108. * @arg TIM_CHANNEL_5: TIM Channel 5
  38109. * @arg TIM_CHANNEL_6: TIM Channel 6
  38110. * @retval TIM Channel state
  38111. */
  38112. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  38113. {
  38114. 80106a8: b480 push {r7}
  38115. 80106aa: b085 sub sp, #20
  38116. 80106ac: af00 add r7, sp, #0
  38117. 80106ae: 6078 str r0, [r7, #4]
  38118. 80106b0: 6039 str r1, [r7, #0]
  38119. HAL_TIM_ChannelStateTypeDef channel_state;
  38120. /* Check the parameters */
  38121. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  38122. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  38123. 80106b2: 683b ldr r3, [r7, #0]
  38124. 80106b4: 2b00 cmp r3, #0
  38125. 80106b6: d104 bne.n 80106c2 <HAL_TIM_GetChannelState+0x1a>
  38126. 80106b8: 687b ldr r3, [r7, #4]
  38127. 80106ba: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  38128. 80106be: b2db uxtb r3, r3
  38129. 80106c0: e023 b.n 801070a <HAL_TIM_GetChannelState+0x62>
  38130. 80106c2: 683b ldr r3, [r7, #0]
  38131. 80106c4: 2b04 cmp r3, #4
  38132. 80106c6: d104 bne.n 80106d2 <HAL_TIM_GetChannelState+0x2a>
  38133. 80106c8: 687b ldr r3, [r7, #4]
  38134. 80106ca: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  38135. 80106ce: b2db uxtb r3, r3
  38136. 80106d0: e01b b.n 801070a <HAL_TIM_GetChannelState+0x62>
  38137. 80106d2: 683b ldr r3, [r7, #0]
  38138. 80106d4: 2b08 cmp r3, #8
  38139. 80106d6: d104 bne.n 80106e2 <HAL_TIM_GetChannelState+0x3a>
  38140. 80106d8: 687b ldr r3, [r7, #4]
  38141. 80106da: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  38142. 80106de: b2db uxtb r3, r3
  38143. 80106e0: e013 b.n 801070a <HAL_TIM_GetChannelState+0x62>
  38144. 80106e2: 683b ldr r3, [r7, #0]
  38145. 80106e4: 2b0c cmp r3, #12
  38146. 80106e6: d104 bne.n 80106f2 <HAL_TIM_GetChannelState+0x4a>
  38147. 80106e8: 687b ldr r3, [r7, #4]
  38148. 80106ea: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  38149. 80106ee: b2db uxtb r3, r3
  38150. 80106f0: e00b b.n 801070a <HAL_TIM_GetChannelState+0x62>
  38151. 80106f2: 683b ldr r3, [r7, #0]
  38152. 80106f4: 2b10 cmp r3, #16
  38153. 80106f6: d104 bne.n 8010702 <HAL_TIM_GetChannelState+0x5a>
  38154. 80106f8: 687b ldr r3, [r7, #4]
  38155. 80106fa: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  38156. 80106fe: b2db uxtb r3, r3
  38157. 8010700: e003 b.n 801070a <HAL_TIM_GetChannelState+0x62>
  38158. 8010702: 687b ldr r3, [r7, #4]
  38159. 8010704: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  38160. 8010708: b2db uxtb r3, r3
  38161. 801070a: 73fb strb r3, [r7, #15]
  38162. return channel_state;
  38163. 801070c: 7bfb ldrb r3, [r7, #15]
  38164. }
  38165. 801070e: 4618 mov r0, r3
  38166. 8010710: 3714 adds r7, #20
  38167. 8010712: 46bd mov sp, r7
  38168. 8010714: f85d 7b04 ldr.w r7, [sp], #4
  38169. 8010718: 4770 bx lr
  38170. ...
  38171. 0801071c <TIM_Base_SetConfig>:
  38172. * @param TIMx TIM peripheral
  38173. * @param Structure TIM Base configuration structure
  38174. * @retval None
  38175. */
  38176. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  38177. {
  38178. 801071c: b480 push {r7}
  38179. 801071e: b085 sub sp, #20
  38180. 8010720: af00 add r7, sp, #0
  38181. 8010722: 6078 str r0, [r7, #4]
  38182. 8010724: 6039 str r1, [r7, #0]
  38183. uint32_t tmpcr1;
  38184. tmpcr1 = TIMx->CR1;
  38185. 8010726: 687b ldr r3, [r7, #4]
  38186. 8010728: 681b ldr r3, [r3, #0]
  38187. 801072a: 60fb str r3, [r7, #12]
  38188. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  38189. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  38190. 801072c: 687b ldr r3, [r7, #4]
  38191. 801072e: 4a46 ldr r2, [pc, #280] @ (8010848 <TIM_Base_SetConfig+0x12c>)
  38192. 8010730: 4293 cmp r3, r2
  38193. 8010732: d013 beq.n 801075c <TIM_Base_SetConfig+0x40>
  38194. 8010734: 687b ldr r3, [r7, #4]
  38195. 8010736: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38196. 801073a: d00f beq.n 801075c <TIM_Base_SetConfig+0x40>
  38197. 801073c: 687b ldr r3, [r7, #4]
  38198. 801073e: 4a43 ldr r2, [pc, #268] @ (801084c <TIM_Base_SetConfig+0x130>)
  38199. 8010740: 4293 cmp r3, r2
  38200. 8010742: d00b beq.n 801075c <TIM_Base_SetConfig+0x40>
  38201. 8010744: 687b ldr r3, [r7, #4]
  38202. 8010746: 4a42 ldr r2, [pc, #264] @ (8010850 <TIM_Base_SetConfig+0x134>)
  38203. 8010748: 4293 cmp r3, r2
  38204. 801074a: d007 beq.n 801075c <TIM_Base_SetConfig+0x40>
  38205. 801074c: 687b ldr r3, [r7, #4]
  38206. 801074e: 4a41 ldr r2, [pc, #260] @ (8010854 <TIM_Base_SetConfig+0x138>)
  38207. 8010750: 4293 cmp r3, r2
  38208. 8010752: d003 beq.n 801075c <TIM_Base_SetConfig+0x40>
  38209. 8010754: 687b ldr r3, [r7, #4]
  38210. 8010756: 4a40 ldr r2, [pc, #256] @ (8010858 <TIM_Base_SetConfig+0x13c>)
  38211. 8010758: 4293 cmp r3, r2
  38212. 801075a: d108 bne.n 801076e <TIM_Base_SetConfig+0x52>
  38213. {
  38214. /* Select the Counter Mode */
  38215. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  38216. 801075c: 68fb ldr r3, [r7, #12]
  38217. 801075e: f023 0370 bic.w r3, r3, #112 @ 0x70
  38218. 8010762: 60fb str r3, [r7, #12]
  38219. tmpcr1 |= Structure->CounterMode;
  38220. 8010764: 683b ldr r3, [r7, #0]
  38221. 8010766: 685b ldr r3, [r3, #4]
  38222. 8010768: 68fa ldr r2, [r7, #12]
  38223. 801076a: 4313 orrs r3, r2
  38224. 801076c: 60fb str r3, [r7, #12]
  38225. }
  38226. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  38227. 801076e: 687b ldr r3, [r7, #4]
  38228. 8010770: 4a35 ldr r2, [pc, #212] @ (8010848 <TIM_Base_SetConfig+0x12c>)
  38229. 8010772: 4293 cmp r3, r2
  38230. 8010774: d01f beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38231. 8010776: 687b ldr r3, [r7, #4]
  38232. 8010778: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38233. 801077c: d01b beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38234. 801077e: 687b ldr r3, [r7, #4]
  38235. 8010780: 4a32 ldr r2, [pc, #200] @ (801084c <TIM_Base_SetConfig+0x130>)
  38236. 8010782: 4293 cmp r3, r2
  38237. 8010784: d017 beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38238. 8010786: 687b ldr r3, [r7, #4]
  38239. 8010788: 4a31 ldr r2, [pc, #196] @ (8010850 <TIM_Base_SetConfig+0x134>)
  38240. 801078a: 4293 cmp r3, r2
  38241. 801078c: d013 beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38242. 801078e: 687b ldr r3, [r7, #4]
  38243. 8010790: 4a30 ldr r2, [pc, #192] @ (8010854 <TIM_Base_SetConfig+0x138>)
  38244. 8010792: 4293 cmp r3, r2
  38245. 8010794: d00f beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38246. 8010796: 687b ldr r3, [r7, #4]
  38247. 8010798: 4a2f ldr r2, [pc, #188] @ (8010858 <TIM_Base_SetConfig+0x13c>)
  38248. 801079a: 4293 cmp r3, r2
  38249. 801079c: d00b beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38250. 801079e: 687b ldr r3, [r7, #4]
  38251. 80107a0: 4a2e ldr r2, [pc, #184] @ (801085c <TIM_Base_SetConfig+0x140>)
  38252. 80107a2: 4293 cmp r3, r2
  38253. 80107a4: d007 beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38254. 80107a6: 687b ldr r3, [r7, #4]
  38255. 80107a8: 4a2d ldr r2, [pc, #180] @ (8010860 <TIM_Base_SetConfig+0x144>)
  38256. 80107aa: 4293 cmp r3, r2
  38257. 80107ac: d003 beq.n 80107b6 <TIM_Base_SetConfig+0x9a>
  38258. 80107ae: 687b ldr r3, [r7, #4]
  38259. 80107b0: 4a2c ldr r2, [pc, #176] @ (8010864 <TIM_Base_SetConfig+0x148>)
  38260. 80107b2: 4293 cmp r3, r2
  38261. 80107b4: d108 bne.n 80107c8 <TIM_Base_SetConfig+0xac>
  38262. {
  38263. /* Set the clock division */
  38264. tmpcr1 &= ~TIM_CR1_CKD;
  38265. 80107b6: 68fb ldr r3, [r7, #12]
  38266. 80107b8: f423 7340 bic.w r3, r3, #768 @ 0x300
  38267. 80107bc: 60fb str r3, [r7, #12]
  38268. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  38269. 80107be: 683b ldr r3, [r7, #0]
  38270. 80107c0: 68db ldr r3, [r3, #12]
  38271. 80107c2: 68fa ldr r2, [r7, #12]
  38272. 80107c4: 4313 orrs r3, r2
  38273. 80107c6: 60fb str r3, [r7, #12]
  38274. }
  38275. /* Set the auto-reload preload */
  38276. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  38277. 80107c8: 68fb ldr r3, [r7, #12]
  38278. 80107ca: f023 0280 bic.w r2, r3, #128 @ 0x80
  38279. 80107ce: 683b ldr r3, [r7, #0]
  38280. 80107d0: 695b ldr r3, [r3, #20]
  38281. 80107d2: 4313 orrs r3, r2
  38282. 80107d4: 60fb str r3, [r7, #12]
  38283. TIMx->CR1 = tmpcr1;
  38284. 80107d6: 687b ldr r3, [r7, #4]
  38285. 80107d8: 68fa ldr r2, [r7, #12]
  38286. 80107da: 601a str r2, [r3, #0]
  38287. /* Set the Autoreload value */
  38288. TIMx->ARR = (uint32_t)Structure->Period ;
  38289. 80107dc: 683b ldr r3, [r7, #0]
  38290. 80107de: 689a ldr r2, [r3, #8]
  38291. 80107e0: 687b ldr r3, [r7, #4]
  38292. 80107e2: 62da str r2, [r3, #44] @ 0x2c
  38293. /* Set the Prescaler value */
  38294. TIMx->PSC = Structure->Prescaler;
  38295. 80107e4: 683b ldr r3, [r7, #0]
  38296. 80107e6: 681a ldr r2, [r3, #0]
  38297. 80107e8: 687b ldr r3, [r7, #4]
  38298. 80107ea: 629a str r2, [r3, #40] @ 0x28
  38299. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  38300. 80107ec: 687b ldr r3, [r7, #4]
  38301. 80107ee: 4a16 ldr r2, [pc, #88] @ (8010848 <TIM_Base_SetConfig+0x12c>)
  38302. 80107f0: 4293 cmp r3, r2
  38303. 80107f2: d00f beq.n 8010814 <TIM_Base_SetConfig+0xf8>
  38304. 80107f4: 687b ldr r3, [r7, #4]
  38305. 80107f6: 4a18 ldr r2, [pc, #96] @ (8010858 <TIM_Base_SetConfig+0x13c>)
  38306. 80107f8: 4293 cmp r3, r2
  38307. 80107fa: d00b beq.n 8010814 <TIM_Base_SetConfig+0xf8>
  38308. 80107fc: 687b ldr r3, [r7, #4]
  38309. 80107fe: 4a17 ldr r2, [pc, #92] @ (801085c <TIM_Base_SetConfig+0x140>)
  38310. 8010800: 4293 cmp r3, r2
  38311. 8010802: d007 beq.n 8010814 <TIM_Base_SetConfig+0xf8>
  38312. 8010804: 687b ldr r3, [r7, #4]
  38313. 8010806: 4a16 ldr r2, [pc, #88] @ (8010860 <TIM_Base_SetConfig+0x144>)
  38314. 8010808: 4293 cmp r3, r2
  38315. 801080a: d003 beq.n 8010814 <TIM_Base_SetConfig+0xf8>
  38316. 801080c: 687b ldr r3, [r7, #4]
  38317. 801080e: 4a15 ldr r2, [pc, #84] @ (8010864 <TIM_Base_SetConfig+0x148>)
  38318. 8010810: 4293 cmp r3, r2
  38319. 8010812: d103 bne.n 801081c <TIM_Base_SetConfig+0x100>
  38320. {
  38321. /* Set the Repetition Counter value */
  38322. TIMx->RCR = Structure->RepetitionCounter;
  38323. 8010814: 683b ldr r3, [r7, #0]
  38324. 8010816: 691a ldr r2, [r3, #16]
  38325. 8010818: 687b ldr r3, [r7, #4]
  38326. 801081a: 631a str r2, [r3, #48] @ 0x30
  38327. }
  38328. /* Generate an update event to reload the Prescaler
  38329. and the repetition counter (only for advanced timer) value immediately */
  38330. TIMx->EGR = TIM_EGR_UG;
  38331. 801081c: 687b ldr r3, [r7, #4]
  38332. 801081e: 2201 movs r2, #1
  38333. 8010820: 615a str r2, [r3, #20]
  38334. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  38335. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  38336. 8010822: 687b ldr r3, [r7, #4]
  38337. 8010824: 691b ldr r3, [r3, #16]
  38338. 8010826: f003 0301 and.w r3, r3, #1
  38339. 801082a: 2b01 cmp r3, #1
  38340. 801082c: d105 bne.n 801083a <TIM_Base_SetConfig+0x11e>
  38341. {
  38342. /* Clear the update flag */
  38343. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  38344. 801082e: 687b ldr r3, [r7, #4]
  38345. 8010830: 691b ldr r3, [r3, #16]
  38346. 8010832: f023 0201 bic.w r2, r3, #1
  38347. 8010836: 687b ldr r3, [r7, #4]
  38348. 8010838: 611a str r2, [r3, #16]
  38349. }
  38350. }
  38351. 801083a: bf00 nop
  38352. 801083c: 3714 adds r7, #20
  38353. 801083e: 46bd mov sp, r7
  38354. 8010840: f85d 7b04 ldr.w r7, [sp], #4
  38355. 8010844: 4770 bx lr
  38356. 8010846: bf00 nop
  38357. 8010848: 40010000 .word 0x40010000
  38358. 801084c: 40000400 .word 0x40000400
  38359. 8010850: 40000800 .word 0x40000800
  38360. 8010854: 40000c00 .word 0x40000c00
  38361. 8010858: 40010400 .word 0x40010400
  38362. 801085c: 40014000 .word 0x40014000
  38363. 8010860: 40014400 .word 0x40014400
  38364. 8010864: 40014800 .word 0x40014800
  38365. 08010868 <TIM_OC1_SetConfig>:
  38366. * @param TIMx to select the TIM peripheral
  38367. * @param OC_Config The output configuration structure
  38368. * @retval None
  38369. */
  38370. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38371. {
  38372. 8010868: b480 push {r7}
  38373. 801086a: b087 sub sp, #28
  38374. 801086c: af00 add r7, sp, #0
  38375. 801086e: 6078 str r0, [r7, #4]
  38376. 8010870: 6039 str r1, [r7, #0]
  38377. uint32_t tmpccmrx;
  38378. uint32_t tmpccer;
  38379. uint32_t tmpcr2;
  38380. /* Get the TIMx CCER register value */
  38381. tmpccer = TIMx->CCER;
  38382. 8010872: 687b ldr r3, [r7, #4]
  38383. 8010874: 6a1b ldr r3, [r3, #32]
  38384. 8010876: 617b str r3, [r7, #20]
  38385. /* Disable the Channel 1: Reset the CC1E Bit */
  38386. TIMx->CCER &= ~TIM_CCER_CC1E;
  38387. 8010878: 687b ldr r3, [r7, #4]
  38388. 801087a: 6a1b ldr r3, [r3, #32]
  38389. 801087c: f023 0201 bic.w r2, r3, #1
  38390. 8010880: 687b ldr r3, [r7, #4]
  38391. 8010882: 621a str r2, [r3, #32]
  38392. /* Get the TIMx CR2 register value */
  38393. tmpcr2 = TIMx->CR2;
  38394. 8010884: 687b ldr r3, [r7, #4]
  38395. 8010886: 685b ldr r3, [r3, #4]
  38396. 8010888: 613b str r3, [r7, #16]
  38397. /* Get the TIMx CCMR1 register value */
  38398. tmpccmrx = TIMx->CCMR1;
  38399. 801088a: 687b ldr r3, [r7, #4]
  38400. 801088c: 699b ldr r3, [r3, #24]
  38401. 801088e: 60fb str r3, [r7, #12]
  38402. /* Reset the Output Compare Mode Bits */
  38403. tmpccmrx &= ~TIM_CCMR1_OC1M;
  38404. 8010890: 68fa ldr r2, [r7, #12]
  38405. 8010892: 4b37 ldr r3, [pc, #220] @ (8010970 <TIM_OC1_SetConfig+0x108>)
  38406. 8010894: 4013 ands r3, r2
  38407. 8010896: 60fb str r3, [r7, #12]
  38408. tmpccmrx &= ~TIM_CCMR1_CC1S;
  38409. 8010898: 68fb ldr r3, [r7, #12]
  38410. 801089a: f023 0303 bic.w r3, r3, #3
  38411. 801089e: 60fb str r3, [r7, #12]
  38412. /* Select the Output Compare Mode */
  38413. tmpccmrx |= OC_Config->OCMode;
  38414. 80108a0: 683b ldr r3, [r7, #0]
  38415. 80108a2: 681b ldr r3, [r3, #0]
  38416. 80108a4: 68fa ldr r2, [r7, #12]
  38417. 80108a6: 4313 orrs r3, r2
  38418. 80108a8: 60fb str r3, [r7, #12]
  38419. /* Reset the Output Polarity level */
  38420. tmpccer &= ~TIM_CCER_CC1P;
  38421. 80108aa: 697b ldr r3, [r7, #20]
  38422. 80108ac: f023 0302 bic.w r3, r3, #2
  38423. 80108b0: 617b str r3, [r7, #20]
  38424. /* Set the Output Compare Polarity */
  38425. tmpccer |= OC_Config->OCPolarity;
  38426. 80108b2: 683b ldr r3, [r7, #0]
  38427. 80108b4: 689b ldr r3, [r3, #8]
  38428. 80108b6: 697a ldr r2, [r7, #20]
  38429. 80108b8: 4313 orrs r3, r2
  38430. 80108ba: 617b str r3, [r7, #20]
  38431. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  38432. 80108bc: 687b ldr r3, [r7, #4]
  38433. 80108be: 4a2d ldr r2, [pc, #180] @ (8010974 <TIM_OC1_SetConfig+0x10c>)
  38434. 80108c0: 4293 cmp r3, r2
  38435. 80108c2: d00f beq.n 80108e4 <TIM_OC1_SetConfig+0x7c>
  38436. 80108c4: 687b ldr r3, [r7, #4]
  38437. 80108c6: 4a2c ldr r2, [pc, #176] @ (8010978 <TIM_OC1_SetConfig+0x110>)
  38438. 80108c8: 4293 cmp r3, r2
  38439. 80108ca: d00b beq.n 80108e4 <TIM_OC1_SetConfig+0x7c>
  38440. 80108cc: 687b ldr r3, [r7, #4]
  38441. 80108ce: 4a2b ldr r2, [pc, #172] @ (801097c <TIM_OC1_SetConfig+0x114>)
  38442. 80108d0: 4293 cmp r3, r2
  38443. 80108d2: d007 beq.n 80108e4 <TIM_OC1_SetConfig+0x7c>
  38444. 80108d4: 687b ldr r3, [r7, #4]
  38445. 80108d6: 4a2a ldr r2, [pc, #168] @ (8010980 <TIM_OC1_SetConfig+0x118>)
  38446. 80108d8: 4293 cmp r3, r2
  38447. 80108da: d003 beq.n 80108e4 <TIM_OC1_SetConfig+0x7c>
  38448. 80108dc: 687b ldr r3, [r7, #4]
  38449. 80108de: 4a29 ldr r2, [pc, #164] @ (8010984 <TIM_OC1_SetConfig+0x11c>)
  38450. 80108e0: 4293 cmp r3, r2
  38451. 80108e2: d10c bne.n 80108fe <TIM_OC1_SetConfig+0x96>
  38452. {
  38453. /* Check parameters */
  38454. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38455. /* Reset the Output N Polarity level */
  38456. tmpccer &= ~TIM_CCER_CC1NP;
  38457. 80108e4: 697b ldr r3, [r7, #20]
  38458. 80108e6: f023 0308 bic.w r3, r3, #8
  38459. 80108ea: 617b str r3, [r7, #20]
  38460. /* Set the Output N Polarity */
  38461. tmpccer |= OC_Config->OCNPolarity;
  38462. 80108ec: 683b ldr r3, [r7, #0]
  38463. 80108ee: 68db ldr r3, [r3, #12]
  38464. 80108f0: 697a ldr r2, [r7, #20]
  38465. 80108f2: 4313 orrs r3, r2
  38466. 80108f4: 617b str r3, [r7, #20]
  38467. /* Reset the Output N State */
  38468. tmpccer &= ~TIM_CCER_CC1NE;
  38469. 80108f6: 697b ldr r3, [r7, #20]
  38470. 80108f8: f023 0304 bic.w r3, r3, #4
  38471. 80108fc: 617b str r3, [r7, #20]
  38472. }
  38473. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38474. 80108fe: 687b ldr r3, [r7, #4]
  38475. 8010900: 4a1c ldr r2, [pc, #112] @ (8010974 <TIM_OC1_SetConfig+0x10c>)
  38476. 8010902: 4293 cmp r3, r2
  38477. 8010904: d00f beq.n 8010926 <TIM_OC1_SetConfig+0xbe>
  38478. 8010906: 687b ldr r3, [r7, #4]
  38479. 8010908: 4a1b ldr r2, [pc, #108] @ (8010978 <TIM_OC1_SetConfig+0x110>)
  38480. 801090a: 4293 cmp r3, r2
  38481. 801090c: d00b beq.n 8010926 <TIM_OC1_SetConfig+0xbe>
  38482. 801090e: 687b ldr r3, [r7, #4]
  38483. 8010910: 4a1a ldr r2, [pc, #104] @ (801097c <TIM_OC1_SetConfig+0x114>)
  38484. 8010912: 4293 cmp r3, r2
  38485. 8010914: d007 beq.n 8010926 <TIM_OC1_SetConfig+0xbe>
  38486. 8010916: 687b ldr r3, [r7, #4]
  38487. 8010918: 4a19 ldr r2, [pc, #100] @ (8010980 <TIM_OC1_SetConfig+0x118>)
  38488. 801091a: 4293 cmp r3, r2
  38489. 801091c: d003 beq.n 8010926 <TIM_OC1_SetConfig+0xbe>
  38490. 801091e: 687b ldr r3, [r7, #4]
  38491. 8010920: 4a18 ldr r2, [pc, #96] @ (8010984 <TIM_OC1_SetConfig+0x11c>)
  38492. 8010922: 4293 cmp r3, r2
  38493. 8010924: d111 bne.n 801094a <TIM_OC1_SetConfig+0xe2>
  38494. /* Check parameters */
  38495. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38496. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38497. /* Reset the Output Compare and Output Compare N IDLE State */
  38498. tmpcr2 &= ~TIM_CR2_OIS1;
  38499. 8010926: 693b ldr r3, [r7, #16]
  38500. 8010928: f423 7380 bic.w r3, r3, #256 @ 0x100
  38501. 801092c: 613b str r3, [r7, #16]
  38502. tmpcr2 &= ~TIM_CR2_OIS1N;
  38503. 801092e: 693b ldr r3, [r7, #16]
  38504. 8010930: f423 7300 bic.w r3, r3, #512 @ 0x200
  38505. 8010934: 613b str r3, [r7, #16]
  38506. /* Set the Output Idle state */
  38507. tmpcr2 |= OC_Config->OCIdleState;
  38508. 8010936: 683b ldr r3, [r7, #0]
  38509. 8010938: 695b ldr r3, [r3, #20]
  38510. 801093a: 693a ldr r2, [r7, #16]
  38511. 801093c: 4313 orrs r3, r2
  38512. 801093e: 613b str r3, [r7, #16]
  38513. /* Set the Output N Idle state */
  38514. tmpcr2 |= OC_Config->OCNIdleState;
  38515. 8010940: 683b ldr r3, [r7, #0]
  38516. 8010942: 699b ldr r3, [r3, #24]
  38517. 8010944: 693a ldr r2, [r7, #16]
  38518. 8010946: 4313 orrs r3, r2
  38519. 8010948: 613b str r3, [r7, #16]
  38520. }
  38521. /* Write to TIMx CR2 */
  38522. TIMx->CR2 = tmpcr2;
  38523. 801094a: 687b ldr r3, [r7, #4]
  38524. 801094c: 693a ldr r2, [r7, #16]
  38525. 801094e: 605a str r2, [r3, #4]
  38526. /* Write to TIMx CCMR1 */
  38527. TIMx->CCMR1 = tmpccmrx;
  38528. 8010950: 687b ldr r3, [r7, #4]
  38529. 8010952: 68fa ldr r2, [r7, #12]
  38530. 8010954: 619a str r2, [r3, #24]
  38531. /* Set the Capture Compare Register value */
  38532. TIMx->CCR1 = OC_Config->Pulse;
  38533. 8010956: 683b ldr r3, [r7, #0]
  38534. 8010958: 685a ldr r2, [r3, #4]
  38535. 801095a: 687b ldr r3, [r7, #4]
  38536. 801095c: 635a str r2, [r3, #52] @ 0x34
  38537. /* Write to TIMx CCER */
  38538. TIMx->CCER = tmpccer;
  38539. 801095e: 687b ldr r3, [r7, #4]
  38540. 8010960: 697a ldr r2, [r7, #20]
  38541. 8010962: 621a str r2, [r3, #32]
  38542. }
  38543. 8010964: bf00 nop
  38544. 8010966: 371c adds r7, #28
  38545. 8010968: 46bd mov sp, r7
  38546. 801096a: f85d 7b04 ldr.w r7, [sp], #4
  38547. 801096e: 4770 bx lr
  38548. 8010970: fffeff8f .word 0xfffeff8f
  38549. 8010974: 40010000 .word 0x40010000
  38550. 8010978: 40010400 .word 0x40010400
  38551. 801097c: 40014000 .word 0x40014000
  38552. 8010980: 40014400 .word 0x40014400
  38553. 8010984: 40014800 .word 0x40014800
  38554. 08010988 <TIM_OC2_SetConfig>:
  38555. * @param TIMx to select the TIM peripheral
  38556. * @param OC_Config The output configuration structure
  38557. * @retval None
  38558. */
  38559. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38560. {
  38561. 8010988: b480 push {r7}
  38562. 801098a: b087 sub sp, #28
  38563. 801098c: af00 add r7, sp, #0
  38564. 801098e: 6078 str r0, [r7, #4]
  38565. 8010990: 6039 str r1, [r7, #0]
  38566. uint32_t tmpccmrx;
  38567. uint32_t tmpccer;
  38568. uint32_t tmpcr2;
  38569. /* Get the TIMx CCER register value */
  38570. tmpccer = TIMx->CCER;
  38571. 8010992: 687b ldr r3, [r7, #4]
  38572. 8010994: 6a1b ldr r3, [r3, #32]
  38573. 8010996: 617b str r3, [r7, #20]
  38574. /* Disable the Channel 2: Reset the CC2E Bit */
  38575. TIMx->CCER &= ~TIM_CCER_CC2E;
  38576. 8010998: 687b ldr r3, [r7, #4]
  38577. 801099a: 6a1b ldr r3, [r3, #32]
  38578. 801099c: f023 0210 bic.w r2, r3, #16
  38579. 80109a0: 687b ldr r3, [r7, #4]
  38580. 80109a2: 621a str r2, [r3, #32]
  38581. /* Get the TIMx CR2 register value */
  38582. tmpcr2 = TIMx->CR2;
  38583. 80109a4: 687b ldr r3, [r7, #4]
  38584. 80109a6: 685b ldr r3, [r3, #4]
  38585. 80109a8: 613b str r3, [r7, #16]
  38586. /* Get the TIMx CCMR1 register value */
  38587. tmpccmrx = TIMx->CCMR1;
  38588. 80109aa: 687b ldr r3, [r7, #4]
  38589. 80109ac: 699b ldr r3, [r3, #24]
  38590. 80109ae: 60fb str r3, [r7, #12]
  38591. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38592. tmpccmrx &= ~TIM_CCMR1_OC2M;
  38593. 80109b0: 68fa ldr r2, [r7, #12]
  38594. 80109b2: 4b34 ldr r3, [pc, #208] @ (8010a84 <TIM_OC2_SetConfig+0xfc>)
  38595. 80109b4: 4013 ands r3, r2
  38596. 80109b6: 60fb str r3, [r7, #12]
  38597. tmpccmrx &= ~TIM_CCMR1_CC2S;
  38598. 80109b8: 68fb ldr r3, [r7, #12]
  38599. 80109ba: f423 7340 bic.w r3, r3, #768 @ 0x300
  38600. 80109be: 60fb str r3, [r7, #12]
  38601. /* Select the Output Compare Mode */
  38602. tmpccmrx |= (OC_Config->OCMode << 8U);
  38603. 80109c0: 683b ldr r3, [r7, #0]
  38604. 80109c2: 681b ldr r3, [r3, #0]
  38605. 80109c4: 021b lsls r3, r3, #8
  38606. 80109c6: 68fa ldr r2, [r7, #12]
  38607. 80109c8: 4313 orrs r3, r2
  38608. 80109ca: 60fb str r3, [r7, #12]
  38609. /* Reset the Output Polarity level */
  38610. tmpccer &= ~TIM_CCER_CC2P;
  38611. 80109cc: 697b ldr r3, [r7, #20]
  38612. 80109ce: f023 0320 bic.w r3, r3, #32
  38613. 80109d2: 617b str r3, [r7, #20]
  38614. /* Set the Output Compare Polarity */
  38615. tmpccer |= (OC_Config->OCPolarity << 4U);
  38616. 80109d4: 683b ldr r3, [r7, #0]
  38617. 80109d6: 689b ldr r3, [r3, #8]
  38618. 80109d8: 011b lsls r3, r3, #4
  38619. 80109da: 697a ldr r2, [r7, #20]
  38620. 80109dc: 4313 orrs r3, r2
  38621. 80109de: 617b str r3, [r7, #20]
  38622. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  38623. 80109e0: 687b ldr r3, [r7, #4]
  38624. 80109e2: 4a29 ldr r2, [pc, #164] @ (8010a88 <TIM_OC2_SetConfig+0x100>)
  38625. 80109e4: 4293 cmp r3, r2
  38626. 80109e6: d003 beq.n 80109f0 <TIM_OC2_SetConfig+0x68>
  38627. 80109e8: 687b ldr r3, [r7, #4]
  38628. 80109ea: 4a28 ldr r2, [pc, #160] @ (8010a8c <TIM_OC2_SetConfig+0x104>)
  38629. 80109ec: 4293 cmp r3, r2
  38630. 80109ee: d10d bne.n 8010a0c <TIM_OC2_SetConfig+0x84>
  38631. {
  38632. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38633. /* Reset the Output N Polarity level */
  38634. tmpccer &= ~TIM_CCER_CC2NP;
  38635. 80109f0: 697b ldr r3, [r7, #20]
  38636. 80109f2: f023 0380 bic.w r3, r3, #128 @ 0x80
  38637. 80109f6: 617b str r3, [r7, #20]
  38638. /* Set the Output N Polarity */
  38639. tmpccer |= (OC_Config->OCNPolarity << 4U);
  38640. 80109f8: 683b ldr r3, [r7, #0]
  38641. 80109fa: 68db ldr r3, [r3, #12]
  38642. 80109fc: 011b lsls r3, r3, #4
  38643. 80109fe: 697a ldr r2, [r7, #20]
  38644. 8010a00: 4313 orrs r3, r2
  38645. 8010a02: 617b str r3, [r7, #20]
  38646. /* Reset the Output N State */
  38647. tmpccer &= ~TIM_CCER_CC2NE;
  38648. 8010a04: 697b ldr r3, [r7, #20]
  38649. 8010a06: f023 0340 bic.w r3, r3, #64 @ 0x40
  38650. 8010a0a: 617b str r3, [r7, #20]
  38651. }
  38652. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38653. 8010a0c: 687b ldr r3, [r7, #4]
  38654. 8010a0e: 4a1e ldr r2, [pc, #120] @ (8010a88 <TIM_OC2_SetConfig+0x100>)
  38655. 8010a10: 4293 cmp r3, r2
  38656. 8010a12: d00f beq.n 8010a34 <TIM_OC2_SetConfig+0xac>
  38657. 8010a14: 687b ldr r3, [r7, #4]
  38658. 8010a16: 4a1d ldr r2, [pc, #116] @ (8010a8c <TIM_OC2_SetConfig+0x104>)
  38659. 8010a18: 4293 cmp r3, r2
  38660. 8010a1a: d00b beq.n 8010a34 <TIM_OC2_SetConfig+0xac>
  38661. 8010a1c: 687b ldr r3, [r7, #4]
  38662. 8010a1e: 4a1c ldr r2, [pc, #112] @ (8010a90 <TIM_OC2_SetConfig+0x108>)
  38663. 8010a20: 4293 cmp r3, r2
  38664. 8010a22: d007 beq.n 8010a34 <TIM_OC2_SetConfig+0xac>
  38665. 8010a24: 687b ldr r3, [r7, #4]
  38666. 8010a26: 4a1b ldr r2, [pc, #108] @ (8010a94 <TIM_OC2_SetConfig+0x10c>)
  38667. 8010a28: 4293 cmp r3, r2
  38668. 8010a2a: d003 beq.n 8010a34 <TIM_OC2_SetConfig+0xac>
  38669. 8010a2c: 687b ldr r3, [r7, #4]
  38670. 8010a2e: 4a1a ldr r2, [pc, #104] @ (8010a98 <TIM_OC2_SetConfig+0x110>)
  38671. 8010a30: 4293 cmp r3, r2
  38672. 8010a32: d113 bne.n 8010a5c <TIM_OC2_SetConfig+0xd4>
  38673. /* Check parameters */
  38674. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38675. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38676. /* Reset the Output Compare and Output Compare N IDLE State */
  38677. tmpcr2 &= ~TIM_CR2_OIS2;
  38678. 8010a34: 693b ldr r3, [r7, #16]
  38679. 8010a36: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38680. 8010a3a: 613b str r3, [r7, #16]
  38681. tmpcr2 &= ~TIM_CR2_OIS2N;
  38682. 8010a3c: 693b ldr r3, [r7, #16]
  38683. 8010a3e: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38684. 8010a42: 613b str r3, [r7, #16]
  38685. /* Set the Output Idle state */
  38686. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  38687. 8010a44: 683b ldr r3, [r7, #0]
  38688. 8010a46: 695b ldr r3, [r3, #20]
  38689. 8010a48: 009b lsls r3, r3, #2
  38690. 8010a4a: 693a ldr r2, [r7, #16]
  38691. 8010a4c: 4313 orrs r3, r2
  38692. 8010a4e: 613b str r3, [r7, #16]
  38693. /* Set the Output N Idle state */
  38694. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  38695. 8010a50: 683b ldr r3, [r7, #0]
  38696. 8010a52: 699b ldr r3, [r3, #24]
  38697. 8010a54: 009b lsls r3, r3, #2
  38698. 8010a56: 693a ldr r2, [r7, #16]
  38699. 8010a58: 4313 orrs r3, r2
  38700. 8010a5a: 613b str r3, [r7, #16]
  38701. }
  38702. /* Write to TIMx CR2 */
  38703. TIMx->CR2 = tmpcr2;
  38704. 8010a5c: 687b ldr r3, [r7, #4]
  38705. 8010a5e: 693a ldr r2, [r7, #16]
  38706. 8010a60: 605a str r2, [r3, #4]
  38707. /* Write to TIMx CCMR1 */
  38708. TIMx->CCMR1 = tmpccmrx;
  38709. 8010a62: 687b ldr r3, [r7, #4]
  38710. 8010a64: 68fa ldr r2, [r7, #12]
  38711. 8010a66: 619a str r2, [r3, #24]
  38712. /* Set the Capture Compare Register value */
  38713. TIMx->CCR2 = OC_Config->Pulse;
  38714. 8010a68: 683b ldr r3, [r7, #0]
  38715. 8010a6a: 685a ldr r2, [r3, #4]
  38716. 8010a6c: 687b ldr r3, [r7, #4]
  38717. 8010a6e: 639a str r2, [r3, #56] @ 0x38
  38718. /* Write to TIMx CCER */
  38719. TIMx->CCER = tmpccer;
  38720. 8010a70: 687b ldr r3, [r7, #4]
  38721. 8010a72: 697a ldr r2, [r7, #20]
  38722. 8010a74: 621a str r2, [r3, #32]
  38723. }
  38724. 8010a76: bf00 nop
  38725. 8010a78: 371c adds r7, #28
  38726. 8010a7a: 46bd mov sp, r7
  38727. 8010a7c: f85d 7b04 ldr.w r7, [sp], #4
  38728. 8010a80: 4770 bx lr
  38729. 8010a82: bf00 nop
  38730. 8010a84: feff8fff .word 0xfeff8fff
  38731. 8010a88: 40010000 .word 0x40010000
  38732. 8010a8c: 40010400 .word 0x40010400
  38733. 8010a90: 40014000 .word 0x40014000
  38734. 8010a94: 40014400 .word 0x40014400
  38735. 8010a98: 40014800 .word 0x40014800
  38736. 08010a9c <TIM_OC3_SetConfig>:
  38737. * @param TIMx to select the TIM peripheral
  38738. * @param OC_Config The output configuration structure
  38739. * @retval None
  38740. */
  38741. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38742. {
  38743. 8010a9c: b480 push {r7}
  38744. 8010a9e: b087 sub sp, #28
  38745. 8010aa0: af00 add r7, sp, #0
  38746. 8010aa2: 6078 str r0, [r7, #4]
  38747. 8010aa4: 6039 str r1, [r7, #0]
  38748. uint32_t tmpccmrx;
  38749. uint32_t tmpccer;
  38750. uint32_t tmpcr2;
  38751. /* Get the TIMx CCER register value */
  38752. tmpccer = TIMx->CCER;
  38753. 8010aa6: 687b ldr r3, [r7, #4]
  38754. 8010aa8: 6a1b ldr r3, [r3, #32]
  38755. 8010aaa: 617b str r3, [r7, #20]
  38756. /* Disable the Channel 3: Reset the CC2E Bit */
  38757. TIMx->CCER &= ~TIM_CCER_CC3E;
  38758. 8010aac: 687b ldr r3, [r7, #4]
  38759. 8010aae: 6a1b ldr r3, [r3, #32]
  38760. 8010ab0: f423 7280 bic.w r2, r3, #256 @ 0x100
  38761. 8010ab4: 687b ldr r3, [r7, #4]
  38762. 8010ab6: 621a str r2, [r3, #32]
  38763. /* Get the TIMx CR2 register value */
  38764. tmpcr2 = TIMx->CR2;
  38765. 8010ab8: 687b ldr r3, [r7, #4]
  38766. 8010aba: 685b ldr r3, [r3, #4]
  38767. 8010abc: 613b str r3, [r7, #16]
  38768. /* Get the TIMx CCMR2 register value */
  38769. tmpccmrx = TIMx->CCMR2;
  38770. 8010abe: 687b ldr r3, [r7, #4]
  38771. 8010ac0: 69db ldr r3, [r3, #28]
  38772. 8010ac2: 60fb str r3, [r7, #12]
  38773. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38774. tmpccmrx &= ~TIM_CCMR2_OC3M;
  38775. 8010ac4: 68fa ldr r2, [r7, #12]
  38776. 8010ac6: 4b33 ldr r3, [pc, #204] @ (8010b94 <TIM_OC3_SetConfig+0xf8>)
  38777. 8010ac8: 4013 ands r3, r2
  38778. 8010aca: 60fb str r3, [r7, #12]
  38779. tmpccmrx &= ~TIM_CCMR2_CC3S;
  38780. 8010acc: 68fb ldr r3, [r7, #12]
  38781. 8010ace: f023 0303 bic.w r3, r3, #3
  38782. 8010ad2: 60fb str r3, [r7, #12]
  38783. /* Select the Output Compare Mode */
  38784. tmpccmrx |= OC_Config->OCMode;
  38785. 8010ad4: 683b ldr r3, [r7, #0]
  38786. 8010ad6: 681b ldr r3, [r3, #0]
  38787. 8010ad8: 68fa ldr r2, [r7, #12]
  38788. 8010ada: 4313 orrs r3, r2
  38789. 8010adc: 60fb str r3, [r7, #12]
  38790. /* Reset the Output Polarity level */
  38791. tmpccer &= ~TIM_CCER_CC3P;
  38792. 8010ade: 697b ldr r3, [r7, #20]
  38793. 8010ae0: f423 7300 bic.w r3, r3, #512 @ 0x200
  38794. 8010ae4: 617b str r3, [r7, #20]
  38795. /* Set the Output Compare Polarity */
  38796. tmpccer |= (OC_Config->OCPolarity << 8U);
  38797. 8010ae6: 683b ldr r3, [r7, #0]
  38798. 8010ae8: 689b ldr r3, [r3, #8]
  38799. 8010aea: 021b lsls r3, r3, #8
  38800. 8010aec: 697a ldr r2, [r7, #20]
  38801. 8010aee: 4313 orrs r3, r2
  38802. 8010af0: 617b str r3, [r7, #20]
  38803. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  38804. 8010af2: 687b ldr r3, [r7, #4]
  38805. 8010af4: 4a28 ldr r2, [pc, #160] @ (8010b98 <TIM_OC3_SetConfig+0xfc>)
  38806. 8010af6: 4293 cmp r3, r2
  38807. 8010af8: d003 beq.n 8010b02 <TIM_OC3_SetConfig+0x66>
  38808. 8010afa: 687b ldr r3, [r7, #4]
  38809. 8010afc: 4a27 ldr r2, [pc, #156] @ (8010b9c <TIM_OC3_SetConfig+0x100>)
  38810. 8010afe: 4293 cmp r3, r2
  38811. 8010b00: d10d bne.n 8010b1e <TIM_OC3_SetConfig+0x82>
  38812. {
  38813. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38814. /* Reset the Output N Polarity level */
  38815. tmpccer &= ~TIM_CCER_CC3NP;
  38816. 8010b02: 697b ldr r3, [r7, #20]
  38817. 8010b04: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38818. 8010b08: 617b str r3, [r7, #20]
  38819. /* Set the Output N Polarity */
  38820. tmpccer |= (OC_Config->OCNPolarity << 8U);
  38821. 8010b0a: 683b ldr r3, [r7, #0]
  38822. 8010b0c: 68db ldr r3, [r3, #12]
  38823. 8010b0e: 021b lsls r3, r3, #8
  38824. 8010b10: 697a ldr r2, [r7, #20]
  38825. 8010b12: 4313 orrs r3, r2
  38826. 8010b14: 617b str r3, [r7, #20]
  38827. /* Reset the Output N State */
  38828. tmpccer &= ~TIM_CCER_CC3NE;
  38829. 8010b16: 697b ldr r3, [r7, #20]
  38830. 8010b18: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38831. 8010b1c: 617b str r3, [r7, #20]
  38832. }
  38833. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38834. 8010b1e: 687b ldr r3, [r7, #4]
  38835. 8010b20: 4a1d ldr r2, [pc, #116] @ (8010b98 <TIM_OC3_SetConfig+0xfc>)
  38836. 8010b22: 4293 cmp r3, r2
  38837. 8010b24: d00f beq.n 8010b46 <TIM_OC3_SetConfig+0xaa>
  38838. 8010b26: 687b ldr r3, [r7, #4]
  38839. 8010b28: 4a1c ldr r2, [pc, #112] @ (8010b9c <TIM_OC3_SetConfig+0x100>)
  38840. 8010b2a: 4293 cmp r3, r2
  38841. 8010b2c: d00b beq.n 8010b46 <TIM_OC3_SetConfig+0xaa>
  38842. 8010b2e: 687b ldr r3, [r7, #4]
  38843. 8010b30: 4a1b ldr r2, [pc, #108] @ (8010ba0 <TIM_OC3_SetConfig+0x104>)
  38844. 8010b32: 4293 cmp r3, r2
  38845. 8010b34: d007 beq.n 8010b46 <TIM_OC3_SetConfig+0xaa>
  38846. 8010b36: 687b ldr r3, [r7, #4]
  38847. 8010b38: 4a1a ldr r2, [pc, #104] @ (8010ba4 <TIM_OC3_SetConfig+0x108>)
  38848. 8010b3a: 4293 cmp r3, r2
  38849. 8010b3c: d003 beq.n 8010b46 <TIM_OC3_SetConfig+0xaa>
  38850. 8010b3e: 687b ldr r3, [r7, #4]
  38851. 8010b40: 4a19 ldr r2, [pc, #100] @ (8010ba8 <TIM_OC3_SetConfig+0x10c>)
  38852. 8010b42: 4293 cmp r3, r2
  38853. 8010b44: d113 bne.n 8010b6e <TIM_OC3_SetConfig+0xd2>
  38854. /* Check parameters */
  38855. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38856. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38857. /* Reset the Output Compare and Output Compare N IDLE State */
  38858. tmpcr2 &= ~TIM_CR2_OIS3;
  38859. 8010b46: 693b ldr r3, [r7, #16]
  38860. 8010b48: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  38861. 8010b4c: 613b str r3, [r7, #16]
  38862. tmpcr2 &= ~TIM_CR2_OIS3N;
  38863. 8010b4e: 693b ldr r3, [r7, #16]
  38864. 8010b50: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38865. 8010b54: 613b str r3, [r7, #16]
  38866. /* Set the Output Idle state */
  38867. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  38868. 8010b56: 683b ldr r3, [r7, #0]
  38869. 8010b58: 695b ldr r3, [r3, #20]
  38870. 8010b5a: 011b lsls r3, r3, #4
  38871. 8010b5c: 693a ldr r2, [r7, #16]
  38872. 8010b5e: 4313 orrs r3, r2
  38873. 8010b60: 613b str r3, [r7, #16]
  38874. /* Set the Output N Idle state */
  38875. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  38876. 8010b62: 683b ldr r3, [r7, #0]
  38877. 8010b64: 699b ldr r3, [r3, #24]
  38878. 8010b66: 011b lsls r3, r3, #4
  38879. 8010b68: 693a ldr r2, [r7, #16]
  38880. 8010b6a: 4313 orrs r3, r2
  38881. 8010b6c: 613b str r3, [r7, #16]
  38882. }
  38883. /* Write to TIMx CR2 */
  38884. TIMx->CR2 = tmpcr2;
  38885. 8010b6e: 687b ldr r3, [r7, #4]
  38886. 8010b70: 693a ldr r2, [r7, #16]
  38887. 8010b72: 605a str r2, [r3, #4]
  38888. /* Write to TIMx CCMR2 */
  38889. TIMx->CCMR2 = tmpccmrx;
  38890. 8010b74: 687b ldr r3, [r7, #4]
  38891. 8010b76: 68fa ldr r2, [r7, #12]
  38892. 8010b78: 61da str r2, [r3, #28]
  38893. /* Set the Capture Compare Register value */
  38894. TIMx->CCR3 = OC_Config->Pulse;
  38895. 8010b7a: 683b ldr r3, [r7, #0]
  38896. 8010b7c: 685a ldr r2, [r3, #4]
  38897. 8010b7e: 687b ldr r3, [r7, #4]
  38898. 8010b80: 63da str r2, [r3, #60] @ 0x3c
  38899. /* Write to TIMx CCER */
  38900. TIMx->CCER = tmpccer;
  38901. 8010b82: 687b ldr r3, [r7, #4]
  38902. 8010b84: 697a ldr r2, [r7, #20]
  38903. 8010b86: 621a str r2, [r3, #32]
  38904. }
  38905. 8010b88: bf00 nop
  38906. 8010b8a: 371c adds r7, #28
  38907. 8010b8c: 46bd mov sp, r7
  38908. 8010b8e: f85d 7b04 ldr.w r7, [sp], #4
  38909. 8010b92: 4770 bx lr
  38910. 8010b94: fffeff8f .word 0xfffeff8f
  38911. 8010b98: 40010000 .word 0x40010000
  38912. 8010b9c: 40010400 .word 0x40010400
  38913. 8010ba0: 40014000 .word 0x40014000
  38914. 8010ba4: 40014400 .word 0x40014400
  38915. 8010ba8: 40014800 .word 0x40014800
  38916. 08010bac <TIM_OC4_SetConfig>:
  38917. * @param TIMx to select the TIM peripheral
  38918. * @param OC_Config The output configuration structure
  38919. * @retval None
  38920. */
  38921. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38922. {
  38923. 8010bac: b480 push {r7}
  38924. 8010bae: b087 sub sp, #28
  38925. 8010bb0: af00 add r7, sp, #0
  38926. 8010bb2: 6078 str r0, [r7, #4]
  38927. 8010bb4: 6039 str r1, [r7, #0]
  38928. uint32_t tmpccmrx;
  38929. uint32_t tmpccer;
  38930. uint32_t tmpcr2;
  38931. /* Get the TIMx CCER register value */
  38932. tmpccer = TIMx->CCER;
  38933. 8010bb6: 687b ldr r3, [r7, #4]
  38934. 8010bb8: 6a1b ldr r3, [r3, #32]
  38935. 8010bba: 613b str r3, [r7, #16]
  38936. /* Disable the Channel 4: Reset the CC4E Bit */
  38937. TIMx->CCER &= ~TIM_CCER_CC4E;
  38938. 8010bbc: 687b ldr r3, [r7, #4]
  38939. 8010bbe: 6a1b ldr r3, [r3, #32]
  38940. 8010bc0: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38941. 8010bc4: 687b ldr r3, [r7, #4]
  38942. 8010bc6: 621a str r2, [r3, #32]
  38943. /* Get the TIMx CR2 register value */
  38944. tmpcr2 = TIMx->CR2;
  38945. 8010bc8: 687b ldr r3, [r7, #4]
  38946. 8010bca: 685b ldr r3, [r3, #4]
  38947. 8010bcc: 617b str r3, [r7, #20]
  38948. /* Get the TIMx CCMR2 register value */
  38949. tmpccmrx = TIMx->CCMR2;
  38950. 8010bce: 687b ldr r3, [r7, #4]
  38951. 8010bd0: 69db ldr r3, [r3, #28]
  38952. 8010bd2: 60fb str r3, [r7, #12]
  38953. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38954. tmpccmrx &= ~TIM_CCMR2_OC4M;
  38955. 8010bd4: 68fa ldr r2, [r7, #12]
  38956. 8010bd6: 4b24 ldr r3, [pc, #144] @ (8010c68 <TIM_OC4_SetConfig+0xbc>)
  38957. 8010bd8: 4013 ands r3, r2
  38958. 8010bda: 60fb str r3, [r7, #12]
  38959. tmpccmrx &= ~TIM_CCMR2_CC4S;
  38960. 8010bdc: 68fb ldr r3, [r7, #12]
  38961. 8010bde: f423 7340 bic.w r3, r3, #768 @ 0x300
  38962. 8010be2: 60fb str r3, [r7, #12]
  38963. /* Select the Output Compare Mode */
  38964. tmpccmrx |= (OC_Config->OCMode << 8U);
  38965. 8010be4: 683b ldr r3, [r7, #0]
  38966. 8010be6: 681b ldr r3, [r3, #0]
  38967. 8010be8: 021b lsls r3, r3, #8
  38968. 8010bea: 68fa ldr r2, [r7, #12]
  38969. 8010bec: 4313 orrs r3, r2
  38970. 8010bee: 60fb str r3, [r7, #12]
  38971. /* Reset the Output Polarity level */
  38972. tmpccer &= ~TIM_CCER_CC4P;
  38973. 8010bf0: 693b ldr r3, [r7, #16]
  38974. 8010bf2: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38975. 8010bf6: 613b str r3, [r7, #16]
  38976. /* Set the Output Compare Polarity */
  38977. tmpccer |= (OC_Config->OCPolarity << 12U);
  38978. 8010bf8: 683b ldr r3, [r7, #0]
  38979. 8010bfa: 689b ldr r3, [r3, #8]
  38980. 8010bfc: 031b lsls r3, r3, #12
  38981. 8010bfe: 693a ldr r2, [r7, #16]
  38982. 8010c00: 4313 orrs r3, r2
  38983. 8010c02: 613b str r3, [r7, #16]
  38984. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38985. 8010c04: 687b ldr r3, [r7, #4]
  38986. 8010c06: 4a19 ldr r2, [pc, #100] @ (8010c6c <TIM_OC4_SetConfig+0xc0>)
  38987. 8010c08: 4293 cmp r3, r2
  38988. 8010c0a: d00f beq.n 8010c2c <TIM_OC4_SetConfig+0x80>
  38989. 8010c0c: 687b ldr r3, [r7, #4]
  38990. 8010c0e: 4a18 ldr r2, [pc, #96] @ (8010c70 <TIM_OC4_SetConfig+0xc4>)
  38991. 8010c10: 4293 cmp r3, r2
  38992. 8010c12: d00b beq.n 8010c2c <TIM_OC4_SetConfig+0x80>
  38993. 8010c14: 687b ldr r3, [r7, #4]
  38994. 8010c16: 4a17 ldr r2, [pc, #92] @ (8010c74 <TIM_OC4_SetConfig+0xc8>)
  38995. 8010c18: 4293 cmp r3, r2
  38996. 8010c1a: d007 beq.n 8010c2c <TIM_OC4_SetConfig+0x80>
  38997. 8010c1c: 687b ldr r3, [r7, #4]
  38998. 8010c1e: 4a16 ldr r2, [pc, #88] @ (8010c78 <TIM_OC4_SetConfig+0xcc>)
  38999. 8010c20: 4293 cmp r3, r2
  39000. 8010c22: d003 beq.n 8010c2c <TIM_OC4_SetConfig+0x80>
  39001. 8010c24: 687b ldr r3, [r7, #4]
  39002. 8010c26: 4a15 ldr r2, [pc, #84] @ (8010c7c <TIM_OC4_SetConfig+0xd0>)
  39003. 8010c28: 4293 cmp r3, r2
  39004. 8010c2a: d109 bne.n 8010c40 <TIM_OC4_SetConfig+0x94>
  39005. {
  39006. /* Check parameters */
  39007. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  39008. /* Reset the Output Compare IDLE State */
  39009. tmpcr2 &= ~TIM_CR2_OIS4;
  39010. 8010c2c: 697b ldr r3, [r7, #20]
  39011. 8010c2e: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  39012. 8010c32: 617b str r3, [r7, #20]
  39013. /* Set the Output Idle state */
  39014. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  39015. 8010c34: 683b ldr r3, [r7, #0]
  39016. 8010c36: 695b ldr r3, [r3, #20]
  39017. 8010c38: 019b lsls r3, r3, #6
  39018. 8010c3a: 697a ldr r2, [r7, #20]
  39019. 8010c3c: 4313 orrs r3, r2
  39020. 8010c3e: 617b str r3, [r7, #20]
  39021. }
  39022. /* Write to TIMx CR2 */
  39023. TIMx->CR2 = tmpcr2;
  39024. 8010c40: 687b ldr r3, [r7, #4]
  39025. 8010c42: 697a ldr r2, [r7, #20]
  39026. 8010c44: 605a str r2, [r3, #4]
  39027. /* Write to TIMx CCMR2 */
  39028. TIMx->CCMR2 = tmpccmrx;
  39029. 8010c46: 687b ldr r3, [r7, #4]
  39030. 8010c48: 68fa ldr r2, [r7, #12]
  39031. 8010c4a: 61da str r2, [r3, #28]
  39032. /* Set the Capture Compare Register value */
  39033. TIMx->CCR4 = OC_Config->Pulse;
  39034. 8010c4c: 683b ldr r3, [r7, #0]
  39035. 8010c4e: 685a ldr r2, [r3, #4]
  39036. 8010c50: 687b ldr r3, [r7, #4]
  39037. 8010c52: 641a str r2, [r3, #64] @ 0x40
  39038. /* Write to TIMx CCER */
  39039. TIMx->CCER = tmpccer;
  39040. 8010c54: 687b ldr r3, [r7, #4]
  39041. 8010c56: 693a ldr r2, [r7, #16]
  39042. 8010c58: 621a str r2, [r3, #32]
  39043. }
  39044. 8010c5a: bf00 nop
  39045. 8010c5c: 371c adds r7, #28
  39046. 8010c5e: 46bd mov sp, r7
  39047. 8010c60: f85d 7b04 ldr.w r7, [sp], #4
  39048. 8010c64: 4770 bx lr
  39049. 8010c66: bf00 nop
  39050. 8010c68: feff8fff .word 0xfeff8fff
  39051. 8010c6c: 40010000 .word 0x40010000
  39052. 8010c70: 40010400 .word 0x40010400
  39053. 8010c74: 40014000 .word 0x40014000
  39054. 8010c78: 40014400 .word 0x40014400
  39055. 8010c7c: 40014800 .word 0x40014800
  39056. 08010c80 <TIM_OC5_SetConfig>:
  39057. * @param OC_Config The output configuration structure
  39058. * @retval None
  39059. */
  39060. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  39061. const TIM_OC_InitTypeDef *OC_Config)
  39062. {
  39063. 8010c80: b480 push {r7}
  39064. 8010c82: b087 sub sp, #28
  39065. 8010c84: af00 add r7, sp, #0
  39066. 8010c86: 6078 str r0, [r7, #4]
  39067. 8010c88: 6039 str r1, [r7, #0]
  39068. uint32_t tmpccmrx;
  39069. uint32_t tmpccer;
  39070. uint32_t tmpcr2;
  39071. /* Get the TIMx CCER register value */
  39072. tmpccer = TIMx->CCER;
  39073. 8010c8a: 687b ldr r3, [r7, #4]
  39074. 8010c8c: 6a1b ldr r3, [r3, #32]
  39075. 8010c8e: 613b str r3, [r7, #16]
  39076. /* Disable the output: Reset the CCxE Bit */
  39077. TIMx->CCER &= ~TIM_CCER_CC5E;
  39078. 8010c90: 687b ldr r3, [r7, #4]
  39079. 8010c92: 6a1b ldr r3, [r3, #32]
  39080. 8010c94: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  39081. 8010c98: 687b ldr r3, [r7, #4]
  39082. 8010c9a: 621a str r2, [r3, #32]
  39083. /* Get the TIMx CR2 register value */
  39084. tmpcr2 = TIMx->CR2;
  39085. 8010c9c: 687b ldr r3, [r7, #4]
  39086. 8010c9e: 685b ldr r3, [r3, #4]
  39087. 8010ca0: 617b str r3, [r7, #20]
  39088. /* Get the TIMx CCMR1 register value */
  39089. tmpccmrx = TIMx->CCMR3;
  39090. 8010ca2: 687b ldr r3, [r7, #4]
  39091. 8010ca4: 6d5b ldr r3, [r3, #84] @ 0x54
  39092. 8010ca6: 60fb str r3, [r7, #12]
  39093. /* Reset the Output Compare Mode Bits */
  39094. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  39095. 8010ca8: 68fa ldr r2, [r7, #12]
  39096. 8010caa: 4b21 ldr r3, [pc, #132] @ (8010d30 <TIM_OC5_SetConfig+0xb0>)
  39097. 8010cac: 4013 ands r3, r2
  39098. 8010cae: 60fb str r3, [r7, #12]
  39099. /* Select the Output Compare Mode */
  39100. tmpccmrx |= OC_Config->OCMode;
  39101. 8010cb0: 683b ldr r3, [r7, #0]
  39102. 8010cb2: 681b ldr r3, [r3, #0]
  39103. 8010cb4: 68fa ldr r2, [r7, #12]
  39104. 8010cb6: 4313 orrs r3, r2
  39105. 8010cb8: 60fb str r3, [r7, #12]
  39106. /* Reset the Output Polarity level */
  39107. tmpccer &= ~TIM_CCER_CC5P;
  39108. 8010cba: 693b ldr r3, [r7, #16]
  39109. 8010cbc: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  39110. 8010cc0: 613b str r3, [r7, #16]
  39111. /* Set the Output Compare Polarity */
  39112. tmpccer |= (OC_Config->OCPolarity << 16U);
  39113. 8010cc2: 683b ldr r3, [r7, #0]
  39114. 8010cc4: 689b ldr r3, [r3, #8]
  39115. 8010cc6: 041b lsls r3, r3, #16
  39116. 8010cc8: 693a ldr r2, [r7, #16]
  39117. 8010cca: 4313 orrs r3, r2
  39118. 8010ccc: 613b str r3, [r7, #16]
  39119. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39120. 8010cce: 687b ldr r3, [r7, #4]
  39121. 8010cd0: 4a18 ldr r2, [pc, #96] @ (8010d34 <TIM_OC5_SetConfig+0xb4>)
  39122. 8010cd2: 4293 cmp r3, r2
  39123. 8010cd4: d00f beq.n 8010cf6 <TIM_OC5_SetConfig+0x76>
  39124. 8010cd6: 687b ldr r3, [r7, #4]
  39125. 8010cd8: 4a17 ldr r2, [pc, #92] @ (8010d38 <TIM_OC5_SetConfig+0xb8>)
  39126. 8010cda: 4293 cmp r3, r2
  39127. 8010cdc: d00b beq.n 8010cf6 <TIM_OC5_SetConfig+0x76>
  39128. 8010cde: 687b ldr r3, [r7, #4]
  39129. 8010ce0: 4a16 ldr r2, [pc, #88] @ (8010d3c <TIM_OC5_SetConfig+0xbc>)
  39130. 8010ce2: 4293 cmp r3, r2
  39131. 8010ce4: d007 beq.n 8010cf6 <TIM_OC5_SetConfig+0x76>
  39132. 8010ce6: 687b ldr r3, [r7, #4]
  39133. 8010ce8: 4a15 ldr r2, [pc, #84] @ (8010d40 <TIM_OC5_SetConfig+0xc0>)
  39134. 8010cea: 4293 cmp r3, r2
  39135. 8010cec: d003 beq.n 8010cf6 <TIM_OC5_SetConfig+0x76>
  39136. 8010cee: 687b ldr r3, [r7, #4]
  39137. 8010cf0: 4a14 ldr r2, [pc, #80] @ (8010d44 <TIM_OC5_SetConfig+0xc4>)
  39138. 8010cf2: 4293 cmp r3, r2
  39139. 8010cf4: d109 bne.n 8010d0a <TIM_OC5_SetConfig+0x8a>
  39140. {
  39141. /* Reset the Output Compare IDLE State */
  39142. tmpcr2 &= ~TIM_CR2_OIS5;
  39143. 8010cf6: 697b ldr r3, [r7, #20]
  39144. 8010cf8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  39145. 8010cfc: 617b str r3, [r7, #20]
  39146. /* Set the Output Idle state */
  39147. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  39148. 8010cfe: 683b ldr r3, [r7, #0]
  39149. 8010d00: 695b ldr r3, [r3, #20]
  39150. 8010d02: 021b lsls r3, r3, #8
  39151. 8010d04: 697a ldr r2, [r7, #20]
  39152. 8010d06: 4313 orrs r3, r2
  39153. 8010d08: 617b str r3, [r7, #20]
  39154. }
  39155. /* Write to TIMx CR2 */
  39156. TIMx->CR2 = tmpcr2;
  39157. 8010d0a: 687b ldr r3, [r7, #4]
  39158. 8010d0c: 697a ldr r2, [r7, #20]
  39159. 8010d0e: 605a str r2, [r3, #4]
  39160. /* Write to TIMx CCMR3 */
  39161. TIMx->CCMR3 = tmpccmrx;
  39162. 8010d10: 687b ldr r3, [r7, #4]
  39163. 8010d12: 68fa ldr r2, [r7, #12]
  39164. 8010d14: 655a str r2, [r3, #84] @ 0x54
  39165. /* Set the Capture Compare Register value */
  39166. TIMx->CCR5 = OC_Config->Pulse;
  39167. 8010d16: 683b ldr r3, [r7, #0]
  39168. 8010d18: 685a ldr r2, [r3, #4]
  39169. 8010d1a: 687b ldr r3, [r7, #4]
  39170. 8010d1c: 659a str r2, [r3, #88] @ 0x58
  39171. /* Write to TIMx CCER */
  39172. TIMx->CCER = tmpccer;
  39173. 8010d1e: 687b ldr r3, [r7, #4]
  39174. 8010d20: 693a ldr r2, [r7, #16]
  39175. 8010d22: 621a str r2, [r3, #32]
  39176. }
  39177. 8010d24: bf00 nop
  39178. 8010d26: 371c adds r7, #28
  39179. 8010d28: 46bd mov sp, r7
  39180. 8010d2a: f85d 7b04 ldr.w r7, [sp], #4
  39181. 8010d2e: 4770 bx lr
  39182. 8010d30: fffeff8f .word 0xfffeff8f
  39183. 8010d34: 40010000 .word 0x40010000
  39184. 8010d38: 40010400 .word 0x40010400
  39185. 8010d3c: 40014000 .word 0x40014000
  39186. 8010d40: 40014400 .word 0x40014400
  39187. 8010d44: 40014800 .word 0x40014800
  39188. 08010d48 <TIM_OC6_SetConfig>:
  39189. * @param OC_Config The output configuration structure
  39190. * @retval None
  39191. */
  39192. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  39193. const TIM_OC_InitTypeDef *OC_Config)
  39194. {
  39195. 8010d48: b480 push {r7}
  39196. 8010d4a: b087 sub sp, #28
  39197. 8010d4c: af00 add r7, sp, #0
  39198. 8010d4e: 6078 str r0, [r7, #4]
  39199. 8010d50: 6039 str r1, [r7, #0]
  39200. uint32_t tmpccmrx;
  39201. uint32_t tmpccer;
  39202. uint32_t tmpcr2;
  39203. /* Get the TIMx CCER register value */
  39204. tmpccer = TIMx->CCER;
  39205. 8010d52: 687b ldr r3, [r7, #4]
  39206. 8010d54: 6a1b ldr r3, [r3, #32]
  39207. 8010d56: 613b str r3, [r7, #16]
  39208. /* Disable the output: Reset the CCxE Bit */
  39209. TIMx->CCER &= ~TIM_CCER_CC6E;
  39210. 8010d58: 687b ldr r3, [r7, #4]
  39211. 8010d5a: 6a1b ldr r3, [r3, #32]
  39212. 8010d5c: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  39213. 8010d60: 687b ldr r3, [r7, #4]
  39214. 8010d62: 621a str r2, [r3, #32]
  39215. /* Get the TIMx CR2 register value */
  39216. tmpcr2 = TIMx->CR2;
  39217. 8010d64: 687b ldr r3, [r7, #4]
  39218. 8010d66: 685b ldr r3, [r3, #4]
  39219. 8010d68: 617b str r3, [r7, #20]
  39220. /* Get the TIMx CCMR1 register value */
  39221. tmpccmrx = TIMx->CCMR3;
  39222. 8010d6a: 687b ldr r3, [r7, #4]
  39223. 8010d6c: 6d5b ldr r3, [r3, #84] @ 0x54
  39224. 8010d6e: 60fb str r3, [r7, #12]
  39225. /* Reset the Output Compare Mode Bits */
  39226. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  39227. 8010d70: 68fa ldr r2, [r7, #12]
  39228. 8010d72: 4b22 ldr r3, [pc, #136] @ (8010dfc <TIM_OC6_SetConfig+0xb4>)
  39229. 8010d74: 4013 ands r3, r2
  39230. 8010d76: 60fb str r3, [r7, #12]
  39231. /* Select the Output Compare Mode */
  39232. tmpccmrx |= (OC_Config->OCMode << 8U);
  39233. 8010d78: 683b ldr r3, [r7, #0]
  39234. 8010d7a: 681b ldr r3, [r3, #0]
  39235. 8010d7c: 021b lsls r3, r3, #8
  39236. 8010d7e: 68fa ldr r2, [r7, #12]
  39237. 8010d80: 4313 orrs r3, r2
  39238. 8010d82: 60fb str r3, [r7, #12]
  39239. /* Reset the Output Polarity level */
  39240. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  39241. 8010d84: 693b ldr r3, [r7, #16]
  39242. 8010d86: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  39243. 8010d8a: 613b str r3, [r7, #16]
  39244. /* Set the Output Compare Polarity */
  39245. tmpccer |= (OC_Config->OCPolarity << 20U);
  39246. 8010d8c: 683b ldr r3, [r7, #0]
  39247. 8010d8e: 689b ldr r3, [r3, #8]
  39248. 8010d90: 051b lsls r3, r3, #20
  39249. 8010d92: 693a ldr r2, [r7, #16]
  39250. 8010d94: 4313 orrs r3, r2
  39251. 8010d96: 613b str r3, [r7, #16]
  39252. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39253. 8010d98: 687b ldr r3, [r7, #4]
  39254. 8010d9a: 4a19 ldr r2, [pc, #100] @ (8010e00 <TIM_OC6_SetConfig+0xb8>)
  39255. 8010d9c: 4293 cmp r3, r2
  39256. 8010d9e: d00f beq.n 8010dc0 <TIM_OC6_SetConfig+0x78>
  39257. 8010da0: 687b ldr r3, [r7, #4]
  39258. 8010da2: 4a18 ldr r2, [pc, #96] @ (8010e04 <TIM_OC6_SetConfig+0xbc>)
  39259. 8010da4: 4293 cmp r3, r2
  39260. 8010da6: d00b beq.n 8010dc0 <TIM_OC6_SetConfig+0x78>
  39261. 8010da8: 687b ldr r3, [r7, #4]
  39262. 8010daa: 4a17 ldr r2, [pc, #92] @ (8010e08 <TIM_OC6_SetConfig+0xc0>)
  39263. 8010dac: 4293 cmp r3, r2
  39264. 8010dae: d007 beq.n 8010dc0 <TIM_OC6_SetConfig+0x78>
  39265. 8010db0: 687b ldr r3, [r7, #4]
  39266. 8010db2: 4a16 ldr r2, [pc, #88] @ (8010e0c <TIM_OC6_SetConfig+0xc4>)
  39267. 8010db4: 4293 cmp r3, r2
  39268. 8010db6: d003 beq.n 8010dc0 <TIM_OC6_SetConfig+0x78>
  39269. 8010db8: 687b ldr r3, [r7, #4]
  39270. 8010dba: 4a15 ldr r2, [pc, #84] @ (8010e10 <TIM_OC6_SetConfig+0xc8>)
  39271. 8010dbc: 4293 cmp r3, r2
  39272. 8010dbe: d109 bne.n 8010dd4 <TIM_OC6_SetConfig+0x8c>
  39273. {
  39274. /* Reset the Output Compare IDLE State */
  39275. tmpcr2 &= ~TIM_CR2_OIS6;
  39276. 8010dc0: 697b ldr r3, [r7, #20]
  39277. 8010dc2: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  39278. 8010dc6: 617b str r3, [r7, #20]
  39279. /* Set the Output Idle state */
  39280. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  39281. 8010dc8: 683b ldr r3, [r7, #0]
  39282. 8010dca: 695b ldr r3, [r3, #20]
  39283. 8010dcc: 029b lsls r3, r3, #10
  39284. 8010dce: 697a ldr r2, [r7, #20]
  39285. 8010dd0: 4313 orrs r3, r2
  39286. 8010dd2: 617b str r3, [r7, #20]
  39287. }
  39288. /* Write to TIMx CR2 */
  39289. TIMx->CR2 = tmpcr2;
  39290. 8010dd4: 687b ldr r3, [r7, #4]
  39291. 8010dd6: 697a ldr r2, [r7, #20]
  39292. 8010dd8: 605a str r2, [r3, #4]
  39293. /* Write to TIMx CCMR3 */
  39294. TIMx->CCMR3 = tmpccmrx;
  39295. 8010dda: 687b ldr r3, [r7, #4]
  39296. 8010ddc: 68fa ldr r2, [r7, #12]
  39297. 8010dde: 655a str r2, [r3, #84] @ 0x54
  39298. /* Set the Capture Compare Register value */
  39299. TIMx->CCR6 = OC_Config->Pulse;
  39300. 8010de0: 683b ldr r3, [r7, #0]
  39301. 8010de2: 685a ldr r2, [r3, #4]
  39302. 8010de4: 687b ldr r3, [r7, #4]
  39303. 8010de6: 65da str r2, [r3, #92] @ 0x5c
  39304. /* Write to TIMx CCER */
  39305. TIMx->CCER = tmpccer;
  39306. 8010de8: 687b ldr r3, [r7, #4]
  39307. 8010dea: 693a ldr r2, [r7, #16]
  39308. 8010dec: 621a str r2, [r3, #32]
  39309. }
  39310. 8010dee: bf00 nop
  39311. 8010df0: 371c adds r7, #28
  39312. 8010df2: 46bd mov sp, r7
  39313. 8010df4: f85d 7b04 ldr.w r7, [sp], #4
  39314. 8010df8: 4770 bx lr
  39315. 8010dfa: bf00 nop
  39316. 8010dfc: feff8fff .word 0xfeff8fff
  39317. 8010e00: 40010000 .word 0x40010000
  39318. 8010e04: 40010400 .word 0x40010400
  39319. 8010e08: 40014000 .word 0x40014000
  39320. 8010e0c: 40014400 .word 0x40014400
  39321. 8010e10: 40014800 .word 0x40014800
  39322. 08010e14 <TIM_TI1_SetConfig>:
  39323. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  39324. * protected against un-initialized filter and polarity values.
  39325. */
  39326. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39327. uint32_t TIM_ICFilter)
  39328. {
  39329. 8010e14: b480 push {r7}
  39330. 8010e16: b087 sub sp, #28
  39331. 8010e18: af00 add r7, sp, #0
  39332. 8010e1a: 60f8 str r0, [r7, #12]
  39333. 8010e1c: 60b9 str r1, [r7, #8]
  39334. 8010e1e: 607a str r2, [r7, #4]
  39335. 8010e20: 603b str r3, [r7, #0]
  39336. uint32_t tmpccmr1;
  39337. uint32_t tmpccer;
  39338. /* Disable the Channel 1: Reset the CC1E Bit */
  39339. tmpccer = TIMx->CCER;
  39340. 8010e22: 68fb ldr r3, [r7, #12]
  39341. 8010e24: 6a1b ldr r3, [r3, #32]
  39342. 8010e26: 613b str r3, [r7, #16]
  39343. TIMx->CCER &= ~TIM_CCER_CC1E;
  39344. 8010e28: 68fb ldr r3, [r7, #12]
  39345. 8010e2a: 6a1b ldr r3, [r3, #32]
  39346. 8010e2c: f023 0201 bic.w r2, r3, #1
  39347. 8010e30: 68fb ldr r3, [r7, #12]
  39348. 8010e32: 621a str r2, [r3, #32]
  39349. tmpccmr1 = TIMx->CCMR1;
  39350. 8010e34: 68fb ldr r3, [r7, #12]
  39351. 8010e36: 699b ldr r3, [r3, #24]
  39352. 8010e38: 617b str r3, [r7, #20]
  39353. /* Select the Input */
  39354. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  39355. 8010e3a: 68fb ldr r3, [r7, #12]
  39356. 8010e3c: 4a28 ldr r2, [pc, #160] @ (8010ee0 <TIM_TI1_SetConfig+0xcc>)
  39357. 8010e3e: 4293 cmp r3, r2
  39358. 8010e40: d01b beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39359. 8010e42: 68fb ldr r3, [r7, #12]
  39360. 8010e44: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  39361. 8010e48: d017 beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39362. 8010e4a: 68fb ldr r3, [r7, #12]
  39363. 8010e4c: 4a25 ldr r2, [pc, #148] @ (8010ee4 <TIM_TI1_SetConfig+0xd0>)
  39364. 8010e4e: 4293 cmp r3, r2
  39365. 8010e50: d013 beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39366. 8010e52: 68fb ldr r3, [r7, #12]
  39367. 8010e54: 4a24 ldr r2, [pc, #144] @ (8010ee8 <TIM_TI1_SetConfig+0xd4>)
  39368. 8010e56: 4293 cmp r3, r2
  39369. 8010e58: d00f beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39370. 8010e5a: 68fb ldr r3, [r7, #12]
  39371. 8010e5c: 4a23 ldr r2, [pc, #140] @ (8010eec <TIM_TI1_SetConfig+0xd8>)
  39372. 8010e5e: 4293 cmp r3, r2
  39373. 8010e60: d00b beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39374. 8010e62: 68fb ldr r3, [r7, #12]
  39375. 8010e64: 4a22 ldr r2, [pc, #136] @ (8010ef0 <TIM_TI1_SetConfig+0xdc>)
  39376. 8010e66: 4293 cmp r3, r2
  39377. 8010e68: d007 beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39378. 8010e6a: 68fb ldr r3, [r7, #12]
  39379. 8010e6c: 4a21 ldr r2, [pc, #132] @ (8010ef4 <TIM_TI1_SetConfig+0xe0>)
  39380. 8010e6e: 4293 cmp r3, r2
  39381. 8010e70: d003 beq.n 8010e7a <TIM_TI1_SetConfig+0x66>
  39382. 8010e72: 68fb ldr r3, [r7, #12]
  39383. 8010e74: 4a20 ldr r2, [pc, #128] @ (8010ef8 <TIM_TI1_SetConfig+0xe4>)
  39384. 8010e76: 4293 cmp r3, r2
  39385. 8010e78: d101 bne.n 8010e7e <TIM_TI1_SetConfig+0x6a>
  39386. 8010e7a: 2301 movs r3, #1
  39387. 8010e7c: e000 b.n 8010e80 <TIM_TI1_SetConfig+0x6c>
  39388. 8010e7e: 2300 movs r3, #0
  39389. 8010e80: 2b00 cmp r3, #0
  39390. 8010e82: d008 beq.n 8010e96 <TIM_TI1_SetConfig+0x82>
  39391. {
  39392. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  39393. 8010e84: 697b ldr r3, [r7, #20]
  39394. 8010e86: f023 0303 bic.w r3, r3, #3
  39395. 8010e8a: 617b str r3, [r7, #20]
  39396. tmpccmr1 |= TIM_ICSelection;
  39397. 8010e8c: 697a ldr r2, [r7, #20]
  39398. 8010e8e: 687b ldr r3, [r7, #4]
  39399. 8010e90: 4313 orrs r3, r2
  39400. 8010e92: 617b str r3, [r7, #20]
  39401. 8010e94: e003 b.n 8010e9e <TIM_TI1_SetConfig+0x8a>
  39402. }
  39403. else
  39404. {
  39405. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  39406. 8010e96: 697b ldr r3, [r7, #20]
  39407. 8010e98: f043 0301 orr.w r3, r3, #1
  39408. 8010e9c: 617b str r3, [r7, #20]
  39409. }
  39410. /* Set the filter */
  39411. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39412. 8010e9e: 697b ldr r3, [r7, #20]
  39413. 8010ea0: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39414. 8010ea4: 617b str r3, [r7, #20]
  39415. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  39416. 8010ea6: 683b ldr r3, [r7, #0]
  39417. 8010ea8: 011b lsls r3, r3, #4
  39418. 8010eaa: b2db uxtb r3, r3
  39419. 8010eac: 697a ldr r2, [r7, #20]
  39420. 8010eae: 4313 orrs r3, r2
  39421. 8010eb0: 617b str r3, [r7, #20]
  39422. /* Select the Polarity and set the CC1E Bit */
  39423. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39424. 8010eb2: 693b ldr r3, [r7, #16]
  39425. 8010eb4: f023 030a bic.w r3, r3, #10
  39426. 8010eb8: 613b str r3, [r7, #16]
  39427. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  39428. 8010eba: 68bb ldr r3, [r7, #8]
  39429. 8010ebc: f003 030a and.w r3, r3, #10
  39430. 8010ec0: 693a ldr r2, [r7, #16]
  39431. 8010ec2: 4313 orrs r3, r2
  39432. 8010ec4: 613b str r3, [r7, #16]
  39433. /* Write to TIMx CCMR1 and CCER registers */
  39434. TIMx->CCMR1 = tmpccmr1;
  39435. 8010ec6: 68fb ldr r3, [r7, #12]
  39436. 8010ec8: 697a ldr r2, [r7, #20]
  39437. 8010eca: 619a str r2, [r3, #24]
  39438. TIMx->CCER = tmpccer;
  39439. 8010ecc: 68fb ldr r3, [r7, #12]
  39440. 8010ece: 693a ldr r2, [r7, #16]
  39441. 8010ed0: 621a str r2, [r3, #32]
  39442. }
  39443. 8010ed2: bf00 nop
  39444. 8010ed4: 371c adds r7, #28
  39445. 8010ed6: 46bd mov sp, r7
  39446. 8010ed8: f85d 7b04 ldr.w r7, [sp], #4
  39447. 8010edc: 4770 bx lr
  39448. 8010ede: bf00 nop
  39449. 8010ee0: 40010000 .word 0x40010000
  39450. 8010ee4: 40000400 .word 0x40000400
  39451. 8010ee8: 40000800 .word 0x40000800
  39452. 8010eec: 40000c00 .word 0x40000c00
  39453. 8010ef0: 40010400 .word 0x40010400
  39454. 8010ef4: 40001800 .word 0x40001800
  39455. 8010ef8: 40014000 .word 0x40014000
  39456. 08010efc <TIM_TI1_ConfigInputStage>:
  39457. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39458. * This parameter must be a value between 0x00 and 0x0F.
  39459. * @retval None
  39460. */
  39461. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39462. {
  39463. 8010efc: b480 push {r7}
  39464. 8010efe: b087 sub sp, #28
  39465. 8010f00: af00 add r7, sp, #0
  39466. 8010f02: 60f8 str r0, [r7, #12]
  39467. 8010f04: 60b9 str r1, [r7, #8]
  39468. 8010f06: 607a str r2, [r7, #4]
  39469. uint32_t tmpccmr1;
  39470. uint32_t tmpccer;
  39471. /* Disable the Channel 1: Reset the CC1E Bit */
  39472. tmpccer = TIMx->CCER;
  39473. 8010f08: 68fb ldr r3, [r7, #12]
  39474. 8010f0a: 6a1b ldr r3, [r3, #32]
  39475. 8010f0c: 617b str r3, [r7, #20]
  39476. TIMx->CCER &= ~TIM_CCER_CC1E;
  39477. 8010f0e: 68fb ldr r3, [r7, #12]
  39478. 8010f10: 6a1b ldr r3, [r3, #32]
  39479. 8010f12: f023 0201 bic.w r2, r3, #1
  39480. 8010f16: 68fb ldr r3, [r7, #12]
  39481. 8010f18: 621a str r2, [r3, #32]
  39482. tmpccmr1 = TIMx->CCMR1;
  39483. 8010f1a: 68fb ldr r3, [r7, #12]
  39484. 8010f1c: 699b ldr r3, [r3, #24]
  39485. 8010f1e: 613b str r3, [r7, #16]
  39486. /* Set the filter */
  39487. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39488. 8010f20: 693b ldr r3, [r7, #16]
  39489. 8010f22: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39490. 8010f26: 613b str r3, [r7, #16]
  39491. tmpccmr1 |= (TIM_ICFilter << 4U);
  39492. 8010f28: 687b ldr r3, [r7, #4]
  39493. 8010f2a: 011b lsls r3, r3, #4
  39494. 8010f2c: 693a ldr r2, [r7, #16]
  39495. 8010f2e: 4313 orrs r3, r2
  39496. 8010f30: 613b str r3, [r7, #16]
  39497. /* Select the Polarity and set the CC1E Bit */
  39498. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39499. 8010f32: 697b ldr r3, [r7, #20]
  39500. 8010f34: f023 030a bic.w r3, r3, #10
  39501. 8010f38: 617b str r3, [r7, #20]
  39502. tmpccer |= TIM_ICPolarity;
  39503. 8010f3a: 697a ldr r2, [r7, #20]
  39504. 8010f3c: 68bb ldr r3, [r7, #8]
  39505. 8010f3e: 4313 orrs r3, r2
  39506. 8010f40: 617b str r3, [r7, #20]
  39507. /* Write to TIMx CCMR1 and CCER registers */
  39508. TIMx->CCMR1 = tmpccmr1;
  39509. 8010f42: 68fb ldr r3, [r7, #12]
  39510. 8010f44: 693a ldr r2, [r7, #16]
  39511. 8010f46: 619a str r2, [r3, #24]
  39512. TIMx->CCER = tmpccer;
  39513. 8010f48: 68fb ldr r3, [r7, #12]
  39514. 8010f4a: 697a ldr r2, [r7, #20]
  39515. 8010f4c: 621a str r2, [r3, #32]
  39516. }
  39517. 8010f4e: bf00 nop
  39518. 8010f50: 371c adds r7, #28
  39519. 8010f52: 46bd mov sp, r7
  39520. 8010f54: f85d 7b04 ldr.w r7, [sp], #4
  39521. 8010f58: 4770 bx lr
  39522. 08010f5a <TIM_TI2_SetConfig>:
  39523. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  39524. * protected against un-initialized filter and polarity values.
  39525. */
  39526. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39527. uint32_t TIM_ICFilter)
  39528. {
  39529. 8010f5a: b480 push {r7}
  39530. 8010f5c: b087 sub sp, #28
  39531. 8010f5e: af00 add r7, sp, #0
  39532. 8010f60: 60f8 str r0, [r7, #12]
  39533. 8010f62: 60b9 str r1, [r7, #8]
  39534. 8010f64: 607a str r2, [r7, #4]
  39535. 8010f66: 603b str r3, [r7, #0]
  39536. uint32_t tmpccmr1;
  39537. uint32_t tmpccer;
  39538. /* Disable the Channel 2: Reset the CC2E Bit */
  39539. tmpccer = TIMx->CCER;
  39540. 8010f68: 68fb ldr r3, [r7, #12]
  39541. 8010f6a: 6a1b ldr r3, [r3, #32]
  39542. 8010f6c: 617b str r3, [r7, #20]
  39543. TIMx->CCER &= ~TIM_CCER_CC2E;
  39544. 8010f6e: 68fb ldr r3, [r7, #12]
  39545. 8010f70: 6a1b ldr r3, [r3, #32]
  39546. 8010f72: f023 0210 bic.w r2, r3, #16
  39547. 8010f76: 68fb ldr r3, [r7, #12]
  39548. 8010f78: 621a str r2, [r3, #32]
  39549. tmpccmr1 = TIMx->CCMR1;
  39550. 8010f7a: 68fb ldr r3, [r7, #12]
  39551. 8010f7c: 699b ldr r3, [r3, #24]
  39552. 8010f7e: 613b str r3, [r7, #16]
  39553. /* Select the Input */
  39554. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  39555. 8010f80: 693b ldr r3, [r7, #16]
  39556. 8010f82: f423 7340 bic.w r3, r3, #768 @ 0x300
  39557. 8010f86: 613b str r3, [r7, #16]
  39558. tmpccmr1 |= (TIM_ICSelection << 8U);
  39559. 8010f88: 687b ldr r3, [r7, #4]
  39560. 8010f8a: 021b lsls r3, r3, #8
  39561. 8010f8c: 693a ldr r2, [r7, #16]
  39562. 8010f8e: 4313 orrs r3, r2
  39563. 8010f90: 613b str r3, [r7, #16]
  39564. /* Set the filter */
  39565. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39566. 8010f92: 693b ldr r3, [r7, #16]
  39567. 8010f94: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39568. 8010f98: 613b str r3, [r7, #16]
  39569. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  39570. 8010f9a: 683b ldr r3, [r7, #0]
  39571. 8010f9c: 031b lsls r3, r3, #12
  39572. 8010f9e: b29b uxth r3, r3
  39573. 8010fa0: 693a ldr r2, [r7, #16]
  39574. 8010fa2: 4313 orrs r3, r2
  39575. 8010fa4: 613b str r3, [r7, #16]
  39576. /* Select the Polarity and set the CC2E Bit */
  39577. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39578. 8010fa6: 697b ldr r3, [r7, #20]
  39579. 8010fa8: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39580. 8010fac: 617b str r3, [r7, #20]
  39581. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  39582. 8010fae: 68bb ldr r3, [r7, #8]
  39583. 8010fb0: 011b lsls r3, r3, #4
  39584. 8010fb2: f003 03a0 and.w r3, r3, #160 @ 0xa0
  39585. 8010fb6: 697a ldr r2, [r7, #20]
  39586. 8010fb8: 4313 orrs r3, r2
  39587. 8010fba: 617b str r3, [r7, #20]
  39588. /* Write to TIMx CCMR1 and CCER registers */
  39589. TIMx->CCMR1 = tmpccmr1 ;
  39590. 8010fbc: 68fb ldr r3, [r7, #12]
  39591. 8010fbe: 693a ldr r2, [r7, #16]
  39592. 8010fc0: 619a str r2, [r3, #24]
  39593. TIMx->CCER = tmpccer;
  39594. 8010fc2: 68fb ldr r3, [r7, #12]
  39595. 8010fc4: 697a ldr r2, [r7, #20]
  39596. 8010fc6: 621a str r2, [r3, #32]
  39597. }
  39598. 8010fc8: bf00 nop
  39599. 8010fca: 371c adds r7, #28
  39600. 8010fcc: 46bd mov sp, r7
  39601. 8010fce: f85d 7b04 ldr.w r7, [sp], #4
  39602. 8010fd2: 4770 bx lr
  39603. 08010fd4 <TIM_TI2_ConfigInputStage>:
  39604. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39605. * This parameter must be a value between 0x00 and 0x0F.
  39606. * @retval None
  39607. */
  39608. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39609. {
  39610. 8010fd4: b480 push {r7}
  39611. 8010fd6: b087 sub sp, #28
  39612. 8010fd8: af00 add r7, sp, #0
  39613. 8010fda: 60f8 str r0, [r7, #12]
  39614. 8010fdc: 60b9 str r1, [r7, #8]
  39615. 8010fde: 607a str r2, [r7, #4]
  39616. uint32_t tmpccmr1;
  39617. uint32_t tmpccer;
  39618. /* Disable the Channel 2: Reset the CC2E Bit */
  39619. tmpccer = TIMx->CCER;
  39620. 8010fe0: 68fb ldr r3, [r7, #12]
  39621. 8010fe2: 6a1b ldr r3, [r3, #32]
  39622. 8010fe4: 617b str r3, [r7, #20]
  39623. TIMx->CCER &= ~TIM_CCER_CC2E;
  39624. 8010fe6: 68fb ldr r3, [r7, #12]
  39625. 8010fe8: 6a1b ldr r3, [r3, #32]
  39626. 8010fea: f023 0210 bic.w r2, r3, #16
  39627. 8010fee: 68fb ldr r3, [r7, #12]
  39628. 8010ff0: 621a str r2, [r3, #32]
  39629. tmpccmr1 = TIMx->CCMR1;
  39630. 8010ff2: 68fb ldr r3, [r7, #12]
  39631. 8010ff4: 699b ldr r3, [r3, #24]
  39632. 8010ff6: 613b str r3, [r7, #16]
  39633. /* Set the filter */
  39634. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39635. 8010ff8: 693b ldr r3, [r7, #16]
  39636. 8010ffa: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39637. 8010ffe: 613b str r3, [r7, #16]
  39638. tmpccmr1 |= (TIM_ICFilter << 12U);
  39639. 8011000: 687b ldr r3, [r7, #4]
  39640. 8011002: 031b lsls r3, r3, #12
  39641. 8011004: 693a ldr r2, [r7, #16]
  39642. 8011006: 4313 orrs r3, r2
  39643. 8011008: 613b str r3, [r7, #16]
  39644. /* Select the Polarity and set the CC2E Bit */
  39645. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39646. 801100a: 697b ldr r3, [r7, #20]
  39647. 801100c: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39648. 8011010: 617b str r3, [r7, #20]
  39649. tmpccer |= (TIM_ICPolarity << 4U);
  39650. 8011012: 68bb ldr r3, [r7, #8]
  39651. 8011014: 011b lsls r3, r3, #4
  39652. 8011016: 697a ldr r2, [r7, #20]
  39653. 8011018: 4313 orrs r3, r2
  39654. 801101a: 617b str r3, [r7, #20]
  39655. /* Write to TIMx CCMR1 and CCER registers */
  39656. TIMx->CCMR1 = tmpccmr1 ;
  39657. 801101c: 68fb ldr r3, [r7, #12]
  39658. 801101e: 693a ldr r2, [r7, #16]
  39659. 8011020: 619a str r2, [r3, #24]
  39660. TIMx->CCER = tmpccer;
  39661. 8011022: 68fb ldr r3, [r7, #12]
  39662. 8011024: 697a ldr r2, [r7, #20]
  39663. 8011026: 621a str r2, [r3, #32]
  39664. }
  39665. 8011028: bf00 nop
  39666. 801102a: 371c adds r7, #28
  39667. 801102c: 46bd mov sp, r7
  39668. 801102e: f85d 7b04 ldr.w r7, [sp], #4
  39669. 8011032: 4770 bx lr
  39670. 08011034 <TIM_TI3_SetConfig>:
  39671. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  39672. * protected against un-initialized filter and polarity values.
  39673. */
  39674. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39675. uint32_t TIM_ICFilter)
  39676. {
  39677. 8011034: b480 push {r7}
  39678. 8011036: b087 sub sp, #28
  39679. 8011038: af00 add r7, sp, #0
  39680. 801103a: 60f8 str r0, [r7, #12]
  39681. 801103c: 60b9 str r1, [r7, #8]
  39682. 801103e: 607a str r2, [r7, #4]
  39683. 8011040: 603b str r3, [r7, #0]
  39684. uint32_t tmpccmr2;
  39685. uint32_t tmpccer;
  39686. /* Disable the Channel 3: Reset the CC3E Bit */
  39687. tmpccer = TIMx->CCER;
  39688. 8011042: 68fb ldr r3, [r7, #12]
  39689. 8011044: 6a1b ldr r3, [r3, #32]
  39690. 8011046: 617b str r3, [r7, #20]
  39691. TIMx->CCER &= ~TIM_CCER_CC3E;
  39692. 8011048: 68fb ldr r3, [r7, #12]
  39693. 801104a: 6a1b ldr r3, [r3, #32]
  39694. 801104c: f423 7280 bic.w r2, r3, #256 @ 0x100
  39695. 8011050: 68fb ldr r3, [r7, #12]
  39696. 8011052: 621a str r2, [r3, #32]
  39697. tmpccmr2 = TIMx->CCMR2;
  39698. 8011054: 68fb ldr r3, [r7, #12]
  39699. 8011056: 69db ldr r3, [r3, #28]
  39700. 8011058: 613b str r3, [r7, #16]
  39701. /* Select the Input */
  39702. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  39703. 801105a: 693b ldr r3, [r7, #16]
  39704. 801105c: f023 0303 bic.w r3, r3, #3
  39705. 8011060: 613b str r3, [r7, #16]
  39706. tmpccmr2 |= TIM_ICSelection;
  39707. 8011062: 693a ldr r2, [r7, #16]
  39708. 8011064: 687b ldr r3, [r7, #4]
  39709. 8011066: 4313 orrs r3, r2
  39710. 8011068: 613b str r3, [r7, #16]
  39711. /* Set the filter */
  39712. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  39713. 801106a: 693b ldr r3, [r7, #16]
  39714. 801106c: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39715. 8011070: 613b str r3, [r7, #16]
  39716. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  39717. 8011072: 683b ldr r3, [r7, #0]
  39718. 8011074: 011b lsls r3, r3, #4
  39719. 8011076: b2db uxtb r3, r3
  39720. 8011078: 693a ldr r2, [r7, #16]
  39721. 801107a: 4313 orrs r3, r2
  39722. 801107c: 613b str r3, [r7, #16]
  39723. /* Select the Polarity and set the CC3E Bit */
  39724. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  39725. 801107e: 697b ldr r3, [r7, #20]
  39726. 8011080: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  39727. 8011084: 617b str r3, [r7, #20]
  39728. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  39729. 8011086: 68bb ldr r3, [r7, #8]
  39730. 8011088: 021b lsls r3, r3, #8
  39731. 801108a: f403 6320 and.w r3, r3, #2560 @ 0xa00
  39732. 801108e: 697a ldr r2, [r7, #20]
  39733. 8011090: 4313 orrs r3, r2
  39734. 8011092: 617b str r3, [r7, #20]
  39735. /* Write to TIMx CCMR2 and CCER registers */
  39736. TIMx->CCMR2 = tmpccmr2;
  39737. 8011094: 68fb ldr r3, [r7, #12]
  39738. 8011096: 693a ldr r2, [r7, #16]
  39739. 8011098: 61da str r2, [r3, #28]
  39740. TIMx->CCER = tmpccer;
  39741. 801109a: 68fb ldr r3, [r7, #12]
  39742. 801109c: 697a ldr r2, [r7, #20]
  39743. 801109e: 621a str r2, [r3, #32]
  39744. }
  39745. 80110a0: bf00 nop
  39746. 80110a2: 371c adds r7, #28
  39747. 80110a4: 46bd mov sp, r7
  39748. 80110a6: f85d 7b04 ldr.w r7, [sp], #4
  39749. 80110aa: 4770 bx lr
  39750. 080110ac <TIM_TI4_SetConfig>:
  39751. * protected against un-initialized filter and polarity values.
  39752. * @retval None
  39753. */
  39754. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39755. uint32_t TIM_ICFilter)
  39756. {
  39757. 80110ac: b480 push {r7}
  39758. 80110ae: b087 sub sp, #28
  39759. 80110b0: af00 add r7, sp, #0
  39760. 80110b2: 60f8 str r0, [r7, #12]
  39761. 80110b4: 60b9 str r1, [r7, #8]
  39762. 80110b6: 607a str r2, [r7, #4]
  39763. 80110b8: 603b str r3, [r7, #0]
  39764. uint32_t tmpccmr2;
  39765. uint32_t tmpccer;
  39766. /* Disable the Channel 4: Reset the CC4E Bit */
  39767. tmpccer = TIMx->CCER;
  39768. 80110ba: 68fb ldr r3, [r7, #12]
  39769. 80110bc: 6a1b ldr r3, [r3, #32]
  39770. 80110be: 617b str r3, [r7, #20]
  39771. TIMx->CCER &= ~TIM_CCER_CC4E;
  39772. 80110c0: 68fb ldr r3, [r7, #12]
  39773. 80110c2: 6a1b ldr r3, [r3, #32]
  39774. 80110c4: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39775. 80110c8: 68fb ldr r3, [r7, #12]
  39776. 80110ca: 621a str r2, [r3, #32]
  39777. tmpccmr2 = TIMx->CCMR2;
  39778. 80110cc: 68fb ldr r3, [r7, #12]
  39779. 80110ce: 69db ldr r3, [r3, #28]
  39780. 80110d0: 613b str r3, [r7, #16]
  39781. /* Select the Input */
  39782. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  39783. 80110d2: 693b ldr r3, [r7, #16]
  39784. 80110d4: f423 7340 bic.w r3, r3, #768 @ 0x300
  39785. 80110d8: 613b str r3, [r7, #16]
  39786. tmpccmr2 |= (TIM_ICSelection << 8U);
  39787. 80110da: 687b ldr r3, [r7, #4]
  39788. 80110dc: 021b lsls r3, r3, #8
  39789. 80110de: 693a ldr r2, [r7, #16]
  39790. 80110e0: 4313 orrs r3, r2
  39791. 80110e2: 613b str r3, [r7, #16]
  39792. /* Set the filter */
  39793. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  39794. 80110e4: 693b ldr r3, [r7, #16]
  39795. 80110e6: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39796. 80110ea: 613b str r3, [r7, #16]
  39797. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  39798. 80110ec: 683b ldr r3, [r7, #0]
  39799. 80110ee: 031b lsls r3, r3, #12
  39800. 80110f0: b29b uxth r3, r3
  39801. 80110f2: 693a ldr r2, [r7, #16]
  39802. 80110f4: 4313 orrs r3, r2
  39803. 80110f6: 613b str r3, [r7, #16]
  39804. /* Select the Polarity and set the CC4E Bit */
  39805. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  39806. 80110f8: 697b ldr r3, [r7, #20]
  39807. 80110fa: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  39808. 80110fe: 617b str r3, [r7, #20]
  39809. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  39810. 8011100: 68bb ldr r3, [r7, #8]
  39811. 8011102: 031b lsls r3, r3, #12
  39812. 8011104: f403 4320 and.w r3, r3, #40960 @ 0xa000
  39813. 8011108: 697a ldr r2, [r7, #20]
  39814. 801110a: 4313 orrs r3, r2
  39815. 801110c: 617b str r3, [r7, #20]
  39816. /* Write to TIMx CCMR2 and CCER registers */
  39817. TIMx->CCMR2 = tmpccmr2;
  39818. 801110e: 68fb ldr r3, [r7, #12]
  39819. 8011110: 693a ldr r2, [r7, #16]
  39820. 8011112: 61da str r2, [r3, #28]
  39821. TIMx->CCER = tmpccer ;
  39822. 8011114: 68fb ldr r3, [r7, #12]
  39823. 8011116: 697a ldr r2, [r7, #20]
  39824. 8011118: 621a str r2, [r3, #32]
  39825. }
  39826. 801111a: bf00 nop
  39827. 801111c: 371c adds r7, #28
  39828. 801111e: 46bd mov sp, r7
  39829. 8011120: f85d 7b04 ldr.w r7, [sp], #4
  39830. 8011124: 4770 bx lr
  39831. ...
  39832. 08011128 <TIM_ITRx_SetConfig>:
  39833. * (*) Value not defined in all devices.
  39834. *
  39835. * @retval None
  39836. */
  39837. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  39838. {
  39839. 8011128: b480 push {r7}
  39840. 801112a: b085 sub sp, #20
  39841. 801112c: af00 add r7, sp, #0
  39842. 801112e: 6078 str r0, [r7, #4]
  39843. 8011130: 6039 str r1, [r7, #0]
  39844. uint32_t tmpsmcr;
  39845. /* Get the TIMx SMCR register value */
  39846. tmpsmcr = TIMx->SMCR;
  39847. 8011132: 687b ldr r3, [r7, #4]
  39848. 8011134: 689b ldr r3, [r3, #8]
  39849. 8011136: 60fb str r3, [r7, #12]
  39850. /* Reset the TS Bits */
  39851. tmpsmcr &= ~TIM_SMCR_TS;
  39852. 8011138: 68fa ldr r2, [r7, #12]
  39853. 801113a: 4b09 ldr r3, [pc, #36] @ (8011160 <TIM_ITRx_SetConfig+0x38>)
  39854. 801113c: 4013 ands r3, r2
  39855. 801113e: 60fb str r3, [r7, #12]
  39856. /* Set the Input Trigger source and the slave mode*/
  39857. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  39858. 8011140: 683a ldr r2, [r7, #0]
  39859. 8011142: 68fb ldr r3, [r7, #12]
  39860. 8011144: 4313 orrs r3, r2
  39861. 8011146: f043 0307 orr.w r3, r3, #7
  39862. 801114a: 60fb str r3, [r7, #12]
  39863. /* Write to TIMx SMCR */
  39864. TIMx->SMCR = tmpsmcr;
  39865. 801114c: 687b ldr r3, [r7, #4]
  39866. 801114e: 68fa ldr r2, [r7, #12]
  39867. 8011150: 609a str r2, [r3, #8]
  39868. }
  39869. 8011152: bf00 nop
  39870. 8011154: 3714 adds r7, #20
  39871. 8011156: 46bd mov sp, r7
  39872. 8011158: f85d 7b04 ldr.w r7, [sp], #4
  39873. 801115c: 4770 bx lr
  39874. 801115e: bf00 nop
  39875. 8011160: ffcfff8f .word 0xffcfff8f
  39876. 08011164 <TIM_ETR_SetConfig>:
  39877. * This parameter must be a value between 0x00 and 0x0F
  39878. * @retval None
  39879. */
  39880. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  39881. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  39882. {
  39883. 8011164: b480 push {r7}
  39884. 8011166: b087 sub sp, #28
  39885. 8011168: af00 add r7, sp, #0
  39886. 801116a: 60f8 str r0, [r7, #12]
  39887. 801116c: 60b9 str r1, [r7, #8]
  39888. 801116e: 607a str r2, [r7, #4]
  39889. 8011170: 603b str r3, [r7, #0]
  39890. uint32_t tmpsmcr;
  39891. tmpsmcr = TIMx->SMCR;
  39892. 8011172: 68fb ldr r3, [r7, #12]
  39893. 8011174: 689b ldr r3, [r3, #8]
  39894. 8011176: 617b str r3, [r7, #20]
  39895. /* Reset the ETR Bits */
  39896. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  39897. 8011178: 697b ldr r3, [r7, #20]
  39898. 801117a: f423 437f bic.w r3, r3, #65280 @ 0xff00
  39899. 801117e: 617b str r3, [r7, #20]
  39900. /* Set the Prescaler, the Filter value and the Polarity */
  39901. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  39902. 8011180: 683b ldr r3, [r7, #0]
  39903. 8011182: 021a lsls r2, r3, #8
  39904. 8011184: 687b ldr r3, [r7, #4]
  39905. 8011186: 431a orrs r2, r3
  39906. 8011188: 68bb ldr r3, [r7, #8]
  39907. 801118a: 4313 orrs r3, r2
  39908. 801118c: 697a ldr r2, [r7, #20]
  39909. 801118e: 4313 orrs r3, r2
  39910. 8011190: 617b str r3, [r7, #20]
  39911. /* Write to TIMx SMCR */
  39912. TIMx->SMCR = tmpsmcr;
  39913. 8011192: 68fb ldr r3, [r7, #12]
  39914. 8011194: 697a ldr r2, [r7, #20]
  39915. 8011196: 609a str r2, [r3, #8]
  39916. }
  39917. 8011198: bf00 nop
  39918. 801119a: 371c adds r7, #28
  39919. 801119c: 46bd mov sp, r7
  39920. 801119e: f85d 7b04 ldr.w r7, [sp], #4
  39921. 80111a2: 4770 bx lr
  39922. 080111a4 <TIM_CCxChannelCmd>:
  39923. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  39924. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  39925. * @retval None
  39926. */
  39927. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  39928. {
  39929. 80111a4: b480 push {r7}
  39930. 80111a6: b087 sub sp, #28
  39931. 80111a8: af00 add r7, sp, #0
  39932. 80111aa: 60f8 str r0, [r7, #12]
  39933. 80111ac: 60b9 str r1, [r7, #8]
  39934. 80111ae: 607a str r2, [r7, #4]
  39935. /* Check the parameters */
  39936. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  39937. assert_param(IS_TIM_CHANNELS(Channel));
  39938. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  39939. 80111b0: 68bb ldr r3, [r7, #8]
  39940. 80111b2: f003 031f and.w r3, r3, #31
  39941. 80111b6: 2201 movs r2, #1
  39942. 80111b8: fa02 f303 lsl.w r3, r2, r3
  39943. 80111bc: 617b str r3, [r7, #20]
  39944. /* Reset the CCxE Bit */
  39945. TIMx->CCER &= ~tmp;
  39946. 80111be: 68fb ldr r3, [r7, #12]
  39947. 80111c0: 6a1a ldr r2, [r3, #32]
  39948. 80111c2: 697b ldr r3, [r7, #20]
  39949. 80111c4: 43db mvns r3, r3
  39950. 80111c6: 401a ands r2, r3
  39951. 80111c8: 68fb ldr r3, [r7, #12]
  39952. 80111ca: 621a str r2, [r3, #32]
  39953. /* Set or reset the CCxE Bit */
  39954. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  39955. 80111cc: 68fb ldr r3, [r7, #12]
  39956. 80111ce: 6a1a ldr r2, [r3, #32]
  39957. 80111d0: 68bb ldr r3, [r7, #8]
  39958. 80111d2: f003 031f and.w r3, r3, #31
  39959. 80111d6: 6879 ldr r1, [r7, #4]
  39960. 80111d8: fa01 f303 lsl.w r3, r1, r3
  39961. 80111dc: 431a orrs r2, r3
  39962. 80111de: 68fb ldr r3, [r7, #12]
  39963. 80111e0: 621a str r2, [r3, #32]
  39964. }
  39965. 80111e2: bf00 nop
  39966. 80111e4: 371c adds r7, #28
  39967. 80111e6: 46bd mov sp, r7
  39968. 80111e8: f85d 7b04 ldr.w r7, [sp], #4
  39969. 80111ec: 4770 bx lr
  39970. ...
  39971. 080111f0 <HAL_TIMEx_MasterConfigSynchronization>:
  39972. * mode.
  39973. * @retval HAL status
  39974. */
  39975. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  39976. const TIM_MasterConfigTypeDef *sMasterConfig)
  39977. {
  39978. 80111f0: b480 push {r7}
  39979. 80111f2: b085 sub sp, #20
  39980. 80111f4: af00 add r7, sp, #0
  39981. 80111f6: 6078 str r0, [r7, #4]
  39982. 80111f8: 6039 str r1, [r7, #0]
  39983. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  39984. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  39985. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  39986. /* Check input state */
  39987. __HAL_LOCK(htim);
  39988. 80111fa: 687b ldr r3, [r7, #4]
  39989. 80111fc: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39990. 8011200: 2b01 cmp r3, #1
  39991. 8011202: d101 bne.n 8011208 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  39992. 8011204: 2302 movs r3, #2
  39993. 8011206: e06d b.n 80112e4 <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  39994. 8011208: 687b ldr r3, [r7, #4]
  39995. 801120a: 2201 movs r2, #1
  39996. 801120c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39997. /* Change the handler state */
  39998. htim->State = HAL_TIM_STATE_BUSY;
  39999. 8011210: 687b ldr r3, [r7, #4]
  40000. 8011212: 2202 movs r2, #2
  40001. 8011214: f883 203d strb.w r2, [r3, #61] @ 0x3d
  40002. /* Get the TIMx CR2 register value */
  40003. tmpcr2 = htim->Instance->CR2;
  40004. 8011218: 687b ldr r3, [r7, #4]
  40005. 801121a: 681b ldr r3, [r3, #0]
  40006. 801121c: 685b ldr r3, [r3, #4]
  40007. 801121e: 60fb str r3, [r7, #12]
  40008. /* Get the TIMx SMCR register value */
  40009. tmpsmcr = htim->Instance->SMCR;
  40010. 8011220: 687b ldr r3, [r7, #4]
  40011. 8011222: 681b ldr r3, [r3, #0]
  40012. 8011224: 689b ldr r3, [r3, #8]
  40013. 8011226: 60bb str r3, [r7, #8]
  40014. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  40015. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  40016. 8011228: 687b ldr r3, [r7, #4]
  40017. 801122a: 681b ldr r3, [r3, #0]
  40018. 801122c: 4a30 ldr r2, [pc, #192] @ (80112f0 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  40019. 801122e: 4293 cmp r3, r2
  40020. 8011230: d004 beq.n 801123c <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  40021. 8011232: 687b ldr r3, [r7, #4]
  40022. 8011234: 681b ldr r3, [r3, #0]
  40023. 8011236: 4a2f ldr r2, [pc, #188] @ (80112f4 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  40024. 8011238: 4293 cmp r3, r2
  40025. 801123a: d108 bne.n 801124e <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  40026. {
  40027. /* Check the parameters */
  40028. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  40029. /* Clear the MMS2 bits */
  40030. tmpcr2 &= ~TIM_CR2_MMS2;
  40031. 801123c: 68fb ldr r3, [r7, #12]
  40032. 801123e: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  40033. 8011242: 60fb str r3, [r7, #12]
  40034. /* Select the TRGO2 source*/
  40035. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  40036. 8011244: 683b ldr r3, [r7, #0]
  40037. 8011246: 685b ldr r3, [r3, #4]
  40038. 8011248: 68fa ldr r2, [r7, #12]
  40039. 801124a: 4313 orrs r3, r2
  40040. 801124c: 60fb str r3, [r7, #12]
  40041. }
  40042. /* Reset the MMS Bits */
  40043. tmpcr2 &= ~TIM_CR2_MMS;
  40044. 801124e: 68fb ldr r3, [r7, #12]
  40045. 8011250: f023 0370 bic.w r3, r3, #112 @ 0x70
  40046. 8011254: 60fb str r3, [r7, #12]
  40047. /* Select the TRGO source */
  40048. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  40049. 8011256: 683b ldr r3, [r7, #0]
  40050. 8011258: 681b ldr r3, [r3, #0]
  40051. 801125a: 68fa ldr r2, [r7, #12]
  40052. 801125c: 4313 orrs r3, r2
  40053. 801125e: 60fb str r3, [r7, #12]
  40054. /* Update TIMx CR2 */
  40055. htim->Instance->CR2 = tmpcr2;
  40056. 8011260: 687b ldr r3, [r7, #4]
  40057. 8011262: 681b ldr r3, [r3, #0]
  40058. 8011264: 68fa ldr r2, [r7, #12]
  40059. 8011266: 605a str r2, [r3, #4]
  40060. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  40061. 8011268: 687b ldr r3, [r7, #4]
  40062. 801126a: 681b ldr r3, [r3, #0]
  40063. 801126c: 4a20 ldr r2, [pc, #128] @ (80112f0 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  40064. 801126e: 4293 cmp r3, r2
  40065. 8011270: d022 beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40066. 8011272: 687b ldr r3, [r7, #4]
  40067. 8011274: 681b ldr r3, [r3, #0]
  40068. 8011276: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  40069. 801127a: d01d beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40070. 801127c: 687b ldr r3, [r7, #4]
  40071. 801127e: 681b ldr r3, [r3, #0]
  40072. 8011280: 4a1d ldr r2, [pc, #116] @ (80112f8 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  40073. 8011282: 4293 cmp r3, r2
  40074. 8011284: d018 beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40075. 8011286: 687b ldr r3, [r7, #4]
  40076. 8011288: 681b ldr r3, [r3, #0]
  40077. 801128a: 4a1c ldr r2, [pc, #112] @ (80112fc <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  40078. 801128c: 4293 cmp r3, r2
  40079. 801128e: d013 beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40080. 8011290: 687b ldr r3, [r7, #4]
  40081. 8011292: 681b ldr r3, [r3, #0]
  40082. 8011294: 4a1a ldr r2, [pc, #104] @ (8011300 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  40083. 8011296: 4293 cmp r3, r2
  40084. 8011298: d00e beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40085. 801129a: 687b ldr r3, [r7, #4]
  40086. 801129c: 681b ldr r3, [r3, #0]
  40087. 801129e: 4a15 ldr r2, [pc, #84] @ (80112f4 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  40088. 80112a0: 4293 cmp r3, r2
  40089. 80112a2: d009 beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40090. 80112a4: 687b ldr r3, [r7, #4]
  40091. 80112a6: 681b ldr r3, [r3, #0]
  40092. 80112a8: 4a16 ldr r2, [pc, #88] @ (8011304 <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  40093. 80112aa: 4293 cmp r3, r2
  40094. 80112ac: d004 beq.n 80112b8 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40095. 80112ae: 687b ldr r3, [r7, #4]
  40096. 80112b0: 681b ldr r3, [r3, #0]
  40097. 80112b2: 4a15 ldr r2, [pc, #84] @ (8011308 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  40098. 80112b4: 4293 cmp r3, r2
  40099. 80112b6: d10c bne.n 80112d2 <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  40100. {
  40101. /* Reset the MSM Bit */
  40102. tmpsmcr &= ~TIM_SMCR_MSM;
  40103. 80112b8: 68bb ldr r3, [r7, #8]
  40104. 80112ba: f023 0380 bic.w r3, r3, #128 @ 0x80
  40105. 80112be: 60bb str r3, [r7, #8]
  40106. /* Set master mode */
  40107. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  40108. 80112c0: 683b ldr r3, [r7, #0]
  40109. 80112c2: 689b ldr r3, [r3, #8]
  40110. 80112c4: 68ba ldr r2, [r7, #8]
  40111. 80112c6: 4313 orrs r3, r2
  40112. 80112c8: 60bb str r3, [r7, #8]
  40113. /* Update TIMx SMCR */
  40114. htim->Instance->SMCR = tmpsmcr;
  40115. 80112ca: 687b ldr r3, [r7, #4]
  40116. 80112cc: 681b ldr r3, [r3, #0]
  40117. 80112ce: 68ba ldr r2, [r7, #8]
  40118. 80112d0: 609a str r2, [r3, #8]
  40119. }
  40120. /* Change the htim state */
  40121. htim->State = HAL_TIM_STATE_READY;
  40122. 80112d2: 687b ldr r3, [r7, #4]
  40123. 80112d4: 2201 movs r2, #1
  40124. 80112d6: f883 203d strb.w r2, [r3, #61] @ 0x3d
  40125. __HAL_UNLOCK(htim);
  40126. 80112da: 687b ldr r3, [r7, #4]
  40127. 80112dc: 2200 movs r2, #0
  40128. 80112de: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40129. return HAL_OK;
  40130. 80112e2: 2300 movs r3, #0
  40131. }
  40132. 80112e4: 4618 mov r0, r3
  40133. 80112e6: 3714 adds r7, #20
  40134. 80112e8: 46bd mov sp, r7
  40135. 80112ea: f85d 7b04 ldr.w r7, [sp], #4
  40136. 80112ee: 4770 bx lr
  40137. 80112f0: 40010000 .word 0x40010000
  40138. 80112f4: 40010400 .word 0x40010400
  40139. 80112f8: 40000400 .word 0x40000400
  40140. 80112fc: 40000800 .word 0x40000800
  40141. 8011300: 40000c00 .word 0x40000c00
  40142. 8011304: 40001800 .word 0x40001800
  40143. 8011308: 40014000 .word 0x40014000
  40144. 0801130c <HAL_TIMEx_ConfigBreakDeadTime>:
  40145. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  40146. * @retval HAL status
  40147. */
  40148. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  40149. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  40150. {
  40151. 801130c: b480 push {r7}
  40152. 801130e: b085 sub sp, #20
  40153. 8011310: af00 add r7, sp, #0
  40154. 8011312: 6078 str r0, [r7, #4]
  40155. 8011314: 6039 str r1, [r7, #0]
  40156. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  40157. uint32_t tmpbdtr = 0U;
  40158. 8011316: 2300 movs r3, #0
  40159. 8011318: 60fb str r3, [r7, #12]
  40160. #if defined(TIM_BDTR_BKBID)
  40161. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  40162. #endif /* TIM_BDTR_BKBID */
  40163. /* Check input state */
  40164. __HAL_LOCK(htim);
  40165. 801131a: 687b ldr r3, [r7, #4]
  40166. 801131c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  40167. 8011320: 2b01 cmp r3, #1
  40168. 8011322: d101 bne.n 8011328 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  40169. 8011324: 2302 movs r3, #2
  40170. 8011326: e065 b.n 80113f4 <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  40171. 8011328: 687b ldr r3, [r7, #4]
  40172. 801132a: 2201 movs r2, #1
  40173. 801132c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40174. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  40175. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  40176. /* Set the BDTR bits */
  40177. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  40178. 8011330: 68fb ldr r3, [r7, #12]
  40179. 8011332: f023 02ff bic.w r2, r3, #255 @ 0xff
  40180. 8011336: 683b ldr r3, [r7, #0]
  40181. 8011338: 68db ldr r3, [r3, #12]
  40182. 801133a: 4313 orrs r3, r2
  40183. 801133c: 60fb str r3, [r7, #12]
  40184. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  40185. 801133e: 68fb ldr r3, [r7, #12]
  40186. 8011340: f423 7240 bic.w r2, r3, #768 @ 0x300
  40187. 8011344: 683b ldr r3, [r7, #0]
  40188. 8011346: 689b ldr r3, [r3, #8]
  40189. 8011348: 4313 orrs r3, r2
  40190. 801134a: 60fb str r3, [r7, #12]
  40191. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  40192. 801134c: 68fb ldr r3, [r7, #12]
  40193. 801134e: f423 6280 bic.w r2, r3, #1024 @ 0x400
  40194. 8011352: 683b ldr r3, [r7, #0]
  40195. 8011354: 685b ldr r3, [r3, #4]
  40196. 8011356: 4313 orrs r3, r2
  40197. 8011358: 60fb str r3, [r7, #12]
  40198. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  40199. 801135a: 68fb ldr r3, [r7, #12]
  40200. 801135c: f423 6200 bic.w r2, r3, #2048 @ 0x800
  40201. 8011360: 683b ldr r3, [r7, #0]
  40202. 8011362: 681b ldr r3, [r3, #0]
  40203. 8011364: 4313 orrs r3, r2
  40204. 8011366: 60fb str r3, [r7, #12]
  40205. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  40206. 8011368: 68fb ldr r3, [r7, #12]
  40207. 801136a: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  40208. 801136e: 683b ldr r3, [r7, #0]
  40209. 8011370: 691b ldr r3, [r3, #16]
  40210. 8011372: 4313 orrs r3, r2
  40211. 8011374: 60fb str r3, [r7, #12]
  40212. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  40213. 8011376: 68fb ldr r3, [r7, #12]
  40214. 8011378: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  40215. 801137c: 683b ldr r3, [r7, #0]
  40216. 801137e: 695b ldr r3, [r3, #20]
  40217. 8011380: 4313 orrs r3, r2
  40218. 8011382: 60fb str r3, [r7, #12]
  40219. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  40220. 8011384: 68fb ldr r3, [r7, #12]
  40221. 8011386: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  40222. 801138a: 683b ldr r3, [r7, #0]
  40223. 801138c: 6a9b ldr r3, [r3, #40] @ 0x28
  40224. 801138e: 4313 orrs r3, r2
  40225. 8011390: 60fb str r3, [r7, #12]
  40226. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  40227. 8011392: 68fb ldr r3, [r7, #12]
  40228. 8011394: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  40229. 8011398: 683b ldr r3, [r7, #0]
  40230. 801139a: 699b ldr r3, [r3, #24]
  40231. 801139c: 041b lsls r3, r3, #16
  40232. 801139e: 4313 orrs r3, r2
  40233. 80113a0: 60fb str r3, [r7, #12]
  40234. #if defined(TIM_BDTR_BKBID)
  40235. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  40236. #endif /* TIM_BDTR_BKBID */
  40237. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  40238. 80113a2: 687b ldr r3, [r7, #4]
  40239. 80113a4: 681b ldr r3, [r3, #0]
  40240. 80113a6: 4a16 ldr r2, [pc, #88] @ (8011400 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  40241. 80113a8: 4293 cmp r3, r2
  40242. 80113aa: d004 beq.n 80113b6 <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  40243. 80113ac: 687b ldr r3, [r7, #4]
  40244. 80113ae: 681b ldr r3, [r3, #0]
  40245. 80113b0: 4a14 ldr r2, [pc, #80] @ (8011404 <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  40246. 80113b2: 4293 cmp r3, r2
  40247. 80113b4: d115 bne.n 80113e2 <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  40248. #if defined(TIM_BDTR_BKBID)
  40249. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  40250. #endif /* TIM_BDTR_BKBID */
  40251. /* Set the BREAK2 input related BDTR bits */
  40252. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  40253. 80113b6: 68fb ldr r3, [r7, #12]
  40254. 80113b8: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  40255. 80113bc: 683b ldr r3, [r7, #0]
  40256. 80113be: 6a5b ldr r3, [r3, #36] @ 0x24
  40257. 80113c0: 051b lsls r3, r3, #20
  40258. 80113c2: 4313 orrs r3, r2
  40259. 80113c4: 60fb str r3, [r7, #12]
  40260. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  40261. 80113c6: 68fb ldr r3, [r7, #12]
  40262. 80113c8: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  40263. 80113cc: 683b ldr r3, [r7, #0]
  40264. 80113ce: 69db ldr r3, [r3, #28]
  40265. 80113d0: 4313 orrs r3, r2
  40266. 80113d2: 60fb str r3, [r7, #12]
  40267. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  40268. 80113d4: 68fb ldr r3, [r7, #12]
  40269. 80113d6: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  40270. 80113da: 683b ldr r3, [r7, #0]
  40271. 80113dc: 6a1b ldr r3, [r3, #32]
  40272. 80113de: 4313 orrs r3, r2
  40273. 80113e0: 60fb str r3, [r7, #12]
  40274. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  40275. #endif /* TIM_BDTR_BKBID */
  40276. }
  40277. /* Set TIMx_BDTR */
  40278. htim->Instance->BDTR = tmpbdtr;
  40279. 80113e2: 687b ldr r3, [r7, #4]
  40280. 80113e4: 681b ldr r3, [r3, #0]
  40281. 80113e6: 68fa ldr r2, [r7, #12]
  40282. 80113e8: 645a str r2, [r3, #68] @ 0x44
  40283. __HAL_UNLOCK(htim);
  40284. 80113ea: 687b ldr r3, [r7, #4]
  40285. 80113ec: 2200 movs r2, #0
  40286. 80113ee: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40287. return HAL_OK;
  40288. 80113f2: 2300 movs r3, #0
  40289. }
  40290. 80113f4: 4618 mov r0, r3
  40291. 80113f6: 3714 adds r7, #20
  40292. 80113f8: 46bd mov sp, r7
  40293. 80113fa: f85d 7b04 ldr.w r7, [sp], #4
  40294. 80113fe: 4770 bx lr
  40295. 8011400: 40010000 .word 0x40010000
  40296. 8011404: 40010400 .word 0x40010400
  40297. 08011408 <HAL_TIMEx_CommutCallback>:
  40298. * @brief Commutation callback in non-blocking mode
  40299. * @param htim TIM handle
  40300. * @retval None
  40301. */
  40302. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  40303. {
  40304. 8011408: b480 push {r7}
  40305. 801140a: b083 sub sp, #12
  40306. 801140c: af00 add r7, sp, #0
  40307. 801140e: 6078 str r0, [r7, #4]
  40308. UNUSED(htim);
  40309. /* NOTE : This function should not be modified, when the callback is needed,
  40310. the HAL_TIMEx_CommutCallback could be implemented in the user file
  40311. */
  40312. }
  40313. 8011410: bf00 nop
  40314. 8011412: 370c adds r7, #12
  40315. 8011414: 46bd mov sp, r7
  40316. 8011416: f85d 7b04 ldr.w r7, [sp], #4
  40317. 801141a: 4770 bx lr
  40318. 0801141c <HAL_TIMEx_BreakCallback>:
  40319. * @brief Break detection callback in non-blocking mode
  40320. * @param htim TIM handle
  40321. * @retval None
  40322. */
  40323. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  40324. {
  40325. 801141c: b480 push {r7}
  40326. 801141e: b083 sub sp, #12
  40327. 8011420: af00 add r7, sp, #0
  40328. 8011422: 6078 str r0, [r7, #4]
  40329. UNUSED(htim);
  40330. /* NOTE : This function should not be modified, when the callback is needed,
  40331. the HAL_TIMEx_BreakCallback could be implemented in the user file
  40332. */
  40333. }
  40334. 8011424: bf00 nop
  40335. 8011426: 370c adds r7, #12
  40336. 8011428: 46bd mov sp, r7
  40337. 801142a: f85d 7b04 ldr.w r7, [sp], #4
  40338. 801142e: 4770 bx lr
  40339. 08011430 <HAL_TIMEx_Break2Callback>:
  40340. * @brief Break2 detection callback in non blocking mode
  40341. * @param htim: TIM handle
  40342. * @retval None
  40343. */
  40344. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  40345. {
  40346. 8011430: b480 push {r7}
  40347. 8011432: b083 sub sp, #12
  40348. 8011434: af00 add r7, sp, #0
  40349. 8011436: 6078 str r0, [r7, #4]
  40350. UNUSED(htim);
  40351. /* NOTE : This function Should not be modified, when the callback is needed,
  40352. the HAL_TIMEx_Break2Callback could be implemented in the user file
  40353. */
  40354. }
  40355. 8011438: bf00 nop
  40356. 801143a: 370c adds r7, #12
  40357. 801143c: 46bd mov sp, r7
  40358. 801143e: f85d 7b04 ldr.w r7, [sp], #4
  40359. 8011442: 4770 bx lr
  40360. 08011444 <HAL_UART_Init>:
  40361. * parameters in the UART_InitTypeDef and initialize the associated handle.
  40362. * @param huart UART handle.
  40363. * @retval HAL status
  40364. */
  40365. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  40366. {
  40367. 8011444: b580 push {r7, lr}
  40368. 8011446: b082 sub sp, #8
  40369. 8011448: af00 add r7, sp, #0
  40370. 801144a: 6078 str r0, [r7, #4]
  40371. /* Check the UART handle allocation */
  40372. if (huart == NULL)
  40373. 801144c: 687b ldr r3, [r7, #4]
  40374. 801144e: 2b00 cmp r3, #0
  40375. 8011450: d101 bne.n 8011456 <HAL_UART_Init+0x12>
  40376. {
  40377. return HAL_ERROR;
  40378. 8011452: 2301 movs r3, #1
  40379. 8011454: e042 b.n 80114dc <HAL_UART_Init+0x98>
  40380. {
  40381. /* Check the parameters */
  40382. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  40383. }
  40384. if (huart->gState == HAL_UART_STATE_RESET)
  40385. 8011456: 687b ldr r3, [r7, #4]
  40386. 8011458: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40387. 801145c: 2b00 cmp r3, #0
  40388. 801145e: d106 bne.n 801146e <HAL_UART_Init+0x2a>
  40389. {
  40390. /* Allocate lock resource and initialize it */
  40391. huart->Lock = HAL_UNLOCKED;
  40392. 8011460: 687b ldr r3, [r7, #4]
  40393. 8011462: 2200 movs r2, #0
  40394. 8011464: f883 2084 strb.w r2, [r3, #132] @ 0x84
  40395. /* Init the low level hardware */
  40396. huart->MspInitCallback(huart);
  40397. #else
  40398. /* Init the low level hardware : GPIO, CLOCK */
  40399. HAL_UART_MspInit(huart);
  40400. 8011468: 6878 ldr r0, [r7, #4]
  40401. 801146a: f7f3 f881 bl 8004570 <HAL_UART_MspInit>
  40402. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40403. }
  40404. huart->gState = HAL_UART_STATE_BUSY;
  40405. 801146e: 687b ldr r3, [r7, #4]
  40406. 8011470: 2224 movs r2, #36 @ 0x24
  40407. 8011472: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40408. __HAL_UART_DISABLE(huart);
  40409. 8011476: 687b ldr r3, [r7, #4]
  40410. 8011478: 681b ldr r3, [r3, #0]
  40411. 801147a: 681a ldr r2, [r3, #0]
  40412. 801147c: 687b ldr r3, [r7, #4]
  40413. 801147e: 681b ldr r3, [r3, #0]
  40414. 8011480: f022 0201 bic.w r2, r2, #1
  40415. 8011484: 601a str r2, [r3, #0]
  40416. /* Perform advanced settings configuration */
  40417. /* For some items, configuration requires to be done prior TE and RE bits are set */
  40418. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  40419. 8011486: 687b ldr r3, [r7, #4]
  40420. 8011488: 6a9b ldr r3, [r3, #40] @ 0x28
  40421. 801148a: 2b00 cmp r3, #0
  40422. 801148c: d002 beq.n 8011494 <HAL_UART_Init+0x50>
  40423. {
  40424. UART_AdvFeatureConfig(huart);
  40425. 801148e: 6878 ldr r0, [r7, #4]
  40426. 8011490: f001 f9e8 bl 8012864 <UART_AdvFeatureConfig>
  40427. }
  40428. /* Set the UART Communication parameters */
  40429. if (UART_SetConfig(huart) == HAL_ERROR)
  40430. 8011494: 6878 ldr r0, [r7, #4]
  40431. 8011496: f000 fc7d bl 8011d94 <UART_SetConfig>
  40432. 801149a: 4603 mov r3, r0
  40433. 801149c: 2b01 cmp r3, #1
  40434. 801149e: d101 bne.n 80114a4 <HAL_UART_Init+0x60>
  40435. {
  40436. return HAL_ERROR;
  40437. 80114a0: 2301 movs r3, #1
  40438. 80114a2: e01b b.n 80114dc <HAL_UART_Init+0x98>
  40439. }
  40440. /* In asynchronous mode, the following bits must be kept cleared:
  40441. - LINEN and CLKEN bits in the USART_CR2 register,
  40442. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  40443. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  40444. 80114a4: 687b ldr r3, [r7, #4]
  40445. 80114a6: 681b ldr r3, [r3, #0]
  40446. 80114a8: 685a ldr r2, [r3, #4]
  40447. 80114aa: 687b ldr r3, [r7, #4]
  40448. 80114ac: 681b ldr r3, [r3, #0]
  40449. 80114ae: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  40450. 80114b2: 605a str r2, [r3, #4]
  40451. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  40452. 80114b4: 687b ldr r3, [r7, #4]
  40453. 80114b6: 681b ldr r3, [r3, #0]
  40454. 80114b8: 689a ldr r2, [r3, #8]
  40455. 80114ba: 687b ldr r3, [r7, #4]
  40456. 80114bc: 681b ldr r3, [r3, #0]
  40457. 80114be: f022 022a bic.w r2, r2, #42 @ 0x2a
  40458. 80114c2: 609a str r2, [r3, #8]
  40459. __HAL_UART_ENABLE(huart);
  40460. 80114c4: 687b ldr r3, [r7, #4]
  40461. 80114c6: 681b ldr r3, [r3, #0]
  40462. 80114c8: 681a ldr r2, [r3, #0]
  40463. 80114ca: 687b ldr r3, [r7, #4]
  40464. 80114cc: 681b ldr r3, [r3, #0]
  40465. 80114ce: f042 0201 orr.w r2, r2, #1
  40466. 80114d2: 601a str r2, [r3, #0]
  40467. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  40468. return (UART_CheckIdleState(huart));
  40469. 80114d4: 6878 ldr r0, [r7, #4]
  40470. 80114d6: f001 fa67 bl 80129a8 <UART_CheckIdleState>
  40471. 80114da: 4603 mov r3, r0
  40472. }
  40473. 80114dc: 4618 mov r0, r3
  40474. 80114de: 3708 adds r7, #8
  40475. 80114e0: 46bd mov sp, r7
  40476. 80114e2: bd80 pop {r7, pc}
  40477. 080114e4 <HAL_UART_Transmit_IT>:
  40478. * @param pData Pointer to data buffer (u8 or u16 data elements).
  40479. * @param Size Amount of data elements (u8 or u16) to be sent.
  40480. * @retval HAL status
  40481. */
  40482. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  40483. {
  40484. 80114e4: b480 push {r7}
  40485. 80114e6: b091 sub sp, #68 @ 0x44
  40486. 80114e8: af00 add r7, sp, #0
  40487. 80114ea: 60f8 str r0, [r7, #12]
  40488. 80114ec: 60b9 str r1, [r7, #8]
  40489. 80114ee: 4613 mov r3, r2
  40490. 80114f0: 80fb strh r3, [r7, #6]
  40491. /* Check that a Tx process is not already ongoing */
  40492. if (huart->gState == HAL_UART_STATE_READY)
  40493. 80114f2: 68fb ldr r3, [r7, #12]
  40494. 80114f4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40495. 80114f8: 2b20 cmp r3, #32
  40496. 80114fa: d178 bne.n 80115ee <HAL_UART_Transmit_IT+0x10a>
  40497. {
  40498. if ((pData == NULL) || (Size == 0U))
  40499. 80114fc: 68bb ldr r3, [r7, #8]
  40500. 80114fe: 2b00 cmp r3, #0
  40501. 8011500: d002 beq.n 8011508 <HAL_UART_Transmit_IT+0x24>
  40502. 8011502: 88fb ldrh r3, [r7, #6]
  40503. 8011504: 2b00 cmp r3, #0
  40504. 8011506: d101 bne.n 801150c <HAL_UART_Transmit_IT+0x28>
  40505. {
  40506. return HAL_ERROR;
  40507. 8011508: 2301 movs r3, #1
  40508. 801150a: e071 b.n 80115f0 <HAL_UART_Transmit_IT+0x10c>
  40509. }
  40510. huart->pTxBuffPtr = pData;
  40511. 801150c: 68fb ldr r3, [r7, #12]
  40512. 801150e: 68ba ldr r2, [r7, #8]
  40513. 8011510: 651a str r2, [r3, #80] @ 0x50
  40514. huart->TxXferSize = Size;
  40515. 8011512: 68fb ldr r3, [r7, #12]
  40516. 8011514: 88fa ldrh r2, [r7, #6]
  40517. 8011516: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  40518. huart->TxXferCount = Size;
  40519. 801151a: 68fb ldr r3, [r7, #12]
  40520. 801151c: 88fa ldrh r2, [r7, #6]
  40521. 801151e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  40522. huart->TxISR = NULL;
  40523. 8011522: 68fb ldr r3, [r7, #12]
  40524. 8011524: 2200 movs r2, #0
  40525. 8011526: 679a str r2, [r3, #120] @ 0x78
  40526. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40527. 8011528: 68fb ldr r3, [r7, #12]
  40528. 801152a: 2200 movs r2, #0
  40529. 801152c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40530. huart->gState = HAL_UART_STATE_BUSY_TX;
  40531. 8011530: 68fb ldr r3, [r7, #12]
  40532. 8011532: 2221 movs r2, #33 @ 0x21
  40533. 8011534: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40534. /* Configure Tx interrupt processing */
  40535. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  40536. 8011538: 68fb ldr r3, [r7, #12]
  40537. 801153a: 6e5b ldr r3, [r3, #100] @ 0x64
  40538. 801153c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  40539. 8011540: d12a bne.n 8011598 <HAL_UART_Transmit_IT+0xb4>
  40540. {
  40541. /* Set the Tx ISR function pointer according to the data word length */
  40542. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40543. 8011542: 68fb ldr r3, [r7, #12]
  40544. 8011544: 689b ldr r3, [r3, #8]
  40545. 8011546: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40546. 801154a: d107 bne.n 801155c <HAL_UART_Transmit_IT+0x78>
  40547. 801154c: 68fb ldr r3, [r7, #12]
  40548. 801154e: 691b ldr r3, [r3, #16]
  40549. 8011550: 2b00 cmp r3, #0
  40550. 8011552: d103 bne.n 801155c <HAL_UART_Transmit_IT+0x78>
  40551. {
  40552. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  40553. 8011554: 68fb ldr r3, [r7, #12]
  40554. 8011556: 4a29 ldr r2, [pc, #164] @ (80115fc <HAL_UART_Transmit_IT+0x118>)
  40555. 8011558: 679a str r2, [r3, #120] @ 0x78
  40556. 801155a: e002 b.n 8011562 <HAL_UART_Transmit_IT+0x7e>
  40557. }
  40558. else
  40559. {
  40560. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  40561. 801155c: 68fb ldr r3, [r7, #12]
  40562. 801155e: 4a28 ldr r2, [pc, #160] @ (8011600 <HAL_UART_Transmit_IT+0x11c>)
  40563. 8011560: 679a str r2, [r3, #120] @ 0x78
  40564. }
  40565. /* Enable the TX FIFO threshold interrupt */
  40566. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  40567. 8011562: 68fb ldr r3, [r7, #12]
  40568. 8011564: 681b ldr r3, [r3, #0]
  40569. 8011566: 3308 adds r3, #8
  40570. 8011568: 62bb str r3, [r7, #40] @ 0x28
  40571. */
  40572. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  40573. {
  40574. uint32_t result;
  40575. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40576. 801156a: 6abb ldr r3, [r7, #40] @ 0x28
  40577. 801156c: e853 3f00 ldrex r3, [r3]
  40578. 8011570: 627b str r3, [r7, #36] @ 0x24
  40579. return(result);
  40580. 8011572: 6a7b ldr r3, [r7, #36] @ 0x24
  40581. 8011574: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  40582. 8011578: 63bb str r3, [r7, #56] @ 0x38
  40583. 801157a: 68fb ldr r3, [r7, #12]
  40584. 801157c: 681b ldr r3, [r3, #0]
  40585. 801157e: 3308 adds r3, #8
  40586. 8011580: 6bba ldr r2, [r7, #56] @ 0x38
  40587. 8011582: 637a str r2, [r7, #52] @ 0x34
  40588. 8011584: 633b str r3, [r7, #48] @ 0x30
  40589. */
  40590. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  40591. {
  40592. uint32_t result;
  40593. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40594. 8011586: 6b39 ldr r1, [r7, #48] @ 0x30
  40595. 8011588: 6b7a ldr r2, [r7, #52] @ 0x34
  40596. 801158a: e841 2300 strex r3, r2, [r1]
  40597. 801158e: 62fb str r3, [r7, #44] @ 0x2c
  40598. return(result);
  40599. 8011590: 6afb ldr r3, [r7, #44] @ 0x2c
  40600. 8011592: 2b00 cmp r3, #0
  40601. 8011594: d1e5 bne.n 8011562 <HAL_UART_Transmit_IT+0x7e>
  40602. 8011596: e028 b.n 80115ea <HAL_UART_Transmit_IT+0x106>
  40603. }
  40604. else
  40605. {
  40606. /* Set the Tx ISR function pointer according to the data word length */
  40607. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40608. 8011598: 68fb ldr r3, [r7, #12]
  40609. 801159a: 689b ldr r3, [r3, #8]
  40610. 801159c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40611. 80115a0: d107 bne.n 80115b2 <HAL_UART_Transmit_IT+0xce>
  40612. 80115a2: 68fb ldr r3, [r7, #12]
  40613. 80115a4: 691b ldr r3, [r3, #16]
  40614. 80115a6: 2b00 cmp r3, #0
  40615. 80115a8: d103 bne.n 80115b2 <HAL_UART_Transmit_IT+0xce>
  40616. {
  40617. huart->TxISR = UART_TxISR_16BIT;
  40618. 80115aa: 68fb ldr r3, [r7, #12]
  40619. 80115ac: 4a15 ldr r2, [pc, #84] @ (8011604 <HAL_UART_Transmit_IT+0x120>)
  40620. 80115ae: 679a str r2, [r3, #120] @ 0x78
  40621. 80115b0: e002 b.n 80115b8 <HAL_UART_Transmit_IT+0xd4>
  40622. }
  40623. else
  40624. {
  40625. huart->TxISR = UART_TxISR_8BIT;
  40626. 80115b2: 68fb ldr r3, [r7, #12]
  40627. 80115b4: 4a14 ldr r2, [pc, #80] @ (8011608 <HAL_UART_Transmit_IT+0x124>)
  40628. 80115b6: 679a str r2, [r3, #120] @ 0x78
  40629. }
  40630. /* Enable the Transmit Data Register Empty interrupt */
  40631. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  40632. 80115b8: 68fb ldr r3, [r7, #12]
  40633. 80115ba: 681b ldr r3, [r3, #0]
  40634. 80115bc: 617b str r3, [r7, #20]
  40635. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40636. 80115be: 697b ldr r3, [r7, #20]
  40637. 80115c0: e853 3f00 ldrex r3, [r3]
  40638. 80115c4: 613b str r3, [r7, #16]
  40639. return(result);
  40640. 80115c6: 693b ldr r3, [r7, #16]
  40641. 80115c8: f043 0380 orr.w r3, r3, #128 @ 0x80
  40642. 80115cc: 63fb str r3, [r7, #60] @ 0x3c
  40643. 80115ce: 68fb ldr r3, [r7, #12]
  40644. 80115d0: 681b ldr r3, [r3, #0]
  40645. 80115d2: 461a mov r2, r3
  40646. 80115d4: 6bfb ldr r3, [r7, #60] @ 0x3c
  40647. 80115d6: 623b str r3, [r7, #32]
  40648. 80115d8: 61fa str r2, [r7, #28]
  40649. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40650. 80115da: 69f9 ldr r1, [r7, #28]
  40651. 80115dc: 6a3a ldr r2, [r7, #32]
  40652. 80115de: e841 2300 strex r3, r2, [r1]
  40653. 80115e2: 61bb str r3, [r7, #24]
  40654. return(result);
  40655. 80115e4: 69bb ldr r3, [r7, #24]
  40656. 80115e6: 2b00 cmp r3, #0
  40657. 80115e8: d1e6 bne.n 80115b8 <HAL_UART_Transmit_IT+0xd4>
  40658. }
  40659. return HAL_OK;
  40660. 80115ea: 2300 movs r3, #0
  40661. 80115ec: e000 b.n 80115f0 <HAL_UART_Transmit_IT+0x10c>
  40662. }
  40663. else
  40664. {
  40665. return HAL_BUSY;
  40666. 80115ee: 2302 movs r3, #2
  40667. }
  40668. }
  40669. 80115f0: 4618 mov r0, r3
  40670. 80115f2: 3744 adds r7, #68 @ 0x44
  40671. 80115f4: 46bd mov sp, r7
  40672. 80115f6: f85d 7b04 ldr.w r7, [sp], #4
  40673. 80115fa: 4770 bx lr
  40674. 80115fc: 0801316f .word 0x0801316f
  40675. 8011600: 0801308f .word 0x0801308f
  40676. 8011604: 08012fcd .word 0x08012fcd
  40677. 8011608: 08012f15 .word 0x08012f15
  40678. 0801160c <HAL_UART_IRQHandler>:
  40679. * @brief Handle UART interrupt request.
  40680. * @param huart UART handle.
  40681. * @retval None
  40682. */
  40683. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  40684. {
  40685. 801160c: b580 push {r7, lr}
  40686. 801160e: b0ba sub sp, #232 @ 0xe8
  40687. 8011610: af00 add r7, sp, #0
  40688. 8011612: 6078 str r0, [r7, #4]
  40689. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  40690. 8011614: 687b ldr r3, [r7, #4]
  40691. 8011616: 681b ldr r3, [r3, #0]
  40692. 8011618: 69db ldr r3, [r3, #28]
  40693. 801161a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  40694. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  40695. 801161e: 687b ldr r3, [r7, #4]
  40696. 8011620: 681b ldr r3, [r3, #0]
  40697. 8011622: 681b ldr r3, [r3, #0]
  40698. 8011624: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  40699. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  40700. 8011628: 687b ldr r3, [r7, #4]
  40701. 801162a: 681b ldr r3, [r3, #0]
  40702. 801162c: 689b ldr r3, [r3, #8]
  40703. 801162e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  40704. uint32_t errorflags;
  40705. uint32_t errorcode;
  40706. /* If no error occurs */
  40707. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  40708. 8011632: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  40709. 8011636: f640 030f movw r3, #2063 @ 0x80f
  40710. 801163a: 4013 ands r3, r2
  40711. 801163c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  40712. if (errorflags == 0U)
  40713. 8011640: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40714. 8011644: 2b00 cmp r3, #0
  40715. 8011646: d11b bne.n 8011680 <HAL_UART_IRQHandler+0x74>
  40716. {
  40717. /* UART in mode Receiver ---------------------------------------------------*/
  40718. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40719. 8011648: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40720. 801164c: f003 0320 and.w r3, r3, #32
  40721. 8011650: 2b00 cmp r3, #0
  40722. 8011652: d015 beq.n 8011680 <HAL_UART_IRQHandler+0x74>
  40723. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40724. 8011654: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40725. 8011658: f003 0320 and.w r3, r3, #32
  40726. 801165c: 2b00 cmp r3, #0
  40727. 801165e: d105 bne.n 801166c <HAL_UART_IRQHandler+0x60>
  40728. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40729. 8011660: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40730. 8011664: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40731. 8011668: 2b00 cmp r3, #0
  40732. 801166a: d009 beq.n 8011680 <HAL_UART_IRQHandler+0x74>
  40733. {
  40734. if (huart->RxISR != NULL)
  40735. 801166c: 687b ldr r3, [r7, #4]
  40736. 801166e: 6f5b ldr r3, [r3, #116] @ 0x74
  40737. 8011670: 2b00 cmp r3, #0
  40738. 8011672: f000 8377 beq.w 8011d64 <HAL_UART_IRQHandler+0x758>
  40739. {
  40740. huart->RxISR(huart);
  40741. 8011676: 687b ldr r3, [r7, #4]
  40742. 8011678: 6f5b ldr r3, [r3, #116] @ 0x74
  40743. 801167a: 6878 ldr r0, [r7, #4]
  40744. 801167c: 4798 blx r3
  40745. }
  40746. return;
  40747. 801167e: e371 b.n 8011d64 <HAL_UART_IRQHandler+0x758>
  40748. }
  40749. }
  40750. /* If some errors occur */
  40751. if ((errorflags != 0U)
  40752. 8011680: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40753. 8011684: 2b00 cmp r3, #0
  40754. 8011686: f000 8123 beq.w 80118d0 <HAL_UART_IRQHandler+0x2c4>
  40755. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  40756. 801168a: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40757. 801168e: 4b8d ldr r3, [pc, #564] @ (80118c4 <HAL_UART_IRQHandler+0x2b8>)
  40758. 8011690: 4013 ands r3, r2
  40759. 8011692: 2b00 cmp r3, #0
  40760. 8011694: d106 bne.n 80116a4 <HAL_UART_IRQHandler+0x98>
  40761. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  40762. 8011696: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  40763. 801169a: 4b8b ldr r3, [pc, #556] @ (80118c8 <HAL_UART_IRQHandler+0x2bc>)
  40764. 801169c: 4013 ands r3, r2
  40765. 801169e: 2b00 cmp r3, #0
  40766. 80116a0: f000 8116 beq.w 80118d0 <HAL_UART_IRQHandler+0x2c4>
  40767. {
  40768. /* UART parity error interrupt occurred -------------------------------------*/
  40769. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  40770. 80116a4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40771. 80116a8: f003 0301 and.w r3, r3, #1
  40772. 80116ac: 2b00 cmp r3, #0
  40773. 80116ae: d011 beq.n 80116d4 <HAL_UART_IRQHandler+0xc8>
  40774. 80116b0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40775. 80116b4: f403 7380 and.w r3, r3, #256 @ 0x100
  40776. 80116b8: 2b00 cmp r3, #0
  40777. 80116ba: d00b beq.n 80116d4 <HAL_UART_IRQHandler+0xc8>
  40778. {
  40779. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  40780. 80116bc: 687b ldr r3, [r7, #4]
  40781. 80116be: 681b ldr r3, [r3, #0]
  40782. 80116c0: 2201 movs r2, #1
  40783. 80116c2: 621a str r2, [r3, #32]
  40784. huart->ErrorCode |= HAL_UART_ERROR_PE;
  40785. 80116c4: 687b ldr r3, [r7, #4]
  40786. 80116c6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40787. 80116ca: f043 0201 orr.w r2, r3, #1
  40788. 80116ce: 687b ldr r3, [r7, #4]
  40789. 80116d0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40790. }
  40791. /* UART frame error interrupt occurred --------------------------------------*/
  40792. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40793. 80116d4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40794. 80116d8: f003 0302 and.w r3, r3, #2
  40795. 80116dc: 2b00 cmp r3, #0
  40796. 80116de: d011 beq.n 8011704 <HAL_UART_IRQHandler+0xf8>
  40797. 80116e0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40798. 80116e4: f003 0301 and.w r3, r3, #1
  40799. 80116e8: 2b00 cmp r3, #0
  40800. 80116ea: d00b beq.n 8011704 <HAL_UART_IRQHandler+0xf8>
  40801. {
  40802. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  40803. 80116ec: 687b ldr r3, [r7, #4]
  40804. 80116ee: 681b ldr r3, [r3, #0]
  40805. 80116f0: 2202 movs r2, #2
  40806. 80116f2: 621a str r2, [r3, #32]
  40807. huart->ErrorCode |= HAL_UART_ERROR_FE;
  40808. 80116f4: 687b ldr r3, [r7, #4]
  40809. 80116f6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40810. 80116fa: f043 0204 orr.w r2, r3, #4
  40811. 80116fe: 687b ldr r3, [r7, #4]
  40812. 8011700: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40813. }
  40814. /* UART noise error interrupt occurred --------------------------------------*/
  40815. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40816. 8011704: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40817. 8011708: f003 0304 and.w r3, r3, #4
  40818. 801170c: 2b00 cmp r3, #0
  40819. 801170e: d011 beq.n 8011734 <HAL_UART_IRQHandler+0x128>
  40820. 8011710: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40821. 8011714: f003 0301 and.w r3, r3, #1
  40822. 8011718: 2b00 cmp r3, #0
  40823. 801171a: d00b beq.n 8011734 <HAL_UART_IRQHandler+0x128>
  40824. {
  40825. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  40826. 801171c: 687b ldr r3, [r7, #4]
  40827. 801171e: 681b ldr r3, [r3, #0]
  40828. 8011720: 2204 movs r2, #4
  40829. 8011722: 621a str r2, [r3, #32]
  40830. huart->ErrorCode |= HAL_UART_ERROR_NE;
  40831. 8011724: 687b ldr r3, [r7, #4]
  40832. 8011726: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40833. 801172a: f043 0202 orr.w r2, r3, #2
  40834. 801172e: 687b ldr r3, [r7, #4]
  40835. 8011730: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40836. }
  40837. /* UART Over-Run interrupt occurred -----------------------------------------*/
  40838. if (((isrflags & USART_ISR_ORE) != 0U)
  40839. 8011734: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40840. 8011738: f003 0308 and.w r3, r3, #8
  40841. 801173c: 2b00 cmp r3, #0
  40842. 801173e: d017 beq.n 8011770 <HAL_UART_IRQHandler+0x164>
  40843. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40844. 8011740: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40845. 8011744: f003 0320 and.w r3, r3, #32
  40846. 8011748: 2b00 cmp r3, #0
  40847. 801174a: d105 bne.n 8011758 <HAL_UART_IRQHandler+0x14c>
  40848. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  40849. 801174c: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40850. 8011750: 4b5c ldr r3, [pc, #368] @ (80118c4 <HAL_UART_IRQHandler+0x2b8>)
  40851. 8011752: 4013 ands r3, r2
  40852. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40853. 8011754: 2b00 cmp r3, #0
  40854. 8011756: d00b beq.n 8011770 <HAL_UART_IRQHandler+0x164>
  40855. {
  40856. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  40857. 8011758: 687b ldr r3, [r7, #4]
  40858. 801175a: 681b ldr r3, [r3, #0]
  40859. 801175c: 2208 movs r2, #8
  40860. 801175e: 621a str r2, [r3, #32]
  40861. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  40862. 8011760: 687b ldr r3, [r7, #4]
  40863. 8011762: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40864. 8011766: f043 0208 orr.w r2, r3, #8
  40865. 801176a: 687b ldr r3, [r7, #4]
  40866. 801176c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40867. }
  40868. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  40869. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  40870. 8011770: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40871. 8011774: f403 6300 and.w r3, r3, #2048 @ 0x800
  40872. 8011778: 2b00 cmp r3, #0
  40873. 801177a: d012 beq.n 80117a2 <HAL_UART_IRQHandler+0x196>
  40874. 801177c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40875. 8011780: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  40876. 8011784: 2b00 cmp r3, #0
  40877. 8011786: d00c beq.n 80117a2 <HAL_UART_IRQHandler+0x196>
  40878. {
  40879. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  40880. 8011788: 687b ldr r3, [r7, #4]
  40881. 801178a: 681b ldr r3, [r3, #0]
  40882. 801178c: f44f 6200 mov.w r2, #2048 @ 0x800
  40883. 8011790: 621a str r2, [r3, #32]
  40884. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  40885. 8011792: 687b ldr r3, [r7, #4]
  40886. 8011794: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40887. 8011798: f043 0220 orr.w r2, r3, #32
  40888. 801179c: 687b ldr r3, [r7, #4]
  40889. 801179e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40890. }
  40891. /* Call UART Error Call back function if need be ----------------------------*/
  40892. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  40893. 80117a2: 687b ldr r3, [r7, #4]
  40894. 80117a4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40895. 80117a8: 2b00 cmp r3, #0
  40896. 80117aa: f000 82dd beq.w 8011d68 <HAL_UART_IRQHandler+0x75c>
  40897. {
  40898. /* UART in mode Receiver --------------------------------------------------*/
  40899. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40900. 80117ae: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40901. 80117b2: f003 0320 and.w r3, r3, #32
  40902. 80117b6: 2b00 cmp r3, #0
  40903. 80117b8: d013 beq.n 80117e2 <HAL_UART_IRQHandler+0x1d6>
  40904. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40905. 80117ba: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40906. 80117be: f003 0320 and.w r3, r3, #32
  40907. 80117c2: 2b00 cmp r3, #0
  40908. 80117c4: d105 bne.n 80117d2 <HAL_UART_IRQHandler+0x1c6>
  40909. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40910. 80117c6: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40911. 80117ca: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40912. 80117ce: 2b00 cmp r3, #0
  40913. 80117d0: d007 beq.n 80117e2 <HAL_UART_IRQHandler+0x1d6>
  40914. {
  40915. if (huart->RxISR != NULL)
  40916. 80117d2: 687b ldr r3, [r7, #4]
  40917. 80117d4: 6f5b ldr r3, [r3, #116] @ 0x74
  40918. 80117d6: 2b00 cmp r3, #0
  40919. 80117d8: d003 beq.n 80117e2 <HAL_UART_IRQHandler+0x1d6>
  40920. {
  40921. huart->RxISR(huart);
  40922. 80117da: 687b ldr r3, [r7, #4]
  40923. 80117dc: 6f5b ldr r3, [r3, #116] @ 0x74
  40924. 80117de: 6878 ldr r0, [r7, #4]
  40925. 80117e0: 4798 blx r3
  40926. /* If Error is to be considered as blocking :
  40927. - Receiver Timeout error in Reception
  40928. - Overrun error in Reception
  40929. - any error occurs in DMA mode reception
  40930. */
  40931. errorcode = huart->ErrorCode;
  40932. 80117e2: 687b ldr r3, [r7, #4]
  40933. 80117e4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40934. 80117e8: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40935. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40936. 80117ec: 687b ldr r3, [r7, #4]
  40937. 80117ee: 681b ldr r3, [r3, #0]
  40938. 80117f0: 689b ldr r3, [r3, #8]
  40939. 80117f2: f003 0340 and.w r3, r3, #64 @ 0x40
  40940. 80117f6: 2b40 cmp r3, #64 @ 0x40
  40941. 80117f8: d005 beq.n 8011806 <HAL_UART_IRQHandler+0x1fa>
  40942. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40943. 80117fa: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40944. 80117fe: f003 0328 and.w r3, r3, #40 @ 0x28
  40945. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40946. 8011802: 2b00 cmp r3, #0
  40947. 8011804: d054 beq.n 80118b0 <HAL_UART_IRQHandler+0x2a4>
  40948. {
  40949. /* Blocking error : transfer is aborted
  40950. Set the UART state ready to be able to start again the process,
  40951. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40952. UART_EndRxTransfer(huart);
  40953. 8011806: 6878 ldr r0, [r7, #4]
  40954. 8011808: f001 fb08 bl 8012e1c <UART_EndRxTransfer>
  40955. /* Abort the UART DMA Rx channel if enabled */
  40956. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40957. 801180c: 687b ldr r3, [r7, #4]
  40958. 801180e: 681b ldr r3, [r3, #0]
  40959. 8011810: 689b ldr r3, [r3, #8]
  40960. 8011812: f003 0340 and.w r3, r3, #64 @ 0x40
  40961. 8011816: 2b40 cmp r3, #64 @ 0x40
  40962. 8011818: d146 bne.n 80118a8 <HAL_UART_IRQHandler+0x29c>
  40963. {
  40964. /* Disable the UART DMA Rx request if enabled */
  40965. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40966. 801181a: 687b ldr r3, [r7, #4]
  40967. 801181c: 681b ldr r3, [r3, #0]
  40968. 801181e: 3308 adds r3, #8
  40969. 8011820: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40970. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40971. 8011824: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40972. 8011828: e853 3f00 ldrex r3, [r3]
  40973. 801182c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40974. return(result);
  40975. 8011830: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40976. 8011834: f023 0340 bic.w r3, r3, #64 @ 0x40
  40977. 8011838: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40978. 801183c: 687b ldr r3, [r7, #4]
  40979. 801183e: 681b ldr r3, [r3, #0]
  40980. 8011840: 3308 adds r3, #8
  40981. 8011842: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40982. 8011846: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40983. 801184a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40984. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40985. 801184e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40986. 8011852: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40987. 8011856: e841 2300 strex r3, r2, [r1]
  40988. 801185a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40989. return(result);
  40990. 801185e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40991. 8011862: 2b00 cmp r3, #0
  40992. 8011864: d1d9 bne.n 801181a <HAL_UART_IRQHandler+0x20e>
  40993. /* Abort the UART DMA Rx channel */
  40994. if (huart->hdmarx != NULL)
  40995. 8011866: 687b ldr r3, [r7, #4]
  40996. 8011868: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40997. 801186c: 2b00 cmp r3, #0
  40998. 801186e: d017 beq.n 80118a0 <HAL_UART_IRQHandler+0x294>
  40999. {
  41000. /* Set the UART DMA Abort callback :
  41001. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  41002. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  41003. 8011870: 687b ldr r3, [r7, #4]
  41004. 8011872: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41005. 8011876: 4a15 ldr r2, [pc, #84] @ (80118cc <HAL_UART_IRQHandler+0x2c0>)
  41006. 8011878: 651a str r2, [r3, #80] @ 0x50
  41007. /* Abort DMA RX */
  41008. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  41009. 801187a: 687b ldr r3, [r7, #4]
  41010. 801187c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41011. 8011880: 4618 mov r0, r3
  41012. 8011882: f7f7 ff8f bl 80097a4 <HAL_DMA_Abort_IT>
  41013. 8011886: 4603 mov r3, r0
  41014. 8011888: 2b00 cmp r3, #0
  41015. 801188a: d019 beq.n 80118c0 <HAL_UART_IRQHandler+0x2b4>
  41016. {
  41017. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  41018. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  41019. 801188c: 687b ldr r3, [r7, #4]
  41020. 801188e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41021. 8011892: 6d1b ldr r3, [r3, #80] @ 0x50
  41022. 8011894: 687a ldr r2, [r7, #4]
  41023. 8011896: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  41024. 801189a: 4610 mov r0, r2
  41025. 801189c: 4798 blx r3
  41026. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41027. 801189e: e00f b.n 80118c0 <HAL_UART_IRQHandler+0x2b4>
  41028. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41029. /*Call registered error callback*/
  41030. huart->ErrorCallback(huart);
  41031. #else
  41032. /*Call legacy weak error callback*/
  41033. HAL_UART_ErrorCallback(huart);
  41034. 80118a0: 6878 ldr r0, [r7, #4]
  41035. 80118a2: f000 fa6d bl 8011d80 <HAL_UART_ErrorCallback>
  41036. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41037. 80118a6: e00b b.n 80118c0 <HAL_UART_IRQHandler+0x2b4>
  41038. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41039. /*Call registered error callback*/
  41040. huart->ErrorCallback(huart);
  41041. #else
  41042. /*Call legacy weak error callback*/
  41043. HAL_UART_ErrorCallback(huart);
  41044. 80118a8: 6878 ldr r0, [r7, #4]
  41045. 80118aa: f000 fa69 bl 8011d80 <HAL_UART_ErrorCallback>
  41046. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41047. 80118ae: e007 b.n 80118c0 <HAL_UART_IRQHandler+0x2b4>
  41048. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41049. /*Call registered error callback*/
  41050. huart->ErrorCallback(huart);
  41051. #else
  41052. /*Call legacy weak error callback*/
  41053. HAL_UART_ErrorCallback(huart);
  41054. 80118b0: 6878 ldr r0, [r7, #4]
  41055. 80118b2: f000 fa65 bl 8011d80 <HAL_UART_ErrorCallback>
  41056. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41057. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41058. 80118b6: 687b ldr r3, [r7, #4]
  41059. 80118b8: 2200 movs r2, #0
  41060. 80118ba: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41061. }
  41062. }
  41063. return;
  41064. 80118be: e253 b.n 8011d68 <HAL_UART_IRQHandler+0x75c>
  41065. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41066. 80118c0: bf00 nop
  41067. return;
  41068. 80118c2: e251 b.n 8011d68 <HAL_UART_IRQHandler+0x75c>
  41069. 80118c4: 10000001 .word 0x10000001
  41070. 80118c8: 04000120 .word 0x04000120
  41071. 80118cc: 08012ee9 .word 0x08012ee9
  41072. } /* End if some error occurs */
  41073. /* Check current reception Mode :
  41074. If Reception till IDLE event has been selected : */
  41075. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  41076. 80118d0: 687b ldr r3, [r7, #4]
  41077. 80118d2: 6edb ldr r3, [r3, #108] @ 0x6c
  41078. 80118d4: 2b01 cmp r3, #1
  41079. 80118d6: f040 81e7 bne.w 8011ca8 <HAL_UART_IRQHandler+0x69c>
  41080. && ((isrflags & USART_ISR_IDLE) != 0U)
  41081. 80118da: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41082. 80118de: f003 0310 and.w r3, r3, #16
  41083. 80118e2: 2b00 cmp r3, #0
  41084. 80118e4: f000 81e0 beq.w 8011ca8 <HAL_UART_IRQHandler+0x69c>
  41085. && ((cr1its & USART_ISR_IDLE) != 0U))
  41086. 80118e8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41087. 80118ec: f003 0310 and.w r3, r3, #16
  41088. 80118f0: 2b00 cmp r3, #0
  41089. 80118f2: f000 81d9 beq.w 8011ca8 <HAL_UART_IRQHandler+0x69c>
  41090. {
  41091. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  41092. 80118f6: 687b ldr r3, [r7, #4]
  41093. 80118f8: 681b ldr r3, [r3, #0]
  41094. 80118fa: 2210 movs r2, #16
  41095. 80118fc: 621a str r2, [r3, #32]
  41096. /* Check if DMA mode is enabled in UART */
  41097. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41098. 80118fe: 687b ldr r3, [r7, #4]
  41099. 8011900: 681b ldr r3, [r3, #0]
  41100. 8011902: 689b ldr r3, [r3, #8]
  41101. 8011904: f003 0340 and.w r3, r3, #64 @ 0x40
  41102. 8011908: 2b40 cmp r3, #64 @ 0x40
  41103. 801190a: f040 8151 bne.w 8011bb0 <HAL_UART_IRQHandler+0x5a4>
  41104. {
  41105. /* DMA mode enabled */
  41106. /* Check received length : If all expected data are received, do nothing,
  41107. (DMA cplt callback will be called).
  41108. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41109. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  41110. 801190e: 687b ldr r3, [r7, #4]
  41111. 8011910: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41112. 8011914: 681b ldr r3, [r3, #0]
  41113. 8011916: 4a96 ldr r2, [pc, #600] @ (8011b70 <HAL_UART_IRQHandler+0x564>)
  41114. 8011918: 4293 cmp r3, r2
  41115. 801191a: d068 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41116. 801191c: 687b ldr r3, [r7, #4]
  41117. 801191e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41118. 8011922: 681b ldr r3, [r3, #0]
  41119. 8011924: 4a93 ldr r2, [pc, #588] @ (8011b74 <HAL_UART_IRQHandler+0x568>)
  41120. 8011926: 4293 cmp r3, r2
  41121. 8011928: d061 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41122. 801192a: 687b ldr r3, [r7, #4]
  41123. 801192c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41124. 8011930: 681b ldr r3, [r3, #0]
  41125. 8011932: 4a91 ldr r2, [pc, #580] @ (8011b78 <HAL_UART_IRQHandler+0x56c>)
  41126. 8011934: 4293 cmp r3, r2
  41127. 8011936: d05a beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41128. 8011938: 687b ldr r3, [r7, #4]
  41129. 801193a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41130. 801193e: 681b ldr r3, [r3, #0]
  41131. 8011940: 4a8e ldr r2, [pc, #568] @ (8011b7c <HAL_UART_IRQHandler+0x570>)
  41132. 8011942: 4293 cmp r3, r2
  41133. 8011944: d053 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41134. 8011946: 687b ldr r3, [r7, #4]
  41135. 8011948: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41136. 801194c: 681b ldr r3, [r3, #0]
  41137. 801194e: 4a8c ldr r2, [pc, #560] @ (8011b80 <HAL_UART_IRQHandler+0x574>)
  41138. 8011950: 4293 cmp r3, r2
  41139. 8011952: d04c beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41140. 8011954: 687b ldr r3, [r7, #4]
  41141. 8011956: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41142. 801195a: 681b ldr r3, [r3, #0]
  41143. 801195c: 4a89 ldr r2, [pc, #548] @ (8011b84 <HAL_UART_IRQHandler+0x578>)
  41144. 801195e: 4293 cmp r3, r2
  41145. 8011960: d045 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41146. 8011962: 687b ldr r3, [r7, #4]
  41147. 8011964: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41148. 8011968: 681b ldr r3, [r3, #0]
  41149. 801196a: 4a87 ldr r2, [pc, #540] @ (8011b88 <HAL_UART_IRQHandler+0x57c>)
  41150. 801196c: 4293 cmp r3, r2
  41151. 801196e: d03e beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41152. 8011970: 687b ldr r3, [r7, #4]
  41153. 8011972: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41154. 8011976: 681b ldr r3, [r3, #0]
  41155. 8011978: 4a84 ldr r2, [pc, #528] @ (8011b8c <HAL_UART_IRQHandler+0x580>)
  41156. 801197a: 4293 cmp r3, r2
  41157. 801197c: d037 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41158. 801197e: 687b ldr r3, [r7, #4]
  41159. 8011980: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41160. 8011984: 681b ldr r3, [r3, #0]
  41161. 8011986: 4a82 ldr r2, [pc, #520] @ (8011b90 <HAL_UART_IRQHandler+0x584>)
  41162. 8011988: 4293 cmp r3, r2
  41163. 801198a: d030 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41164. 801198c: 687b ldr r3, [r7, #4]
  41165. 801198e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41166. 8011992: 681b ldr r3, [r3, #0]
  41167. 8011994: 4a7f ldr r2, [pc, #508] @ (8011b94 <HAL_UART_IRQHandler+0x588>)
  41168. 8011996: 4293 cmp r3, r2
  41169. 8011998: d029 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41170. 801199a: 687b ldr r3, [r7, #4]
  41171. 801199c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41172. 80119a0: 681b ldr r3, [r3, #0]
  41173. 80119a2: 4a7d ldr r2, [pc, #500] @ (8011b98 <HAL_UART_IRQHandler+0x58c>)
  41174. 80119a4: 4293 cmp r3, r2
  41175. 80119a6: d022 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41176. 80119a8: 687b ldr r3, [r7, #4]
  41177. 80119aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41178. 80119ae: 681b ldr r3, [r3, #0]
  41179. 80119b0: 4a7a ldr r2, [pc, #488] @ (8011b9c <HAL_UART_IRQHandler+0x590>)
  41180. 80119b2: 4293 cmp r3, r2
  41181. 80119b4: d01b beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41182. 80119b6: 687b ldr r3, [r7, #4]
  41183. 80119b8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41184. 80119bc: 681b ldr r3, [r3, #0]
  41185. 80119be: 4a78 ldr r2, [pc, #480] @ (8011ba0 <HAL_UART_IRQHandler+0x594>)
  41186. 80119c0: 4293 cmp r3, r2
  41187. 80119c2: d014 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41188. 80119c4: 687b ldr r3, [r7, #4]
  41189. 80119c6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41190. 80119ca: 681b ldr r3, [r3, #0]
  41191. 80119cc: 4a75 ldr r2, [pc, #468] @ (8011ba4 <HAL_UART_IRQHandler+0x598>)
  41192. 80119ce: 4293 cmp r3, r2
  41193. 80119d0: d00d beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41194. 80119d2: 687b ldr r3, [r7, #4]
  41195. 80119d4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41196. 80119d8: 681b ldr r3, [r3, #0]
  41197. 80119da: 4a73 ldr r2, [pc, #460] @ (8011ba8 <HAL_UART_IRQHandler+0x59c>)
  41198. 80119dc: 4293 cmp r3, r2
  41199. 80119de: d006 beq.n 80119ee <HAL_UART_IRQHandler+0x3e2>
  41200. 80119e0: 687b ldr r3, [r7, #4]
  41201. 80119e2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41202. 80119e6: 681b ldr r3, [r3, #0]
  41203. 80119e8: 4a70 ldr r2, [pc, #448] @ (8011bac <HAL_UART_IRQHandler+0x5a0>)
  41204. 80119ea: 4293 cmp r3, r2
  41205. 80119ec: d106 bne.n 80119fc <HAL_UART_IRQHandler+0x3f0>
  41206. 80119ee: 687b ldr r3, [r7, #4]
  41207. 80119f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41208. 80119f4: 681b ldr r3, [r3, #0]
  41209. 80119f6: 685b ldr r3, [r3, #4]
  41210. 80119f8: b29b uxth r3, r3
  41211. 80119fa: e005 b.n 8011a08 <HAL_UART_IRQHandler+0x3fc>
  41212. 80119fc: 687b ldr r3, [r7, #4]
  41213. 80119fe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41214. 8011a02: 681b ldr r3, [r3, #0]
  41215. 8011a04: 685b ldr r3, [r3, #4]
  41216. 8011a06: b29b uxth r3, r3
  41217. 8011a08: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  41218. if ((nb_remaining_rx_data > 0U)
  41219. 8011a0c: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  41220. 8011a10: 2b00 cmp r3, #0
  41221. 8011a12: f000 81ab beq.w 8011d6c <HAL_UART_IRQHandler+0x760>
  41222. && (nb_remaining_rx_data < huart->RxXferSize))
  41223. 8011a16: 687b ldr r3, [r7, #4]
  41224. 8011a18: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  41225. 8011a1c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41226. 8011a20: 429a cmp r2, r3
  41227. 8011a22: f080 81a3 bcs.w 8011d6c <HAL_UART_IRQHandler+0x760>
  41228. {
  41229. /* Reception is not complete */
  41230. huart->RxXferCount = nb_remaining_rx_data;
  41231. 8011a26: 687b ldr r3, [r7, #4]
  41232. 8011a28: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41233. 8011a2c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  41234. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  41235. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  41236. 8011a30: 687b ldr r3, [r7, #4]
  41237. 8011a32: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41238. 8011a36: 69db ldr r3, [r3, #28]
  41239. 8011a38: f5b3 7f80 cmp.w r3, #256 @ 0x100
  41240. 8011a3c: f000 8087 beq.w 8011b4e <HAL_UART_IRQHandler+0x542>
  41241. {
  41242. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  41243. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  41244. 8011a40: 687b ldr r3, [r7, #4]
  41245. 8011a42: 681b ldr r3, [r3, #0]
  41246. 8011a44: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  41247. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41248. 8011a48: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  41249. 8011a4c: e853 3f00 ldrex r3, [r3]
  41250. 8011a50: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  41251. return(result);
  41252. 8011a54: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  41253. 8011a58: f423 7380 bic.w r3, r3, #256 @ 0x100
  41254. 8011a5c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  41255. 8011a60: 687b ldr r3, [r7, #4]
  41256. 8011a62: 681b ldr r3, [r3, #0]
  41257. 8011a64: 461a mov r2, r3
  41258. 8011a66: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  41259. 8011a6a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  41260. 8011a6e: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  41261. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41262. 8011a72: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  41263. 8011a76: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  41264. 8011a7a: e841 2300 strex r3, r2, [r1]
  41265. 8011a7e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  41266. return(result);
  41267. 8011a82: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  41268. 8011a86: 2b00 cmp r3, #0
  41269. 8011a88: d1da bne.n 8011a40 <HAL_UART_IRQHandler+0x434>
  41270. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41271. 8011a8a: 687b ldr r3, [r7, #4]
  41272. 8011a8c: 681b ldr r3, [r3, #0]
  41273. 8011a8e: 3308 adds r3, #8
  41274. 8011a90: 677b str r3, [r7, #116] @ 0x74
  41275. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41276. 8011a92: 6f7b ldr r3, [r7, #116] @ 0x74
  41277. 8011a94: e853 3f00 ldrex r3, [r3]
  41278. 8011a98: 673b str r3, [r7, #112] @ 0x70
  41279. return(result);
  41280. 8011a9a: 6f3b ldr r3, [r7, #112] @ 0x70
  41281. 8011a9c: f023 0301 bic.w r3, r3, #1
  41282. 8011aa0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  41283. 8011aa4: 687b ldr r3, [r7, #4]
  41284. 8011aa6: 681b ldr r3, [r3, #0]
  41285. 8011aa8: 3308 adds r3, #8
  41286. 8011aaa: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  41287. 8011aae: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  41288. 8011ab2: 67fb str r3, [r7, #124] @ 0x7c
  41289. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41290. 8011ab4: 6ff9 ldr r1, [r7, #124] @ 0x7c
  41291. 8011ab6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  41292. 8011aba: e841 2300 strex r3, r2, [r1]
  41293. 8011abe: 67bb str r3, [r7, #120] @ 0x78
  41294. return(result);
  41295. 8011ac0: 6fbb ldr r3, [r7, #120] @ 0x78
  41296. 8011ac2: 2b00 cmp r3, #0
  41297. 8011ac4: d1e1 bne.n 8011a8a <HAL_UART_IRQHandler+0x47e>
  41298. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  41299. in the UART CR3 register */
  41300. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  41301. 8011ac6: 687b ldr r3, [r7, #4]
  41302. 8011ac8: 681b ldr r3, [r3, #0]
  41303. 8011aca: 3308 adds r3, #8
  41304. 8011acc: 663b str r3, [r7, #96] @ 0x60
  41305. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41306. 8011ace: 6e3b ldr r3, [r7, #96] @ 0x60
  41307. 8011ad0: e853 3f00 ldrex r3, [r3]
  41308. 8011ad4: 65fb str r3, [r7, #92] @ 0x5c
  41309. return(result);
  41310. 8011ad6: 6dfb ldr r3, [r7, #92] @ 0x5c
  41311. 8011ad8: f023 0340 bic.w r3, r3, #64 @ 0x40
  41312. 8011adc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  41313. 8011ae0: 687b ldr r3, [r7, #4]
  41314. 8011ae2: 681b ldr r3, [r3, #0]
  41315. 8011ae4: 3308 adds r3, #8
  41316. 8011ae6: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  41317. 8011aea: 66fa str r2, [r7, #108] @ 0x6c
  41318. 8011aec: 66bb str r3, [r7, #104] @ 0x68
  41319. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41320. 8011aee: 6eb9 ldr r1, [r7, #104] @ 0x68
  41321. 8011af0: 6efa ldr r2, [r7, #108] @ 0x6c
  41322. 8011af2: e841 2300 strex r3, r2, [r1]
  41323. 8011af6: 667b str r3, [r7, #100] @ 0x64
  41324. return(result);
  41325. 8011af8: 6e7b ldr r3, [r7, #100] @ 0x64
  41326. 8011afa: 2b00 cmp r3, #0
  41327. 8011afc: d1e3 bne.n 8011ac6 <HAL_UART_IRQHandler+0x4ba>
  41328. /* At end of Rx process, restore huart->RxState to Ready */
  41329. huart->RxState = HAL_UART_STATE_READY;
  41330. 8011afe: 687b ldr r3, [r7, #4]
  41331. 8011b00: 2220 movs r2, #32
  41332. 8011b02: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41333. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41334. 8011b06: 687b ldr r3, [r7, #4]
  41335. 8011b08: 2200 movs r2, #0
  41336. 8011b0a: 66da str r2, [r3, #108] @ 0x6c
  41337. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41338. 8011b0c: 687b ldr r3, [r7, #4]
  41339. 8011b0e: 681b ldr r3, [r3, #0]
  41340. 8011b10: 64fb str r3, [r7, #76] @ 0x4c
  41341. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41342. 8011b12: 6cfb ldr r3, [r7, #76] @ 0x4c
  41343. 8011b14: e853 3f00 ldrex r3, [r3]
  41344. 8011b18: 64bb str r3, [r7, #72] @ 0x48
  41345. return(result);
  41346. 8011b1a: 6cbb ldr r3, [r7, #72] @ 0x48
  41347. 8011b1c: f023 0310 bic.w r3, r3, #16
  41348. 8011b20: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  41349. 8011b24: 687b ldr r3, [r7, #4]
  41350. 8011b26: 681b ldr r3, [r3, #0]
  41351. 8011b28: 461a mov r2, r3
  41352. 8011b2a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  41353. 8011b2e: 65bb str r3, [r7, #88] @ 0x58
  41354. 8011b30: 657a str r2, [r7, #84] @ 0x54
  41355. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41356. 8011b32: 6d79 ldr r1, [r7, #84] @ 0x54
  41357. 8011b34: 6dba ldr r2, [r7, #88] @ 0x58
  41358. 8011b36: e841 2300 strex r3, r2, [r1]
  41359. 8011b3a: 653b str r3, [r7, #80] @ 0x50
  41360. return(result);
  41361. 8011b3c: 6d3b ldr r3, [r7, #80] @ 0x50
  41362. 8011b3e: 2b00 cmp r3, #0
  41363. 8011b40: d1e4 bne.n 8011b0c <HAL_UART_IRQHandler+0x500>
  41364. /* Last bytes received, so no need as the abort is immediate */
  41365. (void)HAL_DMA_Abort(huart->hdmarx);
  41366. 8011b42: 687b ldr r3, [r7, #4]
  41367. 8011b44: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41368. 8011b48: 4618 mov r0, r3
  41369. 8011b4a: f7f7 fb0d bl 8009168 <HAL_DMA_Abort>
  41370. }
  41371. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41372. In this case, Rx Event type is Idle Event */
  41373. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41374. 8011b4e: 687b ldr r3, [r7, #4]
  41375. 8011b50: 2202 movs r2, #2
  41376. 8011b52: 671a str r2, [r3, #112] @ 0x70
  41377. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41378. /*Call registered Rx Event callback*/
  41379. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41380. #else
  41381. /*Call legacy weak Rx Event callback*/
  41382. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41383. 8011b54: 687b ldr r3, [r7, #4]
  41384. 8011b56: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41385. 8011b5a: 687b ldr r3, [r7, #4]
  41386. 8011b5c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41387. 8011b60: b29b uxth r3, r3
  41388. 8011b62: 1ad3 subs r3, r2, r3
  41389. 8011b64: b29b uxth r3, r3
  41390. 8011b66: 4619 mov r1, r3
  41391. 8011b68: 6878 ldr r0, [r7, #4]
  41392. 8011b6a: f7f2 ffff bl 8004b6c <HAL_UARTEx_RxEventCallback>
  41393. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41394. }
  41395. return;
  41396. 8011b6e: e0fd b.n 8011d6c <HAL_UART_IRQHandler+0x760>
  41397. 8011b70: 40020010 .word 0x40020010
  41398. 8011b74: 40020028 .word 0x40020028
  41399. 8011b78: 40020040 .word 0x40020040
  41400. 8011b7c: 40020058 .word 0x40020058
  41401. 8011b80: 40020070 .word 0x40020070
  41402. 8011b84: 40020088 .word 0x40020088
  41403. 8011b88: 400200a0 .word 0x400200a0
  41404. 8011b8c: 400200b8 .word 0x400200b8
  41405. 8011b90: 40020410 .word 0x40020410
  41406. 8011b94: 40020428 .word 0x40020428
  41407. 8011b98: 40020440 .word 0x40020440
  41408. 8011b9c: 40020458 .word 0x40020458
  41409. 8011ba0: 40020470 .word 0x40020470
  41410. 8011ba4: 40020488 .word 0x40020488
  41411. 8011ba8: 400204a0 .word 0x400204a0
  41412. 8011bac: 400204b8 .word 0x400204b8
  41413. else
  41414. {
  41415. /* DMA mode not enabled */
  41416. /* Check received length : If all expected data are received, do nothing.
  41417. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41418. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  41419. 8011bb0: 687b ldr r3, [r7, #4]
  41420. 8011bb2: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41421. 8011bb6: 687b ldr r3, [r7, #4]
  41422. 8011bb8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41423. 8011bbc: b29b uxth r3, r3
  41424. 8011bbe: 1ad3 subs r3, r2, r3
  41425. 8011bc0: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  41426. if ((huart->RxXferCount > 0U)
  41427. 8011bc4: 687b ldr r3, [r7, #4]
  41428. 8011bc6: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41429. 8011bca: b29b uxth r3, r3
  41430. 8011bcc: 2b00 cmp r3, #0
  41431. 8011bce: f000 80cf beq.w 8011d70 <HAL_UART_IRQHandler+0x764>
  41432. && (nb_rx_data > 0U))
  41433. 8011bd2: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41434. 8011bd6: 2b00 cmp r3, #0
  41435. 8011bd8: f000 80ca beq.w 8011d70 <HAL_UART_IRQHandler+0x764>
  41436. {
  41437. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  41438. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41439. 8011bdc: 687b ldr r3, [r7, #4]
  41440. 8011bde: 681b ldr r3, [r3, #0]
  41441. 8011be0: 63bb str r3, [r7, #56] @ 0x38
  41442. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41443. 8011be2: 6bbb ldr r3, [r7, #56] @ 0x38
  41444. 8011be4: e853 3f00 ldrex r3, [r3]
  41445. 8011be8: 637b str r3, [r7, #52] @ 0x34
  41446. return(result);
  41447. 8011bea: 6b7b ldr r3, [r7, #52] @ 0x34
  41448. 8011bec: f423 7390 bic.w r3, r3, #288 @ 0x120
  41449. 8011bf0: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  41450. 8011bf4: 687b ldr r3, [r7, #4]
  41451. 8011bf6: 681b ldr r3, [r3, #0]
  41452. 8011bf8: 461a mov r2, r3
  41453. 8011bfa: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  41454. 8011bfe: 647b str r3, [r7, #68] @ 0x44
  41455. 8011c00: 643a str r2, [r7, #64] @ 0x40
  41456. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41457. 8011c02: 6c39 ldr r1, [r7, #64] @ 0x40
  41458. 8011c04: 6c7a ldr r2, [r7, #68] @ 0x44
  41459. 8011c06: e841 2300 strex r3, r2, [r1]
  41460. 8011c0a: 63fb str r3, [r7, #60] @ 0x3c
  41461. return(result);
  41462. 8011c0c: 6bfb ldr r3, [r7, #60] @ 0x3c
  41463. 8011c0e: 2b00 cmp r3, #0
  41464. 8011c10: d1e4 bne.n 8011bdc <HAL_UART_IRQHandler+0x5d0>
  41465. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  41466. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  41467. 8011c12: 687b ldr r3, [r7, #4]
  41468. 8011c14: 681b ldr r3, [r3, #0]
  41469. 8011c16: 3308 adds r3, #8
  41470. 8011c18: 627b str r3, [r7, #36] @ 0x24
  41471. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41472. 8011c1a: 6a7b ldr r3, [r7, #36] @ 0x24
  41473. 8011c1c: e853 3f00 ldrex r3, [r3]
  41474. 8011c20: 623b str r3, [r7, #32]
  41475. return(result);
  41476. 8011c22: 6a3a ldr r2, [r7, #32]
  41477. 8011c24: 4b55 ldr r3, [pc, #340] @ (8011d7c <HAL_UART_IRQHandler+0x770>)
  41478. 8011c26: 4013 ands r3, r2
  41479. 8011c28: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  41480. 8011c2c: 687b ldr r3, [r7, #4]
  41481. 8011c2e: 681b ldr r3, [r3, #0]
  41482. 8011c30: 3308 adds r3, #8
  41483. 8011c32: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  41484. 8011c36: 633a str r2, [r7, #48] @ 0x30
  41485. 8011c38: 62fb str r3, [r7, #44] @ 0x2c
  41486. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41487. 8011c3a: 6af9 ldr r1, [r7, #44] @ 0x2c
  41488. 8011c3c: 6b3a ldr r2, [r7, #48] @ 0x30
  41489. 8011c3e: e841 2300 strex r3, r2, [r1]
  41490. 8011c42: 62bb str r3, [r7, #40] @ 0x28
  41491. return(result);
  41492. 8011c44: 6abb ldr r3, [r7, #40] @ 0x28
  41493. 8011c46: 2b00 cmp r3, #0
  41494. 8011c48: d1e3 bne.n 8011c12 <HAL_UART_IRQHandler+0x606>
  41495. /* Rx process is completed, restore huart->RxState to Ready */
  41496. huart->RxState = HAL_UART_STATE_READY;
  41497. 8011c4a: 687b ldr r3, [r7, #4]
  41498. 8011c4c: 2220 movs r2, #32
  41499. 8011c4e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41500. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41501. 8011c52: 687b ldr r3, [r7, #4]
  41502. 8011c54: 2200 movs r2, #0
  41503. 8011c56: 66da str r2, [r3, #108] @ 0x6c
  41504. /* Clear RxISR function pointer */
  41505. huart->RxISR = NULL;
  41506. 8011c58: 687b ldr r3, [r7, #4]
  41507. 8011c5a: 2200 movs r2, #0
  41508. 8011c5c: 675a str r2, [r3, #116] @ 0x74
  41509. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41510. 8011c5e: 687b ldr r3, [r7, #4]
  41511. 8011c60: 681b ldr r3, [r3, #0]
  41512. 8011c62: 613b str r3, [r7, #16]
  41513. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41514. 8011c64: 693b ldr r3, [r7, #16]
  41515. 8011c66: e853 3f00 ldrex r3, [r3]
  41516. 8011c6a: 60fb str r3, [r7, #12]
  41517. return(result);
  41518. 8011c6c: 68fb ldr r3, [r7, #12]
  41519. 8011c6e: f023 0310 bic.w r3, r3, #16
  41520. 8011c72: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  41521. 8011c76: 687b ldr r3, [r7, #4]
  41522. 8011c78: 681b ldr r3, [r3, #0]
  41523. 8011c7a: 461a mov r2, r3
  41524. 8011c7c: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  41525. 8011c80: 61fb str r3, [r7, #28]
  41526. 8011c82: 61ba str r2, [r7, #24]
  41527. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41528. 8011c84: 69b9 ldr r1, [r7, #24]
  41529. 8011c86: 69fa ldr r2, [r7, #28]
  41530. 8011c88: e841 2300 strex r3, r2, [r1]
  41531. 8011c8c: 617b str r3, [r7, #20]
  41532. return(result);
  41533. 8011c8e: 697b ldr r3, [r7, #20]
  41534. 8011c90: 2b00 cmp r3, #0
  41535. 8011c92: d1e4 bne.n 8011c5e <HAL_UART_IRQHandler+0x652>
  41536. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41537. In this case, Rx Event type is Idle Event */
  41538. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41539. 8011c94: 687b ldr r3, [r7, #4]
  41540. 8011c96: 2202 movs r2, #2
  41541. 8011c98: 671a str r2, [r3, #112] @ 0x70
  41542. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41543. /*Call registered Rx complete callback*/
  41544. huart->RxEventCallback(huart, nb_rx_data);
  41545. #else
  41546. /*Call legacy weak Rx Event callback*/
  41547. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  41548. 8011c9a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41549. 8011c9e: 4619 mov r1, r3
  41550. 8011ca0: 6878 ldr r0, [r7, #4]
  41551. 8011ca2: f7f2 ff63 bl 8004b6c <HAL_UARTEx_RxEventCallback>
  41552. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41553. }
  41554. return;
  41555. 8011ca6: e063 b.n 8011d70 <HAL_UART_IRQHandler+0x764>
  41556. }
  41557. }
  41558. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  41559. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  41560. 8011ca8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41561. 8011cac: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  41562. 8011cb0: 2b00 cmp r3, #0
  41563. 8011cb2: d00e beq.n 8011cd2 <HAL_UART_IRQHandler+0x6c6>
  41564. 8011cb4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41565. 8011cb8: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  41566. 8011cbc: 2b00 cmp r3, #0
  41567. 8011cbe: d008 beq.n 8011cd2 <HAL_UART_IRQHandler+0x6c6>
  41568. {
  41569. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  41570. 8011cc0: 687b ldr r3, [r7, #4]
  41571. 8011cc2: 681b ldr r3, [r3, #0]
  41572. 8011cc4: f44f 1280 mov.w r2, #1048576 @ 0x100000
  41573. 8011cc8: 621a str r2, [r3, #32]
  41574. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41575. /* Call registered Wakeup Callback */
  41576. huart->WakeupCallback(huart);
  41577. #else
  41578. /* Call legacy weak Wakeup Callback */
  41579. HAL_UARTEx_WakeupCallback(huart);
  41580. 8011cca: 6878 ldr r0, [r7, #4]
  41581. 8011ccc: f002 f80c bl 8013ce8 <HAL_UARTEx_WakeupCallback>
  41582. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41583. return;
  41584. 8011cd0: e051 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41585. }
  41586. /* UART in mode Transmitter ------------------------------------------------*/
  41587. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  41588. 8011cd2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41589. 8011cd6: f003 0380 and.w r3, r3, #128 @ 0x80
  41590. 8011cda: 2b00 cmp r3, #0
  41591. 8011cdc: d014 beq.n 8011d08 <HAL_UART_IRQHandler+0x6fc>
  41592. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  41593. 8011cde: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41594. 8011ce2: f003 0380 and.w r3, r3, #128 @ 0x80
  41595. 8011ce6: 2b00 cmp r3, #0
  41596. 8011ce8: d105 bne.n 8011cf6 <HAL_UART_IRQHandler+0x6ea>
  41597. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  41598. 8011cea: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41599. 8011cee: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41600. 8011cf2: 2b00 cmp r3, #0
  41601. 8011cf4: d008 beq.n 8011d08 <HAL_UART_IRQHandler+0x6fc>
  41602. {
  41603. if (huart->TxISR != NULL)
  41604. 8011cf6: 687b ldr r3, [r7, #4]
  41605. 8011cf8: 6f9b ldr r3, [r3, #120] @ 0x78
  41606. 8011cfa: 2b00 cmp r3, #0
  41607. 8011cfc: d03a beq.n 8011d74 <HAL_UART_IRQHandler+0x768>
  41608. {
  41609. huart->TxISR(huart);
  41610. 8011cfe: 687b ldr r3, [r7, #4]
  41611. 8011d00: 6f9b ldr r3, [r3, #120] @ 0x78
  41612. 8011d02: 6878 ldr r0, [r7, #4]
  41613. 8011d04: 4798 blx r3
  41614. }
  41615. return;
  41616. 8011d06: e035 b.n 8011d74 <HAL_UART_IRQHandler+0x768>
  41617. }
  41618. /* UART in mode Transmitter (transmission end) -----------------------------*/
  41619. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  41620. 8011d08: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41621. 8011d0c: f003 0340 and.w r3, r3, #64 @ 0x40
  41622. 8011d10: 2b00 cmp r3, #0
  41623. 8011d12: d009 beq.n 8011d28 <HAL_UART_IRQHandler+0x71c>
  41624. 8011d14: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41625. 8011d18: f003 0340 and.w r3, r3, #64 @ 0x40
  41626. 8011d1c: 2b00 cmp r3, #0
  41627. 8011d1e: d003 beq.n 8011d28 <HAL_UART_IRQHandler+0x71c>
  41628. {
  41629. UART_EndTransmit_IT(huart);
  41630. 8011d20: 6878 ldr r0, [r7, #4]
  41631. 8011d22: f001 fa99 bl 8013258 <UART_EndTransmit_IT>
  41632. return;
  41633. 8011d26: e026 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41634. }
  41635. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  41636. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  41637. 8011d28: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41638. 8011d2c: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41639. 8011d30: 2b00 cmp r3, #0
  41640. 8011d32: d009 beq.n 8011d48 <HAL_UART_IRQHandler+0x73c>
  41641. 8011d34: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41642. 8011d38: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  41643. 8011d3c: 2b00 cmp r3, #0
  41644. 8011d3e: d003 beq.n 8011d48 <HAL_UART_IRQHandler+0x73c>
  41645. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41646. /* Call registered Tx Fifo Empty Callback */
  41647. huart->TxFifoEmptyCallback(huart);
  41648. #else
  41649. /* Call legacy weak Tx Fifo Empty Callback */
  41650. HAL_UARTEx_TxFifoEmptyCallback(huart);
  41651. 8011d40: 6878 ldr r0, [r7, #4]
  41652. 8011d42: f001 ffe5 bl 8013d10 <HAL_UARTEx_TxFifoEmptyCallback>
  41653. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41654. return;
  41655. 8011d46: e016 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41656. }
  41657. /* UART RX Fifo Full occurred ----------------------------------------------*/
  41658. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  41659. 8011d48: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41660. 8011d4c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  41661. 8011d50: 2b00 cmp r3, #0
  41662. 8011d52: d010 beq.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41663. 8011d54: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41664. 8011d58: 2b00 cmp r3, #0
  41665. 8011d5a: da0c bge.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41666. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41667. /* Call registered Rx Fifo Full Callback */
  41668. huart->RxFifoFullCallback(huart);
  41669. #else
  41670. /* Call legacy weak Rx Fifo Full Callback */
  41671. HAL_UARTEx_RxFifoFullCallback(huart);
  41672. 8011d5c: 6878 ldr r0, [r7, #4]
  41673. 8011d5e: f001 ffcd bl 8013cfc <HAL_UARTEx_RxFifoFullCallback>
  41674. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41675. return;
  41676. 8011d62: e008 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41677. return;
  41678. 8011d64: bf00 nop
  41679. 8011d66: e006 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41680. return;
  41681. 8011d68: bf00 nop
  41682. 8011d6a: e004 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41683. return;
  41684. 8011d6c: bf00 nop
  41685. 8011d6e: e002 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41686. return;
  41687. 8011d70: bf00 nop
  41688. 8011d72: e000 b.n 8011d76 <HAL_UART_IRQHandler+0x76a>
  41689. return;
  41690. 8011d74: bf00 nop
  41691. }
  41692. }
  41693. 8011d76: 37e8 adds r7, #232 @ 0xe8
  41694. 8011d78: 46bd mov sp, r7
  41695. 8011d7a: bd80 pop {r7, pc}
  41696. 8011d7c: effffffe .word 0xeffffffe
  41697. 08011d80 <HAL_UART_ErrorCallback>:
  41698. * @brief UART error callback.
  41699. * @param huart UART handle.
  41700. * @retval None
  41701. */
  41702. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  41703. {
  41704. 8011d80: b480 push {r7}
  41705. 8011d82: b083 sub sp, #12
  41706. 8011d84: af00 add r7, sp, #0
  41707. 8011d86: 6078 str r0, [r7, #4]
  41708. UNUSED(huart);
  41709. /* NOTE : This function should not be modified, when the callback is needed,
  41710. the HAL_UART_ErrorCallback can be implemented in the user file.
  41711. */
  41712. }
  41713. 8011d88: bf00 nop
  41714. 8011d8a: 370c adds r7, #12
  41715. 8011d8c: 46bd mov sp, r7
  41716. 8011d8e: f85d 7b04 ldr.w r7, [sp], #4
  41717. 8011d92: 4770 bx lr
  41718. 08011d94 <UART_SetConfig>:
  41719. * @brief Configure the UART peripheral.
  41720. * @param huart UART handle.
  41721. * @retval HAL status
  41722. */
  41723. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  41724. {
  41725. 8011d94: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  41726. 8011d98: b092 sub sp, #72 @ 0x48
  41727. 8011d9a: af00 add r7, sp, #0
  41728. 8011d9c: 6178 str r0, [r7, #20]
  41729. uint32_t tmpreg;
  41730. uint16_t brrtemp;
  41731. UART_ClockSourceTypeDef clocksource;
  41732. uint32_t usartdiv;
  41733. HAL_StatusTypeDef ret = HAL_OK;
  41734. 8011d9e: 2300 movs r3, #0
  41735. 8011da0: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41736. * the UART Word Length, Parity, Mode and oversampling:
  41737. * set the M bits according to huart->Init.WordLength value
  41738. * set PCE and PS bits according to huart->Init.Parity value
  41739. * set TE and RE bits according to huart->Init.Mode value
  41740. * set OVER8 bit according to huart->Init.OverSampling value */
  41741. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  41742. 8011da4: 697b ldr r3, [r7, #20]
  41743. 8011da6: 689a ldr r2, [r3, #8]
  41744. 8011da8: 697b ldr r3, [r7, #20]
  41745. 8011daa: 691b ldr r3, [r3, #16]
  41746. 8011dac: 431a orrs r2, r3
  41747. 8011dae: 697b ldr r3, [r7, #20]
  41748. 8011db0: 695b ldr r3, [r3, #20]
  41749. 8011db2: 431a orrs r2, r3
  41750. 8011db4: 697b ldr r3, [r7, #20]
  41751. 8011db6: 69db ldr r3, [r3, #28]
  41752. 8011db8: 4313 orrs r3, r2
  41753. 8011dba: 647b str r3, [r7, #68] @ 0x44
  41754. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  41755. 8011dbc: 697b ldr r3, [r7, #20]
  41756. 8011dbe: 681b ldr r3, [r3, #0]
  41757. 8011dc0: 681a ldr r2, [r3, #0]
  41758. 8011dc2: 4bbe ldr r3, [pc, #760] @ (80120bc <UART_SetConfig+0x328>)
  41759. 8011dc4: 4013 ands r3, r2
  41760. 8011dc6: 697a ldr r2, [r7, #20]
  41761. 8011dc8: 6812 ldr r2, [r2, #0]
  41762. 8011dca: 6c79 ldr r1, [r7, #68] @ 0x44
  41763. 8011dcc: 430b orrs r3, r1
  41764. 8011dce: 6013 str r3, [r2, #0]
  41765. /*-------------------------- USART CR2 Configuration -----------------------*/
  41766. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  41767. * to huart->Init.StopBits value */
  41768. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  41769. 8011dd0: 697b ldr r3, [r7, #20]
  41770. 8011dd2: 681b ldr r3, [r3, #0]
  41771. 8011dd4: 685b ldr r3, [r3, #4]
  41772. 8011dd6: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  41773. 8011dda: 697b ldr r3, [r7, #20]
  41774. 8011ddc: 68da ldr r2, [r3, #12]
  41775. 8011dde: 697b ldr r3, [r7, #20]
  41776. 8011de0: 681b ldr r3, [r3, #0]
  41777. 8011de2: 430a orrs r2, r1
  41778. 8011de4: 605a str r2, [r3, #4]
  41779. /* Configure
  41780. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  41781. * to huart->Init.HwFlowCtl value
  41782. * - one-bit sampling method versus three samples' majority rule according
  41783. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  41784. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  41785. 8011de6: 697b ldr r3, [r7, #20]
  41786. 8011de8: 699b ldr r3, [r3, #24]
  41787. 8011dea: 647b str r3, [r7, #68] @ 0x44
  41788. if (!(UART_INSTANCE_LOWPOWER(huart)))
  41789. 8011dec: 697b ldr r3, [r7, #20]
  41790. 8011dee: 681b ldr r3, [r3, #0]
  41791. 8011df0: 4ab3 ldr r2, [pc, #716] @ (80120c0 <UART_SetConfig+0x32c>)
  41792. 8011df2: 4293 cmp r3, r2
  41793. 8011df4: d004 beq.n 8011e00 <UART_SetConfig+0x6c>
  41794. {
  41795. tmpreg |= huart->Init.OneBitSampling;
  41796. 8011df6: 697b ldr r3, [r7, #20]
  41797. 8011df8: 6a1b ldr r3, [r3, #32]
  41798. 8011dfa: 6c7a ldr r2, [r7, #68] @ 0x44
  41799. 8011dfc: 4313 orrs r3, r2
  41800. 8011dfe: 647b str r3, [r7, #68] @ 0x44
  41801. }
  41802. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  41803. 8011e00: 697b ldr r3, [r7, #20]
  41804. 8011e02: 681b ldr r3, [r3, #0]
  41805. 8011e04: 689a ldr r2, [r3, #8]
  41806. 8011e06: 4baf ldr r3, [pc, #700] @ (80120c4 <UART_SetConfig+0x330>)
  41807. 8011e08: 4013 ands r3, r2
  41808. 8011e0a: 697a ldr r2, [r7, #20]
  41809. 8011e0c: 6812 ldr r2, [r2, #0]
  41810. 8011e0e: 6c79 ldr r1, [r7, #68] @ 0x44
  41811. 8011e10: 430b orrs r3, r1
  41812. 8011e12: 6093 str r3, [r2, #8]
  41813. /*-------------------------- USART PRESC Configuration -----------------------*/
  41814. /* Configure
  41815. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  41816. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  41817. 8011e14: 697b ldr r3, [r7, #20]
  41818. 8011e16: 681b ldr r3, [r3, #0]
  41819. 8011e18: 6adb ldr r3, [r3, #44] @ 0x2c
  41820. 8011e1a: f023 010f bic.w r1, r3, #15
  41821. 8011e1e: 697b ldr r3, [r7, #20]
  41822. 8011e20: 6a5a ldr r2, [r3, #36] @ 0x24
  41823. 8011e22: 697b ldr r3, [r7, #20]
  41824. 8011e24: 681b ldr r3, [r3, #0]
  41825. 8011e26: 430a orrs r2, r1
  41826. 8011e28: 62da str r2, [r3, #44] @ 0x2c
  41827. /*-------------------------- USART BRR Configuration -----------------------*/
  41828. UART_GETCLOCKSOURCE(huart, clocksource);
  41829. 8011e2a: 697b ldr r3, [r7, #20]
  41830. 8011e2c: 681b ldr r3, [r3, #0]
  41831. 8011e2e: 4aa6 ldr r2, [pc, #664] @ (80120c8 <UART_SetConfig+0x334>)
  41832. 8011e30: 4293 cmp r3, r2
  41833. 8011e32: d177 bne.n 8011f24 <UART_SetConfig+0x190>
  41834. 8011e34: 4ba5 ldr r3, [pc, #660] @ (80120cc <UART_SetConfig+0x338>)
  41835. 8011e36: 6d5b ldr r3, [r3, #84] @ 0x54
  41836. 8011e38: f003 0338 and.w r3, r3, #56 @ 0x38
  41837. 8011e3c: 2b28 cmp r3, #40 @ 0x28
  41838. 8011e3e: d86d bhi.n 8011f1c <UART_SetConfig+0x188>
  41839. 8011e40: a201 add r2, pc, #4 @ (adr r2, 8011e48 <UART_SetConfig+0xb4>)
  41840. 8011e42: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41841. 8011e46: bf00 nop
  41842. 8011e48: 08011eed .word 0x08011eed
  41843. 8011e4c: 08011f1d .word 0x08011f1d
  41844. 8011e50: 08011f1d .word 0x08011f1d
  41845. 8011e54: 08011f1d .word 0x08011f1d
  41846. 8011e58: 08011f1d .word 0x08011f1d
  41847. 8011e5c: 08011f1d .word 0x08011f1d
  41848. 8011e60: 08011f1d .word 0x08011f1d
  41849. 8011e64: 08011f1d .word 0x08011f1d
  41850. 8011e68: 08011ef5 .word 0x08011ef5
  41851. 8011e6c: 08011f1d .word 0x08011f1d
  41852. 8011e70: 08011f1d .word 0x08011f1d
  41853. 8011e74: 08011f1d .word 0x08011f1d
  41854. 8011e78: 08011f1d .word 0x08011f1d
  41855. 8011e7c: 08011f1d .word 0x08011f1d
  41856. 8011e80: 08011f1d .word 0x08011f1d
  41857. 8011e84: 08011f1d .word 0x08011f1d
  41858. 8011e88: 08011efd .word 0x08011efd
  41859. 8011e8c: 08011f1d .word 0x08011f1d
  41860. 8011e90: 08011f1d .word 0x08011f1d
  41861. 8011e94: 08011f1d .word 0x08011f1d
  41862. 8011e98: 08011f1d .word 0x08011f1d
  41863. 8011e9c: 08011f1d .word 0x08011f1d
  41864. 8011ea0: 08011f1d .word 0x08011f1d
  41865. 8011ea4: 08011f1d .word 0x08011f1d
  41866. 8011ea8: 08011f05 .word 0x08011f05
  41867. 8011eac: 08011f1d .word 0x08011f1d
  41868. 8011eb0: 08011f1d .word 0x08011f1d
  41869. 8011eb4: 08011f1d .word 0x08011f1d
  41870. 8011eb8: 08011f1d .word 0x08011f1d
  41871. 8011ebc: 08011f1d .word 0x08011f1d
  41872. 8011ec0: 08011f1d .word 0x08011f1d
  41873. 8011ec4: 08011f1d .word 0x08011f1d
  41874. 8011ec8: 08011f0d .word 0x08011f0d
  41875. 8011ecc: 08011f1d .word 0x08011f1d
  41876. 8011ed0: 08011f1d .word 0x08011f1d
  41877. 8011ed4: 08011f1d .word 0x08011f1d
  41878. 8011ed8: 08011f1d .word 0x08011f1d
  41879. 8011edc: 08011f1d .word 0x08011f1d
  41880. 8011ee0: 08011f1d .word 0x08011f1d
  41881. 8011ee4: 08011f1d .word 0x08011f1d
  41882. 8011ee8: 08011f15 .word 0x08011f15
  41883. 8011eec: 2301 movs r3, #1
  41884. 8011eee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41885. 8011ef2: e222 b.n 801233a <UART_SetConfig+0x5a6>
  41886. 8011ef4: 2304 movs r3, #4
  41887. 8011ef6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41888. 8011efa: e21e b.n 801233a <UART_SetConfig+0x5a6>
  41889. 8011efc: 2308 movs r3, #8
  41890. 8011efe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41891. 8011f02: e21a b.n 801233a <UART_SetConfig+0x5a6>
  41892. 8011f04: 2310 movs r3, #16
  41893. 8011f06: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41894. 8011f0a: e216 b.n 801233a <UART_SetConfig+0x5a6>
  41895. 8011f0c: 2320 movs r3, #32
  41896. 8011f0e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41897. 8011f12: e212 b.n 801233a <UART_SetConfig+0x5a6>
  41898. 8011f14: 2340 movs r3, #64 @ 0x40
  41899. 8011f16: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41900. 8011f1a: e20e b.n 801233a <UART_SetConfig+0x5a6>
  41901. 8011f1c: 2380 movs r3, #128 @ 0x80
  41902. 8011f1e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41903. 8011f22: e20a b.n 801233a <UART_SetConfig+0x5a6>
  41904. 8011f24: 697b ldr r3, [r7, #20]
  41905. 8011f26: 681b ldr r3, [r3, #0]
  41906. 8011f28: 4a69 ldr r2, [pc, #420] @ (80120d0 <UART_SetConfig+0x33c>)
  41907. 8011f2a: 4293 cmp r3, r2
  41908. 8011f2c: d130 bne.n 8011f90 <UART_SetConfig+0x1fc>
  41909. 8011f2e: 4b67 ldr r3, [pc, #412] @ (80120cc <UART_SetConfig+0x338>)
  41910. 8011f30: 6d5b ldr r3, [r3, #84] @ 0x54
  41911. 8011f32: f003 0307 and.w r3, r3, #7
  41912. 8011f36: 2b05 cmp r3, #5
  41913. 8011f38: d826 bhi.n 8011f88 <UART_SetConfig+0x1f4>
  41914. 8011f3a: a201 add r2, pc, #4 @ (adr r2, 8011f40 <UART_SetConfig+0x1ac>)
  41915. 8011f3c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41916. 8011f40: 08011f59 .word 0x08011f59
  41917. 8011f44: 08011f61 .word 0x08011f61
  41918. 8011f48: 08011f69 .word 0x08011f69
  41919. 8011f4c: 08011f71 .word 0x08011f71
  41920. 8011f50: 08011f79 .word 0x08011f79
  41921. 8011f54: 08011f81 .word 0x08011f81
  41922. 8011f58: 2300 movs r3, #0
  41923. 8011f5a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41924. 8011f5e: e1ec b.n 801233a <UART_SetConfig+0x5a6>
  41925. 8011f60: 2304 movs r3, #4
  41926. 8011f62: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41927. 8011f66: e1e8 b.n 801233a <UART_SetConfig+0x5a6>
  41928. 8011f68: 2308 movs r3, #8
  41929. 8011f6a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41930. 8011f6e: e1e4 b.n 801233a <UART_SetConfig+0x5a6>
  41931. 8011f70: 2310 movs r3, #16
  41932. 8011f72: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41933. 8011f76: e1e0 b.n 801233a <UART_SetConfig+0x5a6>
  41934. 8011f78: 2320 movs r3, #32
  41935. 8011f7a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41936. 8011f7e: e1dc b.n 801233a <UART_SetConfig+0x5a6>
  41937. 8011f80: 2340 movs r3, #64 @ 0x40
  41938. 8011f82: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41939. 8011f86: e1d8 b.n 801233a <UART_SetConfig+0x5a6>
  41940. 8011f88: 2380 movs r3, #128 @ 0x80
  41941. 8011f8a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41942. 8011f8e: e1d4 b.n 801233a <UART_SetConfig+0x5a6>
  41943. 8011f90: 697b ldr r3, [r7, #20]
  41944. 8011f92: 681b ldr r3, [r3, #0]
  41945. 8011f94: 4a4f ldr r2, [pc, #316] @ (80120d4 <UART_SetConfig+0x340>)
  41946. 8011f96: 4293 cmp r3, r2
  41947. 8011f98: d130 bne.n 8011ffc <UART_SetConfig+0x268>
  41948. 8011f9a: 4b4c ldr r3, [pc, #304] @ (80120cc <UART_SetConfig+0x338>)
  41949. 8011f9c: 6d5b ldr r3, [r3, #84] @ 0x54
  41950. 8011f9e: f003 0307 and.w r3, r3, #7
  41951. 8011fa2: 2b05 cmp r3, #5
  41952. 8011fa4: d826 bhi.n 8011ff4 <UART_SetConfig+0x260>
  41953. 8011fa6: a201 add r2, pc, #4 @ (adr r2, 8011fac <UART_SetConfig+0x218>)
  41954. 8011fa8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41955. 8011fac: 08011fc5 .word 0x08011fc5
  41956. 8011fb0: 08011fcd .word 0x08011fcd
  41957. 8011fb4: 08011fd5 .word 0x08011fd5
  41958. 8011fb8: 08011fdd .word 0x08011fdd
  41959. 8011fbc: 08011fe5 .word 0x08011fe5
  41960. 8011fc0: 08011fed .word 0x08011fed
  41961. 8011fc4: 2300 movs r3, #0
  41962. 8011fc6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41963. 8011fca: e1b6 b.n 801233a <UART_SetConfig+0x5a6>
  41964. 8011fcc: 2304 movs r3, #4
  41965. 8011fce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41966. 8011fd2: e1b2 b.n 801233a <UART_SetConfig+0x5a6>
  41967. 8011fd4: 2308 movs r3, #8
  41968. 8011fd6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41969. 8011fda: e1ae b.n 801233a <UART_SetConfig+0x5a6>
  41970. 8011fdc: 2310 movs r3, #16
  41971. 8011fde: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41972. 8011fe2: e1aa b.n 801233a <UART_SetConfig+0x5a6>
  41973. 8011fe4: 2320 movs r3, #32
  41974. 8011fe6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41975. 8011fea: e1a6 b.n 801233a <UART_SetConfig+0x5a6>
  41976. 8011fec: 2340 movs r3, #64 @ 0x40
  41977. 8011fee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41978. 8011ff2: e1a2 b.n 801233a <UART_SetConfig+0x5a6>
  41979. 8011ff4: 2380 movs r3, #128 @ 0x80
  41980. 8011ff6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41981. 8011ffa: e19e b.n 801233a <UART_SetConfig+0x5a6>
  41982. 8011ffc: 697b ldr r3, [r7, #20]
  41983. 8011ffe: 681b ldr r3, [r3, #0]
  41984. 8012000: 4a35 ldr r2, [pc, #212] @ (80120d8 <UART_SetConfig+0x344>)
  41985. 8012002: 4293 cmp r3, r2
  41986. 8012004: d130 bne.n 8012068 <UART_SetConfig+0x2d4>
  41987. 8012006: 4b31 ldr r3, [pc, #196] @ (80120cc <UART_SetConfig+0x338>)
  41988. 8012008: 6d5b ldr r3, [r3, #84] @ 0x54
  41989. 801200a: f003 0307 and.w r3, r3, #7
  41990. 801200e: 2b05 cmp r3, #5
  41991. 8012010: d826 bhi.n 8012060 <UART_SetConfig+0x2cc>
  41992. 8012012: a201 add r2, pc, #4 @ (adr r2, 8012018 <UART_SetConfig+0x284>)
  41993. 8012014: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41994. 8012018: 08012031 .word 0x08012031
  41995. 801201c: 08012039 .word 0x08012039
  41996. 8012020: 08012041 .word 0x08012041
  41997. 8012024: 08012049 .word 0x08012049
  41998. 8012028: 08012051 .word 0x08012051
  41999. 801202c: 08012059 .word 0x08012059
  42000. 8012030: 2300 movs r3, #0
  42001. 8012032: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42002. 8012036: e180 b.n 801233a <UART_SetConfig+0x5a6>
  42003. 8012038: 2304 movs r3, #4
  42004. 801203a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42005. 801203e: e17c b.n 801233a <UART_SetConfig+0x5a6>
  42006. 8012040: 2308 movs r3, #8
  42007. 8012042: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42008. 8012046: e178 b.n 801233a <UART_SetConfig+0x5a6>
  42009. 8012048: 2310 movs r3, #16
  42010. 801204a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42011. 801204e: e174 b.n 801233a <UART_SetConfig+0x5a6>
  42012. 8012050: 2320 movs r3, #32
  42013. 8012052: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42014. 8012056: e170 b.n 801233a <UART_SetConfig+0x5a6>
  42015. 8012058: 2340 movs r3, #64 @ 0x40
  42016. 801205a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42017. 801205e: e16c b.n 801233a <UART_SetConfig+0x5a6>
  42018. 8012060: 2380 movs r3, #128 @ 0x80
  42019. 8012062: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42020. 8012066: e168 b.n 801233a <UART_SetConfig+0x5a6>
  42021. 8012068: 697b ldr r3, [r7, #20]
  42022. 801206a: 681b ldr r3, [r3, #0]
  42023. 801206c: 4a1b ldr r2, [pc, #108] @ (80120dc <UART_SetConfig+0x348>)
  42024. 801206e: 4293 cmp r3, r2
  42025. 8012070: d142 bne.n 80120f8 <UART_SetConfig+0x364>
  42026. 8012072: 4b16 ldr r3, [pc, #88] @ (80120cc <UART_SetConfig+0x338>)
  42027. 8012074: 6d5b ldr r3, [r3, #84] @ 0x54
  42028. 8012076: f003 0307 and.w r3, r3, #7
  42029. 801207a: 2b05 cmp r3, #5
  42030. 801207c: d838 bhi.n 80120f0 <UART_SetConfig+0x35c>
  42031. 801207e: a201 add r2, pc, #4 @ (adr r2, 8012084 <UART_SetConfig+0x2f0>)
  42032. 8012080: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42033. 8012084: 0801209d .word 0x0801209d
  42034. 8012088: 080120a5 .word 0x080120a5
  42035. 801208c: 080120ad .word 0x080120ad
  42036. 8012090: 080120b5 .word 0x080120b5
  42037. 8012094: 080120e1 .word 0x080120e1
  42038. 8012098: 080120e9 .word 0x080120e9
  42039. 801209c: 2300 movs r3, #0
  42040. 801209e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42041. 80120a2: e14a b.n 801233a <UART_SetConfig+0x5a6>
  42042. 80120a4: 2304 movs r3, #4
  42043. 80120a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42044. 80120aa: e146 b.n 801233a <UART_SetConfig+0x5a6>
  42045. 80120ac: 2308 movs r3, #8
  42046. 80120ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42047. 80120b2: e142 b.n 801233a <UART_SetConfig+0x5a6>
  42048. 80120b4: 2310 movs r3, #16
  42049. 80120b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42050. 80120ba: e13e b.n 801233a <UART_SetConfig+0x5a6>
  42051. 80120bc: cfff69f3 .word 0xcfff69f3
  42052. 80120c0: 58000c00 .word 0x58000c00
  42053. 80120c4: 11fff4ff .word 0x11fff4ff
  42054. 80120c8: 40011000 .word 0x40011000
  42055. 80120cc: 58024400 .word 0x58024400
  42056. 80120d0: 40004400 .word 0x40004400
  42057. 80120d4: 40004800 .word 0x40004800
  42058. 80120d8: 40004c00 .word 0x40004c00
  42059. 80120dc: 40005000 .word 0x40005000
  42060. 80120e0: 2320 movs r3, #32
  42061. 80120e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42062. 80120e6: e128 b.n 801233a <UART_SetConfig+0x5a6>
  42063. 80120e8: 2340 movs r3, #64 @ 0x40
  42064. 80120ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42065. 80120ee: e124 b.n 801233a <UART_SetConfig+0x5a6>
  42066. 80120f0: 2380 movs r3, #128 @ 0x80
  42067. 80120f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42068. 80120f6: e120 b.n 801233a <UART_SetConfig+0x5a6>
  42069. 80120f8: 697b ldr r3, [r7, #20]
  42070. 80120fa: 681b ldr r3, [r3, #0]
  42071. 80120fc: 4acb ldr r2, [pc, #812] @ (801242c <UART_SetConfig+0x698>)
  42072. 80120fe: 4293 cmp r3, r2
  42073. 8012100: d176 bne.n 80121f0 <UART_SetConfig+0x45c>
  42074. 8012102: 4bcb ldr r3, [pc, #812] @ (8012430 <UART_SetConfig+0x69c>)
  42075. 8012104: 6d5b ldr r3, [r3, #84] @ 0x54
  42076. 8012106: f003 0338 and.w r3, r3, #56 @ 0x38
  42077. 801210a: 2b28 cmp r3, #40 @ 0x28
  42078. 801210c: d86c bhi.n 80121e8 <UART_SetConfig+0x454>
  42079. 801210e: a201 add r2, pc, #4 @ (adr r2, 8012114 <UART_SetConfig+0x380>)
  42080. 8012110: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42081. 8012114: 080121b9 .word 0x080121b9
  42082. 8012118: 080121e9 .word 0x080121e9
  42083. 801211c: 080121e9 .word 0x080121e9
  42084. 8012120: 080121e9 .word 0x080121e9
  42085. 8012124: 080121e9 .word 0x080121e9
  42086. 8012128: 080121e9 .word 0x080121e9
  42087. 801212c: 080121e9 .word 0x080121e9
  42088. 8012130: 080121e9 .word 0x080121e9
  42089. 8012134: 080121c1 .word 0x080121c1
  42090. 8012138: 080121e9 .word 0x080121e9
  42091. 801213c: 080121e9 .word 0x080121e9
  42092. 8012140: 080121e9 .word 0x080121e9
  42093. 8012144: 080121e9 .word 0x080121e9
  42094. 8012148: 080121e9 .word 0x080121e9
  42095. 801214c: 080121e9 .word 0x080121e9
  42096. 8012150: 080121e9 .word 0x080121e9
  42097. 8012154: 080121c9 .word 0x080121c9
  42098. 8012158: 080121e9 .word 0x080121e9
  42099. 801215c: 080121e9 .word 0x080121e9
  42100. 8012160: 080121e9 .word 0x080121e9
  42101. 8012164: 080121e9 .word 0x080121e9
  42102. 8012168: 080121e9 .word 0x080121e9
  42103. 801216c: 080121e9 .word 0x080121e9
  42104. 8012170: 080121e9 .word 0x080121e9
  42105. 8012174: 080121d1 .word 0x080121d1
  42106. 8012178: 080121e9 .word 0x080121e9
  42107. 801217c: 080121e9 .word 0x080121e9
  42108. 8012180: 080121e9 .word 0x080121e9
  42109. 8012184: 080121e9 .word 0x080121e9
  42110. 8012188: 080121e9 .word 0x080121e9
  42111. 801218c: 080121e9 .word 0x080121e9
  42112. 8012190: 080121e9 .word 0x080121e9
  42113. 8012194: 080121d9 .word 0x080121d9
  42114. 8012198: 080121e9 .word 0x080121e9
  42115. 801219c: 080121e9 .word 0x080121e9
  42116. 80121a0: 080121e9 .word 0x080121e9
  42117. 80121a4: 080121e9 .word 0x080121e9
  42118. 80121a8: 080121e9 .word 0x080121e9
  42119. 80121ac: 080121e9 .word 0x080121e9
  42120. 80121b0: 080121e9 .word 0x080121e9
  42121. 80121b4: 080121e1 .word 0x080121e1
  42122. 80121b8: 2301 movs r3, #1
  42123. 80121ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42124. 80121be: e0bc b.n 801233a <UART_SetConfig+0x5a6>
  42125. 80121c0: 2304 movs r3, #4
  42126. 80121c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42127. 80121c6: e0b8 b.n 801233a <UART_SetConfig+0x5a6>
  42128. 80121c8: 2308 movs r3, #8
  42129. 80121ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42130. 80121ce: e0b4 b.n 801233a <UART_SetConfig+0x5a6>
  42131. 80121d0: 2310 movs r3, #16
  42132. 80121d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42133. 80121d6: e0b0 b.n 801233a <UART_SetConfig+0x5a6>
  42134. 80121d8: 2320 movs r3, #32
  42135. 80121da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42136. 80121de: e0ac b.n 801233a <UART_SetConfig+0x5a6>
  42137. 80121e0: 2340 movs r3, #64 @ 0x40
  42138. 80121e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42139. 80121e6: e0a8 b.n 801233a <UART_SetConfig+0x5a6>
  42140. 80121e8: 2380 movs r3, #128 @ 0x80
  42141. 80121ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42142. 80121ee: e0a4 b.n 801233a <UART_SetConfig+0x5a6>
  42143. 80121f0: 697b ldr r3, [r7, #20]
  42144. 80121f2: 681b ldr r3, [r3, #0]
  42145. 80121f4: 4a8f ldr r2, [pc, #572] @ (8012434 <UART_SetConfig+0x6a0>)
  42146. 80121f6: 4293 cmp r3, r2
  42147. 80121f8: d130 bne.n 801225c <UART_SetConfig+0x4c8>
  42148. 80121fa: 4b8d ldr r3, [pc, #564] @ (8012430 <UART_SetConfig+0x69c>)
  42149. 80121fc: 6d5b ldr r3, [r3, #84] @ 0x54
  42150. 80121fe: f003 0307 and.w r3, r3, #7
  42151. 8012202: 2b05 cmp r3, #5
  42152. 8012204: d826 bhi.n 8012254 <UART_SetConfig+0x4c0>
  42153. 8012206: a201 add r2, pc, #4 @ (adr r2, 801220c <UART_SetConfig+0x478>)
  42154. 8012208: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42155. 801220c: 08012225 .word 0x08012225
  42156. 8012210: 0801222d .word 0x0801222d
  42157. 8012214: 08012235 .word 0x08012235
  42158. 8012218: 0801223d .word 0x0801223d
  42159. 801221c: 08012245 .word 0x08012245
  42160. 8012220: 0801224d .word 0x0801224d
  42161. 8012224: 2300 movs r3, #0
  42162. 8012226: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42163. 801222a: e086 b.n 801233a <UART_SetConfig+0x5a6>
  42164. 801222c: 2304 movs r3, #4
  42165. 801222e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42166. 8012232: e082 b.n 801233a <UART_SetConfig+0x5a6>
  42167. 8012234: 2308 movs r3, #8
  42168. 8012236: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42169. 801223a: e07e b.n 801233a <UART_SetConfig+0x5a6>
  42170. 801223c: 2310 movs r3, #16
  42171. 801223e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42172. 8012242: e07a b.n 801233a <UART_SetConfig+0x5a6>
  42173. 8012244: 2320 movs r3, #32
  42174. 8012246: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42175. 801224a: e076 b.n 801233a <UART_SetConfig+0x5a6>
  42176. 801224c: 2340 movs r3, #64 @ 0x40
  42177. 801224e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42178. 8012252: e072 b.n 801233a <UART_SetConfig+0x5a6>
  42179. 8012254: 2380 movs r3, #128 @ 0x80
  42180. 8012256: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42181. 801225a: e06e b.n 801233a <UART_SetConfig+0x5a6>
  42182. 801225c: 697b ldr r3, [r7, #20]
  42183. 801225e: 681b ldr r3, [r3, #0]
  42184. 8012260: 4a75 ldr r2, [pc, #468] @ (8012438 <UART_SetConfig+0x6a4>)
  42185. 8012262: 4293 cmp r3, r2
  42186. 8012264: d130 bne.n 80122c8 <UART_SetConfig+0x534>
  42187. 8012266: 4b72 ldr r3, [pc, #456] @ (8012430 <UART_SetConfig+0x69c>)
  42188. 8012268: 6d5b ldr r3, [r3, #84] @ 0x54
  42189. 801226a: f003 0307 and.w r3, r3, #7
  42190. 801226e: 2b05 cmp r3, #5
  42191. 8012270: d826 bhi.n 80122c0 <UART_SetConfig+0x52c>
  42192. 8012272: a201 add r2, pc, #4 @ (adr r2, 8012278 <UART_SetConfig+0x4e4>)
  42193. 8012274: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42194. 8012278: 08012291 .word 0x08012291
  42195. 801227c: 08012299 .word 0x08012299
  42196. 8012280: 080122a1 .word 0x080122a1
  42197. 8012284: 080122a9 .word 0x080122a9
  42198. 8012288: 080122b1 .word 0x080122b1
  42199. 801228c: 080122b9 .word 0x080122b9
  42200. 8012290: 2300 movs r3, #0
  42201. 8012292: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42202. 8012296: e050 b.n 801233a <UART_SetConfig+0x5a6>
  42203. 8012298: 2304 movs r3, #4
  42204. 801229a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42205. 801229e: e04c b.n 801233a <UART_SetConfig+0x5a6>
  42206. 80122a0: 2308 movs r3, #8
  42207. 80122a2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42208. 80122a6: e048 b.n 801233a <UART_SetConfig+0x5a6>
  42209. 80122a8: 2310 movs r3, #16
  42210. 80122aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42211. 80122ae: e044 b.n 801233a <UART_SetConfig+0x5a6>
  42212. 80122b0: 2320 movs r3, #32
  42213. 80122b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42214. 80122b6: e040 b.n 801233a <UART_SetConfig+0x5a6>
  42215. 80122b8: 2340 movs r3, #64 @ 0x40
  42216. 80122ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42217. 80122be: e03c b.n 801233a <UART_SetConfig+0x5a6>
  42218. 80122c0: 2380 movs r3, #128 @ 0x80
  42219. 80122c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42220. 80122c6: e038 b.n 801233a <UART_SetConfig+0x5a6>
  42221. 80122c8: 697b ldr r3, [r7, #20]
  42222. 80122ca: 681b ldr r3, [r3, #0]
  42223. 80122cc: 4a5b ldr r2, [pc, #364] @ (801243c <UART_SetConfig+0x6a8>)
  42224. 80122ce: 4293 cmp r3, r2
  42225. 80122d0: d130 bne.n 8012334 <UART_SetConfig+0x5a0>
  42226. 80122d2: 4b57 ldr r3, [pc, #348] @ (8012430 <UART_SetConfig+0x69c>)
  42227. 80122d4: 6d9b ldr r3, [r3, #88] @ 0x58
  42228. 80122d6: f003 0307 and.w r3, r3, #7
  42229. 80122da: 2b05 cmp r3, #5
  42230. 80122dc: d826 bhi.n 801232c <UART_SetConfig+0x598>
  42231. 80122de: a201 add r2, pc, #4 @ (adr r2, 80122e4 <UART_SetConfig+0x550>)
  42232. 80122e0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42233. 80122e4: 080122fd .word 0x080122fd
  42234. 80122e8: 08012305 .word 0x08012305
  42235. 80122ec: 0801230d .word 0x0801230d
  42236. 80122f0: 08012315 .word 0x08012315
  42237. 80122f4: 0801231d .word 0x0801231d
  42238. 80122f8: 08012325 .word 0x08012325
  42239. 80122fc: 2302 movs r3, #2
  42240. 80122fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42241. 8012302: e01a b.n 801233a <UART_SetConfig+0x5a6>
  42242. 8012304: 2304 movs r3, #4
  42243. 8012306: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42244. 801230a: e016 b.n 801233a <UART_SetConfig+0x5a6>
  42245. 801230c: 2308 movs r3, #8
  42246. 801230e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42247. 8012312: e012 b.n 801233a <UART_SetConfig+0x5a6>
  42248. 8012314: 2310 movs r3, #16
  42249. 8012316: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42250. 801231a: e00e b.n 801233a <UART_SetConfig+0x5a6>
  42251. 801231c: 2320 movs r3, #32
  42252. 801231e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42253. 8012322: e00a b.n 801233a <UART_SetConfig+0x5a6>
  42254. 8012324: 2340 movs r3, #64 @ 0x40
  42255. 8012326: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42256. 801232a: e006 b.n 801233a <UART_SetConfig+0x5a6>
  42257. 801232c: 2380 movs r3, #128 @ 0x80
  42258. 801232e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42259. 8012332: e002 b.n 801233a <UART_SetConfig+0x5a6>
  42260. 8012334: 2380 movs r3, #128 @ 0x80
  42261. 8012336: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42262. /* Check LPUART instance */
  42263. if (UART_INSTANCE_LOWPOWER(huart))
  42264. 801233a: 697b ldr r3, [r7, #20]
  42265. 801233c: 681b ldr r3, [r3, #0]
  42266. 801233e: 4a3f ldr r2, [pc, #252] @ (801243c <UART_SetConfig+0x6a8>)
  42267. 8012340: 4293 cmp r3, r2
  42268. 8012342: f040 80f8 bne.w 8012536 <UART_SetConfig+0x7a2>
  42269. {
  42270. /* Retrieve frequency clock */
  42271. switch (clocksource)
  42272. 8012346: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42273. 801234a: 2b20 cmp r3, #32
  42274. 801234c: dc46 bgt.n 80123dc <UART_SetConfig+0x648>
  42275. 801234e: 2b02 cmp r3, #2
  42276. 8012350: f2c0 8082 blt.w 8012458 <UART_SetConfig+0x6c4>
  42277. 8012354: 3b02 subs r3, #2
  42278. 8012356: 2b1e cmp r3, #30
  42279. 8012358: d87e bhi.n 8012458 <UART_SetConfig+0x6c4>
  42280. 801235a: a201 add r2, pc, #4 @ (adr r2, 8012360 <UART_SetConfig+0x5cc>)
  42281. 801235c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42282. 8012360: 080123e3 .word 0x080123e3
  42283. 8012364: 08012459 .word 0x08012459
  42284. 8012368: 080123eb .word 0x080123eb
  42285. 801236c: 08012459 .word 0x08012459
  42286. 8012370: 08012459 .word 0x08012459
  42287. 8012374: 08012459 .word 0x08012459
  42288. 8012378: 080123fb .word 0x080123fb
  42289. 801237c: 08012459 .word 0x08012459
  42290. 8012380: 08012459 .word 0x08012459
  42291. 8012384: 08012459 .word 0x08012459
  42292. 8012388: 08012459 .word 0x08012459
  42293. 801238c: 08012459 .word 0x08012459
  42294. 8012390: 08012459 .word 0x08012459
  42295. 8012394: 08012459 .word 0x08012459
  42296. 8012398: 0801240b .word 0x0801240b
  42297. 801239c: 08012459 .word 0x08012459
  42298. 80123a0: 08012459 .word 0x08012459
  42299. 80123a4: 08012459 .word 0x08012459
  42300. 80123a8: 08012459 .word 0x08012459
  42301. 80123ac: 08012459 .word 0x08012459
  42302. 80123b0: 08012459 .word 0x08012459
  42303. 80123b4: 08012459 .word 0x08012459
  42304. 80123b8: 08012459 .word 0x08012459
  42305. 80123bc: 08012459 .word 0x08012459
  42306. 80123c0: 08012459 .word 0x08012459
  42307. 80123c4: 08012459 .word 0x08012459
  42308. 80123c8: 08012459 .word 0x08012459
  42309. 80123cc: 08012459 .word 0x08012459
  42310. 80123d0: 08012459 .word 0x08012459
  42311. 80123d4: 08012459 .word 0x08012459
  42312. 80123d8: 0801244b .word 0x0801244b
  42313. 80123dc: 2b40 cmp r3, #64 @ 0x40
  42314. 80123de: d037 beq.n 8012450 <UART_SetConfig+0x6bc>
  42315. 80123e0: e03a b.n 8012458 <UART_SetConfig+0x6c4>
  42316. {
  42317. case UART_CLOCKSOURCE_D3PCLK1:
  42318. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  42319. 80123e2: f7fc fa8b bl 800e8fc <HAL_RCCEx_GetD3PCLK1Freq>
  42320. 80123e6: 63f8 str r0, [r7, #60] @ 0x3c
  42321. break;
  42322. 80123e8: e03c b.n 8012464 <UART_SetConfig+0x6d0>
  42323. case UART_CLOCKSOURCE_PLL2:
  42324. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42325. 80123ea: f107 0324 add.w r3, r7, #36 @ 0x24
  42326. 80123ee: 4618 mov r0, r3
  42327. 80123f0: f7fc fa9a bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  42328. pclk = pll2_clocks.PLL2_Q_Frequency;
  42329. 80123f4: 6abb ldr r3, [r7, #40] @ 0x28
  42330. 80123f6: 63fb str r3, [r7, #60] @ 0x3c
  42331. break;
  42332. 80123f8: e034 b.n 8012464 <UART_SetConfig+0x6d0>
  42333. case UART_CLOCKSOURCE_PLL3:
  42334. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42335. 80123fa: f107 0318 add.w r3, r7, #24
  42336. 80123fe: 4618 mov r0, r3
  42337. 8012400: f7fc fbe6 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  42338. pclk = pll3_clocks.PLL3_Q_Frequency;
  42339. 8012404: 69fb ldr r3, [r7, #28]
  42340. 8012406: 63fb str r3, [r7, #60] @ 0x3c
  42341. break;
  42342. 8012408: e02c b.n 8012464 <UART_SetConfig+0x6d0>
  42343. case UART_CLOCKSOURCE_HSI:
  42344. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42345. 801240a: 4b09 ldr r3, [pc, #36] @ (8012430 <UART_SetConfig+0x69c>)
  42346. 801240c: 681b ldr r3, [r3, #0]
  42347. 801240e: f003 0320 and.w r3, r3, #32
  42348. 8012412: 2b00 cmp r3, #0
  42349. 8012414: d016 beq.n 8012444 <UART_SetConfig+0x6b0>
  42350. {
  42351. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42352. 8012416: 4b06 ldr r3, [pc, #24] @ (8012430 <UART_SetConfig+0x69c>)
  42353. 8012418: 681b ldr r3, [r3, #0]
  42354. 801241a: 08db lsrs r3, r3, #3
  42355. 801241c: f003 0303 and.w r3, r3, #3
  42356. 8012420: 4a07 ldr r2, [pc, #28] @ (8012440 <UART_SetConfig+0x6ac>)
  42357. 8012422: fa22 f303 lsr.w r3, r2, r3
  42358. 8012426: 63fb str r3, [r7, #60] @ 0x3c
  42359. }
  42360. else
  42361. {
  42362. pclk = (uint32_t) HSI_VALUE;
  42363. }
  42364. break;
  42365. 8012428: e01c b.n 8012464 <UART_SetConfig+0x6d0>
  42366. 801242a: bf00 nop
  42367. 801242c: 40011400 .word 0x40011400
  42368. 8012430: 58024400 .word 0x58024400
  42369. 8012434: 40007800 .word 0x40007800
  42370. 8012438: 40007c00 .word 0x40007c00
  42371. 801243c: 58000c00 .word 0x58000c00
  42372. 8012440: 03d09000 .word 0x03d09000
  42373. pclk = (uint32_t) HSI_VALUE;
  42374. 8012444: 4b9d ldr r3, [pc, #628] @ (80126bc <UART_SetConfig+0x928>)
  42375. 8012446: 63fb str r3, [r7, #60] @ 0x3c
  42376. break;
  42377. 8012448: e00c b.n 8012464 <UART_SetConfig+0x6d0>
  42378. case UART_CLOCKSOURCE_CSI:
  42379. pclk = (uint32_t) CSI_VALUE;
  42380. 801244a: 4b9d ldr r3, [pc, #628] @ (80126c0 <UART_SetConfig+0x92c>)
  42381. 801244c: 63fb str r3, [r7, #60] @ 0x3c
  42382. break;
  42383. 801244e: e009 b.n 8012464 <UART_SetConfig+0x6d0>
  42384. case UART_CLOCKSOURCE_LSE:
  42385. pclk = (uint32_t) LSE_VALUE;
  42386. 8012450: f44f 4300 mov.w r3, #32768 @ 0x8000
  42387. 8012454: 63fb str r3, [r7, #60] @ 0x3c
  42388. break;
  42389. 8012456: e005 b.n 8012464 <UART_SetConfig+0x6d0>
  42390. default:
  42391. pclk = 0U;
  42392. 8012458: 2300 movs r3, #0
  42393. 801245a: 63fb str r3, [r7, #60] @ 0x3c
  42394. ret = HAL_ERROR;
  42395. 801245c: 2301 movs r3, #1
  42396. 801245e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42397. break;
  42398. 8012462: bf00 nop
  42399. }
  42400. /* If proper clock source reported */
  42401. if (pclk != 0U)
  42402. 8012464: 6bfb ldr r3, [r7, #60] @ 0x3c
  42403. 8012466: 2b00 cmp r3, #0
  42404. 8012468: f000 81de beq.w 8012828 <UART_SetConfig+0xa94>
  42405. {
  42406. /* Compute clock after Prescaler */
  42407. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  42408. 801246c: 697b ldr r3, [r7, #20]
  42409. 801246e: 6a5b ldr r3, [r3, #36] @ 0x24
  42410. 8012470: 4a94 ldr r2, [pc, #592] @ (80126c4 <UART_SetConfig+0x930>)
  42411. 8012472: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42412. 8012476: 461a mov r2, r3
  42413. 8012478: 6bfb ldr r3, [r7, #60] @ 0x3c
  42414. 801247a: fbb3 f3f2 udiv r3, r3, r2
  42415. 801247e: 633b str r3, [r7, #48] @ 0x30
  42416. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  42417. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42418. 8012480: 697b ldr r3, [r7, #20]
  42419. 8012482: 685a ldr r2, [r3, #4]
  42420. 8012484: 4613 mov r3, r2
  42421. 8012486: 005b lsls r3, r3, #1
  42422. 8012488: 4413 add r3, r2
  42423. 801248a: 6b3a ldr r2, [r7, #48] @ 0x30
  42424. 801248c: 429a cmp r2, r3
  42425. 801248e: d305 bcc.n 801249c <UART_SetConfig+0x708>
  42426. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  42427. 8012490: 697b ldr r3, [r7, #20]
  42428. 8012492: 685b ldr r3, [r3, #4]
  42429. 8012494: 031b lsls r3, r3, #12
  42430. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42431. 8012496: 6b3a ldr r2, [r7, #48] @ 0x30
  42432. 8012498: 429a cmp r2, r3
  42433. 801249a: d903 bls.n 80124a4 <UART_SetConfig+0x710>
  42434. {
  42435. ret = HAL_ERROR;
  42436. 801249c: 2301 movs r3, #1
  42437. 801249e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42438. 80124a2: e1c1 b.n 8012828 <UART_SetConfig+0xa94>
  42439. }
  42440. else
  42441. {
  42442. /* Check computed UsartDiv value is in allocated range
  42443. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  42444. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42445. 80124a4: 6bfb ldr r3, [r7, #60] @ 0x3c
  42446. 80124a6: 2200 movs r2, #0
  42447. 80124a8: 60bb str r3, [r7, #8]
  42448. 80124aa: 60fa str r2, [r7, #12]
  42449. 80124ac: 697b ldr r3, [r7, #20]
  42450. 80124ae: 6a5b ldr r3, [r3, #36] @ 0x24
  42451. 80124b0: 4a84 ldr r2, [pc, #528] @ (80126c4 <UART_SetConfig+0x930>)
  42452. 80124b2: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42453. 80124b6: b29b uxth r3, r3
  42454. 80124b8: 2200 movs r2, #0
  42455. 80124ba: 603b str r3, [r7, #0]
  42456. 80124bc: 607a str r2, [r7, #4]
  42457. 80124be: e9d7 2300 ldrd r2, r3, [r7]
  42458. 80124c2: e9d7 0102 ldrd r0, r1, [r7, #8]
  42459. 80124c6: f7ed ff0b bl 80002e0 <__aeabi_uldivmod>
  42460. 80124ca: 4602 mov r2, r0
  42461. 80124cc: 460b mov r3, r1
  42462. 80124ce: 4610 mov r0, r2
  42463. 80124d0: 4619 mov r1, r3
  42464. 80124d2: f04f 0200 mov.w r2, #0
  42465. 80124d6: f04f 0300 mov.w r3, #0
  42466. 80124da: 020b lsls r3, r1, #8
  42467. 80124dc: ea43 6310 orr.w r3, r3, r0, lsr #24
  42468. 80124e0: 0202 lsls r2, r0, #8
  42469. 80124e2: 6979 ldr r1, [r7, #20]
  42470. 80124e4: 6849 ldr r1, [r1, #4]
  42471. 80124e6: 0849 lsrs r1, r1, #1
  42472. 80124e8: 2000 movs r0, #0
  42473. 80124ea: 460c mov r4, r1
  42474. 80124ec: 4605 mov r5, r0
  42475. 80124ee: eb12 0804 adds.w r8, r2, r4
  42476. 80124f2: eb43 0905 adc.w r9, r3, r5
  42477. 80124f6: 697b ldr r3, [r7, #20]
  42478. 80124f8: 685b ldr r3, [r3, #4]
  42479. 80124fa: 2200 movs r2, #0
  42480. 80124fc: 469a mov sl, r3
  42481. 80124fe: 4693 mov fp, r2
  42482. 8012500: 4652 mov r2, sl
  42483. 8012502: 465b mov r3, fp
  42484. 8012504: 4640 mov r0, r8
  42485. 8012506: 4649 mov r1, r9
  42486. 8012508: f7ed feea bl 80002e0 <__aeabi_uldivmod>
  42487. 801250c: 4602 mov r2, r0
  42488. 801250e: 460b mov r3, r1
  42489. 8012510: 4613 mov r3, r2
  42490. 8012512: 63bb str r3, [r7, #56] @ 0x38
  42491. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  42492. 8012514: 6bbb ldr r3, [r7, #56] @ 0x38
  42493. 8012516: f5b3 7f40 cmp.w r3, #768 @ 0x300
  42494. 801251a: d308 bcc.n 801252e <UART_SetConfig+0x79a>
  42495. 801251c: 6bbb ldr r3, [r7, #56] @ 0x38
  42496. 801251e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42497. 8012522: d204 bcs.n 801252e <UART_SetConfig+0x79a>
  42498. {
  42499. huart->Instance->BRR = usartdiv;
  42500. 8012524: 697b ldr r3, [r7, #20]
  42501. 8012526: 681b ldr r3, [r3, #0]
  42502. 8012528: 6bba ldr r2, [r7, #56] @ 0x38
  42503. 801252a: 60da str r2, [r3, #12]
  42504. 801252c: e17c b.n 8012828 <UART_SetConfig+0xa94>
  42505. }
  42506. else
  42507. {
  42508. ret = HAL_ERROR;
  42509. 801252e: 2301 movs r3, #1
  42510. 8012530: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42511. 8012534: e178 b.n 8012828 <UART_SetConfig+0xa94>
  42512. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  42513. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  42514. } /* if (pclk != 0) */
  42515. }
  42516. /* Check UART Over Sampling to set Baud Rate Register */
  42517. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  42518. 8012536: 697b ldr r3, [r7, #20]
  42519. 8012538: 69db ldr r3, [r3, #28]
  42520. 801253a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  42521. 801253e: f040 80c5 bne.w 80126cc <UART_SetConfig+0x938>
  42522. {
  42523. switch (clocksource)
  42524. 8012542: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42525. 8012546: 2b20 cmp r3, #32
  42526. 8012548: dc48 bgt.n 80125dc <UART_SetConfig+0x848>
  42527. 801254a: 2b00 cmp r3, #0
  42528. 801254c: db7b blt.n 8012646 <UART_SetConfig+0x8b2>
  42529. 801254e: 2b20 cmp r3, #32
  42530. 8012550: d879 bhi.n 8012646 <UART_SetConfig+0x8b2>
  42531. 8012552: a201 add r2, pc, #4 @ (adr r2, 8012558 <UART_SetConfig+0x7c4>)
  42532. 8012554: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42533. 8012558: 080125e3 .word 0x080125e3
  42534. 801255c: 080125eb .word 0x080125eb
  42535. 8012560: 08012647 .word 0x08012647
  42536. 8012564: 08012647 .word 0x08012647
  42537. 8012568: 080125f3 .word 0x080125f3
  42538. 801256c: 08012647 .word 0x08012647
  42539. 8012570: 08012647 .word 0x08012647
  42540. 8012574: 08012647 .word 0x08012647
  42541. 8012578: 08012603 .word 0x08012603
  42542. 801257c: 08012647 .word 0x08012647
  42543. 8012580: 08012647 .word 0x08012647
  42544. 8012584: 08012647 .word 0x08012647
  42545. 8012588: 08012647 .word 0x08012647
  42546. 801258c: 08012647 .word 0x08012647
  42547. 8012590: 08012647 .word 0x08012647
  42548. 8012594: 08012647 .word 0x08012647
  42549. 8012598: 08012613 .word 0x08012613
  42550. 801259c: 08012647 .word 0x08012647
  42551. 80125a0: 08012647 .word 0x08012647
  42552. 80125a4: 08012647 .word 0x08012647
  42553. 80125a8: 08012647 .word 0x08012647
  42554. 80125ac: 08012647 .word 0x08012647
  42555. 80125b0: 08012647 .word 0x08012647
  42556. 80125b4: 08012647 .word 0x08012647
  42557. 80125b8: 08012647 .word 0x08012647
  42558. 80125bc: 08012647 .word 0x08012647
  42559. 80125c0: 08012647 .word 0x08012647
  42560. 80125c4: 08012647 .word 0x08012647
  42561. 80125c8: 08012647 .word 0x08012647
  42562. 80125cc: 08012647 .word 0x08012647
  42563. 80125d0: 08012647 .word 0x08012647
  42564. 80125d4: 08012647 .word 0x08012647
  42565. 80125d8: 08012639 .word 0x08012639
  42566. 80125dc: 2b40 cmp r3, #64 @ 0x40
  42567. 80125de: d02e beq.n 801263e <UART_SetConfig+0x8aa>
  42568. 80125e0: e031 b.n 8012646 <UART_SetConfig+0x8b2>
  42569. {
  42570. case UART_CLOCKSOURCE_D2PCLK1:
  42571. pclk = HAL_RCC_GetPCLK1Freq();
  42572. 80125e2: f7fa f9af bl 800c944 <HAL_RCC_GetPCLK1Freq>
  42573. 80125e6: 63f8 str r0, [r7, #60] @ 0x3c
  42574. break;
  42575. 80125e8: e033 b.n 8012652 <UART_SetConfig+0x8be>
  42576. case UART_CLOCKSOURCE_D2PCLK2:
  42577. pclk = HAL_RCC_GetPCLK2Freq();
  42578. 80125ea: f7fa f9c1 bl 800c970 <HAL_RCC_GetPCLK2Freq>
  42579. 80125ee: 63f8 str r0, [r7, #60] @ 0x3c
  42580. break;
  42581. 80125f0: e02f b.n 8012652 <UART_SetConfig+0x8be>
  42582. case UART_CLOCKSOURCE_PLL2:
  42583. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42584. 80125f2: f107 0324 add.w r3, r7, #36 @ 0x24
  42585. 80125f6: 4618 mov r0, r3
  42586. 80125f8: f7fc f996 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  42587. pclk = pll2_clocks.PLL2_Q_Frequency;
  42588. 80125fc: 6abb ldr r3, [r7, #40] @ 0x28
  42589. 80125fe: 63fb str r3, [r7, #60] @ 0x3c
  42590. break;
  42591. 8012600: e027 b.n 8012652 <UART_SetConfig+0x8be>
  42592. case UART_CLOCKSOURCE_PLL3:
  42593. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42594. 8012602: f107 0318 add.w r3, r7, #24
  42595. 8012606: 4618 mov r0, r3
  42596. 8012608: f7fc fae2 bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  42597. pclk = pll3_clocks.PLL3_Q_Frequency;
  42598. 801260c: 69fb ldr r3, [r7, #28]
  42599. 801260e: 63fb str r3, [r7, #60] @ 0x3c
  42600. break;
  42601. 8012610: e01f b.n 8012652 <UART_SetConfig+0x8be>
  42602. case UART_CLOCKSOURCE_HSI:
  42603. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42604. 8012612: 4b2d ldr r3, [pc, #180] @ (80126c8 <UART_SetConfig+0x934>)
  42605. 8012614: 681b ldr r3, [r3, #0]
  42606. 8012616: f003 0320 and.w r3, r3, #32
  42607. 801261a: 2b00 cmp r3, #0
  42608. 801261c: d009 beq.n 8012632 <UART_SetConfig+0x89e>
  42609. {
  42610. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42611. 801261e: 4b2a ldr r3, [pc, #168] @ (80126c8 <UART_SetConfig+0x934>)
  42612. 8012620: 681b ldr r3, [r3, #0]
  42613. 8012622: 08db lsrs r3, r3, #3
  42614. 8012624: f003 0303 and.w r3, r3, #3
  42615. 8012628: 4a24 ldr r2, [pc, #144] @ (80126bc <UART_SetConfig+0x928>)
  42616. 801262a: fa22 f303 lsr.w r3, r2, r3
  42617. 801262e: 63fb str r3, [r7, #60] @ 0x3c
  42618. }
  42619. else
  42620. {
  42621. pclk = (uint32_t) HSI_VALUE;
  42622. }
  42623. break;
  42624. 8012630: e00f b.n 8012652 <UART_SetConfig+0x8be>
  42625. pclk = (uint32_t) HSI_VALUE;
  42626. 8012632: 4b22 ldr r3, [pc, #136] @ (80126bc <UART_SetConfig+0x928>)
  42627. 8012634: 63fb str r3, [r7, #60] @ 0x3c
  42628. break;
  42629. 8012636: e00c b.n 8012652 <UART_SetConfig+0x8be>
  42630. case UART_CLOCKSOURCE_CSI:
  42631. pclk = (uint32_t) CSI_VALUE;
  42632. 8012638: 4b21 ldr r3, [pc, #132] @ (80126c0 <UART_SetConfig+0x92c>)
  42633. 801263a: 63fb str r3, [r7, #60] @ 0x3c
  42634. break;
  42635. 801263c: e009 b.n 8012652 <UART_SetConfig+0x8be>
  42636. case UART_CLOCKSOURCE_LSE:
  42637. pclk = (uint32_t) LSE_VALUE;
  42638. 801263e: f44f 4300 mov.w r3, #32768 @ 0x8000
  42639. 8012642: 63fb str r3, [r7, #60] @ 0x3c
  42640. break;
  42641. 8012644: e005 b.n 8012652 <UART_SetConfig+0x8be>
  42642. default:
  42643. pclk = 0U;
  42644. 8012646: 2300 movs r3, #0
  42645. 8012648: 63fb str r3, [r7, #60] @ 0x3c
  42646. ret = HAL_ERROR;
  42647. 801264a: 2301 movs r3, #1
  42648. 801264c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42649. break;
  42650. 8012650: bf00 nop
  42651. }
  42652. /* USARTDIV must be greater than or equal to 0d16 */
  42653. if (pclk != 0U)
  42654. 8012652: 6bfb ldr r3, [r7, #60] @ 0x3c
  42655. 8012654: 2b00 cmp r3, #0
  42656. 8012656: f000 80e7 beq.w 8012828 <UART_SetConfig+0xa94>
  42657. {
  42658. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42659. 801265a: 697b ldr r3, [r7, #20]
  42660. 801265c: 6a5b ldr r3, [r3, #36] @ 0x24
  42661. 801265e: 4a19 ldr r2, [pc, #100] @ (80126c4 <UART_SetConfig+0x930>)
  42662. 8012660: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42663. 8012664: 461a mov r2, r3
  42664. 8012666: 6bfb ldr r3, [r7, #60] @ 0x3c
  42665. 8012668: fbb3 f3f2 udiv r3, r3, r2
  42666. 801266c: 005a lsls r2, r3, #1
  42667. 801266e: 697b ldr r3, [r7, #20]
  42668. 8012670: 685b ldr r3, [r3, #4]
  42669. 8012672: 085b lsrs r3, r3, #1
  42670. 8012674: 441a add r2, r3
  42671. 8012676: 697b ldr r3, [r7, #20]
  42672. 8012678: 685b ldr r3, [r3, #4]
  42673. 801267a: fbb2 f3f3 udiv r3, r2, r3
  42674. 801267e: 63bb str r3, [r7, #56] @ 0x38
  42675. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42676. 8012680: 6bbb ldr r3, [r7, #56] @ 0x38
  42677. 8012682: 2b0f cmp r3, #15
  42678. 8012684: d916 bls.n 80126b4 <UART_SetConfig+0x920>
  42679. 8012686: 6bbb ldr r3, [r7, #56] @ 0x38
  42680. 8012688: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42681. 801268c: d212 bcs.n 80126b4 <UART_SetConfig+0x920>
  42682. {
  42683. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  42684. 801268e: 6bbb ldr r3, [r7, #56] @ 0x38
  42685. 8012690: b29b uxth r3, r3
  42686. 8012692: f023 030f bic.w r3, r3, #15
  42687. 8012696: 86fb strh r3, [r7, #54] @ 0x36
  42688. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  42689. 8012698: 6bbb ldr r3, [r7, #56] @ 0x38
  42690. 801269a: 085b lsrs r3, r3, #1
  42691. 801269c: b29b uxth r3, r3
  42692. 801269e: f003 0307 and.w r3, r3, #7
  42693. 80126a2: b29a uxth r2, r3
  42694. 80126a4: 8efb ldrh r3, [r7, #54] @ 0x36
  42695. 80126a6: 4313 orrs r3, r2
  42696. 80126a8: 86fb strh r3, [r7, #54] @ 0x36
  42697. huart->Instance->BRR = brrtemp;
  42698. 80126aa: 697b ldr r3, [r7, #20]
  42699. 80126ac: 681b ldr r3, [r3, #0]
  42700. 80126ae: 8efa ldrh r2, [r7, #54] @ 0x36
  42701. 80126b0: 60da str r2, [r3, #12]
  42702. 80126b2: e0b9 b.n 8012828 <UART_SetConfig+0xa94>
  42703. }
  42704. else
  42705. {
  42706. ret = HAL_ERROR;
  42707. 80126b4: 2301 movs r3, #1
  42708. 80126b6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42709. 80126ba: e0b5 b.n 8012828 <UART_SetConfig+0xa94>
  42710. 80126bc: 03d09000 .word 0x03d09000
  42711. 80126c0: 003d0900 .word 0x003d0900
  42712. 80126c4: 080187a4 .word 0x080187a4
  42713. 80126c8: 58024400 .word 0x58024400
  42714. }
  42715. }
  42716. }
  42717. else
  42718. {
  42719. switch (clocksource)
  42720. 80126cc: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42721. 80126d0: 2b20 cmp r3, #32
  42722. 80126d2: dc49 bgt.n 8012768 <UART_SetConfig+0x9d4>
  42723. 80126d4: 2b00 cmp r3, #0
  42724. 80126d6: db7c blt.n 80127d2 <UART_SetConfig+0xa3e>
  42725. 80126d8: 2b20 cmp r3, #32
  42726. 80126da: d87a bhi.n 80127d2 <UART_SetConfig+0xa3e>
  42727. 80126dc: a201 add r2, pc, #4 @ (adr r2, 80126e4 <UART_SetConfig+0x950>)
  42728. 80126de: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42729. 80126e2: bf00 nop
  42730. 80126e4: 0801276f .word 0x0801276f
  42731. 80126e8: 08012777 .word 0x08012777
  42732. 80126ec: 080127d3 .word 0x080127d3
  42733. 80126f0: 080127d3 .word 0x080127d3
  42734. 80126f4: 0801277f .word 0x0801277f
  42735. 80126f8: 080127d3 .word 0x080127d3
  42736. 80126fc: 080127d3 .word 0x080127d3
  42737. 8012700: 080127d3 .word 0x080127d3
  42738. 8012704: 0801278f .word 0x0801278f
  42739. 8012708: 080127d3 .word 0x080127d3
  42740. 801270c: 080127d3 .word 0x080127d3
  42741. 8012710: 080127d3 .word 0x080127d3
  42742. 8012714: 080127d3 .word 0x080127d3
  42743. 8012718: 080127d3 .word 0x080127d3
  42744. 801271c: 080127d3 .word 0x080127d3
  42745. 8012720: 080127d3 .word 0x080127d3
  42746. 8012724: 0801279f .word 0x0801279f
  42747. 8012728: 080127d3 .word 0x080127d3
  42748. 801272c: 080127d3 .word 0x080127d3
  42749. 8012730: 080127d3 .word 0x080127d3
  42750. 8012734: 080127d3 .word 0x080127d3
  42751. 8012738: 080127d3 .word 0x080127d3
  42752. 801273c: 080127d3 .word 0x080127d3
  42753. 8012740: 080127d3 .word 0x080127d3
  42754. 8012744: 080127d3 .word 0x080127d3
  42755. 8012748: 080127d3 .word 0x080127d3
  42756. 801274c: 080127d3 .word 0x080127d3
  42757. 8012750: 080127d3 .word 0x080127d3
  42758. 8012754: 080127d3 .word 0x080127d3
  42759. 8012758: 080127d3 .word 0x080127d3
  42760. 801275c: 080127d3 .word 0x080127d3
  42761. 8012760: 080127d3 .word 0x080127d3
  42762. 8012764: 080127c5 .word 0x080127c5
  42763. 8012768: 2b40 cmp r3, #64 @ 0x40
  42764. 801276a: d02e beq.n 80127ca <UART_SetConfig+0xa36>
  42765. 801276c: e031 b.n 80127d2 <UART_SetConfig+0xa3e>
  42766. {
  42767. case UART_CLOCKSOURCE_D2PCLK1:
  42768. pclk = HAL_RCC_GetPCLK1Freq();
  42769. 801276e: f7fa f8e9 bl 800c944 <HAL_RCC_GetPCLK1Freq>
  42770. 8012772: 63f8 str r0, [r7, #60] @ 0x3c
  42771. break;
  42772. 8012774: e033 b.n 80127de <UART_SetConfig+0xa4a>
  42773. case UART_CLOCKSOURCE_D2PCLK2:
  42774. pclk = HAL_RCC_GetPCLK2Freq();
  42775. 8012776: f7fa f8fb bl 800c970 <HAL_RCC_GetPCLK2Freq>
  42776. 801277a: 63f8 str r0, [r7, #60] @ 0x3c
  42777. break;
  42778. 801277c: e02f b.n 80127de <UART_SetConfig+0xa4a>
  42779. case UART_CLOCKSOURCE_PLL2:
  42780. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42781. 801277e: f107 0324 add.w r3, r7, #36 @ 0x24
  42782. 8012782: 4618 mov r0, r3
  42783. 8012784: f7fc f8d0 bl 800e928 <HAL_RCCEx_GetPLL2ClockFreq>
  42784. pclk = pll2_clocks.PLL2_Q_Frequency;
  42785. 8012788: 6abb ldr r3, [r7, #40] @ 0x28
  42786. 801278a: 63fb str r3, [r7, #60] @ 0x3c
  42787. break;
  42788. 801278c: e027 b.n 80127de <UART_SetConfig+0xa4a>
  42789. case UART_CLOCKSOURCE_PLL3:
  42790. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42791. 801278e: f107 0318 add.w r3, r7, #24
  42792. 8012792: 4618 mov r0, r3
  42793. 8012794: f7fc fa1c bl 800ebd0 <HAL_RCCEx_GetPLL3ClockFreq>
  42794. pclk = pll3_clocks.PLL3_Q_Frequency;
  42795. 8012798: 69fb ldr r3, [r7, #28]
  42796. 801279a: 63fb str r3, [r7, #60] @ 0x3c
  42797. break;
  42798. 801279c: e01f b.n 80127de <UART_SetConfig+0xa4a>
  42799. case UART_CLOCKSOURCE_HSI:
  42800. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42801. 801279e: 4b2d ldr r3, [pc, #180] @ (8012854 <UART_SetConfig+0xac0>)
  42802. 80127a0: 681b ldr r3, [r3, #0]
  42803. 80127a2: f003 0320 and.w r3, r3, #32
  42804. 80127a6: 2b00 cmp r3, #0
  42805. 80127a8: d009 beq.n 80127be <UART_SetConfig+0xa2a>
  42806. {
  42807. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42808. 80127aa: 4b2a ldr r3, [pc, #168] @ (8012854 <UART_SetConfig+0xac0>)
  42809. 80127ac: 681b ldr r3, [r3, #0]
  42810. 80127ae: 08db lsrs r3, r3, #3
  42811. 80127b0: f003 0303 and.w r3, r3, #3
  42812. 80127b4: 4a28 ldr r2, [pc, #160] @ (8012858 <UART_SetConfig+0xac4>)
  42813. 80127b6: fa22 f303 lsr.w r3, r2, r3
  42814. 80127ba: 63fb str r3, [r7, #60] @ 0x3c
  42815. }
  42816. else
  42817. {
  42818. pclk = (uint32_t) HSI_VALUE;
  42819. }
  42820. break;
  42821. 80127bc: e00f b.n 80127de <UART_SetConfig+0xa4a>
  42822. pclk = (uint32_t) HSI_VALUE;
  42823. 80127be: 4b26 ldr r3, [pc, #152] @ (8012858 <UART_SetConfig+0xac4>)
  42824. 80127c0: 63fb str r3, [r7, #60] @ 0x3c
  42825. break;
  42826. 80127c2: e00c b.n 80127de <UART_SetConfig+0xa4a>
  42827. case UART_CLOCKSOURCE_CSI:
  42828. pclk = (uint32_t) CSI_VALUE;
  42829. 80127c4: 4b25 ldr r3, [pc, #148] @ (801285c <UART_SetConfig+0xac8>)
  42830. 80127c6: 63fb str r3, [r7, #60] @ 0x3c
  42831. break;
  42832. 80127c8: e009 b.n 80127de <UART_SetConfig+0xa4a>
  42833. case UART_CLOCKSOURCE_LSE:
  42834. pclk = (uint32_t) LSE_VALUE;
  42835. 80127ca: f44f 4300 mov.w r3, #32768 @ 0x8000
  42836. 80127ce: 63fb str r3, [r7, #60] @ 0x3c
  42837. break;
  42838. 80127d0: e005 b.n 80127de <UART_SetConfig+0xa4a>
  42839. default:
  42840. pclk = 0U;
  42841. 80127d2: 2300 movs r3, #0
  42842. 80127d4: 63fb str r3, [r7, #60] @ 0x3c
  42843. ret = HAL_ERROR;
  42844. 80127d6: 2301 movs r3, #1
  42845. 80127d8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42846. break;
  42847. 80127dc: bf00 nop
  42848. }
  42849. if (pclk != 0U)
  42850. 80127de: 6bfb ldr r3, [r7, #60] @ 0x3c
  42851. 80127e0: 2b00 cmp r3, #0
  42852. 80127e2: d021 beq.n 8012828 <UART_SetConfig+0xa94>
  42853. {
  42854. /* USARTDIV must be greater than or equal to 0d16 */
  42855. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42856. 80127e4: 697b ldr r3, [r7, #20]
  42857. 80127e6: 6a5b ldr r3, [r3, #36] @ 0x24
  42858. 80127e8: 4a1d ldr r2, [pc, #116] @ (8012860 <UART_SetConfig+0xacc>)
  42859. 80127ea: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42860. 80127ee: 461a mov r2, r3
  42861. 80127f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  42862. 80127f2: fbb3 f2f2 udiv r2, r3, r2
  42863. 80127f6: 697b ldr r3, [r7, #20]
  42864. 80127f8: 685b ldr r3, [r3, #4]
  42865. 80127fa: 085b lsrs r3, r3, #1
  42866. 80127fc: 441a add r2, r3
  42867. 80127fe: 697b ldr r3, [r7, #20]
  42868. 8012800: 685b ldr r3, [r3, #4]
  42869. 8012802: fbb2 f3f3 udiv r3, r2, r3
  42870. 8012806: 63bb str r3, [r7, #56] @ 0x38
  42871. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42872. 8012808: 6bbb ldr r3, [r7, #56] @ 0x38
  42873. 801280a: 2b0f cmp r3, #15
  42874. 801280c: d909 bls.n 8012822 <UART_SetConfig+0xa8e>
  42875. 801280e: 6bbb ldr r3, [r7, #56] @ 0x38
  42876. 8012810: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42877. 8012814: d205 bcs.n 8012822 <UART_SetConfig+0xa8e>
  42878. {
  42879. huart->Instance->BRR = (uint16_t)usartdiv;
  42880. 8012816: 6bbb ldr r3, [r7, #56] @ 0x38
  42881. 8012818: b29a uxth r2, r3
  42882. 801281a: 697b ldr r3, [r7, #20]
  42883. 801281c: 681b ldr r3, [r3, #0]
  42884. 801281e: 60da str r2, [r3, #12]
  42885. 8012820: e002 b.n 8012828 <UART_SetConfig+0xa94>
  42886. }
  42887. else
  42888. {
  42889. ret = HAL_ERROR;
  42890. 8012822: 2301 movs r3, #1
  42891. 8012824: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42892. }
  42893. }
  42894. }
  42895. /* Initialize the number of data to process during RX/TX ISR execution */
  42896. huart->NbTxDataToProcess = 1;
  42897. 8012828: 697b ldr r3, [r7, #20]
  42898. 801282a: 2201 movs r2, #1
  42899. 801282c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  42900. huart->NbRxDataToProcess = 1;
  42901. 8012830: 697b ldr r3, [r7, #20]
  42902. 8012832: 2201 movs r2, #1
  42903. 8012834: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  42904. /* Clear ISR function pointers */
  42905. huart->RxISR = NULL;
  42906. 8012838: 697b ldr r3, [r7, #20]
  42907. 801283a: 2200 movs r2, #0
  42908. 801283c: 675a str r2, [r3, #116] @ 0x74
  42909. huart->TxISR = NULL;
  42910. 801283e: 697b ldr r3, [r7, #20]
  42911. 8012840: 2200 movs r2, #0
  42912. 8012842: 679a str r2, [r3, #120] @ 0x78
  42913. return ret;
  42914. 8012844: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  42915. }
  42916. 8012848: 4618 mov r0, r3
  42917. 801284a: 3748 adds r7, #72 @ 0x48
  42918. 801284c: 46bd mov sp, r7
  42919. 801284e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  42920. 8012852: bf00 nop
  42921. 8012854: 58024400 .word 0x58024400
  42922. 8012858: 03d09000 .word 0x03d09000
  42923. 801285c: 003d0900 .word 0x003d0900
  42924. 8012860: 080187a4 .word 0x080187a4
  42925. 08012864 <UART_AdvFeatureConfig>:
  42926. * @brief Configure the UART peripheral advanced features.
  42927. * @param huart UART handle.
  42928. * @retval None
  42929. */
  42930. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42931. {
  42932. 8012864: b480 push {r7}
  42933. 8012866: b083 sub sp, #12
  42934. 8012868: af00 add r7, sp, #0
  42935. 801286a: 6078 str r0, [r7, #4]
  42936. /* Check whether the set of advanced features to configure is properly set */
  42937. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42938. /* if required, configure RX/TX pins swap */
  42939. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42940. 801286c: 687b ldr r3, [r7, #4]
  42941. 801286e: 6a9b ldr r3, [r3, #40] @ 0x28
  42942. 8012870: f003 0308 and.w r3, r3, #8
  42943. 8012874: 2b00 cmp r3, #0
  42944. 8012876: d00a beq.n 801288e <UART_AdvFeatureConfig+0x2a>
  42945. {
  42946. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42947. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42948. 8012878: 687b ldr r3, [r7, #4]
  42949. 801287a: 681b ldr r3, [r3, #0]
  42950. 801287c: 685b ldr r3, [r3, #4]
  42951. 801287e: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42952. 8012882: 687b ldr r3, [r7, #4]
  42953. 8012884: 6b9a ldr r2, [r3, #56] @ 0x38
  42954. 8012886: 687b ldr r3, [r7, #4]
  42955. 8012888: 681b ldr r3, [r3, #0]
  42956. 801288a: 430a orrs r2, r1
  42957. 801288c: 605a str r2, [r3, #4]
  42958. }
  42959. /* if required, configure TX pin active level inversion */
  42960. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42961. 801288e: 687b ldr r3, [r7, #4]
  42962. 8012890: 6a9b ldr r3, [r3, #40] @ 0x28
  42963. 8012892: f003 0301 and.w r3, r3, #1
  42964. 8012896: 2b00 cmp r3, #0
  42965. 8012898: d00a beq.n 80128b0 <UART_AdvFeatureConfig+0x4c>
  42966. {
  42967. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42968. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42969. 801289a: 687b ldr r3, [r7, #4]
  42970. 801289c: 681b ldr r3, [r3, #0]
  42971. 801289e: 685b ldr r3, [r3, #4]
  42972. 80128a0: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42973. 80128a4: 687b ldr r3, [r7, #4]
  42974. 80128a6: 6ada ldr r2, [r3, #44] @ 0x2c
  42975. 80128a8: 687b ldr r3, [r7, #4]
  42976. 80128aa: 681b ldr r3, [r3, #0]
  42977. 80128ac: 430a orrs r2, r1
  42978. 80128ae: 605a str r2, [r3, #4]
  42979. }
  42980. /* if required, configure RX pin active level inversion */
  42981. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42982. 80128b0: 687b ldr r3, [r7, #4]
  42983. 80128b2: 6a9b ldr r3, [r3, #40] @ 0x28
  42984. 80128b4: f003 0302 and.w r3, r3, #2
  42985. 80128b8: 2b00 cmp r3, #0
  42986. 80128ba: d00a beq.n 80128d2 <UART_AdvFeatureConfig+0x6e>
  42987. {
  42988. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42989. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42990. 80128bc: 687b ldr r3, [r7, #4]
  42991. 80128be: 681b ldr r3, [r3, #0]
  42992. 80128c0: 685b ldr r3, [r3, #4]
  42993. 80128c2: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42994. 80128c6: 687b ldr r3, [r7, #4]
  42995. 80128c8: 6b1a ldr r2, [r3, #48] @ 0x30
  42996. 80128ca: 687b ldr r3, [r7, #4]
  42997. 80128cc: 681b ldr r3, [r3, #0]
  42998. 80128ce: 430a orrs r2, r1
  42999. 80128d0: 605a str r2, [r3, #4]
  43000. }
  43001. /* if required, configure data inversion */
  43002. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  43003. 80128d2: 687b ldr r3, [r7, #4]
  43004. 80128d4: 6a9b ldr r3, [r3, #40] @ 0x28
  43005. 80128d6: f003 0304 and.w r3, r3, #4
  43006. 80128da: 2b00 cmp r3, #0
  43007. 80128dc: d00a beq.n 80128f4 <UART_AdvFeatureConfig+0x90>
  43008. {
  43009. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  43010. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  43011. 80128de: 687b ldr r3, [r7, #4]
  43012. 80128e0: 681b ldr r3, [r3, #0]
  43013. 80128e2: 685b ldr r3, [r3, #4]
  43014. 80128e4: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  43015. 80128e8: 687b ldr r3, [r7, #4]
  43016. 80128ea: 6b5a ldr r2, [r3, #52] @ 0x34
  43017. 80128ec: 687b ldr r3, [r7, #4]
  43018. 80128ee: 681b ldr r3, [r3, #0]
  43019. 80128f0: 430a orrs r2, r1
  43020. 80128f2: 605a str r2, [r3, #4]
  43021. }
  43022. /* if required, configure RX overrun detection disabling */
  43023. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  43024. 80128f4: 687b ldr r3, [r7, #4]
  43025. 80128f6: 6a9b ldr r3, [r3, #40] @ 0x28
  43026. 80128f8: f003 0310 and.w r3, r3, #16
  43027. 80128fc: 2b00 cmp r3, #0
  43028. 80128fe: d00a beq.n 8012916 <UART_AdvFeatureConfig+0xb2>
  43029. {
  43030. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  43031. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  43032. 8012900: 687b ldr r3, [r7, #4]
  43033. 8012902: 681b ldr r3, [r3, #0]
  43034. 8012904: 689b ldr r3, [r3, #8]
  43035. 8012906: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  43036. 801290a: 687b ldr r3, [r7, #4]
  43037. 801290c: 6bda ldr r2, [r3, #60] @ 0x3c
  43038. 801290e: 687b ldr r3, [r7, #4]
  43039. 8012910: 681b ldr r3, [r3, #0]
  43040. 8012912: 430a orrs r2, r1
  43041. 8012914: 609a str r2, [r3, #8]
  43042. }
  43043. /* if required, configure DMA disabling on reception error */
  43044. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  43045. 8012916: 687b ldr r3, [r7, #4]
  43046. 8012918: 6a9b ldr r3, [r3, #40] @ 0x28
  43047. 801291a: f003 0320 and.w r3, r3, #32
  43048. 801291e: 2b00 cmp r3, #0
  43049. 8012920: d00a beq.n 8012938 <UART_AdvFeatureConfig+0xd4>
  43050. {
  43051. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  43052. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  43053. 8012922: 687b ldr r3, [r7, #4]
  43054. 8012924: 681b ldr r3, [r3, #0]
  43055. 8012926: 689b ldr r3, [r3, #8]
  43056. 8012928: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  43057. 801292c: 687b ldr r3, [r7, #4]
  43058. 801292e: 6c1a ldr r2, [r3, #64] @ 0x40
  43059. 8012930: 687b ldr r3, [r7, #4]
  43060. 8012932: 681b ldr r3, [r3, #0]
  43061. 8012934: 430a orrs r2, r1
  43062. 8012936: 609a str r2, [r3, #8]
  43063. }
  43064. /* if required, configure auto Baud rate detection scheme */
  43065. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  43066. 8012938: 687b ldr r3, [r7, #4]
  43067. 801293a: 6a9b ldr r3, [r3, #40] @ 0x28
  43068. 801293c: f003 0340 and.w r3, r3, #64 @ 0x40
  43069. 8012940: 2b00 cmp r3, #0
  43070. 8012942: d01a beq.n 801297a <UART_AdvFeatureConfig+0x116>
  43071. {
  43072. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  43073. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  43074. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  43075. 8012944: 687b ldr r3, [r7, #4]
  43076. 8012946: 681b ldr r3, [r3, #0]
  43077. 8012948: 685b ldr r3, [r3, #4]
  43078. 801294a: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  43079. 801294e: 687b ldr r3, [r7, #4]
  43080. 8012950: 6c5a ldr r2, [r3, #68] @ 0x44
  43081. 8012952: 687b ldr r3, [r7, #4]
  43082. 8012954: 681b ldr r3, [r3, #0]
  43083. 8012956: 430a orrs r2, r1
  43084. 8012958: 605a str r2, [r3, #4]
  43085. /* set auto Baudrate detection parameters if detection is enabled */
  43086. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  43087. 801295a: 687b ldr r3, [r7, #4]
  43088. 801295c: 6c5b ldr r3, [r3, #68] @ 0x44
  43089. 801295e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  43090. 8012962: d10a bne.n 801297a <UART_AdvFeatureConfig+0x116>
  43091. {
  43092. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  43093. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  43094. 8012964: 687b ldr r3, [r7, #4]
  43095. 8012966: 681b ldr r3, [r3, #0]
  43096. 8012968: 685b ldr r3, [r3, #4]
  43097. 801296a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  43098. 801296e: 687b ldr r3, [r7, #4]
  43099. 8012970: 6c9a ldr r2, [r3, #72] @ 0x48
  43100. 8012972: 687b ldr r3, [r7, #4]
  43101. 8012974: 681b ldr r3, [r3, #0]
  43102. 8012976: 430a orrs r2, r1
  43103. 8012978: 605a str r2, [r3, #4]
  43104. }
  43105. }
  43106. /* if required, configure MSB first on communication line */
  43107. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  43108. 801297a: 687b ldr r3, [r7, #4]
  43109. 801297c: 6a9b ldr r3, [r3, #40] @ 0x28
  43110. 801297e: f003 0380 and.w r3, r3, #128 @ 0x80
  43111. 8012982: 2b00 cmp r3, #0
  43112. 8012984: d00a beq.n 801299c <UART_AdvFeatureConfig+0x138>
  43113. {
  43114. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  43115. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  43116. 8012986: 687b ldr r3, [r7, #4]
  43117. 8012988: 681b ldr r3, [r3, #0]
  43118. 801298a: 685b ldr r3, [r3, #4]
  43119. 801298c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  43120. 8012990: 687b ldr r3, [r7, #4]
  43121. 8012992: 6cda ldr r2, [r3, #76] @ 0x4c
  43122. 8012994: 687b ldr r3, [r7, #4]
  43123. 8012996: 681b ldr r3, [r3, #0]
  43124. 8012998: 430a orrs r2, r1
  43125. 801299a: 605a str r2, [r3, #4]
  43126. }
  43127. }
  43128. 801299c: bf00 nop
  43129. 801299e: 370c adds r7, #12
  43130. 80129a0: 46bd mov sp, r7
  43131. 80129a2: f85d 7b04 ldr.w r7, [sp], #4
  43132. 80129a6: 4770 bx lr
  43133. 080129a8 <UART_CheckIdleState>:
  43134. * @brief Check the UART Idle State.
  43135. * @param huart UART handle.
  43136. * @retval HAL status
  43137. */
  43138. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  43139. {
  43140. 80129a8: b580 push {r7, lr}
  43141. 80129aa: b098 sub sp, #96 @ 0x60
  43142. 80129ac: af02 add r7, sp, #8
  43143. 80129ae: 6078 str r0, [r7, #4]
  43144. uint32_t tickstart;
  43145. /* Initialize the UART ErrorCode */
  43146. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43147. 80129b0: 687b ldr r3, [r7, #4]
  43148. 80129b2: 2200 movs r2, #0
  43149. 80129b4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43150. /* Init tickstart for timeout management */
  43151. tickstart = HAL_GetTick();
  43152. 80129b8: f7f3 fa74 bl 8005ea4 <HAL_GetTick>
  43153. 80129bc: 6578 str r0, [r7, #84] @ 0x54
  43154. /* Check if the Transmitter is enabled */
  43155. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  43156. 80129be: 687b ldr r3, [r7, #4]
  43157. 80129c0: 681b ldr r3, [r3, #0]
  43158. 80129c2: 681b ldr r3, [r3, #0]
  43159. 80129c4: f003 0308 and.w r3, r3, #8
  43160. 80129c8: 2b08 cmp r3, #8
  43161. 80129ca: d12f bne.n 8012a2c <UART_CheckIdleState+0x84>
  43162. {
  43163. /* Wait until TEACK flag is set */
  43164. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43165. 80129cc: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43166. 80129d0: 9300 str r3, [sp, #0]
  43167. 80129d2: 6d7b ldr r3, [r7, #84] @ 0x54
  43168. 80129d4: 2200 movs r2, #0
  43169. 80129d6: f44f 1100 mov.w r1, #2097152 @ 0x200000
  43170. 80129da: 6878 ldr r0, [r7, #4]
  43171. 80129dc: f000 f88e bl 8012afc <UART_WaitOnFlagUntilTimeout>
  43172. 80129e0: 4603 mov r3, r0
  43173. 80129e2: 2b00 cmp r3, #0
  43174. 80129e4: d022 beq.n 8012a2c <UART_CheckIdleState+0x84>
  43175. {
  43176. /* Disable TXE interrupt for the interrupt process */
  43177. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  43178. 80129e6: 687b ldr r3, [r7, #4]
  43179. 80129e8: 681b ldr r3, [r3, #0]
  43180. 80129ea: 63bb str r3, [r7, #56] @ 0x38
  43181. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43182. 80129ec: 6bbb ldr r3, [r7, #56] @ 0x38
  43183. 80129ee: e853 3f00 ldrex r3, [r3]
  43184. 80129f2: 637b str r3, [r7, #52] @ 0x34
  43185. return(result);
  43186. 80129f4: 6b7b ldr r3, [r7, #52] @ 0x34
  43187. 80129f6: f023 0380 bic.w r3, r3, #128 @ 0x80
  43188. 80129fa: 653b str r3, [r7, #80] @ 0x50
  43189. 80129fc: 687b ldr r3, [r7, #4]
  43190. 80129fe: 681b ldr r3, [r3, #0]
  43191. 8012a00: 461a mov r2, r3
  43192. 8012a02: 6d3b ldr r3, [r7, #80] @ 0x50
  43193. 8012a04: 647b str r3, [r7, #68] @ 0x44
  43194. 8012a06: 643a str r2, [r7, #64] @ 0x40
  43195. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43196. 8012a08: 6c39 ldr r1, [r7, #64] @ 0x40
  43197. 8012a0a: 6c7a ldr r2, [r7, #68] @ 0x44
  43198. 8012a0c: e841 2300 strex r3, r2, [r1]
  43199. 8012a10: 63fb str r3, [r7, #60] @ 0x3c
  43200. return(result);
  43201. 8012a12: 6bfb ldr r3, [r7, #60] @ 0x3c
  43202. 8012a14: 2b00 cmp r3, #0
  43203. 8012a16: d1e6 bne.n 80129e6 <UART_CheckIdleState+0x3e>
  43204. huart->gState = HAL_UART_STATE_READY;
  43205. 8012a18: 687b ldr r3, [r7, #4]
  43206. 8012a1a: 2220 movs r2, #32
  43207. 8012a1c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43208. __HAL_UNLOCK(huart);
  43209. 8012a20: 687b ldr r3, [r7, #4]
  43210. 8012a22: 2200 movs r2, #0
  43211. 8012a24: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43212. /* Timeout occurred */
  43213. return HAL_TIMEOUT;
  43214. 8012a28: 2303 movs r3, #3
  43215. 8012a2a: e063 b.n 8012af4 <UART_CheckIdleState+0x14c>
  43216. }
  43217. }
  43218. /* Check if the Receiver is enabled */
  43219. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  43220. 8012a2c: 687b ldr r3, [r7, #4]
  43221. 8012a2e: 681b ldr r3, [r3, #0]
  43222. 8012a30: 681b ldr r3, [r3, #0]
  43223. 8012a32: f003 0304 and.w r3, r3, #4
  43224. 8012a36: 2b04 cmp r3, #4
  43225. 8012a38: d149 bne.n 8012ace <UART_CheckIdleState+0x126>
  43226. {
  43227. /* Wait until REACK flag is set */
  43228. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43229. 8012a3a: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43230. 8012a3e: 9300 str r3, [sp, #0]
  43231. 8012a40: 6d7b ldr r3, [r7, #84] @ 0x54
  43232. 8012a42: 2200 movs r2, #0
  43233. 8012a44: f44f 0180 mov.w r1, #4194304 @ 0x400000
  43234. 8012a48: 6878 ldr r0, [r7, #4]
  43235. 8012a4a: f000 f857 bl 8012afc <UART_WaitOnFlagUntilTimeout>
  43236. 8012a4e: 4603 mov r3, r0
  43237. 8012a50: 2b00 cmp r3, #0
  43238. 8012a52: d03c beq.n 8012ace <UART_CheckIdleState+0x126>
  43239. {
  43240. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  43241. interrupts for the interrupt process */
  43242. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43243. 8012a54: 687b ldr r3, [r7, #4]
  43244. 8012a56: 681b ldr r3, [r3, #0]
  43245. 8012a58: 627b str r3, [r7, #36] @ 0x24
  43246. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43247. 8012a5a: 6a7b ldr r3, [r7, #36] @ 0x24
  43248. 8012a5c: e853 3f00 ldrex r3, [r3]
  43249. 8012a60: 623b str r3, [r7, #32]
  43250. return(result);
  43251. 8012a62: 6a3b ldr r3, [r7, #32]
  43252. 8012a64: f423 7390 bic.w r3, r3, #288 @ 0x120
  43253. 8012a68: 64fb str r3, [r7, #76] @ 0x4c
  43254. 8012a6a: 687b ldr r3, [r7, #4]
  43255. 8012a6c: 681b ldr r3, [r3, #0]
  43256. 8012a6e: 461a mov r2, r3
  43257. 8012a70: 6cfb ldr r3, [r7, #76] @ 0x4c
  43258. 8012a72: 633b str r3, [r7, #48] @ 0x30
  43259. 8012a74: 62fa str r2, [r7, #44] @ 0x2c
  43260. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43261. 8012a76: 6af9 ldr r1, [r7, #44] @ 0x2c
  43262. 8012a78: 6b3a ldr r2, [r7, #48] @ 0x30
  43263. 8012a7a: e841 2300 strex r3, r2, [r1]
  43264. 8012a7e: 62bb str r3, [r7, #40] @ 0x28
  43265. return(result);
  43266. 8012a80: 6abb ldr r3, [r7, #40] @ 0x28
  43267. 8012a82: 2b00 cmp r3, #0
  43268. 8012a84: d1e6 bne.n 8012a54 <UART_CheckIdleState+0xac>
  43269. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43270. 8012a86: 687b ldr r3, [r7, #4]
  43271. 8012a88: 681b ldr r3, [r3, #0]
  43272. 8012a8a: 3308 adds r3, #8
  43273. 8012a8c: 613b str r3, [r7, #16]
  43274. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43275. 8012a8e: 693b ldr r3, [r7, #16]
  43276. 8012a90: e853 3f00 ldrex r3, [r3]
  43277. 8012a94: 60fb str r3, [r7, #12]
  43278. return(result);
  43279. 8012a96: 68fb ldr r3, [r7, #12]
  43280. 8012a98: f023 0301 bic.w r3, r3, #1
  43281. 8012a9c: 64bb str r3, [r7, #72] @ 0x48
  43282. 8012a9e: 687b ldr r3, [r7, #4]
  43283. 8012aa0: 681b ldr r3, [r3, #0]
  43284. 8012aa2: 3308 adds r3, #8
  43285. 8012aa4: 6cba ldr r2, [r7, #72] @ 0x48
  43286. 8012aa6: 61fa str r2, [r7, #28]
  43287. 8012aa8: 61bb str r3, [r7, #24]
  43288. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43289. 8012aaa: 69b9 ldr r1, [r7, #24]
  43290. 8012aac: 69fa ldr r2, [r7, #28]
  43291. 8012aae: e841 2300 strex r3, r2, [r1]
  43292. 8012ab2: 617b str r3, [r7, #20]
  43293. return(result);
  43294. 8012ab4: 697b ldr r3, [r7, #20]
  43295. 8012ab6: 2b00 cmp r3, #0
  43296. 8012ab8: d1e5 bne.n 8012a86 <UART_CheckIdleState+0xde>
  43297. huart->RxState = HAL_UART_STATE_READY;
  43298. 8012aba: 687b ldr r3, [r7, #4]
  43299. 8012abc: 2220 movs r2, #32
  43300. 8012abe: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43301. __HAL_UNLOCK(huart);
  43302. 8012ac2: 687b ldr r3, [r7, #4]
  43303. 8012ac4: 2200 movs r2, #0
  43304. 8012ac6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43305. /* Timeout occurred */
  43306. return HAL_TIMEOUT;
  43307. 8012aca: 2303 movs r3, #3
  43308. 8012acc: e012 b.n 8012af4 <UART_CheckIdleState+0x14c>
  43309. }
  43310. }
  43311. /* Initialize the UART State */
  43312. huart->gState = HAL_UART_STATE_READY;
  43313. 8012ace: 687b ldr r3, [r7, #4]
  43314. 8012ad0: 2220 movs r2, #32
  43315. 8012ad2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43316. huart->RxState = HAL_UART_STATE_READY;
  43317. 8012ad6: 687b ldr r3, [r7, #4]
  43318. 8012ad8: 2220 movs r2, #32
  43319. 8012ada: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43320. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43321. 8012ade: 687b ldr r3, [r7, #4]
  43322. 8012ae0: 2200 movs r2, #0
  43323. 8012ae2: 66da str r2, [r3, #108] @ 0x6c
  43324. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43325. 8012ae4: 687b ldr r3, [r7, #4]
  43326. 8012ae6: 2200 movs r2, #0
  43327. 8012ae8: 671a str r2, [r3, #112] @ 0x70
  43328. __HAL_UNLOCK(huart);
  43329. 8012aea: 687b ldr r3, [r7, #4]
  43330. 8012aec: 2200 movs r2, #0
  43331. 8012aee: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43332. return HAL_OK;
  43333. 8012af2: 2300 movs r3, #0
  43334. }
  43335. 8012af4: 4618 mov r0, r3
  43336. 8012af6: 3758 adds r7, #88 @ 0x58
  43337. 8012af8: 46bd mov sp, r7
  43338. 8012afa: bd80 pop {r7, pc}
  43339. 08012afc <UART_WaitOnFlagUntilTimeout>:
  43340. * @param Timeout Timeout duration
  43341. * @retval HAL status
  43342. */
  43343. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  43344. uint32_t Tickstart, uint32_t Timeout)
  43345. {
  43346. 8012afc: b580 push {r7, lr}
  43347. 8012afe: b084 sub sp, #16
  43348. 8012b00: af00 add r7, sp, #0
  43349. 8012b02: 60f8 str r0, [r7, #12]
  43350. 8012b04: 60b9 str r1, [r7, #8]
  43351. 8012b06: 603b str r3, [r7, #0]
  43352. 8012b08: 4613 mov r3, r2
  43353. 8012b0a: 71fb strb r3, [r7, #7]
  43354. /* Wait until flag is set */
  43355. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43356. 8012b0c: e04f b.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43357. {
  43358. /* Check for the Timeout */
  43359. if (Timeout != HAL_MAX_DELAY)
  43360. 8012b0e: 69bb ldr r3, [r7, #24]
  43361. 8012b10: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43362. 8012b14: d04b beq.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43363. {
  43364. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  43365. 8012b16: f7f3 f9c5 bl 8005ea4 <HAL_GetTick>
  43366. 8012b1a: 4602 mov r2, r0
  43367. 8012b1c: 683b ldr r3, [r7, #0]
  43368. 8012b1e: 1ad3 subs r3, r2, r3
  43369. 8012b20: 69ba ldr r2, [r7, #24]
  43370. 8012b22: 429a cmp r2, r3
  43371. 8012b24: d302 bcc.n 8012b2c <UART_WaitOnFlagUntilTimeout+0x30>
  43372. 8012b26: 69bb ldr r3, [r7, #24]
  43373. 8012b28: 2b00 cmp r3, #0
  43374. 8012b2a: d101 bne.n 8012b30 <UART_WaitOnFlagUntilTimeout+0x34>
  43375. {
  43376. return HAL_TIMEOUT;
  43377. 8012b2c: 2303 movs r3, #3
  43378. 8012b2e: e04e b.n 8012bce <UART_WaitOnFlagUntilTimeout+0xd2>
  43379. }
  43380. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  43381. 8012b30: 68fb ldr r3, [r7, #12]
  43382. 8012b32: 681b ldr r3, [r3, #0]
  43383. 8012b34: 681b ldr r3, [r3, #0]
  43384. 8012b36: f003 0304 and.w r3, r3, #4
  43385. 8012b3a: 2b00 cmp r3, #0
  43386. 8012b3c: d037 beq.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43387. 8012b3e: 68bb ldr r3, [r7, #8]
  43388. 8012b40: 2b80 cmp r3, #128 @ 0x80
  43389. 8012b42: d034 beq.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43390. 8012b44: 68bb ldr r3, [r7, #8]
  43391. 8012b46: 2b40 cmp r3, #64 @ 0x40
  43392. 8012b48: d031 beq.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43393. {
  43394. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  43395. 8012b4a: 68fb ldr r3, [r7, #12]
  43396. 8012b4c: 681b ldr r3, [r3, #0]
  43397. 8012b4e: 69db ldr r3, [r3, #28]
  43398. 8012b50: f003 0308 and.w r3, r3, #8
  43399. 8012b54: 2b08 cmp r3, #8
  43400. 8012b56: d110 bne.n 8012b7a <UART_WaitOnFlagUntilTimeout+0x7e>
  43401. {
  43402. /* Clear Overrun Error flag*/
  43403. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  43404. 8012b58: 68fb ldr r3, [r7, #12]
  43405. 8012b5a: 681b ldr r3, [r3, #0]
  43406. 8012b5c: 2208 movs r2, #8
  43407. 8012b5e: 621a str r2, [r3, #32]
  43408. /* Blocking error : transfer is aborted
  43409. Set the UART state ready to be able to start again the process,
  43410. Disable Rx Interrupts if ongoing */
  43411. UART_EndRxTransfer(huart);
  43412. 8012b60: 68f8 ldr r0, [r7, #12]
  43413. 8012b62: f000 f95b bl 8012e1c <UART_EndRxTransfer>
  43414. huart->ErrorCode = HAL_UART_ERROR_ORE;
  43415. 8012b66: 68fb ldr r3, [r7, #12]
  43416. 8012b68: 2208 movs r2, #8
  43417. 8012b6a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43418. /* Process Unlocked */
  43419. __HAL_UNLOCK(huart);
  43420. 8012b6e: 68fb ldr r3, [r7, #12]
  43421. 8012b70: 2200 movs r2, #0
  43422. 8012b72: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43423. return HAL_ERROR;
  43424. 8012b76: 2301 movs r3, #1
  43425. 8012b78: e029 b.n 8012bce <UART_WaitOnFlagUntilTimeout+0xd2>
  43426. }
  43427. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  43428. 8012b7a: 68fb ldr r3, [r7, #12]
  43429. 8012b7c: 681b ldr r3, [r3, #0]
  43430. 8012b7e: 69db ldr r3, [r3, #28]
  43431. 8012b80: f403 6300 and.w r3, r3, #2048 @ 0x800
  43432. 8012b84: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  43433. 8012b88: d111 bne.n 8012bae <UART_WaitOnFlagUntilTimeout+0xb2>
  43434. {
  43435. /* Clear Receiver Timeout flag*/
  43436. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  43437. 8012b8a: 68fb ldr r3, [r7, #12]
  43438. 8012b8c: 681b ldr r3, [r3, #0]
  43439. 8012b8e: f44f 6200 mov.w r2, #2048 @ 0x800
  43440. 8012b92: 621a str r2, [r3, #32]
  43441. /* Blocking error : transfer is aborted
  43442. Set the UART state ready to be able to start again the process,
  43443. Disable Rx Interrupts if ongoing */
  43444. UART_EndRxTransfer(huart);
  43445. 8012b94: 68f8 ldr r0, [r7, #12]
  43446. 8012b96: f000 f941 bl 8012e1c <UART_EndRxTransfer>
  43447. huart->ErrorCode = HAL_UART_ERROR_RTO;
  43448. 8012b9a: 68fb ldr r3, [r7, #12]
  43449. 8012b9c: 2220 movs r2, #32
  43450. 8012b9e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43451. /* Process Unlocked */
  43452. __HAL_UNLOCK(huart);
  43453. 8012ba2: 68fb ldr r3, [r7, #12]
  43454. 8012ba4: 2200 movs r2, #0
  43455. 8012ba6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43456. return HAL_TIMEOUT;
  43457. 8012baa: 2303 movs r3, #3
  43458. 8012bac: e00f b.n 8012bce <UART_WaitOnFlagUntilTimeout+0xd2>
  43459. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43460. 8012bae: 68fb ldr r3, [r7, #12]
  43461. 8012bb0: 681b ldr r3, [r3, #0]
  43462. 8012bb2: 69da ldr r2, [r3, #28]
  43463. 8012bb4: 68bb ldr r3, [r7, #8]
  43464. 8012bb6: 4013 ands r3, r2
  43465. 8012bb8: 68ba ldr r2, [r7, #8]
  43466. 8012bba: 429a cmp r2, r3
  43467. 8012bbc: bf0c ite eq
  43468. 8012bbe: 2301 moveq r3, #1
  43469. 8012bc0: 2300 movne r3, #0
  43470. 8012bc2: b2db uxtb r3, r3
  43471. 8012bc4: 461a mov r2, r3
  43472. 8012bc6: 79fb ldrb r3, [r7, #7]
  43473. 8012bc8: 429a cmp r2, r3
  43474. 8012bca: d0a0 beq.n 8012b0e <UART_WaitOnFlagUntilTimeout+0x12>
  43475. }
  43476. }
  43477. }
  43478. }
  43479. return HAL_OK;
  43480. 8012bcc: 2300 movs r3, #0
  43481. }
  43482. 8012bce: 4618 mov r0, r3
  43483. 8012bd0: 3710 adds r7, #16
  43484. 8012bd2: 46bd mov sp, r7
  43485. 8012bd4: bd80 pop {r7, pc}
  43486. ...
  43487. 08012bd8 <UART_Start_Receive_IT>:
  43488. * @param pData Pointer to data buffer (u8 or u16 data elements).
  43489. * @param Size Amount of data elements (u8 or u16) to be received.
  43490. * @retval HAL status
  43491. */
  43492. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  43493. {
  43494. 8012bd8: b480 push {r7}
  43495. 8012bda: b0a3 sub sp, #140 @ 0x8c
  43496. 8012bdc: af00 add r7, sp, #0
  43497. 8012bde: 60f8 str r0, [r7, #12]
  43498. 8012be0: 60b9 str r1, [r7, #8]
  43499. 8012be2: 4613 mov r3, r2
  43500. 8012be4: 80fb strh r3, [r7, #6]
  43501. huart->pRxBuffPtr = pData;
  43502. 8012be6: 68fb ldr r3, [r7, #12]
  43503. 8012be8: 68ba ldr r2, [r7, #8]
  43504. 8012bea: 659a str r2, [r3, #88] @ 0x58
  43505. huart->RxXferSize = Size;
  43506. 8012bec: 68fb ldr r3, [r7, #12]
  43507. 8012bee: 88fa ldrh r2, [r7, #6]
  43508. 8012bf0: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  43509. huart->RxXferCount = Size;
  43510. 8012bf4: 68fb ldr r3, [r7, #12]
  43511. 8012bf6: 88fa ldrh r2, [r7, #6]
  43512. 8012bf8: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43513. huart->RxISR = NULL;
  43514. 8012bfc: 68fb ldr r3, [r7, #12]
  43515. 8012bfe: 2200 movs r2, #0
  43516. 8012c00: 675a str r2, [r3, #116] @ 0x74
  43517. /* Computation of UART mask to apply to RDR register */
  43518. UART_MASK_COMPUTATION(huart);
  43519. 8012c02: 68fb ldr r3, [r7, #12]
  43520. 8012c04: 689b ldr r3, [r3, #8]
  43521. 8012c06: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43522. 8012c0a: d10e bne.n 8012c2a <UART_Start_Receive_IT+0x52>
  43523. 8012c0c: 68fb ldr r3, [r7, #12]
  43524. 8012c0e: 691b ldr r3, [r3, #16]
  43525. 8012c10: 2b00 cmp r3, #0
  43526. 8012c12: d105 bne.n 8012c20 <UART_Start_Receive_IT+0x48>
  43527. 8012c14: 68fb ldr r3, [r7, #12]
  43528. 8012c16: f240 12ff movw r2, #511 @ 0x1ff
  43529. 8012c1a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43530. 8012c1e: e02d b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43531. 8012c20: 68fb ldr r3, [r7, #12]
  43532. 8012c22: 22ff movs r2, #255 @ 0xff
  43533. 8012c24: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43534. 8012c28: e028 b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43535. 8012c2a: 68fb ldr r3, [r7, #12]
  43536. 8012c2c: 689b ldr r3, [r3, #8]
  43537. 8012c2e: 2b00 cmp r3, #0
  43538. 8012c30: d10d bne.n 8012c4e <UART_Start_Receive_IT+0x76>
  43539. 8012c32: 68fb ldr r3, [r7, #12]
  43540. 8012c34: 691b ldr r3, [r3, #16]
  43541. 8012c36: 2b00 cmp r3, #0
  43542. 8012c38: d104 bne.n 8012c44 <UART_Start_Receive_IT+0x6c>
  43543. 8012c3a: 68fb ldr r3, [r7, #12]
  43544. 8012c3c: 22ff movs r2, #255 @ 0xff
  43545. 8012c3e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43546. 8012c42: e01b b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43547. 8012c44: 68fb ldr r3, [r7, #12]
  43548. 8012c46: 227f movs r2, #127 @ 0x7f
  43549. 8012c48: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43550. 8012c4c: e016 b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43551. 8012c4e: 68fb ldr r3, [r7, #12]
  43552. 8012c50: 689b ldr r3, [r3, #8]
  43553. 8012c52: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  43554. 8012c56: d10d bne.n 8012c74 <UART_Start_Receive_IT+0x9c>
  43555. 8012c58: 68fb ldr r3, [r7, #12]
  43556. 8012c5a: 691b ldr r3, [r3, #16]
  43557. 8012c5c: 2b00 cmp r3, #0
  43558. 8012c5e: d104 bne.n 8012c6a <UART_Start_Receive_IT+0x92>
  43559. 8012c60: 68fb ldr r3, [r7, #12]
  43560. 8012c62: 227f movs r2, #127 @ 0x7f
  43561. 8012c64: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43562. 8012c68: e008 b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43563. 8012c6a: 68fb ldr r3, [r7, #12]
  43564. 8012c6c: 223f movs r2, #63 @ 0x3f
  43565. 8012c6e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43566. 8012c72: e003 b.n 8012c7c <UART_Start_Receive_IT+0xa4>
  43567. 8012c74: 68fb ldr r3, [r7, #12]
  43568. 8012c76: 2200 movs r2, #0
  43569. 8012c78: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43570. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43571. 8012c7c: 68fb ldr r3, [r7, #12]
  43572. 8012c7e: 2200 movs r2, #0
  43573. 8012c80: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43574. huart->RxState = HAL_UART_STATE_BUSY_RX;
  43575. 8012c84: 68fb ldr r3, [r7, #12]
  43576. 8012c86: 2222 movs r2, #34 @ 0x22
  43577. 8012c88: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43578. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43579. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43580. 8012c8c: 68fb ldr r3, [r7, #12]
  43581. 8012c8e: 681b ldr r3, [r3, #0]
  43582. 8012c90: 3308 adds r3, #8
  43583. 8012c92: 667b str r3, [r7, #100] @ 0x64
  43584. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43585. 8012c94: 6e7b ldr r3, [r7, #100] @ 0x64
  43586. 8012c96: e853 3f00 ldrex r3, [r3]
  43587. 8012c9a: 663b str r3, [r7, #96] @ 0x60
  43588. return(result);
  43589. 8012c9c: 6e3b ldr r3, [r7, #96] @ 0x60
  43590. 8012c9e: f043 0301 orr.w r3, r3, #1
  43591. 8012ca2: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  43592. 8012ca6: 68fb ldr r3, [r7, #12]
  43593. 8012ca8: 681b ldr r3, [r3, #0]
  43594. 8012caa: 3308 adds r3, #8
  43595. 8012cac: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  43596. 8012cb0: 673a str r2, [r7, #112] @ 0x70
  43597. 8012cb2: 66fb str r3, [r7, #108] @ 0x6c
  43598. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43599. 8012cb4: 6ef9 ldr r1, [r7, #108] @ 0x6c
  43600. 8012cb6: 6f3a ldr r2, [r7, #112] @ 0x70
  43601. 8012cb8: e841 2300 strex r3, r2, [r1]
  43602. 8012cbc: 66bb str r3, [r7, #104] @ 0x68
  43603. return(result);
  43604. 8012cbe: 6ebb ldr r3, [r7, #104] @ 0x68
  43605. 8012cc0: 2b00 cmp r3, #0
  43606. 8012cc2: d1e3 bne.n 8012c8c <UART_Start_Receive_IT+0xb4>
  43607. /* Configure Rx interrupt processing */
  43608. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  43609. 8012cc4: 68fb ldr r3, [r7, #12]
  43610. 8012cc6: 6e5b ldr r3, [r3, #100] @ 0x64
  43611. 8012cc8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  43612. 8012ccc: d14f bne.n 8012d6e <UART_Start_Receive_IT+0x196>
  43613. 8012cce: 68fb ldr r3, [r7, #12]
  43614. 8012cd0: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43615. 8012cd4: 88fa ldrh r2, [r7, #6]
  43616. 8012cd6: 429a cmp r2, r3
  43617. 8012cd8: d349 bcc.n 8012d6e <UART_Start_Receive_IT+0x196>
  43618. {
  43619. /* Set the Rx ISR function pointer according to the data word length */
  43620. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43621. 8012cda: 68fb ldr r3, [r7, #12]
  43622. 8012cdc: 689b ldr r3, [r3, #8]
  43623. 8012cde: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43624. 8012ce2: d107 bne.n 8012cf4 <UART_Start_Receive_IT+0x11c>
  43625. 8012ce4: 68fb ldr r3, [r7, #12]
  43626. 8012ce6: 691b ldr r3, [r3, #16]
  43627. 8012ce8: 2b00 cmp r3, #0
  43628. 8012cea: d103 bne.n 8012cf4 <UART_Start_Receive_IT+0x11c>
  43629. {
  43630. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  43631. 8012cec: 68fb ldr r3, [r7, #12]
  43632. 8012cee: 4a47 ldr r2, [pc, #284] @ (8012e0c <UART_Start_Receive_IT+0x234>)
  43633. 8012cf0: 675a str r2, [r3, #116] @ 0x74
  43634. 8012cf2: e002 b.n 8012cfa <UART_Start_Receive_IT+0x122>
  43635. }
  43636. else
  43637. {
  43638. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  43639. 8012cf4: 68fb ldr r3, [r7, #12]
  43640. 8012cf6: 4a46 ldr r2, [pc, #280] @ (8012e10 <UART_Start_Receive_IT+0x238>)
  43641. 8012cf8: 675a str r2, [r3, #116] @ 0x74
  43642. }
  43643. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  43644. if (huart->Init.Parity != UART_PARITY_NONE)
  43645. 8012cfa: 68fb ldr r3, [r7, #12]
  43646. 8012cfc: 691b ldr r3, [r3, #16]
  43647. 8012cfe: 2b00 cmp r3, #0
  43648. 8012d00: d01a beq.n 8012d38 <UART_Start_Receive_IT+0x160>
  43649. {
  43650. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43651. 8012d02: 68fb ldr r3, [r7, #12]
  43652. 8012d04: 681b ldr r3, [r3, #0]
  43653. 8012d06: 653b str r3, [r7, #80] @ 0x50
  43654. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43655. 8012d08: 6d3b ldr r3, [r7, #80] @ 0x50
  43656. 8012d0a: e853 3f00 ldrex r3, [r3]
  43657. 8012d0e: 64fb str r3, [r7, #76] @ 0x4c
  43658. return(result);
  43659. 8012d10: 6cfb ldr r3, [r7, #76] @ 0x4c
  43660. 8012d12: f443 7380 orr.w r3, r3, #256 @ 0x100
  43661. 8012d16: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  43662. 8012d1a: 68fb ldr r3, [r7, #12]
  43663. 8012d1c: 681b ldr r3, [r3, #0]
  43664. 8012d1e: 461a mov r2, r3
  43665. 8012d20: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  43666. 8012d24: 65fb str r3, [r7, #92] @ 0x5c
  43667. 8012d26: 65ba str r2, [r7, #88] @ 0x58
  43668. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43669. 8012d28: 6db9 ldr r1, [r7, #88] @ 0x58
  43670. 8012d2a: 6dfa ldr r2, [r7, #92] @ 0x5c
  43671. 8012d2c: e841 2300 strex r3, r2, [r1]
  43672. 8012d30: 657b str r3, [r7, #84] @ 0x54
  43673. return(result);
  43674. 8012d32: 6d7b ldr r3, [r7, #84] @ 0x54
  43675. 8012d34: 2b00 cmp r3, #0
  43676. 8012d36: d1e4 bne.n 8012d02 <UART_Start_Receive_IT+0x12a>
  43677. }
  43678. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  43679. 8012d38: 68fb ldr r3, [r7, #12]
  43680. 8012d3a: 681b ldr r3, [r3, #0]
  43681. 8012d3c: 3308 adds r3, #8
  43682. 8012d3e: 63fb str r3, [r7, #60] @ 0x3c
  43683. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43684. 8012d40: 6bfb ldr r3, [r7, #60] @ 0x3c
  43685. 8012d42: e853 3f00 ldrex r3, [r3]
  43686. 8012d46: 63bb str r3, [r7, #56] @ 0x38
  43687. return(result);
  43688. 8012d48: 6bbb ldr r3, [r7, #56] @ 0x38
  43689. 8012d4a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  43690. 8012d4e: 67fb str r3, [r7, #124] @ 0x7c
  43691. 8012d50: 68fb ldr r3, [r7, #12]
  43692. 8012d52: 681b ldr r3, [r3, #0]
  43693. 8012d54: 3308 adds r3, #8
  43694. 8012d56: 6ffa ldr r2, [r7, #124] @ 0x7c
  43695. 8012d58: 64ba str r2, [r7, #72] @ 0x48
  43696. 8012d5a: 647b str r3, [r7, #68] @ 0x44
  43697. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43698. 8012d5c: 6c79 ldr r1, [r7, #68] @ 0x44
  43699. 8012d5e: 6cba ldr r2, [r7, #72] @ 0x48
  43700. 8012d60: e841 2300 strex r3, r2, [r1]
  43701. 8012d64: 643b str r3, [r7, #64] @ 0x40
  43702. return(result);
  43703. 8012d66: 6c3b ldr r3, [r7, #64] @ 0x40
  43704. 8012d68: 2b00 cmp r3, #0
  43705. 8012d6a: d1e5 bne.n 8012d38 <UART_Start_Receive_IT+0x160>
  43706. 8012d6c: e046 b.n 8012dfc <UART_Start_Receive_IT+0x224>
  43707. }
  43708. else
  43709. {
  43710. /* Set the Rx ISR function pointer according to the data word length */
  43711. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43712. 8012d6e: 68fb ldr r3, [r7, #12]
  43713. 8012d70: 689b ldr r3, [r3, #8]
  43714. 8012d72: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43715. 8012d76: d107 bne.n 8012d88 <UART_Start_Receive_IT+0x1b0>
  43716. 8012d78: 68fb ldr r3, [r7, #12]
  43717. 8012d7a: 691b ldr r3, [r3, #16]
  43718. 8012d7c: 2b00 cmp r3, #0
  43719. 8012d7e: d103 bne.n 8012d88 <UART_Start_Receive_IT+0x1b0>
  43720. {
  43721. huart->RxISR = UART_RxISR_16BIT;
  43722. 8012d80: 68fb ldr r3, [r7, #12]
  43723. 8012d82: 4a24 ldr r2, [pc, #144] @ (8012e14 <UART_Start_Receive_IT+0x23c>)
  43724. 8012d84: 675a str r2, [r3, #116] @ 0x74
  43725. 8012d86: e002 b.n 8012d8e <UART_Start_Receive_IT+0x1b6>
  43726. }
  43727. else
  43728. {
  43729. huart->RxISR = UART_RxISR_8BIT;
  43730. 8012d88: 68fb ldr r3, [r7, #12]
  43731. 8012d8a: 4a23 ldr r2, [pc, #140] @ (8012e18 <UART_Start_Receive_IT+0x240>)
  43732. 8012d8c: 675a str r2, [r3, #116] @ 0x74
  43733. }
  43734. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  43735. if (huart->Init.Parity != UART_PARITY_NONE)
  43736. 8012d8e: 68fb ldr r3, [r7, #12]
  43737. 8012d90: 691b ldr r3, [r3, #16]
  43738. 8012d92: 2b00 cmp r3, #0
  43739. 8012d94: d019 beq.n 8012dca <UART_Start_Receive_IT+0x1f2>
  43740. {
  43741. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  43742. 8012d96: 68fb ldr r3, [r7, #12]
  43743. 8012d98: 681b ldr r3, [r3, #0]
  43744. 8012d9a: 62bb str r3, [r7, #40] @ 0x28
  43745. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43746. 8012d9c: 6abb ldr r3, [r7, #40] @ 0x28
  43747. 8012d9e: e853 3f00 ldrex r3, [r3]
  43748. 8012da2: 627b str r3, [r7, #36] @ 0x24
  43749. return(result);
  43750. 8012da4: 6a7b ldr r3, [r7, #36] @ 0x24
  43751. 8012da6: f443 7390 orr.w r3, r3, #288 @ 0x120
  43752. 8012daa: 677b str r3, [r7, #116] @ 0x74
  43753. 8012dac: 68fb ldr r3, [r7, #12]
  43754. 8012dae: 681b ldr r3, [r3, #0]
  43755. 8012db0: 461a mov r2, r3
  43756. 8012db2: 6f7b ldr r3, [r7, #116] @ 0x74
  43757. 8012db4: 637b str r3, [r7, #52] @ 0x34
  43758. 8012db6: 633a str r2, [r7, #48] @ 0x30
  43759. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43760. 8012db8: 6b39 ldr r1, [r7, #48] @ 0x30
  43761. 8012dba: 6b7a ldr r2, [r7, #52] @ 0x34
  43762. 8012dbc: e841 2300 strex r3, r2, [r1]
  43763. 8012dc0: 62fb str r3, [r7, #44] @ 0x2c
  43764. return(result);
  43765. 8012dc2: 6afb ldr r3, [r7, #44] @ 0x2c
  43766. 8012dc4: 2b00 cmp r3, #0
  43767. 8012dc6: d1e6 bne.n 8012d96 <UART_Start_Receive_IT+0x1be>
  43768. 8012dc8: e018 b.n 8012dfc <UART_Start_Receive_IT+0x224>
  43769. }
  43770. else
  43771. {
  43772. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  43773. 8012dca: 68fb ldr r3, [r7, #12]
  43774. 8012dcc: 681b ldr r3, [r3, #0]
  43775. 8012dce: 617b str r3, [r7, #20]
  43776. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43777. 8012dd0: 697b ldr r3, [r7, #20]
  43778. 8012dd2: e853 3f00 ldrex r3, [r3]
  43779. 8012dd6: 613b str r3, [r7, #16]
  43780. return(result);
  43781. 8012dd8: 693b ldr r3, [r7, #16]
  43782. 8012dda: f043 0320 orr.w r3, r3, #32
  43783. 8012dde: 67bb str r3, [r7, #120] @ 0x78
  43784. 8012de0: 68fb ldr r3, [r7, #12]
  43785. 8012de2: 681b ldr r3, [r3, #0]
  43786. 8012de4: 461a mov r2, r3
  43787. 8012de6: 6fbb ldr r3, [r7, #120] @ 0x78
  43788. 8012de8: 623b str r3, [r7, #32]
  43789. 8012dea: 61fa str r2, [r7, #28]
  43790. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43791. 8012dec: 69f9 ldr r1, [r7, #28]
  43792. 8012dee: 6a3a ldr r2, [r7, #32]
  43793. 8012df0: e841 2300 strex r3, r2, [r1]
  43794. 8012df4: 61bb str r3, [r7, #24]
  43795. return(result);
  43796. 8012df6: 69bb ldr r3, [r7, #24]
  43797. 8012df8: 2b00 cmp r3, #0
  43798. 8012dfa: d1e6 bne.n 8012dca <UART_Start_Receive_IT+0x1f2>
  43799. }
  43800. }
  43801. return HAL_OK;
  43802. 8012dfc: 2300 movs r3, #0
  43803. }
  43804. 8012dfe: 4618 mov r0, r3
  43805. 8012e00: 378c adds r7, #140 @ 0x8c
  43806. 8012e02: 46bd mov sp, r7
  43807. 8012e04: f85d 7b04 ldr.w r7, [sp], #4
  43808. 8012e08: 4770 bx lr
  43809. 8012e0a: bf00 nop
  43810. 8012e0c: 08013981 .word 0x08013981
  43811. 8012e10: 08013621 .word 0x08013621
  43812. 8012e14: 08013469 .word 0x08013469
  43813. 8012e18: 080132b1 .word 0x080132b1
  43814. 08012e1c <UART_EndRxTransfer>:
  43815. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  43816. * @param huart UART handle.
  43817. * @retval None
  43818. */
  43819. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  43820. {
  43821. 8012e1c: b480 push {r7}
  43822. 8012e1e: b095 sub sp, #84 @ 0x54
  43823. 8012e20: af00 add r7, sp, #0
  43824. 8012e22: 6078 str r0, [r7, #4]
  43825. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  43826. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43827. 8012e24: 687b ldr r3, [r7, #4]
  43828. 8012e26: 681b ldr r3, [r3, #0]
  43829. 8012e28: 637b str r3, [r7, #52] @ 0x34
  43830. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43831. 8012e2a: 6b7b ldr r3, [r7, #52] @ 0x34
  43832. 8012e2c: e853 3f00 ldrex r3, [r3]
  43833. 8012e30: 633b str r3, [r7, #48] @ 0x30
  43834. return(result);
  43835. 8012e32: 6b3b ldr r3, [r7, #48] @ 0x30
  43836. 8012e34: f423 7390 bic.w r3, r3, #288 @ 0x120
  43837. 8012e38: 64fb str r3, [r7, #76] @ 0x4c
  43838. 8012e3a: 687b ldr r3, [r7, #4]
  43839. 8012e3c: 681b ldr r3, [r3, #0]
  43840. 8012e3e: 461a mov r2, r3
  43841. 8012e40: 6cfb ldr r3, [r7, #76] @ 0x4c
  43842. 8012e42: 643b str r3, [r7, #64] @ 0x40
  43843. 8012e44: 63fa str r2, [r7, #60] @ 0x3c
  43844. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43845. 8012e46: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43846. 8012e48: 6c3a ldr r2, [r7, #64] @ 0x40
  43847. 8012e4a: e841 2300 strex r3, r2, [r1]
  43848. 8012e4e: 63bb str r3, [r7, #56] @ 0x38
  43849. return(result);
  43850. 8012e50: 6bbb ldr r3, [r7, #56] @ 0x38
  43851. 8012e52: 2b00 cmp r3, #0
  43852. 8012e54: d1e6 bne.n 8012e24 <UART_EndRxTransfer+0x8>
  43853. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  43854. 8012e56: 687b ldr r3, [r7, #4]
  43855. 8012e58: 681b ldr r3, [r3, #0]
  43856. 8012e5a: 3308 adds r3, #8
  43857. 8012e5c: 623b str r3, [r7, #32]
  43858. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43859. 8012e5e: 6a3b ldr r3, [r7, #32]
  43860. 8012e60: e853 3f00 ldrex r3, [r3]
  43861. 8012e64: 61fb str r3, [r7, #28]
  43862. return(result);
  43863. 8012e66: 69fa ldr r2, [r7, #28]
  43864. 8012e68: 4b1e ldr r3, [pc, #120] @ (8012ee4 <UART_EndRxTransfer+0xc8>)
  43865. 8012e6a: 4013 ands r3, r2
  43866. 8012e6c: 64bb str r3, [r7, #72] @ 0x48
  43867. 8012e6e: 687b ldr r3, [r7, #4]
  43868. 8012e70: 681b ldr r3, [r3, #0]
  43869. 8012e72: 3308 adds r3, #8
  43870. 8012e74: 6cba ldr r2, [r7, #72] @ 0x48
  43871. 8012e76: 62fa str r2, [r7, #44] @ 0x2c
  43872. 8012e78: 62bb str r3, [r7, #40] @ 0x28
  43873. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43874. 8012e7a: 6ab9 ldr r1, [r7, #40] @ 0x28
  43875. 8012e7c: 6afa ldr r2, [r7, #44] @ 0x2c
  43876. 8012e7e: e841 2300 strex r3, r2, [r1]
  43877. 8012e82: 627b str r3, [r7, #36] @ 0x24
  43878. return(result);
  43879. 8012e84: 6a7b ldr r3, [r7, #36] @ 0x24
  43880. 8012e86: 2b00 cmp r3, #0
  43881. 8012e88: d1e5 bne.n 8012e56 <UART_EndRxTransfer+0x3a>
  43882. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  43883. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43884. 8012e8a: 687b ldr r3, [r7, #4]
  43885. 8012e8c: 6edb ldr r3, [r3, #108] @ 0x6c
  43886. 8012e8e: 2b01 cmp r3, #1
  43887. 8012e90: d118 bne.n 8012ec4 <UART_EndRxTransfer+0xa8>
  43888. {
  43889. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43890. 8012e92: 687b ldr r3, [r7, #4]
  43891. 8012e94: 681b ldr r3, [r3, #0]
  43892. 8012e96: 60fb str r3, [r7, #12]
  43893. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43894. 8012e98: 68fb ldr r3, [r7, #12]
  43895. 8012e9a: e853 3f00 ldrex r3, [r3]
  43896. 8012e9e: 60bb str r3, [r7, #8]
  43897. return(result);
  43898. 8012ea0: 68bb ldr r3, [r7, #8]
  43899. 8012ea2: f023 0310 bic.w r3, r3, #16
  43900. 8012ea6: 647b str r3, [r7, #68] @ 0x44
  43901. 8012ea8: 687b ldr r3, [r7, #4]
  43902. 8012eaa: 681b ldr r3, [r3, #0]
  43903. 8012eac: 461a mov r2, r3
  43904. 8012eae: 6c7b ldr r3, [r7, #68] @ 0x44
  43905. 8012eb0: 61bb str r3, [r7, #24]
  43906. 8012eb2: 617a str r2, [r7, #20]
  43907. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43908. 8012eb4: 6979 ldr r1, [r7, #20]
  43909. 8012eb6: 69ba ldr r2, [r7, #24]
  43910. 8012eb8: e841 2300 strex r3, r2, [r1]
  43911. 8012ebc: 613b str r3, [r7, #16]
  43912. return(result);
  43913. 8012ebe: 693b ldr r3, [r7, #16]
  43914. 8012ec0: 2b00 cmp r3, #0
  43915. 8012ec2: d1e6 bne.n 8012e92 <UART_EndRxTransfer+0x76>
  43916. }
  43917. /* At end of Rx process, restore huart->RxState to Ready */
  43918. huart->RxState = HAL_UART_STATE_READY;
  43919. 8012ec4: 687b ldr r3, [r7, #4]
  43920. 8012ec6: 2220 movs r2, #32
  43921. 8012ec8: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43922. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43923. 8012ecc: 687b ldr r3, [r7, #4]
  43924. 8012ece: 2200 movs r2, #0
  43925. 8012ed0: 66da str r2, [r3, #108] @ 0x6c
  43926. /* Reset RxIsr function pointer */
  43927. huart->RxISR = NULL;
  43928. 8012ed2: 687b ldr r3, [r7, #4]
  43929. 8012ed4: 2200 movs r2, #0
  43930. 8012ed6: 675a str r2, [r3, #116] @ 0x74
  43931. }
  43932. 8012ed8: bf00 nop
  43933. 8012eda: 3754 adds r7, #84 @ 0x54
  43934. 8012edc: 46bd mov sp, r7
  43935. 8012ede: f85d 7b04 ldr.w r7, [sp], #4
  43936. 8012ee2: 4770 bx lr
  43937. 8012ee4: effffffe .word 0xeffffffe
  43938. 08012ee8 <UART_DMAAbortOnError>:
  43939. * (To be called at end of DMA Abort procedure following error occurrence).
  43940. * @param hdma DMA handle.
  43941. * @retval None
  43942. */
  43943. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43944. {
  43945. 8012ee8: b580 push {r7, lr}
  43946. 8012eea: b084 sub sp, #16
  43947. 8012eec: af00 add r7, sp, #0
  43948. 8012eee: 6078 str r0, [r7, #4]
  43949. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43950. 8012ef0: 687b ldr r3, [r7, #4]
  43951. 8012ef2: 6b9b ldr r3, [r3, #56] @ 0x38
  43952. 8012ef4: 60fb str r3, [r7, #12]
  43953. huart->RxXferCount = 0U;
  43954. 8012ef6: 68fb ldr r3, [r7, #12]
  43955. 8012ef8: 2200 movs r2, #0
  43956. 8012efa: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43957. huart->TxXferCount = 0U;
  43958. 8012efe: 68fb ldr r3, [r7, #12]
  43959. 8012f00: 2200 movs r2, #0
  43960. 8012f02: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43961. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43962. /*Call registered error callback*/
  43963. huart->ErrorCallback(huart);
  43964. #else
  43965. /*Call legacy weak error callback*/
  43966. HAL_UART_ErrorCallback(huart);
  43967. 8012f06: 68f8 ldr r0, [r7, #12]
  43968. 8012f08: f7fe ff3a bl 8011d80 <HAL_UART_ErrorCallback>
  43969. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43970. }
  43971. 8012f0c: bf00 nop
  43972. 8012f0e: 3710 adds r7, #16
  43973. 8012f10: 46bd mov sp, r7
  43974. 8012f12: bd80 pop {r7, pc}
  43975. 08012f14 <UART_TxISR_8BIT>:
  43976. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43977. * @param huart UART handle.
  43978. * @retval None
  43979. */
  43980. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43981. {
  43982. 8012f14: b480 push {r7}
  43983. 8012f16: b08f sub sp, #60 @ 0x3c
  43984. 8012f18: af00 add r7, sp, #0
  43985. 8012f1a: 6078 str r0, [r7, #4]
  43986. /* Check that a Tx process is ongoing */
  43987. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43988. 8012f1c: 687b ldr r3, [r7, #4]
  43989. 8012f1e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43990. 8012f22: 2b21 cmp r3, #33 @ 0x21
  43991. 8012f24: d14c bne.n 8012fc0 <UART_TxISR_8BIT+0xac>
  43992. {
  43993. if (huart->TxXferCount == 0U)
  43994. 8012f26: 687b ldr r3, [r7, #4]
  43995. 8012f28: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43996. 8012f2c: b29b uxth r3, r3
  43997. 8012f2e: 2b00 cmp r3, #0
  43998. 8012f30: d132 bne.n 8012f98 <UART_TxISR_8BIT+0x84>
  43999. {
  44000. /* Disable the UART Transmit Data Register Empty Interrupt */
  44001. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  44002. 8012f32: 687b ldr r3, [r7, #4]
  44003. 8012f34: 681b ldr r3, [r3, #0]
  44004. 8012f36: 623b str r3, [r7, #32]
  44005. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44006. 8012f38: 6a3b ldr r3, [r7, #32]
  44007. 8012f3a: e853 3f00 ldrex r3, [r3]
  44008. 8012f3e: 61fb str r3, [r7, #28]
  44009. return(result);
  44010. 8012f40: 69fb ldr r3, [r7, #28]
  44011. 8012f42: f023 0380 bic.w r3, r3, #128 @ 0x80
  44012. 8012f46: 637b str r3, [r7, #52] @ 0x34
  44013. 8012f48: 687b ldr r3, [r7, #4]
  44014. 8012f4a: 681b ldr r3, [r3, #0]
  44015. 8012f4c: 461a mov r2, r3
  44016. 8012f4e: 6b7b ldr r3, [r7, #52] @ 0x34
  44017. 8012f50: 62fb str r3, [r7, #44] @ 0x2c
  44018. 8012f52: 62ba str r2, [r7, #40] @ 0x28
  44019. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44020. 8012f54: 6ab9 ldr r1, [r7, #40] @ 0x28
  44021. 8012f56: 6afa ldr r2, [r7, #44] @ 0x2c
  44022. 8012f58: e841 2300 strex r3, r2, [r1]
  44023. 8012f5c: 627b str r3, [r7, #36] @ 0x24
  44024. return(result);
  44025. 8012f5e: 6a7b ldr r3, [r7, #36] @ 0x24
  44026. 8012f60: 2b00 cmp r3, #0
  44027. 8012f62: d1e6 bne.n 8012f32 <UART_TxISR_8BIT+0x1e>
  44028. /* Enable the UART Transmit Complete Interrupt */
  44029. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44030. 8012f64: 687b ldr r3, [r7, #4]
  44031. 8012f66: 681b ldr r3, [r3, #0]
  44032. 8012f68: 60fb str r3, [r7, #12]
  44033. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44034. 8012f6a: 68fb ldr r3, [r7, #12]
  44035. 8012f6c: e853 3f00 ldrex r3, [r3]
  44036. 8012f70: 60bb str r3, [r7, #8]
  44037. return(result);
  44038. 8012f72: 68bb ldr r3, [r7, #8]
  44039. 8012f74: f043 0340 orr.w r3, r3, #64 @ 0x40
  44040. 8012f78: 633b str r3, [r7, #48] @ 0x30
  44041. 8012f7a: 687b ldr r3, [r7, #4]
  44042. 8012f7c: 681b ldr r3, [r3, #0]
  44043. 8012f7e: 461a mov r2, r3
  44044. 8012f80: 6b3b ldr r3, [r7, #48] @ 0x30
  44045. 8012f82: 61bb str r3, [r7, #24]
  44046. 8012f84: 617a str r2, [r7, #20]
  44047. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44048. 8012f86: 6979 ldr r1, [r7, #20]
  44049. 8012f88: 69ba ldr r2, [r7, #24]
  44050. 8012f8a: e841 2300 strex r3, r2, [r1]
  44051. 8012f8e: 613b str r3, [r7, #16]
  44052. return(result);
  44053. 8012f90: 693b ldr r3, [r7, #16]
  44054. 8012f92: 2b00 cmp r3, #0
  44055. 8012f94: d1e6 bne.n 8012f64 <UART_TxISR_8BIT+0x50>
  44056. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44057. huart->pTxBuffPtr++;
  44058. huart->TxXferCount--;
  44059. }
  44060. }
  44061. }
  44062. 8012f96: e013 b.n 8012fc0 <UART_TxISR_8BIT+0xac>
  44063. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44064. 8012f98: 687b ldr r3, [r7, #4]
  44065. 8012f9a: 6d1b ldr r3, [r3, #80] @ 0x50
  44066. 8012f9c: 781a ldrb r2, [r3, #0]
  44067. 8012f9e: 687b ldr r3, [r7, #4]
  44068. 8012fa0: 681b ldr r3, [r3, #0]
  44069. 8012fa2: 629a str r2, [r3, #40] @ 0x28
  44070. huart->pTxBuffPtr++;
  44071. 8012fa4: 687b ldr r3, [r7, #4]
  44072. 8012fa6: 6d1b ldr r3, [r3, #80] @ 0x50
  44073. 8012fa8: 1c5a adds r2, r3, #1
  44074. 8012faa: 687b ldr r3, [r7, #4]
  44075. 8012fac: 651a str r2, [r3, #80] @ 0x50
  44076. huart->TxXferCount--;
  44077. 8012fae: 687b ldr r3, [r7, #4]
  44078. 8012fb0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44079. 8012fb4: b29b uxth r3, r3
  44080. 8012fb6: 3b01 subs r3, #1
  44081. 8012fb8: b29a uxth r2, r3
  44082. 8012fba: 687b ldr r3, [r7, #4]
  44083. 8012fbc: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44084. }
  44085. 8012fc0: bf00 nop
  44086. 8012fc2: 373c adds r7, #60 @ 0x3c
  44087. 8012fc4: 46bd mov sp, r7
  44088. 8012fc6: f85d 7b04 ldr.w r7, [sp], #4
  44089. 8012fca: 4770 bx lr
  44090. 08012fcc <UART_TxISR_16BIT>:
  44091. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44092. * @param huart UART handle.
  44093. * @retval None
  44094. */
  44095. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  44096. {
  44097. 8012fcc: b480 push {r7}
  44098. 8012fce: b091 sub sp, #68 @ 0x44
  44099. 8012fd0: af00 add r7, sp, #0
  44100. 8012fd2: 6078 str r0, [r7, #4]
  44101. const uint16_t *tmp;
  44102. /* Check that a Tx process is ongoing */
  44103. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44104. 8012fd4: 687b ldr r3, [r7, #4]
  44105. 8012fd6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44106. 8012fda: 2b21 cmp r3, #33 @ 0x21
  44107. 8012fdc: d151 bne.n 8013082 <UART_TxISR_16BIT+0xb6>
  44108. {
  44109. if (huart->TxXferCount == 0U)
  44110. 8012fde: 687b ldr r3, [r7, #4]
  44111. 8012fe0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44112. 8012fe4: b29b uxth r3, r3
  44113. 8012fe6: 2b00 cmp r3, #0
  44114. 8012fe8: d132 bne.n 8013050 <UART_TxISR_16BIT+0x84>
  44115. {
  44116. /* Disable the UART Transmit Data Register Empty Interrupt */
  44117. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  44118. 8012fea: 687b ldr r3, [r7, #4]
  44119. 8012fec: 681b ldr r3, [r3, #0]
  44120. 8012fee: 627b str r3, [r7, #36] @ 0x24
  44121. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44122. 8012ff0: 6a7b ldr r3, [r7, #36] @ 0x24
  44123. 8012ff2: e853 3f00 ldrex r3, [r3]
  44124. 8012ff6: 623b str r3, [r7, #32]
  44125. return(result);
  44126. 8012ff8: 6a3b ldr r3, [r7, #32]
  44127. 8012ffa: f023 0380 bic.w r3, r3, #128 @ 0x80
  44128. 8012ffe: 63bb str r3, [r7, #56] @ 0x38
  44129. 8013000: 687b ldr r3, [r7, #4]
  44130. 8013002: 681b ldr r3, [r3, #0]
  44131. 8013004: 461a mov r2, r3
  44132. 8013006: 6bbb ldr r3, [r7, #56] @ 0x38
  44133. 8013008: 633b str r3, [r7, #48] @ 0x30
  44134. 801300a: 62fa str r2, [r7, #44] @ 0x2c
  44135. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44136. 801300c: 6af9 ldr r1, [r7, #44] @ 0x2c
  44137. 801300e: 6b3a ldr r2, [r7, #48] @ 0x30
  44138. 8013010: e841 2300 strex r3, r2, [r1]
  44139. 8013014: 62bb str r3, [r7, #40] @ 0x28
  44140. return(result);
  44141. 8013016: 6abb ldr r3, [r7, #40] @ 0x28
  44142. 8013018: 2b00 cmp r3, #0
  44143. 801301a: d1e6 bne.n 8012fea <UART_TxISR_16BIT+0x1e>
  44144. /* Enable the UART Transmit Complete Interrupt */
  44145. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44146. 801301c: 687b ldr r3, [r7, #4]
  44147. 801301e: 681b ldr r3, [r3, #0]
  44148. 8013020: 613b str r3, [r7, #16]
  44149. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44150. 8013022: 693b ldr r3, [r7, #16]
  44151. 8013024: e853 3f00 ldrex r3, [r3]
  44152. 8013028: 60fb str r3, [r7, #12]
  44153. return(result);
  44154. 801302a: 68fb ldr r3, [r7, #12]
  44155. 801302c: f043 0340 orr.w r3, r3, #64 @ 0x40
  44156. 8013030: 637b str r3, [r7, #52] @ 0x34
  44157. 8013032: 687b ldr r3, [r7, #4]
  44158. 8013034: 681b ldr r3, [r3, #0]
  44159. 8013036: 461a mov r2, r3
  44160. 8013038: 6b7b ldr r3, [r7, #52] @ 0x34
  44161. 801303a: 61fb str r3, [r7, #28]
  44162. 801303c: 61ba str r2, [r7, #24]
  44163. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44164. 801303e: 69b9 ldr r1, [r7, #24]
  44165. 8013040: 69fa ldr r2, [r7, #28]
  44166. 8013042: e841 2300 strex r3, r2, [r1]
  44167. 8013046: 617b str r3, [r7, #20]
  44168. return(result);
  44169. 8013048: 697b ldr r3, [r7, #20]
  44170. 801304a: 2b00 cmp r3, #0
  44171. 801304c: d1e6 bne.n 801301c <UART_TxISR_16BIT+0x50>
  44172. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44173. huart->pTxBuffPtr += 2U;
  44174. huart->TxXferCount--;
  44175. }
  44176. }
  44177. }
  44178. 801304e: e018 b.n 8013082 <UART_TxISR_16BIT+0xb6>
  44179. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44180. 8013050: 687b ldr r3, [r7, #4]
  44181. 8013052: 6d1b ldr r3, [r3, #80] @ 0x50
  44182. 8013054: 63fb str r3, [r7, #60] @ 0x3c
  44183. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44184. 8013056: 6bfb ldr r3, [r7, #60] @ 0x3c
  44185. 8013058: 881b ldrh r3, [r3, #0]
  44186. 801305a: 461a mov r2, r3
  44187. 801305c: 687b ldr r3, [r7, #4]
  44188. 801305e: 681b ldr r3, [r3, #0]
  44189. 8013060: f3c2 0208 ubfx r2, r2, #0, #9
  44190. 8013064: 629a str r2, [r3, #40] @ 0x28
  44191. huart->pTxBuffPtr += 2U;
  44192. 8013066: 687b ldr r3, [r7, #4]
  44193. 8013068: 6d1b ldr r3, [r3, #80] @ 0x50
  44194. 801306a: 1c9a adds r2, r3, #2
  44195. 801306c: 687b ldr r3, [r7, #4]
  44196. 801306e: 651a str r2, [r3, #80] @ 0x50
  44197. huart->TxXferCount--;
  44198. 8013070: 687b ldr r3, [r7, #4]
  44199. 8013072: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44200. 8013076: b29b uxth r3, r3
  44201. 8013078: 3b01 subs r3, #1
  44202. 801307a: b29a uxth r2, r3
  44203. 801307c: 687b ldr r3, [r7, #4]
  44204. 801307e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44205. }
  44206. 8013082: bf00 nop
  44207. 8013084: 3744 adds r7, #68 @ 0x44
  44208. 8013086: 46bd mov sp, r7
  44209. 8013088: f85d 7b04 ldr.w r7, [sp], #4
  44210. 801308c: 4770 bx lr
  44211. 0801308e <UART_TxISR_8BIT_FIFOEN>:
  44212. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44213. * @param huart UART handle.
  44214. * @retval None
  44215. */
  44216. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44217. {
  44218. 801308e: b480 push {r7}
  44219. 8013090: b091 sub sp, #68 @ 0x44
  44220. 8013092: af00 add r7, sp, #0
  44221. 8013094: 6078 str r0, [r7, #4]
  44222. uint16_t nb_tx_data;
  44223. /* Check that a Tx process is ongoing */
  44224. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44225. 8013096: 687b ldr r3, [r7, #4]
  44226. 8013098: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44227. 801309c: 2b21 cmp r3, #33 @ 0x21
  44228. 801309e: d160 bne.n 8013162 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44229. {
  44230. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44231. 80130a0: 687b ldr r3, [r7, #4]
  44232. 80130a2: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44233. 80130a6: 87fb strh r3, [r7, #62] @ 0x3e
  44234. 80130a8: e057 b.n 801315a <UART_TxISR_8BIT_FIFOEN+0xcc>
  44235. {
  44236. if (huart->TxXferCount == 0U)
  44237. 80130aa: 687b ldr r3, [r7, #4]
  44238. 80130ac: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44239. 80130b0: b29b uxth r3, r3
  44240. 80130b2: 2b00 cmp r3, #0
  44241. 80130b4: d133 bne.n 801311e <UART_TxISR_8BIT_FIFOEN+0x90>
  44242. {
  44243. /* Disable the TX FIFO threshold interrupt */
  44244. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44245. 80130b6: 687b ldr r3, [r7, #4]
  44246. 80130b8: 681b ldr r3, [r3, #0]
  44247. 80130ba: 3308 adds r3, #8
  44248. 80130bc: 627b str r3, [r7, #36] @ 0x24
  44249. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44250. 80130be: 6a7b ldr r3, [r7, #36] @ 0x24
  44251. 80130c0: e853 3f00 ldrex r3, [r3]
  44252. 80130c4: 623b str r3, [r7, #32]
  44253. return(result);
  44254. 80130c6: 6a3b ldr r3, [r7, #32]
  44255. 80130c8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44256. 80130cc: 63bb str r3, [r7, #56] @ 0x38
  44257. 80130ce: 687b ldr r3, [r7, #4]
  44258. 80130d0: 681b ldr r3, [r3, #0]
  44259. 80130d2: 3308 adds r3, #8
  44260. 80130d4: 6bba ldr r2, [r7, #56] @ 0x38
  44261. 80130d6: 633a str r2, [r7, #48] @ 0x30
  44262. 80130d8: 62fb str r3, [r7, #44] @ 0x2c
  44263. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44264. 80130da: 6af9 ldr r1, [r7, #44] @ 0x2c
  44265. 80130dc: 6b3a ldr r2, [r7, #48] @ 0x30
  44266. 80130de: e841 2300 strex r3, r2, [r1]
  44267. 80130e2: 62bb str r3, [r7, #40] @ 0x28
  44268. return(result);
  44269. 80130e4: 6abb ldr r3, [r7, #40] @ 0x28
  44270. 80130e6: 2b00 cmp r3, #0
  44271. 80130e8: d1e5 bne.n 80130b6 <UART_TxISR_8BIT_FIFOEN+0x28>
  44272. /* Enable the UART Transmit Complete Interrupt */
  44273. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44274. 80130ea: 687b ldr r3, [r7, #4]
  44275. 80130ec: 681b ldr r3, [r3, #0]
  44276. 80130ee: 613b str r3, [r7, #16]
  44277. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44278. 80130f0: 693b ldr r3, [r7, #16]
  44279. 80130f2: e853 3f00 ldrex r3, [r3]
  44280. 80130f6: 60fb str r3, [r7, #12]
  44281. return(result);
  44282. 80130f8: 68fb ldr r3, [r7, #12]
  44283. 80130fa: f043 0340 orr.w r3, r3, #64 @ 0x40
  44284. 80130fe: 637b str r3, [r7, #52] @ 0x34
  44285. 8013100: 687b ldr r3, [r7, #4]
  44286. 8013102: 681b ldr r3, [r3, #0]
  44287. 8013104: 461a mov r2, r3
  44288. 8013106: 6b7b ldr r3, [r7, #52] @ 0x34
  44289. 8013108: 61fb str r3, [r7, #28]
  44290. 801310a: 61ba str r2, [r7, #24]
  44291. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44292. 801310c: 69b9 ldr r1, [r7, #24]
  44293. 801310e: 69fa ldr r2, [r7, #28]
  44294. 8013110: e841 2300 strex r3, r2, [r1]
  44295. 8013114: 617b str r3, [r7, #20]
  44296. return(result);
  44297. 8013116: 697b ldr r3, [r7, #20]
  44298. 8013118: 2b00 cmp r3, #0
  44299. 801311a: d1e6 bne.n 80130ea <UART_TxISR_8BIT_FIFOEN+0x5c>
  44300. break; /* force exit loop */
  44301. 801311c: e021 b.n 8013162 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44302. }
  44303. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44304. 801311e: 687b ldr r3, [r7, #4]
  44305. 8013120: 681b ldr r3, [r3, #0]
  44306. 8013122: 69db ldr r3, [r3, #28]
  44307. 8013124: f003 0380 and.w r3, r3, #128 @ 0x80
  44308. 8013128: 2b00 cmp r3, #0
  44309. 801312a: d013 beq.n 8013154 <UART_TxISR_8BIT_FIFOEN+0xc6>
  44310. {
  44311. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44312. 801312c: 687b ldr r3, [r7, #4]
  44313. 801312e: 6d1b ldr r3, [r3, #80] @ 0x50
  44314. 8013130: 781a ldrb r2, [r3, #0]
  44315. 8013132: 687b ldr r3, [r7, #4]
  44316. 8013134: 681b ldr r3, [r3, #0]
  44317. 8013136: 629a str r2, [r3, #40] @ 0x28
  44318. huart->pTxBuffPtr++;
  44319. 8013138: 687b ldr r3, [r7, #4]
  44320. 801313a: 6d1b ldr r3, [r3, #80] @ 0x50
  44321. 801313c: 1c5a adds r2, r3, #1
  44322. 801313e: 687b ldr r3, [r7, #4]
  44323. 8013140: 651a str r2, [r3, #80] @ 0x50
  44324. huart->TxXferCount--;
  44325. 8013142: 687b ldr r3, [r7, #4]
  44326. 8013144: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44327. 8013148: b29b uxth r3, r3
  44328. 801314a: 3b01 subs r3, #1
  44329. 801314c: b29a uxth r2, r3
  44330. 801314e: 687b ldr r3, [r7, #4]
  44331. 8013150: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44332. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44333. 8013154: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44334. 8013156: 3b01 subs r3, #1
  44335. 8013158: 87fb strh r3, [r7, #62] @ 0x3e
  44336. 801315a: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44337. 801315c: 2b00 cmp r3, #0
  44338. 801315e: d1a4 bne.n 80130aa <UART_TxISR_8BIT_FIFOEN+0x1c>
  44339. {
  44340. /* Nothing to do */
  44341. }
  44342. }
  44343. }
  44344. }
  44345. 8013160: e7ff b.n 8013162 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44346. 8013162: bf00 nop
  44347. 8013164: 3744 adds r7, #68 @ 0x44
  44348. 8013166: 46bd mov sp, r7
  44349. 8013168: f85d 7b04 ldr.w r7, [sp], #4
  44350. 801316c: 4770 bx lr
  44351. 0801316e <UART_TxISR_16BIT_FIFOEN>:
  44352. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44353. * @param huart UART handle.
  44354. * @retval None
  44355. */
  44356. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44357. {
  44358. 801316e: b480 push {r7}
  44359. 8013170: b091 sub sp, #68 @ 0x44
  44360. 8013172: af00 add r7, sp, #0
  44361. 8013174: 6078 str r0, [r7, #4]
  44362. const uint16_t *tmp;
  44363. uint16_t nb_tx_data;
  44364. /* Check that a Tx process is ongoing */
  44365. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44366. 8013176: 687b ldr r3, [r7, #4]
  44367. 8013178: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44368. 801317c: 2b21 cmp r3, #33 @ 0x21
  44369. 801317e: d165 bne.n 801324c <UART_TxISR_16BIT_FIFOEN+0xde>
  44370. {
  44371. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44372. 8013180: 687b ldr r3, [r7, #4]
  44373. 8013182: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44374. 8013186: 87fb strh r3, [r7, #62] @ 0x3e
  44375. 8013188: e05c b.n 8013244 <UART_TxISR_16BIT_FIFOEN+0xd6>
  44376. {
  44377. if (huart->TxXferCount == 0U)
  44378. 801318a: 687b ldr r3, [r7, #4]
  44379. 801318c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44380. 8013190: b29b uxth r3, r3
  44381. 8013192: 2b00 cmp r3, #0
  44382. 8013194: d133 bne.n 80131fe <UART_TxISR_16BIT_FIFOEN+0x90>
  44383. {
  44384. /* Disable the TX FIFO threshold interrupt */
  44385. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44386. 8013196: 687b ldr r3, [r7, #4]
  44387. 8013198: 681b ldr r3, [r3, #0]
  44388. 801319a: 3308 adds r3, #8
  44389. 801319c: 623b str r3, [r7, #32]
  44390. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44391. 801319e: 6a3b ldr r3, [r7, #32]
  44392. 80131a0: e853 3f00 ldrex r3, [r3]
  44393. 80131a4: 61fb str r3, [r7, #28]
  44394. return(result);
  44395. 80131a6: 69fb ldr r3, [r7, #28]
  44396. 80131a8: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44397. 80131ac: 637b str r3, [r7, #52] @ 0x34
  44398. 80131ae: 687b ldr r3, [r7, #4]
  44399. 80131b0: 681b ldr r3, [r3, #0]
  44400. 80131b2: 3308 adds r3, #8
  44401. 80131b4: 6b7a ldr r2, [r7, #52] @ 0x34
  44402. 80131b6: 62fa str r2, [r7, #44] @ 0x2c
  44403. 80131b8: 62bb str r3, [r7, #40] @ 0x28
  44404. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44405. 80131ba: 6ab9 ldr r1, [r7, #40] @ 0x28
  44406. 80131bc: 6afa ldr r2, [r7, #44] @ 0x2c
  44407. 80131be: e841 2300 strex r3, r2, [r1]
  44408. 80131c2: 627b str r3, [r7, #36] @ 0x24
  44409. return(result);
  44410. 80131c4: 6a7b ldr r3, [r7, #36] @ 0x24
  44411. 80131c6: 2b00 cmp r3, #0
  44412. 80131c8: d1e5 bne.n 8013196 <UART_TxISR_16BIT_FIFOEN+0x28>
  44413. /* Enable the UART Transmit Complete Interrupt */
  44414. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44415. 80131ca: 687b ldr r3, [r7, #4]
  44416. 80131cc: 681b ldr r3, [r3, #0]
  44417. 80131ce: 60fb str r3, [r7, #12]
  44418. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44419. 80131d0: 68fb ldr r3, [r7, #12]
  44420. 80131d2: e853 3f00 ldrex r3, [r3]
  44421. 80131d6: 60bb str r3, [r7, #8]
  44422. return(result);
  44423. 80131d8: 68bb ldr r3, [r7, #8]
  44424. 80131da: f043 0340 orr.w r3, r3, #64 @ 0x40
  44425. 80131de: 633b str r3, [r7, #48] @ 0x30
  44426. 80131e0: 687b ldr r3, [r7, #4]
  44427. 80131e2: 681b ldr r3, [r3, #0]
  44428. 80131e4: 461a mov r2, r3
  44429. 80131e6: 6b3b ldr r3, [r7, #48] @ 0x30
  44430. 80131e8: 61bb str r3, [r7, #24]
  44431. 80131ea: 617a str r2, [r7, #20]
  44432. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44433. 80131ec: 6979 ldr r1, [r7, #20]
  44434. 80131ee: 69ba ldr r2, [r7, #24]
  44435. 80131f0: e841 2300 strex r3, r2, [r1]
  44436. 80131f4: 613b str r3, [r7, #16]
  44437. return(result);
  44438. 80131f6: 693b ldr r3, [r7, #16]
  44439. 80131f8: 2b00 cmp r3, #0
  44440. 80131fa: d1e6 bne.n 80131ca <UART_TxISR_16BIT_FIFOEN+0x5c>
  44441. break; /* force exit loop */
  44442. 80131fc: e026 b.n 801324c <UART_TxISR_16BIT_FIFOEN+0xde>
  44443. }
  44444. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44445. 80131fe: 687b ldr r3, [r7, #4]
  44446. 8013200: 681b ldr r3, [r3, #0]
  44447. 8013202: 69db ldr r3, [r3, #28]
  44448. 8013204: f003 0380 and.w r3, r3, #128 @ 0x80
  44449. 8013208: 2b00 cmp r3, #0
  44450. 801320a: d018 beq.n 801323e <UART_TxISR_16BIT_FIFOEN+0xd0>
  44451. {
  44452. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44453. 801320c: 687b ldr r3, [r7, #4]
  44454. 801320e: 6d1b ldr r3, [r3, #80] @ 0x50
  44455. 8013210: 63bb str r3, [r7, #56] @ 0x38
  44456. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44457. 8013212: 6bbb ldr r3, [r7, #56] @ 0x38
  44458. 8013214: 881b ldrh r3, [r3, #0]
  44459. 8013216: 461a mov r2, r3
  44460. 8013218: 687b ldr r3, [r7, #4]
  44461. 801321a: 681b ldr r3, [r3, #0]
  44462. 801321c: f3c2 0208 ubfx r2, r2, #0, #9
  44463. 8013220: 629a str r2, [r3, #40] @ 0x28
  44464. huart->pTxBuffPtr += 2U;
  44465. 8013222: 687b ldr r3, [r7, #4]
  44466. 8013224: 6d1b ldr r3, [r3, #80] @ 0x50
  44467. 8013226: 1c9a adds r2, r3, #2
  44468. 8013228: 687b ldr r3, [r7, #4]
  44469. 801322a: 651a str r2, [r3, #80] @ 0x50
  44470. huart->TxXferCount--;
  44471. 801322c: 687b ldr r3, [r7, #4]
  44472. 801322e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44473. 8013232: b29b uxth r3, r3
  44474. 8013234: 3b01 subs r3, #1
  44475. 8013236: b29a uxth r2, r3
  44476. 8013238: 687b ldr r3, [r7, #4]
  44477. 801323a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44478. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44479. 801323e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44480. 8013240: 3b01 subs r3, #1
  44481. 8013242: 87fb strh r3, [r7, #62] @ 0x3e
  44482. 8013244: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44483. 8013246: 2b00 cmp r3, #0
  44484. 8013248: d19f bne.n 801318a <UART_TxISR_16BIT_FIFOEN+0x1c>
  44485. {
  44486. /* Nothing to do */
  44487. }
  44488. }
  44489. }
  44490. }
  44491. 801324a: e7ff b.n 801324c <UART_TxISR_16BIT_FIFOEN+0xde>
  44492. 801324c: bf00 nop
  44493. 801324e: 3744 adds r7, #68 @ 0x44
  44494. 8013250: 46bd mov sp, r7
  44495. 8013252: f85d 7b04 ldr.w r7, [sp], #4
  44496. 8013256: 4770 bx lr
  44497. 08013258 <UART_EndTransmit_IT>:
  44498. * @param huart pointer to a UART_HandleTypeDef structure that contains
  44499. * the configuration information for the specified UART module.
  44500. * @retval None
  44501. */
  44502. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  44503. {
  44504. 8013258: b580 push {r7, lr}
  44505. 801325a: b088 sub sp, #32
  44506. 801325c: af00 add r7, sp, #0
  44507. 801325e: 6078 str r0, [r7, #4]
  44508. /* Disable the UART Transmit Complete Interrupt */
  44509. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44510. 8013260: 687b ldr r3, [r7, #4]
  44511. 8013262: 681b ldr r3, [r3, #0]
  44512. 8013264: 60fb str r3, [r7, #12]
  44513. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44514. 8013266: 68fb ldr r3, [r7, #12]
  44515. 8013268: e853 3f00 ldrex r3, [r3]
  44516. 801326c: 60bb str r3, [r7, #8]
  44517. return(result);
  44518. 801326e: 68bb ldr r3, [r7, #8]
  44519. 8013270: f023 0340 bic.w r3, r3, #64 @ 0x40
  44520. 8013274: 61fb str r3, [r7, #28]
  44521. 8013276: 687b ldr r3, [r7, #4]
  44522. 8013278: 681b ldr r3, [r3, #0]
  44523. 801327a: 461a mov r2, r3
  44524. 801327c: 69fb ldr r3, [r7, #28]
  44525. 801327e: 61bb str r3, [r7, #24]
  44526. 8013280: 617a str r2, [r7, #20]
  44527. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44528. 8013282: 6979 ldr r1, [r7, #20]
  44529. 8013284: 69ba ldr r2, [r7, #24]
  44530. 8013286: e841 2300 strex r3, r2, [r1]
  44531. 801328a: 613b str r3, [r7, #16]
  44532. return(result);
  44533. 801328c: 693b ldr r3, [r7, #16]
  44534. 801328e: 2b00 cmp r3, #0
  44535. 8013290: d1e6 bne.n 8013260 <UART_EndTransmit_IT+0x8>
  44536. /* Tx process is ended, restore huart->gState to Ready */
  44537. huart->gState = HAL_UART_STATE_READY;
  44538. 8013292: 687b ldr r3, [r7, #4]
  44539. 8013294: 2220 movs r2, #32
  44540. 8013296: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44541. /* Cleat TxISR function pointer */
  44542. huart->TxISR = NULL;
  44543. 801329a: 687b ldr r3, [r7, #4]
  44544. 801329c: 2200 movs r2, #0
  44545. 801329e: 679a str r2, [r3, #120] @ 0x78
  44546. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44547. /*Call registered Tx complete callback*/
  44548. huart->TxCpltCallback(huart);
  44549. #else
  44550. /*Call legacy weak Tx complete callback*/
  44551. HAL_UART_TxCpltCallback(huart);
  44552. 80132a0: 6878 ldr r0, [r7, #4]
  44553. 80132a2: f7f1 fc8d bl 8004bc0 <HAL_UART_TxCpltCallback>
  44554. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44555. }
  44556. 80132a6: bf00 nop
  44557. 80132a8: 3720 adds r7, #32
  44558. 80132aa: 46bd mov sp, r7
  44559. 80132ac: bd80 pop {r7, pc}
  44560. ...
  44561. 080132b0 <UART_RxISR_8BIT>:
  44562. * @brief RX interrupt handler for 7 or 8 bits data word length .
  44563. * @param huart UART handle.
  44564. * @retval None
  44565. */
  44566. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  44567. {
  44568. 80132b0: b580 push {r7, lr}
  44569. 80132b2: b09c sub sp, #112 @ 0x70
  44570. 80132b4: af00 add r7, sp, #0
  44571. 80132b6: 6078 str r0, [r7, #4]
  44572. uint16_t uhMask = huart->Mask;
  44573. 80132b8: 687b ldr r3, [r7, #4]
  44574. 80132ba: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44575. 80132be: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44576. uint16_t uhdata;
  44577. /* Check that a Rx process is ongoing */
  44578. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44579. 80132c2: 687b ldr r3, [r7, #4]
  44580. 80132c4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44581. 80132c8: 2b22 cmp r3, #34 @ 0x22
  44582. 80132ca: f040 80be bne.w 801344a <UART_RxISR_8BIT+0x19a>
  44583. {
  44584. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44585. 80132ce: 687b ldr r3, [r7, #4]
  44586. 80132d0: 681b ldr r3, [r3, #0]
  44587. 80132d2: 6a5b ldr r3, [r3, #36] @ 0x24
  44588. 80132d4: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44589. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44590. 80132d8: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  44591. 80132dc: b2d9 uxtb r1, r3
  44592. 80132de: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44593. 80132e2: b2da uxtb r2, r3
  44594. 80132e4: 687b ldr r3, [r7, #4]
  44595. 80132e6: 6d9b ldr r3, [r3, #88] @ 0x58
  44596. 80132e8: 400a ands r2, r1
  44597. 80132ea: b2d2 uxtb r2, r2
  44598. 80132ec: 701a strb r2, [r3, #0]
  44599. huart->pRxBuffPtr++;
  44600. 80132ee: 687b ldr r3, [r7, #4]
  44601. 80132f0: 6d9b ldr r3, [r3, #88] @ 0x58
  44602. 80132f2: 1c5a adds r2, r3, #1
  44603. 80132f4: 687b ldr r3, [r7, #4]
  44604. 80132f6: 659a str r2, [r3, #88] @ 0x58
  44605. huart->RxXferCount--;
  44606. 80132f8: 687b ldr r3, [r7, #4]
  44607. 80132fa: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44608. 80132fe: b29b uxth r3, r3
  44609. 8013300: 3b01 subs r3, #1
  44610. 8013302: b29a uxth r2, r3
  44611. 8013304: 687b ldr r3, [r7, #4]
  44612. 8013306: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44613. if (huart->RxXferCount == 0U)
  44614. 801330a: 687b ldr r3, [r7, #4]
  44615. 801330c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44616. 8013310: b29b uxth r3, r3
  44617. 8013312: 2b00 cmp r3, #0
  44618. 8013314: f040 80a1 bne.w 801345a <UART_RxISR_8BIT+0x1aa>
  44619. {
  44620. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  44621. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44622. 8013318: 687b ldr r3, [r7, #4]
  44623. 801331a: 681b ldr r3, [r3, #0]
  44624. 801331c: 64fb str r3, [r7, #76] @ 0x4c
  44625. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44626. 801331e: 6cfb ldr r3, [r7, #76] @ 0x4c
  44627. 8013320: e853 3f00 ldrex r3, [r3]
  44628. 8013324: 64bb str r3, [r7, #72] @ 0x48
  44629. return(result);
  44630. 8013326: 6cbb ldr r3, [r7, #72] @ 0x48
  44631. 8013328: f423 7390 bic.w r3, r3, #288 @ 0x120
  44632. 801332c: 66bb str r3, [r7, #104] @ 0x68
  44633. 801332e: 687b ldr r3, [r7, #4]
  44634. 8013330: 681b ldr r3, [r3, #0]
  44635. 8013332: 461a mov r2, r3
  44636. 8013334: 6ebb ldr r3, [r7, #104] @ 0x68
  44637. 8013336: 65bb str r3, [r7, #88] @ 0x58
  44638. 8013338: 657a str r2, [r7, #84] @ 0x54
  44639. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44640. 801333a: 6d79 ldr r1, [r7, #84] @ 0x54
  44641. 801333c: 6dba ldr r2, [r7, #88] @ 0x58
  44642. 801333e: e841 2300 strex r3, r2, [r1]
  44643. 8013342: 653b str r3, [r7, #80] @ 0x50
  44644. return(result);
  44645. 8013344: 6d3b ldr r3, [r7, #80] @ 0x50
  44646. 8013346: 2b00 cmp r3, #0
  44647. 8013348: d1e6 bne.n 8013318 <UART_RxISR_8BIT+0x68>
  44648. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44649. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44650. 801334a: 687b ldr r3, [r7, #4]
  44651. 801334c: 681b ldr r3, [r3, #0]
  44652. 801334e: 3308 adds r3, #8
  44653. 8013350: 63bb str r3, [r7, #56] @ 0x38
  44654. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44655. 8013352: 6bbb ldr r3, [r7, #56] @ 0x38
  44656. 8013354: e853 3f00 ldrex r3, [r3]
  44657. 8013358: 637b str r3, [r7, #52] @ 0x34
  44658. return(result);
  44659. 801335a: 6b7b ldr r3, [r7, #52] @ 0x34
  44660. 801335c: f023 0301 bic.w r3, r3, #1
  44661. 8013360: 667b str r3, [r7, #100] @ 0x64
  44662. 8013362: 687b ldr r3, [r7, #4]
  44663. 8013364: 681b ldr r3, [r3, #0]
  44664. 8013366: 3308 adds r3, #8
  44665. 8013368: 6e7a ldr r2, [r7, #100] @ 0x64
  44666. 801336a: 647a str r2, [r7, #68] @ 0x44
  44667. 801336c: 643b str r3, [r7, #64] @ 0x40
  44668. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44669. 801336e: 6c39 ldr r1, [r7, #64] @ 0x40
  44670. 8013370: 6c7a ldr r2, [r7, #68] @ 0x44
  44671. 8013372: e841 2300 strex r3, r2, [r1]
  44672. 8013376: 63fb str r3, [r7, #60] @ 0x3c
  44673. return(result);
  44674. 8013378: 6bfb ldr r3, [r7, #60] @ 0x3c
  44675. 801337a: 2b00 cmp r3, #0
  44676. 801337c: d1e5 bne.n 801334a <UART_RxISR_8BIT+0x9a>
  44677. /* Rx process is completed, restore huart->RxState to Ready */
  44678. huart->RxState = HAL_UART_STATE_READY;
  44679. 801337e: 687b ldr r3, [r7, #4]
  44680. 8013380: 2220 movs r2, #32
  44681. 8013382: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44682. /* Clear RxISR function pointer */
  44683. huart->RxISR = NULL;
  44684. 8013386: 687b ldr r3, [r7, #4]
  44685. 8013388: 2200 movs r2, #0
  44686. 801338a: 675a str r2, [r3, #116] @ 0x74
  44687. /* Initialize type of RxEvent to Transfer Complete */
  44688. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44689. 801338c: 687b ldr r3, [r7, #4]
  44690. 801338e: 2200 movs r2, #0
  44691. 8013390: 671a str r2, [r3, #112] @ 0x70
  44692. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44693. 8013392: 687b ldr r3, [r7, #4]
  44694. 8013394: 681b ldr r3, [r3, #0]
  44695. 8013396: 4a33 ldr r2, [pc, #204] @ (8013464 <UART_RxISR_8BIT+0x1b4>)
  44696. 8013398: 4293 cmp r3, r2
  44697. 801339a: d01f beq.n 80133dc <UART_RxISR_8BIT+0x12c>
  44698. {
  44699. /* Check that USART RTOEN bit is set */
  44700. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44701. 801339c: 687b ldr r3, [r7, #4]
  44702. 801339e: 681b ldr r3, [r3, #0]
  44703. 80133a0: 685b ldr r3, [r3, #4]
  44704. 80133a2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44705. 80133a6: 2b00 cmp r3, #0
  44706. 80133a8: d018 beq.n 80133dc <UART_RxISR_8BIT+0x12c>
  44707. {
  44708. /* Enable the UART Receiver Timeout Interrupt */
  44709. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44710. 80133aa: 687b ldr r3, [r7, #4]
  44711. 80133ac: 681b ldr r3, [r3, #0]
  44712. 80133ae: 627b str r3, [r7, #36] @ 0x24
  44713. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44714. 80133b0: 6a7b ldr r3, [r7, #36] @ 0x24
  44715. 80133b2: e853 3f00 ldrex r3, [r3]
  44716. 80133b6: 623b str r3, [r7, #32]
  44717. return(result);
  44718. 80133b8: 6a3b ldr r3, [r7, #32]
  44719. 80133ba: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44720. 80133be: 663b str r3, [r7, #96] @ 0x60
  44721. 80133c0: 687b ldr r3, [r7, #4]
  44722. 80133c2: 681b ldr r3, [r3, #0]
  44723. 80133c4: 461a mov r2, r3
  44724. 80133c6: 6e3b ldr r3, [r7, #96] @ 0x60
  44725. 80133c8: 633b str r3, [r7, #48] @ 0x30
  44726. 80133ca: 62fa str r2, [r7, #44] @ 0x2c
  44727. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44728. 80133cc: 6af9 ldr r1, [r7, #44] @ 0x2c
  44729. 80133ce: 6b3a ldr r2, [r7, #48] @ 0x30
  44730. 80133d0: e841 2300 strex r3, r2, [r1]
  44731. 80133d4: 62bb str r3, [r7, #40] @ 0x28
  44732. return(result);
  44733. 80133d6: 6abb ldr r3, [r7, #40] @ 0x28
  44734. 80133d8: 2b00 cmp r3, #0
  44735. 80133da: d1e6 bne.n 80133aa <UART_RxISR_8BIT+0xfa>
  44736. }
  44737. }
  44738. /* Check current reception Mode :
  44739. If Reception till IDLE event has been selected : */
  44740. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44741. 80133dc: 687b ldr r3, [r7, #4]
  44742. 80133de: 6edb ldr r3, [r3, #108] @ 0x6c
  44743. 80133e0: 2b01 cmp r3, #1
  44744. 80133e2: d12e bne.n 8013442 <UART_RxISR_8BIT+0x192>
  44745. {
  44746. /* Set reception type to Standard */
  44747. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44748. 80133e4: 687b ldr r3, [r7, #4]
  44749. 80133e6: 2200 movs r2, #0
  44750. 80133e8: 66da str r2, [r3, #108] @ 0x6c
  44751. /* Disable IDLE interrupt */
  44752. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44753. 80133ea: 687b ldr r3, [r7, #4]
  44754. 80133ec: 681b ldr r3, [r3, #0]
  44755. 80133ee: 613b str r3, [r7, #16]
  44756. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44757. 80133f0: 693b ldr r3, [r7, #16]
  44758. 80133f2: e853 3f00 ldrex r3, [r3]
  44759. 80133f6: 60fb str r3, [r7, #12]
  44760. return(result);
  44761. 80133f8: 68fb ldr r3, [r7, #12]
  44762. 80133fa: f023 0310 bic.w r3, r3, #16
  44763. 80133fe: 65fb str r3, [r7, #92] @ 0x5c
  44764. 8013400: 687b ldr r3, [r7, #4]
  44765. 8013402: 681b ldr r3, [r3, #0]
  44766. 8013404: 461a mov r2, r3
  44767. 8013406: 6dfb ldr r3, [r7, #92] @ 0x5c
  44768. 8013408: 61fb str r3, [r7, #28]
  44769. 801340a: 61ba str r2, [r7, #24]
  44770. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44771. 801340c: 69b9 ldr r1, [r7, #24]
  44772. 801340e: 69fa ldr r2, [r7, #28]
  44773. 8013410: e841 2300 strex r3, r2, [r1]
  44774. 8013414: 617b str r3, [r7, #20]
  44775. return(result);
  44776. 8013416: 697b ldr r3, [r7, #20]
  44777. 8013418: 2b00 cmp r3, #0
  44778. 801341a: d1e6 bne.n 80133ea <UART_RxISR_8BIT+0x13a>
  44779. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44780. 801341c: 687b ldr r3, [r7, #4]
  44781. 801341e: 681b ldr r3, [r3, #0]
  44782. 8013420: 69db ldr r3, [r3, #28]
  44783. 8013422: f003 0310 and.w r3, r3, #16
  44784. 8013426: 2b10 cmp r3, #16
  44785. 8013428: d103 bne.n 8013432 <UART_RxISR_8BIT+0x182>
  44786. {
  44787. /* Clear IDLE Flag */
  44788. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44789. 801342a: 687b ldr r3, [r7, #4]
  44790. 801342c: 681b ldr r3, [r3, #0]
  44791. 801342e: 2210 movs r2, #16
  44792. 8013430: 621a str r2, [r3, #32]
  44793. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44794. /*Call registered Rx Event callback*/
  44795. huart->RxEventCallback(huart, huart->RxXferSize);
  44796. #else
  44797. /*Call legacy weak Rx Event callback*/
  44798. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44799. 8013432: 687b ldr r3, [r7, #4]
  44800. 8013434: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44801. 8013438: 4619 mov r1, r3
  44802. 801343a: 6878 ldr r0, [r7, #4]
  44803. 801343c: f7f1 fb96 bl 8004b6c <HAL_UARTEx_RxEventCallback>
  44804. else
  44805. {
  44806. /* Clear RXNE interrupt flag */
  44807. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44808. }
  44809. }
  44810. 8013440: e00b b.n 801345a <UART_RxISR_8BIT+0x1aa>
  44811. HAL_UART_RxCpltCallback(huart);
  44812. 8013442: 6878 ldr r0, [r7, #4]
  44813. 8013444: f7f1 fb88 bl 8004b58 <HAL_UART_RxCpltCallback>
  44814. }
  44815. 8013448: e007 b.n 801345a <UART_RxISR_8BIT+0x1aa>
  44816. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44817. 801344a: 687b ldr r3, [r7, #4]
  44818. 801344c: 681b ldr r3, [r3, #0]
  44819. 801344e: 699a ldr r2, [r3, #24]
  44820. 8013450: 687b ldr r3, [r7, #4]
  44821. 8013452: 681b ldr r3, [r3, #0]
  44822. 8013454: f042 0208 orr.w r2, r2, #8
  44823. 8013458: 619a str r2, [r3, #24]
  44824. }
  44825. 801345a: bf00 nop
  44826. 801345c: 3770 adds r7, #112 @ 0x70
  44827. 801345e: 46bd mov sp, r7
  44828. 8013460: bd80 pop {r7, pc}
  44829. 8013462: bf00 nop
  44830. 8013464: 58000c00 .word 0x58000c00
  44831. 08013468 <UART_RxISR_16BIT>:
  44832. * interruptions have been enabled by HAL_UART_Receive_IT()
  44833. * @param huart UART handle.
  44834. * @retval None
  44835. */
  44836. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  44837. {
  44838. 8013468: b580 push {r7, lr}
  44839. 801346a: b09c sub sp, #112 @ 0x70
  44840. 801346c: af00 add r7, sp, #0
  44841. 801346e: 6078 str r0, [r7, #4]
  44842. uint16_t *tmp;
  44843. uint16_t uhMask = huart->Mask;
  44844. 8013470: 687b ldr r3, [r7, #4]
  44845. 8013472: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44846. 8013476: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44847. uint16_t uhdata;
  44848. /* Check that a Rx process is ongoing */
  44849. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44850. 801347a: 687b ldr r3, [r7, #4]
  44851. 801347c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44852. 8013480: 2b22 cmp r3, #34 @ 0x22
  44853. 8013482: f040 80be bne.w 8013602 <UART_RxISR_16BIT+0x19a>
  44854. {
  44855. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44856. 8013486: 687b ldr r3, [r7, #4]
  44857. 8013488: 681b ldr r3, [r3, #0]
  44858. 801348a: 6a5b ldr r3, [r3, #36] @ 0x24
  44859. 801348c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44860. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44861. 8013490: 687b ldr r3, [r7, #4]
  44862. 8013492: 6d9b ldr r3, [r3, #88] @ 0x58
  44863. 8013494: 66bb str r3, [r7, #104] @ 0x68
  44864. *tmp = (uint16_t)(uhdata & uhMask);
  44865. 8013496: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  44866. 801349a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44867. 801349e: 4013 ands r3, r2
  44868. 80134a0: b29a uxth r2, r3
  44869. 80134a2: 6ebb ldr r3, [r7, #104] @ 0x68
  44870. 80134a4: 801a strh r2, [r3, #0]
  44871. huart->pRxBuffPtr += 2U;
  44872. 80134a6: 687b ldr r3, [r7, #4]
  44873. 80134a8: 6d9b ldr r3, [r3, #88] @ 0x58
  44874. 80134aa: 1c9a adds r2, r3, #2
  44875. 80134ac: 687b ldr r3, [r7, #4]
  44876. 80134ae: 659a str r2, [r3, #88] @ 0x58
  44877. huart->RxXferCount--;
  44878. 80134b0: 687b ldr r3, [r7, #4]
  44879. 80134b2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44880. 80134b6: b29b uxth r3, r3
  44881. 80134b8: 3b01 subs r3, #1
  44882. 80134ba: b29a uxth r2, r3
  44883. 80134bc: 687b ldr r3, [r7, #4]
  44884. 80134be: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44885. if (huart->RxXferCount == 0U)
  44886. 80134c2: 687b ldr r3, [r7, #4]
  44887. 80134c4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44888. 80134c8: b29b uxth r3, r3
  44889. 80134ca: 2b00 cmp r3, #0
  44890. 80134cc: f040 80a1 bne.w 8013612 <UART_RxISR_16BIT+0x1aa>
  44891. {
  44892. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  44893. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44894. 80134d0: 687b ldr r3, [r7, #4]
  44895. 80134d2: 681b ldr r3, [r3, #0]
  44896. 80134d4: 64bb str r3, [r7, #72] @ 0x48
  44897. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44898. 80134d6: 6cbb ldr r3, [r7, #72] @ 0x48
  44899. 80134d8: e853 3f00 ldrex r3, [r3]
  44900. 80134dc: 647b str r3, [r7, #68] @ 0x44
  44901. return(result);
  44902. 80134de: 6c7b ldr r3, [r7, #68] @ 0x44
  44903. 80134e0: f423 7390 bic.w r3, r3, #288 @ 0x120
  44904. 80134e4: 667b str r3, [r7, #100] @ 0x64
  44905. 80134e6: 687b ldr r3, [r7, #4]
  44906. 80134e8: 681b ldr r3, [r3, #0]
  44907. 80134ea: 461a mov r2, r3
  44908. 80134ec: 6e7b ldr r3, [r7, #100] @ 0x64
  44909. 80134ee: 657b str r3, [r7, #84] @ 0x54
  44910. 80134f0: 653a str r2, [r7, #80] @ 0x50
  44911. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44912. 80134f2: 6d39 ldr r1, [r7, #80] @ 0x50
  44913. 80134f4: 6d7a ldr r2, [r7, #84] @ 0x54
  44914. 80134f6: e841 2300 strex r3, r2, [r1]
  44915. 80134fa: 64fb str r3, [r7, #76] @ 0x4c
  44916. return(result);
  44917. 80134fc: 6cfb ldr r3, [r7, #76] @ 0x4c
  44918. 80134fe: 2b00 cmp r3, #0
  44919. 8013500: d1e6 bne.n 80134d0 <UART_RxISR_16BIT+0x68>
  44920. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44921. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44922. 8013502: 687b ldr r3, [r7, #4]
  44923. 8013504: 681b ldr r3, [r3, #0]
  44924. 8013506: 3308 adds r3, #8
  44925. 8013508: 637b str r3, [r7, #52] @ 0x34
  44926. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44927. 801350a: 6b7b ldr r3, [r7, #52] @ 0x34
  44928. 801350c: e853 3f00 ldrex r3, [r3]
  44929. 8013510: 633b str r3, [r7, #48] @ 0x30
  44930. return(result);
  44931. 8013512: 6b3b ldr r3, [r7, #48] @ 0x30
  44932. 8013514: f023 0301 bic.w r3, r3, #1
  44933. 8013518: 663b str r3, [r7, #96] @ 0x60
  44934. 801351a: 687b ldr r3, [r7, #4]
  44935. 801351c: 681b ldr r3, [r3, #0]
  44936. 801351e: 3308 adds r3, #8
  44937. 8013520: 6e3a ldr r2, [r7, #96] @ 0x60
  44938. 8013522: 643a str r2, [r7, #64] @ 0x40
  44939. 8013524: 63fb str r3, [r7, #60] @ 0x3c
  44940. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44941. 8013526: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44942. 8013528: 6c3a ldr r2, [r7, #64] @ 0x40
  44943. 801352a: e841 2300 strex r3, r2, [r1]
  44944. 801352e: 63bb str r3, [r7, #56] @ 0x38
  44945. return(result);
  44946. 8013530: 6bbb ldr r3, [r7, #56] @ 0x38
  44947. 8013532: 2b00 cmp r3, #0
  44948. 8013534: d1e5 bne.n 8013502 <UART_RxISR_16BIT+0x9a>
  44949. /* Rx process is completed, restore huart->RxState to Ready */
  44950. huart->RxState = HAL_UART_STATE_READY;
  44951. 8013536: 687b ldr r3, [r7, #4]
  44952. 8013538: 2220 movs r2, #32
  44953. 801353a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44954. /* Clear RxISR function pointer */
  44955. huart->RxISR = NULL;
  44956. 801353e: 687b ldr r3, [r7, #4]
  44957. 8013540: 2200 movs r2, #0
  44958. 8013542: 675a str r2, [r3, #116] @ 0x74
  44959. /* Initialize type of RxEvent to Transfer Complete */
  44960. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44961. 8013544: 687b ldr r3, [r7, #4]
  44962. 8013546: 2200 movs r2, #0
  44963. 8013548: 671a str r2, [r3, #112] @ 0x70
  44964. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44965. 801354a: 687b ldr r3, [r7, #4]
  44966. 801354c: 681b ldr r3, [r3, #0]
  44967. 801354e: 4a33 ldr r2, [pc, #204] @ (801361c <UART_RxISR_16BIT+0x1b4>)
  44968. 8013550: 4293 cmp r3, r2
  44969. 8013552: d01f beq.n 8013594 <UART_RxISR_16BIT+0x12c>
  44970. {
  44971. /* Check that USART RTOEN bit is set */
  44972. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44973. 8013554: 687b ldr r3, [r7, #4]
  44974. 8013556: 681b ldr r3, [r3, #0]
  44975. 8013558: 685b ldr r3, [r3, #4]
  44976. 801355a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44977. 801355e: 2b00 cmp r3, #0
  44978. 8013560: d018 beq.n 8013594 <UART_RxISR_16BIT+0x12c>
  44979. {
  44980. /* Enable the UART Receiver Timeout Interrupt */
  44981. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44982. 8013562: 687b ldr r3, [r7, #4]
  44983. 8013564: 681b ldr r3, [r3, #0]
  44984. 8013566: 623b str r3, [r7, #32]
  44985. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44986. 8013568: 6a3b ldr r3, [r7, #32]
  44987. 801356a: e853 3f00 ldrex r3, [r3]
  44988. 801356e: 61fb str r3, [r7, #28]
  44989. return(result);
  44990. 8013570: 69fb ldr r3, [r7, #28]
  44991. 8013572: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44992. 8013576: 65fb str r3, [r7, #92] @ 0x5c
  44993. 8013578: 687b ldr r3, [r7, #4]
  44994. 801357a: 681b ldr r3, [r3, #0]
  44995. 801357c: 461a mov r2, r3
  44996. 801357e: 6dfb ldr r3, [r7, #92] @ 0x5c
  44997. 8013580: 62fb str r3, [r7, #44] @ 0x2c
  44998. 8013582: 62ba str r2, [r7, #40] @ 0x28
  44999. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45000. 8013584: 6ab9 ldr r1, [r7, #40] @ 0x28
  45001. 8013586: 6afa ldr r2, [r7, #44] @ 0x2c
  45002. 8013588: e841 2300 strex r3, r2, [r1]
  45003. 801358c: 627b str r3, [r7, #36] @ 0x24
  45004. return(result);
  45005. 801358e: 6a7b ldr r3, [r7, #36] @ 0x24
  45006. 8013590: 2b00 cmp r3, #0
  45007. 8013592: d1e6 bne.n 8013562 <UART_RxISR_16BIT+0xfa>
  45008. }
  45009. }
  45010. /* Check current reception Mode :
  45011. If Reception till IDLE event has been selected : */
  45012. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45013. 8013594: 687b ldr r3, [r7, #4]
  45014. 8013596: 6edb ldr r3, [r3, #108] @ 0x6c
  45015. 8013598: 2b01 cmp r3, #1
  45016. 801359a: d12e bne.n 80135fa <UART_RxISR_16BIT+0x192>
  45017. {
  45018. /* Set reception type to Standard */
  45019. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45020. 801359c: 687b ldr r3, [r7, #4]
  45021. 801359e: 2200 movs r2, #0
  45022. 80135a0: 66da str r2, [r3, #108] @ 0x6c
  45023. /* Disable IDLE interrupt */
  45024. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45025. 80135a2: 687b ldr r3, [r7, #4]
  45026. 80135a4: 681b ldr r3, [r3, #0]
  45027. 80135a6: 60fb str r3, [r7, #12]
  45028. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45029. 80135a8: 68fb ldr r3, [r7, #12]
  45030. 80135aa: e853 3f00 ldrex r3, [r3]
  45031. 80135ae: 60bb str r3, [r7, #8]
  45032. return(result);
  45033. 80135b0: 68bb ldr r3, [r7, #8]
  45034. 80135b2: f023 0310 bic.w r3, r3, #16
  45035. 80135b6: 65bb str r3, [r7, #88] @ 0x58
  45036. 80135b8: 687b ldr r3, [r7, #4]
  45037. 80135ba: 681b ldr r3, [r3, #0]
  45038. 80135bc: 461a mov r2, r3
  45039. 80135be: 6dbb ldr r3, [r7, #88] @ 0x58
  45040. 80135c0: 61bb str r3, [r7, #24]
  45041. 80135c2: 617a str r2, [r7, #20]
  45042. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45043. 80135c4: 6979 ldr r1, [r7, #20]
  45044. 80135c6: 69ba ldr r2, [r7, #24]
  45045. 80135c8: e841 2300 strex r3, r2, [r1]
  45046. 80135cc: 613b str r3, [r7, #16]
  45047. return(result);
  45048. 80135ce: 693b ldr r3, [r7, #16]
  45049. 80135d0: 2b00 cmp r3, #0
  45050. 80135d2: d1e6 bne.n 80135a2 <UART_RxISR_16BIT+0x13a>
  45051. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45052. 80135d4: 687b ldr r3, [r7, #4]
  45053. 80135d6: 681b ldr r3, [r3, #0]
  45054. 80135d8: 69db ldr r3, [r3, #28]
  45055. 80135da: f003 0310 and.w r3, r3, #16
  45056. 80135de: 2b10 cmp r3, #16
  45057. 80135e0: d103 bne.n 80135ea <UART_RxISR_16BIT+0x182>
  45058. {
  45059. /* Clear IDLE Flag */
  45060. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45061. 80135e2: 687b ldr r3, [r7, #4]
  45062. 80135e4: 681b ldr r3, [r3, #0]
  45063. 80135e6: 2210 movs r2, #16
  45064. 80135e8: 621a str r2, [r3, #32]
  45065. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45066. /*Call registered Rx Event callback*/
  45067. huart->RxEventCallback(huart, huart->RxXferSize);
  45068. #else
  45069. /*Call legacy weak Rx Event callback*/
  45070. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45071. 80135ea: 687b ldr r3, [r7, #4]
  45072. 80135ec: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45073. 80135f0: 4619 mov r1, r3
  45074. 80135f2: 6878 ldr r0, [r7, #4]
  45075. 80135f4: f7f1 faba bl 8004b6c <HAL_UARTEx_RxEventCallback>
  45076. else
  45077. {
  45078. /* Clear RXNE interrupt flag */
  45079. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45080. }
  45081. }
  45082. 80135f8: e00b b.n 8013612 <UART_RxISR_16BIT+0x1aa>
  45083. HAL_UART_RxCpltCallback(huart);
  45084. 80135fa: 6878 ldr r0, [r7, #4]
  45085. 80135fc: f7f1 faac bl 8004b58 <HAL_UART_RxCpltCallback>
  45086. }
  45087. 8013600: e007 b.n 8013612 <UART_RxISR_16BIT+0x1aa>
  45088. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45089. 8013602: 687b ldr r3, [r7, #4]
  45090. 8013604: 681b ldr r3, [r3, #0]
  45091. 8013606: 699a ldr r2, [r3, #24]
  45092. 8013608: 687b ldr r3, [r7, #4]
  45093. 801360a: 681b ldr r3, [r3, #0]
  45094. 801360c: f042 0208 orr.w r2, r2, #8
  45095. 8013610: 619a str r2, [r3, #24]
  45096. }
  45097. 8013612: bf00 nop
  45098. 8013614: 3770 adds r7, #112 @ 0x70
  45099. 8013616: 46bd mov sp, r7
  45100. 8013618: bd80 pop {r7, pc}
  45101. 801361a: bf00 nop
  45102. 801361c: 58000c00 .word 0x58000c00
  45103. 08013620 <UART_RxISR_8BIT_FIFOEN>:
  45104. * interruptions have been enabled by HAL_UART_Receive_IT()
  45105. * @param huart UART handle.
  45106. * @retval None
  45107. */
  45108. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  45109. {
  45110. 8013620: b580 push {r7, lr}
  45111. 8013622: b0ac sub sp, #176 @ 0xb0
  45112. 8013624: af00 add r7, sp, #0
  45113. 8013626: 6078 str r0, [r7, #4]
  45114. uint16_t uhMask = huart->Mask;
  45115. 8013628: 687b ldr r3, [r7, #4]
  45116. 801362a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45117. 801362e: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  45118. uint16_t uhdata;
  45119. uint16_t nb_rx_data;
  45120. uint16_t rxdatacount;
  45121. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45122. 8013632: 687b ldr r3, [r7, #4]
  45123. 8013634: 681b ldr r3, [r3, #0]
  45124. 8013636: 69db ldr r3, [r3, #28]
  45125. 8013638: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45126. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45127. 801363c: 687b ldr r3, [r7, #4]
  45128. 801363e: 681b ldr r3, [r3, #0]
  45129. 8013640: 681b ldr r3, [r3, #0]
  45130. 8013642: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  45131. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45132. 8013646: 687b ldr r3, [r7, #4]
  45133. 8013648: 681b ldr r3, [r3, #0]
  45134. 801364a: 689b ldr r3, [r3, #8]
  45135. 801364c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45136. /* Check that a Rx process is ongoing */
  45137. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45138. 8013650: 687b ldr r3, [r7, #4]
  45139. 8013652: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45140. 8013656: 2b22 cmp r3, #34 @ 0x22
  45141. 8013658: f040 8180 bne.w 801395c <UART_RxISR_8BIT_FIFOEN+0x33c>
  45142. {
  45143. nb_rx_data = huart->NbRxDataToProcess;
  45144. 801365c: 687b ldr r3, [r7, #4]
  45145. 801365e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45146. 8013662: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  45147. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45148. 8013666: e123 b.n 80138b0 <UART_RxISR_8BIT_FIFOEN+0x290>
  45149. {
  45150. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45151. 8013668: 687b ldr r3, [r7, #4]
  45152. 801366a: 681b ldr r3, [r3, #0]
  45153. 801366c: 6a5b ldr r3, [r3, #36] @ 0x24
  45154. 801366e: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  45155. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  45156. 8013672: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  45157. 8013676: b2d9 uxtb r1, r3
  45158. 8013678: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  45159. 801367c: b2da uxtb r2, r3
  45160. 801367e: 687b ldr r3, [r7, #4]
  45161. 8013680: 6d9b ldr r3, [r3, #88] @ 0x58
  45162. 8013682: 400a ands r2, r1
  45163. 8013684: b2d2 uxtb r2, r2
  45164. 8013686: 701a strb r2, [r3, #0]
  45165. huart->pRxBuffPtr++;
  45166. 8013688: 687b ldr r3, [r7, #4]
  45167. 801368a: 6d9b ldr r3, [r3, #88] @ 0x58
  45168. 801368c: 1c5a adds r2, r3, #1
  45169. 801368e: 687b ldr r3, [r7, #4]
  45170. 8013690: 659a str r2, [r3, #88] @ 0x58
  45171. huart->RxXferCount--;
  45172. 8013692: 687b ldr r3, [r7, #4]
  45173. 8013694: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45174. 8013698: b29b uxth r3, r3
  45175. 801369a: 3b01 subs r3, #1
  45176. 801369c: b29a uxth r2, r3
  45177. 801369e: 687b ldr r3, [r7, #4]
  45178. 80136a0: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45179. isrflags = READ_REG(huart->Instance->ISR);
  45180. 80136a4: 687b ldr r3, [r7, #4]
  45181. 80136a6: 681b ldr r3, [r3, #0]
  45182. 80136a8: 69db ldr r3, [r3, #28]
  45183. 80136aa: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45184. /* If some non blocking errors occurred */
  45185. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45186. 80136ae: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45187. 80136b2: f003 0307 and.w r3, r3, #7
  45188. 80136b6: 2b00 cmp r3, #0
  45189. 80136b8: d053 beq.n 8013762 <UART_RxISR_8BIT_FIFOEN+0x142>
  45190. {
  45191. /* UART parity error interrupt occurred -------------------------------------*/
  45192. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45193. 80136ba: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45194. 80136be: f003 0301 and.w r3, r3, #1
  45195. 80136c2: 2b00 cmp r3, #0
  45196. 80136c4: d011 beq.n 80136ea <UART_RxISR_8BIT_FIFOEN+0xca>
  45197. 80136c6: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  45198. 80136ca: f403 7380 and.w r3, r3, #256 @ 0x100
  45199. 80136ce: 2b00 cmp r3, #0
  45200. 80136d0: d00b beq.n 80136ea <UART_RxISR_8BIT_FIFOEN+0xca>
  45201. {
  45202. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45203. 80136d2: 687b ldr r3, [r7, #4]
  45204. 80136d4: 681b ldr r3, [r3, #0]
  45205. 80136d6: 2201 movs r2, #1
  45206. 80136d8: 621a str r2, [r3, #32]
  45207. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45208. 80136da: 687b ldr r3, [r7, #4]
  45209. 80136dc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45210. 80136e0: f043 0201 orr.w r2, r3, #1
  45211. 80136e4: 687b ldr r3, [r7, #4]
  45212. 80136e6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45213. }
  45214. /* UART frame error interrupt occurred --------------------------------------*/
  45215. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45216. 80136ea: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45217. 80136ee: f003 0302 and.w r3, r3, #2
  45218. 80136f2: 2b00 cmp r3, #0
  45219. 80136f4: d011 beq.n 801371a <UART_RxISR_8BIT_FIFOEN+0xfa>
  45220. 80136f6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45221. 80136fa: f003 0301 and.w r3, r3, #1
  45222. 80136fe: 2b00 cmp r3, #0
  45223. 8013700: d00b beq.n 801371a <UART_RxISR_8BIT_FIFOEN+0xfa>
  45224. {
  45225. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45226. 8013702: 687b ldr r3, [r7, #4]
  45227. 8013704: 681b ldr r3, [r3, #0]
  45228. 8013706: 2202 movs r2, #2
  45229. 8013708: 621a str r2, [r3, #32]
  45230. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45231. 801370a: 687b ldr r3, [r7, #4]
  45232. 801370c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45233. 8013710: f043 0204 orr.w r2, r3, #4
  45234. 8013714: 687b ldr r3, [r7, #4]
  45235. 8013716: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45236. }
  45237. /* UART noise error interrupt occurred --------------------------------------*/
  45238. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45239. 801371a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45240. 801371e: f003 0304 and.w r3, r3, #4
  45241. 8013722: 2b00 cmp r3, #0
  45242. 8013724: d011 beq.n 801374a <UART_RxISR_8BIT_FIFOEN+0x12a>
  45243. 8013726: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45244. 801372a: f003 0301 and.w r3, r3, #1
  45245. 801372e: 2b00 cmp r3, #0
  45246. 8013730: d00b beq.n 801374a <UART_RxISR_8BIT_FIFOEN+0x12a>
  45247. {
  45248. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45249. 8013732: 687b ldr r3, [r7, #4]
  45250. 8013734: 681b ldr r3, [r3, #0]
  45251. 8013736: 2204 movs r2, #4
  45252. 8013738: 621a str r2, [r3, #32]
  45253. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45254. 801373a: 687b ldr r3, [r7, #4]
  45255. 801373c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45256. 8013740: f043 0202 orr.w r2, r3, #2
  45257. 8013744: 687b ldr r3, [r7, #4]
  45258. 8013746: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45259. }
  45260. /* Call UART Error Call back function if need be ----------------------------*/
  45261. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45262. 801374a: 687b ldr r3, [r7, #4]
  45263. 801374c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45264. 8013750: 2b00 cmp r3, #0
  45265. 8013752: d006 beq.n 8013762 <UART_RxISR_8BIT_FIFOEN+0x142>
  45266. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45267. /*Call registered error callback*/
  45268. huart->ErrorCallback(huart);
  45269. #else
  45270. /*Call legacy weak error callback*/
  45271. HAL_UART_ErrorCallback(huart);
  45272. 8013754: 6878 ldr r0, [r7, #4]
  45273. 8013756: f7fe fb13 bl 8011d80 <HAL_UART_ErrorCallback>
  45274. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45275. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45276. 801375a: 687b ldr r3, [r7, #4]
  45277. 801375c: 2200 movs r2, #0
  45278. 801375e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45279. }
  45280. }
  45281. if (huart->RxXferCount == 0U)
  45282. 8013762: 687b ldr r3, [r7, #4]
  45283. 8013764: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45284. 8013768: b29b uxth r3, r3
  45285. 801376a: 2b00 cmp r3, #0
  45286. 801376c: f040 80a0 bne.w 80138b0 <UART_RxISR_8BIT_FIFOEN+0x290>
  45287. {
  45288. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45289. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45290. 8013770: 687b ldr r3, [r7, #4]
  45291. 8013772: 681b ldr r3, [r3, #0]
  45292. 8013774: 673b str r3, [r7, #112] @ 0x70
  45293. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45294. 8013776: 6f3b ldr r3, [r7, #112] @ 0x70
  45295. 8013778: e853 3f00 ldrex r3, [r3]
  45296. 801377c: 66fb str r3, [r7, #108] @ 0x6c
  45297. return(result);
  45298. 801377e: 6efb ldr r3, [r7, #108] @ 0x6c
  45299. 8013780: f423 7380 bic.w r3, r3, #256 @ 0x100
  45300. 8013784: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45301. 8013788: 687b ldr r3, [r7, #4]
  45302. 801378a: 681b ldr r3, [r3, #0]
  45303. 801378c: 461a mov r2, r3
  45304. 801378e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  45305. 8013792: 67fb str r3, [r7, #124] @ 0x7c
  45306. 8013794: 67ba str r2, [r7, #120] @ 0x78
  45307. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45308. 8013796: 6fb9 ldr r1, [r7, #120] @ 0x78
  45309. 8013798: 6ffa ldr r2, [r7, #124] @ 0x7c
  45310. 801379a: e841 2300 strex r3, r2, [r1]
  45311. 801379e: 677b str r3, [r7, #116] @ 0x74
  45312. return(result);
  45313. 80137a0: 6f7b ldr r3, [r7, #116] @ 0x74
  45314. 80137a2: 2b00 cmp r3, #0
  45315. 80137a4: d1e4 bne.n 8013770 <UART_RxISR_8BIT_FIFOEN+0x150>
  45316. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45317. and RX FIFO Threshold interrupt */
  45318. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45319. 80137a6: 687b ldr r3, [r7, #4]
  45320. 80137a8: 681b ldr r3, [r3, #0]
  45321. 80137aa: 3308 adds r3, #8
  45322. 80137ac: 65fb str r3, [r7, #92] @ 0x5c
  45323. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45324. 80137ae: 6dfb ldr r3, [r7, #92] @ 0x5c
  45325. 80137b0: e853 3f00 ldrex r3, [r3]
  45326. 80137b4: 65bb str r3, [r7, #88] @ 0x58
  45327. return(result);
  45328. 80137b6: 6dba ldr r2, [r7, #88] @ 0x58
  45329. 80137b8: 4b6e ldr r3, [pc, #440] @ (8013974 <UART_RxISR_8BIT_FIFOEN+0x354>)
  45330. 80137ba: 4013 ands r3, r2
  45331. 80137bc: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45332. 80137c0: 687b ldr r3, [r7, #4]
  45333. 80137c2: 681b ldr r3, [r3, #0]
  45334. 80137c4: 3308 adds r3, #8
  45335. 80137c6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  45336. 80137ca: 66ba str r2, [r7, #104] @ 0x68
  45337. 80137cc: 667b str r3, [r7, #100] @ 0x64
  45338. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45339. 80137ce: 6e79 ldr r1, [r7, #100] @ 0x64
  45340. 80137d0: 6eba ldr r2, [r7, #104] @ 0x68
  45341. 80137d2: e841 2300 strex r3, r2, [r1]
  45342. 80137d6: 663b str r3, [r7, #96] @ 0x60
  45343. return(result);
  45344. 80137d8: 6e3b ldr r3, [r7, #96] @ 0x60
  45345. 80137da: 2b00 cmp r3, #0
  45346. 80137dc: d1e3 bne.n 80137a6 <UART_RxISR_8BIT_FIFOEN+0x186>
  45347. /* Rx process is completed, restore huart->RxState to Ready */
  45348. huart->RxState = HAL_UART_STATE_READY;
  45349. 80137de: 687b ldr r3, [r7, #4]
  45350. 80137e0: 2220 movs r2, #32
  45351. 80137e2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45352. /* Clear RxISR function pointer */
  45353. huart->RxISR = NULL;
  45354. 80137e6: 687b ldr r3, [r7, #4]
  45355. 80137e8: 2200 movs r2, #0
  45356. 80137ea: 675a str r2, [r3, #116] @ 0x74
  45357. /* Initialize type of RxEvent to Transfer Complete */
  45358. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45359. 80137ec: 687b ldr r3, [r7, #4]
  45360. 80137ee: 2200 movs r2, #0
  45361. 80137f0: 671a str r2, [r3, #112] @ 0x70
  45362. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45363. 80137f2: 687b ldr r3, [r7, #4]
  45364. 80137f4: 681b ldr r3, [r3, #0]
  45365. 80137f6: 4a60 ldr r2, [pc, #384] @ (8013978 <UART_RxISR_8BIT_FIFOEN+0x358>)
  45366. 80137f8: 4293 cmp r3, r2
  45367. 80137fa: d021 beq.n 8013840 <UART_RxISR_8BIT_FIFOEN+0x220>
  45368. {
  45369. /* Check that USART RTOEN bit is set */
  45370. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45371. 80137fc: 687b ldr r3, [r7, #4]
  45372. 80137fe: 681b ldr r3, [r3, #0]
  45373. 8013800: 685b ldr r3, [r3, #4]
  45374. 8013802: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45375. 8013806: 2b00 cmp r3, #0
  45376. 8013808: d01a beq.n 8013840 <UART_RxISR_8BIT_FIFOEN+0x220>
  45377. {
  45378. /* Enable the UART Receiver Timeout Interrupt */
  45379. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45380. 801380a: 687b ldr r3, [r7, #4]
  45381. 801380c: 681b ldr r3, [r3, #0]
  45382. 801380e: 64bb str r3, [r7, #72] @ 0x48
  45383. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45384. 8013810: 6cbb ldr r3, [r7, #72] @ 0x48
  45385. 8013812: e853 3f00 ldrex r3, [r3]
  45386. 8013816: 647b str r3, [r7, #68] @ 0x44
  45387. return(result);
  45388. 8013818: 6c7b ldr r3, [r7, #68] @ 0x44
  45389. 801381a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45390. 801381e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45391. 8013822: 687b ldr r3, [r7, #4]
  45392. 8013824: 681b ldr r3, [r3, #0]
  45393. 8013826: 461a mov r2, r3
  45394. 8013828: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45395. 801382c: 657b str r3, [r7, #84] @ 0x54
  45396. 801382e: 653a str r2, [r7, #80] @ 0x50
  45397. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45398. 8013830: 6d39 ldr r1, [r7, #80] @ 0x50
  45399. 8013832: 6d7a ldr r2, [r7, #84] @ 0x54
  45400. 8013834: e841 2300 strex r3, r2, [r1]
  45401. 8013838: 64fb str r3, [r7, #76] @ 0x4c
  45402. return(result);
  45403. 801383a: 6cfb ldr r3, [r7, #76] @ 0x4c
  45404. 801383c: 2b00 cmp r3, #0
  45405. 801383e: d1e4 bne.n 801380a <UART_RxISR_8BIT_FIFOEN+0x1ea>
  45406. }
  45407. }
  45408. /* Check current reception Mode :
  45409. If Reception till IDLE event has been selected : */
  45410. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45411. 8013840: 687b ldr r3, [r7, #4]
  45412. 8013842: 6edb ldr r3, [r3, #108] @ 0x6c
  45413. 8013844: 2b01 cmp r3, #1
  45414. 8013846: d130 bne.n 80138aa <UART_RxISR_8BIT_FIFOEN+0x28a>
  45415. {
  45416. /* Set reception type to Standard */
  45417. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45418. 8013848: 687b ldr r3, [r7, #4]
  45419. 801384a: 2200 movs r2, #0
  45420. 801384c: 66da str r2, [r3, #108] @ 0x6c
  45421. /* Disable IDLE interrupt */
  45422. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45423. 801384e: 687b ldr r3, [r7, #4]
  45424. 8013850: 681b ldr r3, [r3, #0]
  45425. 8013852: 637b str r3, [r7, #52] @ 0x34
  45426. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45427. 8013854: 6b7b ldr r3, [r7, #52] @ 0x34
  45428. 8013856: e853 3f00 ldrex r3, [r3]
  45429. 801385a: 633b str r3, [r7, #48] @ 0x30
  45430. return(result);
  45431. 801385c: 6b3b ldr r3, [r7, #48] @ 0x30
  45432. 801385e: f023 0310 bic.w r3, r3, #16
  45433. 8013862: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  45434. 8013866: 687b ldr r3, [r7, #4]
  45435. 8013868: 681b ldr r3, [r3, #0]
  45436. 801386a: 461a mov r2, r3
  45437. 801386c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  45438. 8013870: 643b str r3, [r7, #64] @ 0x40
  45439. 8013872: 63fa str r2, [r7, #60] @ 0x3c
  45440. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45441. 8013874: 6bf9 ldr r1, [r7, #60] @ 0x3c
  45442. 8013876: 6c3a ldr r2, [r7, #64] @ 0x40
  45443. 8013878: e841 2300 strex r3, r2, [r1]
  45444. 801387c: 63bb str r3, [r7, #56] @ 0x38
  45445. return(result);
  45446. 801387e: 6bbb ldr r3, [r7, #56] @ 0x38
  45447. 8013880: 2b00 cmp r3, #0
  45448. 8013882: d1e4 bne.n 801384e <UART_RxISR_8BIT_FIFOEN+0x22e>
  45449. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45450. 8013884: 687b ldr r3, [r7, #4]
  45451. 8013886: 681b ldr r3, [r3, #0]
  45452. 8013888: 69db ldr r3, [r3, #28]
  45453. 801388a: f003 0310 and.w r3, r3, #16
  45454. 801388e: 2b10 cmp r3, #16
  45455. 8013890: d103 bne.n 801389a <UART_RxISR_8BIT_FIFOEN+0x27a>
  45456. {
  45457. /* Clear IDLE Flag */
  45458. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45459. 8013892: 687b ldr r3, [r7, #4]
  45460. 8013894: 681b ldr r3, [r3, #0]
  45461. 8013896: 2210 movs r2, #16
  45462. 8013898: 621a str r2, [r3, #32]
  45463. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45464. /*Call registered Rx Event callback*/
  45465. huart->RxEventCallback(huart, huart->RxXferSize);
  45466. #else
  45467. /*Call legacy weak Rx Event callback*/
  45468. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45469. 801389a: 687b ldr r3, [r7, #4]
  45470. 801389c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45471. 80138a0: 4619 mov r1, r3
  45472. 80138a2: 6878 ldr r0, [r7, #4]
  45473. 80138a4: f7f1 f962 bl 8004b6c <HAL_UARTEx_RxEventCallback>
  45474. 80138a8: e002 b.n 80138b0 <UART_RxISR_8BIT_FIFOEN+0x290>
  45475. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45476. /*Call registered Rx complete callback*/
  45477. huart->RxCpltCallback(huart);
  45478. #else
  45479. /*Call legacy weak Rx complete callback*/
  45480. HAL_UART_RxCpltCallback(huart);
  45481. 80138aa: 6878 ldr r0, [r7, #4]
  45482. 80138ac: f7f1 f954 bl 8004b58 <HAL_UART_RxCpltCallback>
  45483. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45484. 80138b0: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  45485. 80138b4: 2b00 cmp r3, #0
  45486. 80138b6: d006 beq.n 80138c6 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  45487. 80138b8: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45488. 80138bc: f003 0320 and.w r3, r3, #32
  45489. 80138c0: 2b00 cmp r3, #0
  45490. 80138c2: f47f aed1 bne.w 8013668 <UART_RxISR_8BIT_FIFOEN+0x48>
  45491. /* When remaining number of bytes to receive is less than the RX FIFO
  45492. threshold, next incoming frames are processed as if FIFO mode was
  45493. disabled (i.e. one interrupt per received frame).
  45494. */
  45495. rxdatacount = huart->RxXferCount;
  45496. 80138c6: 687b ldr r3, [r7, #4]
  45497. 80138c8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45498. 80138cc: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  45499. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45500. 80138d0: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  45501. 80138d4: 2b00 cmp r3, #0
  45502. 80138d6: d049 beq.n 801396c <UART_RxISR_8BIT_FIFOEN+0x34c>
  45503. 80138d8: 687b ldr r3, [r7, #4]
  45504. 80138da: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45505. 80138de: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  45506. 80138e2: 429a cmp r2, r3
  45507. 80138e4: d242 bcs.n 801396c <UART_RxISR_8BIT_FIFOEN+0x34c>
  45508. {
  45509. /* Disable the UART RXFT interrupt*/
  45510. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45511. 80138e6: 687b ldr r3, [r7, #4]
  45512. 80138e8: 681b ldr r3, [r3, #0]
  45513. 80138ea: 3308 adds r3, #8
  45514. 80138ec: 623b str r3, [r7, #32]
  45515. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45516. 80138ee: 6a3b ldr r3, [r7, #32]
  45517. 80138f0: e853 3f00 ldrex r3, [r3]
  45518. 80138f4: 61fb str r3, [r7, #28]
  45519. return(result);
  45520. 80138f6: 69fb ldr r3, [r7, #28]
  45521. 80138f8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45522. 80138fc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45523. 8013900: 687b ldr r3, [r7, #4]
  45524. 8013902: 681b ldr r3, [r3, #0]
  45525. 8013904: 3308 adds r3, #8
  45526. 8013906: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  45527. 801390a: 62fa str r2, [r7, #44] @ 0x2c
  45528. 801390c: 62bb str r3, [r7, #40] @ 0x28
  45529. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45530. 801390e: 6ab9 ldr r1, [r7, #40] @ 0x28
  45531. 8013910: 6afa ldr r2, [r7, #44] @ 0x2c
  45532. 8013912: e841 2300 strex r3, r2, [r1]
  45533. 8013916: 627b str r3, [r7, #36] @ 0x24
  45534. return(result);
  45535. 8013918: 6a7b ldr r3, [r7, #36] @ 0x24
  45536. 801391a: 2b00 cmp r3, #0
  45537. 801391c: d1e3 bne.n 80138e6 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  45538. /* Update the RxISR function pointer */
  45539. huart->RxISR = UART_RxISR_8BIT;
  45540. 801391e: 687b ldr r3, [r7, #4]
  45541. 8013920: 4a16 ldr r2, [pc, #88] @ (801397c <UART_RxISR_8BIT_FIFOEN+0x35c>)
  45542. 8013922: 675a str r2, [r3, #116] @ 0x74
  45543. /* Enable the UART Data Register Not Empty interrupt */
  45544. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45545. 8013924: 687b ldr r3, [r7, #4]
  45546. 8013926: 681b ldr r3, [r3, #0]
  45547. 8013928: 60fb str r3, [r7, #12]
  45548. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45549. 801392a: 68fb ldr r3, [r7, #12]
  45550. 801392c: e853 3f00 ldrex r3, [r3]
  45551. 8013930: 60bb str r3, [r7, #8]
  45552. return(result);
  45553. 8013932: 68bb ldr r3, [r7, #8]
  45554. 8013934: f043 0320 orr.w r3, r3, #32
  45555. 8013938: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45556. 801393c: 687b ldr r3, [r7, #4]
  45557. 801393e: 681b ldr r3, [r3, #0]
  45558. 8013940: 461a mov r2, r3
  45559. 8013942: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  45560. 8013946: 61bb str r3, [r7, #24]
  45561. 8013948: 617a str r2, [r7, #20]
  45562. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45563. 801394a: 6979 ldr r1, [r7, #20]
  45564. 801394c: 69ba ldr r2, [r7, #24]
  45565. 801394e: e841 2300 strex r3, r2, [r1]
  45566. 8013952: 613b str r3, [r7, #16]
  45567. return(result);
  45568. 8013954: 693b ldr r3, [r7, #16]
  45569. 8013956: 2b00 cmp r3, #0
  45570. 8013958: d1e4 bne.n 8013924 <UART_RxISR_8BIT_FIFOEN+0x304>
  45571. else
  45572. {
  45573. /* Clear RXNE interrupt flag */
  45574. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45575. }
  45576. }
  45577. 801395a: e007 b.n 801396c <UART_RxISR_8BIT_FIFOEN+0x34c>
  45578. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45579. 801395c: 687b ldr r3, [r7, #4]
  45580. 801395e: 681b ldr r3, [r3, #0]
  45581. 8013960: 699a ldr r2, [r3, #24]
  45582. 8013962: 687b ldr r3, [r7, #4]
  45583. 8013964: 681b ldr r3, [r3, #0]
  45584. 8013966: f042 0208 orr.w r2, r2, #8
  45585. 801396a: 619a str r2, [r3, #24]
  45586. }
  45587. 801396c: bf00 nop
  45588. 801396e: 37b0 adds r7, #176 @ 0xb0
  45589. 8013970: 46bd mov sp, r7
  45590. 8013972: bd80 pop {r7, pc}
  45591. 8013974: effffffe .word 0xeffffffe
  45592. 8013978: 58000c00 .word 0x58000c00
  45593. 801397c: 080132b1 .word 0x080132b1
  45594. 08013980 <UART_RxISR_16BIT_FIFOEN>:
  45595. * interruptions have been enabled by HAL_UART_Receive_IT()
  45596. * @param huart UART handle.
  45597. * @retval None
  45598. */
  45599. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  45600. {
  45601. 8013980: b580 push {r7, lr}
  45602. 8013982: b0ae sub sp, #184 @ 0xb8
  45603. 8013984: af00 add r7, sp, #0
  45604. 8013986: 6078 str r0, [r7, #4]
  45605. uint16_t *tmp;
  45606. uint16_t uhMask = huart->Mask;
  45607. 8013988: 687b ldr r3, [r7, #4]
  45608. 801398a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45609. 801398e: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  45610. uint16_t uhdata;
  45611. uint16_t nb_rx_data;
  45612. uint16_t rxdatacount;
  45613. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45614. 8013992: 687b ldr r3, [r7, #4]
  45615. 8013994: 681b ldr r3, [r3, #0]
  45616. 8013996: 69db ldr r3, [r3, #28]
  45617. 8013998: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45618. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45619. 801399c: 687b ldr r3, [r7, #4]
  45620. 801399e: 681b ldr r3, [r3, #0]
  45621. 80139a0: 681b ldr r3, [r3, #0]
  45622. 80139a2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45623. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45624. 80139a6: 687b ldr r3, [r7, #4]
  45625. 80139a8: 681b ldr r3, [r3, #0]
  45626. 80139aa: 689b ldr r3, [r3, #8]
  45627. 80139ac: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  45628. /* Check that a Rx process is ongoing */
  45629. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45630. 80139b0: 687b ldr r3, [r7, #4]
  45631. 80139b2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45632. 80139b6: 2b22 cmp r3, #34 @ 0x22
  45633. 80139b8: f040 8184 bne.w 8013cc4 <UART_RxISR_16BIT_FIFOEN+0x344>
  45634. {
  45635. nb_rx_data = huart->NbRxDataToProcess;
  45636. 80139bc: 687b ldr r3, [r7, #4]
  45637. 80139be: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45638. 80139c2: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  45639. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45640. 80139c6: e127 b.n 8013c18 <UART_RxISR_16BIT_FIFOEN+0x298>
  45641. {
  45642. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45643. 80139c8: 687b ldr r3, [r7, #4]
  45644. 80139ca: 681b ldr r3, [r3, #0]
  45645. 80139cc: 6a5b ldr r3, [r3, #36] @ 0x24
  45646. 80139ce: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  45647. tmp = (uint16_t *) huart->pRxBuffPtr ;
  45648. 80139d2: 687b ldr r3, [r7, #4]
  45649. 80139d4: 6d9b ldr r3, [r3, #88] @ 0x58
  45650. 80139d6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45651. *tmp = (uint16_t)(uhdata & uhMask);
  45652. 80139da: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  45653. 80139de: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  45654. 80139e2: 4013 ands r3, r2
  45655. 80139e4: b29a uxth r2, r3
  45656. 80139e6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45657. 80139ea: 801a strh r2, [r3, #0]
  45658. huart->pRxBuffPtr += 2U;
  45659. 80139ec: 687b ldr r3, [r7, #4]
  45660. 80139ee: 6d9b ldr r3, [r3, #88] @ 0x58
  45661. 80139f0: 1c9a adds r2, r3, #2
  45662. 80139f2: 687b ldr r3, [r7, #4]
  45663. 80139f4: 659a str r2, [r3, #88] @ 0x58
  45664. huart->RxXferCount--;
  45665. 80139f6: 687b ldr r3, [r7, #4]
  45666. 80139f8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45667. 80139fc: b29b uxth r3, r3
  45668. 80139fe: 3b01 subs r3, #1
  45669. 8013a00: b29a uxth r2, r3
  45670. 8013a02: 687b ldr r3, [r7, #4]
  45671. 8013a04: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45672. isrflags = READ_REG(huart->Instance->ISR);
  45673. 8013a08: 687b ldr r3, [r7, #4]
  45674. 8013a0a: 681b ldr r3, [r3, #0]
  45675. 8013a0c: 69db ldr r3, [r3, #28]
  45676. 8013a0e: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45677. /* If some non blocking errors occurred */
  45678. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45679. 8013a12: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45680. 8013a16: f003 0307 and.w r3, r3, #7
  45681. 8013a1a: 2b00 cmp r3, #0
  45682. 8013a1c: d053 beq.n 8013ac6 <UART_RxISR_16BIT_FIFOEN+0x146>
  45683. {
  45684. /* UART parity error interrupt occurred -------------------------------------*/
  45685. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45686. 8013a1e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45687. 8013a22: f003 0301 and.w r3, r3, #1
  45688. 8013a26: 2b00 cmp r3, #0
  45689. 8013a28: d011 beq.n 8013a4e <UART_RxISR_16BIT_FIFOEN+0xce>
  45690. 8013a2a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45691. 8013a2e: f403 7380 and.w r3, r3, #256 @ 0x100
  45692. 8013a32: 2b00 cmp r3, #0
  45693. 8013a34: d00b beq.n 8013a4e <UART_RxISR_16BIT_FIFOEN+0xce>
  45694. {
  45695. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45696. 8013a36: 687b ldr r3, [r7, #4]
  45697. 8013a38: 681b ldr r3, [r3, #0]
  45698. 8013a3a: 2201 movs r2, #1
  45699. 8013a3c: 621a str r2, [r3, #32]
  45700. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45701. 8013a3e: 687b ldr r3, [r7, #4]
  45702. 8013a40: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45703. 8013a44: f043 0201 orr.w r2, r3, #1
  45704. 8013a48: 687b ldr r3, [r7, #4]
  45705. 8013a4a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45706. }
  45707. /* UART frame error interrupt occurred --------------------------------------*/
  45708. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45709. 8013a4e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45710. 8013a52: f003 0302 and.w r3, r3, #2
  45711. 8013a56: 2b00 cmp r3, #0
  45712. 8013a58: d011 beq.n 8013a7e <UART_RxISR_16BIT_FIFOEN+0xfe>
  45713. 8013a5a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45714. 8013a5e: f003 0301 and.w r3, r3, #1
  45715. 8013a62: 2b00 cmp r3, #0
  45716. 8013a64: d00b beq.n 8013a7e <UART_RxISR_16BIT_FIFOEN+0xfe>
  45717. {
  45718. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45719. 8013a66: 687b ldr r3, [r7, #4]
  45720. 8013a68: 681b ldr r3, [r3, #0]
  45721. 8013a6a: 2202 movs r2, #2
  45722. 8013a6c: 621a str r2, [r3, #32]
  45723. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45724. 8013a6e: 687b ldr r3, [r7, #4]
  45725. 8013a70: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45726. 8013a74: f043 0204 orr.w r2, r3, #4
  45727. 8013a78: 687b ldr r3, [r7, #4]
  45728. 8013a7a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45729. }
  45730. /* UART noise error interrupt occurred --------------------------------------*/
  45731. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45732. 8013a7e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45733. 8013a82: f003 0304 and.w r3, r3, #4
  45734. 8013a86: 2b00 cmp r3, #0
  45735. 8013a88: d011 beq.n 8013aae <UART_RxISR_16BIT_FIFOEN+0x12e>
  45736. 8013a8a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45737. 8013a8e: f003 0301 and.w r3, r3, #1
  45738. 8013a92: 2b00 cmp r3, #0
  45739. 8013a94: d00b beq.n 8013aae <UART_RxISR_16BIT_FIFOEN+0x12e>
  45740. {
  45741. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45742. 8013a96: 687b ldr r3, [r7, #4]
  45743. 8013a98: 681b ldr r3, [r3, #0]
  45744. 8013a9a: 2204 movs r2, #4
  45745. 8013a9c: 621a str r2, [r3, #32]
  45746. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45747. 8013a9e: 687b ldr r3, [r7, #4]
  45748. 8013aa0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45749. 8013aa4: f043 0202 orr.w r2, r3, #2
  45750. 8013aa8: 687b ldr r3, [r7, #4]
  45751. 8013aaa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45752. }
  45753. /* Call UART Error Call back function if need be ----------------------------*/
  45754. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45755. 8013aae: 687b ldr r3, [r7, #4]
  45756. 8013ab0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45757. 8013ab4: 2b00 cmp r3, #0
  45758. 8013ab6: d006 beq.n 8013ac6 <UART_RxISR_16BIT_FIFOEN+0x146>
  45759. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45760. /*Call registered error callback*/
  45761. huart->ErrorCallback(huart);
  45762. #else
  45763. /*Call legacy weak error callback*/
  45764. HAL_UART_ErrorCallback(huart);
  45765. 8013ab8: 6878 ldr r0, [r7, #4]
  45766. 8013aba: f7fe f961 bl 8011d80 <HAL_UART_ErrorCallback>
  45767. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45768. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45769. 8013abe: 687b ldr r3, [r7, #4]
  45770. 8013ac0: 2200 movs r2, #0
  45771. 8013ac2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45772. }
  45773. }
  45774. if (huart->RxXferCount == 0U)
  45775. 8013ac6: 687b ldr r3, [r7, #4]
  45776. 8013ac8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45777. 8013acc: b29b uxth r3, r3
  45778. 8013ace: 2b00 cmp r3, #0
  45779. 8013ad0: f040 80a2 bne.w 8013c18 <UART_RxISR_16BIT_FIFOEN+0x298>
  45780. {
  45781. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45782. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45783. 8013ad4: 687b ldr r3, [r7, #4]
  45784. 8013ad6: 681b ldr r3, [r3, #0]
  45785. 8013ad8: 677b str r3, [r7, #116] @ 0x74
  45786. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45787. 8013ada: 6f7b ldr r3, [r7, #116] @ 0x74
  45788. 8013adc: e853 3f00 ldrex r3, [r3]
  45789. 8013ae0: 673b str r3, [r7, #112] @ 0x70
  45790. return(result);
  45791. 8013ae2: 6f3b ldr r3, [r7, #112] @ 0x70
  45792. 8013ae4: f423 7380 bic.w r3, r3, #256 @ 0x100
  45793. 8013ae8: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  45794. 8013aec: 687b ldr r3, [r7, #4]
  45795. 8013aee: 681b ldr r3, [r3, #0]
  45796. 8013af0: 461a mov r2, r3
  45797. 8013af2: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  45798. 8013af6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45799. 8013afa: 67fa str r2, [r7, #124] @ 0x7c
  45800. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45801. 8013afc: 6ff9 ldr r1, [r7, #124] @ 0x7c
  45802. 8013afe: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  45803. 8013b02: e841 2300 strex r3, r2, [r1]
  45804. 8013b06: 67bb str r3, [r7, #120] @ 0x78
  45805. return(result);
  45806. 8013b08: 6fbb ldr r3, [r7, #120] @ 0x78
  45807. 8013b0a: 2b00 cmp r3, #0
  45808. 8013b0c: d1e2 bne.n 8013ad4 <UART_RxISR_16BIT_FIFOEN+0x154>
  45809. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45810. and RX FIFO Threshold interrupt */
  45811. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45812. 8013b0e: 687b ldr r3, [r7, #4]
  45813. 8013b10: 681b ldr r3, [r3, #0]
  45814. 8013b12: 3308 adds r3, #8
  45815. 8013b14: 663b str r3, [r7, #96] @ 0x60
  45816. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45817. 8013b16: 6e3b ldr r3, [r7, #96] @ 0x60
  45818. 8013b18: e853 3f00 ldrex r3, [r3]
  45819. 8013b1c: 65fb str r3, [r7, #92] @ 0x5c
  45820. return(result);
  45821. 8013b1e: 6dfa ldr r2, [r7, #92] @ 0x5c
  45822. 8013b20: 4b6e ldr r3, [pc, #440] @ (8013cdc <UART_RxISR_16BIT_FIFOEN+0x35c>)
  45823. 8013b22: 4013 ands r3, r2
  45824. 8013b24: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45825. 8013b28: 687b ldr r3, [r7, #4]
  45826. 8013b2a: 681b ldr r3, [r3, #0]
  45827. 8013b2c: 3308 adds r3, #8
  45828. 8013b2e: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  45829. 8013b32: 66fa str r2, [r7, #108] @ 0x6c
  45830. 8013b34: 66bb str r3, [r7, #104] @ 0x68
  45831. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45832. 8013b36: 6eb9 ldr r1, [r7, #104] @ 0x68
  45833. 8013b38: 6efa ldr r2, [r7, #108] @ 0x6c
  45834. 8013b3a: e841 2300 strex r3, r2, [r1]
  45835. 8013b3e: 667b str r3, [r7, #100] @ 0x64
  45836. return(result);
  45837. 8013b40: 6e7b ldr r3, [r7, #100] @ 0x64
  45838. 8013b42: 2b00 cmp r3, #0
  45839. 8013b44: d1e3 bne.n 8013b0e <UART_RxISR_16BIT_FIFOEN+0x18e>
  45840. /* Rx process is completed, restore huart->RxState to Ready */
  45841. huart->RxState = HAL_UART_STATE_READY;
  45842. 8013b46: 687b ldr r3, [r7, #4]
  45843. 8013b48: 2220 movs r2, #32
  45844. 8013b4a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45845. /* Clear RxISR function pointer */
  45846. huart->RxISR = NULL;
  45847. 8013b4e: 687b ldr r3, [r7, #4]
  45848. 8013b50: 2200 movs r2, #0
  45849. 8013b52: 675a str r2, [r3, #116] @ 0x74
  45850. /* Initialize type of RxEvent to Transfer Complete */
  45851. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45852. 8013b54: 687b ldr r3, [r7, #4]
  45853. 8013b56: 2200 movs r2, #0
  45854. 8013b58: 671a str r2, [r3, #112] @ 0x70
  45855. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45856. 8013b5a: 687b ldr r3, [r7, #4]
  45857. 8013b5c: 681b ldr r3, [r3, #0]
  45858. 8013b5e: 4a60 ldr r2, [pc, #384] @ (8013ce0 <UART_RxISR_16BIT_FIFOEN+0x360>)
  45859. 8013b60: 4293 cmp r3, r2
  45860. 8013b62: d021 beq.n 8013ba8 <UART_RxISR_16BIT_FIFOEN+0x228>
  45861. {
  45862. /* Check that USART RTOEN bit is set */
  45863. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45864. 8013b64: 687b ldr r3, [r7, #4]
  45865. 8013b66: 681b ldr r3, [r3, #0]
  45866. 8013b68: 685b ldr r3, [r3, #4]
  45867. 8013b6a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45868. 8013b6e: 2b00 cmp r3, #0
  45869. 8013b70: d01a beq.n 8013ba8 <UART_RxISR_16BIT_FIFOEN+0x228>
  45870. {
  45871. /* Enable the UART Receiver Timeout Interrupt */
  45872. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45873. 8013b72: 687b ldr r3, [r7, #4]
  45874. 8013b74: 681b ldr r3, [r3, #0]
  45875. 8013b76: 64fb str r3, [r7, #76] @ 0x4c
  45876. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45877. 8013b78: 6cfb ldr r3, [r7, #76] @ 0x4c
  45878. 8013b7a: e853 3f00 ldrex r3, [r3]
  45879. 8013b7e: 64bb str r3, [r7, #72] @ 0x48
  45880. return(result);
  45881. 8013b80: 6cbb ldr r3, [r7, #72] @ 0x48
  45882. 8013b82: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45883. 8013b86: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45884. 8013b8a: 687b ldr r3, [r7, #4]
  45885. 8013b8c: 681b ldr r3, [r3, #0]
  45886. 8013b8e: 461a mov r2, r3
  45887. 8013b90: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  45888. 8013b94: 65bb str r3, [r7, #88] @ 0x58
  45889. 8013b96: 657a str r2, [r7, #84] @ 0x54
  45890. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45891. 8013b98: 6d79 ldr r1, [r7, #84] @ 0x54
  45892. 8013b9a: 6dba ldr r2, [r7, #88] @ 0x58
  45893. 8013b9c: e841 2300 strex r3, r2, [r1]
  45894. 8013ba0: 653b str r3, [r7, #80] @ 0x50
  45895. return(result);
  45896. 8013ba2: 6d3b ldr r3, [r7, #80] @ 0x50
  45897. 8013ba4: 2b00 cmp r3, #0
  45898. 8013ba6: d1e4 bne.n 8013b72 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  45899. }
  45900. }
  45901. /* Check current reception Mode :
  45902. If Reception till IDLE event has been selected : */
  45903. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45904. 8013ba8: 687b ldr r3, [r7, #4]
  45905. 8013baa: 6edb ldr r3, [r3, #108] @ 0x6c
  45906. 8013bac: 2b01 cmp r3, #1
  45907. 8013bae: d130 bne.n 8013c12 <UART_RxISR_16BIT_FIFOEN+0x292>
  45908. {
  45909. /* Set reception type to Standard */
  45910. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45911. 8013bb0: 687b ldr r3, [r7, #4]
  45912. 8013bb2: 2200 movs r2, #0
  45913. 8013bb4: 66da str r2, [r3, #108] @ 0x6c
  45914. /* Disable IDLE interrupt */
  45915. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45916. 8013bb6: 687b ldr r3, [r7, #4]
  45917. 8013bb8: 681b ldr r3, [r3, #0]
  45918. 8013bba: 63bb str r3, [r7, #56] @ 0x38
  45919. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45920. 8013bbc: 6bbb ldr r3, [r7, #56] @ 0x38
  45921. 8013bbe: e853 3f00 ldrex r3, [r3]
  45922. 8013bc2: 637b str r3, [r7, #52] @ 0x34
  45923. return(result);
  45924. 8013bc4: 6b7b ldr r3, [r7, #52] @ 0x34
  45925. 8013bc6: f023 0310 bic.w r3, r3, #16
  45926. 8013bca: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45927. 8013bce: 687b ldr r3, [r7, #4]
  45928. 8013bd0: 681b ldr r3, [r3, #0]
  45929. 8013bd2: 461a mov r2, r3
  45930. 8013bd4: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45931. 8013bd8: 647b str r3, [r7, #68] @ 0x44
  45932. 8013bda: 643a str r2, [r7, #64] @ 0x40
  45933. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45934. 8013bdc: 6c39 ldr r1, [r7, #64] @ 0x40
  45935. 8013bde: 6c7a ldr r2, [r7, #68] @ 0x44
  45936. 8013be0: e841 2300 strex r3, r2, [r1]
  45937. 8013be4: 63fb str r3, [r7, #60] @ 0x3c
  45938. return(result);
  45939. 8013be6: 6bfb ldr r3, [r7, #60] @ 0x3c
  45940. 8013be8: 2b00 cmp r3, #0
  45941. 8013bea: d1e4 bne.n 8013bb6 <UART_RxISR_16BIT_FIFOEN+0x236>
  45942. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45943. 8013bec: 687b ldr r3, [r7, #4]
  45944. 8013bee: 681b ldr r3, [r3, #0]
  45945. 8013bf0: 69db ldr r3, [r3, #28]
  45946. 8013bf2: f003 0310 and.w r3, r3, #16
  45947. 8013bf6: 2b10 cmp r3, #16
  45948. 8013bf8: d103 bne.n 8013c02 <UART_RxISR_16BIT_FIFOEN+0x282>
  45949. {
  45950. /* Clear IDLE Flag */
  45951. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45952. 8013bfa: 687b ldr r3, [r7, #4]
  45953. 8013bfc: 681b ldr r3, [r3, #0]
  45954. 8013bfe: 2210 movs r2, #16
  45955. 8013c00: 621a str r2, [r3, #32]
  45956. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45957. /*Call registered Rx Event callback*/
  45958. huart->RxEventCallback(huart, huart->RxXferSize);
  45959. #else
  45960. /*Call legacy weak Rx Event callback*/
  45961. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45962. 8013c02: 687b ldr r3, [r7, #4]
  45963. 8013c04: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45964. 8013c08: 4619 mov r1, r3
  45965. 8013c0a: 6878 ldr r0, [r7, #4]
  45966. 8013c0c: f7f0 ffae bl 8004b6c <HAL_UARTEx_RxEventCallback>
  45967. 8013c10: e002 b.n 8013c18 <UART_RxISR_16BIT_FIFOEN+0x298>
  45968. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45969. /*Call registered Rx complete callback*/
  45970. huart->RxCpltCallback(huart);
  45971. #else
  45972. /*Call legacy weak Rx complete callback*/
  45973. HAL_UART_RxCpltCallback(huart);
  45974. 8013c12: 6878 ldr r0, [r7, #4]
  45975. 8013c14: f7f0 ffa0 bl 8004b58 <HAL_UART_RxCpltCallback>
  45976. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45977. 8013c18: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45978. 8013c1c: 2b00 cmp r3, #0
  45979. 8013c1e: d006 beq.n 8013c2e <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45980. 8013c20: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45981. 8013c24: f003 0320 and.w r3, r3, #32
  45982. 8013c28: 2b00 cmp r3, #0
  45983. 8013c2a: f47f aecd bne.w 80139c8 <UART_RxISR_16BIT_FIFOEN+0x48>
  45984. /* When remaining number of bytes to receive is less than the RX FIFO
  45985. threshold, next incoming frames are processed as if FIFO mode was
  45986. disabled (i.e. one interrupt per received frame).
  45987. */
  45988. rxdatacount = huart->RxXferCount;
  45989. 8013c2e: 687b ldr r3, [r7, #4]
  45990. 8013c30: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45991. 8013c34: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45992. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45993. 8013c38: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45994. 8013c3c: 2b00 cmp r3, #0
  45995. 8013c3e: d049 beq.n 8013cd4 <UART_RxISR_16BIT_FIFOEN+0x354>
  45996. 8013c40: 687b ldr r3, [r7, #4]
  45997. 8013c42: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45998. 8013c46: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45999. 8013c4a: 429a cmp r2, r3
  46000. 8013c4c: d242 bcs.n 8013cd4 <UART_RxISR_16BIT_FIFOEN+0x354>
  46001. {
  46002. /* Disable the UART RXFT interrupt*/
  46003. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  46004. 8013c4e: 687b ldr r3, [r7, #4]
  46005. 8013c50: 681b ldr r3, [r3, #0]
  46006. 8013c52: 3308 adds r3, #8
  46007. 8013c54: 627b str r3, [r7, #36] @ 0x24
  46008. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46009. 8013c56: 6a7b ldr r3, [r7, #36] @ 0x24
  46010. 8013c58: e853 3f00 ldrex r3, [r3]
  46011. 8013c5c: 623b str r3, [r7, #32]
  46012. return(result);
  46013. 8013c5e: 6a3b ldr r3, [r7, #32]
  46014. 8013c60: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  46015. 8013c64: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  46016. 8013c68: 687b ldr r3, [r7, #4]
  46017. 8013c6a: 681b ldr r3, [r3, #0]
  46018. 8013c6c: 3308 adds r3, #8
  46019. 8013c6e: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  46020. 8013c72: 633a str r2, [r7, #48] @ 0x30
  46021. 8013c74: 62fb str r3, [r7, #44] @ 0x2c
  46022. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46023. 8013c76: 6af9 ldr r1, [r7, #44] @ 0x2c
  46024. 8013c78: 6b3a ldr r2, [r7, #48] @ 0x30
  46025. 8013c7a: e841 2300 strex r3, r2, [r1]
  46026. 8013c7e: 62bb str r3, [r7, #40] @ 0x28
  46027. return(result);
  46028. 8013c80: 6abb ldr r3, [r7, #40] @ 0x28
  46029. 8013c82: 2b00 cmp r3, #0
  46030. 8013c84: d1e3 bne.n 8013c4e <UART_RxISR_16BIT_FIFOEN+0x2ce>
  46031. /* Update the RxISR function pointer */
  46032. huart->RxISR = UART_RxISR_16BIT;
  46033. 8013c86: 687b ldr r3, [r7, #4]
  46034. 8013c88: 4a16 ldr r2, [pc, #88] @ (8013ce4 <UART_RxISR_16BIT_FIFOEN+0x364>)
  46035. 8013c8a: 675a str r2, [r3, #116] @ 0x74
  46036. /* Enable the UART Data Register Not Empty interrupt */
  46037. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  46038. 8013c8c: 687b ldr r3, [r7, #4]
  46039. 8013c8e: 681b ldr r3, [r3, #0]
  46040. 8013c90: 613b str r3, [r7, #16]
  46041. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46042. 8013c92: 693b ldr r3, [r7, #16]
  46043. 8013c94: e853 3f00 ldrex r3, [r3]
  46044. 8013c98: 60fb str r3, [r7, #12]
  46045. return(result);
  46046. 8013c9a: 68fb ldr r3, [r7, #12]
  46047. 8013c9c: f043 0320 orr.w r3, r3, #32
  46048. 8013ca0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  46049. 8013ca4: 687b ldr r3, [r7, #4]
  46050. 8013ca6: 681b ldr r3, [r3, #0]
  46051. 8013ca8: 461a mov r2, r3
  46052. 8013caa: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  46053. 8013cae: 61fb str r3, [r7, #28]
  46054. 8013cb0: 61ba str r2, [r7, #24]
  46055. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46056. 8013cb2: 69b9 ldr r1, [r7, #24]
  46057. 8013cb4: 69fa ldr r2, [r7, #28]
  46058. 8013cb6: e841 2300 strex r3, r2, [r1]
  46059. 8013cba: 617b str r3, [r7, #20]
  46060. return(result);
  46061. 8013cbc: 697b ldr r3, [r7, #20]
  46062. 8013cbe: 2b00 cmp r3, #0
  46063. 8013cc0: d1e4 bne.n 8013c8c <UART_RxISR_16BIT_FIFOEN+0x30c>
  46064. else
  46065. {
  46066. /* Clear RXNE interrupt flag */
  46067. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46068. }
  46069. }
  46070. 8013cc2: e007 b.n 8013cd4 <UART_RxISR_16BIT_FIFOEN+0x354>
  46071. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46072. 8013cc4: 687b ldr r3, [r7, #4]
  46073. 8013cc6: 681b ldr r3, [r3, #0]
  46074. 8013cc8: 699a ldr r2, [r3, #24]
  46075. 8013cca: 687b ldr r3, [r7, #4]
  46076. 8013ccc: 681b ldr r3, [r3, #0]
  46077. 8013cce: f042 0208 orr.w r2, r2, #8
  46078. 8013cd2: 619a str r2, [r3, #24]
  46079. }
  46080. 8013cd4: bf00 nop
  46081. 8013cd6: 37b8 adds r7, #184 @ 0xb8
  46082. 8013cd8: 46bd mov sp, r7
  46083. 8013cda: bd80 pop {r7, pc}
  46084. 8013cdc: effffffe .word 0xeffffffe
  46085. 8013ce0: 58000c00 .word 0x58000c00
  46086. 8013ce4: 08013469 .word 0x08013469
  46087. 08013ce8 <HAL_UARTEx_WakeupCallback>:
  46088. * @brief UART wakeup from Stop mode callback.
  46089. * @param huart UART handle.
  46090. * @retval None
  46091. */
  46092. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  46093. {
  46094. 8013ce8: b480 push {r7}
  46095. 8013cea: b083 sub sp, #12
  46096. 8013cec: af00 add r7, sp, #0
  46097. 8013cee: 6078 str r0, [r7, #4]
  46098. UNUSED(huart);
  46099. /* NOTE : This function should not be modified, when the callback is needed,
  46100. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  46101. */
  46102. }
  46103. 8013cf0: bf00 nop
  46104. 8013cf2: 370c adds r7, #12
  46105. 8013cf4: 46bd mov sp, r7
  46106. 8013cf6: f85d 7b04 ldr.w r7, [sp], #4
  46107. 8013cfa: 4770 bx lr
  46108. 08013cfc <HAL_UARTEx_RxFifoFullCallback>:
  46109. * @brief UART RX Fifo full callback.
  46110. * @param huart UART handle.
  46111. * @retval None
  46112. */
  46113. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  46114. {
  46115. 8013cfc: b480 push {r7}
  46116. 8013cfe: b083 sub sp, #12
  46117. 8013d00: af00 add r7, sp, #0
  46118. 8013d02: 6078 str r0, [r7, #4]
  46119. UNUSED(huart);
  46120. /* NOTE : This function should not be modified, when the callback is needed,
  46121. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  46122. */
  46123. }
  46124. 8013d04: bf00 nop
  46125. 8013d06: 370c adds r7, #12
  46126. 8013d08: 46bd mov sp, r7
  46127. 8013d0a: f85d 7b04 ldr.w r7, [sp], #4
  46128. 8013d0e: 4770 bx lr
  46129. 08013d10 <HAL_UARTEx_TxFifoEmptyCallback>:
  46130. * @brief UART TX Fifo empty callback.
  46131. * @param huart UART handle.
  46132. * @retval None
  46133. */
  46134. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  46135. {
  46136. 8013d10: b480 push {r7}
  46137. 8013d12: b083 sub sp, #12
  46138. 8013d14: af00 add r7, sp, #0
  46139. 8013d16: 6078 str r0, [r7, #4]
  46140. UNUSED(huart);
  46141. /* NOTE : This function should not be modified, when the callback is needed,
  46142. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  46143. */
  46144. }
  46145. 8013d18: bf00 nop
  46146. 8013d1a: 370c adds r7, #12
  46147. 8013d1c: 46bd mov sp, r7
  46148. 8013d1e: f85d 7b04 ldr.w r7, [sp], #4
  46149. 8013d22: 4770 bx lr
  46150. 08013d24 <HAL_UARTEx_DisableFifoMode>:
  46151. * @brief Disable the FIFO mode.
  46152. * @param huart UART handle.
  46153. * @retval HAL status
  46154. */
  46155. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  46156. {
  46157. 8013d24: b480 push {r7}
  46158. 8013d26: b085 sub sp, #20
  46159. 8013d28: af00 add r7, sp, #0
  46160. 8013d2a: 6078 str r0, [r7, #4]
  46161. /* Check parameters */
  46162. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46163. /* Process Locked */
  46164. __HAL_LOCK(huart);
  46165. 8013d2c: 687b ldr r3, [r7, #4]
  46166. 8013d2e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46167. 8013d32: 2b01 cmp r3, #1
  46168. 8013d34: d101 bne.n 8013d3a <HAL_UARTEx_DisableFifoMode+0x16>
  46169. 8013d36: 2302 movs r3, #2
  46170. 8013d38: e027 b.n 8013d8a <HAL_UARTEx_DisableFifoMode+0x66>
  46171. 8013d3a: 687b ldr r3, [r7, #4]
  46172. 8013d3c: 2201 movs r2, #1
  46173. 8013d3e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46174. huart->gState = HAL_UART_STATE_BUSY;
  46175. 8013d42: 687b ldr r3, [r7, #4]
  46176. 8013d44: 2224 movs r2, #36 @ 0x24
  46177. 8013d46: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46178. /* Save actual UART configuration */
  46179. tmpcr1 = READ_REG(huart->Instance->CR1);
  46180. 8013d4a: 687b ldr r3, [r7, #4]
  46181. 8013d4c: 681b ldr r3, [r3, #0]
  46182. 8013d4e: 681b ldr r3, [r3, #0]
  46183. 8013d50: 60fb str r3, [r7, #12]
  46184. /* Disable UART */
  46185. __HAL_UART_DISABLE(huart);
  46186. 8013d52: 687b ldr r3, [r7, #4]
  46187. 8013d54: 681b ldr r3, [r3, #0]
  46188. 8013d56: 681a ldr r2, [r3, #0]
  46189. 8013d58: 687b ldr r3, [r7, #4]
  46190. 8013d5a: 681b ldr r3, [r3, #0]
  46191. 8013d5c: f022 0201 bic.w r2, r2, #1
  46192. 8013d60: 601a str r2, [r3, #0]
  46193. /* Enable FIFO mode */
  46194. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  46195. 8013d62: 68fb ldr r3, [r7, #12]
  46196. 8013d64: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  46197. 8013d68: 60fb str r3, [r7, #12]
  46198. huart->FifoMode = UART_FIFOMODE_DISABLE;
  46199. 8013d6a: 687b ldr r3, [r7, #4]
  46200. 8013d6c: 2200 movs r2, #0
  46201. 8013d6e: 665a str r2, [r3, #100] @ 0x64
  46202. /* Restore UART configuration */
  46203. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46204. 8013d70: 687b ldr r3, [r7, #4]
  46205. 8013d72: 681b ldr r3, [r3, #0]
  46206. 8013d74: 68fa ldr r2, [r7, #12]
  46207. 8013d76: 601a str r2, [r3, #0]
  46208. huart->gState = HAL_UART_STATE_READY;
  46209. 8013d78: 687b ldr r3, [r7, #4]
  46210. 8013d7a: 2220 movs r2, #32
  46211. 8013d7c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46212. /* Process Unlocked */
  46213. __HAL_UNLOCK(huart);
  46214. 8013d80: 687b ldr r3, [r7, #4]
  46215. 8013d82: 2200 movs r2, #0
  46216. 8013d84: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46217. return HAL_OK;
  46218. 8013d88: 2300 movs r3, #0
  46219. }
  46220. 8013d8a: 4618 mov r0, r3
  46221. 8013d8c: 3714 adds r7, #20
  46222. 8013d8e: 46bd mov sp, r7
  46223. 8013d90: f85d 7b04 ldr.w r7, [sp], #4
  46224. 8013d94: 4770 bx lr
  46225. 08013d96 <HAL_UARTEx_SetTxFifoThreshold>:
  46226. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  46227. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  46228. * @retval HAL status
  46229. */
  46230. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46231. {
  46232. 8013d96: b580 push {r7, lr}
  46233. 8013d98: b084 sub sp, #16
  46234. 8013d9a: af00 add r7, sp, #0
  46235. 8013d9c: 6078 str r0, [r7, #4]
  46236. 8013d9e: 6039 str r1, [r7, #0]
  46237. /* Check parameters */
  46238. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46239. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  46240. /* Process Locked */
  46241. __HAL_LOCK(huart);
  46242. 8013da0: 687b ldr r3, [r7, #4]
  46243. 8013da2: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46244. 8013da6: 2b01 cmp r3, #1
  46245. 8013da8: d101 bne.n 8013dae <HAL_UARTEx_SetTxFifoThreshold+0x18>
  46246. 8013daa: 2302 movs r3, #2
  46247. 8013dac: e02d b.n 8013e0a <HAL_UARTEx_SetTxFifoThreshold+0x74>
  46248. 8013dae: 687b ldr r3, [r7, #4]
  46249. 8013db0: 2201 movs r2, #1
  46250. 8013db2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46251. huart->gState = HAL_UART_STATE_BUSY;
  46252. 8013db6: 687b ldr r3, [r7, #4]
  46253. 8013db8: 2224 movs r2, #36 @ 0x24
  46254. 8013dba: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46255. /* Save actual UART configuration */
  46256. tmpcr1 = READ_REG(huart->Instance->CR1);
  46257. 8013dbe: 687b ldr r3, [r7, #4]
  46258. 8013dc0: 681b ldr r3, [r3, #0]
  46259. 8013dc2: 681b ldr r3, [r3, #0]
  46260. 8013dc4: 60fb str r3, [r7, #12]
  46261. /* Disable UART */
  46262. __HAL_UART_DISABLE(huart);
  46263. 8013dc6: 687b ldr r3, [r7, #4]
  46264. 8013dc8: 681b ldr r3, [r3, #0]
  46265. 8013dca: 681a ldr r2, [r3, #0]
  46266. 8013dcc: 687b ldr r3, [r7, #4]
  46267. 8013dce: 681b ldr r3, [r3, #0]
  46268. 8013dd0: f022 0201 bic.w r2, r2, #1
  46269. 8013dd4: 601a str r2, [r3, #0]
  46270. /* Update TX threshold configuration */
  46271. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  46272. 8013dd6: 687b ldr r3, [r7, #4]
  46273. 8013dd8: 681b ldr r3, [r3, #0]
  46274. 8013dda: 689b ldr r3, [r3, #8]
  46275. 8013ddc: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  46276. 8013de0: 687b ldr r3, [r7, #4]
  46277. 8013de2: 681b ldr r3, [r3, #0]
  46278. 8013de4: 683a ldr r2, [r7, #0]
  46279. 8013de6: 430a orrs r2, r1
  46280. 8013de8: 609a str r2, [r3, #8]
  46281. /* Determine the number of data to process during RX/TX ISR execution */
  46282. UARTEx_SetNbDataToProcess(huart);
  46283. 8013dea: 6878 ldr r0, [r7, #4]
  46284. 8013dec: f000 f8a0 bl 8013f30 <UARTEx_SetNbDataToProcess>
  46285. /* Restore UART configuration */
  46286. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46287. 8013df0: 687b ldr r3, [r7, #4]
  46288. 8013df2: 681b ldr r3, [r3, #0]
  46289. 8013df4: 68fa ldr r2, [r7, #12]
  46290. 8013df6: 601a str r2, [r3, #0]
  46291. huart->gState = HAL_UART_STATE_READY;
  46292. 8013df8: 687b ldr r3, [r7, #4]
  46293. 8013dfa: 2220 movs r2, #32
  46294. 8013dfc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46295. /* Process Unlocked */
  46296. __HAL_UNLOCK(huart);
  46297. 8013e00: 687b ldr r3, [r7, #4]
  46298. 8013e02: 2200 movs r2, #0
  46299. 8013e04: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46300. return HAL_OK;
  46301. 8013e08: 2300 movs r3, #0
  46302. }
  46303. 8013e0a: 4618 mov r0, r3
  46304. 8013e0c: 3710 adds r7, #16
  46305. 8013e0e: 46bd mov sp, r7
  46306. 8013e10: bd80 pop {r7, pc}
  46307. 08013e12 <HAL_UARTEx_SetRxFifoThreshold>:
  46308. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  46309. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  46310. * @retval HAL status
  46311. */
  46312. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46313. {
  46314. 8013e12: b580 push {r7, lr}
  46315. 8013e14: b084 sub sp, #16
  46316. 8013e16: af00 add r7, sp, #0
  46317. 8013e18: 6078 str r0, [r7, #4]
  46318. 8013e1a: 6039 str r1, [r7, #0]
  46319. /* Check the parameters */
  46320. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46321. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  46322. /* Process Locked */
  46323. __HAL_LOCK(huart);
  46324. 8013e1c: 687b ldr r3, [r7, #4]
  46325. 8013e1e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46326. 8013e22: 2b01 cmp r3, #1
  46327. 8013e24: d101 bne.n 8013e2a <HAL_UARTEx_SetRxFifoThreshold+0x18>
  46328. 8013e26: 2302 movs r3, #2
  46329. 8013e28: e02d b.n 8013e86 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  46330. 8013e2a: 687b ldr r3, [r7, #4]
  46331. 8013e2c: 2201 movs r2, #1
  46332. 8013e2e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46333. huart->gState = HAL_UART_STATE_BUSY;
  46334. 8013e32: 687b ldr r3, [r7, #4]
  46335. 8013e34: 2224 movs r2, #36 @ 0x24
  46336. 8013e36: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46337. /* Save actual UART configuration */
  46338. tmpcr1 = READ_REG(huart->Instance->CR1);
  46339. 8013e3a: 687b ldr r3, [r7, #4]
  46340. 8013e3c: 681b ldr r3, [r3, #0]
  46341. 8013e3e: 681b ldr r3, [r3, #0]
  46342. 8013e40: 60fb str r3, [r7, #12]
  46343. /* Disable UART */
  46344. __HAL_UART_DISABLE(huart);
  46345. 8013e42: 687b ldr r3, [r7, #4]
  46346. 8013e44: 681b ldr r3, [r3, #0]
  46347. 8013e46: 681a ldr r2, [r3, #0]
  46348. 8013e48: 687b ldr r3, [r7, #4]
  46349. 8013e4a: 681b ldr r3, [r3, #0]
  46350. 8013e4c: f022 0201 bic.w r2, r2, #1
  46351. 8013e50: 601a str r2, [r3, #0]
  46352. /* Update RX threshold configuration */
  46353. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  46354. 8013e52: 687b ldr r3, [r7, #4]
  46355. 8013e54: 681b ldr r3, [r3, #0]
  46356. 8013e56: 689b ldr r3, [r3, #8]
  46357. 8013e58: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  46358. 8013e5c: 687b ldr r3, [r7, #4]
  46359. 8013e5e: 681b ldr r3, [r3, #0]
  46360. 8013e60: 683a ldr r2, [r7, #0]
  46361. 8013e62: 430a orrs r2, r1
  46362. 8013e64: 609a str r2, [r3, #8]
  46363. /* Determine the number of data to process during RX/TX ISR execution */
  46364. UARTEx_SetNbDataToProcess(huart);
  46365. 8013e66: 6878 ldr r0, [r7, #4]
  46366. 8013e68: f000 f862 bl 8013f30 <UARTEx_SetNbDataToProcess>
  46367. /* Restore UART configuration */
  46368. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46369. 8013e6c: 687b ldr r3, [r7, #4]
  46370. 8013e6e: 681b ldr r3, [r3, #0]
  46371. 8013e70: 68fa ldr r2, [r7, #12]
  46372. 8013e72: 601a str r2, [r3, #0]
  46373. huart->gState = HAL_UART_STATE_READY;
  46374. 8013e74: 687b ldr r3, [r7, #4]
  46375. 8013e76: 2220 movs r2, #32
  46376. 8013e78: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46377. /* Process Unlocked */
  46378. __HAL_UNLOCK(huart);
  46379. 8013e7c: 687b ldr r3, [r7, #4]
  46380. 8013e7e: 2200 movs r2, #0
  46381. 8013e80: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46382. return HAL_OK;
  46383. 8013e84: 2300 movs r3, #0
  46384. }
  46385. 8013e86: 4618 mov r0, r3
  46386. 8013e88: 3710 adds r7, #16
  46387. 8013e8a: 46bd mov sp, r7
  46388. 8013e8c: bd80 pop {r7, pc}
  46389. 08013e8e <HAL_UARTEx_ReceiveToIdle_IT>:
  46390. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  46391. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  46392. * @retval HAL status
  46393. */
  46394. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  46395. {
  46396. 8013e8e: b580 push {r7, lr}
  46397. 8013e90: b08c sub sp, #48 @ 0x30
  46398. 8013e92: af00 add r7, sp, #0
  46399. 8013e94: 60f8 str r0, [r7, #12]
  46400. 8013e96: 60b9 str r1, [r7, #8]
  46401. 8013e98: 4613 mov r3, r2
  46402. 8013e9a: 80fb strh r3, [r7, #6]
  46403. HAL_StatusTypeDef status = HAL_OK;
  46404. 8013e9c: 2300 movs r3, #0
  46405. 8013e9e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46406. /* Check that a Rx process is not already ongoing */
  46407. if (huart->RxState == HAL_UART_STATE_READY)
  46408. 8013ea2: 68fb ldr r3, [r7, #12]
  46409. 8013ea4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  46410. 8013ea8: 2b20 cmp r3, #32
  46411. 8013eaa: d13b bne.n 8013f24 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  46412. {
  46413. if ((pData == NULL) || (Size == 0U))
  46414. 8013eac: 68bb ldr r3, [r7, #8]
  46415. 8013eae: 2b00 cmp r3, #0
  46416. 8013eb0: d002 beq.n 8013eb8 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  46417. 8013eb2: 88fb ldrh r3, [r7, #6]
  46418. 8013eb4: 2b00 cmp r3, #0
  46419. 8013eb6: d101 bne.n 8013ebc <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  46420. {
  46421. return HAL_ERROR;
  46422. 8013eb8: 2301 movs r3, #1
  46423. 8013eba: e034 b.n 8013f26 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46424. }
  46425. /* Set Reception type to reception till IDLE Event*/
  46426. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  46427. 8013ebc: 68fb ldr r3, [r7, #12]
  46428. 8013ebe: 2201 movs r2, #1
  46429. 8013ec0: 66da str r2, [r3, #108] @ 0x6c
  46430. huart->RxEventType = HAL_UART_RXEVENT_TC;
  46431. 8013ec2: 68fb ldr r3, [r7, #12]
  46432. 8013ec4: 2200 movs r2, #0
  46433. 8013ec6: 671a str r2, [r3, #112] @ 0x70
  46434. (void)UART_Start_Receive_IT(huart, pData, Size);
  46435. 8013ec8: 88fb ldrh r3, [r7, #6]
  46436. 8013eca: 461a mov r2, r3
  46437. 8013ecc: 68b9 ldr r1, [r7, #8]
  46438. 8013ece: 68f8 ldr r0, [r7, #12]
  46439. 8013ed0: f7fe fe82 bl 8012bd8 <UART_Start_Receive_IT>
  46440. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  46441. 8013ed4: 68fb ldr r3, [r7, #12]
  46442. 8013ed6: 6edb ldr r3, [r3, #108] @ 0x6c
  46443. 8013ed8: 2b01 cmp r3, #1
  46444. 8013eda: d11d bne.n 8013f18 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  46445. {
  46446. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  46447. 8013edc: 68fb ldr r3, [r7, #12]
  46448. 8013ede: 681b ldr r3, [r3, #0]
  46449. 8013ee0: 2210 movs r2, #16
  46450. 8013ee2: 621a str r2, [r3, #32]
  46451. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  46452. 8013ee4: 68fb ldr r3, [r7, #12]
  46453. 8013ee6: 681b ldr r3, [r3, #0]
  46454. 8013ee8: 61bb str r3, [r7, #24]
  46455. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46456. 8013eea: 69bb ldr r3, [r7, #24]
  46457. 8013eec: e853 3f00 ldrex r3, [r3]
  46458. 8013ef0: 617b str r3, [r7, #20]
  46459. return(result);
  46460. 8013ef2: 697b ldr r3, [r7, #20]
  46461. 8013ef4: f043 0310 orr.w r3, r3, #16
  46462. 8013ef8: 62bb str r3, [r7, #40] @ 0x28
  46463. 8013efa: 68fb ldr r3, [r7, #12]
  46464. 8013efc: 681b ldr r3, [r3, #0]
  46465. 8013efe: 461a mov r2, r3
  46466. 8013f00: 6abb ldr r3, [r7, #40] @ 0x28
  46467. 8013f02: 627b str r3, [r7, #36] @ 0x24
  46468. 8013f04: 623a str r2, [r7, #32]
  46469. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46470. 8013f06: 6a39 ldr r1, [r7, #32]
  46471. 8013f08: 6a7a ldr r2, [r7, #36] @ 0x24
  46472. 8013f0a: e841 2300 strex r3, r2, [r1]
  46473. 8013f0e: 61fb str r3, [r7, #28]
  46474. return(result);
  46475. 8013f10: 69fb ldr r3, [r7, #28]
  46476. 8013f12: 2b00 cmp r3, #0
  46477. 8013f14: d1e6 bne.n 8013ee4 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  46478. 8013f16: e002 b.n 8013f1e <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  46479. {
  46480. /* In case of errors already pending when reception is started,
  46481. Interrupts may have already been raised and lead to reception abortion.
  46482. (Overrun error for instance).
  46483. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  46484. status = HAL_ERROR;
  46485. 8013f18: 2301 movs r3, #1
  46486. 8013f1a: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46487. }
  46488. return status;
  46489. 8013f1e: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  46490. 8013f22: e000 b.n 8013f26 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46491. }
  46492. else
  46493. {
  46494. return HAL_BUSY;
  46495. 8013f24: 2302 movs r3, #2
  46496. }
  46497. }
  46498. 8013f26: 4618 mov r0, r3
  46499. 8013f28: 3730 adds r7, #48 @ 0x30
  46500. 8013f2a: 46bd mov sp, r7
  46501. 8013f2c: bd80 pop {r7, pc}
  46502. ...
  46503. 08013f30 <UARTEx_SetNbDataToProcess>:
  46504. * the UART configuration registers.
  46505. * @param huart UART handle.
  46506. * @retval None
  46507. */
  46508. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  46509. {
  46510. 8013f30: b480 push {r7}
  46511. 8013f32: b085 sub sp, #20
  46512. 8013f34: af00 add r7, sp, #0
  46513. 8013f36: 6078 str r0, [r7, #4]
  46514. uint8_t rx_fifo_threshold;
  46515. uint8_t tx_fifo_threshold;
  46516. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  46517. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  46518. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  46519. 8013f38: 687b ldr r3, [r7, #4]
  46520. 8013f3a: 6e5b ldr r3, [r3, #100] @ 0x64
  46521. 8013f3c: 2b00 cmp r3, #0
  46522. 8013f3e: d108 bne.n 8013f52 <UARTEx_SetNbDataToProcess+0x22>
  46523. {
  46524. huart->NbTxDataToProcess = 1U;
  46525. 8013f40: 687b ldr r3, [r7, #4]
  46526. 8013f42: 2201 movs r2, #1
  46527. 8013f44: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46528. huart->NbRxDataToProcess = 1U;
  46529. 8013f48: 687b ldr r3, [r7, #4]
  46530. 8013f4a: 2201 movs r2, #1
  46531. 8013f4c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46532. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46533. (uint16_t)denominator[tx_fifo_threshold];
  46534. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46535. (uint16_t)denominator[rx_fifo_threshold];
  46536. }
  46537. }
  46538. 8013f50: e031 b.n 8013fb6 <UARTEx_SetNbDataToProcess+0x86>
  46539. rx_fifo_depth = RX_FIFO_DEPTH;
  46540. 8013f52: 2310 movs r3, #16
  46541. 8013f54: 73fb strb r3, [r7, #15]
  46542. tx_fifo_depth = TX_FIFO_DEPTH;
  46543. 8013f56: 2310 movs r3, #16
  46544. 8013f58: 73bb strb r3, [r7, #14]
  46545. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  46546. 8013f5a: 687b ldr r3, [r7, #4]
  46547. 8013f5c: 681b ldr r3, [r3, #0]
  46548. 8013f5e: 689b ldr r3, [r3, #8]
  46549. 8013f60: 0e5b lsrs r3, r3, #25
  46550. 8013f62: b2db uxtb r3, r3
  46551. 8013f64: f003 0307 and.w r3, r3, #7
  46552. 8013f68: 737b strb r3, [r7, #13]
  46553. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  46554. 8013f6a: 687b ldr r3, [r7, #4]
  46555. 8013f6c: 681b ldr r3, [r3, #0]
  46556. 8013f6e: 689b ldr r3, [r3, #8]
  46557. 8013f70: 0f5b lsrs r3, r3, #29
  46558. 8013f72: b2db uxtb r3, r3
  46559. 8013f74: f003 0307 and.w r3, r3, #7
  46560. 8013f78: 733b strb r3, [r7, #12]
  46561. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46562. 8013f7a: 7bbb ldrb r3, [r7, #14]
  46563. 8013f7c: 7b3a ldrb r2, [r7, #12]
  46564. 8013f7e: 4911 ldr r1, [pc, #68] @ (8013fc4 <UARTEx_SetNbDataToProcess+0x94>)
  46565. 8013f80: 5c8a ldrb r2, [r1, r2]
  46566. 8013f82: fb02 f303 mul.w r3, r2, r3
  46567. (uint16_t)denominator[tx_fifo_threshold];
  46568. 8013f86: 7b3a ldrb r2, [r7, #12]
  46569. 8013f88: 490f ldr r1, [pc, #60] @ (8013fc8 <UARTEx_SetNbDataToProcess+0x98>)
  46570. 8013f8a: 5c8a ldrb r2, [r1, r2]
  46571. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46572. 8013f8c: fb93 f3f2 sdiv r3, r3, r2
  46573. 8013f90: b29a uxth r2, r3
  46574. 8013f92: 687b ldr r3, [r7, #4]
  46575. 8013f94: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46576. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46577. 8013f98: 7bfb ldrb r3, [r7, #15]
  46578. 8013f9a: 7b7a ldrb r2, [r7, #13]
  46579. 8013f9c: 4909 ldr r1, [pc, #36] @ (8013fc4 <UARTEx_SetNbDataToProcess+0x94>)
  46580. 8013f9e: 5c8a ldrb r2, [r1, r2]
  46581. 8013fa0: fb02 f303 mul.w r3, r2, r3
  46582. (uint16_t)denominator[rx_fifo_threshold];
  46583. 8013fa4: 7b7a ldrb r2, [r7, #13]
  46584. 8013fa6: 4908 ldr r1, [pc, #32] @ (8013fc8 <UARTEx_SetNbDataToProcess+0x98>)
  46585. 8013fa8: 5c8a ldrb r2, [r1, r2]
  46586. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46587. 8013faa: fb93 f3f2 sdiv r3, r3, r2
  46588. 8013fae: b29a uxth r2, r3
  46589. 8013fb0: 687b ldr r3, [r7, #4]
  46590. 8013fb2: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46591. }
  46592. 8013fb6: bf00 nop
  46593. 8013fb8: 3714 adds r7, #20
  46594. 8013fba: 46bd mov sp, r7
  46595. 8013fbc: f85d 7b04 ldr.w r7, [sp], #4
  46596. 8013fc0: 4770 bx lr
  46597. 8013fc2: bf00 nop
  46598. 8013fc4: 080187bc .word 0x080187bc
  46599. 8013fc8: 080187c4 .word 0x080187c4
  46600. 08013fcc <__NVIC_SetPriority>:
  46601. {
  46602. 8013fcc: b480 push {r7}
  46603. 8013fce: b083 sub sp, #12
  46604. 8013fd0: af00 add r7, sp, #0
  46605. 8013fd2: 4603 mov r3, r0
  46606. 8013fd4: 6039 str r1, [r7, #0]
  46607. 8013fd6: 80fb strh r3, [r7, #6]
  46608. if ((int32_t)(IRQn) >= 0)
  46609. 8013fd8: f9b7 3006 ldrsh.w r3, [r7, #6]
  46610. 8013fdc: 2b00 cmp r3, #0
  46611. 8013fde: db0a blt.n 8013ff6 <__NVIC_SetPriority+0x2a>
  46612. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46613. 8013fe0: 683b ldr r3, [r7, #0]
  46614. 8013fe2: b2da uxtb r2, r3
  46615. 8013fe4: 490c ldr r1, [pc, #48] @ (8014018 <__NVIC_SetPriority+0x4c>)
  46616. 8013fe6: f9b7 3006 ldrsh.w r3, [r7, #6]
  46617. 8013fea: 0112 lsls r2, r2, #4
  46618. 8013fec: b2d2 uxtb r2, r2
  46619. 8013fee: 440b add r3, r1
  46620. 8013ff0: f883 2300 strb.w r2, [r3, #768] @ 0x300
  46621. }
  46622. 8013ff4: e00a b.n 801400c <__NVIC_SetPriority+0x40>
  46623. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46624. 8013ff6: 683b ldr r3, [r7, #0]
  46625. 8013ff8: b2da uxtb r2, r3
  46626. 8013ffa: 4908 ldr r1, [pc, #32] @ (801401c <__NVIC_SetPriority+0x50>)
  46627. 8013ffc: 88fb ldrh r3, [r7, #6]
  46628. 8013ffe: f003 030f and.w r3, r3, #15
  46629. 8014002: 3b04 subs r3, #4
  46630. 8014004: 0112 lsls r2, r2, #4
  46631. 8014006: b2d2 uxtb r2, r2
  46632. 8014008: 440b add r3, r1
  46633. 801400a: 761a strb r2, [r3, #24]
  46634. }
  46635. 801400c: bf00 nop
  46636. 801400e: 370c adds r7, #12
  46637. 8014010: 46bd mov sp, r7
  46638. 8014012: f85d 7b04 ldr.w r7, [sp], #4
  46639. 8014016: 4770 bx lr
  46640. 8014018: e000e100 .word 0xe000e100
  46641. 801401c: e000ed00 .word 0xe000ed00
  46642. 08014020 <SysTick_Handler>:
  46643. /*
  46644. SysTick handler implementation that also clears overflow flag.
  46645. */
  46646. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  46647. void SysTick_Handler (void) {
  46648. 8014020: b580 push {r7, lr}
  46649. 8014022: af00 add r7, sp, #0
  46650. /* Clear overflow flag */
  46651. SysTick->CTRL;
  46652. 8014024: 4b05 ldr r3, [pc, #20] @ (801403c <SysTick_Handler+0x1c>)
  46653. 8014026: 681b ldr r3, [r3, #0]
  46654. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  46655. 8014028: f002 fd1e bl 8016a68 <xTaskGetSchedulerState>
  46656. 801402c: 4603 mov r3, r0
  46657. 801402e: 2b01 cmp r3, #1
  46658. 8014030: d001 beq.n 8014036 <SysTick_Handler+0x16>
  46659. /* Call tick handler */
  46660. xPortSysTickHandler();
  46661. 8014032: f003 ff31 bl 8017e98 <xPortSysTickHandler>
  46662. }
  46663. }
  46664. 8014036: bf00 nop
  46665. 8014038: bd80 pop {r7, pc}
  46666. 801403a: bf00 nop
  46667. 801403c: e000e010 .word 0xe000e010
  46668. 08014040 <SVC_Setup>:
  46669. #endif /* SysTick */
  46670. /*
  46671. Setup SVC to reset value.
  46672. */
  46673. __STATIC_INLINE void SVC_Setup (void) {
  46674. 8014040: b580 push {r7, lr}
  46675. 8014042: af00 add r7, sp, #0
  46676. #if (__ARM_ARCH_7A__ == 0U)
  46677. /* Service Call interrupt might be configured before kernel start */
  46678. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  46679. /* causes a Hard Fault. */
  46680. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  46681. 8014044: 2100 movs r1, #0
  46682. 8014046: f06f 0004 mvn.w r0, #4
  46683. 801404a: f7ff ffbf bl 8013fcc <__NVIC_SetPriority>
  46684. #endif
  46685. }
  46686. 801404e: bf00 nop
  46687. 8014050: bd80 pop {r7, pc}
  46688. ...
  46689. 08014054 <osKernelInitialize>:
  46690. static uint32_t OS_Tick_GetOverflow (void);
  46691. /* Get OS Tick interval */
  46692. static uint32_t OS_Tick_GetInterval (void);
  46693. /*---------------------------------------------------------------------------*/
  46694. osStatus_t osKernelInitialize (void) {
  46695. 8014054: b480 push {r7}
  46696. 8014056: b083 sub sp, #12
  46697. 8014058: af00 add r7, sp, #0
  46698. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46699. 801405a: f3ef 8305 mrs r3, IPSR
  46700. 801405e: 603b str r3, [r7, #0]
  46701. return(result);
  46702. 8014060: 683b ldr r3, [r7, #0]
  46703. osStatus_t stat;
  46704. if (IS_IRQ()) {
  46705. 8014062: 2b00 cmp r3, #0
  46706. 8014064: d003 beq.n 801406e <osKernelInitialize+0x1a>
  46707. stat = osErrorISR;
  46708. 8014066: f06f 0305 mvn.w r3, #5
  46709. 801406a: 607b str r3, [r7, #4]
  46710. 801406c: e00c b.n 8014088 <osKernelInitialize+0x34>
  46711. }
  46712. else {
  46713. if (KernelState == osKernelInactive) {
  46714. 801406e: 4b0a ldr r3, [pc, #40] @ (8014098 <osKernelInitialize+0x44>)
  46715. 8014070: 681b ldr r3, [r3, #0]
  46716. 8014072: 2b00 cmp r3, #0
  46717. 8014074: d105 bne.n 8014082 <osKernelInitialize+0x2e>
  46718. EvrFreeRTOSSetup(0U);
  46719. #endif
  46720. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  46721. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  46722. #endif
  46723. KernelState = osKernelReady;
  46724. 8014076: 4b08 ldr r3, [pc, #32] @ (8014098 <osKernelInitialize+0x44>)
  46725. 8014078: 2201 movs r2, #1
  46726. 801407a: 601a str r2, [r3, #0]
  46727. stat = osOK;
  46728. 801407c: 2300 movs r3, #0
  46729. 801407e: 607b str r3, [r7, #4]
  46730. 8014080: e002 b.n 8014088 <osKernelInitialize+0x34>
  46731. } else {
  46732. stat = osError;
  46733. 8014082: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46734. 8014086: 607b str r3, [r7, #4]
  46735. }
  46736. }
  46737. return (stat);
  46738. 8014088: 687b ldr r3, [r7, #4]
  46739. }
  46740. 801408a: 4618 mov r0, r3
  46741. 801408c: 370c adds r7, #12
  46742. 801408e: 46bd mov sp, r7
  46743. 8014090: f85d 7b04 ldr.w r7, [sp], #4
  46744. 8014094: 4770 bx lr
  46745. 8014096: bf00 nop
  46746. 8014098: 24001064 .word 0x24001064
  46747. 0801409c <osKernelStart>:
  46748. }
  46749. return (state);
  46750. }
  46751. osStatus_t osKernelStart (void) {
  46752. 801409c: b580 push {r7, lr}
  46753. 801409e: b082 sub sp, #8
  46754. 80140a0: af00 add r7, sp, #0
  46755. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46756. 80140a2: f3ef 8305 mrs r3, IPSR
  46757. 80140a6: 603b str r3, [r7, #0]
  46758. return(result);
  46759. 80140a8: 683b ldr r3, [r7, #0]
  46760. osStatus_t stat;
  46761. if (IS_IRQ()) {
  46762. 80140aa: 2b00 cmp r3, #0
  46763. 80140ac: d003 beq.n 80140b6 <osKernelStart+0x1a>
  46764. stat = osErrorISR;
  46765. 80140ae: f06f 0305 mvn.w r3, #5
  46766. 80140b2: 607b str r3, [r7, #4]
  46767. 80140b4: e010 b.n 80140d8 <osKernelStart+0x3c>
  46768. }
  46769. else {
  46770. if (KernelState == osKernelReady) {
  46771. 80140b6: 4b0b ldr r3, [pc, #44] @ (80140e4 <osKernelStart+0x48>)
  46772. 80140b8: 681b ldr r3, [r3, #0]
  46773. 80140ba: 2b01 cmp r3, #1
  46774. 80140bc: d109 bne.n 80140d2 <osKernelStart+0x36>
  46775. /* Ensure SVC priority is at the reset value */
  46776. SVC_Setup();
  46777. 80140be: f7ff ffbf bl 8014040 <SVC_Setup>
  46778. /* Change state to enable IRQ masking check */
  46779. KernelState = osKernelRunning;
  46780. 80140c2: 4b08 ldr r3, [pc, #32] @ (80140e4 <osKernelStart+0x48>)
  46781. 80140c4: 2202 movs r2, #2
  46782. 80140c6: 601a str r2, [r3, #0]
  46783. /* Start the kernel scheduler */
  46784. vTaskStartScheduler();
  46785. 80140c8: f002 f824 bl 8016114 <vTaskStartScheduler>
  46786. stat = osOK;
  46787. 80140cc: 2300 movs r3, #0
  46788. 80140ce: 607b str r3, [r7, #4]
  46789. 80140d0: e002 b.n 80140d8 <osKernelStart+0x3c>
  46790. } else {
  46791. stat = osError;
  46792. 80140d2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46793. 80140d6: 607b str r3, [r7, #4]
  46794. }
  46795. }
  46796. return (stat);
  46797. 80140d8: 687b ldr r3, [r7, #4]
  46798. }
  46799. 80140da: 4618 mov r0, r3
  46800. 80140dc: 3708 adds r7, #8
  46801. 80140de: 46bd mov sp, r7
  46802. 80140e0: bd80 pop {r7, pc}
  46803. 80140e2: bf00 nop
  46804. 80140e4: 24001064 .word 0x24001064
  46805. 080140e8 <osThreadNew>:
  46806. return (configCPU_CLOCK_HZ);
  46807. }
  46808. /*---------------------------------------------------------------------------*/
  46809. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  46810. 80140e8: b580 push {r7, lr}
  46811. 80140ea: b08e sub sp, #56 @ 0x38
  46812. 80140ec: af04 add r7, sp, #16
  46813. 80140ee: 60f8 str r0, [r7, #12]
  46814. 80140f0: 60b9 str r1, [r7, #8]
  46815. 80140f2: 607a str r2, [r7, #4]
  46816. uint32_t stack;
  46817. TaskHandle_t hTask;
  46818. UBaseType_t prio;
  46819. int32_t mem;
  46820. hTask = NULL;
  46821. 80140f4: 2300 movs r3, #0
  46822. 80140f6: 613b str r3, [r7, #16]
  46823. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46824. 80140f8: f3ef 8305 mrs r3, IPSR
  46825. 80140fc: 617b str r3, [r7, #20]
  46826. return(result);
  46827. 80140fe: 697b ldr r3, [r7, #20]
  46828. if (!IS_IRQ() && (func != NULL)) {
  46829. 8014100: 2b00 cmp r3, #0
  46830. 8014102: d17f bne.n 8014204 <osThreadNew+0x11c>
  46831. 8014104: 68fb ldr r3, [r7, #12]
  46832. 8014106: 2b00 cmp r3, #0
  46833. 8014108: d07c beq.n 8014204 <osThreadNew+0x11c>
  46834. stack = configMINIMAL_STACK_SIZE;
  46835. 801410a: f44f 7300 mov.w r3, #512 @ 0x200
  46836. 801410e: 623b str r3, [r7, #32]
  46837. prio = (UBaseType_t)osPriorityNormal;
  46838. 8014110: 2318 movs r3, #24
  46839. 8014112: 61fb str r3, [r7, #28]
  46840. name = NULL;
  46841. 8014114: 2300 movs r3, #0
  46842. 8014116: 627b str r3, [r7, #36] @ 0x24
  46843. mem = -1;
  46844. 8014118: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46845. 801411c: 61bb str r3, [r7, #24]
  46846. if (attr != NULL) {
  46847. 801411e: 687b ldr r3, [r7, #4]
  46848. 8014120: 2b00 cmp r3, #0
  46849. 8014122: d045 beq.n 80141b0 <osThreadNew+0xc8>
  46850. if (attr->name != NULL) {
  46851. 8014124: 687b ldr r3, [r7, #4]
  46852. 8014126: 681b ldr r3, [r3, #0]
  46853. 8014128: 2b00 cmp r3, #0
  46854. 801412a: d002 beq.n 8014132 <osThreadNew+0x4a>
  46855. name = attr->name;
  46856. 801412c: 687b ldr r3, [r7, #4]
  46857. 801412e: 681b ldr r3, [r3, #0]
  46858. 8014130: 627b str r3, [r7, #36] @ 0x24
  46859. }
  46860. if (attr->priority != osPriorityNone) {
  46861. 8014132: 687b ldr r3, [r7, #4]
  46862. 8014134: 699b ldr r3, [r3, #24]
  46863. 8014136: 2b00 cmp r3, #0
  46864. 8014138: d002 beq.n 8014140 <osThreadNew+0x58>
  46865. prio = (UBaseType_t)attr->priority;
  46866. 801413a: 687b ldr r3, [r7, #4]
  46867. 801413c: 699b ldr r3, [r3, #24]
  46868. 801413e: 61fb str r3, [r7, #28]
  46869. }
  46870. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  46871. 8014140: 69fb ldr r3, [r7, #28]
  46872. 8014142: 2b00 cmp r3, #0
  46873. 8014144: d008 beq.n 8014158 <osThreadNew+0x70>
  46874. 8014146: 69fb ldr r3, [r7, #28]
  46875. 8014148: 2b38 cmp r3, #56 @ 0x38
  46876. 801414a: d805 bhi.n 8014158 <osThreadNew+0x70>
  46877. 801414c: 687b ldr r3, [r7, #4]
  46878. 801414e: 685b ldr r3, [r3, #4]
  46879. 8014150: f003 0301 and.w r3, r3, #1
  46880. 8014154: 2b00 cmp r3, #0
  46881. 8014156: d001 beq.n 801415c <osThreadNew+0x74>
  46882. return (NULL);
  46883. 8014158: 2300 movs r3, #0
  46884. 801415a: e054 b.n 8014206 <osThreadNew+0x11e>
  46885. }
  46886. if (attr->stack_size > 0U) {
  46887. 801415c: 687b ldr r3, [r7, #4]
  46888. 801415e: 695b ldr r3, [r3, #20]
  46889. 8014160: 2b00 cmp r3, #0
  46890. 8014162: d003 beq.n 801416c <osThreadNew+0x84>
  46891. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  46892. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  46893. stack = attr->stack_size / sizeof(StackType_t);
  46894. 8014164: 687b ldr r3, [r7, #4]
  46895. 8014166: 695b ldr r3, [r3, #20]
  46896. 8014168: 089b lsrs r3, r3, #2
  46897. 801416a: 623b str r3, [r7, #32]
  46898. }
  46899. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46900. 801416c: 687b ldr r3, [r7, #4]
  46901. 801416e: 689b ldr r3, [r3, #8]
  46902. 8014170: 2b00 cmp r3, #0
  46903. 8014172: d00e beq.n 8014192 <osThreadNew+0xaa>
  46904. 8014174: 687b ldr r3, [r7, #4]
  46905. 8014176: 68db ldr r3, [r3, #12]
  46906. 8014178: 2ba7 cmp r3, #167 @ 0xa7
  46907. 801417a: d90a bls.n 8014192 <osThreadNew+0xaa>
  46908. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46909. 801417c: 687b ldr r3, [r7, #4]
  46910. 801417e: 691b ldr r3, [r3, #16]
  46911. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46912. 8014180: 2b00 cmp r3, #0
  46913. 8014182: d006 beq.n 8014192 <osThreadNew+0xaa>
  46914. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46915. 8014184: 687b ldr r3, [r7, #4]
  46916. 8014186: 695b ldr r3, [r3, #20]
  46917. 8014188: 2b00 cmp r3, #0
  46918. 801418a: d002 beq.n 8014192 <osThreadNew+0xaa>
  46919. mem = 1;
  46920. 801418c: 2301 movs r3, #1
  46921. 801418e: 61bb str r3, [r7, #24]
  46922. 8014190: e010 b.n 80141b4 <osThreadNew+0xcc>
  46923. }
  46924. else {
  46925. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  46926. 8014192: 687b ldr r3, [r7, #4]
  46927. 8014194: 689b ldr r3, [r3, #8]
  46928. 8014196: 2b00 cmp r3, #0
  46929. 8014198: d10c bne.n 80141b4 <osThreadNew+0xcc>
  46930. 801419a: 687b ldr r3, [r7, #4]
  46931. 801419c: 68db ldr r3, [r3, #12]
  46932. 801419e: 2b00 cmp r3, #0
  46933. 80141a0: d108 bne.n 80141b4 <osThreadNew+0xcc>
  46934. 80141a2: 687b ldr r3, [r7, #4]
  46935. 80141a4: 691b ldr r3, [r3, #16]
  46936. 80141a6: 2b00 cmp r3, #0
  46937. 80141a8: d104 bne.n 80141b4 <osThreadNew+0xcc>
  46938. mem = 0;
  46939. 80141aa: 2300 movs r3, #0
  46940. 80141ac: 61bb str r3, [r7, #24]
  46941. 80141ae: e001 b.n 80141b4 <osThreadNew+0xcc>
  46942. }
  46943. }
  46944. }
  46945. else {
  46946. mem = 0;
  46947. 80141b0: 2300 movs r3, #0
  46948. 80141b2: 61bb str r3, [r7, #24]
  46949. }
  46950. if (mem == 1) {
  46951. 80141b4: 69bb ldr r3, [r7, #24]
  46952. 80141b6: 2b01 cmp r3, #1
  46953. 80141b8: d110 bne.n 80141dc <osThreadNew+0xf4>
  46954. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46955. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46956. 80141ba: 687b ldr r3, [r7, #4]
  46957. 80141bc: 691b ldr r3, [r3, #16]
  46958. (StaticTask_t *)attr->cb_mem);
  46959. 80141be: 687a ldr r2, [r7, #4]
  46960. 80141c0: 6892 ldr r2, [r2, #8]
  46961. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46962. 80141c2: 9202 str r2, [sp, #8]
  46963. 80141c4: 9301 str r3, [sp, #4]
  46964. 80141c6: 69fb ldr r3, [r7, #28]
  46965. 80141c8: 9300 str r3, [sp, #0]
  46966. 80141ca: 68bb ldr r3, [r7, #8]
  46967. 80141cc: 6a3a ldr r2, [r7, #32]
  46968. 80141ce: 6a79 ldr r1, [r7, #36] @ 0x24
  46969. 80141d0: 68f8 ldr r0, [r7, #12]
  46970. 80141d2: f001 fdac bl 8015d2e <xTaskCreateStatic>
  46971. 80141d6: 4603 mov r3, r0
  46972. 80141d8: 613b str r3, [r7, #16]
  46973. 80141da: e013 b.n 8014204 <osThreadNew+0x11c>
  46974. #endif
  46975. }
  46976. else {
  46977. if (mem == 0) {
  46978. 80141dc: 69bb ldr r3, [r7, #24]
  46979. 80141de: 2b00 cmp r3, #0
  46980. 80141e0: d110 bne.n 8014204 <osThreadNew+0x11c>
  46981. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46982. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46983. 80141e2: 6a3b ldr r3, [r7, #32]
  46984. 80141e4: b29a uxth r2, r3
  46985. 80141e6: f107 0310 add.w r3, r7, #16
  46986. 80141ea: 9301 str r3, [sp, #4]
  46987. 80141ec: 69fb ldr r3, [r7, #28]
  46988. 80141ee: 9300 str r3, [sp, #0]
  46989. 80141f0: 68bb ldr r3, [r7, #8]
  46990. 80141f2: 6a79 ldr r1, [r7, #36] @ 0x24
  46991. 80141f4: 68f8 ldr r0, [r7, #12]
  46992. 80141f6: f001 fdfa bl 8015dee <xTaskCreate>
  46993. 80141fa: 4603 mov r3, r0
  46994. 80141fc: 2b01 cmp r3, #1
  46995. 80141fe: d001 beq.n 8014204 <osThreadNew+0x11c>
  46996. hTask = NULL;
  46997. 8014200: 2300 movs r3, #0
  46998. 8014202: 613b str r3, [r7, #16]
  46999. #endif
  47000. }
  47001. }
  47002. }
  47003. return ((osThreadId_t)hTask);
  47004. 8014204: 693b ldr r3, [r7, #16]
  47005. }
  47006. 8014206: 4618 mov r0, r3
  47007. 8014208: 3728 adds r7, #40 @ 0x28
  47008. 801420a: 46bd mov sp, r7
  47009. 801420c: bd80 pop {r7, pc}
  47010. 0801420e <osDelay>:
  47011. /* Return flags before clearing */
  47012. return (rflags);
  47013. }
  47014. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  47015. osStatus_t osDelay (uint32_t ticks) {
  47016. 801420e: b580 push {r7, lr}
  47017. 8014210: b084 sub sp, #16
  47018. 8014212: af00 add r7, sp, #0
  47019. 8014214: 6078 str r0, [r7, #4]
  47020. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47021. 8014216: f3ef 8305 mrs r3, IPSR
  47022. 801421a: 60bb str r3, [r7, #8]
  47023. return(result);
  47024. 801421c: 68bb ldr r3, [r7, #8]
  47025. osStatus_t stat;
  47026. if (IS_IRQ()) {
  47027. 801421e: 2b00 cmp r3, #0
  47028. 8014220: d003 beq.n 801422a <osDelay+0x1c>
  47029. stat = osErrorISR;
  47030. 8014222: f06f 0305 mvn.w r3, #5
  47031. 8014226: 60fb str r3, [r7, #12]
  47032. 8014228: e007 b.n 801423a <osDelay+0x2c>
  47033. }
  47034. else {
  47035. stat = osOK;
  47036. 801422a: 2300 movs r3, #0
  47037. 801422c: 60fb str r3, [r7, #12]
  47038. if (ticks != 0U) {
  47039. 801422e: 687b ldr r3, [r7, #4]
  47040. 8014230: 2b00 cmp r3, #0
  47041. 8014232: d002 beq.n 801423a <osDelay+0x2c>
  47042. vTaskDelay(ticks);
  47043. 8014234: 6878 ldr r0, [r7, #4]
  47044. 8014236: f001 ff37 bl 80160a8 <vTaskDelay>
  47045. }
  47046. }
  47047. return (stat);
  47048. 801423a: 68fb ldr r3, [r7, #12]
  47049. }
  47050. 801423c: 4618 mov r0, r3
  47051. 801423e: 3710 adds r7, #16
  47052. 8014240: 46bd mov sp, r7
  47053. 8014242: bd80 pop {r7, pc}
  47054. 08014244 <TimerCallback>:
  47055. }
  47056. /*---------------------------------------------------------------------------*/
  47057. #if (configUSE_OS2_TIMER == 1)
  47058. static void TimerCallback (TimerHandle_t hTimer) {
  47059. 8014244: b580 push {r7, lr}
  47060. 8014246: b084 sub sp, #16
  47061. 8014248: af00 add r7, sp, #0
  47062. 801424a: 6078 str r0, [r7, #4]
  47063. TimerCallback_t *callb;
  47064. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  47065. 801424c: 6878 ldr r0, [r7, #4]
  47066. 801424e: f003 fc3d bl 8017acc <pvTimerGetTimerID>
  47067. 8014252: 60f8 str r0, [r7, #12]
  47068. if (callb != NULL) {
  47069. 8014254: 68fb ldr r3, [r7, #12]
  47070. 8014256: 2b00 cmp r3, #0
  47071. 8014258: d005 beq.n 8014266 <TimerCallback+0x22>
  47072. callb->func (callb->arg);
  47073. 801425a: 68fb ldr r3, [r7, #12]
  47074. 801425c: 681b ldr r3, [r3, #0]
  47075. 801425e: 68fa ldr r2, [r7, #12]
  47076. 8014260: 6852 ldr r2, [r2, #4]
  47077. 8014262: 4610 mov r0, r2
  47078. 8014264: 4798 blx r3
  47079. }
  47080. }
  47081. 8014266: bf00 nop
  47082. 8014268: 3710 adds r7, #16
  47083. 801426a: 46bd mov sp, r7
  47084. 801426c: bd80 pop {r7, pc}
  47085. ...
  47086. 08014270 <osTimerNew>:
  47087. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  47088. 8014270: b580 push {r7, lr}
  47089. 8014272: b08c sub sp, #48 @ 0x30
  47090. 8014274: af02 add r7, sp, #8
  47091. 8014276: 60f8 str r0, [r7, #12]
  47092. 8014278: 607a str r2, [r7, #4]
  47093. 801427a: 603b str r3, [r7, #0]
  47094. 801427c: 460b mov r3, r1
  47095. 801427e: 72fb strb r3, [r7, #11]
  47096. TimerHandle_t hTimer;
  47097. TimerCallback_t *callb;
  47098. UBaseType_t reload;
  47099. int32_t mem;
  47100. hTimer = NULL;
  47101. 8014280: 2300 movs r3, #0
  47102. 8014282: 623b str r3, [r7, #32]
  47103. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47104. 8014284: f3ef 8305 mrs r3, IPSR
  47105. 8014288: 613b str r3, [r7, #16]
  47106. return(result);
  47107. 801428a: 693b ldr r3, [r7, #16]
  47108. if (!IS_IRQ() && (func != NULL)) {
  47109. 801428c: 2b00 cmp r3, #0
  47110. 801428e: d163 bne.n 8014358 <osTimerNew+0xe8>
  47111. 8014290: 68fb ldr r3, [r7, #12]
  47112. 8014292: 2b00 cmp r3, #0
  47113. 8014294: d060 beq.n 8014358 <osTimerNew+0xe8>
  47114. /* Allocate memory to store callback function and argument */
  47115. callb = pvPortMalloc (sizeof(TimerCallback_t));
  47116. 8014296: 2008 movs r0, #8
  47117. 8014298: f003 fe90 bl 8017fbc <pvPortMalloc>
  47118. 801429c: 6178 str r0, [r7, #20]
  47119. if (callb != NULL) {
  47120. 801429e: 697b ldr r3, [r7, #20]
  47121. 80142a0: 2b00 cmp r3, #0
  47122. 80142a2: d059 beq.n 8014358 <osTimerNew+0xe8>
  47123. callb->func = func;
  47124. 80142a4: 697b ldr r3, [r7, #20]
  47125. 80142a6: 68fa ldr r2, [r7, #12]
  47126. 80142a8: 601a str r2, [r3, #0]
  47127. callb->arg = argument;
  47128. 80142aa: 697b ldr r3, [r7, #20]
  47129. 80142ac: 687a ldr r2, [r7, #4]
  47130. 80142ae: 605a str r2, [r3, #4]
  47131. if (type == osTimerOnce) {
  47132. 80142b0: 7afb ldrb r3, [r7, #11]
  47133. 80142b2: 2b00 cmp r3, #0
  47134. 80142b4: d102 bne.n 80142bc <osTimerNew+0x4c>
  47135. reload = pdFALSE;
  47136. 80142b6: 2300 movs r3, #0
  47137. 80142b8: 61fb str r3, [r7, #28]
  47138. 80142ba: e001 b.n 80142c0 <osTimerNew+0x50>
  47139. } else {
  47140. reload = pdTRUE;
  47141. 80142bc: 2301 movs r3, #1
  47142. 80142be: 61fb str r3, [r7, #28]
  47143. }
  47144. mem = -1;
  47145. 80142c0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47146. 80142c4: 61bb str r3, [r7, #24]
  47147. name = NULL;
  47148. 80142c6: 2300 movs r3, #0
  47149. 80142c8: 627b str r3, [r7, #36] @ 0x24
  47150. if (attr != NULL) {
  47151. 80142ca: 683b ldr r3, [r7, #0]
  47152. 80142cc: 2b00 cmp r3, #0
  47153. 80142ce: d01c beq.n 801430a <osTimerNew+0x9a>
  47154. if (attr->name != NULL) {
  47155. 80142d0: 683b ldr r3, [r7, #0]
  47156. 80142d2: 681b ldr r3, [r3, #0]
  47157. 80142d4: 2b00 cmp r3, #0
  47158. 80142d6: d002 beq.n 80142de <osTimerNew+0x6e>
  47159. name = attr->name;
  47160. 80142d8: 683b ldr r3, [r7, #0]
  47161. 80142da: 681b ldr r3, [r3, #0]
  47162. 80142dc: 627b str r3, [r7, #36] @ 0x24
  47163. }
  47164. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  47165. 80142de: 683b ldr r3, [r7, #0]
  47166. 80142e0: 689b ldr r3, [r3, #8]
  47167. 80142e2: 2b00 cmp r3, #0
  47168. 80142e4: d006 beq.n 80142f4 <osTimerNew+0x84>
  47169. 80142e6: 683b ldr r3, [r7, #0]
  47170. 80142e8: 68db ldr r3, [r3, #12]
  47171. 80142ea: 2b2b cmp r3, #43 @ 0x2b
  47172. 80142ec: d902 bls.n 80142f4 <osTimerNew+0x84>
  47173. mem = 1;
  47174. 80142ee: 2301 movs r3, #1
  47175. 80142f0: 61bb str r3, [r7, #24]
  47176. 80142f2: e00c b.n 801430e <osTimerNew+0x9e>
  47177. }
  47178. else {
  47179. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47180. 80142f4: 683b ldr r3, [r7, #0]
  47181. 80142f6: 689b ldr r3, [r3, #8]
  47182. 80142f8: 2b00 cmp r3, #0
  47183. 80142fa: d108 bne.n 801430e <osTimerNew+0x9e>
  47184. 80142fc: 683b ldr r3, [r7, #0]
  47185. 80142fe: 68db ldr r3, [r3, #12]
  47186. 8014300: 2b00 cmp r3, #0
  47187. 8014302: d104 bne.n 801430e <osTimerNew+0x9e>
  47188. mem = 0;
  47189. 8014304: 2300 movs r3, #0
  47190. 8014306: 61bb str r3, [r7, #24]
  47191. 8014308: e001 b.n 801430e <osTimerNew+0x9e>
  47192. }
  47193. }
  47194. }
  47195. else {
  47196. mem = 0;
  47197. 801430a: 2300 movs r3, #0
  47198. 801430c: 61bb str r3, [r7, #24]
  47199. }
  47200. if (mem == 1) {
  47201. 801430e: 69bb ldr r3, [r7, #24]
  47202. 8014310: 2b01 cmp r3, #1
  47203. 8014312: d10c bne.n 801432e <osTimerNew+0xbe>
  47204. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47205. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  47206. 8014314: 683b ldr r3, [r7, #0]
  47207. 8014316: 689b ldr r3, [r3, #8]
  47208. 8014318: 9301 str r3, [sp, #4]
  47209. 801431a: 4b12 ldr r3, [pc, #72] @ (8014364 <osTimerNew+0xf4>)
  47210. 801431c: 9300 str r3, [sp, #0]
  47211. 801431e: 697b ldr r3, [r7, #20]
  47212. 8014320: 69fa ldr r2, [r7, #28]
  47213. 8014322: 2101 movs r1, #1
  47214. 8014324: 6a78 ldr r0, [r7, #36] @ 0x24
  47215. 8014326: f003 f81a bl 801735e <xTimerCreateStatic>
  47216. 801432a: 6238 str r0, [r7, #32]
  47217. 801432c: e00b b.n 8014346 <osTimerNew+0xd6>
  47218. #endif
  47219. }
  47220. else {
  47221. if (mem == 0) {
  47222. 801432e: 69bb ldr r3, [r7, #24]
  47223. 8014330: 2b00 cmp r3, #0
  47224. 8014332: d108 bne.n 8014346 <osTimerNew+0xd6>
  47225. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47226. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  47227. 8014334: 4b0b ldr r3, [pc, #44] @ (8014364 <osTimerNew+0xf4>)
  47228. 8014336: 9300 str r3, [sp, #0]
  47229. 8014338: 697b ldr r3, [r7, #20]
  47230. 801433a: 69fa ldr r2, [r7, #28]
  47231. 801433c: 2101 movs r1, #1
  47232. 801433e: 6a78 ldr r0, [r7, #36] @ 0x24
  47233. 8014340: f002 ffec bl 801731c <xTimerCreate>
  47234. 8014344: 6238 str r0, [r7, #32]
  47235. #endif
  47236. }
  47237. }
  47238. if ((hTimer == NULL) && (callb != NULL)) {
  47239. 8014346: 6a3b ldr r3, [r7, #32]
  47240. 8014348: 2b00 cmp r3, #0
  47241. 801434a: d105 bne.n 8014358 <osTimerNew+0xe8>
  47242. 801434c: 697b ldr r3, [r7, #20]
  47243. 801434e: 2b00 cmp r3, #0
  47244. 8014350: d002 beq.n 8014358 <osTimerNew+0xe8>
  47245. vPortFree (callb);
  47246. 8014352: 6978 ldr r0, [r7, #20]
  47247. 8014354: f003 ff00 bl 8018158 <vPortFree>
  47248. }
  47249. }
  47250. }
  47251. return ((osTimerId_t)hTimer);
  47252. 8014358: 6a3b ldr r3, [r7, #32]
  47253. }
  47254. 801435a: 4618 mov r0, r3
  47255. 801435c: 3728 adds r7, #40 @ 0x28
  47256. 801435e: 46bd mov sp, r7
  47257. 8014360: bd80 pop {r7, pc}
  47258. 8014362: bf00 nop
  47259. 8014364: 08014245 .word 0x08014245
  47260. 08014368 <osTimerStart>:
  47261. }
  47262. return (p);
  47263. }
  47264. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  47265. 8014368: b580 push {r7, lr}
  47266. 801436a: b088 sub sp, #32
  47267. 801436c: af02 add r7, sp, #8
  47268. 801436e: 6078 str r0, [r7, #4]
  47269. 8014370: 6039 str r1, [r7, #0]
  47270. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47271. 8014372: 687b ldr r3, [r7, #4]
  47272. 8014374: 613b str r3, [r7, #16]
  47273. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47274. 8014376: f3ef 8305 mrs r3, IPSR
  47275. 801437a: 60fb str r3, [r7, #12]
  47276. return(result);
  47277. 801437c: 68fb ldr r3, [r7, #12]
  47278. osStatus_t stat;
  47279. if (IS_IRQ()) {
  47280. 801437e: 2b00 cmp r3, #0
  47281. 8014380: d003 beq.n 801438a <osTimerStart+0x22>
  47282. stat = osErrorISR;
  47283. 8014382: f06f 0305 mvn.w r3, #5
  47284. 8014386: 617b str r3, [r7, #20]
  47285. 8014388: e017 b.n 80143ba <osTimerStart+0x52>
  47286. }
  47287. else if (hTimer == NULL) {
  47288. 801438a: 693b ldr r3, [r7, #16]
  47289. 801438c: 2b00 cmp r3, #0
  47290. 801438e: d103 bne.n 8014398 <osTimerStart+0x30>
  47291. stat = osErrorParameter;
  47292. 8014390: f06f 0303 mvn.w r3, #3
  47293. 8014394: 617b str r3, [r7, #20]
  47294. 8014396: e010 b.n 80143ba <osTimerStart+0x52>
  47295. }
  47296. else {
  47297. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  47298. 8014398: 2300 movs r3, #0
  47299. 801439a: 9300 str r3, [sp, #0]
  47300. 801439c: 2300 movs r3, #0
  47301. 801439e: 683a ldr r2, [r7, #0]
  47302. 80143a0: 2104 movs r1, #4
  47303. 80143a2: 6938 ldr r0, [r7, #16]
  47304. 80143a4: f003 f858 bl 8017458 <xTimerGenericCommand>
  47305. 80143a8: 4603 mov r3, r0
  47306. 80143aa: 2b01 cmp r3, #1
  47307. 80143ac: d102 bne.n 80143b4 <osTimerStart+0x4c>
  47308. stat = osOK;
  47309. 80143ae: 2300 movs r3, #0
  47310. 80143b0: 617b str r3, [r7, #20]
  47311. 80143b2: e002 b.n 80143ba <osTimerStart+0x52>
  47312. } else {
  47313. stat = osErrorResource;
  47314. 80143b4: f06f 0302 mvn.w r3, #2
  47315. 80143b8: 617b str r3, [r7, #20]
  47316. }
  47317. }
  47318. return (stat);
  47319. 80143ba: 697b ldr r3, [r7, #20]
  47320. }
  47321. 80143bc: 4618 mov r0, r3
  47322. 80143be: 3718 adds r7, #24
  47323. 80143c0: 46bd mov sp, r7
  47324. 80143c2: bd80 pop {r7, pc}
  47325. 080143c4 <osTimerStop>:
  47326. osStatus_t osTimerStop (osTimerId_t timer_id) {
  47327. 80143c4: b580 push {r7, lr}
  47328. 80143c6: b088 sub sp, #32
  47329. 80143c8: af02 add r7, sp, #8
  47330. 80143ca: 6078 str r0, [r7, #4]
  47331. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47332. 80143cc: 687b ldr r3, [r7, #4]
  47333. 80143ce: 613b str r3, [r7, #16]
  47334. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47335. 80143d0: f3ef 8305 mrs r3, IPSR
  47336. 80143d4: 60fb str r3, [r7, #12]
  47337. return(result);
  47338. 80143d6: 68fb ldr r3, [r7, #12]
  47339. osStatus_t stat;
  47340. if (IS_IRQ()) {
  47341. 80143d8: 2b00 cmp r3, #0
  47342. 80143da: d003 beq.n 80143e4 <osTimerStop+0x20>
  47343. stat = osErrorISR;
  47344. 80143dc: f06f 0305 mvn.w r3, #5
  47345. 80143e0: 617b str r3, [r7, #20]
  47346. 80143e2: e021 b.n 8014428 <osTimerStop+0x64>
  47347. }
  47348. else if (hTimer == NULL) {
  47349. 80143e4: 693b ldr r3, [r7, #16]
  47350. 80143e6: 2b00 cmp r3, #0
  47351. 80143e8: d103 bne.n 80143f2 <osTimerStop+0x2e>
  47352. stat = osErrorParameter;
  47353. 80143ea: f06f 0303 mvn.w r3, #3
  47354. 80143ee: 617b str r3, [r7, #20]
  47355. 80143f0: e01a b.n 8014428 <osTimerStop+0x64>
  47356. }
  47357. else {
  47358. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  47359. 80143f2: 6938 ldr r0, [r7, #16]
  47360. 80143f4: f003 fb40 bl 8017a78 <xTimerIsTimerActive>
  47361. 80143f8: 4603 mov r3, r0
  47362. 80143fa: 2b00 cmp r3, #0
  47363. 80143fc: d103 bne.n 8014406 <osTimerStop+0x42>
  47364. stat = osErrorResource;
  47365. 80143fe: f06f 0302 mvn.w r3, #2
  47366. 8014402: 617b str r3, [r7, #20]
  47367. 8014404: e010 b.n 8014428 <osTimerStop+0x64>
  47368. }
  47369. else {
  47370. if (xTimerStop (hTimer, 0) == pdPASS) {
  47371. 8014406: 2300 movs r3, #0
  47372. 8014408: 9300 str r3, [sp, #0]
  47373. 801440a: 2300 movs r3, #0
  47374. 801440c: 2200 movs r2, #0
  47375. 801440e: 2103 movs r1, #3
  47376. 8014410: 6938 ldr r0, [r7, #16]
  47377. 8014412: f003 f821 bl 8017458 <xTimerGenericCommand>
  47378. 8014416: 4603 mov r3, r0
  47379. 8014418: 2b01 cmp r3, #1
  47380. 801441a: d102 bne.n 8014422 <osTimerStop+0x5e>
  47381. stat = osOK;
  47382. 801441c: 2300 movs r3, #0
  47383. 801441e: 617b str r3, [r7, #20]
  47384. 8014420: e002 b.n 8014428 <osTimerStop+0x64>
  47385. } else {
  47386. stat = osError;
  47387. 8014422: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47388. 8014426: 617b str r3, [r7, #20]
  47389. }
  47390. }
  47391. }
  47392. return (stat);
  47393. 8014428: 697b ldr r3, [r7, #20]
  47394. }
  47395. 801442a: 4618 mov r0, r3
  47396. 801442c: 3718 adds r7, #24
  47397. 801442e: 46bd mov sp, r7
  47398. 8014430: bd80 pop {r7, pc}
  47399. 08014432 <osMutexNew>:
  47400. }
  47401. /*---------------------------------------------------------------------------*/
  47402. #if (configUSE_OS2_MUTEX == 1)
  47403. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  47404. 8014432: b580 push {r7, lr}
  47405. 8014434: b088 sub sp, #32
  47406. 8014436: af00 add r7, sp, #0
  47407. 8014438: 6078 str r0, [r7, #4]
  47408. int32_t mem;
  47409. #if (configQUEUE_REGISTRY_SIZE > 0)
  47410. const char *name;
  47411. #endif
  47412. hMutex = NULL;
  47413. 801443a: 2300 movs r3, #0
  47414. 801443c: 61fb str r3, [r7, #28]
  47415. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47416. 801443e: f3ef 8305 mrs r3, IPSR
  47417. 8014442: 60bb str r3, [r7, #8]
  47418. return(result);
  47419. 8014444: 68bb ldr r3, [r7, #8]
  47420. if (!IS_IRQ()) {
  47421. 8014446: 2b00 cmp r3, #0
  47422. 8014448: d174 bne.n 8014534 <osMutexNew+0x102>
  47423. if (attr != NULL) {
  47424. 801444a: 687b ldr r3, [r7, #4]
  47425. 801444c: 2b00 cmp r3, #0
  47426. 801444e: d003 beq.n 8014458 <osMutexNew+0x26>
  47427. type = attr->attr_bits;
  47428. 8014450: 687b ldr r3, [r7, #4]
  47429. 8014452: 685b ldr r3, [r3, #4]
  47430. 8014454: 61bb str r3, [r7, #24]
  47431. 8014456: e001 b.n 801445c <osMutexNew+0x2a>
  47432. } else {
  47433. type = 0U;
  47434. 8014458: 2300 movs r3, #0
  47435. 801445a: 61bb str r3, [r7, #24]
  47436. }
  47437. if ((type & osMutexRecursive) == osMutexRecursive) {
  47438. 801445c: 69bb ldr r3, [r7, #24]
  47439. 801445e: f003 0301 and.w r3, r3, #1
  47440. 8014462: 2b00 cmp r3, #0
  47441. 8014464: d002 beq.n 801446c <osMutexNew+0x3a>
  47442. rmtx = 1U;
  47443. 8014466: 2301 movs r3, #1
  47444. 8014468: 617b str r3, [r7, #20]
  47445. 801446a: e001 b.n 8014470 <osMutexNew+0x3e>
  47446. } else {
  47447. rmtx = 0U;
  47448. 801446c: 2300 movs r3, #0
  47449. 801446e: 617b str r3, [r7, #20]
  47450. }
  47451. if ((type & osMutexRobust) != osMutexRobust) {
  47452. 8014470: 69bb ldr r3, [r7, #24]
  47453. 8014472: f003 0308 and.w r3, r3, #8
  47454. 8014476: 2b00 cmp r3, #0
  47455. 8014478: d15c bne.n 8014534 <osMutexNew+0x102>
  47456. mem = -1;
  47457. 801447a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47458. 801447e: 613b str r3, [r7, #16]
  47459. if (attr != NULL) {
  47460. 8014480: 687b ldr r3, [r7, #4]
  47461. 8014482: 2b00 cmp r3, #0
  47462. 8014484: d015 beq.n 80144b2 <osMutexNew+0x80>
  47463. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  47464. 8014486: 687b ldr r3, [r7, #4]
  47465. 8014488: 689b ldr r3, [r3, #8]
  47466. 801448a: 2b00 cmp r3, #0
  47467. 801448c: d006 beq.n 801449c <osMutexNew+0x6a>
  47468. 801448e: 687b ldr r3, [r7, #4]
  47469. 8014490: 68db ldr r3, [r3, #12]
  47470. 8014492: 2b4f cmp r3, #79 @ 0x4f
  47471. 8014494: d902 bls.n 801449c <osMutexNew+0x6a>
  47472. mem = 1;
  47473. 8014496: 2301 movs r3, #1
  47474. 8014498: 613b str r3, [r7, #16]
  47475. 801449a: e00c b.n 80144b6 <osMutexNew+0x84>
  47476. }
  47477. else {
  47478. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47479. 801449c: 687b ldr r3, [r7, #4]
  47480. 801449e: 689b ldr r3, [r3, #8]
  47481. 80144a0: 2b00 cmp r3, #0
  47482. 80144a2: d108 bne.n 80144b6 <osMutexNew+0x84>
  47483. 80144a4: 687b ldr r3, [r7, #4]
  47484. 80144a6: 68db ldr r3, [r3, #12]
  47485. 80144a8: 2b00 cmp r3, #0
  47486. 80144aa: d104 bne.n 80144b6 <osMutexNew+0x84>
  47487. mem = 0;
  47488. 80144ac: 2300 movs r3, #0
  47489. 80144ae: 613b str r3, [r7, #16]
  47490. 80144b0: e001 b.n 80144b6 <osMutexNew+0x84>
  47491. }
  47492. }
  47493. }
  47494. else {
  47495. mem = 0;
  47496. 80144b2: 2300 movs r3, #0
  47497. 80144b4: 613b str r3, [r7, #16]
  47498. }
  47499. if (mem == 1) {
  47500. 80144b6: 693b ldr r3, [r7, #16]
  47501. 80144b8: 2b01 cmp r3, #1
  47502. 80144ba: d112 bne.n 80144e2 <osMutexNew+0xb0>
  47503. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47504. if (rmtx != 0U) {
  47505. 80144bc: 697b ldr r3, [r7, #20]
  47506. 80144be: 2b00 cmp r3, #0
  47507. 80144c0: d007 beq.n 80144d2 <osMutexNew+0xa0>
  47508. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47509. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  47510. 80144c2: 687b ldr r3, [r7, #4]
  47511. 80144c4: 689b ldr r3, [r3, #8]
  47512. 80144c6: 4619 mov r1, r3
  47513. 80144c8: 2004 movs r0, #4
  47514. 80144ca: f000 fc50 bl 8014d6e <xQueueCreateMutexStatic>
  47515. 80144ce: 61f8 str r0, [r7, #28]
  47516. 80144d0: e016 b.n 8014500 <osMutexNew+0xce>
  47517. #endif
  47518. }
  47519. else {
  47520. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  47521. 80144d2: 687b ldr r3, [r7, #4]
  47522. 80144d4: 689b ldr r3, [r3, #8]
  47523. 80144d6: 4619 mov r1, r3
  47524. 80144d8: 2001 movs r0, #1
  47525. 80144da: f000 fc48 bl 8014d6e <xQueueCreateMutexStatic>
  47526. 80144de: 61f8 str r0, [r7, #28]
  47527. 80144e0: e00e b.n 8014500 <osMutexNew+0xce>
  47528. }
  47529. #endif
  47530. }
  47531. else {
  47532. if (mem == 0) {
  47533. 80144e2: 693b ldr r3, [r7, #16]
  47534. 80144e4: 2b00 cmp r3, #0
  47535. 80144e6: d10b bne.n 8014500 <osMutexNew+0xce>
  47536. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47537. if (rmtx != 0U) {
  47538. 80144e8: 697b ldr r3, [r7, #20]
  47539. 80144ea: 2b00 cmp r3, #0
  47540. 80144ec: d004 beq.n 80144f8 <osMutexNew+0xc6>
  47541. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47542. hMutex = xSemaphoreCreateRecursiveMutex ();
  47543. 80144ee: 2004 movs r0, #4
  47544. 80144f0: f000 fc25 bl 8014d3e <xQueueCreateMutex>
  47545. 80144f4: 61f8 str r0, [r7, #28]
  47546. 80144f6: e003 b.n 8014500 <osMutexNew+0xce>
  47547. #endif
  47548. } else {
  47549. hMutex = xSemaphoreCreateMutex ();
  47550. 80144f8: 2001 movs r0, #1
  47551. 80144fa: f000 fc20 bl 8014d3e <xQueueCreateMutex>
  47552. 80144fe: 61f8 str r0, [r7, #28]
  47553. #endif
  47554. }
  47555. }
  47556. #if (configQUEUE_REGISTRY_SIZE > 0)
  47557. if (hMutex != NULL) {
  47558. 8014500: 69fb ldr r3, [r7, #28]
  47559. 8014502: 2b00 cmp r3, #0
  47560. 8014504: d00c beq.n 8014520 <osMutexNew+0xee>
  47561. if (attr != NULL) {
  47562. 8014506: 687b ldr r3, [r7, #4]
  47563. 8014508: 2b00 cmp r3, #0
  47564. 801450a: d003 beq.n 8014514 <osMutexNew+0xe2>
  47565. name = attr->name;
  47566. 801450c: 687b ldr r3, [r7, #4]
  47567. 801450e: 681b ldr r3, [r3, #0]
  47568. 8014510: 60fb str r3, [r7, #12]
  47569. 8014512: e001 b.n 8014518 <osMutexNew+0xe6>
  47570. } else {
  47571. name = NULL;
  47572. 8014514: 2300 movs r3, #0
  47573. 8014516: 60fb str r3, [r7, #12]
  47574. }
  47575. vQueueAddToRegistry (hMutex, name);
  47576. 8014518: 68f9 ldr r1, [r7, #12]
  47577. 801451a: 69f8 ldr r0, [r7, #28]
  47578. 801451c: f001 f9ea bl 80158f4 <vQueueAddToRegistry>
  47579. }
  47580. #endif
  47581. if ((hMutex != NULL) && (rmtx != 0U)) {
  47582. 8014520: 69fb ldr r3, [r7, #28]
  47583. 8014522: 2b00 cmp r3, #0
  47584. 8014524: d006 beq.n 8014534 <osMutexNew+0x102>
  47585. 8014526: 697b ldr r3, [r7, #20]
  47586. 8014528: 2b00 cmp r3, #0
  47587. 801452a: d003 beq.n 8014534 <osMutexNew+0x102>
  47588. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  47589. 801452c: 69fb ldr r3, [r7, #28]
  47590. 801452e: f043 0301 orr.w r3, r3, #1
  47591. 8014532: 61fb str r3, [r7, #28]
  47592. }
  47593. }
  47594. }
  47595. return ((osMutexId_t)hMutex);
  47596. 8014534: 69fb ldr r3, [r7, #28]
  47597. }
  47598. 8014536: 4618 mov r0, r3
  47599. 8014538: 3720 adds r7, #32
  47600. 801453a: 46bd mov sp, r7
  47601. 801453c: bd80 pop {r7, pc}
  47602. 0801453e <osMutexAcquire>:
  47603. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  47604. 801453e: b580 push {r7, lr}
  47605. 8014540: b086 sub sp, #24
  47606. 8014542: af00 add r7, sp, #0
  47607. 8014544: 6078 str r0, [r7, #4]
  47608. 8014546: 6039 str r1, [r7, #0]
  47609. SemaphoreHandle_t hMutex;
  47610. osStatus_t stat;
  47611. uint32_t rmtx;
  47612. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47613. 8014548: 687b ldr r3, [r7, #4]
  47614. 801454a: f023 0301 bic.w r3, r3, #1
  47615. 801454e: 613b str r3, [r7, #16]
  47616. rmtx = (uint32_t)mutex_id & 1U;
  47617. 8014550: 687b ldr r3, [r7, #4]
  47618. 8014552: f003 0301 and.w r3, r3, #1
  47619. 8014556: 60fb str r3, [r7, #12]
  47620. stat = osOK;
  47621. 8014558: 2300 movs r3, #0
  47622. 801455a: 617b str r3, [r7, #20]
  47623. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47624. 801455c: f3ef 8305 mrs r3, IPSR
  47625. 8014560: 60bb str r3, [r7, #8]
  47626. return(result);
  47627. 8014562: 68bb ldr r3, [r7, #8]
  47628. if (IS_IRQ()) {
  47629. 8014564: 2b00 cmp r3, #0
  47630. 8014566: d003 beq.n 8014570 <osMutexAcquire+0x32>
  47631. stat = osErrorISR;
  47632. 8014568: f06f 0305 mvn.w r3, #5
  47633. 801456c: 617b str r3, [r7, #20]
  47634. 801456e: e02c b.n 80145ca <osMutexAcquire+0x8c>
  47635. }
  47636. else if (hMutex == NULL) {
  47637. 8014570: 693b ldr r3, [r7, #16]
  47638. 8014572: 2b00 cmp r3, #0
  47639. 8014574: d103 bne.n 801457e <osMutexAcquire+0x40>
  47640. stat = osErrorParameter;
  47641. 8014576: f06f 0303 mvn.w r3, #3
  47642. 801457a: 617b str r3, [r7, #20]
  47643. 801457c: e025 b.n 80145ca <osMutexAcquire+0x8c>
  47644. }
  47645. else {
  47646. if (rmtx != 0U) {
  47647. 801457e: 68fb ldr r3, [r7, #12]
  47648. 8014580: 2b00 cmp r3, #0
  47649. 8014582: d011 beq.n 80145a8 <osMutexAcquire+0x6a>
  47650. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47651. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  47652. 8014584: 6839 ldr r1, [r7, #0]
  47653. 8014586: 6938 ldr r0, [r7, #16]
  47654. 8014588: f000 fc41 bl 8014e0e <xQueueTakeMutexRecursive>
  47655. 801458c: 4603 mov r3, r0
  47656. 801458e: 2b01 cmp r3, #1
  47657. 8014590: d01b beq.n 80145ca <osMutexAcquire+0x8c>
  47658. if (timeout != 0U) {
  47659. 8014592: 683b ldr r3, [r7, #0]
  47660. 8014594: 2b00 cmp r3, #0
  47661. 8014596: d003 beq.n 80145a0 <osMutexAcquire+0x62>
  47662. stat = osErrorTimeout;
  47663. 8014598: f06f 0301 mvn.w r3, #1
  47664. 801459c: 617b str r3, [r7, #20]
  47665. 801459e: e014 b.n 80145ca <osMutexAcquire+0x8c>
  47666. } else {
  47667. stat = osErrorResource;
  47668. 80145a0: f06f 0302 mvn.w r3, #2
  47669. 80145a4: 617b str r3, [r7, #20]
  47670. 80145a6: e010 b.n 80145ca <osMutexAcquire+0x8c>
  47671. }
  47672. }
  47673. #endif
  47674. }
  47675. else {
  47676. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  47677. 80145a8: 6839 ldr r1, [r7, #0]
  47678. 80145aa: 6938 ldr r0, [r7, #16]
  47679. 80145ac: f000 fee8 bl 8015380 <xQueueSemaphoreTake>
  47680. 80145b0: 4603 mov r3, r0
  47681. 80145b2: 2b01 cmp r3, #1
  47682. 80145b4: d009 beq.n 80145ca <osMutexAcquire+0x8c>
  47683. if (timeout != 0U) {
  47684. 80145b6: 683b ldr r3, [r7, #0]
  47685. 80145b8: 2b00 cmp r3, #0
  47686. 80145ba: d003 beq.n 80145c4 <osMutexAcquire+0x86>
  47687. stat = osErrorTimeout;
  47688. 80145bc: f06f 0301 mvn.w r3, #1
  47689. 80145c0: 617b str r3, [r7, #20]
  47690. 80145c2: e002 b.n 80145ca <osMutexAcquire+0x8c>
  47691. } else {
  47692. stat = osErrorResource;
  47693. 80145c4: f06f 0302 mvn.w r3, #2
  47694. 80145c8: 617b str r3, [r7, #20]
  47695. }
  47696. }
  47697. }
  47698. }
  47699. return (stat);
  47700. 80145ca: 697b ldr r3, [r7, #20]
  47701. }
  47702. 80145cc: 4618 mov r0, r3
  47703. 80145ce: 3718 adds r7, #24
  47704. 80145d0: 46bd mov sp, r7
  47705. 80145d2: bd80 pop {r7, pc}
  47706. 080145d4 <osMutexRelease>:
  47707. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  47708. 80145d4: b580 push {r7, lr}
  47709. 80145d6: b086 sub sp, #24
  47710. 80145d8: af00 add r7, sp, #0
  47711. 80145da: 6078 str r0, [r7, #4]
  47712. SemaphoreHandle_t hMutex;
  47713. osStatus_t stat;
  47714. uint32_t rmtx;
  47715. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47716. 80145dc: 687b ldr r3, [r7, #4]
  47717. 80145de: f023 0301 bic.w r3, r3, #1
  47718. 80145e2: 613b str r3, [r7, #16]
  47719. rmtx = (uint32_t)mutex_id & 1U;
  47720. 80145e4: 687b ldr r3, [r7, #4]
  47721. 80145e6: f003 0301 and.w r3, r3, #1
  47722. 80145ea: 60fb str r3, [r7, #12]
  47723. stat = osOK;
  47724. 80145ec: 2300 movs r3, #0
  47725. 80145ee: 617b str r3, [r7, #20]
  47726. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47727. 80145f0: f3ef 8305 mrs r3, IPSR
  47728. 80145f4: 60bb str r3, [r7, #8]
  47729. return(result);
  47730. 80145f6: 68bb ldr r3, [r7, #8]
  47731. if (IS_IRQ()) {
  47732. 80145f8: 2b00 cmp r3, #0
  47733. 80145fa: d003 beq.n 8014604 <osMutexRelease+0x30>
  47734. stat = osErrorISR;
  47735. 80145fc: f06f 0305 mvn.w r3, #5
  47736. 8014600: 617b str r3, [r7, #20]
  47737. 8014602: e01f b.n 8014644 <osMutexRelease+0x70>
  47738. }
  47739. else if (hMutex == NULL) {
  47740. 8014604: 693b ldr r3, [r7, #16]
  47741. 8014606: 2b00 cmp r3, #0
  47742. 8014608: d103 bne.n 8014612 <osMutexRelease+0x3e>
  47743. stat = osErrorParameter;
  47744. 801460a: f06f 0303 mvn.w r3, #3
  47745. 801460e: 617b str r3, [r7, #20]
  47746. 8014610: e018 b.n 8014644 <osMutexRelease+0x70>
  47747. }
  47748. else {
  47749. if (rmtx != 0U) {
  47750. 8014612: 68fb ldr r3, [r7, #12]
  47751. 8014614: 2b00 cmp r3, #0
  47752. 8014616: d009 beq.n 801462c <osMutexRelease+0x58>
  47753. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47754. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  47755. 8014618: 6938 ldr r0, [r7, #16]
  47756. 801461a: f000 fbc3 bl 8014da4 <xQueueGiveMutexRecursive>
  47757. 801461e: 4603 mov r3, r0
  47758. 8014620: 2b01 cmp r3, #1
  47759. 8014622: d00f beq.n 8014644 <osMutexRelease+0x70>
  47760. stat = osErrorResource;
  47761. 8014624: f06f 0302 mvn.w r3, #2
  47762. 8014628: 617b str r3, [r7, #20]
  47763. 801462a: e00b b.n 8014644 <osMutexRelease+0x70>
  47764. }
  47765. #endif
  47766. }
  47767. else {
  47768. if (xSemaphoreGive (hMutex) != pdPASS) {
  47769. 801462c: 2300 movs r3, #0
  47770. 801462e: 2200 movs r2, #0
  47771. 8014630: 2100 movs r1, #0
  47772. 8014632: 6938 ldr r0, [r7, #16]
  47773. 8014634: f000 fc22 bl 8014e7c <xQueueGenericSend>
  47774. 8014638: 4603 mov r3, r0
  47775. 801463a: 2b01 cmp r3, #1
  47776. 801463c: d002 beq.n 8014644 <osMutexRelease+0x70>
  47777. stat = osErrorResource;
  47778. 801463e: f06f 0302 mvn.w r3, #2
  47779. 8014642: 617b str r3, [r7, #20]
  47780. }
  47781. }
  47782. }
  47783. return (stat);
  47784. 8014644: 697b ldr r3, [r7, #20]
  47785. }
  47786. 8014646: 4618 mov r0, r3
  47787. 8014648: 3718 adds r7, #24
  47788. 801464a: 46bd mov sp, r7
  47789. 801464c: bd80 pop {r7, pc}
  47790. 0801464e <osMessageQueueNew>:
  47791. return (stat);
  47792. }
  47793. /*---------------------------------------------------------------------------*/
  47794. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  47795. 801464e: b580 push {r7, lr}
  47796. 8014650: b08a sub sp, #40 @ 0x28
  47797. 8014652: af02 add r7, sp, #8
  47798. 8014654: 60f8 str r0, [r7, #12]
  47799. 8014656: 60b9 str r1, [r7, #8]
  47800. 8014658: 607a str r2, [r7, #4]
  47801. int32_t mem;
  47802. #if (configQUEUE_REGISTRY_SIZE > 0)
  47803. const char *name;
  47804. #endif
  47805. hQueue = NULL;
  47806. 801465a: 2300 movs r3, #0
  47807. 801465c: 61fb str r3, [r7, #28]
  47808. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47809. 801465e: f3ef 8305 mrs r3, IPSR
  47810. 8014662: 613b str r3, [r7, #16]
  47811. return(result);
  47812. 8014664: 693b ldr r3, [r7, #16]
  47813. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  47814. 8014666: 2b00 cmp r3, #0
  47815. 8014668: d15f bne.n 801472a <osMessageQueueNew+0xdc>
  47816. 801466a: 68fb ldr r3, [r7, #12]
  47817. 801466c: 2b00 cmp r3, #0
  47818. 801466e: d05c beq.n 801472a <osMessageQueueNew+0xdc>
  47819. 8014670: 68bb ldr r3, [r7, #8]
  47820. 8014672: 2b00 cmp r3, #0
  47821. 8014674: d059 beq.n 801472a <osMessageQueueNew+0xdc>
  47822. mem = -1;
  47823. 8014676: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47824. 801467a: 61bb str r3, [r7, #24]
  47825. if (attr != NULL) {
  47826. 801467c: 687b ldr r3, [r7, #4]
  47827. 801467e: 2b00 cmp r3, #0
  47828. 8014680: d029 beq.n 80146d6 <osMessageQueueNew+0x88>
  47829. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47830. 8014682: 687b ldr r3, [r7, #4]
  47831. 8014684: 689b ldr r3, [r3, #8]
  47832. 8014686: 2b00 cmp r3, #0
  47833. 8014688: d012 beq.n 80146b0 <osMessageQueueNew+0x62>
  47834. 801468a: 687b ldr r3, [r7, #4]
  47835. 801468c: 68db ldr r3, [r3, #12]
  47836. 801468e: 2b4f cmp r3, #79 @ 0x4f
  47837. 8014690: d90e bls.n 80146b0 <osMessageQueueNew+0x62>
  47838. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47839. 8014692: 687b ldr r3, [r7, #4]
  47840. 8014694: 691b ldr r3, [r3, #16]
  47841. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47842. 8014696: 2b00 cmp r3, #0
  47843. 8014698: d00a beq.n 80146b0 <osMessageQueueNew+0x62>
  47844. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47845. 801469a: 687b ldr r3, [r7, #4]
  47846. 801469c: 695a ldr r2, [r3, #20]
  47847. 801469e: 68fb ldr r3, [r7, #12]
  47848. 80146a0: 68b9 ldr r1, [r7, #8]
  47849. 80146a2: fb01 f303 mul.w r3, r1, r3
  47850. 80146a6: 429a cmp r2, r3
  47851. 80146a8: d302 bcc.n 80146b0 <osMessageQueueNew+0x62>
  47852. mem = 1;
  47853. 80146aa: 2301 movs r3, #1
  47854. 80146ac: 61bb str r3, [r7, #24]
  47855. 80146ae: e014 b.n 80146da <osMessageQueueNew+0x8c>
  47856. }
  47857. else {
  47858. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47859. 80146b0: 687b ldr r3, [r7, #4]
  47860. 80146b2: 689b ldr r3, [r3, #8]
  47861. 80146b4: 2b00 cmp r3, #0
  47862. 80146b6: d110 bne.n 80146da <osMessageQueueNew+0x8c>
  47863. 80146b8: 687b ldr r3, [r7, #4]
  47864. 80146ba: 68db ldr r3, [r3, #12]
  47865. 80146bc: 2b00 cmp r3, #0
  47866. 80146be: d10c bne.n 80146da <osMessageQueueNew+0x8c>
  47867. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47868. 80146c0: 687b ldr r3, [r7, #4]
  47869. 80146c2: 691b ldr r3, [r3, #16]
  47870. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47871. 80146c4: 2b00 cmp r3, #0
  47872. 80146c6: d108 bne.n 80146da <osMessageQueueNew+0x8c>
  47873. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47874. 80146c8: 687b ldr r3, [r7, #4]
  47875. 80146ca: 695b ldr r3, [r3, #20]
  47876. 80146cc: 2b00 cmp r3, #0
  47877. 80146ce: d104 bne.n 80146da <osMessageQueueNew+0x8c>
  47878. mem = 0;
  47879. 80146d0: 2300 movs r3, #0
  47880. 80146d2: 61bb str r3, [r7, #24]
  47881. 80146d4: e001 b.n 80146da <osMessageQueueNew+0x8c>
  47882. }
  47883. }
  47884. }
  47885. else {
  47886. mem = 0;
  47887. 80146d6: 2300 movs r3, #0
  47888. 80146d8: 61bb str r3, [r7, #24]
  47889. }
  47890. if (mem == 1) {
  47891. 80146da: 69bb ldr r3, [r7, #24]
  47892. 80146dc: 2b01 cmp r3, #1
  47893. 80146de: d10b bne.n 80146f8 <osMessageQueueNew+0xaa>
  47894. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47895. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  47896. 80146e0: 687b ldr r3, [r7, #4]
  47897. 80146e2: 691a ldr r2, [r3, #16]
  47898. 80146e4: 687b ldr r3, [r7, #4]
  47899. 80146e6: 689b ldr r3, [r3, #8]
  47900. 80146e8: 2100 movs r1, #0
  47901. 80146ea: 9100 str r1, [sp, #0]
  47902. 80146ec: 68b9 ldr r1, [r7, #8]
  47903. 80146ee: 68f8 ldr r0, [r7, #12]
  47904. 80146f0: f000 fa30 bl 8014b54 <xQueueGenericCreateStatic>
  47905. 80146f4: 61f8 str r0, [r7, #28]
  47906. 80146f6: e008 b.n 801470a <osMessageQueueNew+0xbc>
  47907. #endif
  47908. }
  47909. else {
  47910. if (mem == 0) {
  47911. 80146f8: 69bb ldr r3, [r7, #24]
  47912. 80146fa: 2b00 cmp r3, #0
  47913. 80146fc: d105 bne.n 801470a <osMessageQueueNew+0xbc>
  47914. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47915. hQueue = xQueueCreate (msg_count, msg_size);
  47916. 80146fe: 2200 movs r2, #0
  47917. 8014700: 68b9 ldr r1, [r7, #8]
  47918. 8014702: 68f8 ldr r0, [r7, #12]
  47919. 8014704: f000 faa3 bl 8014c4e <xQueueGenericCreate>
  47920. 8014708: 61f8 str r0, [r7, #28]
  47921. #endif
  47922. }
  47923. }
  47924. #if (configQUEUE_REGISTRY_SIZE > 0)
  47925. if (hQueue != NULL) {
  47926. 801470a: 69fb ldr r3, [r7, #28]
  47927. 801470c: 2b00 cmp r3, #0
  47928. 801470e: d00c beq.n 801472a <osMessageQueueNew+0xdc>
  47929. if (attr != NULL) {
  47930. 8014710: 687b ldr r3, [r7, #4]
  47931. 8014712: 2b00 cmp r3, #0
  47932. 8014714: d003 beq.n 801471e <osMessageQueueNew+0xd0>
  47933. name = attr->name;
  47934. 8014716: 687b ldr r3, [r7, #4]
  47935. 8014718: 681b ldr r3, [r3, #0]
  47936. 801471a: 617b str r3, [r7, #20]
  47937. 801471c: e001 b.n 8014722 <osMessageQueueNew+0xd4>
  47938. } else {
  47939. name = NULL;
  47940. 801471e: 2300 movs r3, #0
  47941. 8014720: 617b str r3, [r7, #20]
  47942. }
  47943. vQueueAddToRegistry (hQueue, name);
  47944. 8014722: 6979 ldr r1, [r7, #20]
  47945. 8014724: 69f8 ldr r0, [r7, #28]
  47946. 8014726: f001 f8e5 bl 80158f4 <vQueueAddToRegistry>
  47947. }
  47948. #endif
  47949. }
  47950. return ((osMessageQueueId_t)hQueue);
  47951. 801472a: 69fb ldr r3, [r7, #28]
  47952. }
  47953. 801472c: 4618 mov r0, r3
  47954. 801472e: 3720 adds r7, #32
  47955. 8014730: 46bd mov sp, r7
  47956. 8014732: bd80 pop {r7, pc}
  47957. 08014734 <osMessageQueuePut>:
  47958. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47959. 8014734: b580 push {r7, lr}
  47960. 8014736: b088 sub sp, #32
  47961. 8014738: af00 add r7, sp, #0
  47962. 801473a: 60f8 str r0, [r7, #12]
  47963. 801473c: 60b9 str r1, [r7, #8]
  47964. 801473e: 603b str r3, [r7, #0]
  47965. 8014740: 4613 mov r3, r2
  47966. 8014742: 71fb strb r3, [r7, #7]
  47967. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47968. 8014744: 68fb ldr r3, [r7, #12]
  47969. 8014746: 61bb str r3, [r7, #24]
  47970. osStatus_t stat;
  47971. BaseType_t yield;
  47972. (void)msg_prio; /* Message priority is ignored */
  47973. stat = osOK;
  47974. 8014748: 2300 movs r3, #0
  47975. 801474a: 61fb str r3, [r7, #28]
  47976. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47977. 801474c: f3ef 8305 mrs r3, IPSR
  47978. 8014750: 617b str r3, [r7, #20]
  47979. return(result);
  47980. 8014752: 697b ldr r3, [r7, #20]
  47981. if (IS_IRQ()) {
  47982. 8014754: 2b00 cmp r3, #0
  47983. 8014756: d028 beq.n 80147aa <osMessageQueuePut+0x76>
  47984. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47985. 8014758: 69bb ldr r3, [r7, #24]
  47986. 801475a: 2b00 cmp r3, #0
  47987. 801475c: d005 beq.n 801476a <osMessageQueuePut+0x36>
  47988. 801475e: 68bb ldr r3, [r7, #8]
  47989. 8014760: 2b00 cmp r3, #0
  47990. 8014762: d002 beq.n 801476a <osMessageQueuePut+0x36>
  47991. 8014764: 683b ldr r3, [r7, #0]
  47992. 8014766: 2b00 cmp r3, #0
  47993. 8014768: d003 beq.n 8014772 <osMessageQueuePut+0x3e>
  47994. stat = osErrorParameter;
  47995. 801476a: f06f 0303 mvn.w r3, #3
  47996. 801476e: 61fb str r3, [r7, #28]
  47997. 8014770: e038 b.n 80147e4 <osMessageQueuePut+0xb0>
  47998. }
  47999. else {
  48000. yield = pdFALSE;
  48001. 8014772: 2300 movs r3, #0
  48002. 8014774: 613b str r3, [r7, #16]
  48003. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  48004. 8014776: f107 0210 add.w r2, r7, #16
  48005. 801477a: 2300 movs r3, #0
  48006. 801477c: 68b9 ldr r1, [r7, #8]
  48007. 801477e: 69b8 ldr r0, [r7, #24]
  48008. 8014780: f000 fc7e bl 8015080 <xQueueGenericSendFromISR>
  48009. 8014784: 4603 mov r3, r0
  48010. 8014786: 2b01 cmp r3, #1
  48011. 8014788: d003 beq.n 8014792 <osMessageQueuePut+0x5e>
  48012. stat = osErrorResource;
  48013. 801478a: f06f 0302 mvn.w r3, #2
  48014. 801478e: 61fb str r3, [r7, #28]
  48015. 8014790: e028 b.n 80147e4 <osMessageQueuePut+0xb0>
  48016. } else {
  48017. portYIELD_FROM_ISR (yield);
  48018. 8014792: 693b ldr r3, [r7, #16]
  48019. 8014794: 2b00 cmp r3, #0
  48020. 8014796: d025 beq.n 80147e4 <osMessageQueuePut+0xb0>
  48021. 8014798: 4b15 ldr r3, [pc, #84] @ (80147f0 <osMessageQueuePut+0xbc>)
  48022. 801479a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48023. 801479e: 601a str r2, [r3, #0]
  48024. 80147a0: f3bf 8f4f dsb sy
  48025. 80147a4: f3bf 8f6f isb sy
  48026. 80147a8: e01c b.n 80147e4 <osMessageQueuePut+0xb0>
  48027. }
  48028. }
  48029. }
  48030. else {
  48031. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  48032. 80147aa: 69bb ldr r3, [r7, #24]
  48033. 80147ac: 2b00 cmp r3, #0
  48034. 80147ae: d002 beq.n 80147b6 <osMessageQueuePut+0x82>
  48035. 80147b0: 68bb ldr r3, [r7, #8]
  48036. 80147b2: 2b00 cmp r3, #0
  48037. 80147b4: d103 bne.n 80147be <osMessageQueuePut+0x8a>
  48038. stat = osErrorParameter;
  48039. 80147b6: f06f 0303 mvn.w r3, #3
  48040. 80147ba: 61fb str r3, [r7, #28]
  48041. 80147bc: e012 b.n 80147e4 <osMessageQueuePut+0xb0>
  48042. }
  48043. else {
  48044. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  48045. 80147be: 2300 movs r3, #0
  48046. 80147c0: 683a ldr r2, [r7, #0]
  48047. 80147c2: 68b9 ldr r1, [r7, #8]
  48048. 80147c4: 69b8 ldr r0, [r7, #24]
  48049. 80147c6: f000 fb59 bl 8014e7c <xQueueGenericSend>
  48050. 80147ca: 4603 mov r3, r0
  48051. 80147cc: 2b01 cmp r3, #1
  48052. 80147ce: d009 beq.n 80147e4 <osMessageQueuePut+0xb0>
  48053. if (timeout != 0U) {
  48054. 80147d0: 683b ldr r3, [r7, #0]
  48055. 80147d2: 2b00 cmp r3, #0
  48056. 80147d4: d003 beq.n 80147de <osMessageQueuePut+0xaa>
  48057. stat = osErrorTimeout;
  48058. 80147d6: f06f 0301 mvn.w r3, #1
  48059. 80147da: 61fb str r3, [r7, #28]
  48060. 80147dc: e002 b.n 80147e4 <osMessageQueuePut+0xb0>
  48061. } else {
  48062. stat = osErrorResource;
  48063. 80147de: f06f 0302 mvn.w r3, #2
  48064. 80147e2: 61fb str r3, [r7, #28]
  48065. }
  48066. }
  48067. }
  48068. }
  48069. return (stat);
  48070. 80147e4: 69fb ldr r3, [r7, #28]
  48071. }
  48072. 80147e6: 4618 mov r0, r3
  48073. 80147e8: 3720 adds r7, #32
  48074. 80147ea: 46bd mov sp, r7
  48075. 80147ec: bd80 pop {r7, pc}
  48076. 80147ee: bf00 nop
  48077. 80147f0: e000ed04 .word 0xe000ed04
  48078. 080147f4 <osMessageQueueGet>:
  48079. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  48080. 80147f4: b580 push {r7, lr}
  48081. 80147f6: b088 sub sp, #32
  48082. 80147f8: af00 add r7, sp, #0
  48083. 80147fa: 60f8 str r0, [r7, #12]
  48084. 80147fc: 60b9 str r1, [r7, #8]
  48085. 80147fe: 607a str r2, [r7, #4]
  48086. 8014800: 603b str r3, [r7, #0]
  48087. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  48088. 8014802: 68fb ldr r3, [r7, #12]
  48089. 8014804: 61bb str r3, [r7, #24]
  48090. osStatus_t stat;
  48091. BaseType_t yield;
  48092. (void)msg_prio; /* Message priority is ignored */
  48093. stat = osOK;
  48094. 8014806: 2300 movs r3, #0
  48095. 8014808: 61fb str r3, [r7, #28]
  48096. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  48097. 801480a: f3ef 8305 mrs r3, IPSR
  48098. 801480e: 617b str r3, [r7, #20]
  48099. return(result);
  48100. 8014810: 697b ldr r3, [r7, #20]
  48101. if (IS_IRQ()) {
  48102. 8014812: 2b00 cmp r3, #0
  48103. 8014814: d028 beq.n 8014868 <osMessageQueueGet+0x74>
  48104. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  48105. 8014816: 69bb ldr r3, [r7, #24]
  48106. 8014818: 2b00 cmp r3, #0
  48107. 801481a: d005 beq.n 8014828 <osMessageQueueGet+0x34>
  48108. 801481c: 68bb ldr r3, [r7, #8]
  48109. 801481e: 2b00 cmp r3, #0
  48110. 8014820: d002 beq.n 8014828 <osMessageQueueGet+0x34>
  48111. 8014822: 683b ldr r3, [r7, #0]
  48112. 8014824: 2b00 cmp r3, #0
  48113. 8014826: d003 beq.n 8014830 <osMessageQueueGet+0x3c>
  48114. stat = osErrorParameter;
  48115. 8014828: f06f 0303 mvn.w r3, #3
  48116. 801482c: 61fb str r3, [r7, #28]
  48117. 801482e: e037 b.n 80148a0 <osMessageQueueGet+0xac>
  48118. }
  48119. else {
  48120. yield = pdFALSE;
  48121. 8014830: 2300 movs r3, #0
  48122. 8014832: 613b str r3, [r7, #16]
  48123. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  48124. 8014834: f107 0310 add.w r3, r7, #16
  48125. 8014838: 461a mov r2, r3
  48126. 801483a: 68b9 ldr r1, [r7, #8]
  48127. 801483c: 69b8 ldr r0, [r7, #24]
  48128. 801483e: f000 feaf bl 80155a0 <xQueueReceiveFromISR>
  48129. 8014842: 4603 mov r3, r0
  48130. 8014844: 2b01 cmp r3, #1
  48131. 8014846: d003 beq.n 8014850 <osMessageQueueGet+0x5c>
  48132. stat = osErrorResource;
  48133. 8014848: f06f 0302 mvn.w r3, #2
  48134. 801484c: 61fb str r3, [r7, #28]
  48135. 801484e: e027 b.n 80148a0 <osMessageQueueGet+0xac>
  48136. } else {
  48137. portYIELD_FROM_ISR (yield);
  48138. 8014850: 693b ldr r3, [r7, #16]
  48139. 8014852: 2b00 cmp r3, #0
  48140. 8014854: d024 beq.n 80148a0 <osMessageQueueGet+0xac>
  48141. 8014856: 4b15 ldr r3, [pc, #84] @ (80148ac <osMessageQueueGet+0xb8>)
  48142. 8014858: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48143. 801485c: 601a str r2, [r3, #0]
  48144. 801485e: f3bf 8f4f dsb sy
  48145. 8014862: f3bf 8f6f isb sy
  48146. 8014866: e01b b.n 80148a0 <osMessageQueueGet+0xac>
  48147. }
  48148. }
  48149. }
  48150. else {
  48151. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  48152. 8014868: 69bb ldr r3, [r7, #24]
  48153. 801486a: 2b00 cmp r3, #0
  48154. 801486c: d002 beq.n 8014874 <osMessageQueueGet+0x80>
  48155. 801486e: 68bb ldr r3, [r7, #8]
  48156. 8014870: 2b00 cmp r3, #0
  48157. 8014872: d103 bne.n 801487c <osMessageQueueGet+0x88>
  48158. stat = osErrorParameter;
  48159. 8014874: f06f 0303 mvn.w r3, #3
  48160. 8014878: 61fb str r3, [r7, #28]
  48161. 801487a: e011 b.n 80148a0 <osMessageQueueGet+0xac>
  48162. }
  48163. else {
  48164. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  48165. 801487c: 683a ldr r2, [r7, #0]
  48166. 801487e: 68b9 ldr r1, [r7, #8]
  48167. 8014880: 69b8 ldr r0, [r7, #24]
  48168. 8014882: f000 fc9b bl 80151bc <xQueueReceive>
  48169. 8014886: 4603 mov r3, r0
  48170. 8014888: 2b01 cmp r3, #1
  48171. 801488a: d009 beq.n 80148a0 <osMessageQueueGet+0xac>
  48172. if (timeout != 0U) {
  48173. 801488c: 683b ldr r3, [r7, #0]
  48174. 801488e: 2b00 cmp r3, #0
  48175. 8014890: d003 beq.n 801489a <osMessageQueueGet+0xa6>
  48176. stat = osErrorTimeout;
  48177. 8014892: f06f 0301 mvn.w r3, #1
  48178. 8014896: 61fb str r3, [r7, #28]
  48179. 8014898: e002 b.n 80148a0 <osMessageQueueGet+0xac>
  48180. } else {
  48181. stat = osErrorResource;
  48182. 801489a: f06f 0302 mvn.w r3, #2
  48183. 801489e: 61fb str r3, [r7, #28]
  48184. }
  48185. }
  48186. }
  48187. }
  48188. return (stat);
  48189. 80148a0: 69fb ldr r3, [r7, #28]
  48190. }
  48191. 80148a2: 4618 mov r0, r3
  48192. 80148a4: 3720 adds r7, #32
  48193. 80148a6: 46bd mov sp, r7
  48194. 80148a8: bd80 pop {r7, pc}
  48195. 80148aa: bf00 nop
  48196. 80148ac: e000ed04 .word 0xe000ed04
  48197. 080148b0 <vApplicationGetIdleTaskMemory>:
  48198. /*
  48199. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48200. equals to 1 and is required for static memory allocation support.
  48201. */
  48202. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  48203. 80148b0: b480 push {r7}
  48204. 80148b2: b085 sub sp, #20
  48205. 80148b4: af00 add r7, sp, #0
  48206. 80148b6: 60f8 str r0, [r7, #12]
  48207. 80148b8: 60b9 str r1, [r7, #8]
  48208. 80148ba: 607a str r2, [r7, #4]
  48209. /* Idle task control block and stack */
  48210. static StaticTask_t Idle_TCB;
  48211. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  48212. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  48213. 80148bc: 68fb ldr r3, [r7, #12]
  48214. 80148be: 4a07 ldr r2, [pc, #28] @ (80148dc <vApplicationGetIdleTaskMemory+0x2c>)
  48215. 80148c0: 601a str r2, [r3, #0]
  48216. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  48217. 80148c2: 68bb ldr r3, [r7, #8]
  48218. 80148c4: 4a06 ldr r2, [pc, #24] @ (80148e0 <vApplicationGetIdleTaskMemory+0x30>)
  48219. 80148c6: 601a str r2, [r3, #0]
  48220. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  48221. 80148c8: 687b ldr r3, [r7, #4]
  48222. 80148ca: f44f 7200 mov.w r2, #512 @ 0x200
  48223. 80148ce: 601a str r2, [r3, #0]
  48224. }
  48225. 80148d0: bf00 nop
  48226. 80148d2: 3714 adds r7, #20
  48227. 80148d4: 46bd mov sp, r7
  48228. 80148d6: f85d 7b04 ldr.w r7, [sp], #4
  48229. 80148da: 4770 bx lr
  48230. 80148dc: 24001068 .word 0x24001068
  48231. 80148e0: 24001110 .word 0x24001110
  48232. 080148e4 <vApplicationGetTimerTaskMemory>:
  48233. /*
  48234. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48235. equals to 1 and is required for static memory allocation support.
  48236. */
  48237. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  48238. 80148e4: b480 push {r7}
  48239. 80148e6: b085 sub sp, #20
  48240. 80148e8: af00 add r7, sp, #0
  48241. 80148ea: 60f8 str r0, [r7, #12]
  48242. 80148ec: 60b9 str r1, [r7, #8]
  48243. 80148ee: 607a str r2, [r7, #4]
  48244. /* Timer task control block and stack */
  48245. static StaticTask_t Timer_TCB;
  48246. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  48247. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  48248. 80148f0: 68fb ldr r3, [r7, #12]
  48249. 80148f2: 4a07 ldr r2, [pc, #28] @ (8014910 <vApplicationGetTimerTaskMemory+0x2c>)
  48250. 80148f4: 601a str r2, [r3, #0]
  48251. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  48252. 80148f6: 68bb ldr r3, [r7, #8]
  48253. 80148f8: 4a06 ldr r2, [pc, #24] @ (8014914 <vApplicationGetTimerTaskMemory+0x30>)
  48254. 80148fa: 601a str r2, [r3, #0]
  48255. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  48256. 80148fc: 687b ldr r3, [r7, #4]
  48257. 80148fe: f44f 6280 mov.w r2, #1024 @ 0x400
  48258. 8014902: 601a str r2, [r3, #0]
  48259. }
  48260. 8014904: bf00 nop
  48261. 8014906: 3714 adds r7, #20
  48262. 8014908: 46bd mov sp, r7
  48263. 801490a: f85d 7b04 ldr.w r7, [sp], #4
  48264. 801490e: 4770 bx lr
  48265. 8014910: 24001910 .word 0x24001910
  48266. 8014914: 240019b8 .word 0x240019b8
  48267. 08014918 <vListInitialise>:
  48268. /*-----------------------------------------------------------
  48269. * PUBLIC LIST API documented in list.h
  48270. *----------------------------------------------------------*/
  48271. void vListInitialise( List_t * const pxList )
  48272. {
  48273. 8014918: b480 push {r7}
  48274. 801491a: b083 sub sp, #12
  48275. 801491c: af00 add r7, sp, #0
  48276. 801491e: 6078 str r0, [r7, #4]
  48277. /* The list structure contains a list item which is used to mark the
  48278. end of the list. To initialise the list the list end is inserted
  48279. as the only list entry. */
  48280. 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. */
  48281. 8014920: 687b ldr r3, [r7, #4]
  48282. 8014922: f103 0208 add.w r2, r3, #8
  48283. 8014926: 687b ldr r3, [r7, #4]
  48284. 8014928: 605a str r2, [r3, #4]
  48285. /* The list end value is the highest possible value in the list to
  48286. ensure it remains at the end of the list. */
  48287. pxList->xListEnd.xItemValue = portMAX_DELAY;
  48288. 801492a: 687b ldr r3, [r7, #4]
  48289. 801492c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48290. 8014930: 609a str r2, [r3, #8]
  48291. /* The list end next and previous pointers point to itself so we know
  48292. when the list is empty. */
  48293. 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. */
  48294. 8014932: 687b ldr r3, [r7, #4]
  48295. 8014934: f103 0208 add.w r2, r3, #8
  48296. 8014938: 687b ldr r3, [r7, #4]
  48297. 801493a: 60da str r2, [r3, #12]
  48298. 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. */
  48299. 801493c: 687b ldr r3, [r7, #4]
  48300. 801493e: f103 0208 add.w r2, r3, #8
  48301. 8014942: 687b ldr r3, [r7, #4]
  48302. 8014944: 611a str r2, [r3, #16]
  48303. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  48304. 8014946: 687b ldr r3, [r7, #4]
  48305. 8014948: 2200 movs r2, #0
  48306. 801494a: 601a str r2, [r3, #0]
  48307. /* Write known values into the list if
  48308. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48309. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  48310. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  48311. }
  48312. 801494c: bf00 nop
  48313. 801494e: 370c adds r7, #12
  48314. 8014950: 46bd mov sp, r7
  48315. 8014952: f85d 7b04 ldr.w r7, [sp], #4
  48316. 8014956: 4770 bx lr
  48317. 08014958 <vListInitialiseItem>:
  48318. /*-----------------------------------------------------------*/
  48319. void vListInitialiseItem( ListItem_t * const pxItem )
  48320. {
  48321. 8014958: b480 push {r7}
  48322. 801495a: b083 sub sp, #12
  48323. 801495c: af00 add r7, sp, #0
  48324. 801495e: 6078 str r0, [r7, #4]
  48325. /* Make sure the list item is not recorded as being on a list. */
  48326. pxItem->pxContainer = NULL;
  48327. 8014960: 687b ldr r3, [r7, #4]
  48328. 8014962: 2200 movs r2, #0
  48329. 8014964: 611a str r2, [r3, #16]
  48330. /* Write known values into the list item if
  48331. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48332. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48333. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48334. }
  48335. 8014966: bf00 nop
  48336. 8014968: 370c adds r7, #12
  48337. 801496a: 46bd mov sp, r7
  48338. 801496c: f85d 7b04 ldr.w r7, [sp], #4
  48339. 8014970: 4770 bx lr
  48340. 08014972 <vListInsertEnd>:
  48341. /*-----------------------------------------------------------*/
  48342. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  48343. {
  48344. 8014972: b480 push {r7}
  48345. 8014974: b085 sub sp, #20
  48346. 8014976: af00 add r7, sp, #0
  48347. 8014978: 6078 str r0, [r7, #4]
  48348. 801497a: 6039 str r1, [r7, #0]
  48349. ListItem_t * const pxIndex = pxList->pxIndex;
  48350. 801497c: 687b ldr r3, [r7, #4]
  48351. 801497e: 685b ldr r3, [r3, #4]
  48352. 8014980: 60fb str r3, [r7, #12]
  48353. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  48354. /* Insert a new list item into pxList, but rather than sort the list,
  48355. makes the new list item the last item to be removed by a call to
  48356. listGET_OWNER_OF_NEXT_ENTRY(). */
  48357. pxNewListItem->pxNext = pxIndex;
  48358. 8014982: 683b ldr r3, [r7, #0]
  48359. 8014984: 68fa ldr r2, [r7, #12]
  48360. 8014986: 605a str r2, [r3, #4]
  48361. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  48362. 8014988: 68fb ldr r3, [r7, #12]
  48363. 801498a: 689a ldr r2, [r3, #8]
  48364. 801498c: 683b ldr r3, [r7, #0]
  48365. 801498e: 609a str r2, [r3, #8]
  48366. /* Only used during decision coverage testing. */
  48367. mtCOVERAGE_TEST_DELAY();
  48368. pxIndex->pxPrevious->pxNext = pxNewListItem;
  48369. 8014990: 68fb ldr r3, [r7, #12]
  48370. 8014992: 689b ldr r3, [r3, #8]
  48371. 8014994: 683a ldr r2, [r7, #0]
  48372. 8014996: 605a str r2, [r3, #4]
  48373. pxIndex->pxPrevious = pxNewListItem;
  48374. 8014998: 68fb ldr r3, [r7, #12]
  48375. 801499a: 683a ldr r2, [r7, #0]
  48376. 801499c: 609a str r2, [r3, #8]
  48377. /* Remember which list the item is in. */
  48378. pxNewListItem->pxContainer = pxList;
  48379. 801499e: 683b ldr r3, [r7, #0]
  48380. 80149a0: 687a ldr r2, [r7, #4]
  48381. 80149a2: 611a str r2, [r3, #16]
  48382. ( pxList->uxNumberOfItems )++;
  48383. 80149a4: 687b ldr r3, [r7, #4]
  48384. 80149a6: 681b ldr r3, [r3, #0]
  48385. 80149a8: 1c5a adds r2, r3, #1
  48386. 80149aa: 687b ldr r3, [r7, #4]
  48387. 80149ac: 601a str r2, [r3, #0]
  48388. }
  48389. 80149ae: bf00 nop
  48390. 80149b0: 3714 adds r7, #20
  48391. 80149b2: 46bd mov sp, r7
  48392. 80149b4: f85d 7b04 ldr.w r7, [sp], #4
  48393. 80149b8: 4770 bx lr
  48394. 080149ba <vListInsert>:
  48395. /*-----------------------------------------------------------*/
  48396. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  48397. {
  48398. 80149ba: b480 push {r7}
  48399. 80149bc: b085 sub sp, #20
  48400. 80149be: af00 add r7, sp, #0
  48401. 80149c0: 6078 str r0, [r7, #4]
  48402. 80149c2: 6039 str r1, [r7, #0]
  48403. ListItem_t *pxIterator;
  48404. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  48405. 80149c4: 683b ldr r3, [r7, #0]
  48406. 80149c6: 681b ldr r3, [r3, #0]
  48407. 80149c8: 60bb str r3, [r7, #8]
  48408. new list item should be placed after it. This ensures that TCBs which are
  48409. stored in ready lists (all of which have the same xItemValue value) get a
  48410. share of the CPU. However, if the xItemValue is the same as the back marker
  48411. the iteration loop below will not end. Therefore the value is checked
  48412. first, and the algorithm slightly modified if necessary. */
  48413. if( xValueOfInsertion == portMAX_DELAY )
  48414. 80149ca: 68bb ldr r3, [r7, #8]
  48415. 80149cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48416. 80149d0: d103 bne.n 80149da <vListInsert+0x20>
  48417. {
  48418. pxIterator = pxList->xListEnd.pxPrevious;
  48419. 80149d2: 687b ldr r3, [r7, #4]
  48420. 80149d4: 691b ldr r3, [r3, #16]
  48421. 80149d6: 60fb str r3, [r7, #12]
  48422. 80149d8: e00c b.n 80149f4 <vListInsert+0x3a>
  48423. 4) Using a queue or semaphore before it has been initialised or
  48424. before the scheduler has been started (are interrupts firing
  48425. before vTaskStartScheduler() has been called?).
  48426. **********************************************************************/
  48427. 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. */
  48428. 80149da: 687b ldr r3, [r7, #4]
  48429. 80149dc: 3308 adds r3, #8
  48430. 80149de: 60fb str r3, [r7, #12]
  48431. 80149e0: e002 b.n 80149e8 <vListInsert+0x2e>
  48432. 80149e2: 68fb ldr r3, [r7, #12]
  48433. 80149e4: 685b ldr r3, [r3, #4]
  48434. 80149e6: 60fb str r3, [r7, #12]
  48435. 80149e8: 68fb ldr r3, [r7, #12]
  48436. 80149ea: 685b ldr r3, [r3, #4]
  48437. 80149ec: 681b ldr r3, [r3, #0]
  48438. 80149ee: 68ba ldr r2, [r7, #8]
  48439. 80149f0: 429a cmp r2, r3
  48440. 80149f2: d2f6 bcs.n 80149e2 <vListInsert+0x28>
  48441. /* There is nothing to do here, just iterating to the wanted
  48442. insertion position. */
  48443. }
  48444. }
  48445. pxNewListItem->pxNext = pxIterator->pxNext;
  48446. 80149f4: 68fb ldr r3, [r7, #12]
  48447. 80149f6: 685a ldr r2, [r3, #4]
  48448. 80149f8: 683b ldr r3, [r7, #0]
  48449. 80149fa: 605a str r2, [r3, #4]
  48450. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  48451. 80149fc: 683b ldr r3, [r7, #0]
  48452. 80149fe: 685b ldr r3, [r3, #4]
  48453. 8014a00: 683a ldr r2, [r7, #0]
  48454. 8014a02: 609a str r2, [r3, #8]
  48455. pxNewListItem->pxPrevious = pxIterator;
  48456. 8014a04: 683b ldr r3, [r7, #0]
  48457. 8014a06: 68fa ldr r2, [r7, #12]
  48458. 8014a08: 609a str r2, [r3, #8]
  48459. pxIterator->pxNext = pxNewListItem;
  48460. 8014a0a: 68fb ldr r3, [r7, #12]
  48461. 8014a0c: 683a ldr r2, [r7, #0]
  48462. 8014a0e: 605a str r2, [r3, #4]
  48463. /* Remember which list the item is in. This allows fast removal of the
  48464. item later. */
  48465. pxNewListItem->pxContainer = pxList;
  48466. 8014a10: 683b ldr r3, [r7, #0]
  48467. 8014a12: 687a ldr r2, [r7, #4]
  48468. 8014a14: 611a str r2, [r3, #16]
  48469. ( pxList->uxNumberOfItems )++;
  48470. 8014a16: 687b ldr r3, [r7, #4]
  48471. 8014a18: 681b ldr r3, [r3, #0]
  48472. 8014a1a: 1c5a adds r2, r3, #1
  48473. 8014a1c: 687b ldr r3, [r7, #4]
  48474. 8014a1e: 601a str r2, [r3, #0]
  48475. }
  48476. 8014a20: bf00 nop
  48477. 8014a22: 3714 adds r7, #20
  48478. 8014a24: 46bd mov sp, r7
  48479. 8014a26: f85d 7b04 ldr.w r7, [sp], #4
  48480. 8014a2a: 4770 bx lr
  48481. 08014a2c <uxListRemove>:
  48482. /*-----------------------------------------------------------*/
  48483. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  48484. {
  48485. 8014a2c: b480 push {r7}
  48486. 8014a2e: b085 sub sp, #20
  48487. 8014a30: af00 add r7, sp, #0
  48488. 8014a32: 6078 str r0, [r7, #4]
  48489. /* The list item knows which list it is in. Obtain the list from the list
  48490. item. */
  48491. List_t * const pxList = pxItemToRemove->pxContainer;
  48492. 8014a34: 687b ldr r3, [r7, #4]
  48493. 8014a36: 691b ldr r3, [r3, #16]
  48494. 8014a38: 60fb str r3, [r7, #12]
  48495. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  48496. 8014a3a: 687b ldr r3, [r7, #4]
  48497. 8014a3c: 685b ldr r3, [r3, #4]
  48498. 8014a3e: 687a ldr r2, [r7, #4]
  48499. 8014a40: 6892 ldr r2, [r2, #8]
  48500. 8014a42: 609a str r2, [r3, #8]
  48501. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  48502. 8014a44: 687b ldr r3, [r7, #4]
  48503. 8014a46: 689b ldr r3, [r3, #8]
  48504. 8014a48: 687a ldr r2, [r7, #4]
  48505. 8014a4a: 6852 ldr r2, [r2, #4]
  48506. 8014a4c: 605a str r2, [r3, #4]
  48507. /* Only used during decision coverage testing. */
  48508. mtCOVERAGE_TEST_DELAY();
  48509. /* Make sure the index is left pointing to a valid item. */
  48510. if( pxList->pxIndex == pxItemToRemove )
  48511. 8014a4e: 68fb ldr r3, [r7, #12]
  48512. 8014a50: 685b ldr r3, [r3, #4]
  48513. 8014a52: 687a ldr r2, [r7, #4]
  48514. 8014a54: 429a cmp r2, r3
  48515. 8014a56: d103 bne.n 8014a60 <uxListRemove+0x34>
  48516. {
  48517. pxList->pxIndex = pxItemToRemove->pxPrevious;
  48518. 8014a58: 687b ldr r3, [r7, #4]
  48519. 8014a5a: 689a ldr r2, [r3, #8]
  48520. 8014a5c: 68fb ldr r3, [r7, #12]
  48521. 8014a5e: 605a str r2, [r3, #4]
  48522. else
  48523. {
  48524. mtCOVERAGE_TEST_MARKER();
  48525. }
  48526. pxItemToRemove->pxContainer = NULL;
  48527. 8014a60: 687b ldr r3, [r7, #4]
  48528. 8014a62: 2200 movs r2, #0
  48529. 8014a64: 611a str r2, [r3, #16]
  48530. ( pxList->uxNumberOfItems )--;
  48531. 8014a66: 68fb ldr r3, [r7, #12]
  48532. 8014a68: 681b ldr r3, [r3, #0]
  48533. 8014a6a: 1e5a subs r2, r3, #1
  48534. 8014a6c: 68fb ldr r3, [r7, #12]
  48535. 8014a6e: 601a str r2, [r3, #0]
  48536. return pxList->uxNumberOfItems;
  48537. 8014a70: 68fb ldr r3, [r7, #12]
  48538. 8014a72: 681b ldr r3, [r3, #0]
  48539. }
  48540. 8014a74: 4618 mov r0, r3
  48541. 8014a76: 3714 adds r7, #20
  48542. 8014a78: 46bd mov sp, r7
  48543. 8014a7a: f85d 7b04 ldr.w r7, [sp], #4
  48544. 8014a7e: 4770 bx lr
  48545. 08014a80 <xQueueGenericReset>:
  48546. } \
  48547. taskEXIT_CRITICAL()
  48548. /*-----------------------------------------------------------*/
  48549. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  48550. {
  48551. 8014a80: b580 push {r7, lr}
  48552. 8014a82: b084 sub sp, #16
  48553. 8014a84: af00 add r7, sp, #0
  48554. 8014a86: 6078 str r0, [r7, #4]
  48555. 8014a88: 6039 str r1, [r7, #0]
  48556. Queue_t * const pxQueue = xQueue;
  48557. 8014a8a: 687b ldr r3, [r7, #4]
  48558. 8014a8c: 60fb str r3, [r7, #12]
  48559. configASSERT( pxQueue );
  48560. 8014a8e: 68fb ldr r3, [r7, #12]
  48561. 8014a90: 2b00 cmp r3, #0
  48562. 8014a92: d10b bne.n 8014aac <xQueueGenericReset+0x2c>
  48563. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  48564. {
  48565. uint32_t ulNewBASEPRI;
  48566. __asm volatile
  48567. 8014a94: f04f 0350 mov.w r3, #80 @ 0x50
  48568. 8014a98: f383 8811 msr BASEPRI, r3
  48569. 8014a9c: f3bf 8f6f isb sy
  48570. 8014aa0: f3bf 8f4f dsb sy
  48571. 8014aa4: 60bb str r3, [r7, #8]
  48572. " msr basepri, %0 \n" \
  48573. " isb \n" \
  48574. " dsb \n" \
  48575. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48576. );
  48577. }
  48578. 8014aa6: bf00 nop
  48579. 8014aa8: bf00 nop
  48580. 8014aaa: e7fd b.n 8014aa8 <xQueueGenericReset+0x28>
  48581. taskENTER_CRITICAL();
  48582. 8014aac: f003 f964 bl 8017d78 <vPortEnterCritical>
  48583. {
  48584. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48585. 8014ab0: 68fb ldr r3, [r7, #12]
  48586. 8014ab2: 681a ldr r2, [r3, #0]
  48587. 8014ab4: 68fb ldr r3, [r7, #12]
  48588. 8014ab6: 6bdb ldr r3, [r3, #60] @ 0x3c
  48589. 8014ab8: 68f9 ldr r1, [r7, #12]
  48590. 8014aba: 6c09 ldr r1, [r1, #64] @ 0x40
  48591. 8014abc: fb01 f303 mul.w r3, r1, r3
  48592. 8014ac0: 441a add r2, r3
  48593. 8014ac2: 68fb ldr r3, [r7, #12]
  48594. 8014ac4: 609a str r2, [r3, #8]
  48595. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  48596. 8014ac6: 68fb ldr r3, [r7, #12]
  48597. 8014ac8: 2200 movs r2, #0
  48598. 8014aca: 639a str r2, [r3, #56] @ 0x38
  48599. pxQueue->pcWriteTo = pxQueue->pcHead;
  48600. 8014acc: 68fb ldr r3, [r7, #12]
  48601. 8014ace: 681a ldr r2, [r3, #0]
  48602. 8014ad0: 68fb ldr r3, [r7, #12]
  48603. 8014ad2: 605a str r2, [r3, #4]
  48604. 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. */
  48605. 8014ad4: 68fb ldr r3, [r7, #12]
  48606. 8014ad6: 681a ldr r2, [r3, #0]
  48607. 8014ad8: 68fb ldr r3, [r7, #12]
  48608. 8014ada: 6bdb ldr r3, [r3, #60] @ 0x3c
  48609. 8014adc: 3b01 subs r3, #1
  48610. 8014ade: 68f9 ldr r1, [r7, #12]
  48611. 8014ae0: 6c09 ldr r1, [r1, #64] @ 0x40
  48612. 8014ae2: fb01 f303 mul.w r3, r1, r3
  48613. 8014ae6: 441a add r2, r3
  48614. 8014ae8: 68fb ldr r3, [r7, #12]
  48615. 8014aea: 60da str r2, [r3, #12]
  48616. pxQueue->cRxLock = queueUNLOCKED;
  48617. 8014aec: 68fb ldr r3, [r7, #12]
  48618. 8014aee: 22ff movs r2, #255 @ 0xff
  48619. 8014af0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48620. pxQueue->cTxLock = queueUNLOCKED;
  48621. 8014af4: 68fb ldr r3, [r7, #12]
  48622. 8014af6: 22ff movs r2, #255 @ 0xff
  48623. 8014af8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48624. if( xNewQueue == pdFALSE )
  48625. 8014afc: 683b ldr r3, [r7, #0]
  48626. 8014afe: 2b00 cmp r3, #0
  48627. 8014b00: d114 bne.n 8014b2c <xQueueGenericReset+0xac>
  48628. /* If there are tasks blocked waiting to read from the queue, then
  48629. the tasks will remain blocked as after this function exits the queue
  48630. will still be empty. If there are tasks blocked waiting to write to
  48631. the queue, then one should be unblocked as after this function exits
  48632. it will be possible to write to it. */
  48633. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48634. 8014b02: 68fb ldr r3, [r7, #12]
  48635. 8014b04: 691b ldr r3, [r3, #16]
  48636. 8014b06: 2b00 cmp r3, #0
  48637. 8014b08: d01a beq.n 8014b40 <xQueueGenericReset+0xc0>
  48638. {
  48639. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48640. 8014b0a: 68fb ldr r3, [r7, #12]
  48641. 8014b0c: 3310 adds r3, #16
  48642. 8014b0e: 4618 mov r0, r3
  48643. 8014b10: f001 fdac bl 801666c <xTaskRemoveFromEventList>
  48644. 8014b14: 4603 mov r3, r0
  48645. 8014b16: 2b00 cmp r3, #0
  48646. 8014b18: d012 beq.n 8014b40 <xQueueGenericReset+0xc0>
  48647. {
  48648. queueYIELD_IF_USING_PREEMPTION();
  48649. 8014b1a: 4b0d ldr r3, [pc, #52] @ (8014b50 <xQueueGenericReset+0xd0>)
  48650. 8014b1c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48651. 8014b20: 601a str r2, [r3, #0]
  48652. 8014b22: f3bf 8f4f dsb sy
  48653. 8014b26: f3bf 8f6f isb sy
  48654. 8014b2a: e009 b.n 8014b40 <xQueueGenericReset+0xc0>
  48655. }
  48656. }
  48657. else
  48658. {
  48659. /* Ensure the event queues start in the correct state. */
  48660. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  48661. 8014b2c: 68fb ldr r3, [r7, #12]
  48662. 8014b2e: 3310 adds r3, #16
  48663. 8014b30: 4618 mov r0, r3
  48664. 8014b32: f7ff fef1 bl 8014918 <vListInitialise>
  48665. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  48666. 8014b36: 68fb ldr r3, [r7, #12]
  48667. 8014b38: 3324 adds r3, #36 @ 0x24
  48668. 8014b3a: 4618 mov r0, r3
  48669. 8014b3c: f7ff feec bl 8014918 <vListInitialise>
  48670. }
  48671. }
  48672. taskEXIT_CRITICAL();
  48673. 8014b40: f003 f94c bl 8017ddc <vPortExitCritical>
  48674. /* A value is returned for calling semantic consistency with previous
  48675. versions. */
  48676. return pdPASS;
  48677. 8014b44: 2301 movs r3, #1
  48678. }
  48679. 8014b46: 4618 mov r0, r3
  48680. 8014b48: 3710 adds r7, #16
  48681. 8014b4a: 46bd mov sp, r7
  48682. 8014b4c: bd80 pop {r7, pc}
  48683. 8014b4e: bf00 nop
  48684. 8014b50: e000ed04 .word 0xe000ed04
  48685. 08014b54 <xQueueGenericCreateStatic>:
  48686. /*-----------------------------------------------------------*/
  48687. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48688. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  48689. {
  48690. 8014b54: b580 push {r7, lr}
  48691. 8014b56: b08e sub sp, #56 @ 0x38
  48692. 8014b58: af02 add r7, sp, #8
  48693. 8014b5a: 60f8 str r0, [r7, #12]
  48694. 8014b5c: 60b9 str r1, [r7, #8]
  48695. 8014b5e: 607a str r2, [r7, #4]
  48696. 8014b60: 603b str r3, [r7, #0]
  48697. Queue_t *pxNewQueue;
  48698. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48699. 8014b62: 68fb ldr r3, [r7, #12]
  48700. 8014b64: 2b00 cmp r3, #0
  48701. 8014b66: d10b bne.n 8014b80 <xQueueGenericCreateStatic+0x2c>
  48702. __asm volatile
  48703. 8014b68: f04f 0350 mov.w r3, #80 @ 0x50
  48704. 8014b6c: f383 8811 msr BASEPRI, r3
  48705. 8014b70: f3bf 8f6f isb sy
  48706. 8014b74: f3bf 8f4f dsb sy
  48707. 8014b78: 62bb str r3, [r7, #40] @ 0x28
  48708. }
  48709. 8014b7a: bf00 nop
  48710. 8014b7c: bf00 nop
  48711. 8014b7e: e7fd b.n 8014b7c <xQueueGenericCreateStatic+0x28>
  48712. /* The StaticQueue_t structure and the queue storage area must be
  48713. supplied. */
  48714. configASSERT( pxStaticQueue != NULL );
  48715. 8014b80: 683b ldr r3, [r7, #0]
  48716. 8014b82: 2b00 cmp r3, #0
  48717. 8014b84: d10b bne.n 8014b9e <xQueueGenericCreateStatic+0x4a>
  48718. __asm volatile
  48719. 8014b86: f04f 0350 mov.w r3, #80 @ 0x50
  48720. 8014b8a: f383 8811 msr BASEPRI, r3
  48721. 8014b8e: f3bf 8f6f isb sy
  48722. 8014b92: f3bf 8f4f dsb sy
  48723. 8014b96: 627b str r3, [r7, #36] @ 0x24
  48724. }
  48725. 8014b98: bf00 nop
  48726. 8014b9a: bf00 nop
  48727. 8014b9c: e7fd b.n 8014b9a <xQueueGenericCreateStatic+0x46>
  48728. /* A queue storage area should be provided if the item size is not 0, and
  48729. should not be provided if the item size is 0. */
  48730. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  48731. 8014b9e: 687b ldr r3, [r7, #4]
  48732. 8014ba0: 2b00 cmp r3, #0
  48733. 8014ba2: d002 beq.n 8014baa <xQueueGenericCreateStatic+0x56>
  48734. 8014ba4: 68bb ldr r3, [r7, #8]
  48735. 8014ba6: 2b00 cmp r3, #0
  48736. 8014ba8: d001 beq.n 8014bae <xQueueGenericCreateStatic+0x5a>
  48737. 8014baa: 2301 movs r3, #1
  48738. 8014bac: e000 b.n 8014bb0 <xQueueGenericCreateStatic+0x5c>
  48739. 8014bae: 2300 movs r3, #0
  48740. 8014bb0: 2b00 cmp r3, #0
  48741. 8014bb2: d10b bne.n 8014bcc <xQueueGenericCreateStatic+0x78>
  48742. __asm volatile
  48743. 8014bb4: f04f 0350 mov.w r3, #80 @ 0x50
  48744. 8014bb8: f383 8811 msr BASEPRI, r3
  48745. 8014bbc: f3bf 8f6f isb sy
  48746. 8014bc0: f3bf 8f4f dsb sy
  48747. 8014bc4: 623b str r3, [r7, #32]
  48748. }
  48749. 8014bc6: bf00 nop
  48750. 8014bc8: bf00 nop
  48751. 8014bca: e7fd b.n 8014bc8 <xQueueGenericCreateStatic+0x74>
  48752. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  48753. 8014bcc: 687b ldr r3, [r7, #4]
  48754. 8014bce: 2b00 cmp r3, #0
  48755. 8014bd0: d102 bne.n 8014bd8 <xQueueGenericCreateStatic+0x84>
  48756. 8014bd2: 68bb ldr r3, [r7, #8]
  48757. 8014bd4: 2b00 cmp r3, #0
  48758. 8014bd6: d101 bne.n 8014bdc <xQueueGenericCreateStatic+0x88>
  48759. 8014bd8: 2301 movs r3, #1
  48760. 8014bda: e000 b.n 8014bde <xQueueGenericCreateStatic+0x8a>
  48761. 8014bdc: 2300 movs r3, #0
  48762. 8014bde: 2b00 cmp r3, #0
  48763. 8014be0: d10b bne.n 8014bfa <xQueueGenericCreateStatic+0xa6>
  48764. __asm volatile
  48765. 8014be2: f04f 0350 mov.w r3, #80 @ 0x50
  48766. 8014be6: f383 8811 msr BASEPRI, r3
  48767. 8014bea: f3bf 8f6f isb sy
  48768. 8014bee: f3bf 8f4f dsb sy
  48769. 8014bf2: 61fb str r3, [r7, #28]
  48770. }
  48771. 8014bf4: bf00 nop
  48772. 8014bf6: bf00 nop
  48773. 8014bf8: e7fd b.n 8014bf6 <xQueueGenericCreateStatic+0xa2>
  48774. #if( configASSERT_DEFINED == 1 )
  48775. {
  48776. /* Sanity check that the size of the structure used to declare a
  48777. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  48778. the real queue and semaphore structures. */
  48779. volatile size_t xSize = sizeof( StaticQueue_t );
  48780. 8014bfa: 2350 movs r3, #80 @ 0x50
  48781. 8014bfc: 617b str r3, [r7, #20]
  48782. configASSERT( xSize == sizeof( Queue_t ) );
  48783. 8014bfe: 697b ldr r3, [r7, #20]
  48784. 8014c00: 2b50 cmp r3, #80 @ 0x50
  48785. 8014c02: d00b beq.n 8014c1c <xQueueGenericCreateStatic+0xc8>
  48786. __asm volatile
  48787. 8014c04: f04f 0350 mov.w r3, #80 @ 0x50
  48788. 8014c08: f383 8811 msr BASEPRI, r3
  48789. 8014c0c: f3bf 8f6f isb sy
  48790. 8014c10: f3bf 8f4f dsb sy
  48791. 8014c14: 61bb str r3, [r7, #24]
  48792. }
  48793. 8014c16: bf00 nop
  48794. 8014c18: bf00 nop
  48795. 8014c1a: e7fd b.n 8014c18 <xQueueGenericCreateStatic+0xc4>
  48796. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  48797. 8014c1c: 697b ldr r3, [r7, #20]
  48798. #endif /* configASSERT_DEFINED */
  48799. /* The address of a statically allocated queue was passed in, use it.
  48800. The address of a statically allocated storage area was also passed in
  48801. but is already set. */
  48802. 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. */
  48803. 8014c1e: 683b ldr r3, [r7, #0]
  48804. 8014c20: 62fb str r3, [r7, #44] @ 0x2c
  48805. if( pxNewQueue != NULL )
  48806. 8014c22: 6afb ldr r3, [r7, #44] @ 0x2c
  48807. 8014c24: 2b00 cmp r3, #0
  48808. 8014c26: d00d beq.n 8014c44 <xQueueGenericCreateStatic+0xf0>
  48809. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48810. {
  48811. /* Queues can be allocated wither statically or dynamically, so
  48812. note this queue was allocated statically in case the queue is
  48813. later deleted. */
  48814. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  48815. 8014c28: 6afb ldr r3, [r7, #44] @ 0x2c
  48816. 8014c2a: 2201 movs r2, #1
  48817. 8014c2c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48818. }
  48819. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48820. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48821. 8014c30: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  48822. 8014c34: 6afb ldr r3, [r7, #44] @ 0x2c
  48823. 8014c36: 9300 str r3, [sp, #0]
  48824. 8014c38: 4613 mov r3, r2
  48825. 8014c3a: 687a ldr r2, [r7, #4]
  48826. 8014c3c: 68b9 ldr r1, [r7, #8]
  48827. 8014c3e: 68f8 ldr r0, [r7, #12]
  48828. 8014c40: f000 f840 bl 8014cc4 <prvInitialiseNewQueue>
  48829. {
  48830. traceQUEUE_CREATE_FAILED( ucQueueType );
  48831. mtCOVERAGE_TEST_MARKER();
  48832. }
  48833. return pxNewQueue;
  48834. 8014c44: 6afb ldr r3, [r7, #44] @ 0x2c
  48835. }
  48836. 8014c46: 4618 mov r0, r3
  48837. 8014c48: 3730 adds r7, #48 @ 0x30
  48838. 8014c4a: 46bd mov sp, r7
  48839. 8014c4c: bd80 pop {r7, pc}
  48840. 08014c4e <xQueueGenericCreate>:
  48841. /*-----------------------------------------------------------*/
  48842. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48843. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  48844. {
  48845. 8014c4e: b580 push {r7, lr}
  48846. 8014c50: b08a sub sp, #40 @ 0x28
  48847. 8014c52: af02 add r7, sp, #8
  48848. 8014c54: 60f8 str r0, [r7, #12]
  48849. 8014c56: 60b9 str r1, [r7, #8]
  48850. 8014c58: 4613 mov r3, r2
  48851. 8014c5a: 71fb strb r3, [r7, #7]
  48852. Queue_t *pxNewQueue;
  48853. size_t xQueueSizeInBytes;
  48854. uint8_t *pucQueueStorage;
  48855. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48856. 8014c5c: 68fb ldr r3, [r7, #12]
  48857. 8014c5e: 2b00 cmp r3, #0
  48858. 8014c60: d10b bne.n 8014c7a <xQueueGenericCreate+0x2c>
  48859. __asm volatile
  48860. 8014c62: f04f 0350 mov.w r3, #80 @ 0x50
  48861. 8014c66: f383 8811 msr BASEPRI, r3
  48862. 8014c6a: f3bf 8f6f isb sy
  48863. 8014c6e: f3bf 8f4f dsb sy
  48864. 8014c72: 613b str r3, [r7, #16]
  48865. }
  48866. 8014c74: bf00 nop
  48867. 8014c76: bf00 nop
  48868. 8014c78: e7fd b.n 8014c76 <xQueueGenericCreate+0x28>
  48869. /* Allocate enough space to hold the maximum number of items that
  48870. can be in the queue at any time. It is valid for uxItemSize to be
  48871. zero in the case the queue is used as a semaphore. */
  48872. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  48873. 8014c7a: 68fb ldr r3, [r7, #12]
  48874. 8014c7c: 68ba ldr r2, [r7, #8]
  48875. 8014c7e: fb02 f303 mul.w r3, r2, r3
  48876. 8014c82: 61fb str r3, [r7, #28]
  48877. alignment requirements of the Queue_t structure - which in this case
  48878. is an int8_t *. Therefore, whenever the stack alignment requirements
  48879. are greater than or equal to the pointer to char requirements the cast
  48880. is safe. In other cases alignment requirements are not strict (one or
  48881. two bytes). */
  48882. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  48883. 8014c84: 69fb ldr r3, [r7, #28]
  48884. 8014c86: 3350 adds r3, #80 @ 0x50
  48885. 8014c88: 4618 mov r0, r3
  48886. 8014c8a: f003 f997 bl 8017fbc <pvPortMalloc>
  48887. 8014c8e: 61b8 str r0, [r7, #24]
  48888. if( pxNewQueue != NULL )
  48889. 8014c90: 69bb ldr r3, [r7, #24]
  48890. 8014c92: 2b00 cmp r3, #0
  48891. 8014c94: d011 beq.n 8014cba <xQueueGenericCreate+0x6c>
  48892. {
  48893. /* Jump past the queue structure to find the location of the queue
  48894. storage area. */
  48895. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  48896. 8014c96: 69bb ldr r3, [r7, #24]
  48897. 8014c98: 617b str r3, [r7, #20]
  48898. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48899. 8014c9a: 697b ldr r3, [r7, #20]
  48900. 8014c9c: 3350 adds r3, #80 @ 0x50
  48901. 8014c9e: 617b str r3, [r7, #20]
  48902. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48903. {
  48904. /* Queues can be created either statically or dynamically, so
  48905. note this task was created dynamically in case it is later
  48906. deleted. */
  48907. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  48908. 8014ca0: 69bb ldr r3, [r7, #24]
  48909. 8014ca2: 2200 movs r2, #0
  48910. 8014ca4: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48911. }
  48912. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48913. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48914. 8014ca8: 79fa ldrb r2, [r7, #7]
  48915. 8014caa: 69bb ldr r3, [r7, #24]
  48916. 8014cac: 9300 str r3, [sp, #0]
  48917. 8014cae: 4613 mov r3, r2
  48918. 8014cb0: 697a ldr r2, [r7, #20]
  48919. 8014cb2: 68b9 ldr r1, [r7, #8]
  48920. 8014cb4: 68f8 ldr r0, [r7, #12]
  48921. 8014cb6: f000 f805 bl 8014cc4 <prvInitialiseNewQueue>
  48922. {
  48923. traceQUEUE_CREATE_FAILED( ucQueueType );
  48924. mtCOVERAGE_TEST_MARKER();
  48925. }
  48926. return pxNewQueue;
  48927. 8014cba: 69bb ldr r3, [r7, #24]
  48928. }
  48929. 8014cbc: 4618 mov r0, r3
  48930. 8014cbe: 3720 adds r7, #32
  48931. 8014cc0: 46bd mov sp, r7
  48932. 8014cc2: bd80 pop {r7, pc}
  48933. 08014cc4 <prvInitialiseNewQueue>:
  48934. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48935. /*-----------------------------------------------------------*/
  48936. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48937. {
  48938. 8014cc4: b580 push {r7, lr}
  48939. 8014cc6: b084 sub sp, #16
  48940. 8014cc8: af00 add r7, sp, #0
  48941. 8014cca: 60f8 str r0, [r7, #12]
  48942. 8014ccc: 60b9 str r1, [r7, #8]
  48943. 8014cce: 607a str r2, [r7, #4]
  48944. 8014cd0: 70fb strb r3, [r7, #3]
  48945. /* Remove compiler warnings about unused parameters should
  48946. configUSE_TRACE_FACILITY not be set to 1. */
  48947. ( void ) ucQueueType;
  48948. if( uxItemSize == ( UBaseType_t ) 0 )
  48949. 8014cd2: 68bb ldr r3, [r7, #8]
  48950. 8014cd4: 2b00 cmp r3, #0
  48951. 8014cd6: d103 bne.n 8014ce0 <prvInitialiseNewQueue+0x1c>
  48952. {
  48953. /* No RAM was allocated for the queue storage area, but PC head cannot
  48954. be set to NULL because NULL is used as a key to say the queue is used as
  48955. a mutex. Therefore just set pcHead to point to the queue as a benign
  48956. value that is known to be within the memory map. */
  48957. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48958. 8014cd8: 69bb ldr r3, [r7, #24]
  48959. 8014cda: 69ba ldr r2, [r7, #24]
  48960. 8014cdc: 601a str r2, [r3, #0]
  48961. 8014cde: e002 b.n 8014ce6 <prvInitialiseNewQueue+0x22>
  48962. }
  48963. else
  48964. {
  48965. /* Set the head to the start of the queue storage area. */
  48966. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48967. 8014ce0: 69bb ldr r3, [r7, #24]
  48968. 8014ce2: 687a ldr r2, [r7, #4]
  48969. 8014ce4: 601a str r2, [r3, #0]
  48970. }
  48971. /* Initialise the queue members as described where the queue type is
  48972. defined. */
  48973. pxNewQueue->uxLength = uxQueueLength;
  48974. 8014ce6: 69bb ldr r3, [r7, #24]
  48975. 8014ce8: 68fa ldr r2, [r7, #12]
  48976. 8014cea: 63da str r2, [r3, #60] @ 0x3c
  48977. pxNewQueue->uxItemSize = uxItemSize;
  48978. 8014cec: 69bb ldr r3, [r7, #24]
  48979. 8014cee: 68ba ldr r2, [r7, #8]
  48980. 8014cf0: 641a str r2, [r3, #64] @ 0x40
  48981. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48982. 8014cf2: 2101 movs r1, #1
  48983. 8014cf4: 69b8 ldr r0, [r7, #24]
  48984. 8014cf6: f7ff fec3 bl 8014a80 <xQueueGenericReset>
  48985. #if ( configUSE_TRACE_FACILITY == 1 )
  48986. {
  48987. pxNewQueue->ucQueueType = ucQueueType;
  48988. 8014cfa: 69bb ldr r3, [r7, #24]
  48989. 8014cfc: 78fa ldrb r2, [r7, #3]
  48990. 8014cfe: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48991. pxNewQueue->pxQueueSetContainer = NULL;
  48992. }
  48993. #endif /* configUSE_QUEUE_SETS */
  48994. traceQUEUE_CREATE( pxNewQueue );
  48995. }
  48996. 8014d02: bf00 nop
  48997. 8014d04: 3710 adds r7, #16
  48998. 8014d06: 46bd mov sp, r7
  48999. 8014d08: bd80 pop {r7, pc}
  49000. 08014d0a <prvInitialiseMutex>:
  49001. /*-----------------------------------------------------------*/
  49002. #if( configUSE_MUTEXES == 1 )
  49003. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  49004. {
  49005. 8014d0a: b580 push {r7, lr}
  49006. 8014d0c: b082 sub sp, #8
  49007. 8014d0e: af00 add r7, sp, #0
  49008. 8014d10: 6078 str r0, [r7, #4]
  49009. if( pxNewQueue != NULL )
  49010. 8014d12: 687b ldr r3, [r7, #4]
  49011. 8014d14: 2b00 cmp r3, #0
  49012. 8014d16: d00e beq.n 8014d36 <prvInitialiseMutex+0x2c>
  49013. {
  49014. /* The queue create function will set all the queue structure members
  49015. correctly for a generic queue, but this function is creating a
  49016. mutex. Overwrite those members that need to be set differently -
  49017. in particular the information required for priority inheritance. */
  49018. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  49019. 8014d18: 687b ldr r3, [r7, #4]
  49020. 8014d1a: 2200 movs r2, #0
  49021. 8014d1c: 609a str r2, [r3, #8]
  49022. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  49023. 8014d1e: 687b ldr r3, [r7, #4]
  49024. 8014d20: 2200 movs r2, #0
  49025. 8014d22: 601a str r2, [r3, #0]
  49026. /* In case this is a recursive mutex. */
  49027. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  49028. 8014d24: 687b ldr r3, [r7, #4]
  49029. 8014d26: 2200 movs r2, #0
  49030. 8014d28: 60da str r2, [r3, #12]
  49031. traceCREATE_MUTEX( pxNewQueue );
  49032. /* Start with the semaphore in the expected state. */
  49033. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  49034. 8014d2a: 2300 movs r3, #0
  49035. 8014d2c: 2200 movs r2, #0
  49036. 8014d2e: 2100 movs r1, #0
  49037. 8014d30: 6878 ldr r0, [r7, #4]
  49038. 8014d32: f000 f8a3 bl 8014e7c <xQueueGenericSend>
  49039. }
  49040. else
  49041. {
  49042. traceCREATE_MUTEX_FAILED();
  49043. }
  49044. }
  49045. 8014d36: bf00 nop
  49046. 8014d38: 3708 adds r7, #8
  49047. 8014d3a: 46bd mov sp, r7
  49048. 8014d3c: bd80 pop {r7, pc}
  49049. 08014d3e <xQueueCreateMutex>:
  49050. /*-----------------------------------------------------------*/
  49051. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  49052. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  49053. {
  49054. 8014d3e: b580 push {r7, lr}
  49055. 8014d40: b086 sub sp, #24
  49056. 8014d42: af00 add r7, sp, #0
  49057. 8014d44: 4603 mov r3, r0
  49058. 8014d46: 71fb strb r3, [r7, #7]
  49059. QueueHandle_t xNewQueue;
  49060. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49061. 8014d48: 2301 movs r3, #1
  49062. 8014d4a: 617b str r3, [r7, #20]
  49063. 8014d4c: 2300 movs r3, #0
  49064. 8014d4e: 613b str r3, [r7, #16]
  49065. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  49066. 8014d50: 79fb ldrb r3, [r7, #7]
  49067. 8014d52: 461a mov r2, r3
  49068. 8014d54: 6939 ldr r1, [r7, #16]
  49069. 8014d56: 6978 ldr r0, [r7, #20]
  49070. 8014d58: f7ff ff79 bl 8014c4e <xQueueGenericCreate>
  49071. 8014d5c: 60f8 str r0, [r7, #12]
  49072. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49073. 8014d5e: 68f8 ldr r0, [r7, #12]
  49074. 8014d60: f7ff ffd3 bl 8014d0a <prvInitialiseMutex>
  49075. return xNewQueue;
  49076. 8014d64: 68fb ldr r3, [r7, #12]
  49077. }
  49078. 8014d66: 4618 mov r0, r3
  49079. 8014d68: 3718 adds r7, #24
  49080. 8014d6a: 46bd mov sp, r7
  49081. 8014d6c: bd80 pop {r7, pc}
  49082. 08014d6e <xQueueCreateMutexStatic>:
  49083. /*-----------------------------------------------------------*/
  49084. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  49085. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  49086. {
  49087. 8014d6e: b580 push {r7, lr}
  49088. 8014d70: b088 sub sp, #32
  49089. 8014d72: af02 add r7, sp, #8
  49090. 8014d74: 4603 mov r3, r0
  49091. 8014d76: 6039 str r1, [r7, #0]
  49092. 8014d78: 71fb strb r3, [r7, #7]
  49093. QueueHandle_t xNewQueue;
  49094. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49095. 8014d7a: 2301 movs r3, #1
  49096. 8014d7c: 617b str r3, [r7, #20]
  49097. 8014d7e: 2300 movs r3, #0
  49098. 8014d80: 613b str r3, [r7, #16]
  49099. /* Prevent compiler warnings about unused parameters if
  49100. configUSE_TRACE_FACILITY does not equal 1. */
  49101. ( void ) ucQueueType;
  49102. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  49103. 8014d82: 79fb ldrb r3, [r7, #7]
  49104. 8014d84: 9300 str r3, [sp, #0]
  49105. 8014d86: 683b ldr r3, [r7, #0]
  49106. 8014d88: 2200 movs r2, #0
  49107. 8014d8a: 6939 ldr r1, [r7, #16]
  49108. 8014d8c: 6978 ldr r0, [r7, #20]
  49109. 8014d8e: f7ff fee1 bl 8014b54 <xQueueGenericCreateStatic>
  49110. 8014d92: 60f8 str r0, [r7, #12]
  49111. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49112. 8014d94: 68f8 ldr r0, [r7, #12]
  49113. 8014d96: f7ff ffb8 bl 8014d0a <prvInitialiseMutex>
  49114. return xNewQueue;
  49115. 8014d9a: 68fb ldr r3, [r7, #12]
  49116. }
  49117. 8014d9c: 4618 mov r0, r3
  49118. 8014d9e: 3718 adds r7, #24
  49119. 8014da0: 46bd mov sp, r7
  49120. 8014da2: bd80 pop {r7, pc}
  49121. 08014da4 <xQueueGiveMutexRecursive>:
  49122. /*-----------------------------------------------------------*/
  49123. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49124. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  49125. {
  49126. 8014da4: b590 push {r4, r7, lr}
  49127. 8014da6: b087 sub sp, #28
  49128. 8014da8: af00 add r7, sp, #0
  49129. 8014daa: 6078 str r0, [r7, #4]
  49130. BaseType_t xReturn;
  49131. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49132. 8014dac: 687b ldr r3, [r7, #4]
  49133. 8014dae: 613b str r3, [r7, #16]
  49134. configASSERT( pxMutex );
  49135. 8014db0: 693b ldr r3, [r7, #16]
  49136. 8014db2: 2b00 cmp r3, #0
  49137. 8014db4: d10b bne.n 8014dce <xQueueGiveMutexRecursive+0x2a>
  49138. __asm volatile
  49139. 8014db6: f04f 0350 mov.w r3, #80 @ 0x50
  49140. 8014dba: f383 8811 msr BASEPRI, r3
  49141. 8014dbe: f3bf 8f6f isb sy
  49142. 8014dc2: f3bf 8f4f dsb sy
  49143. 8014dc6: 60fb str r3, [r7, #12]
  49144. }
  49145. 8014dc8: bf00 nop
  49146. 8014dca: bf00 nop
  49147. 8014dcc: e7fd b.n 8014dca <xQueueGiveMutexRecursive+0x26>
  49148. change outside of this task. If this task does not hold the mutex then
  49149. pxMutexHolder can never coincidentally equal the tasks handle, and as
  49150. this is the only condition we are interested in it does not matter if
  49151. pxMutexHolder is accessed simultaneously by another task. Therefore no
  49152. mutual exclusion is required to test the pxMutexHolder variable. */
  49153. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49154. 8014dce: 693b ldr r3, [r7, #16]
  49155. 8014dd0: 689c ldr r4, [r3, #8]
  49156. 8014dd2: f001 fe39 bl 8016a48 <xTaskGetCurrentTaskHandle>
  49157. 8014dd6: 4603 mov r3, r0
  49158. 8014dd8: 429c cmp r4, r3
  49159. 8014dda: d111 bne.n 8014e00 <xQueueGiveMutexRecursive+0x5c>
  49160. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  49161. the task handle, therefore no underflow check is required. Also,
  49162. uxRecursiveCallCount is only modified by the mutex holder, and as
  49163. there can only be one, no mutual exclusion is required to modify the
  49164. uxRecursiveCallCount member. */
  49165. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  49166. 8014ddc: 693b ldr r3, [r7, #16]
  49167. 8014dde: 68db ldr r3, [r3, #12]
  49168. 8014de0: 1e5a subs r2, r3, #1
  49169. 8014de2: 693b ldr r3, [r7, #16]
  49170. 8014de4: 60da str r2, [r3, #12]
  49171. /* Has the recursive call count unwound to 0? */
  49172. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  49173. 8014de6: 693b ldr r3, [r7, #16]
  49174. 8014de8: 68db ldr r3, [r3, #12]
  49175. 8014dea: 2b00 cmp r3, #0
  49176. 8014dec: d105 bne.n 8014dfa <xQueueGiveMutexRecursive+0x56>
  49177. {
  49178. /* Return the mutex. This will automatically unblock any other
  49179. task that might be waiting to access the mutex. */
  49180. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  49181. 8014dee: 2300 movs r3, #0
  49182. 8014df0: 2200 movs r2, #0
  49183. 8014df2: 2100 movs r1, #0
  49184. 8014df4: 6938 ldr r0, [r7, #16]
  49185. 8014df6: f000 f841 bl 8014e7c <xQueueGenericSend>
  49186. else
  49187. {
  49188. mtCOVERAGE_TEST_MARKER();
  49189. }
  49190. xReturn = pdPASS;
  49191. 8014dfa: 2301 movs r3, #1
  49192. 8014dfc: 617b str r3, [r7, #20]
  49193. 8014dfe: e001 b.n 8014e04 <xQueueGiveMutexRecursive+0x60>
  49194. }
  49195. else
  49196. {
  49197. /* The mutex cannot be given because the calling task is not the
  49198. holder. */
  49199. xReturn = pdFAIL;
  49200. 8014e00: 2300 movs r3, #0
  49201. 8014e02: 617b str r3, [r7, #20]
  49202. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49203. }
  49204. return xReturn;
  49205. 8014e04: 697b ldr r3, [r7, #20]
  49206. }
  49207. 8014e06: 4618 mov r0, r3
  49208. 8014e08: 371c adds r7, #28
  49209. 8014e0a: 46bd mov sp, r7
  49210. 8014e0c: bd90 pop {r4, r7, pc}
  49211. 08014e0e <xQueueTakeMutexRecursive>:
  49212. /*-----------------------------------------------------------*/
  49213. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49214. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  49215. {
  49216. 8014e0e: b590 push {r4, r7, lr}
  49217. 8014e10: b087 sub sp, #28
  49218. 8014e12: af00 add r7, sp, #0
  49219. 8014e14: 6078 str r0, [r7, #4]
  49220. 8014e16: 6039 str r1, [r7, #0]
  49221. BaseType_t xReturn;
  49222. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49223. 8014e18: 687b ldr r3, [r7, #4]
  49224. 8014e1a: 613b str r3, [r7, #16]
  49225. configASSERT( pxMutex );
  49226. 8014e1c: 693b ldr r3, [r7, #16]
  49227. 8014e1e: 2b00 cmp r3, #0
  49228. 8014e20: d10b bne.n 8014e3a <xQueueTakeMutexRecursive+0x2c>
  49229. __asm volatile
  49230. 8014e22: f04f 0350 mov.w r3, #80 @ 0x50
  49231. 8014e26: f383 8811 msr BASEPRI, r3
  49232. 8014e2a: f3bf 8f6f isb sy
  49233. 8014e2e: f3bf 8f4f dsb sy
  49234. 8014e32: 60fb str r3, [r7, #12]
  49235. }
  49236. 8014e34: bf00 nop
  49237. 8014e36: bf00 nop
  49238. 8014e38: e7fd b.n 8014e36 <xQueueTakeMutexRecursive+0x28>
  49239. /* Comments regarding mutual exclusion as per those within
  49240. xQueueGiveMutexRecursive(). */
  49241. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  49242. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49243. 8014e3a: 693b ldr r3, [r7, #16]
  49244. 8014e3c: 689c ldr r4, [r3, #8]
  49245. 8014e3e: f001 fe03 bl 8016a48 <xTaskGetCurrentTaskHandle>
  49246. 8014e42: 4603 mov r3, r0
  49247. 8014e44: 429c cmp r4, r3
  49248. 8014e46: d107 bne.n 8014e58 <xQueueTakeMutexRecursive+0x4a>
  49249. {
  49250. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49251. 8014e48: 693b ldr r3, [r7, #16]
  49252. 8014e4a: 68db ldr r3, [r3, #12]
  49253. 8014e4c: 1c5a adds r2, r3, #1
  49254. 8014e4e: 693b ldr r3, [r7, #16]
  49255. 8014e50: 60da str r2, [r3, #12]
  49256. xReturn = pdPASS;
  49257. 8014e52: 2301 movs r3, #1
  49258. 8014e54: 617b str r3, [r7, #20]
  49259. 8014e56: e00c b.n 8014e72 <xQueueTakeMutexRecursive+0x64>
  49260. }
  49261. else
  49262. {
  49263. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  49264. 8014e58: 6839 ldr r1, [r7, #0]
  49265. 8014e5a: 6938 ldr r0, [r7, #16]
  49266. 8014e5c: f000 fa90 bl 8015380 <xQueueSemaphoreTake>
  49267. 8014e60: 6178 str r0, [r7, #20]
  49268. /* pdPASS will only be returned if the mutex was successfully
  49269. obtained. The calling task may have entered the Blocked state
  49270. before reaching here. */
  49271. if( xReturn != pdFAIL )
  49272. 8014e62: 697b ldr r3, [r7, #20]
  49273. 8014e64: 2b00 cmp r3, #0
  49274. 8014e66: d004 beq.n 8014e72 <xQueueTakeMutexRecursive+0x64>
  49275. {
  49276. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49277. 8014e68: 693b ldr r3, [r7, #16]
  49278. 8014e6a: 68db ldr r3, [r3, #12]
  49279. 8014e6c: 1c5a adds r2, r3, #1
  49280. 8014e6e: 693b ldr r3, [r7, #16]
  49281. 8014e70: 60da str r2, [r3, #12]
  49282. {
  49283. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49284. }
  49285. }
  49286. return xReturn;
  49287. 8014e72: 697b ldr r3, [r7, #20]
  49288. }
  49289. 8014e74: 4618 mov r0, r3
  49290. 8014e76: 371c adds r7, #28
  49291. 8014e78: 46bd mov sp, r7
  49292. 8014e7a: bd90 pop {r4, r7, pc}
  49293. 08014e7c <xQueueGenericSend>:
  49294. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  49295. /*-----------------------------------------------------------*/
  49296. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  49297. {
  49298. 8014e7c: b580 push {r7, lr}
  49299. 8014e7e: b08e sub sp, #56 @ 0x38
  49300. 8014e80: af00 add r7, sp, #0
  49301. 8014e82: 60f8 str r0, [r7, #12]
  49302. 8014e84: 60b9 str r1, [r7, #8]
  49303. 8014e86: 607a str r2, [r7, #4]
  49304. 8014e88: 603b str r3, [r7, #0]
  49305. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  49306. 8014e8a: 2300 movs r3, #0
  49307. 8014e8c: 637b str r3, [r7, #52] @ 0x34
  49308. TimeOut_t xTimeOut;
  49309. Queue_t * const pxQueue = xQueue;
  49310. 8014e8e: 68fb ldr r3, [r7, #12]
  49311. 8014e90: 633b str r3, [r7, #48] @ 0x30
  49312. configASSERT( pxQueue );
  49313. 8014e92: 6b3b ldr r3, [r7, #48] @ 0x30
  49314. 8014e94: 2b00 cmp r3, #0
  49315. 8014e96: d10b bne.n 8014eb0 <xQueueGenericSend+0x34>
  49316. __asm volatile
  49317. 8014e98: f04f 0350 mov.w r3, #80 @ 0x50
  49318. 8014e9c: f383 8811 msr BASEPRI, r3
  49319. 8014ea0: f3bf 8f6f isb sy
  49320. 8014ea4: f3bf 8f4f dsb sy
  49321. 8014ea8: 62bb str r3, [r7, #40] @ 0x28
  49322. }
  49323. 8014eaa: bf00 nop
  49324. 8014eac: bf00 nop
  49325. 8014eae: e7fd b.n 8014eac <xQueueGenericSend+0x30>
  49326. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49327. 8014eb0: 68bb ldr r3, [r7, #8]
  49328. 8014eb2: 2b00 cmp r3, #0
  49329. 8014eb4: d103 bne.n 8014ebe <xQueueGenericSend+0x42>
  49330. 8014eb6: 6b3b ldr r3, [r7, #48] @ 0x30
  49331. 8014eb8: 6c1b ldr r3, [r3, #64] @ 0x40
  49332. 8014eba: 2b00 cmp r3, #0
  49333. 8014ebc: d101 bne.n 8014ec2 <xQueueGenericSend+0x46>
  49334. 8014ebe: 2301 movs r3, #1
  49335. 8014ec0: e000 b.n 8014ec4 <xQueueGenericSend+0x48>
  49336. 8014ec2: 2300 movs r3, #0
  49337. 8014ec4: 2b00 cmp r3, #0
  49338. 8014ec6: d10b bne.n 8014ee0 <xQueueGenericSend+0x64>
  49339. __asm volatile
  49340. 8014ec8: f04f 0350 mov.w r3, #80 @ 0x50
  49341. 8014ecc: f383 8811 msr BASEPRI, r3
  49342. 8014ed0: f3bf 8f6f isb sy
  49343. 8014ed4: f3bf 8f4f dsb sy
  49344. 8014ed8: 627b str r3, [r7, #36] @ 0x24
  49345. }
  49346. 8014eda: bf00 nop
  49347. 8014edc: bf00 nop
  49348. 8014ede: e7fd b.n 8014edc <xQueueGenericSend+0x60>
  49349. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49350. 8014ee0: 683b ldr r3, [r7, #0]
  49351. 8014ee2: 2b02 cmp r3, #2
  49352. 8014ee4: d103 bne.n 8014eee <xQueueGenericSend+0x72>
  49353. 8014ee6: 6b3b ldr r3, [r7, #48] @ 0x30
  49354. 8014ee8: 6bdb ldr r3, [r3, #60] @ 0x3c
  49355. 8014eea: 2b01 cmp r3, #1
  49356. 8014eec: d101 bne.n 8014ef2 <xQueueGenericSend+0x76>
  49357. 8014eee: 2301 movs r3, #1
  49358. 8014ef0: e000 b.n 8014ef4 <xQueueGenericSend+0x78>
  49359. 8014ef2: 2300 movs r3, #0
  49360. 8014ef4: 2b00 cmp r3, #0
  49361. 8014ef6: d10b bne.n 8014f10 <xQueueGenericSend+0x94>
  49362. __asm volatile
  49363. 8014ef8: f04f 0350 mov.w r3, #80 @ 0x50
  49364. 8014efc: f383 8811 msr BASEPRI, r3
  49365. 8014f00: f3bf 8f6f isb sy
  49366. 8014f04: f3bf 8f4f dsb sy
  49367. 8014f08: 623b str r3, [r7, #32]
  49368. }
  49369. 8014f0a: bf00 nop
  49370. 8014f0c: bf00 nop
  49371. 8014f0e: e7fd b.n 8014f0c <xQueueGenericSend+0x90>
  49372. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49373. {
  49374. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49375. 8014f10: f001 fdaa bl 8016a68 <xTaskGetSchedulerState>
  49376. 8014f14: 4603 mov r3, r0
  49377. 8014f16: 2b00 cmp r3, #0
  49378. 8014f18: d102 bne.n 8014f20 <xQueueGenericSend+0xa4>
  49379. 8014f1a: 687b ldr r3, [r7, #4]
  49380. 8014f1c: 2b00 cmp r3, #0
  49381. 8014f1e: d101 bne.n 8014f24 <xQueueGenericSend+0xa8>
  49382. 8014f20: 2301 movs r3, #1
  49383. 8014f22: e000 b.n 8014f26 <xQueueGenericSend+0xaa>
  49384. 8014f24: 2300 movs r3, #0
  49385. 8014f26: 2b00 cmp r3, #0
  49386. 8014f28: d10b bne.n 8014f42 <xQueueGenericSend+0xc6>
  49387. __asm volatile
  49388. 8014f2a: f04f 0350 mov.w r3, #80 @ 0x50
  49389. 8014f2e: f383 8811 msr BASEPRI, r3
  49390. 8014f32: f3bf 8f6f isb sy
  49391. 8014f36: f3bf 8f4f dsb sy
  49392. 8014f3a: 61fb str r3, [r7, #28]
  49393. }
  49394. 8014f3c: bf00 nop
  49395. 8014f3e: bf00 nop
  49396. 8014f40: e7fd b.n 8014f3e <xQueueGenericSend+0xc2>
  49397. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49398. allow return statements within the function itself. This is done in the
  49399. interest of execution time efficiency. */
  49400. for( ;; )
  49401. {
  49402. taskENTER_CRITICAL();
  49403. 8014f42: f002 ff19 bl 8017d78 <vPortEnterCritical>
  49404. {
  49405. /* Is there room on the queue now? The running task must be the
  49406. highest priority task wanting to access the queue. If the head item
  49407. in the queue is to be overwritten then it does not matter if the
  49408. queue is full. */
  49409. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49410. 8014f46: 6b3b ldr r3, [r7, #48] @ 0x30
  49411. 8014f48: 6b9a ldr r2, [r3, #56] @ 0x38
  49412. 8014f4a: 6b3b ldr r3, [r7, #48] @ 0x30
  49413. 8014f4c: 6bdb ldr r3, [r3, #60] @ 0x3c
  49414. 8014f4e: 429a cmp r2, r3
  49415. 8014f50: d302 bcc.n 8014f58 <xQueueGenericSend+0xdc>
  49416. 8014f52: 683b ldr r3, [r7, #0]
  49417. 8014f54: 2b02 cmp r3, #2
  49418. 8014f56: d129 bne.n 8014fac <xQueueGenericSend+0x130>
  49419. }
  49420. }
  49421. }
  49422. #else /* configUSE_QUEUE_SETS */
  49423. {
  49424. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49425. 8014f58: 683a ldr r2, [r7, #0]
  49426. 8014f5a: 68b9 ldr r1, [r7, #8]
  49427. 8014f5c: 6b38 ldr r0, [r7, #48] @ 0x30
  49428. 8014f5e: f000 fbb9 bl 80156d4 <prvCopyDataToQueue>
  49429. 8014f62: 62f8 str r0, [r7, #44] @ 0x2c
  49430. /* If there was a task waiting for data to arrive on the
  49431. queue then unblock it now. */
  49432. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49433. 8014f64: 6b3b ldr r3, [r7, #48] @ 0x30
  49434. 8014f66: 6a5b ldr r3, [r3, #36] @ 0x24
  49435. 8014f68: 2b00 cmp r3, #0
  49436. 8014f6a: d010 beq.n 8014f8e <xQueueGenericSend+0x112>
  49437. {
  49438. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49439. 8014f6c: 6b3b ldr r3, [r7, #48] @ 0x30
  49440. 8014f6e: 3324 adds r3, #36 @ 0x24
  49441. 8014f70: 4618 mov r0, r3
  49442. 8014f72: f001 fb7b bl 801666c <xTaskRemoveFromEventList>
  49443. 8014f76: 4603 mov r3, r0
  49444. 8014f78: 2b00 cmp r3, #0
  49445. 8014f7a: d013 beq.n 8014fa4 <xQueueGenericSend+0x128>
  49446. {
  49447. /* The unblocked task has a priority higher than
  49448. our own so yield immediately. Yes it is ok to do
  49449. this from within the critical section - the kernel
  49450. takes care of that. */
  49451. queueYIELD_IF_USING_PREEMPTION();
  49452. 8014f7c: 4b3f ldr r3, [pc, #252] @ (801507c <xQueueGenericSend+0x200>)
  49453. 8014f7e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49454. 8014f82: 601a str r2, [r3, #0]
  49455. 8014f84: f3bf 8f4f dsb sy
  49456. 8014f88: f3bf 8f6f isb sy
  49457. 8014f8c: e00a b.n 8014fa4 <xQueueGenericSend+0x128>
  49458. else
  49459. {
  49460. mtCOVERAGE_TEST_MARKER();
  49461. }
  49462. }
  49463. else if( xYieldRequired != pdFALSE )
  49464. 8014f8e: 6afb ldr r3, [r7, #44] @ 0x2c
  49465. 8014f90: 2b00 cmp r3, #0
  49466. 8014f92: d007 beq.n 8014fa4 <xQueueGenericSend+0x128>
  49467. {
  49468. /* This path is a special case that will only get
  49469. executed if the task was holding multiple mutexes and
  49470. the mutexes were given back in an order that is
  49471. different to that in which they were taken. */
  49472. queueYIELD_IF_USING_PREEMPTION();
  49473. 8014f94: 4b39 ldr r3, [pc, #228] @ (801507c <xQueueGenericSend+0x200>)
  49474. 8014f96: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49475. 8014f9a: 601a str r2, [r3, #0]
  49476. 8014f9c: f3bf 8f4f dsb sy
  49477. 8014fa0: f3bf 8f6f isb sy
  49478. mtCOVERAGE_TEST_MARKER();
  49479. }
  49480. }
  49481. #endif /* configUSE_QUEUE_SETS */
  49482. taskEXIT_CRITICAL();
  49483. 8014fa4: f002 ff1a bl 8017ddc <vPortExitCritical>
  49484. return pdPASS;
  49485. 8014fa8: 2301 movs r3, #1
  49486. 8014faa: e063 b.n 8015074 <xQueueGenericSend+0x1f8>
  49487. }
  49488. else
  49489. {
  49490. if( xTicksToWait == ( TickType_t ) 0 )
  49491. 8014fac: 687b ldr r3, [r7, #4]
  49492. 8014fae: 2b00 cmp r3, #0
  49493. 8014fb0: d103 bne.n 8014fba <xQueueGenericSend+0x13e>
  49494. {
  49495. /* The queue was full and no block time is specified (or
  49496. the block time has expired) so leave now. */
  49497. taskEXIT_CRITICAL();
  49498. 8014fb2: f002 ff13 bl 8017ddc <vPortExitCritical>
  49499. /* Return to the original privilege level before exiting
  49500. the function. */
  49501. traceQUEUE_SEND_FAILED( pxQueue );
  49502. return errQUEUE_FULL;
  49503. 8014fb6: 2300 movs r3, #0
  49504. 8014fb8: e05c b.n 8015074 <xQueueGenericSend+0x1f8>
  49505. }
  49506. else if( xEntryTimeSet == pdFALSE )
  49507. 8014fba: 6b7b ldr r3, [r7, #52] @ 0x34
  49508. 8014fbc: 2b00 cmp r3, #0
  49509. 8014fbe: d106 bne.n 8014fce <xQueueGenericSend+0x152>
  49510. {
  49511. /* The queue was full and a block time was specified so
  49512. configure the timeout structure. */
  49513. vTaskInternalSetTimeOutState( &xTimeOut );
  49514. 8014fc0: f107 0314 add.w r3, r7, #20
  49515. 8014fc4: 4618 mov r0, r3
  49516. 8014fc6: f001 fbdd bl 8016784 <vTaskInternalSetTimeOutState>
  49517. xEntryTimeSet = pdTRUE;
  49518. 8014fca: 2301 movs r3, #1
  49519. 8014fcc: 637b str r3, [r7, #52] @ 0x34
  49520. /* Entry time was already set. */
  49521. mtCOVERAGE_TEST_MARKER();
  49522. }
  49523. }
  49524. }
  49525. taskEXIT_CRITICAL();
  49526. 8014fce: f002 ff05 bl 8017ddc <vPortExitCritical>
  49527. /* Interrupts and other tasks can send to and receive from the queue
  49528. now the critical section has been exited. */
  49529. vTaskSuspendAll();
  49530. 8014fd2: f001 f90f bl 80161f4 <vTaskSuspendAll>
  49531. prvLockQueue( pxQueue );
  49532. 8014fd6: f002 fecf bl 8017d78 <vPortEnterCritical>
  49533. 8014fda: 6b3b ldr r3, [r7, #48] @ 0x30
  49534. 8014fdc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49535. 8014fe0: b25b sxtb r3, r3
  49536. 8014fe2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49537. 8014fe6: d103 bne.n 8014ff0 <xQueueGenericSend+0x174>
  49538. 8014fe8: 6b3b ldr r3, [r7, #48] @ 0x30
  49539. 8014fea: 2200 movs r2, #0
  49540. 8014fec: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49541. 8014ff0: 6b3b ldr r3, [r7, #48] @ 0x30
  49542. 8014ff2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49543. 8014ff6: b25b sxtb r3, r3
  49544. 8014ff8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49545. 8014ffc: d103 bne.n 8015006 <xQueueGenericSend+0x18a>
  49546. 8014ffe: 6b3b ldr r3, [r7, #48] @ 0x30
  49547. 8015000: 2200 movs r2, #0
  49548. 8015002: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49549. 8015006: f002 fee9 bl 8017ddc <vPortExitCritical>
  49550. /* Update the timeout state to see if it has expired yet. */
  49551. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49552. 801500a: 1d3a adds r2, r7, #4
  49553. 801500c: f107 0314 add.w r3, r7, #20
  49554. 8015010: 4611 mov r1, r2
  49555. 8015012: 4618 mov r0, r3
  49556. 8015014: f001 fbcc bl 80167b0 <xTaskCheckForTimeOut>
  49557. 8015018: 4603 mov r3, r0
  49558. 801501a: 2b00 cmp r3, #0
  49559. 801501c: d124 bne.n 8015068 <xQueueGenericSend+0x1ec>
  49560. {
  49561. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  49562. 801501e: 6b38 ldr r0, [r7, #48] @ 0x30
  49563. 8015020: f000 fc50 bl 80158c4 <prvIsQueueFull>
  49564. 8015024: 4603 mov r3, r0
  49565. 8015026: 2b00 cmp r3, #0
  49566. 8015028: d018 beq.n 801505c <xQueueGenericSend+0x1e0>
  49567. {
  49568. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  49569. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  49570. 801502a: 6b3b ldr r3, [r7, #48] @ 0x30
  49571. 801502c: 3310 adds r3, #16
  49572. 801502e: 687a ldr r2, [r7, #4]
  49573. 8015030: 4611 mov r1, r2
  49574. 8015032: 4618 mov r0, r3
  49575. 8015034: f001 fac8 bl 80165c8 <vTaskPlaceOnEventList>
  49576. /* Unlocking the queue means queue events can effect the
  49577. event list. It is possible that interrupts occurring now
  49578. remove this task from the event list again - but as the
  49579. scheduler is suspended the task will go onto the pending
  49580. ready last instead of the actual ready list. */
  49581. prvUnlockQueue( pxQueue );
  49582. 8015038: 6b38 ldr r0, [r7, #48] @ 0x30
  49583. 801503a: f000 fbdb bl 80157f4 <prvUnlockQueue>
  49584. /* Resuming the scheduler will move tasks from the pending
  49585. ready list into the ready list - so it is feasible that this
  49586. task is already in a ready list before it yields - in which
  49587. case the yield will not cause a context switch unless there
  49588. is also a higher priority task in the pending ready list. */
  49589. if( xTaskResumeAll() == pdFALSE )
  49590. 801503e: f001 f8e7 bl 8016210 <xTaskResumeAll>
  49591. 8015042: 4603 mov r3, r0
  49592. 8015044: 2b00 cmp r3, #0
  49593. 8015046: f47f af7c bne.w 8014f42 <xQueueGenericSend+0xc6>
  49594. {
  49595. portYIELD_WITHIN_API();
  49596. 801504a: 4b0c ldr r3, [pc, #48] @ (801507c <xQueueGenericSend+0x200>)
  49597. 801504c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49598. 8015050: 601a str r2, [r3, #0]
  49599. 8015052: f3bf 8f4f dsb sy
  49600. 8015056: f3bf 8f6f isb sy
  49601. 801505a: e772 b.n 8014f42 <xQueueGenericSend+0xc6>
  49602. }
  49603. }
  49604. else
  49605. {
  49606. /* Try again. */
  49607. prvUnlockQueue( pxQueue );
  49608. 801505c: 6b38 ldr r0, [r7, #48] @ 0x30
  49609. 801505e: f000 fbc9 bl 80157f4 <prvUnlockQueue>
  49610. ( void ) xTaskResumeAll();
  49611. 8015062: f001 f8d5 bl 8016210 <xTaskResumeAll>
  49612. 8015066: e76c b.n 8014f42 <xQueueGenericSend+0xc6>
  49613. }
  49614. }
  49615. else
  49616. {
  49617. /* The timeout has expired. */
  49618. prvUnlockQueue( pxQueue );
  49619. 8015068: 6b38 ldr r0, [r7, #48] @ 0x30
  49620. 801506a: f000 fbc3 bl 80157f4 <prvUnlockQueue>
  49621. ( void ) xTaskResumeAll();
  49622. 801506e: f001 f8cf bl 8016210 <xTaskResumeAll>
  49623. traceQUEUE_SEND_FAILED( pxQueue );
  49624. return errQUEUE_FULL;
  49625. 8015072: 2300 movs r3, #0
  49626. }
  49627. } /*lint -restore */
  49628. }
  49629. 8015074: 4618 mov r0, r3
  49630. 8015076: 3738 adds r7, #56 @ 0x38
  49631. 8015078: 46bd mov sp, r7
  49632. 801507a: bd80 pop {r7, pc}
  49633. 801507c: e000ed04 .word 0xe000ed04
  49634. 08015080 <xQueueGenericSendFromISR>:
  49635. /*-----------------------------------------------------------*/
  49636. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  49637. {
  49638. 8015080: b580 push {r7, lr}
  49639. 8015082: b090 sub sp, #64 @ 0x40
  49640. 8015084: af00 add r7, sp, #0
  49641. 8015086: 60f8 str r0, [r7, #12]
  49642. 8015088: 60b9 str r1, [r7, #8]
  49643. 801508a: 607a str r2, [r7, #4]
  49644. 801508c: 603b str r3, [r7, #0]
  49645. BaseType_t xReturn;
  49646. UBaseType_t uxSavedInterruptStatus;
  49647. Queue_t * const pxQueue = xQueue;
  49648. 801508e: 68fb ldr r3, [r7, #12]
  49649. 8015090: 63bb str r3, [r7, #56] @ 0x38
  49650. configASSERT( pxQueue );
  49651. 8015092: 6bbb ldr r3, [r7, #56] @ 0x38
  49652. 8015094: 2b00 cmp r3, #0
  49653. 8015096: d10b bne.n 80150b0 <xQueueGenericSendFromISR+0x30>
  49654. __asm volatile
  49655. 8015098: f04f 0350 mov.w r3, #80 @ 0x50
  49656. 801509c: f383 8811 msr BASEPRI, r3
  49657. 80150a0: f3bf 8f6f isb sy
  49658. 80150a4: f3bf 8f4f dsb sy
  49659. 80150a8: 62bb str r3, [r7, #40] @ 0x28
  49660. }
  49661. 80150aa: bf00 nop
  49662. 80150ac: bf00 nop
  49663. 80150ae: e7fd b.n 80150ac <xQueueGenericSendFromISR+0x2c>
  49664. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49665. 80150b0: 68bb ldr r3, [r7, #8]
  49666. 80150b2: 2b00 cmp r3, #0
  49667. 80150b4: d103 bne.n 80150be <xQueueGenericSendFromISR+0x3e>
  49668. 80150b6: 6bbb ldr r3, [r7, #56] @ 0x38
  49669. 80150b8: 6c1b ldr r3, [r3, #64] @ 0x40
  49670. 80150ba: 2b00 cmp r3, #0
  49671. 80150bc: d101 bne.n 80150c2 <xQueueGenericSendFromISR+0x42>
  49672. 80150be: 2301 movs r3, #1
  49673. 80150c0: e000 b.n 80150c4 <xQueueGenericSendFromISR+0x44>
  49674. 80150c2: 2300 movs r3, #0
  49675. 80150c4: 2b00 cmp r3, #0
  49676. 80150c6: d10b bne.n 80150e0 <xQueueGenericSendFromISR+0x60>
  49677. __asm volatile
  49678. 80150c8: f04f 0350 mov.w r3, #80 @ 0x50
  49679. 80150cc: f383 8811 msr BASEPRI, r3
  49680. 80150d0: f3bf 8f6f isb sy
  49681. 80150d4: f3bf 8f4f dsb sy
  49682. 80150d8: 627b str r3, [r7, #36] @ 0x24
  49683. }
  49684. 80150da: bf00 nop
  49685. 80150dc: bf00 nop
  49686. 80150de: e7fd b.n 80150dc <xQueueGenericSendFromISR+0x5c>
  49687. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49688. 80150e0: 683b ldr r3, [r7, #0]
  49689. 80150e2: 2b02 cmp r3, #2
  49690. 80150e4: d103 bne.n 80150ee <xQueueGenericSendFromISR+0x6e>
  49691. 80150e6: 6bbb ldr r3, [r7, #56] @ 0x38
  49692. 80150e8: 6bdb ldr r3, [r3, #60] @ 0x3c
  49693. 80150ea: 2b01 cmp r3, #1
  49694. 80150ec: d101 bne.n 80150f2 <xQueueGenericSendFromISR+0x72>
  49695. 80150ee: 2301 movs r3, #1
  49696. 80150f0: e000 b.n 80150f4 <xQueueGenericSendFromISR+0x74>
  49697. 80150f2: 2300 movs r3, #0
  49698. 80150f4: 2b00 cmp r3, #0
  49699. 80150f6: d10b bne.n 8015110 <xQueueGenericSendFromISR+0x90>
  49700. __asm volatile
  49701. 80150f8: f04f 0350 mov.w r3, #80 @ 0x50
  49702. 80150fc: f383 8811 msr BASEPRI, r3
  49703. 8015100: f3bf 8f6f isb sy
  49704. 8015104: f3bf 8f4f dsb sy
  49705. 8015108: 623b str r3, [r7, #32]
  49706. }
  49707. 801510a: bf00 nop
  49708. 801510c: bf00 nop
  49709. 801510e: e7fd b.n 801510c <xQueueGenericSendFromISR+0x8c>
  49710. that have been assigned a priority at or (logically) below the maximum
  49711. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49712. safe API to ensure interrupt entry is as fast and as simple as possible.
  49713. More information (albeit Cortex-M specific) is provided on the following
  49714. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49715. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49716. 8015110: f002 ff12 bl 8017f38 <vPortValidateInterruptPriority>
  49717. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  49718. {
  49719. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  49720. __asm volatile
  49721. 8015114: f3ef 8211 mrs r2, BASEPRI
  49722. 8015118: f04f 0350 mov.w r3, #80 @ 0x50
  49723. 801511c: f383 8811 msr BASEPRI, r3
  49724. 8015120: f3bf 8f6f isb sy
  49725. 8015124: f3bf 8f4f dsb sy
  49726. 8015128: 61fa str r2, [r7, #28]
  49727. 801512a: 61bb str r3, [r7, #24]
  49728. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  49729. );
  49730. /* This return will not be reached but is necessary to prevent compiler
  49731. warnings. */
  49732. return ulOriginalBASEPRI;
  49733. 801512c: 69fb ldr r3, [r7, #28]
  49734. /* Similar to xQueueGenericSend, except without blocking if there is no room
  49735. in the queue. Also don't directly wake a task that was blocked on a queue
  49736. read, instead return a flag to say whether a context switch is required or
  49737. not (i.e. has a task with a higher priority than us been woken by this
  49738. post). */
  49739. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49740. 801512e: 637b str r3, [r7, #52] @ 0x34
  49741. {
  49742. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49743. 8015130: 6bbb ldr r3, [r7, #56] @ 0x38
  49744. 8015132: 6b9a ldr r2, [r3, #56] @ 0x38
  49745. 8015134: 6bbb ldr r3, [r7, #56] @ 0x38
  49746. 8015136: 6bdb ldr r3, [r3, #60] @ 0x3c
  49747. 8015138: 429a cmp r2, r3
  49748. 801513a: d302 bcc.n 8015142 <xQueueGenericSendFromISR+0xc2>
  49749. 801513c: 683b ldr r3, [r7, #0]
  49750. 801513e: 2b02 cmp r3, #2
  49751. 8015140: d12f bne.n 80151a2 <xQueueGenericSendFromISR+0x122>
  49752. {
  49753. const int8_t cTxLock = pxQueue->cTxLock;
  49754. 8015142: 6bbb ldr r3, [r7, #56] @ 0x38
  49755. 8015144: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49756. 8015148: f887 3033 strb.w r3, [r7, #51] @ 0x33
  49757. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  49758. 801514c: 6bbb ldr r3, [r7, #56] @ 0x38
  49759. 801514e: 6b9b ldr r3, [r3, #56] @ 0x38
  49760. 8015150: 62fb str r3, [r7, #44] @ 0x2c
  49761. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  49762. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  49763. in a task disinheriting a priority and prvCopyDataToQueue() can be
  49764. called here even though the disinherit function does not check if
  49765. the scheduler is suspended before accessing the ready lists. */
  49766. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49767. 8015152: 683a ldr r2, [r7, #0]
  49768. 8015154: 68b9 ldr r1, [r7, #8]
  49769. 8015156: 6bb8 ldr r0, [r7, #56] @ 0x38
  49770. 8015158: f000 fabc bl 80156d4 <prvCopyDataToQueue>
  49771. /* The event list is not altered if the queue is locked. This will
  49772. be done when the queue is unlocked later. */
  49773. if( cTxLock == queueUNLOCKED )
  49774. 801515c: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  49775. 8015160: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49776. 8015164: d112 bne.n 801518c <xQueueGenericSendFromISR+0x10c>
  49777. }
  49778. }
  49779. }
  49780. #else /* configUSE_QUEUE_SETS */
  49781. {
  49782. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49783. 8015166: 6bbb ldr r3, [r7, #56] @ 0x38
  49784. 8015168: 6a5b ldr r3, [r3, #36] @ 0x24
  49785. 801516a: 2b00 cmp r3, #0
  49786. 801516c: d016 beq.n 801519c <xQueueGenericSendFromISR+0x11c>
  49787. {
  49788. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49789. 801516e: 6bbb ldr r3, [r7, #56] @ 0x38
  49790. 8015170: 3324 adds r3, #36 @ 0x24
  49791. 8015172: 4618 mov r0, r3
  49792. 8015174: f001 fa7a bl 801666c <xTaskRemoveFromEventList>
  49793. 8015178: 4603 mov r3, r0
  49794. 801517a: 2b00 cmp r3, #0
  49795. 801517c: d00e beq.n 801519c <xQueueGenericSendFromISR+0x11c>
  49796. {
  49797. /* The task waiting has a higher priority so record that a
  49798. context switch is required. */
  49799. if( pxHigherPriorityTaskWoken != NULL )
  49800. 801517e: 687b ldr r3, [r7, #4]
  49801. 8015180: 2b00 cmp r3, #0
  49802. 8015182: d00b beq.n 801519c <xQueueGenericSendFromISR+0x11c>
  49803. {
  49804. *pxHigherPriorityTaskWoken = pdTRUE;
  49805. 8015184: 687b ldr r3, [r7, #4]
  49806. 8015186: 2201 movs r2, #1
  49807. 8015188: 601a str r2, [r3, #0]
  49808. 801518a: e007 b.n 801519c <xQueueGenericSendFromISR+0x11c>
  49809. }
  49810. else
  49811. {
  49812. /* Increment the lock count so the task that unlocks the queue
  49813. knows that data was posted while it was locked. */
  49814. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  49815. 801518c: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  49816. 8015190: 3301 adds r3, #1
  49817. 8015192: b2db uxtb r3, r3
  49818. 8015194: b25a sxtb r2, r3
  49819. 8015196: 6bbb ldr r3, [r7, #56] @ 0x38
  49820. 8015198: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49821. }
  49822. xReturn = pdPASS;
  49823. 801519c: 2301 movs r3, #1
  49824. 801519e: 63fb str r3, [r7, #60] @ 0x3c
  49825. {
  49826. 80151a0: e001 b.n 80151a6 <xQueueGenericSendFromISR+0x126>
  49827. }
  49828. else
  49829. {
  49830. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  49831. xReturn = errQUEUE_FULL;
  49832. 80151a2: 2300 movs r3, #0
  49833. 80151a4: 63fb str r3, [r7, #60] @ 0x3c
  49834. 80151a6: 6b7b ldr r3, [r7, #52] @ 0x34
  49835. 80151a8: 617b str r3, [r7, #20]
  49836. }
  49837. /*-----------------------------------------------------------*/
  49838. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  49839. {
  49840. __asm volatile
  49841. 80151aa: 697b ldr r3, [r7, #20]
  49842. 80151ac: f383 8811 msr BASEPRI, r3
  49843. (
  49844. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  49845. );
  49846. }
  49847. 80151b0: bf00 nop
  49848. }
  49849. }
  49850. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49851. return xReturn;
  49852. 80151b2: 6bfb ldr r3, [r7, #60] @ 0x3c
  49853. }
  49854. 80151b4: 4618 mov r0, r3
  49855. 80151b6: 3740 adds r7, #64 @ 0x40
  49856. 80151b8: 46bd mov sp, r7
  49857. 80151ba: bd80 pop {r7, pc}
  49858. 080151bc <xQueueReceive>:
  49859. return xReturn;
  49860. }
  49861. /*-----------------------------------------------------------*/
  49862. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  49863. {
  49864. 80151bc: b580 push {r7, lr}
  49865. 80151be: b08c sub sp, #48 @ 0x30
  49866. 80151c0: af00 add r7, sp, #0
  49867. 80151c2: 60f8 str r0, [r7, #12]
  49868. 80151c4: 60b9 str r1, [r7, #8]
  49869. 80151c6: 607a str r2, [r7, #4]
  49870. BaseType_t xEntryTimeSet = pdFALSE;
  49871. 80151c8: 2300 movs r3, #0
  49872. 80151ca: 62fb str r3, [r7, #44] @ 0x2c
  49873. TimeOut_t xTimeOut;
  49874. Queue_t * const pxQueue = xQueue;
  49875. 80151cc: 68fb ldr r3, [r7, #12]
  49876. 80151ce: 62bb str r3, [r7, #40] @ 0x28
  49877. /* Check the pointer is not NULL. */
  49878. configASSERT( ( pxQueue ) );
  49879. 80151d0: 6abb ldr r3, [r7, #40] @ 0x28
  49880. 80151d2: 2b00 cmp r3, #0
  49881. 80151d4: d10b bne.n 80151ee <xQueueReceive+0x32>
  49882. __asm volatile
  49883. 80151d6: f04f 0350 mov.w r3, #80 @ 0x50
  49884. 80151da: f383 8811 msr BASEPRI, r3
  49885. 80151de: f3bf 8f6f isb sy
  49886. 80151e2: f3bf 8f4f dsb sy
  49887. 80151e6: 623b str r3, [r7, #32]
  49888. }
  49889. 80151e8: bf00 nop
  49890. 80151ea: bf00 nop
  49891. 80151ec: e7fd b.n 80151ea <xQueueReceive+0x2e>
  49892. /* The buffer into which data is received can only be NULL if the data size
  49893. is zero (so no data is copied into the buffer. */
  49894. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49895. 80151ee: 68bb ldr r3, [r7, #8]
  49896. 80151f0: 2b00 cmp r3, #0
  49897. 80151f2: d103 bne.n 80151fc <xQueueReceive+0x40>
  49898. 80151f4: 6abb ldr r3, [r7, #40] @ 0x28
  49899. 80151f6: 6c1b ldr r3, [r3, #64] @ 0x40
  49900. 80151f8: 2b00 cmp r3, #0
  49901. 80151fa: d101 bne.n 8015200 <xQueueReceive+0x44>
  49902. 80151fc: 2301 movs r3, #1
  49903. 80151fe: e000 b.n 8015202 <xQueueReceive+0x46>
  49904. 8015200: 2300 movs r3, #0
  49905. 8015202: 2b00 cmp r3, #0
  49906. 8015204: d10b bne.n 801521e <xQueueReceive+0x62>
  49907. __asm volatile
  49908. 8015206: f04f 0350 mov.w r3, #80 @ 0x50
  49909. 801520a: f383 8811 msr BASEPRI, r3
  49910. 801520e: f3bf 8f6f isb sy
  49911. 8015212: f3bf 8f4f dsb sy
  49912. 8015216: 61fb str r3, [r7, #28]
  49913. }
  49914. 8015218: bf00 nop
  49915. 801521a: bf00 nop
  49916. 801521c: e7fd b.n 801521a <xQueueReceive+0x5e>
  49917. /* Cannot block if the scheduler is suspended. */
  49918. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49919. {
  49920. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49921. 801521e: f001 fc23 bl 8016a68 <xTaskGetSchedulerState>
  49922. 8015222: 4603 mov r3, r0
  49923. 8015224: 2b00 cmp r3, #0
  49924. 8015226: d102 bne.n 801522e <xQueueReceive+0x72>
  49925. 8015228: 687b ldr r3, [r7, #4]
  49926. 801522a: 2b00 cmp r3, #0
  49927. 801522c: d101 bne.n 8015232 <xQueueReceive+0x76>
  49928. 801522e: 2301 movs r3, #1
  49929. 8015230: e000 b.n 8015234 <xQueueReceive+0x78>
  49930. 8015232: 2300 movs r3, #0
  49931. 8015234: 2b00 cmp r3, #0
  49932. 8015236: d10b bne.n 8015250 <xQueueReceive+0x94>
  49933. __asm volatile
  49934. 8015238: f04f 0350 mov.w r3, #80 @ 0x50
  49935. 801523c: f383 8811 msr BASEPRI, r3
  49936. 8015240: f3bf 8f6f isb sy
  49937. 8015244: f3bf 8f4f dsb sy
  49938. 8015248: 61bb str r3, [r7, #24]
  49939. }
  49940. 801524a: bf00 nop
  49941. 801524c: bf00 nop
  49942. 801524e: e7fd b.n 801524c <xQueueReceive+0x90>
  49943. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49944. allow return statements within the function itself. This is done in the
  49945. interest of execution time efficiency. */
  49946. for( ;; )
  49947. {
  49948. taskENTER_CRITICAL();
  49949. 8015250: f002 fd92 bl 8017d78 <vPortEnterCritical>
  49950. {
  49951. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49952. 8015254: 6abb ldr r3, [r7, #40] @ 0x28
  49953. 8015256: 6b9b ldr r3, [r3, #56] @ 0x38
  49954. 8015258: 627b str r3, [r7, #36] @ 0x24
  49955. /* Is there data in the queue now? To be running the calling task
  49956. must be the highest priority task wanting to access the queue. */
  49957. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49958. 801525a: 6a7b ldr r3, [r7, #36] @ 0x24
  49959. 801525c: 2b00 cmp r3, #0
  49960. 801525e: d01f beq.n 80152a0 <xQueueReceive+0xe4>
  49961. {
  49962. /* Data available, remove one item. */
  49963. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49964. 8015260: 68b9 ldr r1, [r7, #8]
  49965. 8015262: 6ab8 ldr r0, [r7, #40] @ 0x28
  49966. 8015264: f000 faa0 bl 80157a8 <prvCopyDataFromQueue>
  49967. traceQUEUE_RECEIVE( pxQueue );
  49968. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49969. 8015268: 6a7b ldr r3, [r7, #36] @ 0x24
  49970. 801526a: 1e5a subs r2, r3, #1
  49971. 801526c: 6abb ldr r3, [r7, #40] @ 0x28
  49972. 801526e: 639a str r2, [r3, #56] @ 0x38
  49973. /* There is now space in the queue, were any tasks waiting to
  49974. post to the queue? If so, unblock the highest priority waiting
  49975. task. */
  49976. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49977. 8015270: 6abb ldr r3, [r7, #40] @ 0x28
  49978. 8015272: 691b ldr r3, [r3, #16]
  49979. 8015274: 2b00 cmp r3, #0
  49980. 8015276: d00f beq.n 8015298 <xQueueReceive+0xdc>
  49981. {
  49982. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49983. 8015278: 6abb ldr r3, [r7, #40] @ 0x28
  49984. 801527a: 3310 adds r3, #16
  49985. 801527c: 4618 mov r0, r3
  49986. 801527e: f001 f9f5 bl 801666c <xTaskRemoveFromEventList>
  49987. 8015282: 4603 mov r3, r0
  49988. 8015284: 2b00 cmp r3, #0
  49989. 8015286: d007 beq.n 8015298 <xQueueReceive+0xdc>
  49990. {
  49991. queueYIELD_IF_USING_PREEMPTION();
  49992. 8015288: 4b3c ldr r3, [pc, #240] @ (801537c <xQueueReceive+0x1c0>)
  49993. 801528a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49994. 801528e: 601a str r2, [r3, #0]
  49995. 8015290: f3bf 8f4f dsb sy
  49996. 8015294: f3bf 8f6f isb sy
  49997. else
  49998. {
  49999. mtCOVERAGE_TEST_MARKER();
  50000. }
  50001. taskEXIT_CRITICAL();
  50002. 8015298: f002 fda0 bl 8017ddc <vPortExitCritical>
  50003. return pdPASS;
  50004. 801529c: 2301 movs r3, #1
  50005. 801529e: e069 b.n 8015374 <xQueueReceive+0x1b8>
  50006. }
  50007. else
  50008. {
  50009. if( xTicksToWait == ( TickType_t ) 0 )
  50010. 80152a0: 687b ldr r3, [r7, #4]
  50011. 80152a2: 2b00 cmp r3, #0
  50012. 80152a4: d103 bne.n 80152ae <xQueueReceive+0xf2>
  50013. {
  50014. /* The queue was empty and no block time is specified (or
  50015. the block time has expired) so leave now. */
  50016. taskEXIT_CRITICAL();
  50017. 80152a6: f002 fd99 bl 8017ddc <vPortExitCritical>
  50018. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50019. return errQUEUE_EMPTY;
  50020. 80152aa: 2300 movs r3, #0
  50021. 80152ac: e062 b.n 8015374 <xQueueReceive+0x1b8>
  50022. }
  50023. else if( xEntryTimeSet == pdFALSE )
  50024. 80152ae: 6afb ldr r3, [r7, #44] @ 0x2c
  50025. 80152b0: 2b00 cmp r3, #0
  50026. 80152b2: d106 bne.n 80152c2 <xQueueReceive+0x106>
  50027. {
  50028. /* The queue was empty and a block time was specified so
  50029. configure the timeout structure. */
  50030. vTaskInternalSetTimeOutState( &xTimeOut );
  50031. 80152b4: f107 0310 add.w r3, r7, #16
  50032. 80152b8: 4618 mov r0, r3
  50033. 80152ba: f001 fa63 bl 8016784 <vTaskInternalSetTimeOutState>
  50034. xEntryTimeSet = pdTRUE;
  50035. 80152be: 2301 movs r3, #1
  50036. 80152c0: 62fb str r3, [r7, #44] @ 0x2c
  50037. /* Entry time was already set. */
  50038. mtCOVERAGE_TEST_MARKER();
  50039. }
  50040. }
  50041. }
  50042. taskEXIT_CRITICAL();
  50043. 80152c2: f002 fd8b bl 8017ddc <vPortExitCritical>
  50044. /* Interrupts and other tasks can send to and receive from the queue
  50045. now the critical section has been exited. */
  50046. vTaskSuspendAll();
  50047. 80152c6: f000 ff95 bl 80161f4 <vTaskSuspendAll>
  50048. prvLockQueue( pxQueue );
  50049. 80152ca: f002 fd55 bl 8017d78 <vPortEnterCritical>
  50050. 80152ce: 6abb ldr r3, [r7, #40] @ 0x28
  50051. 80152d0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50052. 80152d4: b25b sxtb r3, r3
  50053. 80152d6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50054. 80152da: d103 bne.n 80152e4 <xQueueReceive+0x128>
  50055. 80152dc: 6abb ldr r3, [r7, #40] @ 0x28
  50056. 80152de: 2200 movs r2, #0
  50057. 80152e0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50058. 80152e4: 6abb ldr r3, [r7, #40] @ 0x28
  50059. 80152e6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50060. 80152ea: b25b sxtb r3, r3
  50061. 80152ec: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50062. 80152f0: d103 bne.n 80152fa <xQueueReceive+0x13e>
  50063. 80152f2: 6abb ldr r3, [r7, #40] @ 0x28
  50064. 80152f4: 2200 movs r2, #0
  50065. 80152f6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50066. 80152fa: f002 fd6f bl 8017ddc <vPortExitCritical>
  50067. /* Update the timeout state to see if it has expired yet. */
  50068. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50069. 80152fe: 1d3a adds r2, r7, #4
  50070. 8015300: f107 0310 add.w r3, r7, #16
  50071. 8015304: 4611 mov r1, r2
  50072. 8015306: 4618 mov r0, r3
  50073. 8015308: f001 fa52 bl 80167b0 <xTaskCheckForTimeOut>
  50074. 801530c: 4603 mov r3, r0
  50075. 801530e: 2b00 cmp r3, #0
  50076. 8015310: d123 bne.n 801535a <xQueueReceive+0x19e>
  50077. {
  50078. /* The timeout has not expired. If the queue is still empty place
  50079. the task on the list of tasks waiting to receive from the queue. */
  50080. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50081. 8015312: 6ab8 ldr r0, [r7, #40] @ 0x28
  50082. 8015314: f000 fac0 bl 8015898 <prvIsQueueEmpty>
  50083. 8015318: 4603 mov r3, r0
  50084. 801531a: 2b00 cmp r3, #0
  50085. 801531c: d017 beq.n 801534e <xQueueReceive+0x192>
  50086. {
  50087. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50088. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50089. 801531e: 6abb ldr r3, [r7, #40] @ 0x28
  50090. 8015320: 3324 adds r3, #36 @ 0x24
  50091. 8015322: 687a ldr r2, [r7, #4]
  50092. 8015324: 4611 mov r1, r2
  50093. 8015326: 4618 mov r0, r3
  50094. 8015328: f001 f94e bl 80165c8 <vTaskPlaceOnEventList>
  50095. prvUnlockQueue( pxQueue );
  50096. 801532c: 6ab8 ldr r0, [r7, #40] @ 0x28
  50097. 801532e: f000 fa61 bl 80157f4 <prvUnlockQueue>
  50098. if( xTaskResumeAll() == pdFALSE )
  50099. 8015332: f000 ff6d bl 8016210 <xTaskResumeAll>
  50100. 8015336: 4603 mov r3, r0
  50101. 8015338: 2b00 cmp r3, #0
  50102. 801533a: d189 bne.n 8015250 <xQueueReceive+0x94>
  50103. {
  50104. portYIELD_WITHIN_API();
  50105. 801533c: 4b0f ldr r3, [pc, #60] @ (801537c <xQueueReceive+0x1c0>)
  50106. 801533e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50107. 8015342: 601a str r2, [r3, #0]
  50108. 8015344: f3bf 8f4f dsb sy
  50109. 8015348: f3bf 8f6f isb sy
  50110. 801534c: e780 b.n 8015250 <xQueueReceive+0x94>
  50111. }
  50112. else
  50113. {
  50114. /* The queue contains data again. Loop back to try and read the
  50115. data. */
  50116. prvUnlockQueue( pxQueue );
  50117. 801534e: 6ab8 ldr r0, [r7, #40] @ 0x28
  50118. 8015350: f000 fa50 bl 80157f4 <prvUnlockQueue>
  50119. ( void ) xTaskResumeAll();
  50120. 8015354: f000 ff5c bl 8016210 <xTaskResumeAll>
  50121. 8015358: e77a b.n 8015250 <xQueueReceive+0x94>
  50122. }
  50123. else
  50124. {
  50125. /* Timed out. If there is no data in the queue exit, otherwise loop
  50126. back and attempt to read the data. */
  50127. prvUnlockQueue( pxQueue );
  50128. 801535a: 6ab8 ldr r0, [r7, #40] @ 0x28
  50129. 801535c: f000 fa4a bl 80157f4 <prvUnlockQueue>
  50130. ( void ) xTaskResumeAll();
  50131. 8015360: f000 ff56 bl 8016210 <xTaskResumeAll>
  50132. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50133. 8015364: 6ab8 ldr r0, [r7, #40] @ 0x28
  50134. 8015366: f000 fa97 bl 8015898 <prvIsQueueEmpty>
  50135. 801536a: 4603 mov r3, r0
  50136. 801536c: 2b00 cmp r3, #0
  50137. 801536e: f43f af6f beq.w 8015250 <xQueueReceive+0x94>
  50138. {
  50139. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50140. return errQUEUE_EMPTY;
  50141. 8015372: 2300 movs r3, #0
  50142. {
  50143. mtCOVERAGE_TEST_MARKER();
  50144. }
  50145. }
  50146. } /*lint -restore */
  50147. }
  50148. 8015374: 4618 mov r0, r3
  50149. 8015376: 3730 adds r7, #48 @ 0x30
  50150. 8015378: 46bd mov sp, r7
  50151. 801537a: bd80 pop {r7, pc}
  50152. 801537c: e000ed04 .word 0xe000ed04
  50153. 08015380 <xQueueSemaphoreTake>:
  50154. /*-----------------------------------------------------------*/
  50155. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  50156. {
  50157. 8015380: b580 push {r7, lr}
  50158. 8015382: b08e sub sp, #56 @ 0x38
  50159. 8015384: af00 add r7, sp, #0
  50160. 8015386: 6078 str r0, [r7, #4]
  50161. 8015388: 6039 str r1, [r7, #0]
  50162. BaseType_t xEntryTimeSet = pdFALSE;
  50163. 801538a: 2300 movs r3, #0
  50164. 801538c: 637b str r3, [r7, #52] @ 0x34
  50165. TimeOut_t xTimeOut;
  50166. Queue_t * const pxQueue = xQueue;
  50167. 801538e: 687b ldr r3, [r7, #4]
  50168. 8015390: 62fb str r3, [r7, #44] @ 0x2c
  50169. #if( configUSE_MUTEXES == 1 )
  50170. BaseType_t xInheritanceOccurred = pdFALSE;
  50171. 8015392: 2300 movs r3, #0
  50172. 8015394: 633b str r3, [r7, #48] @ 0x30
  50173. #endif
  50174. /* Check the queue pointer is not NULL. */
  50175. configASSERT( ( pxQueue ) );
  50176. 8015396: 6afb ldr r3, [r7, #44] @ 0x2c
  50177. 8015398: 2b00 cmp r3, #0
  50178. 801539a: d10b bne.n 80153b4 <xQueueSemaphoreTake+0x34>
  50179. __asm volatile
  50180. 801539c: f04f 0350 mov.w r3, #80 @ 0x50
  50181. 80153a0: f383 8811 msr BASEPRI, r3
  50182. 80153a4: f3bf 8f6f isb sy
  50183. 80153a8: f3bf 8f4f dsb sy
  50184. 80153ac: 623b str r3, [r7, #32]
  50185. }
  50186. 80153ae: bf00 nop
  50187. 80153b0: bf00 nop
  50188. 80153b2: e7fd b.n 80153b0 <xQueueSemaphoreTake+0x30>
  50189. /* Check this really is a semaphore, in which case the item size will be
  50190. 0. */
  50191. configASSERT( pxQueue->uxItemSize == 0 );
  50192. 80153b4: 6afb ldr r3, [r7, #44] @ 0x2c
  50193. 80153b6: 6c1b ldr r3, [r3, #64] @ 0x40
  50194. 80153b8: 2b00 cmp r3, #0
  50195. 80153ba: d00b beq.n 80153d4 <xQueueSemaphoreTake+0x54>
  50196. __asm volatile
  50197. 80153bc: f04f 0350 mov.w r3, #80 @ 0x50
  50198. 80153c0: f383 8811 msr BASEPRI, r3
  50199. 80153c4: f3bf 8f6f isb sy
  50200. 80153c8: f3bf 8f4f dsb sy
  50201. 80153cc: 61fb str r3, [r7, #28]
  50202. }
  50203. 80153ce: bf00 nop
  50204. 80153d0: bf00 nop
  50205. 80153d2: e7fd b.n 80153d0 <xQueueSemaphoreTake+0x50>
  50206. /* Cannot block if the scheduler is suspended. */
  50207. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  50208. {
  50209. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  50210. 80153d4: f001 fb48 bl 8016a68 <xTaskGetSchedulerState>
  50211. 80153d8: 4603 mov r3, r0
  50212. 80153da: 2b00 cmp r3, #0
  50213. 80153dc: d102 bne.n 80153e4 <xQueueSemaphoreTake+0x64>
  50214. 80153de: 683b ldr r3, [r7, #0]
  50215. 80153e0: 2b00 cmp r3, #0
  50216. 80153e2: d101 bne.n 80153e8 <xQueueSemaphoreTake+0x68>
  50217. 80153e4: 2301 movs r3, #1
  50218. 80153e6: e000 b.n 80153ea <xQueueSemaphoreTake+0x6a>
  50219. 80153e8: 2300 movs r3, #0
  50220. 80153ea: 2b00 cmp r3, #0
  50221. 80153ec: d10b bne.n 8015406 <xQueueSemaphoreTake+0x86>
  50222. __asm volatile
  50223. 80153ee: f04f 0350 mov.w r3, #80 @ 0x50
  50224. 80153f2: f383 8811 msr BASEPRI, r3
  50225. 80153f6: f3bf 8f6f isb sy
  50226. 80153fa: f3bf 8f4f dsb sy
  50227. 80153fe: 61bb str r3, [r7, #24]
  50228. }
  50229. 8015400: bf00 nop
  50230. 8015402: bf00 nop
  50231. 8015404: e7fd b.n 8015402 <xQueueSemaphoreTake+0x82>
  50232. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  50233. statements within the function itself. This is done in the interest
  50234. of execution time efficiency. */
  50235. for( ;; )
  50236. {
  50237. taskENTER_CRITICAL();
  50238. 8015406: f002 fcb7 bl 8017d78 <vPortEnterCritical>
  50239. {
  50240. /* Semaphores are queues with an item size of 0, and where the
  50241. number of messages in the queue is the semaphore's count value. */
  50242. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  50243. 801540a: 6afb ldr r3, [r7, #44] @ 0x2c
  50244. 801540c: 6b9b ldr r3, [r3, #56] @ 0x38
  50245. 801540e: 62bb str r3, [r7, #40] @ 0x28
  50246. /* Is there data in the queue now? To be running the calling task
  50247. must be the highest priority task wanting to access the queue. */
  50248. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  50249. 8015410: 6abb ldr r3, [r7, #40] @ 0x28
  50250. 8015412: 2b00 cmp r3, #0
  50251. 8015414: d024 beq.n 8015460 <xQueueSemaphoreTake+0xe0>
  50252. {
  50253. traceQUEUE_RECEIVE( pxQueue );
  50254. /* Semaphores are queues with a data size of zero and where the
  50255. messages waiting is the semaphore's count. Reduce the count. */
  50256. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  50257. 8015416: 6abb ldr r3, [r7, #40] @ 0x28
  50258. 8015418: 1e5a subs r2, r3, #1
  50259. 801541a: 6afb ldr r3, [r7, #44] @ 0x2c
  50260. 801541c: 639a str r2, [r3, #56] @ 0x38
  50261. #if ( configUSE_MUTEXES == 1 )
  50262. {
  50263. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50264. 801541e: 6afb ldr r3, [r7, #44] @ 0x2c
  50265. 8015420: 681b ldr r3, [r3, #0]
  50266. 8015422: 2b00 cmp r3, #0
  50267. 8015424: d104 bne.n 8015430 <xQueueSemaphoreTake+0xb0>
  50268. {
  50269. /* Record the information required to implement
  50270. priority inheritance should it become necessary. */
  50271. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  50272. 8015426: f001 fc99 bl 8016d5c <pvTaskIncrementMutexHeldCount>
  50273. 801542a: 4602 mov r2, r0
  50274. 801542c: 6afb ldr r3, [r7, #44] @ 0x2c
  50275. 801542e: 609a str r2, [r3, #8]
  50276. }
  50277. #endif /* configUSE_MUTEXES */
  50278. /* Check to see if other tasks are blocked waiting to give the
  50279. semaphore, and if so, unblock the highest priority such task. */
  50280. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50281. 8015430: 6afb ldr r3, [r7, #44] @ 0x2c
  50282. 8015432: 691b ldr r3, [r3, #16]
  50283. 8015434: 2b00 cmp r3, #0
  50284. 8015436: d00f beq.n 8015458 <xQueueSemaphoreTake+0xd8>
  50285. {
  50286. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50287. 8015438: 6afb ldr r3, [r7, #44] @ 0x2c
  50288. 801543a: 3310 adds r3, #16
  50289. 801543c: 4618 mov r0, r3
  50290. 801543e: f001 f915 bl 801666c <xTaskRemoveFromEventList>
  50291. 8015442: 4603 mov r3, r0
  50292. 8015444: 2b00 cmp r3, #0
  50293. 8015446: d007 beq.n 8015458 <xQueueSemaphoreTake+0xd8>
  50294. {
  50295. queueYIELD_IF_USING_PREEMPTION();
  50296. 8015448: 4b54 ldr r3, [pc, #336] @ (801559c <xQueueSemaphoreTake+0x21c>)
  50297. 801544a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50298. 801544e: 601a str r2, [r3, #0]
  50299. 8015450: f3bf 8f4f dsb sy
  50300. 8015454: f3bf 8f6f isb sy
  50301. else
  50302. {
  50303. mtCOVERAGE_TEST_MARKER();
  50304. }
  50305. taskEXIT_CRITICAL();
  50306. 8015458: f002 fcc0 bl 8017ddc <vPortExitCritical>
  50307. return pdPASS;
  50308. 801545c: 2301 movs r3, #1
  50309. 801545e: e098 b.n 8015592 <xQueueSemaphoreTake+0x212>
  50310. }
  50311. else
  50312. {
  50313. if( xTicksToWait == ( TickType_t ) 0 )
  50314. 8015460: 683b ldr r3, [r7, #0]
  50315. 8015462: 2b00 cmp r3, #0
  50316. 8015464: d112 bne.n 801548c <xQueueSemaphoreTake+0x10c>
  50317. /* For inheritance to have occurred there must have been an
  50318. initial timeout, and an adjusted timeout cannot become 0, as
  50319. if it were 0 the function would have exited. */
  50320. #if( configUSE_MUTEXES == 1 )
  50321. {
  50322. configASSERT( xInheritanceOccurred == pdFALSE );
  50323. 8015466: 6b3b ldr r3, [r7, #48] @ 0x30
  50324. 8015468: 2b00 cmp r3, #0
  50325. 801546a: d00b beq.n 8015484 <xQueueSemaphoreTake+0x104>
  50326. __asm volatile
  50327. 801546c: f04f 0350 mov.w r3, #80 @ 0x50
  50328. 8015470: f383 8811 msr BASEPRI, r3
  50329. 8015474: f3bf 8f6f isb sy
  50330. 8015478: f3bf 8f4f dsb sy
  50331. 801547c: 617b str r3, [r7, #20]
  50332. }
  50333. 801547e: bf00 nop
  50334. 8015480: bf00 nop
  50335. 8015482: e7fd b.n 8015480 <xQueueSemaphoreTake+0x100>
  50336. }
  50337. #endif /* configUSE_MUTEXES */
  50338. /* The semaphore count was 0 and no block time is specified
  50339. (or the block time has expired) so exit now. */
  50340. taskEXIT_CRITICAL();
  50341. 8015484: f002 fcaa bl 8017ddc <vPortExitCritical>
  50342. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50343. return errQUEUE_EMPTY;
  50344. 8015488: 2300 movs r3, #0
  50345. 801548a: e082 b.n 8015592 <xQueueSemaphoreTake+0x212>
  50346. }
  50347. else if( xEntryTimeSet == pdFALSE )
  50348. 801548c: 6b7b ldr r3, [r7, #52] @ 0x34
  50349. 801548e: 2b00 cmp r3, #0
  50350. 8015490: d106 bne.n 80154a0 <xQueueSemaphoreTake+0x120>
  50351. {
  50352. /* The semaphore count was 0 and a block time was specified
  50353. so configure the timeout structure ready to block. */
  50354. vTaskInternalSetTimeOutState( &xTimeOut );
  50355. 8015492: f107 030c add.w r3, r7, #12
  50356. 8015496: 4618 mov r0, r3
  50357. 8015498: f001 f974 bl 8016784 <vTaskInternalSetTimeOutState>
  50358. xEntryTimeSet = pdTRUE;
  50359. 801549c: 2301 movs r3, #1
  50360. 801549e: 637b str r3, [r7, #52] @ 0x34
  50361. /* Entry time was already set. */
  50362. mtCOVERAGE_TEST_MARKER();
  50363. }
  50364. }
  50365. }
  50366. taskEXIT_CRITICAL();
  50367. 80154a0: f002 fc9c bl 8017ddc <vPortExitCritical>
  50368. /* Interrupts and other tasks can give to and take from the semaphore
  50369. now the critical section has been exited. */
  50370. vTaskSuspendAll();
  50371. 80154a4: f000 fea6 bl 80161f4 <vTaskSuspendAll>
  50372. prvLockQueue( pxQueue );
  50373. 80154a8: f002 fc66 bl 8017d78 <vPortEnterCritical>
  50374. 80154ac: 6afb ldr r3, [r7, #44] @ 0x2c
  50375. 80154ae: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50376. 80154b2: b25b sxtb r3, r3
  50377. 80154b4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50378. 80154b8: d103 bne.n 80154c2 <xQueueSemaphoreTake+0x142>
  50379. 80154ba: 6afb ldr r3, [r7, #44] @ 0x2c
  50380. 80154bc: 2200 movs r2, #0
  50381. 80154be: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50382. 80154c2: 6afb ldr r3, [r7, #44] @ 0x2c
  50383. 80154c4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50384. 80154c8: b25b sxtb r3, r3
  50385. 80154ca: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50386. 80154ce: d103 bne.n 80154d8 <xQueueSemaphoreTake+0x158>
  50387. 80154d0: 6afb ldr r3, [r7, #44] @ 0x2c
  50388. 80154d2: 2200 movs r2, #0
  50389. 80154d4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50390. 80154d8: f002 fc80 bl 8017ddc <vPortExitCritical>
  50391. /* Update the timeout state to see if it has expired yet. */
  50392. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50393. 80154dc: 463a mov r2, r7
  50394. 80154de: f107 030c add.w r3, r7, #12
  50395. 80154e2: 4611 mov r1, r2
  50396. 80154e4: 4618 mov r0, r3
  50397. 80154e6: f001 f963 bl 80167b0 <xTaskCheckForTimeOut>
  50398. 80154ea: 4603 mov r3, r0
  50399. 80154ec: 2b00 cmp r3, #0
  50400. 80154ee: d132 bne.n 8015556 <xQueueSemaphoreTake+0x1d6>
  50401. {
  50402. /* A block time is specified and not expired. If the semaphore
  50403. count is 0 then enter the Blocked state to wait for a semaphore to
  50404. become available. As semaphores are implemented with queues the
  50405. queue being empty is equivalent to the semaphore count being 0. */
  50406. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50407. 80154f0: 6af8 ldr r0, [r7, #44] @ 0x2c
  50408. 80154f2: f000 f9d1 bl 8015898 <prvIsQueueEmpty>
  50409. 80154f6: 4603 mov r3, r0
  50410. 80154f8: 2b00 cmp r3, #0
  50411. 80154fa: d026 beq.n 801554a <xQueueSemaphoreTake+0x1ca>
  50412. {
  50413. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50414. #if ( configUSE_MUTEXES == 1 )
  50415. {
  50416. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50417. 80154fc: 6afb ldr r3, [r7, #44] @ 0x2c
  50418. 80154fe: 681b ldr r3, [r3, #0]
  50419. 8015500: 2b00 cmp r3, #0
  50420. 8015502: d109 bne.n 8015518 <xQueueSemaphoreTake+0x198>
  50421. {
  50422. taskENTER_CRITICAL();
  50423. 8015504: f002 fc38 bl 8017d78 <vPortEnterCritical>
  50424. {
  50425. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  50426. 8015508: 6afb ldr r3, [r7, #44] @ 0x2c
  50427. 801550a: 689b ldr r3, [r3, #8]
  50428. 801550c: 4618 mov r0, r3
  50429. 801550e: f001 fac9 bl 8016aa4 <xTaskPriorityInherit>
  50430. 8015512: 6338 str r0, [r7, #48] @ 0x30
  50431. }
  50432. taskEXIT_CRITICAL();
  50433. 8015514: f002 fc62 bl 8017ddc <vPortExitCritical>
  50434. mtCOVERAGE_TEST_MARKER();
  50435. }
  50436. }
  50437. #endif
  50438. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50439. 8015518: 6afb ldr r3, [r7, #44] @ 0x2c
  50440. 801551a: 3324 adds r3, #36 @ 0x24
  50441. 801551c: 683a ldr r2, [r7, #0]
  50442. 801551e: 4611 mov r1, r2
  50443. 8015520: 4618 mov r0, r3
  50444. 8015522: f001 f851 bl 80165c8 <vTaskPlaceOnEventList>
  50445. prvUnlockQueue( pxQueue );
  50446. 8015526: 6af8 ldr r0, [r7, #44] @ 0x2c
  50447. 8015528: f000 f964 bl 80157f4 <prvUnlockQueue>
  50448. if( xTaskResumeAll() == pdFALSE )
  50449. 801552c: f000 fe70 bl 8016210 <xTaskResumeAll>
  50450. 8015530: 4603 mov r3, r0
  50451. 8015532: 2b00 cmp r3, #0
  50452. 8015534: f47f af67 bne.w 8015406 <xQueueSemaphoreTake+0x86>
  50453. {
  50454. portYIELD_WITHIN_API();
  50455. 8015538: 4b18 ldr r3, [pc, #96] @ (801559c <xQueueSemaphoreTake+0x21c>)
  50456. 801553a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50457. 801553e: 601a str r2, [r3, #0]
  50458. 8015540: f3bf 8f4f dsb sy
  50459. 8015544: f3bf 8f6f isb sy
  50460. 8015548: e75d b.n 8015406 <xQueueSemaphoreTake+0x86>
  50461. }
  50462. else
  50463. {
  50464. /* There was no timeout and the semaphore count was not 0, so
  50465. attempt to take the semaphore again. */
  50466. prvUnlockQueue( pxQueue );
  50467. 801554a: 6af8 ldr r0, [r7, #44] @ 0x2c
  50468. 801554c: f000 f952 bl 80157f4 <prvUnlockQueue>
  50469. ( void ) xTaskResumeAll();
  50470. 8015550: f000 fe5e bl 8016210 <xTaskResumeAll>
  50471. 8015554: e757 b.n 8015406 <xQueueSemaphoreTake+0x86>
  50472. }
  50473. }
  50474. else
  50475. {
  50476. /* Timed out. */
  50477. prvUnlockQueue( pxQueue );
  50478. 8015556: 6af8 ldr r0, [r7, #44] @ 0x2c
  50479. 8015558: f000 f94c bl 80157f4 <prvUnlockQueue>
  50480. ( void ) xTaskResumeAll();
  50481. 801555c: f000 fe58 bl 8016210 <xTaskResumeAll>
  50482. /* If the semaphore count is 0 exit now as the timeout has
  50483. expired. Otherwise return to attempt to take the semaphore that is
  50484. known to be available. As semaphores are implemented by queues the
  50485. queue being empty is equivalent to the semaphore count being 0. */
  50486. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50487. 8015560: 6af8 ldr r0, [r7, #44] @ 0x2c
  50488. 8015562: f000 f999 bl 8015898 <prvIsQueueEmpty>
  50489. 8015566: 4603 mov r3, r0
  50490. 8015568: 2b00 cmp r3, #0
  50491. 801556a: f43f af4c beq.w 8015406 <xQueueSemaphoreTake+0x86>
  50492. #if ( configUSE_MUTEXES == 1 )
  50493. {
  50494. /* xInheritanceOccurred could only have be set if
  50495. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  50496. test the mutex type again to check it is actually a mutex. */
  50497. if( xInheritanceOccurred != pdFALSE )
  50498. 801556e: 6b3b ldr r3, [r7, #48] @ 0x30
  50499. 8015570: 2b00 cmp r3, #0
  50500. 8015572: d00d beq.n 8015590 <xQueueSemaphoreTake+0x210>
  50501. {
  50502. taskENTER_CRITICAL();
  50503. 8015574: f002 fc00 bl 8017d78 <vPortEnterCritical>
  50504. /* This task blocking on the mutex caused another
  50505. task to inherit this task's priority. Now this task
  50506. has timed out the priority should be disinherited
  50507. again, but only as low as the next highest priority
  50508. task that is waiting for the same mutex. */
  50509. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  50510. 8015578: 6af8 ldr r0, [r7, #44] @ 0x2c
  50511. 801557a: f000 f893 bl 80156a4 <prvGetDisinheritPriorityAfterTimeout>
  50512. 801557e: 6278 str r0, [r7, #36] @ 0x24
  50513. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  50514. 8015580: 6afb ldr r3, [r7, #44] @ 0x2c
  50515. 8015582: 689b ldr r3, [r3, #8]
  50516. 8015584: 6a79 ldr r1, [r7, #36] @ 0x24
  50517. 8015586: 4618 mov r0, r3
  50518. 8015588: f001 fb64 bl 8016c54 <vTaskPriorityDisinheritAfterTimeout>
  50519. }
  50520. taskEXIT_CRITICAL();
  50521. 801558c: f002 fc26 bl 8017ddc <vPortExitCritical>
  50522. }
  50523. }
  50524. #endif /* configUSE_MUTEXES */
  50525. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50526. return errQUEUE_EMPTY;
  50527. 8015590: 2300 movs r3, #0
  50528. {
  50529. mtCOVERAGE_TEST_MARKER();
  50530. }
  50531. }
  50532. } /*lint -restore */
  50533. }
  50534. 8015592: 4618 mov r0, r3
  50535. 8015594: 3738 adds r7, #56 @ 0x38
  50536. 8015596: 46bd mov sp, r7
  50537. 8015598: bd80 pop {r7, pc}
  50538. 801559a: bf00 nop
  50539. 801559c: e000ed04 .word 0xe000ed04
  50540. 080155a0 <xQueueReceiveFromISR>:
  50541. } /*lint -restore */
  50542. }
  50543. /*-----------------------------------------------------------*/
  50544. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  50545. {
  50546. 80155a0: b580 push {r7, lr}
  50547. 80155a2: b08e sub sp, #56 @ 0x38
  50548. 80155a4: af00 add r7, sp, #0
  50549. 80155a6: 60f8 str r0, [r7, #12]
  50550. 80155a8: 60b9 str r1, [r7, #8]
  50551. 80155aa: 607a str r2, [r7, #4]
  50552. BaseType_t xReturn;
  50553. UBaseType_t uxSavedInterruptStatus;
  50554. Queue_t * const pxQueue = xQueue;
  50555. 80155ac: 68fb ldr r3, [r7, #12]
  50556. 80155ae: 633b str r3, [r7, #48] @ 0x30
  50557. configASSERT( pxQueue );
  50558. 80155b0: 6b3b ldr r3, [r7, #48] @ 0x30
  50559. 80155b2: 2b00 cmp r3, #0
  50560. 80155b4: d10b bne.n 80155ce <xQueueReceiveFromISR+0x2e>
  50561. __asm volatile
  50562. 80155b6: f04f 0350 mov.w r3, #80 @ 0x50
  50563. 80155ba: f383 8811 msr BASEPRI, r3
  50564. 80155be: f3bf 8f6f isb sy
  50565. 80155c2: f3bf 8f4f dsb sy
  50566. 80155c6: 623b str r3, [r7, #32]
  50567. }
  50568. 80155c8: bf00 nop
  50569. 80155ca: bf00 nop
  50570. 80155cc: e7fd b.n 80155ca <xQueueReceiveFromISR+0x2a>
  50571. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  50572. 80155ce: 68bb ldr r3, [r7, #8]
  50573. 80155d0: 2b00 cmp r3, #0
  50574. 80155d2: d103 bne.n 80155dc <xQueueReceiveFromISR+0x3c>
  50575. 80155d4: 6b3b ldr r3, [r7, #48] @ 0x30
  50576. 80155d6: 6c1b ldr r3, [r3, #64] @ 0x40
  50577. 80155d8: 2b00 cmp r3, #0
  50578. 80155da: d101 bne.n 80155e0 <xQueueReceiveFromISR+0x40>
  50579. 80155dc: 2301 movs r3, #1
  50580. 80155de: e000 b.n 80155e2 <xQueueReceiveFromISR+0x42>
  50581. 80155e0: 2300 movs r3, #0
  50582. 80155e2: 2b00 cmp r3, #0
  50583. 80155e4: d10b bne.n 80155fe <xQueueReceiveFromISR+0x5e>
  50584. __asm volatile
  50585. 80155e6: f04f 0350 mov.w r3, #80 @ 0x50
  50586. 80155ea: f383 8811 msr BASEPRI, r3
  50587. 80155ee: f3bf 8f6f isb sy
  50588. 80155f2: f3bf 8f4f dsb sy
  50589. 80155f6: 61fb str r3, [r7, #28]
  50590. }
  50591. 80155f8: bf00 nop
  50592. 80155fa: bf00 nop
  50593. 80155fc: e7fd b.n 80155fa <xQueueReceiveFromISR+0x5a>
  50594. that have been assigned a priority at or (logically) below the maximum
  50595. system call interrupt priority. FreeRTOS maintains a separate interrupt
  50596. safe API to ensure interrupt entry is as fast and as simple as possible.
  50597. More information (albeit Cortex-M specific) is provided on the following
  50598. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  50599. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  50600. 80155fe: f002 fc9b bl 8017f38 <vPortValidateInterruptPriority>
  50601. __asm volatile
  50602. 8015602: f3ef 8211 mrs r2, BASEPRI
  50603. 8015606: f04f 0350 mov.w r3, #80 @ 0x50
  50604. 801560a: f383 8811 msr BASEPRI, r3
  50605. 801560e: f3bf 8f6f isb sy
  50606. 8015612: f3bf 8f4f dsb sy
  50607. 8015616: 61ba str r2, [r7, #24]
  50608. 8015618: 617b str r3, [r7, #20]
  50609. return ulOriginalBASEPRI;
  50610. 801561a: 69bb ldr r3, [r7, #24]
  50611. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  50612. 801561c: 62fb str r3, [r7, #44] @ 0x2c
  50613. {
  50614. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50615. 801561e: 6b3b ldr r3, [r7, #48] @ 0x30
  50616. 8015620: 6b9b ldr r3, [r3, #56] @ 0x38
  50617. 8015622: 62bb str r3, [r7, #40] @ 0x28
  50618. /* Cannot block in an ISR, so check there is data available. */
  50619. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50620. 8015624: 6abb ldr r3, [r7, #40] @ 0x28
  50621. 8015626: 2b00 cmp r3, #0
  50622. 8015628: d02f beq.n 801568a <xQueueReceiveFromISR+0xea>
  50623. {
  50624. const int8_t cRxLock = pxQueue->cRxLock;
  50625. 801562a: 6b3b ldr r3, [r7, #48] @ 0x30
  50626. 801562c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50627. 8015630: f887 3027 strb.w r3, [r7, #39] @ 0x27
  50628. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  50629. prvCopyDataFromQueue( pxQueue, pvBuffer );
  50630. 8015634: 68b9 ldr r1, [r7, #8]
  50631. 8015636: 6b38 ldr r0, [r7, #48] @ 0x30
  50632. 8015638: f000 f8b6 bl 80157a8 <prvCopyDataFromQueue>
  50633. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  50634. 801563c: 6abb ldr r3, [r7, #40] @ 0x28
  50635. 801563e: 1e5a subs r2, r3, #1
  50636. 8015640: 6b3b ldr r3, [r7, #48] @ 0x30
  50637. 8015642: 639a str r2, [r3, #56] @ 0x38
  50638. /* If the queue is locked the event list will not be modified.
  50639. Instead update the lock count so the task that unlocks the queue
  50640. will know that an ISR has removed data while the queue was
  50641. locked. */
  50642. if( cRxLock == queueUNLOCKED )
  50643. 8015644: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  50644. 8015648: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50645. 801564c: d112 bne.n 8015674 <xQueueReceiveFromISR+0xd4>
  50646. {
  50647. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50648. 801564e: 6b3b ldr r3, [r7, #48] @ 0x30
  50649. 8015650: 691b ldr r3, [r3, #16]
  50650. 8015652: 2b00 cmp r3, #0
  50651. 8015654: d016 beq.n 8015684 <xQueueReceiveFromISR+0xe4>
  50652. {
  50653. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50654. 8015656: 6b3b ldr r3, [r7, #48] @ 0x30
  50655. 8015658: 3310 adds r3, #16
  50656. 801565a: 4618 mov r0, r3
  50657. 801565c: f001 f806 bl 801666c <xTaskRemoveFromEventList>
  50658. 8015660: 4603 mov r3, r0
  50659. 8015662: 2b00 cmp r3, #0
  50660. 8015664: d00e beq.n 8015684 <xQueueReceiveFromISR+0xe4>
  50661. {
  50662. /* The task waiting has a higher priority than us so
  50663. force a context switch. */
  50664. if( pxHigherPriorityTaskWoken != NULL )
  50665. 8015666: 687b ldr r3, [r7, #4]
  50666. 8015668: 2b00 cmp r3, #0
  50667. 801566a: d00b beq.n 8015684 <xQueueReceiveFromISR+0xe4>
  50668. {
  50669. *pxHigherPriorityTaskWoken = pdTRUE;
  50670. 801566c: 687b ldr r3, [r7, #4]
  50671. 801566e: 2201 movs r2, #1
  50672. 8015670: 601a str r2, [r3, #0]
  50673. 8015672: e007 b.n 8015684 <xQueueReceiveFromISR+0xe4>
  50674. }
  50675. else
  50676. {
  50677. /* Increment the lock count so the task that unlocks the queue
  50678. knows that data was removed while it was locked. */
  50679. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  50680. 8015674: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  50681. 8015678: 3301 adds r3, #1
  50682. 801567a: b2db uxtb r3, r3
  50683. 801567c: b25a sxtb r2, r3
  50684. 801567e: 6b3b ldr r3, [r7, #48] @ 0x30
  50685. 8015680: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50686. }
  50687. xReturn = pdPASS;
  50688. 8015684: 2301 movs r3, #1
  50689. 8015686: 637b str r3, [r7, #52] @ 0x34
  50690. 8015688: e001 b.n 801568e <xQueueReceiveFromISR+0xee>
  50691. }
  50692. else
  50693. {
  50694. xReturn = pdFAIL;
  50695. 801568a: 2300 movs r3, #0
  50696. 801568c: 637b str r3, [r7, #52] @ 0x34
  50697. 801568e: 6afb ldr r3, [r7, #44] @ 0x2c
  50698. 8015690: 613b str r3, [r7, #16]
  50699. __asm volatile
  50700. 8015692: 693b ldr r3, [r7, #16]
  50701. 8015694: f383 8811 msr BASEPRI, r3
  50702. }
  50703. 8015698: bf00 nop
  50704. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  50705. }
  50706. }
  50707. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  50708. return xReturn;
  50709. 801569a: 6b7b ldr r3, [r7, #52] @ 0x34
  50710. }
  50711. 801569c: 4618 mov r0, r3
  50712. 801569e: 3738 adds r7, #56 @ 0x38
  50713. 80156a0: 46bd mov sp, r7
  50714. 80156a2: bd80 pop {r7, pc}
  50715. 080156a4 <prvGetDisinheritPriorityAfterTimeout>:
  50716. /*-----------------------------------------------------------*/
  50717. #if( configUSE_MUTEXES == 1 )
  50718. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  50719. {
  50720. 80156a4: b480 push {r7}
  50721. 80156a6: b085 sub sp, #20
  50722. 80156a8: af00 add r7, sp, #0
  50723. 80156aa: 6078 str r0, [r7, #4]
  50724. priority, but the waiting task times out, then the holder should
  50725. disinherit the priority - but only down to the highest priority of any
  50726. other tasks that are waiting for the same mutex. For this purpose,
  50727. return the priority of the highest priority task that is waiting for the
  50728. mutex. */
  50729. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  50730. 80156ac: 687b ldr r3, [r7, #4]
  50731. 80156ae: 6a5b ldr r3, [r3, #36] @ 0x24
  50732. 80156b0: 2b00 cmp r3, #0
  50733. 80156b2: d006 beq.n 80156c2 <prvGetDisinheritPriorityAfterTimeout+0x1e>
  50734. {
  50735. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  50736. 80156b4: 687b ldr r3, [r7, #4]
  50737. 80156b6: 6b1b ldr r3, [r3, #48] @ 0x30
  50738. 80156b8: 681b ldr r3, [r3, #0]
  50739. 80156ba: f1c3 0338 rsb r3, r3, #56 @ 0x38
  50740. 80156be: 60fb str r3, [r7, #12]
  50741. 80156c0: e001 b.n 80156c6 <prvGetDisinheritPriorityAfterTimeout+0x22>
  50742. }
  50743. else
  50744. {
  50745. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  50746. 80156c2: 2300 movs r3, #0
  50747. 80156c4: 60fb str r3, [r7, #12]
  50748. }
  50749. return uxHighestPriorityOfWaitingTasks;
  50750. 80156c6: 68fb ldr r3, [r7, #12]
  50751. }
  50752. 80156c8: 4618 mov r0, r3
  50753. 80156ca: 3714 adds r7, #20
  50754. 80156cc: 46bd mov sp, r7
  50755. 80156ce: f85d 7b04 ldr.w r7, [sp], #4
  50756. 80156d2: 4770 bx lr
  50757. 080156d4 <prvCopyDataToQueue>:
  50758. #endif /* configUSE_MUTEXES */
  50759. /*-----------------------------------------------------------*/
  50760. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  50761. {
  50762. 80156d4: b580 push {r7, lr}
  50763. 80156d6: b086 sub sp, #24
  50764. 80156d8: af00 add r7, sp, #0
  50765. 80156da: 60f8 str r0, [r7, #12]
  50766. 80156dc: 60b9 str r1, [r7, #8]
  50767. 80156de: 607a str r2, [r7, #4]
  50768. BaseType_t xReturn = pdFALSE;
  50769. 80156e0: 2300 movs r3, #0
  50770. 80156e2: 617b str r3, [r7, #20]
  50771. UBaseType_t uxMessagesWaiting;
  50772. /* This function is called from a critical section. */
  50773. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50774. 80156e4: 68fb ldr r3, [r7, #12]
  50775. 80156e6: 6b9b ldr r3, [r3, #56] @ 0x38
  50776. 80156e8: 613b str r3, [r7, #16]
  50777. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  50778. 80156ea: 68fb ldr r3, [r7, #12]
  50779. 80156ec: 6c1b ldr r3, [r3, #64] @ 0x40
  50780. 80156ee: 2b00 cmp r3, #0
  50781. 80156f0: d10d bne.n 801570e <prvCopyDataToQueue+0x3a>
  50782. {
  50783. #if ( configUSE_MUTEXES == 1 )
  50784. {
  50785. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50786. 80156f2: 68fb ldr r3, [r7, #12]
  50787. 80156f4: 681b ldr r3, [r3, #0]
  50788. 80156f6: 2b00 cmp r3, #0
  50789. 80156f8: d14d bne.n 8015796 <prvCopyDataToQueue+0xc2>
  50790. {
  50791. /* The mutex is no longer being held. */
  50792. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  50793. 80156fa: 68fb ldr r3, [r7, #12]
  50794. 80156fc: 689b ldr r3, [r3, #8]
  50795. 80156fe: 4618 mov r0, r3
  50796. 8015700: f001 fa38 bl 8016b74 <xTaskPriorityDisinherit>
  50797. 8015704: 6178 str r0, [r7, #20]
  50798. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  50799. 8015706: 68fb ldr r3, [r7, #12]
  50800. 8015708: 2200 movs r2, #0
  50801. 801570a: 609a str r2, [r3, #8]
  50802. 801570c: e043 b.n 8015796 <prvCopyDataToQueue+0xc2>
  50803. mtCOVERAGE_TEST_MARKER();
  50804. }
  50805. }
  50806. #endif /* configUSE_MUTEXES */
  50807. }
  50808. else if( xPosition == queueSEND_TO_BACK )
  50809. 801570e: 687b ldr r3, [r7, #4]
  50810. 8015710: 2b00 cmp r3, #0
  50811. 8015712: d119 bne.n 8015748 <prvCopyDataToQueue+0x74>
  50812. {
  50813. ( 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. */
  50814. 8015714: 68fb ldr r3, [r7, #12]
  50815. 8015716: 6858 ldr r0, [r3, #4]
  50816. 8015718: 68fb ldr r3, [r7, #12]
  50817. 801571a: 6c1b ldr r3, [r3, #64] @ 0x40
  50818. 801571c: 461a mov r2, r3
  50819. 801571e: 68b9 ldr r1, [r7, #8]
  50820. 8015720: f002 fec4 bl 80184ac <memcpy>
  50821. 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. */
  50822. 8015724: 68fb ldr r3, [r7, #12]
  50823. 8015726: 685a ldr r2, [r3, #4]
  50824. 8015728: 68fb ldr r3, [r7, #12]
  50825. 801572a: 6c1b ldr r3, [r3, #64] @ 0x40
  50826. 801572c: 441a add r2, r3
  50827. 801572e: 68fb ldr r3, [r7, #12]
  50828. 8015730: 605a str r2, [r3, #4]
  50829. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50830. 8015732: 68fb ldr r3, [r7, #12]
  50831. 8015734: 685a ldr r2, [r3, #4]
  50832. 8015736: 68fb ldr r3, [r7, #12]
  50833. 8015738: 689b ldr r3, [r3, #8]
  50834. 801573a: 429a cmp r2, r3
  50835. 801573c: d32b bcc.n 8015796 <prvCopyDataToQueue+0xc2>
  50836. {
  50837. pxQueue->pcWriteTo = pxQueue->pcHead;
  50838. 801573e: 68fb ldr r3, [r7, #12]
  50839. 8015740: 681a ldr r2, [r3, #0]
  50840. 8015742: 68fb ldr r3, [r7, #12]
  50841. 8015744: 605a str r2, [r3, #4]
  50842. 8015746: e026 b.n 8015796 <prvCopyDataToQueue+0xc2>
  50843. mtCOVERAGE_TEST_MARKER();
  50844. }
  50845. }
  50846. else
  50847. {
  50848. ( 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. */
  50849. 8015748: 68fb ldr r3, [r7, #12]
  50850. 801574a: 68d8 ldr r0, [r3, #12]
  50851. 801574c: 68fb ldr r3, [r7, #12]
  50852. 801574e: 6c1b ldr r3, [r3, #64] @ 0x40
  50853. 8015750: 461a mov r2, r3
  50854. 8015752: 68b9 ldr r1, [r7, #8]
  50855. 8015754: f002 feaa bl 80184ac <memcpy>
  50856. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  50857. 8015758: 68fb ldr r3, [r7, #12]
  50858. 801575a: 68da ldr r2, [r3, #12]
  50859. 801575c: 68fb ldr r3, [r7, #12]
  50860. 801575e: 6c1b ldr r3, [r3, #64] @ 0x40
  50861. 8015760: 425b negs r3, r3
  50862. 8015762: 441a add r2, r3
  50863. 8015764: 68fb ldr r3, [r7, #12]
  50864. 8015766: 60da str r2, [r3, #12]
  50865. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50866. 8015768: 68fb ldr r3, [r7, #12]
  50867. 801576a: 68da ldr r2, [r3, #12]
  50868. 801576c: 68fb ldr r3, [r7, #12]
  50869. 801576e: 681b ldr r3, [r3, #0]
  50870. 8015770: 429a cmp r2, r3
  50871. 8015772: d207 bcs.n 8015784 <prvCopyDataToQueue+0xb0>
  50872. {
  50873. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  50874. 8015774: 68fb ldr r3, [r7, #12]
  50875. 8015776: 689a ldr r2, [r3, #8]
  50876. 8015778: 68fb ldr r3, [r7, #12]
  50877. 801577a: 6c1b ldr r3, [r3, #64] @ 0x40
  50878. 801577c: 425b negs r3, r3
  50879. 801577e: 441a add r2, r3
  50880. 8015780: 68fb ldr r3, [r7, #12]
  50881. 8015782: 60da str r2, [r3, #12]
  50882. else
  50883. {
  50884. mtCOVERAGE_TEST_MARKER();
  50885. }
  50886. if( xPosition == queueOVERWRITE )
  50887. 8015784: 687b ldr r3, [r7, #4]
  50888. 8015786: 2b02 cmp r3, #2
  50889. 8015788: d105 bne.n 8015796 <prvCopyDataToQueue+0xc2>
  50890. {
  50891. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50892. 801578a: 693b ldr r3, [r7, #16]
  50893. 801578c: 2b00 cmp r3, #0
  50894. 801578e: d002 beq.n 8015796 <prvCopyDataToQueue+0xc2>
  50895. {
  50896. /* An item is not being added but overwritten, so subtract
  50897. one from the recorded number of items in the queue so when
  50898. one is added again below the number of recorded items remains
  50899. correct. */
  50900. --uxMessagesWaiting;
  50901. 8015790: 693b ldr r3, [r7, #16]
  50902. 8015792: 3b01 subs r3, #1
  50903. 8015794: 613b str r3, [r7, #16]
  50904. {
  50905. mtCOVERAGE_TEST_MARKER();
  50906. }
  50907. }
  50908. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  50909. 8015796: 693b ldr r3, [r7, #16]
  50910. 8015798: 1c5a adds r2, r3, #1
  50911. 801579a: 68fb ldr r3, [r7, #12]
  50912. 801579c: 639a str r2, [r3, #56] @ 0x38
  50913. return xReturn;
  50914. 801579e: 697b ldr r3, [r7, #20]
  50915. }
  50916. 80157a0: 4618 mov r0, r3
  50917. 80157a2: 3718 adds r7, #24
  50918. 80157a4: 46bd mov sp, r7
  50919. 80157a6: bd80 pop {r7, pc}
  50920. 080157a8 <prvCopyDataFromQueue>:
  50921. /*-----------------------------------------------------------*/
  50922. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  50923. {
  50924. 80157a8: b580 push {r7, lr}
  50925. 80157aa: b082 sub sp, #8
  50926. 80157ac: af00 add r7, sp, #0
  50927. 80157ae: 6078 str r0, [r7, #4]
  50928. 80157b0: 6039 str r1, [r7, #0]
  50929. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50930. 80157b2: 687b ldr r3, [r7, #4]
  50931. 80157b4: 6c1b ldr r3, [r3, #64] @ 0x40
  50932. 80157b6: 2b00 cmp r3, #0
  50933. 80157b8: d018 beq.n 80157ec <prvCopyDataFromQueue+0x44>
  50934. {
  50935. 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. */
  50936. 80157ba: 687b ldr r3, [r7, #4]
  50937. 80157bc: 68da ldr r2, [r3, #12]
  50938. 80157be: 687b ldr r3, [r7, #4]
  50939. 80157c0: 6c1b ldr r3, [r3, #64] @ 0x40
  50940. 80157c2: 441a add r2, r3
  50941. 80157c4: 687b ldr r3, [r7, #4]
  50942. 80157c6: 60da str r2, [r3, #12]
  50943. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50944. 80157c8: 687b ldr r3, [r7, #4]
  50945. 80157ca: 68da ldr r2, [r3, #12]
  50946. 80157cc: 687b ldr r3, [r7, #4]
  50947. 80157ce: 689b ldr r3, [r3, #8]
  50948. 80157d0: 429a cmp r2, r3
  50949. 80157d2: d303 bcc.n 80157dc <prvCopyDataFromQueue+0x34>
  50950. {
  50951. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50952. 80157d4: 687b ldr r3, [r7, #4]
  50953. 80157d6: 681a ldr r2, [r3, #0]
  50954. 80157d8: 687b ldr r3, [r7, #4]
  50955. 80157da: 60da str r2, [r3, #12]
  50956. }
  50957. else
  50958. {
  50959. mtCOVERAGE_TEST_MARKER();
  50960. }
  50961. ( 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. */
  50962. 80157dc: 687b ldr r3, [r7, #4]
  50963. 80157de: 68d9 ldr r1, [r3, #12]
  50964. 80157e0: 687b ldr r3, [r7, #4]
  50965. 80157e2: 6c1b ldr r3, [r3, #64] @ 0x40
  50966. 80157e4: 461a mov r2, r3
  50967. 80157e6: 6838 ldr r0, [r7, #0]
  50968. 80157e8: f002 fe60 bl 80184ac <memcpy>
  50969. }
  50970. }
  50971. 80157ec: bf00 nop
  50972. 80157ee: 3708 adds r7, #8
  50973. 80157f0: 46bd mov sp, r7
  50974. 80157f2: bd80 pop {r7, pc}
  50975. 080157f4 <prvUnlockQueue>:
  50976. /*-----------------------------------------------------------*/
  50977. static void prvUnlockQueue( Queue_t * const pxQueue )
  50978. {
  50979. 80157f4: b580 push {r7, lr}
  50980. 80157f6: b084 sub sp, #16
  50981. 80157f8: af00 add r7, sp, #0
  50982. 80157fa: 6078 str r0, [r7, #4]
  50983. /* The lock counts contains the number of extra data items placed or
  50984. removed from the queue while the queue was locked. When a queue is
  50985. locked items can be added or removed, but the event lists cannot be
  50986. updated. */
  50987. taskENTER_CRITICAL();
  50988. 80157fc: f002 fabc bl 8017d78 <vPortEnterCritical>
  50989. {
  50990. int8_t cTxLock = pxQueue->cTxLock;
  50991. 8015800: 687b ldr r3, [r7, #4]
  50992. 8015802: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50993. 8015806: 73fb strb r3, [r7, #15]
  50994. /* See if data was added to the queue while it was locked. */
  50995. while( cTxLock > queueLOCKED_UNMODIFIED )
  50996. 8015808: e011 b.n 801582e <prvUnlockQueue+0x3a>
  50997. }
  50998. #else /* configUSE_QUEUE_SETS */
  50999. {
  51000. /* Tasks that are removed from the event list will get added to
  51001. the pending ready list as the scheduler is still suspended. */
  51002. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  51003. 801580a: 687b ldr r3, [r7, #4]
  51004. 801580c: 6a5b ldr r3, [r3, #36] @ 0x24
  51005. 801580e: 2b00 cmp r3, #0
  51006. 8015810: d012 beq.n 8015838 <prvUnlockQueue+0x44>
  51007. {
  51008. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  51009. 8015812: 687b ldr r3, [r7, #4]
  51010. 8015814: 3324 adds r3, #36 @ 0x24
  51011. 8015816: 4618 mov r0, r3
  51012. 8015818: f000 ff28 bl 801666c <xTaskRemoveFromEventList>
  51013. 801581c: 4603 mov r3, r0
  51014. 801581e: 2b00 cmp r3, #0
  51015. 8015820: d001 beq.n 8015826 <prvUnlockQueue+0x32>
  51016. {
  51017. /* The task waiting has a higher priority so record that
  51018. a context switch is required. */
  51019. vTaskMissedYield();
  51020. 8015822: f001 f829 bl 8016878 <vTaskMissedYield>
  51021. break;
  51022. }
  51023. }
  51024. #endif /* configUSE_QUEUE_SETS */
  51025. --cTxLock;
  51026. 8015826: 7bfb ldrb r3, [r7, #15]
  51027. 8015828: 3b01 subs r3, #1
  51028. 801582a: b2db uxtb r3, r3
  51029. 801582c: 73fb strb r3, [r7, #15]
  51030. while( cTxLock > queueLOCKED_UNMODIFIED )
  51031. 801582e: f997 300f ldrsb.w r3, [r7, #15]
  51032. 8015832: 2b00 cmp r3, #0
  51033. 8015834: dce9 bgt.n 801580a <prvUnlockQueue+0x16>
  51034. 8015836: e000 b.n 801583a <prvUnlockQueue+0x46>
  51035. break;
  51036. 8015838: bf00 nop
  51037. }
  51038. pxQueue->cTxLock = queueUNLOCKED;
  51039. 801583a: 687b ldr r3, [r7, #4]
  51040. 801583c: 22ff movs r2, #255 @ 0xff
  51041. 801583e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  51042. }
  51043. taskEXIT_CRITICAL();
  51044. 8015842: f002 facb bl 8017ddc <vPortExitCritical>
  51045. /* Do the same for the Rx lock. */
  51046. taskENTER_CRITICAL();
  51047. 8015846: f002 fa97 bl 8017d78 <vPortEnterCritical>
  51048. {
  51049. int8_t cRxLock = pxQueue->cRxLock;
  51050. 801584a: 687b ldr r3, [r7, #4]
  51051. 801584c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51052. 8015850: 73bb strb r3, [r7, #14]
  51053. while( cRxLock > queueLOCKED_UNMODIFIED )
  51054. 8015852: e011 b.n 8015878 <prvUnlockQueue+0x84>
  51055. {
  51056. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  51057. 8015854: 687b ldr r3, [r7, #4]
  51058. 8015856: 691b ldr r3, [r3, #16]
  51059. 8015858: 2b00 cmp r3, #0
  51060. 801585a: d012 beq.n 8015882 <prvUnlockQueue+0x8e>
  51061. {
  51062. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  51063. 801585c: 687b ldr r3, [r7, #4]
  51064. 801585e: 3310 adds r3, #16
  51065. 8015860: 4618 mov r0, r3
  51066. 8015862: f000 ff03 bl 801666c <xTaskRemoveFromEventList>
  51067. 8015866: 4603 mov r3, r0
  51068. 8015868: 2b00 cmp r3, #0
  51069. 801586a: d001 beq.n 8015870 <prvUnlockQueue+0x7c>
  51070. {
  51071. vTaskMissedYield();
  51072. 801586c: f001 f804 bl 8016878 <vTaskMissedYield>
  51073. else
  51074. {
  51075. mtCOVERAGE_TEST_MARKER();
  51076. }
  51077. --cRxLock;
  51078. 8015870: 7bbb ldrb r3, [r7, #14]
  51079. 8015872: 3b01 subs r3, #1
  51080. 8015874: b2db uxtb r3, r3
  51081. 8015876: 73bb strb r3, [r7, #14]
  51082. while( cRxLock > queueLOCKED_UNMODIFIED )
  51083. 8015878: f997 300e ldrsb.w r3, [r7, #14]
  51084. 801587c: 2b00 cmp r3, #0
  51085. 801587e: dce9 bgt.n 8015854 <prvUnlockQueue+0x60>
  51086. 8015880: e000 b.n 8015884 <prvUnlockQueue+0x90>
  51087. }
  51088. else
  51089. {
  51090. break;
  51091. 8015882: bf00 nop
  51092. }
  51093. }
  51094. pxQueue->cRxLock = queueUNLOCKED;
  51095. 8015884: 687b ldr r3, [r7, #4]
  51096. 8015886: 22ff movs r2, #255 @ 0xff
  51097. 8015888: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51098. }
  51099. taskEXIT_CRITICAL();
  51100. 801588c: f002 faa6 bl 8017ddc <vPortExitCritical>
  51101. }
  51102. 8015890: bf00 nop
  51103. 8015892: 3710 adds r7, #16
  51104. 8015894: 46bd mov sp, r7
  51105. 8015896: bd80 pop {r7, pc}
  51106. 08015898 <prvIsQueueEmpty>:
  51107. /*-----------------------------------------------------------*/
  51108. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  51109. {
  51110. 8015898: b580 push {r7, lr}
  51111. 801589a: b084 sub sp, #16
  51112. 801589c: af00 add r7, sp, #0
  51113. 801589e: 6078 str r0, [r7, #4]
  51114. BaseType_t xReturn;
  51115. taskENTER_CRITICAL();
  51116. 80158a0: f002 fa6a bl 8017d78 <vPortEnterCritical>
  51117. {
  51118. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  51119. 80158a4: 687b ldr r3, [r7, #4]
  51120. 80158a6: 6b9b ldr r3, [r3, #56] @ 0x38
  51121. 80158a8: 2b00 cmp r3, #0
  51122. 80158aa: d102 bne.n 80158b2 <prvIsQueueEmpty+0x1a>
  51123. {
  51124. xReturn = pdTRUE;
  51125. 80158ac: 2301 movs r3, #1
  51126. 80158ae: 60fb str r3, [r7, #12]
  51127. 80158b0: e001 b.n 80158b6 <prvIsQueueEmpty+0x1e>
  51128. }
  51129. else
  51130. {
  51131. xReturn = pdFALSE;
  51132. 80158b2: 2300 movs r3, #0
  51133. 80158b4: 60fb str r3, [r7, #12]
  51134. }
  51135. }
  51136. taskEXIT_CRITICAL();
  51137. 80158b6: f002 fa91 bl 8017ddc <vPortExitCritical>
  51138. return xReturn;
  51139. 80158ba: 68fb ldr r3, [r7, #12]
  51140. }
  51141. 80158bc: 4618 mov r0, r3
  51142. 80158be: 3710 adds r7, #16
  51143. 80158c0: 46bd mov sp, r7
  51144. 80158c2: bd80 pop {r7, pc}
  51145. 080158c4 <prvIsQueueFull>:
  51146. return xReturn;
  51147. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  51148. /*-----------------------------------------------------------*/
  51149. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  51150. {
  51151. 80158c4: b580 push {r7, lr}
  51152. 80158c6: b084 sub sp, #16
  51153. 80158c8: af00 add r7, sp, #0
  51154. 80158ca: 6078 str r0, [r7, #4]
  51155. BaseType_t xReturn;
  51156. taskENTER_CRITICAL();
  51157. 80158cc: f002 fa54 bl 8017d78 <vPortEnterCritical>
  51158. {
  51159. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  51160. 80158d0: 687b ldr r3, [r7, #4]
  51161. 80158d2: 6b9a ldr r2, [r3, #56] @ 0x38
  51162. 80158d4: 687b ldr r3, [r7, #4]
  51163. 80158d6: 6bdb ldr r3, [r3, #60] @ 0x3c
  51164. 80158d8: 429a cmp r2, r3
  51165. 80158da: d102 bne.n 80158e2 <prvIsQueueFull+0x1e>
  51166. {
  51167. xReturn = pdTRUE;
  51168. 80158dc: 2301 movs r3, #1
  51169. 80158de: 60fb str r3, [r7, #12]
  51170. 80158e0: e001 b.n 80158e6 <prvIsQueueFull+0x22>
  51171. }
  51172. else
  51173. {
  51174. xReturn = pdFALSE;
  51175. 80158e2: 2300 movs r3, #0
  51176. 80158e4: 60fb str r3, [r7, #12]
  51177. }
  51178. }
  51179. taskEXIT_CRITICAL();
  51180. 80158e6: f002 fa79 bl 8017ddc <vPortExitCritical>
  51181. return xReturn;
  51182. 80158ea: 68fb ldr r3, [r7, #12]
  51183. }
  51184. 80158ec: 4618 mov r0, r3
  51185. 80158ee: 3710 adds r7, #16
  51186. 80158f0: 46bd mov sp, r7
  51187. 80158f2: bd80 pop {r7, pc}
  51188. 080158f4 <vQueueAddToRegistry>:
  51189. /*-----------------------------------------------------------*/
  51190. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  51191. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51192. {
  51193. 80158f4: b480 push {r7}
  51194. 80158f6: b085 sub sp, #20
  51195. 80158f8: af00 add r7, sp, #0
  51196. 80158fa: 6078 str r0, [r7, #4]
  51197. 80158fc: 6039 str r1, [r7, #0]
  51198. UBaseType_t ux;
  51199. /* See if there is an empty space in the registry. A NULL name denotes
  51200. a free slot. */
  51201. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51202. 80158fe: 2300 movs r3, #0
  51203. 8015900: 60fb str r3, [r7, #12]
  51204. 8015902: e014 b.n 801592e <vQueueAddToRegistry+0x3a>
  51205. {
  51206. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  51207. 8015904: 4a0f ldr r2, [pc, #60] @ (8015944 <vQueueAddToRegistry+0x50>)
  51208. 8015906: 68fb ldr r3, [r7, #12]
  51209. 8015908: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  51210. 801590c: 2b00 cmp r3, #0
  51211. 801590e: d10b bne.n 8015928 <vQueueAddToRegistry+0x34>
  51212. {
  51213. /* Store the information on this queue. */
  51214. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  51215. 8015910: 490c ldr r1, [pc, #48] @ (8015944 <vQueueAddToRegistry+0x50>)
  51216. 8015912: 68fb ldr r3, [r7, #12]
  51217. 8015914: 683a ldr r2, [r7, #0]
  51218. 8015916: f841 2033 str.w r2, [r1, r3, lsl #3]
  51219. xQueueRegistry[ ux ].xHandle = xQueue;
  51220. 801591a: 4a0a ldr r2, [pc, #40] @ (8015944 <vQueueAddToRegistry+0x50>)
  51221. 801591c: 68fb ldr r3, [r7, #12]
  51222. 801591e: 00db lsls r3, r3, #3
  51223. 8015920: 4413 add r3, r2
  51224. 8015922: 687a ldr r2, [r7, #4]
  51225. 8015924: 605a str r2, [r3, #4]
  51226. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  51227. break;
  51228. 8015926: e006 b.n 8015936 <vQueueAddToRegistry+0x42>
  51229. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51230. 8015928: 68fb ldr r3, [r7, #12]
  51231. 801592a: 3301 adds r3, #1
  51232. 801592c: 60fb str r3, [r7, #12]
  51233. 801592e: 68fb ldr r3, [r7, #12]
  51234. 8015930: 2b07 cmp r3, #7
  51235. 8015932: d9e7 bls.n 8015904 <vQueueAddToRegistry+0x10>
  51236. else
  51237. {
  51238. mtCOVERAGE_TEST_MARKER();
  51239. }
  51240. }
  51241. }
  51242. 8015934: bf00 nop
  51243. 8015936: bf00 nop
  51244. 8015938: 3714 adds r7, #20
  51245. 801593a: 46bd mov sp, r7
  51246. 801593c: f85d 7b04 ldr.w r7, [sp], #4
  51247. 8015940: 4770 bx lr
  51248. 8015942: bf00 nop
  51249. 8015944: 240029b8 .word 0x240029b8
  51250. 08015948 <vQueueWaitForMessageRestricted>:
  51251. /*-----------------------------------------------------------*/
  51252. #if ( configUSE_TIMERS == 1 )
  51253. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  51254. {
  51255. 8015948: b580 push {r7, lr}
  51256. 801594a: b086 sub sp, #24
  51257. 801594c: af00 add r7, sp, #0
  51258. 801594e: 60f8 str r0, [r7, #12]
  51259. 8015950: 60b9 str r1, [r7, #8]
  51260. 8015952: 607a str r2, [r7, #4]
  51261. Queue_t * const pxQueue = xQueue;
  51262. 8015954: 68fb ldr r3, [r7, #12]
  51263. 8015956: 617b str r3, [r7, #20]
  51264. will not actually cause the task to block, just place it on a blocked
  51265. list. It will not block until the scheduler is unlocked - at which
  51266. time a yield will be performed. If an item is added to the queue while
  51267. the queue is locked, and the calling task blocks on the queue, then the
  51268. calling task will be immediately unblocked when the queue is unlocked. */
  51269. prvLockQueue( pxQueue );
  51270. 8015958: f002 fa0e bl 8017d78 <vPortEnterCritical>
  51271. 801595c: 697b ldr r3, [r7, #20]
  51272. 801595e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51273. 8015962: b25b sxtb r3, r3
  51274. 8015964: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51275. 8015968: d103 bne.n 8015972 <vQueueWaitForMessageRestricted+0x2a>
  51276. 801596a: 697b ldr r3, [r7, #20]
  51277. 801596c: 2200 movs r2, #0
  51278. 801596e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51279. 8015972: 697b ldr r3, [r7, #20]
  51280. 8015974: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  51281. 8015978: b25b sxtb r3, r3
  51282. 801597a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51283. 801597e: d103 bne.n 8015988 <vQueueWaitForMessageRestricted+0x40>
  51284. 8015980: 697b ldr r3, [r7, #20]
  51285. 8015982: 2200 movs r2, #0
  51286. 8015984: f883 2045 strb.w r2, [r3, #69] @ 0x45
  51287. 8015988: f002 fa28 bl 8017ddc <vPortExitCritical>
  51288. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  51289. 801598c: 697b ldr r3, [r7, #20]
  51290. 801598e: 6b9b ldr r3, [r3, #56] @ 0x38
  51291. 8015990: 2b00 cmp r3, #0
  51292. 8015992: d106 bne.n 80159a2 <vQueueWaitForMessageRestricted+0x5a>
  51293. {
  51294. /* There is nothing in the queue, block for the specified period. */
  51295. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  51296. 8015994: 697b ldr r3, [r7, #20]
  51297. 8015996: 3324 adds r3, #36 @ 0x24
  51298. 8015998: 687a ldr r2, [r7, #4]
  51299. 801599a: 68b9 ldr r1, [r7, #8]
  51300. 801599c: 4618 mov r0, r3
  51301. 801599e: f000 fe39 bl 8016614 <vTaskPlaceOnEventListRestricted>
  51302. }
  51303. else
  51304. {
  51305. mtCOVERAGE_TEST_MARKER();
  51306. }
  51307. prvUnlockQueue( pxQueue );
  51308. 80159a2: 6978 ldr r0, [r7, #20]
  51309. 80159a4: f7ff ff26 bl 80157f4 <prvUnlockQueue>
  51310. }
  51311. 80159a8: bf00 nop
  51312. 80159aa: 3718 adds r7, #24
  51313. 80159ac: 46bd mov sp, r7
  51314. 80159ae: bd80 pop {r7, pc}
  51315. 080159b0 <xStreamBufferSpacesAvailable>:
  51316. return xReturn;
  51317. }
  51318. /*-----------------------------------------------------------*/
  51319. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  51320. {
  51321. 80159b0: b480 push {r7}
  51322. 80159b2: b087 sub sp, #28
  51323. 80159b4: af00 add r7, sp, #0
  51324. 80159b6: 6078 str r0, [r7, #4]
  51325. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51326. 80159b8: 687b ldr r3, [r7, #4]
  51327. 80159ba: 613b str r3, [r7, #16]
  51328. size_t xSpace;
  51329. configASSERT( pxStreamBuffer );
  51330. 80159bc: 693b ldr r3, [r7, #16]
  51331. 80159be: 2b00 cmp r3, #0
  51332. 80159c0: d10b bne.n 80159da <xStreamBufferSpacesAvailable+0x2a>
  51333. __asm volatile
  51334. 80159c2: f04f 0350 mov.w r3, #80 @ 0x50
  51335. 80159c6: f383 8811 msr BASEPRI, r3
  51336. 80159ca: f3bf 8f6f isb sy
  51337. 80159ce: f3bf 8f4f dsb sy
  51338. 80159d2: 60fb str r3, [r7, #12]
  51339. }
  51340. 80159d4: bf00 nop
  51341. 80159d6: bf00 nop
  51342. 80159d8: e7fd b.n 80159d6 <xStreamBufferSpacesAvailable+0x26>
  51343. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  51344. 80159da: 693b ldr r3, [r7, #16]
  51345. 80159dc: 689a ldr r2, [r3, #8]
  51346. 80159de: 693b ldr r3, [r7, #16]
  51347. 80159e0: 681b ldr r3, [r3, #0]
  51348. 80159e2: 4413 add r3, r2
  51349. 80159e4: 617b str r3, [r7, #20]
  51350. xSpace -= pxStreamBuffer->xHead;
  51351. 80159e6: 693b ldr r3, [r7, #16]
  51352. 80159e8: 685b ldr r3, [r3, #4]
  51353. 80159ea: 697a ldr r2, [r7, #20]
  51354. 80159ec: 1ad3 subs r3, r2, r3
  51355. 80159ee: 617b str r3, [r7, #20]
  51356. xSpace -= ( size_t ) 1;
  51357. 80159f0: 697b ldr r3, [r7, #20]
  51358. 80159f2: 3b01 subs r3, #1
  51359. 80159f4: 617b str r3, [r7, #20]
  51360. if( xSpace >= pxStreamBuffer->xLength )
  51361. 80159f6: 693b ldr r3, [r7, #16]
  51362. 80159f8: 689b ldr r3, [r3, #8]
  51363. 80159fa: 697a ldr r2, [r7, #20]
  51364. 80159fc: 429a cmp r2, r3
  51365. 80159fe: d304 bcc.n 8015a0a <xStreamBufferSpacesAvailable+0x5a>
  51366. {
  51367. xSpace -= pxStreamBuffer->xLength;
  51368. 8015a00: 693b ldr r3, [r7, #16]
  51369. 8015a02: 689b ldr r3, [r3, #8]
  51370. 8015a04: 697a ldr r2, [r7, #20]
  51371. 8015a06: 1ad3 subs r3, r2, r3
  51372. 8015a08: 617b str r3, [r7, #20]
  51373. else
  51374. {
  51375. mtCOVERAGE_TEST_MARKER();
  51376. }
  51377. return xSpace;
  51378. 8015a0a: 697b ldr r3, [r7, #20]
  51379. }
  51380. 8015a0c: 4618 mov r0, r3
  51381. 8015a0e: 371c adds r7, #28
  51382. 8015a10: 46bd mov sp, r7
  51383. 8015a12: f85d 7b04 ldr.w r7, [sp], #4
  51384. 8015a16: 4770 bx lr
  51385. 08015a18 <xStreamBufferSend>:
  51386. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  51387. const void *pvTxData,
  51388. size_t xDataLengthBytes,
  51389. TickType_t xTicksToWait )
  51390. {
  51391. 8015a18: b580 push {r7, lr}
  51392. 8015a1a: b090 sub sp, #64 @ 0x40
  51393. 8015a1c: af02 add r7, sp, #8
  51394. 8015a1e: 60f8 str r0, [r7, #12]
  51395. 8015a20: 60b9 str r1, [r7, #8]
  51396. 8015a22: 607a str r2, [r7, #4]
  51397. 8015a24: 603b str r3, [r7, #0]
  51398. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51399. 8015a26: 68fb ldr r3, [r7, #12]
  51400. 8015a28: 62fb str r3, [r7, #44] @ 0x2c
  51401. size_t xReturn, xSpace = 0;
  51402. 8015a2a: 2300 movs r3, #0
  51403. 8015a2c: 637b str r3, [r7, #52] @ 0x34
  51404. size_t xRequiredSpace = xDataLengthBytes;
  51405. 8015a2e: 687b ldr r3, [r7, #4]
  51406. 8015a30: 633b str r3, [r7, #48] @ 0x30
  51407. TimeOut_t xTimeOut;
  51408. configASSERT( pvTxData );
  51409. 8015a32: 68bb ldr r3, [r7, #8]
  51410. 8015a34: 2b00 cmp r3, #0
  51411. 8015a36: d10b bne.n 8015a50 <xStreamBufferSend+0x38>
  51412. __asm volatile
  51413. 8015a38: f04f 0350 mov.w r3, #80 @ 0x50
  51414. 8015a3c: f383 8811 msr BASEPRI, r3
  51415. 8015a40: f3bf 8f6f isb sy
  51416. 8015a44: f3bf 8f4f dsb sy
  51417. 8015a48: 627b str r3, [r7, #36] @ 0x24
  51418. }
  51419. 8015a4a: bf00 nop
  51420. 8015a4c: bf00 nop
  51421. 8015a4e: e7fd b.n 8015a4c <xStreamBufferSend+0x34>
  51422. configASSERT( pxStreamBuffer );
  51423. 8015a50: 6afb ldr r3, [r7, #44] @ 0x2c
  51424. 8015a52: 2b00 cmp r3, #0
  51425. 8015a54: d10b bne.n 8015a6e <xStreamBufferSend+0x56>
  51426. __asm volatile
  51427. 8015a56: f04f 0350 mov.w r3, #80 @ 0x50
  51428. 8015a5a: f383 8811 msr BASEPRI, r3
  51429. 8015a5e: f3bf 8f6f isb sy
  51430. 8015a62: f3bf 8f4f dsb sy
  51431. 8015a66: 623b str r3, [r7, #32]
  51432. }
  51433. 8015a68: bf00 nop
  51434. 8015a6a: bf00 nop
  51435. 8015a6c: e7fd b.n 8015a6a <xStreamBufferSend+0x52>
  51436. /* This send function is used to write to both message buffers and stream
  51437. buffers. If this is a message buffer then the space needed must be
  51438. increased by the amount of bytes needed to store the length of the
  51439. message. */
  51440. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  51441. 8015a6e: 6afb ldr r3, [r7, #44] @ 0x2c
  51442. 8015a70: 7f1b ldrb r3, [r3, #28]
  51443. 8015a72: f003 0301 and.w r3, r3, #1
  51444. 8015a76: 2b00 cmp r3, #0
  51445. 8015a78: d012 beq.n 8015aa0 <xStreamBufferSend+0x88>
  51446. {
  51447. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  51448. 8015a7a: 6b3b ldr r3, [r7, #48] @ 0x30
  51449. 8015a7c: 3304 adds r3, #4
  51450. 8015a7e: 633b str r3, [r7, #48] @ 0x30
  51451. /* Overflow? */
  51452. configASSERT( xRequiredSpace > xDataLengthBytes );
  51453. 8015a80: 6b3a ldr r2, [r7, #48] @ 0x30
  51454. 8015a82: 687b ldr r3, [r7, #4]
  51455. 8015a84: 429a cmp r2, r3
  51456. 8015a86: d80b bhi.n 8015aa0 <xStreamBufferSend+0x88>
  51457. __asm volatile
  51458. 8015a88: f04f 0350 mov.w r3, #80 @ 0x50
  51459. 8015a8c: f383 8811 msr BASEPRI, r3
  51460. 8015a90: f3bf 8f6f isb sy
  51461. 8015a94: f3bf 8f4f dsb sy
  51462. 8015a98: 61fb str r3, [r7, #28]
  51463. }
  51464. 8015a9a: bf00 nop
  51465. 8015a9c: bf00 nop
  51466. 8015a9e: e7fd b.n 8015a9c <xStreamBufferSend+0x84>
  51467. else
  51468. {
  51469. mtCOVERAGE_TEST_MARKER();
  51470. }
  51471. if( xTicksToWait != ( TickType_t ) 0 )
  51472. 8015aa0: 683b ldr r3, [r7, #0]
  51473. 8015aa2: 2b00 cmp r3, #0
  51474. 8015aa4: d03f beq.n 8015b26 <xStreamBufferSend+0x10e>
  51475. {
  51476. vTaskSetTimeOutState( &xTimeOut );
  51477. 8015aa6: f107 0310 add.w r3, r7, #16
  51478. 8015aaa: 4618 mov r0, r3
  51479. 8015aac: f000 fe42 bl 8016734 <vTaskSetTimeOutState>
  51480. do
  51481. {
  51482. /* Wait until the required number of bytes are free in the message
  51483. buffer. */
  51484. taskENTER_CRITICAL();
  51485. 8015ab0: f002 f962 bl 8017d78 <vPortEnterCritical>
  51486. {
  51487. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51488. 8015ab4: 6af8 ldr r0, [r7, #44] @ 0x2c
  51489. 8015ab6: f7ff ff7b bl 80159b0 <xStreamBufferSpacesAvailable>
  51490. 8015aba: 6378 str r0, [r7, #52] @ 0x34
  51491. if( xSpace < xRequiredSpace )
  51492. 8015abc: 6b7a ldr r2, [r7, #52] @ 0x34
  51493. 8015abe: 6b3b ldr r3, [r7, #48] @ 0x30
  51494. 8015ac0: 429a cmp r2, r3
  51495. 8015ac2: d218 bcs.n 8015af6 <xStreamBufferSend+0xde>
  51496. {
  51497. /* Clear notification state as going to wait for space. */
  51498. ( void ) xTaskNotifyStateClear( NULL );
  51499. 8015ac4: 2000 movs r0, #0
  51500. 8015ac6: f001 fb65 bl 8017194 <xTaskNotifyStateClear>
  51501. /* Should only be one writer. */
  51502. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  51503. 8015aca: 6afb ldr r3, [r7, #44] @ 0x2c
  51504. 8015acc: 695b ldr r3, [r3, #20]
  51505. 8015ace: 2b00 cmp r3, #0
  51506. 8015ad0: d00b beq.n 8015aea <xStreamBufferSend+0xd2>
  51507. __asm volatile
  51508. 8015ad2: f04f 0350 mov.w r3, #80 @ 0x50
  51509. 8015ad6: f383 8811 msr BASEPRI, r3
  51510. 8015ada: f3bf 8f6f isb sy
  51511. 8015ade: f3bf 8f4f dsb sy
  51512. 8015ae2: 61bb str r3, [r7, #24]
  51513. }
  51514. 8015ae4: bf00 nop
  51515. 8015ae6: bf00 nop
  51516. 8015ae8: e7fd b.n 8015ae6 <xStreamBufferSend+0xce>
  51517. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  51518. 8015aea: f000 ffad bl 8016a48 <xTaskGetCurrentTaskHandle>
  51519. 8015aee: 4602 mov r2, r0
  51520. 8015af0: 6afb ldr r3, [r7, #44] @ 0x2c
  51521. 8015af2: 615a str r2, [r3, #20]
  51522. 8015af4: e002 b.n 8015afc <xStreamBufferSend+0xe4>
  51523. }
  51524. else
  51525. {
  51526. taskEXIT_CRITICAL();
  51527. 8015af6: f002 f971 bl 8017ddc <vPortExitCritical>
  51528. break;
  51529. 8015afa: e014 b.n 8015b26 <xStreamBufferSend+0x10e>
  51530. }
  51531. }
  51532. taskEXIT_CRITICAL();
  51533. 8015afc: f002 f96e bl 8017ddc <vPortExitCritical>
  51534. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  51535. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  51536. 8015b00: 683b ldr r3, [r7, #0]
  51537. 8015b02: 2200 movs r2, #0
  51538. 8015b04: 2100 movs r1, #0
  51539. 8015b06: 2000 movs r0, #0
  51540. 8015b08: f001 f93c bl 8016d84 <xTaskNotifyWait>
  51541. pxStreamBuffer->xTaskWaitingToSend = NULL;
  51542. 8015b0c: 6afb ldr r3, [r7, #44] @ 0x2c
  51543. 8015b0e: 2200 movs r2, #0
  51544. 8015b10: 615a str r2, [r3, #20]
  51545. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  51546. 8015b12: 463a mov r2, r7
  51547. 8015b14: f107 0310 add.w r3, r7, #16
  51548. 8015b18: 4611 mov r1, r2
  51549. 8015b1a: 4618 mov r0, r3
  51550. 8015b1c: f000 fe48 bl 80167b0 <xTaskCheckForTimeOut>
  51551. 8015b20: 4603 mov r3, r0
  51552. 8015b22: 2b00 cmp r3, #0
  51553. 8015b24: d0c4 beq.n 8015ab0 <xStreamBufferSend+0x98>
  51554. else
  51555. {
  51556. mtCOVERAGE_TEST_MARKER();
  51557. }
  51558. if( xSpace == ( size_t ) 0 )
  51559. 8015b26: 6b7b ldr r3, [r7, #52] @ 0x34
  51560. 8015b28: 2b00 cmp r3, #0
  51561. 8015b2a: d103 bne.n 8015b34 <xStreamBufferSend+0x11c>
  51562. {
  51563. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51564. 8015b2c: 6af8 ldr r0, [r7, #44] @ 0x2c
  51565. 8015b2e: f7ff ff3f bl 80159b0 <xStreamBufferSpacesAvailable>
  51566. 8015b32: 6378 str r0, [r7, #52] @ 0x34
  51567. else
  51568. {
  51569. mtCOVERAGE_TEST_MARKER();
  51570. }
  51571. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  51572. 8015b34: 6b3b ldr r3, [r7, #48] @ 0x30
  51573. 8015b36: 9300 str r3, [sp, #0]
  51574. 8015b38: 6b7b ldr r3, [r7, #52] @ 0x34
  51575. 8015b3a: 687a ldr r2, [r7, #4]
  51576. 8015b3c: 68b9 ldr r1, [r7, #8]
  51577. 8015b3e: 6af8 ldr r0, [r7, #44] @ 0x2c
  51578. 8015b40: f000 f823 bl 8015b8a <prvWriteMessageToBuffer>
  51579. 8015b44: 62b8 str r0, [r7, #40] @ 0x28
  51580. if( xReturn > ( size_t ) 0 )
  51581. 8015b46: 6abb ldr r3, [r7, #40] @ 0x28
  51582. 8015b48: 2b00 cmp r3, #0
  51583. 8015b4a: d019 beq.n 8015b80 <xStreamBufferSend+0x168>
  51584. {
  51585. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  51586. /* Was a task waiting for the data? */
  51587. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  51588. 8015b4c: 6af8 ldr r0, [r7, #44] @ 0x2c
  51589. 8015b4e: f000 f8ce bl 8015cee <prvBytesInBuffer>
  51590. 8015b52: 4602 mov r2, r0
  51591. 8015b54: 6afb ldr r3, [r7, #44] @ 0x2c
  51592. 8015b56: 68db ldr r3, [r3, #12]
  51593. 8015b58: 429a cmp r2, r3
  51594. 8015b5a: d311 bcc.n 8015b80 <xStreamBufferSend+0x168>
  51595. {
  51596. sbSEND_COMPLETED( pxStreamBuffer );
  51597. 8015b5c: f000 fb4a bl 80161f4 <vTaskSuspendAll>
  51598. 8015b60: 6afb ldr r3, [r7, #44] @ 0x2c
  51599. 8015b62: 691b ldr r3, [r3, #16]
  51600. 8015b64: 2b00 cmp r3, #0
  51601. 8015b66: d009 beq.n 8015b7c <xStreamBufferSend+0x164>
  51602. 8015b68: 6afb ldr r3, [r7, #44] @ 0x2c
  51603. 8015b6a: 6918 ldr r0, [r3, #16]
  51604. 8015b6c: 2300 movs r3, #0
  51605. 8015b6e: 2200 movs r2, #0
  51606. 8015b70: 2100 movs r1, #0
  51607. 8015b72: f001 f967 bl 8016e44 <xTaskGenericNotify>
  51608. 8015b76: 6afb ldr r3, [r7, #44] @ 0x2c
  51609. 8015b78: 2200 movs r2, #0
  51610. 8015b7a: 611a str r2, [r3, #16]
  51611. 8015b7c: f000 fb48 bl 8016210 <xTaskResumeAll>
  51612. {
  51613. mtCOVERAGE_TEST_MARKER();
  51614. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  51615. }
  51616. return xReturn;
  51617. 8015b80: 6abb ldr r3, [r7, #40] @ 0x28
  51618. }
  51619. 8015b82: 4618 mov r0, r3
  51620. 8015b84: 3738 adds r7, #56 @ 0x38
  51621. 8015b86: 46bd mov sp, r7
  51622. 8015b88: bd80 pop {r7, pc}
  51623. 08015b8a <prvWriteMessageToBuffer>:
  51624. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  51625. const void * pvTxData,
  51626. size_t xDataLengthBytes,
  51627. size_t xSpace,
  51628. size_t xRequiredSpace )
  51629. {
  51630. 8015b8a: b580 push {r7, lr}
  51631. 8015b8c: b086 sub sp, #24
  51632. 8015b8e: af00 add r7, sp, #0
  51633. 8015b90: 60f8 str r0, [r7, #12]
  51634. 8015b92: 60b9 str r1, [r7, #8]
  51635. 8015b94: 607a str r2, [r7, #4]
  51636. 8015b96: 603b str r3, [r7, #0]
  51637. BaseType_t xShouldWrite;
  51638. size_t xReturn;
  51639. if( xSpace == ( size_t ) 0 )
  51640. 8015b98: 683b ldr r3, [r7, #0]
  51641. 8015b9a: 2b00 cmp r3, #0
  51642. 8015b9c: d102 bne.n 8015ba4 <prvWriteMessageToBuffer+0x1a>
  51643. {
  51644. /* Doesn't matter if this is a stream buffer or a message buffer, there
  51645. is no space to write. */
  51646. xShouldWrite = pdFALSE;
  51647. 8015b9e: 2300 movs r3, #0
  51648. 8015ba0: 617b str r3, [r7, #20]
  51649. 8015ba2: e01d b.n 8015be0 <prvWriteMessageToBuffer+0x56>
  51650. }
  51651. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  51652. 8015ba4: 68fb ldr r3, [r7, #12]
  51653. 8015ba6: 7f1b ldrb r3, [r3, #28]
  51654. 8015ba8: f003 0301 and.w r3, r3, #1
  51655. 8015bac: 2b00 cmp r3, #0
  51656. 8015bae: d108 bne.n 8015bc2 <prvWriteMessageToBuffer+0x38>
  51657. {
  51658. /* This is a stream buffer, as opposed to a message buffer, so writing a
  51659. stream of bytes rather than discrete messages. Write as many bytes as
  51660. possible. */
  51661. xShouldWrite = pdTRUE;
  51662. 8015bb0: 2301 movs r3, #1
  51663. 8015bb2: 617b str r3, [r7, #20]
  51664. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  51665. 8015bb4: 687a ldr r2, [r7, #4]
  51666. 8015bb6: 683b ldr r3, [r7, #0]
  51667. 8015bb8: 4293 cmp r3, r2
  51668. 8015bba: bf28 it cs
  51669. 8015bbc: 4613 movcs r3, r2
  51670. 8015bbe: 607b str r3, [r7, #4]
  51671. 8015bc0: e00e b.n 8015be0 <prvWriteMessageToBuffer+0x56>
  51672. }
  51673. else if( xSpace >= xRequiredSpace )
  51674. 8015bc2: 683a ldr r2, [r7, #0]
  51675. 8015bc4: 6a3b ldr r3, [r7, #32]
  51676. 8015bc6: 429a cmp r2, r3
  51677. 8015bc8: d308 bcc.n 8015bdc <prvWriteMessageToBuffer+0x52>
  51678. {
  51679. /* This is a message buffer, as opposed to a stream buffer, and there
  51680. is enough space to write both the message length and the message itself
  51681. into the buffer. Start by writing the length of the data, the data
  51682. itself will be written later in this function. */
  51683. xShouldWrite = pdTRUE;
  51684. 8015bca: 2301 movs r3, #1
  51685. 8015bcc: 617b str r3, [r7, #20]
  51686. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  51687. 8015bce: 1d3b adds r3, r7, #4
  51688. 8015bd0: 2204 movs r2, #4
  51689. 8015bd2: 4619 mov r1, r3
  51690. 8015bd4: 68f8 ldr r0, [r7, #12]
  51691. 8015bd6: f000 f815 bl 8015c04 <prvWriteBytesToBuffer>
  51692. 8015bda: e001 b.n 8015be0 <prvWriteMessageToBuffer+0x56>
  51693. }
  51694. else
  51695. {
  51696. /* There is space available, but not enough space. */
  51697. xShouldWrite = pdFALSE;
  51698. 8015bdc: 2300 movs r3, #0
  51699. 8015bde: 617b str r3, [r7, #20]
  51700. }
  51701. if( xShouldWrite != pdFALSE )
  51702. 8015be0: 697b ldr r3, [r7, #20]
  51703. 8015be2: 2b00 cmp r3, #0
  51704. 8015be4: d007 beq.n 8015bf6 <prvWriteMessageToBuffer+0x6c>
  51705. {
  51706. /* Writes the data itself. */
  51707. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  51708. 8015be6: 687b ldr r3, [r7, #4]
  51709. 8015be8: 461a mov r2, r3
  51710. 8015bea: 68b9 ldr r1, [r7, #8]
  51711. 8015bec: 68f8 ldr r0, [r7, #12]
  51712. 8015bee: f000 f809 bl 8015c04 <prvWriteBytesToBuffer>
  51713. 8015bf2: 6138 str r0, [r7, #16]
  51714. 8015bf4: e001 b.n 8015bfa <prvWriteMessageToBuffer+0x70>
  51715. }
  51716. else
  51717. {
  51718. xReturn = 0;
  51719. 8015bf6: 2300 movs r3, #0
  51720. 8015bf8: 613b str r3, [r7, #16]
  51721. }
  51722. return xReturn;
  51723. 8015bfa: 693b ldr r3, [r7, #16]
  51724. }
  51725. 8015bfc: 4618 mov r0, r3
  51726. 8015bfe: 3718 adds r7, #24
  51727. 8015c00: 46bd mov sp, r7
  51728. 8015c02: bd80 pop {r7, pc}
  51729. 08015c04 <prvWriteBytesToBuffer>:
  51730. return xReturn;
  51731. }
  51732. /*-----------------------------------------------------------*/
  51733. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  51734. {
  51735. 8015c04: b580 push {r7, lr}
  51736. 8015c06: b08a sub sp, #40 @ 0x28
  51737. 8015c08: af00 add r7, sp, #0
  51738. 8015c0a: 60f8 str r0, [r7, #12]
  51739. 8015c0c: 60b9 str r1, [r7, #8]
  51740. 8015c0e: 607a str r2, [r7, #4]
  51741. size_t xNextHead, xFirstLength;
  51742. configASSERT( xCount > ( size_t ) 0 );
  51743. 8015c10: 687b ldr r3, [r7, #4]
  51744. 8015c12: 2b00 cmp r3, #0
  51745. 8015c14: d10b bne.n 8015c2e <prvWriteBytesToBuffer+0x2a>
  51746. __asm volatile
  51747. 8015c16: f04f 0350 mov.w r3, #80 @ 0x50
  51748. 8015c1a: f383 8811 msr BASEPRI, r3
  51749. 8015c1e: f3bf 8f6f isb sy
  51750. 8015c22: f3bf 8f4f dsb sy
  51751. 8015c26: 61fb str r3, [r7, #28]
  51752. }
  51753. 8015c28: bf00 nop
  51754. 8015c2a: bf00 nop
  51755. 8015c2c: e7fd b.n 8015c2a <prvWriteBytesToBuffer+0x26>
  51756. xNextHead = pxStreamBuffer->xHead;
  51757. 8015c2e: 68fb ldr r3, [r7, #12]
  51758. 8015c30: 685b ldr r3, [r3, #4]
  51759. 8015c32: 627b str r3, [r7, #36] @ 0x24
  51760. /* Calculate the number of bytes that can be added in the first write -
  51761. which may be less than the total number of bytes that need to be added if
  51762. the buffer will wrap back to the beginning. */
  51763. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  51764. 8015c34: 68fb ldr r3, [r7, #12]
  51765. 8015c36: 689a ldr r2, [r3, #8]
  51766. 8015c38: 6a7b ldr r3, [r7, #36] @ 0x24
  51767. 8015c3a: 1ad3 subs r3, r2, r3
  51768. 8015c3c: 687a ldr r2, [r7, #4]
  51769. 8015c3e: 4293 cmp r3, r2
  51770. 8015c40: bf28 it cs
  51771. 8015c42: 4613 movcs r3, r2
  51772. 8015c44: 623b str r3, [r7, #32]
  51773. /* Write as many bytes as can be written in the first write. */
  51774. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  51775. 8015c46: 6a7a ldr r2, [r7, #36] @ 0x24
  51776. 8015c48: 6a3b ldr r3, [r7, #32]
  51777. 8015c4a: 441a add r2, r3
  51778. 8015c4c: 68fb ldr r3, [r7, #12]
  51779. 8015c4e: 689b ldr r3, [r3, #8]
  51780. 8015c50: 429a cmp r2, r3
  51781. 8015c52: d90b bls.n 8015c6c <prvWriteBytesToBuffer+0x68>
  51782. __asm volatile
  51783. 8015c54: f04f 0350 mov.w r3, #80 @ 0x50
  51784. 8015c58: f383 8811 msr BASEPRI, r3
  51785. 8015c5c: f3bf 8f6f isb sy
  51786. 8015c60: f3bf 8f4f dsb sy
  51787. 8015c64: 61bb str r3, [r7, #24]
  51788. }
  51789. 8015c66: bf00 nop
  51790. 8015c68: bf00 nop
  51791. 8015c6a: e7fd b.n 8015c68 <prvWriteBytesToBuffer+0x64>
  51792. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51793. 8015c6c: 68fb ldr r3, [r7, #12]
  51794. 8015c6e: 699a ldr r2, [r3, #24]
  51795. 8015c70: 6a7b ldr r3, [r7, #36] @ 0x24
  51796. 8015c72: 4413 add r3, r2
  51797. 8015c74: 6a3a ldr r2, [r7, #32]
  51798. 8015c76: 68b9 ldr r1, [r7, #8]
  51799. 8015c78: 4618 mov r0, r3
  51800. 8015c7a: f002 fc17 bl 80184ac <memcpy>
  51801. /* If the number of bytes written was less than the number that could be
  51802. written in the first write... */
  51803. if( xCount > xFirstLength )
  51804. 8015c7e: 687a ldr r2, [r7, #4]
  51805. 8015c80: 6a3b ldr r3, [r7, #32]
  51806. 8015c82: 429a cmp r2, r3
  51807. 8015c84: d91d bls.n 8015cc2 <prvWriteBytesToBuffer+0xbe>
  51808. {
  51809. /* ...then write the remaining bytes to the start of the buffer. */
  51810. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  51811. 8015c86: 687a ldr r2, [r7, #4]
  51812. 8015c88: 6a3b ldr r3, [r7, #32]
  51813. 8015c8a: 1ad2 subs r2, r2, r3
  51814. 8015c8c: 68fb ldr r3, [r7, #12]
  51815. 8015c8e: 689b ldr r3, [r3, #8]
  51816. 8015c90: 429a cmp r2, r3
  51817. 8015c92: d90b bls.n 8015cac <prvWriteBytesToBuffer+0xa8>
  51818. __asm volatile
  51819. 8015c94: f04f 0350 mov.w r3, #80 @ 0x50
  51820. 8015c98: f383 8811 msr BASEPRI, r3
  51821. 8015c9c: f3bf 8f6f isb sy
  51822. 8015ca0: f3bf 8f4f dsb sy
  51823. 8015ca4: 617b str r3, [r7, #20]
  51824. }
  51825. 8015ca6: bf00 nop
  51826. 8015ca8: bf00 nop
  51827. 8015caa: e7fd b.n 8015ca8 <prvWriteBytesToBuffer+0xa4>
  51828. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51829. 8015cac: 68fb ldr r3, [r7, #12]
  51830. 8015cae: 6998 ldr r0, [r3, #24]
  51831. 8015cb0: 68ba ldr r2, [r7, #8]
  51832. 8015cb2: 6a3b ldr r3, [r7, #32]
  51833. 8015cb4: 18d1 adds r1, r2, r3
  51834. 8015cb6: 687a ldr r2, [r7, #4]
  51835. 8015cb8: 6a3b ldr r3, [r7, #32]
  51836. 8015cba: 1ad3 subs r3, r2, r3
  51837. 8015cbc: 461a mov r2, r3
  51838. 8015cbe: f002 fbf5 bl 80184ac <memcpy>
  51839. else
  51840. {
  51841. mtCOVERAGE_TEST_MARKER();
  51842. }
  51843. xNextHead += xCount;
  51844. 8015cc2: 6a7a ldr r2, [r7, #36] @ 0x24
  51845. 8015cc4: 687b ldr r3, [r7, #4]
  51846. 8015cc6: 4413 add r3, r2
  51847. 8015cc8: 627b str r3, [r7, #36] @ 0x24
  51848. if( xNextHead >= pxStreamBuffer->xLength )
  51849. 8015cca: 68fb ldr r3, [r7, #12]
  51850. 8015ccc: 689b ldr r3, [r3, #8]
  51851. 8015cce: 6a7a ldr r2, [r7, #36] @ 0x24
  51852. 8015cd0: 429a cmp r2, r3
  51853. 8015cd2: d304 bcc.n 8015cde <prvWriteBytesToBuffer+0xda>
  51854. {
  51855. xNextHead -= pxStreamBuffer->xLength;
  51856. 8015cd4: 68fb ldr r3, [r7, #12]
  51857. 8015cd6: 689b ldr r3, [r3, #8]
  51858. 8015cd8: 6a7a ldr r2, [r7, #36] @ 0x24
  51859. 8015cda: 1ad3 subs r3, r2, r3
  51860. 8015cdc: 627b str r3, [r7, #36] @ 0x24
  51861. else
  51862. {
  51863. mtCOVERAGE_TEST_MARKER();
  51864. }
  51865. pxStreamBuffer->xHead = xNextHead;
  51866. 8015cde: 68fb ldr r3, [r7, #12]
  51867. 8015ce0: 6a7a ldr r2, [r7, #36] @ 0x24
  51868. 8015ce2: 605a str r2, [r3, #4]
  51869. return xCount;
  51870. 8015ce4: 687b ldr r3, [r7, #4]
  51871. }
  51872. 8015ce6: 4618 mov r0, r3
  51873. 8015ce8: 3728 adds r7, #40 @ 0x28
  51874. 8015cea: 46bd mov sp, r7
  51875. 8015cec: bd80 pop {r7, pc}
  51876. 08015cee <prvBytesInBuffer>:
  51877. return xCount;
  51878. }
  51879. /*-----------------------------------------------------------*/
  51880. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  51881. {
  51882. 8015cee: b480 push {r7}
  51883. 8015cf0: b085 sub sp, #20
  51884. 8015cf2: af00 add r7, sp, #0
  51885. 8015cf4: 6078 str r0, [r7, #4]
  51886. /* Returns the distance between xTail and xHead. */
  51887. size_t xCount;
  51888. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  51889. 8015cf6: 687b ldr r3, [r7, #4]
  51890. 8015cf8: 689a ldr r2, [r3, #8]
  51891. 8015cfa: 687b ldr r3, [r7, #4]
  51892. 8015cfc: 685b ldr r3, [r3, #4]
  51893. 8015cfe: 4413 add r3, r2
  51894. 8015d00: 60fb str r3, [r7, #12]
  51895. xCount -= pxStreamBuffer->xTail;
  51896. 8015d02: 687b ldr r3, [r7, #4]
  51897. 8015d04: 681b ldr r3, [r3, #0]
  51898. 8015d06: 68fa ldr r2, [r7, #12]
  51899. 8015d08: 1ad3 subs r3, r2, r3
  51900. 8015d0a: 60fb str r3, [r7, #12]
  51901. if ( xCount >= pxStreamBuffer->xLength )
  51902. 8015d0c: 687b ldr r3, [r7, #4]
  51903. 8015d0e: 689b ldr r3, [r3, #8]
  51904. 8015d10: 68fa ldr r2, [r7, #12]
  51905. 8015d12: 429a cmp r2, r3
  51906. 8015d14: d304 bcc.n 8015d20 <prvBytesInBuffer+0x32>
  51907. {
  51908. xCount -= pxStreamBuffer->xLength;
  51909. 8015d16: 687b ldr r3, [r7, #4]
  51910. 8015d18: 689b ldr r3, [r3, #8]
  51911. 8015d1a: 68fa ldr r2, [r7, #12]
  51912. 8015d1c: 1ad3 subs r3, r2, r3
  51913. 8015d1e: 60fb str r3, [r7, #12]
  51914. else
  51915. {
  51916. mtCOVERAGE_TEST_MARKER();
  51917. }
  51918. return xCount;
  51919. 8015d20: 68fb ldr r3, [r7, #12]
  51920. }
  51921. 8015d22: 4618 mov r0, r3
  51922. 8015d24: 3714 adds r7, #20
  51923. 8015d26: 46bd mov sp, r7
  51924. 8015d28: f85d 7b04 ldr.w r7, [sp], #4
  51925. 8015d2c: 4770 bx lr
  51926. 08015d2e <xTaskCreateStatic>:
  51927. const uint32_t ulStackDepth,
  51928. void * const pvParameters,
  51929. UBaseType_t uxPriority,
  51930. StackType_t * const puxStackBuffer,
  51931. StaticTask_t * const pxTaskBuffer )
  51932. {
  51933. 8015d2e: b580 push {r7, lr}
  51934. 8015d30: b08e sub sp, #56 @ 0x38
  51935. 8015d32: af04 add r7, sp, #16
  51936. 8015d34: 60f8 str r0, [r7, #12]
  51937. 8015d36: 60b9 str r1, [r7, #8]
  51938. 8015d38: 607a str r2, [r7, #4]
  51939. 8015d3a: 603b str r3, [r7, #0]
  51940. TCB_t *pxNewTCB;
  51941. TaskHandle_t xReturn;
  51942. configASSERT( puxStackBuffer != NULL );
  51943. 8015d3c: 6b7b ldr r3, [r7, #52] @ 0x34
  51944. 8015d3e: 2b00 cmp r3, #0
  51945. 8015d40: d10b bne.n 8015d5a <xTaskCreateStatic+0x2c>
  51946. __asm volatile
  51947. 8015d42: f04f 0350 mov.w r3, #80 @ 0x50
  51948. 8015d46: f383 8811 msr BASEPRI, r3
  51949. 8015d4a: f3bf 8f6f isb sy
  51950. 8015d4e: f3bf 8f4f dsb sy
  51951. 8015d52: 623b str r3, [r7, #32]
  51952. }
  51953. 8015d54: bf00 nop
  51954. 8015d56: bf00 nop
  51955. 8015d58: e7fd b.n 8015d56 <xTaskCreateStatic+0x28>
  51956. configASSERT( pxTaskBuffer != NULL );
  51957. 8015d5a: 6bbb ldr r3, [r7, #56] @ 0x38
  51958. 8015d5c: 2b00 cmp r3, #0
  51959. 8015d5e: d10b bne.n 8015d78 <xTaskCreateStatic+0x4a>
  51960. __asm volatile
  51961. 8015d60: f04f 0350 mov.w r3, #80 @ 0x50
  51962. 8015d64: f383 8811 msr BASEPRI, r3
  51963. 8015d68: f3bf 8f6f isb sy
  51964. 8015d6c: f3bf 8f4f dsb sy
  51965. 8015d70: 61fb str r3, [r7, #28]
  51966. }
  51967. 8015d72: bf00 nop
  51968. 8015d74: bf00 nop
  51969. 8015d76: e7fd b.n 8015d74 <xTaskCreateStatic+0x46>
  51970. #if( configASSERT_DEFINED == 1 )
  51971. {
  51972. /* Sanity check that the size of the structure used to declare a
  51973. variable of type StaticTask_t equals the size of the real task
  51974. structure. */
  51975. volatile size_t xSize = sizeof( StaticTask_t );
  51976. 8015d78: 23a8 movs r3, #168 @ 0xa8
  51977. 8015d7a: 613b str r3, [r7, #16]
  51978. configASSERT( xSize == sizeof( TCB_t ) );
  51979. 8015d7c: 693b ldr r3, [r7, #16]
  51980. 8015d7e: 2ba8 cmp r3, #168 @ 0xa8
  51981. 8015d80: d00b beq.n 8015d9a <xTaskCreateStatic+0x6c>
  51982. __asm volatile
  51983. 8015d82: f04f 0350 mov.w r3, #80 @ 0x50
  51984. 8015d86: f383 8811 msr BASEPRI, r3
  51985. 8015d8a: f3bf 8f6f isb sy
  51986. 8015d8e: f3bf 8f4f dsb sy
  51987. 8015d92: 61bb str r3, [r7, #24]
  51988. }
  51989. 8015d94: bf00 nop
  51990. 8015d96: bf00 nop
  51991. 8015d98: e7fd b.n 8015d96 <xTaskCreateStatic+0x68>
  51992. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51993. 8015d9a: 693b ldr r3, [r7, #16]
  51994. }
  51995. #endif /* configASSERT_DEFINED */
  51996. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51997. 8015d9c: 6bbb ldr r3, [r7, #56] @ 0x38
  51998. 8015d9e: 2b00 cmp r3, #0
  51999. 8015da0: d01e beq.n 8015de0 <xTaskCreateStatic+0xb2>
  52000. 8015da2: 6b7b ldr r3, [r7, #52] @ 0x34
  52001. 8015da4: 2b00 cmp r3, #0
  52002. 8015da6: d01b beq.n 8015de0 <xTaskCreateStatic+0xb2>
  52003. {
  52004. /* The memory used for the task's TCB and stack are passed into this
  52005. function - use them. */
  52006. 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. */
  52007. 8015da8: 6bbb ldr r3, [r7, #56] @ 0x38
  52008. 8015daa: 627b str r3, [r7, #36] @ 0x24
  52009. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  52010. 8015dac: 6a7b ldr r3, [r7, #36] @ 0x24
  52011. 8015dae: 6b7a ldr r2, [r7, #52] @ 0x34
  52012. 8015db0: 631a str r2, [r3, #48] @ 0x30
  52013. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  52014. {
  52015. /* Tasks can be created statically or dynamically, so note this
  52016. task was created statically in case the task is later deleted. */
  52017. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  52018. 8015db2: 6a7b ldr r3, [r7, #36] @ 0x24
  52019. 8015db4: 2202 movs r2, #2
  52020. 8015db6: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  52021. }
  52022. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  52023. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  52024. 8015dba: 2300 movs r3, #0
  52025. 8015dbc: 9303 str r3, [sp, #12]
  52026. 8015dbe: 6a7b ldr r3, [r7, #36] @ 0x24
  52027. 8015dc0: 9302 str r3, [sp, #8]
  52028. 8015dc2: f107 0314 add.w r3, r7, #20
  52029. 8015dc6: 9301 str r3, [sp, #4]
  52030. 8015dc8: 6b3b ldr r3, [r7, #48] @ 0x30
  52031. 8015dca: 9300 str r3, [sp, #0]
  52032. 8015dcc: 683b ldr r3, [r7, #0]
  52033. 8015dce: 687a ldr r2, [r7, #4]
  52034. 8015dd0: 68b9 ldr r1, [r7, #8]
  52035. 8015dd2: 68f8 ldr r0, [r7, #12]
  52036. 8015dd4: f000 f850 bl 8015e78 <prvInitialiseNewTask>
  52037. prvAddNewTaskToReadyList( pxNewTCB );
  52038. 8015dd8: 6a78 ldr r0, [r7, #36] @ 0x24
  52039. 8015dda: f000 f8f5 bl 8015fc8 <prvAddNewTaskToReadyList>
  52040. 8015dde: e001 b.n 8015de4 <xTaskCreateStatic+0xb6>
  52041. }
  52042. else
  52043. {
  52044. xReturn = NULL;
  52045. 8015de0: 2300 movs r3, #0
  52046. 8015de2: 617b str r3, [r7, #20]
  52047. }
  52048. return xReturn;
  52049. 8015de4: 697b ldr r3, [r7, #20]
  52050. }
  52051. 8015de6: 4618 mov r0, r3
  52052. 8015de8: 3728 adds r7, #40 @ 0x28
  52053. 8015dea: 46bd mov sp, r7
  52054. 8015dec: bd80 pop {r7, pc}
  52055. 08015dee <xTaskCreate>:
  52056. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  52057. const configSTACK_DEPTH_TYPE usStackDepth,
  52058. void * const pvParameters,
  52059. UBaseType_t uxPriority,
  52060. TaskHandle_t * const pxCreatedTask )
  52061. {
  52062. 8015dee: b580 push {r7, lr}
  52063. 8015df0: b08c sub sp, #48 @ 0x30
  52064. 8015df2: af04 add r7, sp, #16
  52065. 8015df4: 60f8 str r0, [r7, #12]
  52066. 8015df6: 60b9 str r1, [r7, #8]
  52067. 8015df8: 603b str r3, [r7, #0]
  52068. 8015dfa: 4613 mov r3, r2
  52069. 8015dfc: 80fb strh r3, [r7, #6]
  52070. #else /* portSTACK_GROWTH */
  52071. {
  52072. StackType_t *pxStack;
  52073. /* Allocate space for the stack used by the task being created. */
  52074. 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. */
  52075. 8015dfe: 88fb ldrh r3, [r7, #6]
  52076. 8015e00: 009b lsls r3, r3, #2
  52077. 8015e02: 4618 mov r0, r3
  52078. 8015e04: f002 f8da bl 8017fbc <pvPortMalloc>
  52079. 8015e08: 6178 str r0, [r7, #20]
  52080. if( pxStack != NULL )
  52081. 8015e0a: 697b ldr r3, [r7, #20]
  52082. 8015e0c: 2b00 cmp r3, #0
  52083. 8015e0e: d00e beq.n 8015e2e <xTaskCreate+0x40>
  52084. {
  52085. /* Allocate space for the TCB. */
  52086. 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. */
  52087. 8015e10: 20a8 movs r0, #168 @ 0xa8
  52088. 8015e12: f002 f8d3 bl 8017fbc <pvPortMalloc>
  52089. 8015e16: 61f8 str r0, [r7, #28]
  52090. if( pxNewTCB != NULL )
  52091. 8015e18: 69fb ldr r3, [r7, #28]
  52092. 8015e1a: 2b00 cmp r3, #0
  52093. 8015e1c: d003 beq.n 8015e26 <xTaskCreate+0x38>
  52094. {
  52095. /* Store the stack location in the TCB. */
  52096. pxNewTCB->pxStack = pxStack;
  52097. 8015e1e: 69fb ldr r3, [r7, #28]
  52098. 8015e20: 697a ldr r2, [r7, #20]
  52099. 8015e22: 631a str r2, [r3, #48] @ 0x30
  52100. 8015e24: e005 b.n 8015e32 <xTaskCreate+0x44>
  52101. }
  52102. else
  52103. {
  52104. /* The stack cannot be used as the TCB was not created. Free
  52105. it again. */
  52106. vPortFree( pxStack );
  52107. 8015e26: 6978 ldr r0, [r7, #20]
  52108. 8015e28: f002 f996 bl 8018158 <vPortFree>
  52109. 8015e2c: e001 b.n 8015e32 <xTaskCreate+0x44>
  52110. }
  52111. }
  52112. else
  52113. {
  52114. pxNewTCB = NULL;
  52115. 8015e2e: 2300 movs r3, #0
  52116. 8015e30: 61fb str r3, [r7, #28]
  52117. }
  52118. }
  52119. #endif /* portSTACK_GROWTH */
  52120. if( pxNewTCB != NULL )
  52121. 8015e32: 69fb ldr r3, [r7, #28]
  52122. 8015e34: 2b00 cmp r3, #0
  52123. 8015e36: d017 beq.n 8015e68 <xTaskCreate+0x7a>
  52124. {
  52125. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  52126. {
  52127. /* Tasks can be created statically or dynamically, so note this
  52128. task was created dynamically in case it is later deleted. */
  52129. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  52130. 8015e38: 69fb ldr r3, [r7, #28]
  52131. 8015e3a: 2200 movs r2, #0
  52132. 8015e3c: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  52133. }
  52134. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  52135. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  52136. 8015e40: 88fa ldrh r2, [r7, #6]
  52137. 8015e42: 2300 movs r3, #0
  52138. 8015e44: 9303 str r3, [sp, #12]
  52139. 8015e46: 69fb ldr r3, [r7, #28]
  52140. 8015e48: 9302 str r3, [sp, #8]
  52141. 8015e4a: 6afb ldr r3, [r7, #44] @ 0x2c
  52142. 8015e4c: 9301 str r3, [sp, #4]
  52143. 8015e4e: 6abb ldr r3, [r7, #40] @ 0x28
  52144. 8015e50: 9300 str r3, [sp, #0]
  52145. 8015e52: 683b ldr r3, [r7, #0]
  52146. 8015e54: 68b9 ldr r1, [r7, #8]
  52147. 8015e56: 68f8 ldr r0, [r7, #12]
  52148. 8015e58: f000 f80e bl 8015e78 <prvInitialiseNewTask>
  52149. prvAddNewTaskToReadyList( pxNewTCB );
  52150. 8015e5c: 69f8 ldr r0, [r7, #28]
  52151. 8015e5e: f000 f8b3 bl 8015fc8 <prvAddNewTaskToReadyList>
  52152. xReturn = pdPASS;
  52153. 8015e62: 2301 movs r3, #1
  52154. 8015e64: 61bb str r3, [r7, #24]
  52155. 8015e66: e002 b.n 8015e6e <xTaskCreate+0x80>
  52156. }
  52157. else
  52158. {
  52159. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  52160. 8015e68: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52161. 8015e6c: 61bb str r3, [r7, #24]
  52162. }
  52163. return xReturn;
  52164. 8015e6e: 69bb ldr r3, [r7, #24]
  52165. }
  52166. 8015e70: 4618 mov r0, r3
  52167. 8015e72: 3720 adds r7, #32
  52168. 8015e74: 46bd mov sp, r7
  52169. 8015e76: bd80 pop {r7, pc}
  52170. 08015e78 <prvInitialiseNewTask>:
  52171. void * const pvParameters,
  52172. UBaseType_t uxPriority,
  52173. TaskHandle_t * const pxCreatedTask,
  52174. TCB_t *pxNewTCB,
  52175. const MemoryRegion_t * const xRegions )
  52176. {
  52177. 8015e78: b580 push {r7, lr}
  52178. 8015e7a: b088 sub sp, #32
  52179. 8015e7c: af00 add r7, sp, #0
  52180. 8015e7e: 60f8 str r0, [r7, #12]
  52181. 8015e80: 60b9 str r1, [r7, #8]
  52182. 8015e82: 607a str r2, [r7, #4]
  52183. 8015e84: 603b str r3, [r7, #0]
  52184. /* Avoid dependency on memset() if it is not required. */
  52185. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  52186. {
  52187. /* Fill the stack with a known value to assist debugging. */
  52188. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  52189. 8015e86: 6b3b ldr r3, [r7, #48] @ 0x30
  52190. 8015e88: 6b18 ldr r0, [r3, #48] @ 0x30
  52191. 8015e8a: 687b ldr r3, [r7, #4]
  52192. 8015e8c: 009b lsls r3, r3, #2
  52193. 8015e8e: 461a mov r2, r3
  52194. 8015e90: 21a5 movs r1, #165 @ 0xa5
  52195. 8015e92: f002 fa81 bl 8018398 <memset>
  52196. grows from high memory to low (as per the 80x86) or vice versa.
  52197. portSTACK_GROWTH is used to make the result positive or negative as required
  52198. by the port. */
  52199. #if( portSTACK_GROWTH < 0 )
  52200. {
  52201. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  52202. 8015e96: 6b3b ldr r3, [r7, #48] @ 0x30
  52203. 8015e98: 6b1a ldr r2, [r3, #48] @ 0x30
  52204. 8015e9a: 6879 ldr r1, [r7, #4]
  52205. 8015e9c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  52206. 8015ea0: 440b add r3, r1
  52207. 8015ea2: 009b lsls r3, r3, #2
  52208. 8015ea4: 4413 add r3, r2
  52209. 8015ea6: 61bb str r3, [r7, #24]
  52210. 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(). */
  52211. 8015ea8: 69bb ldr r3, [r7, #24]
  52212. 8015eaa: f023 0307 bic.w r3, r3, #7
  52213. 8015eae: 61bb str r3, [r7, #24]
  52214. /* Check the alignment of the calculated top of stack is correct. */
  52215. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  52216. 8015eb0: 69bb ldr r3, [r7, #24]
  52217. 8015eb2: f003 0307 and.w r3, r3, #7
  52218. 8015eb6: 2b00 cmp r3, #0
  52219. 8015eb8: d00b beq.n 8015ed2 <prvInitialiseNewTask+0x5a>
  52220. __asm volatile
  52221. 8015eba: f04f 0350 mov.w r3, #80 @ 0x50
  52222. 8015ebe: f383 8811 msr BASEPRI, r3
  52223. 8015ec2: f3bf 8f6f isb sy
  52224. 8015ec6: f3bf 8f4f dsb sy
  52225. 8015eca: 617b str r3, [r7, #20]
  52226. }
  52227. 8015ecc: bf00 nop
  52228. 8015ece: bf00 nop
  52229. 8015ed0: e7fd b.n 8015ece <prvInitialiseNewTask+0x56>
  52230. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  52231. }
  52232. #endif /* portSTACK_GROWTH */
  52233. /* Store the task name in the TCB. */
  52234. if( pcName != NULL )
  52235. 8015ed2: 68bb ldr r3, [r7, #8]
  52236. 8015ed4: 2b00 cmp r3, #0
  52237. 8015ed6: d01f beq.n 8015f18 <prvInitialiseNewTask+0xa0>
  52238. {
  52239. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52240. 8015ed8: 2300 movs r3, #0
  52241. 8015eda: 61fb str r3, [r7, #28]
  52242. 8015edc: e012 b.n 8015f04 <prvInitialiseNewTask+0x8c>
  52243. {
  52244. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  52245. 8015ede: 68ba ldr r2, [r7, #8]
  52246. 8015ee0: 69fb ldr r3, [r7, #28]
  52247. 8015ee2: 4413 add r3, r2
  52248. 8015ee4: 7819 ldrb r1, [r3, #0]
  52249. 8015ee6: 6b3a ldr r2, [r7, #48] @ 0x30
  52250. 8015ee8: 69fb ldr r3, [r7, #28]
  52251. 8015eea: 4413 add r3, r2
  52252. 8015eec: 3334 adds r3, #52 @ 0x34
  52253. 8015eee: 460a mov r2, r1
  52254. 8015ef0: 701a strb r2, [r3, #0]
  52255. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  52256. configMAX_TASK_NAME_LEN characters just in case the memory after the
  52257. string is not accessible (extremely unlikely). */
  52258. if( pcName[ x ] == ( char ) 0x00 )
  52259. 8015ef2: 68ba ldr r2, [r7, #8]
  52260. 8015ef4: 69fb ldr r3, [r7, #28]
  52261. 8015ef6: 4413 add r3, r2
  52262. 8015ef8: 781b ldrb r3, [r3, #0]
  52263. 8015efa: 2b00 cmp r3, #0
  52264. 8015efc: d006 beq.n 8015f0c <prvInitialiseNewTask+0x94>
  52265. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52266. 8015efe: 69fb ldr r3, [r7, #28]
  52267. 8015f00: 3301 adds r3, #1
  52268. 8015f02: 61fb str r3, [r7, #28]
  52269. 8015f04: 69fb ldr r3, [r7, #28]
  52270. 8015f06: 2b0f cmp r3, #15
  52271. 8015f08: d9e9 bls.n 8015ede <prvInitialiseNewTask+0x66>
  52272. 8015f0a: e000 b.n 8015f0e <prvInitialiseNewTask+0x96>
  52273. {
  52274. break;
  52275. 8015f0c: bf00 nop
  52276. }
  52277. }
  52278. /* Ensure the name string is terminated in the case that the string length
  52279. was greater or equal to configMAX_TASK_NAME_LEN. */
  52280. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  52281. 8015f0e: 6b3b ldr r3, [r7, #48] @ 0x30
  52282. 8015f10: 2200 movs r2, #0
  52283. 8015f12: f883 2043 strb.w r2, [r3, #67] @ 0x43
  52284. 8015f16: e003 b.n 8015f20 <prvInitialiseNewTask+0xa8>
  52285. }
  52286. else
  52287. {
  52288. /* The task has not been given a name, so just ensure there is a NULL
  52289. terminator when it is read out. */
  52290. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  52291. 8015f18: 6b3b ldr r3, [r7, #48] @ 0x30
  52292. 8015f1a: 2200 movs r2, #0
  52293. 8015f1c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  52294. }
  52295. /* This is used as an array index so must ensure it's not too large. First
  52296. remove the privilege bit if one is present. */
  52297. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  52298. 8015f20: 6abb ldr r3, [r7, #40] @ 0x28
  52299. 8015f22: 2b37 cmp r3, #55 @ 0x37
  52300. 8015f24: d901 bls.n 8015f2a <prvInitialiseNewTask+0xb2>
  52301. {
  52302. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  52303. 8015f26: 2337 movs r3, #55 @ 0x37
  52304. 8015f28: 62bb str r3, [r7, #40] @ 0x28
  52305. else
  52306. {
  52307. mtCOVERAGE_TEST_MARKER();
  52308. }
  52309. pxNewTCB->uxPriority = uxPriority;
  52310. 8015f2a: 6b3b ldr r3, [r7, #48] @ 0x30
  52311. 8015f2c: 6aba ldr r2, [r7, #40] @ 0x28
  52312. 8015f2e: 62da str r2, [r3, #44] @ 0x2c
  52313. #if ( configUSE_MUTEXES == 1 )
  52314. {
  52315. pxNewTCB->uxBasePriority = uxPriority;
  52316. 8015f30: 6b3b ldr r3, [r7, #48] @ 0x30
  52317. 8015f32: 6aba ldr r2, [r7, #40] @ 0x28
  52318. 8015f34: 64da str r2, [r3, #76] @ 0x4c
  52319. pxNewTCB->uxMutexesHeld = 0;
  52320. 8015f36: 6b3b ldr r3, [r7, #48] @ 0x30
  52321. 8015f38: 2200 movs r2, #0
  52322. 8015f3a: 651a str r2, [r3, #80] @ 0x50
  52323. }
  52324. #endif /* configUSE_MUTEXES */
  52325. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  52326. 8015f3c: 6b3b ldr r3, [r7, #48] @ 0x30
  52327. 8015f3e: 3304 adds r3, #4
  52328. 8015f40: 4618 mov r0, r3
  52329. 8015f42: f7fe fd09 bl 8014958 <vListInitialiseItem>
  52330. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  52331. 8015f46: 6b3b ldr r3, [r7, #48] @ 0x30
  52332. 8015f48: 3318 adds r3, #24
  52333. 8015f4a: 4618 mov r0, r3
  52334. 8015f4c: f7fe fd04 bl 8014958 <vListInitialiseItem>
  52335. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  52336. back to the containing TCB from a generic item in a list. */
  52337. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  52338. 8015f50: 6b3b ldr r3, [r7, #48] @ 0x30
  52339. 8015f52: 6b3a ldr r2, [r7, #48] @ 0x30
  52340. 8015f54: 611a str r2, [r3, #16]
  52341. /* Event lists are always in priority order. */
  52342. 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. */
  52343. 8015f56: 6abb ldr r3, [r7, #40] @ 0x28
  52344. 8015f58: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52345. 8015f5c: 6b3b ldr r3, [r7, #48] @ 0x30
  52346. 8015f5e: 619a str r2, [r3, #24]
  52347. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  52348. 8015f60: 6b3b ldr r3, [r7, #48] @ 0x30
  52349. 8015f62: 6b3a ldr r2, [r7, #48] @ 0x30
  52350. 8015f64: 625a str r2, [r3, #36] @ 0x24
  52351. }
  52352. #endif
  52353. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  52354. {
  52355. pxNewTCB->ulNotifiedValue = 0;
  52356. 8015f66: 6b3b ldr r3, [r7, #48] @ 0x30
  52357. 8015f68: 2200 movs r2, #0
  52358. 8015f6a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  52359. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  52360. 8015f6e: 6b3b ldr r3, [r7, #48] @ 0x30
  52361. 8015f70: 2200 movs r2, #0
  52362. 8015f72: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  52363. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52364. {
  52365. /* Initialise this task's Newlib reent structure.
  52366. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52367. for additional information. */
  52368. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  52369. 8015f76: 6b3b ldr r3, [r7, #48] @ 0x30
  52370. 8015f78: 3354 adds r3, #84 @ 0x54
  52371. 8015f7a: 224c movs r2, #76 @ 0x4c
  52372. 8015f7c: 2100 movs r1, #0
  52373. 8015f7e: 4618 mov r0, r3
  52374. 8015f80: f002 fa0a bl 8018398 <memset>
  52375. 8015f84: 6b3b ldr r3, [r7, #48] @ 0x30
  52376. 8015f86: 4a0d ldr r2, [pc, #52] @ (8015fbc <prvInitialiseNewTask+0x144>)
  52377. 8015f88: 659a str r2, [r3, #88] @ 0x58
  52378. 8015f8a: 6b3b ldr r3, [r7, #48] @ 0x30
  52379. 8015f8c: 4a0c ldr r2, [pc, #48] @ (8015fc0 <prvInitialiseNewTask+0x148>)
  52380. 8015f8e: 65da str r2, [r3, #92] @ 0x5c
  52381. 8015f90: 6b3b ldr r3, [r7, #48] @ 0x30
  52382. 8015f92: 4a0c ldr r2, [pc, #48] @ (8015fc4 <prvInitialiseNewTask+0x14c>)
  52383. 8015f94: 661a str r2, [r3, #96] @ 0x60
  52384. }
  52385. #endif /* portSTACK_GROWTH */
  52386. }
  52387. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  52388. {
  52389. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  52390. 8015f96: 683a ldr r2, [r7, #0]
  52391. 8015f98: 68f9 ldr r1, [r7, #12]
  52392. 8015f9a: 69b8 ldr r0, [r7, #24]
  52393. 8015f9c: f001 fdb8 bl 8017b10 <pxPortInitialiseStack>
  52394. 8015fa0: 4602 mov r2, r0
  52395. 8015fa2: 6b3b ldr r3, [r7, #48] @ 0x30
  52396. 8015fa4: 601a str r2, [r3, #0]
  52397. }
  52398. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  52399. }
  52400. #endif /* portUSING_MPU_WRAPPERS */
  52401. if( pxCreatedTask != NULL )
  52402. 8015fa6: 6afb ldr r3, [r7, #44] @ 0x2c
  52403. 8015fa8: 2b00 cmp r3, #0
  52404. 8015faa: d002 beq.n 8015fb2 <prvInitialiseNewTask+0x13a>
  52405. {
  52406. /* Pass the handle out in an anonymous way. The handle can be used to
  52407. change the created task's priority, delete the created task, etc.*/
  52408. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  52409. 8015fac: 6afb ldr r3, [r7, #44] @ 0x2c
  52410. 8015fae: 6b3a ldr r2, [r7, #48] @ 0x30
  52411. 8015fb0: 601a str r2, [r3, #0]
  52412. }
  52413. else
  52414. {
  52415. mtCOVERAGE_TEST_MARKER();
  52416. }
  52417. }
  52418. 8015fb2: bf00 nop
  52419. 8015fb4: 3720 adds r7, #32
  52420. 8015fb6: 46bd mov sp, r7
  52421. 8015fb8: bd80 pop {r7, pc}
  52422. 8015fba: bf00 nop
  52423. 8015fbc: 2401304c .word 0x2401304c
  52424. 8015fc0: 240130b4 .word 0x240130b4
  52425. 8015fc4: 2401311c .word 0x2401311c
  52426. 08015fc8 <prvAddNewTaskToReadyList>:
  52427. /*-----------------------------------------------------------*/
  52428. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  52429. {
  52430. 8015fc8: b580 push {r7, lr}
  52431. 8015fca: b082 sub sp, #8
  52432. 8015fcc: af00 add r7, sp, #0
  52433. 8015fce: 6078 str r0, [r7, #4]
  52434. /* Ensure interrupts don't access the task lists while the lists are being
  52435. updated. */
  52436. taskENTER_CRITICAL();
  52437. 8015fd0: f001 fed2 bl 8017d78 <vPortEnterCritical>
  52438. {
  52439. uxCurrentNumberOfTasks++;
  52440. 8015fd4: 4b2d ldr r3, [pc, #180] @ (801608c <prvAddNewTaskToReadyList+0xc4>)
  52441. 8015fd6: 681b ldr r3, [r3, #0]
  52442. 8015fd8: 3301 adds r3, #1
  52443. 8015fda: 4a2c ldr r2, [pc, #176] @ (801608c <prvAddNewTaskToReadyList+0xc4>)
  52444. 8015fdc: 6013 str r3, [r2, #0]
  52445. if( pxCurrentTCB == NULL )
  52446. 8015fde: 4b2c ldr r3, [pc, #176] @ (8016090 <prvAddNewTaskToReadyList+0xc8>)
  52447. 8015fe0: 681b ldr r3, [r3, #0]
  52448. 8015fe2: 2b00 cmp r3, #0
  52449. 8015fe4: d109 bne.n 8015ffa <prvAddNewTaskToReadyList+0x32>
  52450. {
  52451. /* There are no other tasks, or all the other tasks are in
  52452. the suspended state - make this the current task. */
  52453. pxCurrentTCB = pxNewTCB;
  52454. 8015fe6: 4a2a ldr r2, [pc, #168] @ (8016090 <prvAddNewTaskToReadyList+0xc8>)
  52455. 8015fe8: 687b ldr r3, [r7, #4]
  52456. 8015fea: 6013 str r3, [r2, #0]
  52457. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  52458. 8015fec: 4b27 ldr r3, [pc, #156] @ (801608c <prvAddNewTaskToReadyList+0xc4>)
  52459. 8015fee: 681b ldr r3, [r3, #0]
  52460. 8015ff0: 2b01 cmp r3, #1
  52461. 8015ff2: d110 bne.n 8016016 <prvAddNewTaskToReadyList+0x4e>
  52462. {
  52463. /* This is the first task to be created so do the preliminary
  52464. initialisation required. We will not recover if this call
  52465. fails, but we will report the failure. */
  52466. prvInitialiseTaskLists();
  52467. 8015ff4: f000 fc64 bl 80168c0 <prvInitialiseTaskLists>
  52468. 8015ff8: e00d b.n 8016016 <prvAddNewTaskToReadyList+0x4e>
  52469. else
  52470. {
  52471. /* If the scheduler is not already running, make this task the
  52472. current task if it is the highest priority task to be created
  52473. so far. */
  52474. if( xSchedulerRunning == pdFALSE )
  52475. 8015ffa: 4b26 ldr r3, [pc, #152] @ (8016094 <prvAddNewTaskToReadyList+0xcc>)
  52476. 8015ffc: 681b ldr r3, [r3, #0]
  52477. 8015ffe: 2b00 cmp r3, #0
  52478. 8016000: d109 bne.n 8016016 <prvAddNewTaskToReadyList+0x4e>
  52479. {
  52480. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  52481. 8016002: 4b23 ldr r3, [pc, #140] @ (8016090 <prvAddNewTaskToReadyList+0xc8>)
  52482. 8016004: 681b ldr r3, [r3, #0]
  52483. 8016006: 6ada ldr r2, [r3, #44] @ 0x2c
  52484. 8016008: 687b ldr r3, [r7, #4]
  52485. 801600a: 6adb ldr r3, [r3, #44] @ 0x2c
  52486. 801600c: 429a cmp r2, r3
  52487. 801600e: d802 bhi.n 8016016 <prvAddNewTaskToReadyList+0x4e>
  52488. {
  52489. pxCurrentTCB = pxNewTCB;
  52490. 8016010: 4a1f ldr r2, [pc, #124] @ (8016090 <prvAddNewTaskToReadyList+0xc8>)
  52491. 8016012: 687b ldr r3, [r7, #4]
  52492. 8016014: 6013 str r3, [r2, #0]
  52493. {
  52494. mtCOVERAGE_TEST_MARKER();
  52495. }
  52496. }
  52497. uxTaskNumber++;
  52498. 8016016: 4b20 ldr r3, [pc, #128] @ (8016098 <prvAddNewTaskToReadyList+0xd0>)
  52499. 8016018: 681b ldr r3, [r3, #0]
  52500. 801601a: 3301 adds r3, #1
  52501. 801601c: 4a1e ldr r2, [pc, #120] @ (8016098 <prvAddNewTaskToReadyList+0xd0>)
  52502. 801601e: 6013 str r3, [r2, #0]
  52503. #if ( configUSE_TRACE_FACILITY == 1 )
  52504. {
  52505. /* Add a counter into the TCB for tracing only. */
  52506. pxNewTCB->uxTCBNumber = uxTaskNumber;
  52507. 8016020: 4b1d ldr r3, [pc, #116] @ (8016098 <prvAddNewTaskToReadyList+0xd0>)
  52508. 8016022: 681a ldr r2, [r3, #0]
  52509. 8016024: 687b ldr r3, [r7, #4]
  52510. 8016026: 645a str r2, [r3, #68] @ 0x44
  52511. }
  52512. #endif /* configUSE_TRACE_FACILITY */
  52513. traceTASK_CREATE( pxNewTCB );
  52514. prvAddTaskToReadyList( pxNewTCB );
  52515. 8016028: 687b ldr r3, [r7, #4]
  52516. 801602a: 6ada ldr r2, [r3, #44] @ 0x2c
  52517. 801602c: 4b1b ldr r3, [pc, #108] @ (801609c <prvAddNewTaskToReadyList+0xd4>)
  52518. 801602e: 681b ldr r3, [r3, #0]
  52519. 8016030: 429a cmp r2, r3
  52520. 8016032: d903 bls.n 801603c <prvAddNewTaskToReadyList+0x74>
  52521. 8016034: 687b ldr r3, [r7, #4]
  52522. 8016036: 6adb ldr r3, [r3, #44] @ 0x2c
  52523. 8016038: 4a18 ldr r2, [pc, #96] @ (801609c <prvAddNewTaskToReadyList+0xd4>)
  52524. 801603a: 6013 str r3, [r2, #0]
  52525. 801603c: 687b ldr r3, [r7, #4]
  52526. 801603e: 6ada ldr r2, [r3, #44] @ 0x2c
  52527. 8016040: 4613 mov r3, r2
  52528. 8016042: 009b lsls r3, r3, #2
  52529. 8016044: 4413 add r3, r2
  52530. 8016046: 009b lsls r3, r3, #2
  52531. 8016048: 4a15 ldr r2, [pc, #84] @ (80160a0 <prvAddNewTaskToReadyList+0xd8>)
  52532. 801604a: 441a add r2, r3
  52533. 801604c: 687b ldr r3, [r7, #4]
  52534. 801604e: 3304 adds r3, #4
  52535. 8016050: 4619 mov r1, r3
  52536. 8016052: 4610 mov r0, r2
  52537. 8016054: f7fe fc8d bl 8014972 <vListInsertEnd>
  52538. portSETUP_TCB( pxNewTCB );
  52539. }
  52540. taskEXIT_CRITICAL();
  52541. 8016058: f001 fec0 bl 8017ddc <vPortExitCritical>
  52542. if( xSchedulerRunning != pdFALSE )
  52543. 801605c: 4b0d ldr r3, [pc, #52] @ (8016094 <prvAddNewTaskToReadyList+0xcc>)
  52544. 801605e: 681b ldr r3, [r3, #0]
  52545. 8016060: 2b00 cmp r3, #0
  52546. 8016062: d00e beq.n 8016082 <prvAddNewTaskToReadyList+0xba>
  52547. {
  52548. /* If the created task is of a higher priority than the current task
  52549. then it should run now. */
  52550. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  52551. 8016064: 4b0a ldr r3, [pc, #40] @ (8016090 <prvAddNewTaskToReadyList+0xc8>)
  52552. 8016066: 681b ldr r3, [r3, #0]
  52553. 8016068: 6ada ldr r2, [r3, #44] @ 0x2c
  52554. 801606a: 687b ldr r3, [r7, #4]
  52555. 801606c: 6adb ldr r3, [r3, #44] @ 0x2c
  52556. 801606e: 429a cmp r2, r3
  52557. 8016070: d207 bcs.n 8016082 <prvAddNewTaskToReadyList+0xba>
  52558. {
  52559. taskYIELD_IF_USING_PREEMPTION();
  52560. 8016072: 4b0c ldr r3, [pc, #48] @ (80160a4 <prvAddNewTaskToReadyList+0xdc>)
  52561. 8016074: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52562. 8016078: 601a str r2, [r3, #0]
  52563. 801607a: f3bf 8f4f dsb sy
  52564. 801607e: f3bf 8f6f isb sy
  52565. }
  52566. else
  52567. {
  52568. mtCOVERAGE_TEST_MARKER();
  52569. }
  52570. }
  52571. 8016082: bf00 nop
  52572. 8016084: 3708 adds r7, #8
  52573. 8016086: 46bd mov sp, r7
  52574. 8016088: bd80 pop {r7, pc}
  52575. 801608a: bf00 nop
  52576. 801608c: 24002ecc .word 0x24002ecc
  52577. 8016090: 240029f8 .word 0x240029f8
  52578. 8016094: 24002ed8 .word 0x24002ed8
  52579. 8016098: 24002ee8 .word 0x24002ee8
  52580. 801609c: 24002ed4 .word 0x24002ed4
  52581. 80160a0: 240029fc .word 0x240029fc
  52582. 80160a4: e000ed04 .word 0xe000ed04
  52583. 080160a8 <vTaskDelay>:
  52584. /*-----------------------------------------------------------*/
  52585. #if ( INCLUDE_vTaskDelay == 1 )
  52586. void vTaskDelay( const TickType_t xTicksToDelay )
  52587. {
  52588. 80160a8: b580 push {r7, lr}
  52589. 80160aa: b084 sub sp, #16
  52590. 80160ac: af00 add r7, sp, #0
  52591. 80160ae: 6078 str r0, [r7, #4]
  52592. BaseType_t xAlreadyYielded = pdFALSE;
  52593. 80160b0: 2300 movs r3, #0
  52594. 80160b2: 60fb str r3, [r7, #12]
  52595. /* A delay time of zero just forces a reschedule. */
  52596. if( xTicksToDelay > ( TickType_t ) 0U )
  52597. 80160b4: 687b ldr r3, [r7, #4]
  52598. 80160b6: 2b00 cmp r3, #0
  52599. 80160b8: d018 beq.n 80160ec <vTaskDelay+0x44>
  52600. {
  52601. configASSERT( uxSchedulerSuspended == 0 );
  52602. 80160ba: 4b14 ldr r3, [pc, #80] @ (801610c <vTaskDelay+0x64>)
  52603. 80160bc: 681b ldr r3, [r3, #0]
  52604. 80160be: 2b00 cmp r3, #0
  52605. 80160c0: d00b beq.n 80160da <vTaskDelay+0x32>
  52606. __asm volatile
  52607. 80160c2: f04f 0350 mov.w r3, #80 @ 0x50
  52608. 80160c6: f383 8811 msr BASEPRI, r3
  52609. 80160ca: f3bf 8f6f isb sy
  52610. 80160ce: f3bf 8f4f dsb sy
  52611. 80160d2: 60bb str r3, [r7, #8]
  52612. }
  52613. 80160d4: bf00 nop
  52614. 80160d6: bf00 nop
  52615. 80160d8: e7fd b.n 80160d6 <vTaskDelay+0x2e>
  52616. vTaskSuspendAll();
  52617. 80160da: f000 f88b bl 80161f4 <vTaskSuspendAll>
  52618. list or removed from the blocked list until the scheduler
  52619. is resumed.
  52620. This task cannot be in an event list as it is the currently
  52621. executing task. */
  52622. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  52623. 80160de: 2100 movs r1, #0
  52624. 80160e0: 6878 ldr r0, [r7, #4]
  52625. 80160e2: f001 f87d bl 80171e0 <prvAddCurrentTaskToDelayedList>
  52626. }
  52627. xAlreadyYielded = xTaskResumeAll();
  52628. 80160e6: f000 f893 bl 8016210 <xTaskResumeAll>
  52629. 80160ea: 60f8 str r0, [r7, #12]
  52630. mtCOVERAGE_TEST_MARKER();
  52631. }
  52632. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  52633. have put ourselves to sleep. */
  52634. if( xAlreadyYielded == pdFALSE )
  52635. 80160ec: 68fb ldr r3, [r7, #12]
  52636. 80160ee: 2b00 cmp r3, #0
  52637. 80160f0: d107 bne.n 8016102 <vTaskDelay+0x5a>
  52638. {
  52639. portYIELD_WITHIN_API();
  52640. 80160f2: 4b07 ldr r3, [pc, #28] @ (8016110 <vTaskDelay+0x68>)
  52641. 80160f4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52642. 80160f8: 601a str r2, [r3, #0]
  52643. 80160fa: f3bf 8f4f dsb sy
  52644. 80160fe: f3bf 8f6f isb sy
  52645. }
  52646. else
  52647. {
  52648. mtCOVERAGE_TEST_MARKER();
  52649. }
  52650. }
  52651. 8016102: bf00 nop
  52652. 8016104: 3710 adds r7, #16
  52653. 8016106: 46bd mov sp, r7
  52654. 8016108: bd80 pop {r7, pc}
  52655. 801610a: bf00 nop
  52656. 801610c: 24002ef4 .word 0x24002ef4
  52657. 8016110: e000ed04 .word 0xe000ed04
  52658. 08016114 <vTaskStartScheduler>:
  52659. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  52660. /*-----------------------------------------------------------*/
  52661. void vTaskStartScheduler( void )
  52662. {
  52663. 8016114: b580 push {r7, lr}
  52664. 8016116: b08a sub sp, #40 @ 0x28
  52665. 8016118: af04 add r7, sp, #16
  52666. BaseType_t xReturn;
  52667. /* Add the idle task at the lowest priority. */
  52668. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  52669. {
  52670. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  52671. 801611a: 2300 movs r3, #0
  52672. 801611c: 60bb str r3, [r7, #8]
  52673. StackType_t *pxIdleTaskStackBuffer = NULL;
  52674. 801611e: 2300 movs r3, #0
  52675. 8016120: 607b str r3, [r7, #4]
  52676. uint32_t ulIdleTaskStackSize;
  52677. /* The Idle task is created using user provided RAM - obtain the
  52678. address of the RAM then create the idle task. */
  52679. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  52680. 8016122: 463a mov r2, r7
  52681. 8016124: 1d39 adds r1, r7, #4
  52682. 8016126: f107 0308 add.w r3, r7, #8
  52683. 801612a: 4618 mov r0, r3
  52684. 801612c: f7fe fbc0 bl 80148b0 <vApplicationGetIdleTaskMemory>
  52685. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  52686. 8016130: 6839 ldr r1, [r7, #0]
  52687. 8016132: 687b ldr r3, [r7, #4]
  52688. 8016134: 68ba ldr r2, [r7, #8]
  52689. 8016136: 9202 str r2, [sp, #8]
  52690. 8016138: 9301 str r3, [sp, #4]
  52691. 801613a: 2300 movs r3, #0
  52692. 801613c: 9300 str r3, [sp, #0]
  52693. 801613e: 2300 movs r3, #0
  52694. 8016140: 460a mov r2, r1
  52695. 8016142: 4924 ldr r1, [pc, #144] @ (80161d4 <vTaskStartScheduler+0xc0>)
  52696. 8016144: 4824 ldr r0, [pc, #144] @ (80161d8 <vTaskStartScheduler+0xc4>)
  52697. 8016146: f7ff fdf2 bl 8015d2e <xTaskCreateStatic>
  52698. 801614a: 4603 mov r3, r0
  52699. 801614c: 4a23 ldr r2, [pc, #140] @ (80161dc <vTaskStartScheduler+0xc8>)
  52700. 801614e: 6013 str r3, [r2, #0]
  52701. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  52702. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  52703. pxIdleTaskStackBuffer,
  52704. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  52705. if( xIdleTaskHandle != NULL )
  52706. 8016150: 4b22 ldr r3, [pc, #136] @ (80161dc <vTaskStartScheduler+0xc8>)
  52707. 8016152: 681b ldr r3, [r3, #0]
  52708. 8016154: 2b00 cmp r3, #0
  52709. 8016156: d002 beq.n 801615e <vTaskStartScheduler+0x4a>
  52710. {
  52711. xReturn = pdPASS;
  52712. 8016158: 2301 movs r3, #1
  52713. 801615a: 617b str r3, [r7, #20]
  52714. 801615c: e001 b.n 8016162 <vTaskStartScheduler+0x4e>
  52715. }
  52716. else
  52717. {
  52718. xReturn = pdFAIL;
  52719. 801615e: 2300 movs r3, #0
  52720. 8016160: 617b str r3, [r7, #20]
  52721. }
  52722. #endif /* configSUPPORT_STATIC_ALLOCATION */
  52723. #if ( configUSE_TIMERS == 1 )
  52724. {
  52725. if( xReturn == pdPASS )
  52726. 8016162: 697b ldr r3, [r7, #20]
  52727. 8016164: 2b01 cmp r3, #1
  52728. 8016166: d102 bne.n 801616e <vTaskStartScheduler+0x5a>
  52729. {
  52730. xReturn = xTimerCreateTimerTask();
  52731. 8016168: f001 f88e bl 8017288 <xTimerCreateTimerTask>
  52732. 801616c: 6178 str r0, [r7, #20]
  52733. mtCOVERAGE_TEST_MARKER();
  52734. }
  52735. }
  52736. #endif /* configUSE_TIMERS */
  52737. if( xReturn == pdPASS )
  52738. 801616e: 697b ldr r3, [r7, #20]
  52739. 8016170: 2b01 cmp r3, #1
  52740. 8016172: d11b bne.n 80161ac <vTaskStartScheduler+0x98>
  52741. __asm volatile
  52742. 8016174: f04f 0350 mov.w r3, #80 @ 0x50
  52743. 8016178: f383 8811 msr BASEPRI, r3
  52744. 801617c: f3bf 8f6f isb sy
  52745. 8016180: f3bf 8f4f dsb sy
  52746. 8016184: 613b str r3, [r7, #16]
  52747. }
  52748. 8016186: bf00 nop
  52749. {
  52750. /* Switch Newlib's _impure_ptr variable to point to the _reent
  52751. structure specific to the task that will run first.
  52752. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52753. for additional information. */
  52754. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52755. 8016188: 4b15 ldr r3, [pc, #84] @ (80161e0 <vTaskStartScheduler+0xcc>)
  52756. 801618a: 681b ldr r3, [r3, #0]
  52757. 801618c: 3354 adds r3, #84 @ 0x54
  52758. 801618e: 4a15 ldr r2, [pc, #84] @ (80161e4 <vTaskStartScheduler+0xd0>)
  52759. 8016190: 6013 str r3, [r2, #0]
  52760. }
  52761. #endif /* configUSE_NEWLIB_REENTRANT */
  52762. xNextTaskUnblockTime = portMAX_DELAY;
  52763. 8016192: 4b15 ldr r3, [pc, #84] @ (80161e8 <vTaskStartScheduler+0xd4>)
  52764. 8016194: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52765. 8016198: 601a str r2, [r3, #0]
  52766. xSchedulerRunning = pdTRUE;
  52767. 801619a: 4b14 ldr r3, [pc, #80] @ (80161ec <vTaskStartScheduler+0xd8>)
  52768. 801619c: 2201 movs r2, #1
  52769. 801619e: 601a str r2, [r3, #0]
  52770. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  52771. 80161a0: 4b13 ldr r3, [pc, #76] @ (80161f0 <vTaskStartScheduler+0xdc>)
  52772. 80161a2: 2200 movs r2, #0
  52773. 80161a4: 601a str r2, [r3, #0]
  52774. traceTASK_SWITCHED_IN();
  52775. /* Setting up the timer tick is hardware specific and thus in the
  52776. portable interface. */
  52777. if( xPortStartScheduler() != pdFALSE )
  52778. 80161a6: f001 fd43 bl 8017c30 <xPortStartScheduler>
  52779. }
  52780. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  52781. meaning xIdleTaskHandle is not used anywhere else. */
  52782. ( void ) xIdleTaskHandle;
  52783. }
  52784. 80161aa: e00f b.n 80161cc <vTaskStartScheduler+0xb8>
  52785. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  52786. 80161ac: 697b ldr r3, [r7, #20]
  52787. 80161ae: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52788. 80161b2: d10b bne.n 80161cc <vTaskStartScheduler+0xb8>
  52789. __asm volatile
  52790. 80161b4: f04f 0350 mov.w r3, #80 @ 0x50
  52791. 80161b8: f383 8811 msr BASEPRI, r3
  52792. 80161bc: f3bf 8f6f isb sy
  52793. 80161c0: f3bf 8f4f dsb sy
  52794. 80161c4: 60fb str r3, [r7, #12]
  52795. }
  52796. 80161c6: bf00 nop
  52797. 80161c8: bf00 nop
  52798. 80161ca: e7fd b.n 80161c8 <vTaskStartScheduler+0xb4>
  52799. }
  52800. 80161cc: bf00 nop
  52801. 80161ce: 3718 adds r7, #24
  52802. 80161d0: 46bd mov sp, r7
  52803. 80161d2: bd80 pop {r7, pc}
  52804. 80161d4: 08018710 .word 0x08018710
  52805. 80161d8: 08016891 .word 0x08016891
  52806. 80161dc: 24002ef0 .word 0x24002ef0
  52807. 80161e0: 240029f8 .word 0x240029f8
  52808. 80161e4: 24000048 .word 0x24000048
  52809. 80161e8: 24002eec .word 0x24002eec
  52810. 80161ec: 24002ed8 .word 0x24002ed8
  52811. 80161f0: 24002ed0 .word 0x24002ed0
  52812. 080161f4 <vTaskSuspendAll>:
  52813. vPortEndScheduler();
  52814. }
  52815. /*----------------------------------------------------------*/
  52816. void vTaskSuspendAll( void )
  52817. {
  52818. 80161f4: b480 push {r7}
  52819. 80161f6: af00 add r7, sp, #0
  52820. do not otherwise exhibit real time behaviour. */
  52821. portSOFTWARE_BARRIER();
  52822. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  52823. is used to allow calls to vTaskSuspendAll() to nest. */
  52824. ++uxSchedulerSuspended;
  52825. 80161f8: 4b04 ldr r3, [pc, #16] @ (801620c <vTaskSuspendAll+0x18>)
  52826. 80161fa: 681b ldr r3, [r3, #0]
  52827. 80161fc: 3301 adds r3, #1
  52828. 80161fe: 4a03 ldr r2, [pc, #12] @ (801620c <vTaskSuspendAll+0x18>)
  52829. 8016200: 6013 str r3, [r2, #0]
  52830. /* Enforces ordering for ports and optimised compilers that may otherwise place
  52831. the above increment elsewhere. */
  52832. portMEMORY_BARRIER();
  52833. }
  52834. 8016202: bf00 nop
  52835. 8016204: 46bd mov sp, r7
  52836. 8016206: f85d 7b04 ldr.w r7, [sp], #4
  52837. 801620a: 4770 bx lr
  52838. 801620c: 24002ef4 .word 0x24002ef4
  52839. 08016210 <xTaskResumeAll>:
  52840. #endif /* configUSE_TICKLESS_IDLE */
  52841. /*----------------------------------------------------------*/
  52842. BaseType_t xTaskResumeAll( void )
  52843. {
  52844. 8016210: b580 push {r7, lr}
  52845. 8016212: b084 sub sp, #16
  52846. 8016214: af00 add r7, sp, #0
  52847. TCB_t *pxTCB = NULL;
  52848. 8016216: 2300 movs r3, #0
  52849. 8016218: 60fb str r3, [r7, #12]
  52850. BaseType_t xAlreadyYielded = pdFALSE;
  52851. 801621a: 2300 movs r3, #0
  52852. 801621c: 60bb str r3, [r7, #8]
  52853. /* If uxSchedulerSuspended is zero then this function does not match a
  52854. previous call to vTaskSuspendAll(). */
  52855. configASSERT( uxSchedulerSuspended );
  52856. 801621e: 4b42 ldr r3, [pc, #264] @ (8016328 <xTaskResumeAll+0x118>)
  52857. 8016220: 681b ldr r3, [r3, #0]
  52858. 8016222: 2b00 cmp r3, #0
  52859. 8016224: d10b bne.n 801623e <xTaskResumeAll+0x2e>
  52860. __asm volatile
  52861. 8016226: f04f 0350 mov.w r3, #80 @ 0x50
  52862. 801622a: f383 8811 msr BASEPRI, r3
  52863. 801622e: f3bf 8f6f isb sy
  52864. 8016232: f3bf 8f4f dsb sy
  52865. 8016236: 603b str r3, [r7, #0]
  52866. }
  52867. 8016238: bf00 nop
  52868. 801623a: bf00 nop
  52869. 801623c: e7fd b.n 801623a <xTaskResumeAll+0x2a>
  52870. /* It is possible that an ISR caused a task to be removed from an event
  52871. list while the scheduler was suspended. If this was the case then the
  52872. removed task will have been added to the xPendingReadyList. Once the
  52873. scheduler has been resumed it is safe to move all the pending ready
  52874. tasks from this list into their appropriate ready list. */
  52875. taskENTER_CRITICAL();
  52876. 801623e: f001 fd9b bl 8017d78 <vPortEnterCritical>
  52877. {
  52878. --uxSchedulerSuspended;
  52879. 8016242: 4b39 ldr r3, [pc, #228] @ (8016328 <xTaskResumeAll+0x118>)
  52880. 8016244: 681b ldr r3, [r3, #0]
  52881. 8016246: 3b01 subs r3, #1
  52882. 8016248: 4a37 ldr r2, [pc, #220] @ (8016328 <xTaskResumeAll+0x118>)
  52883. 801624a: 6013 str r3, [r2, #0]
  52884. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52885. 801624c: 4b36 ldr r3, [pc, #216] @ (8016328 <xTaskResumeAll+0x118>)
  52886. 801624e: 681b ldr r3, [r3, #0]
  52887. 8016250: 2b00 cmp r3, #0
  52888. 8016252: d162 bne.n 801631a <xTaskResumeAll+0x10a>
  52889. {
  52890. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  52891. 8016254: 4b35 ldr r3, [pc, #212] @ (801632c <xTaskResumeAll+0x11c>)
  52892. 8016256: 681b ldr r3, [r3, #0]
  52893. 8016258: 2b00 cmp r3, #0
  52894. 801625a: d05e beq.n 801631a <xTaskResumeAll+0x10a>
  52895. {
  52896. /* Move any readied tasks from the pending list into the
  52897. appropriate ready list. */
  52898. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52899. 801625c: e02f b.n 80162be <xTaskResumeAll+0xae>
  52900. {
  52901. 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. */
  52902. 801625e: 4b34 ldr r3, [pc, #208] @ (8016330 <xTaskResumeAll+0x120>)
  52903. 8016260: 68db ldr r3, [r3, #12]
  52904. 8016262: 68db ldr r3, [r3, #12]
  52905. 8016264: 60fb str r3, [r7, #12]
  52906. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52907. 8016266: 68fb ldr r3, [r7, #12]
  52908. 8016268: 3318 adds r3, #24
  52909. 801626a: 4618 mov r0, r3
  52910. 801626c: f7fe fbde bl 8014a2c <uxListRemove>
  52911. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52912. 8016270: 68fb ldr r3, [r7, #12]
  52913. 8016272: 3304 adds r3, #4
  52914. 8016274: 4618 mov r0, r3
  52915. 8016276: f7fe fbd9 bl 8014a2c <uxListRemove>
  52916. prvAddTaskToReadyList( pxTCB );
  52917. 801627a: 68fb ldr r3, [r7, #12]
  52918. 801627c: 6ada ldr r2, [r3, #44] @ 0x2c
  52919. 801627e: 4b2d ldr r3, [pc, #180] @ (8016334 <xTaskResumeAll+0x124>)
  52920. 8016280: 681b ldr r3, [r3, #0]
  52921. 8016282: 429a cmp r2, r3
  52922. 8016284: d903 bls.n 801628e <xTaskResumeAll+0x7e>
  52923. 8016286: 68fb ldr r3, [r7, #12]
  52924. 8016288: 6adb ldr r3, [r3, #44] @ 0x2c
  52925. 801628a: 4a2a ldr r2, [pc, #168] @ (8016334 <xTaskResumeAll+0x124>)
  52926. 801628c: 6013 str r3, [r2, #0]
  52927. 801628e: 68fb ldr r3, [r7, #12]
  52928. 8016290: 6ada ldr r2, [r3, #44] @ 0x2c
  52929. 8016292: 4613 mov r3, r2
  52930. 8016294: 009b lsls r3, r3, #2
  52931. 8016296: 4413 add r3, r2
  52932. 8016298: 009b lsls r3, r3, #2
  52933. 801629a: 4a27 ldr r2, [pc, #156] @ (8016338 <xTaskResumeAll+0x128>)
  52934. 801629c: 441a add r2, r3
  52935. 801629e: 68fb ldr r3, [r7, #12]
  52936. 80162a0: 3304 adds r3, #4
  52937. 80162a2: 4619 mov r1, r3
  52938. 80162a4: 4610 mov r0, r2
  52939. 80162a6: f7fe fb64 bl 8014972 <vListInsertEnd>
  52940. /* If the moved task has a priority higher than the current
  52941. task then a yield must be performed. */
  52942. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52943. 80162aa: 68fb ldr r3, [r7, #12]
  52944. 80162ac: 6ada ldr r2, [r3, #44] @ 0x2c
  52945. 80162ae: 4b23 ldr r3, [pc, #140] @ (801633c <xTaskResumeAll+0x12c>)
  52946. 80162b0: 681b ldr r3, [r3, #0]
  52947. 80162b2: 6adb ldr r3, [r3, #44] @ 0x2c
  52948. 80162b4: 429a cmp r2, r3
  52949. 80162b6: d302 bcc.n 80162be <xTaskResumeAll+0xae>
  52950. {
  52951. xYieldPending = pdTRUE;
  52952. 80162b8: 4b21 ldr r3, [pc, #132] @ (8016340 <xTaskResumeAll+0x130>)
  52953. 80162ba: 2201 movs r2, #1
  52954. 80162bc: 601a str r2, [r3, #0]
  52955. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52956. 80162be: 4b1c ldr r3, [pc, #112] @ (8016330 <xTaskResumeAll+0x120>)
  52957. 80162c0: 681b ldr r3, [r3, #0]
  52958. 80162c2: 2b00 cmp r3, #0
  52959. 80162c4: d1cb bne.n 801625e <xTaskResumeAll+0x4e>
  52960. {
  52961. mtCOVERAGE_TEST_MARKER();
  52962. }
  52963. }
  52964. if( pxTCB != NULL )
  52965. 80162c6: 68fb ldr r3, [r7, #12]
  52966. 80162c8: 2b00 cmp r3, #0
  52967. 80162ca: d001 beq.n 80162d0 <xTaskResumeAll+0xc0>
  52968. which may have prevented the next unblock time from being
  52969. re-calculated, in which case re-calculate it now. Mainly
  52970. important for low power tickless implementations, where
  52971. this can prevent an unnecessary exit from low power
  52972. state. */
  52973. prvResetNextTaskUnblockTime();
  52974. 80162cc: f000 fb9c bl 8016a08 <prvResetNextTaskUnblockTime>
  52975. /* If any ticks occurred while the scheduler was suspended then
  52976. they should be processed now. This ensures the tick count does
  52977. not slip, and that any delayed tasks are resumed at the correct
  52978. time. */
  52979. {
  52980. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52981. 80162d0: 4b1c ldr r3, [pc, #112] @ (8016344 <xTaskResumeAll+0x134>)
  52982. 80162d2: 681b ldr r3, [r3, #0]
  52983. 80162d4: 607b str r3, [r7, #4]
  52984. if( xPendedCounts > ( TickType_t ) 0U )
  52985. 80162d6: 687b ldr r3, [r7, #4]
  52986. 80162d8: 2b00 cmp r3, #0
  52987. 80162da: d010 beq.n 80162fe <xTaskResumeAll+0xee>
  52988. {
  52989. do
  52990. {
  52991. if( xTaskIncrementTick() != pdFALSE )
  52992. 80162dc: f000 f846 bl 801636c <xTaskIncrementTick>
  52993. 80162e0: 4603 mov r3, r0
  52994. 80162e2: 2b00 cmp r3, #0
  52995. 80162e4: d002 beq.n 80162ec <xTaskResumeAll+0xdc>
  52996. {
  52997. xYieldPending = pdTRUE;
  52998. 80162e6: 4b16 ldr r3, [pc, #88] @ (8016340 <xTaskResumeAll+0x130>)
  52999. 80162e8: 2201 movs r2, #1
  53000. 80162ea: 601a str r2, [r3, #0]
  53001. }
  53002. else
  53003. {
  53004. mtCOVERAGE_TEST_MARKER();
  53005. }
  53006. --xPendedCounts;
  53007. 80162ec: 687b ldr r3, [r7, #4]
  53008. 80162ee: 3b01 subs r3, #1
  53009. 80162f0: 607b str r3, [r7, #4]
  53010. } while( xPendedCounts > ( TickType_t ) 0U );
  53011. 80162f2: 687b ldr r3, [r7, #4]
  53012. 80162f4: 2b00 cmp r3, #0
  53013. 80162f6: d1f1 bne.n 80162dc <xTaskResumeAll+0xcc>
  53014. xPendedTicks = 0;
  53015. 80162f8: 4b12 ldr r3, [pc, #72] @ (8016344 <xTaskResumeAll+0x134>)
  53016. 80162fa: 2200 movs r2, #0
  53017. 80162fc: 601a str r2, [r3, #0]
  53018. {
  53019. mtCOVERAGE_TEST_MARKER();
  53020. }
  53021. }
  53022. if( xYieldPending != pdFALSE )
  53023. 80162fe: 4b10 ldr r3, [pc, #64] @ (8016340 <xTaskResumeAll+0x130>)
  53024. 8016300: 681b ldr r3, [r3, #0]
  53025. 8016302: 2b00 cmp r3, #0
  53026. 8016304: d009 beq.n 801631a <xTaskResumeAll+0x10a>
  53027. {
  53028. #if( configUSE_PREEMPTION != 0 )
  53029. {
  53030. xAlreadyYielded = pdTRUE;
  53031. 8016306: 2301 movs r3, #1
  53032. 8016308: 60bb str r3, [r7, #8]
  53033. }
  53034. #endif
  53035. taskYIELD_IF_USING_PREEMPTION();
  53036. 801630a: 4b0f ldr r3, [pc, #60] @ (8016348 <xTaskResumeAll+0x138>)
  53037. 801630c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53038. 8016310: 601a str r2, [r3, #0]
  53039. 8016312: f3bf 8f4f dsb sy
  53040. 8016316: f3bf 8f6f isb sy
  53041. else
  53042. {
  53043. mtCOVERAGE_TEST_MARKER();
  53044. }
  53045. }
  53046. taskEXIT_CRITICAL();
  53047. 801631a: f001 fd5f bl 8017ddc <vPortExitCritical>
  53048. return xAlreadyYielded;
  53049. 801631e: 68bb ldr r3, [r7, #8]
  53050. }
  53051. 8016320: 4618 mov r0, r3
  53052. 8016322: 3710 adds r7, #16
  53053. 8016324: 46bd mov sp, r7
  53054. 8016326: bd80 pop {r7, pc}
  53055. 8016328: 24002ef4 .word 0x24002ef4
  53056. 801632c: 24002ecc .word 0x24002ecc
  53057. 8016330: 24002e8c .word 0x24002e8c
  53058. 8016334: 24002ed4 .word 0x24002ed4
  53059. 8016338: 240029fc .word 0x240029fc
  53060. 801633c: 240029f8 .word 0x240029f8
  53061. 8016340: 24002ee0 .word 0x24002ee0
  53062. 8016344: 24002edc .word 0x24002edc
  53063. 8016348: e000ed04 .word 0xe000ed04
  53064. 0801634c <xTaskGetTickCount>:
  53065. /*-----------------------------------------------------------*/
  53066. TickType_t xTaskGetTickCount( void )
  53067. {
  53068. 801634c: b480 push {r7}
  53069. 801634e: b083 sub sp, #12
  53070. 8016350: af00 add r7, sp, #0
  53071. TickType_t xTicks;
  53072. /* Critical section required if running on a 16 bit processor. */
  53073. portTICK_TYPE_ENTER_CRITICAL();
  53074. {
  53075. xTicks = xTickCount;
  53076. 8016352: 4b05 ldr r3, [pc, #20] @ (8016368 <xTaskGetTickCount+0x1c>)
  53077. 8016354: 681b ldr r3, [r3, #0]
  53078. 8016356: 607b str r3, [r7, #4]
  53079. }
  53080. portTICK_TYPE_EXIT_CRITICAL();
  53081. return xTicks;
  53082. 8016358: 687b ldr r3, [r7, #4]
  53083. }
  53084. 801635a: 4618 mov r0, r3
  53085. 801635c: 370c adds r7, #12
  53086. 801635e: 46bd mov sp, r7
  53087. 8016360: f85d 7b04 ldr.w r7, [sp], #4
  53088. 8016364: 4770 bx lr
  53089. 8016366: bf00 nop
  53090. 8016368: 24002ed0 .word 0x24002ed0
  53091. 0801636c <xTaskIncrementTick>:
  53092. #endif /* INCLUDE_xTaskAbortDelay */
  53093. /*----------------------------------------------------------*/
  53094. BaseType_t xTaskIncrementTick( void )
  53095. {
  53096. 801636c: b580 push {r7, lr}
  53097. 801636e: b086 sub sp, #24
  53098. 8016370: af00 add r7, sp, #0
  53099. TCB_t * pxTCB;
  53100. TickType_t xItemValue;
  53101. BaseType_t xSwitchRequired = pdFALSE;
  53102. 8016372: 2300 movs r3, #0
  53103. 8016374: 617b str r3, [r7, #20]
  53104. /* Called by the portable layer each time a tick interrupt occurs.
  53105. Increments the tick then checks to see if the new tick value will cause any
  53106. tasks to be unblocked. */
  53107. traceTASK_INCREMENT_TICK( xTickCount );
  53108. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53109. 8016376: 4b4f ldr r3, [pc, #316] @ (80164b4 <xTaskIncrementTick+0x148>)
  53110. 8016378: 681b ldr r3, [r3, #0]
  53111. 801637a: 2b00 cmp r3, #0
  53112. 801637c: f040 8090 bne.w 80164a0 <xTaskIncrementTick+0x134>
  53113. {
  53114. /* Minor optimisation. The tick count cannot change in this
  53115. block. */
  53116. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  53117. 8016380: 4b4d ldr r3, [pc, #308] @ (80164b8 <xTaskIncrementTick+0x14c>)
  53118. 8016382: 681b ldr r3, [r3, #0]
  53119. 8016384: 3301 adds r3, #1
  53120. 8016386: 613b str r3, [r7, #16]
  53121. /* Increment the RTOS tick, switching the delayed and overflowed
  53122. delayed lists if it wraps to 0. */
  53123. xTickCount = xConstTickCount;
  53124. 8016388: 4a4b ldr r2, [pc, #300] @ (80164b8 <xTaskIncrementTick+0x14c>)
  53125. 801638a: 693b ldr r3, [r7, #16]
  53126. 801638c: 6013 str r3, [r2, #0]
  53127. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  53128. 801638e: 693b ldr r3, [r7, #16]
  53129. 8016390: 2b00 cmp r3, #0
  53130. 8016392: d121 bne.n 80163d8 <xTaskIncrementTick+0x6c>
  53131. {
  53132. taskSWITCH_DELAYED_LISTS();
  53133. 8016394: 4b49 ldr r3, [pc, #292] @ (80164bc <xTaskIncrementTick+0x150>)
  53134. 8016396: 681b ldr r3, [r3, #0]
  53135. 8016398: 681b ldr r3, [r3, #0]
  53136. 801639a: 2b00 cmp r3, #0
  53137. 801639c: d00b beq.n 80163b6 <xTaskIncrementTick+0x4a>
  53138. __asm volatile
  53139. 801639e: f04f 0350 mov.w r3, #80 @ 0x50
  53140. 80163a2: f383 8811 msr BASEPRI, r3
  53141. 80163a6: f3bf 8f6f isb sy
  53142. 80163aa: f3bf 8f4f dsb sy
  53143. 80163ae: 603b str r3, [r7, #0]
  53144. }
  53145. 80163b0: bf00 nop
  53146. 80163b2: bf00 nop
  53147. 80163b4: e7fd b.n 80163b2 <xTaskIncrementTick+0x46>
  53148. 80163b6: 4b41 ldr r3, [pc, #260] @ (80164bc <xTaskIncrementTick+0x150>)
  53149. 80163b8: 681b ldr r3, [r3, #0]
  53150. 80163ba: 60fb str r3, [r7, #12]
  53151. 80163bc: 4b40 ldr r3, [pc, #256] @ (80164c0 <xTaskIncrementTick+0x154>)
  53152. 80163be: 681b ldr r3, [r3, #0]
  53153. 80163c0: 4a3e ldr r2, [pc, #248] @ (80164bc <xTaskIncrementTick+0x150>)
  53154. 80163c2: 6013 str r3, [r2, #0]
  53155. 80163c4: 4a3e ldr r2, [pc, #248] @ (80164c0 <xTaskIncrementTick+0x154>)
  53156. 80163c6: 68fb ldr r3, [r7, #12]
  53157. 80163c8: 6013 str r3, [r2, #0]
  53158. 80163ca: 4b3e ldr r3, [pc, #248] @ (80164c4 <xTaskIncrementTick+0x158>)
  53159. 80163cc: 681b ldr r3, [r3, #0]
  53160. 80163ce: 3301 adds r3, #1
  53161. 80163d0: 4a3c ldr r2, [pc, #240] @ (80164c4 <xTaskIncrementTick+0x158>)
  53162. 80163d2: 6013 str r3, [r2, #0]
  53163. 80163d4: f000 fb18 bl 8016a08 <prvResetNextTaskUnblockTime>
  53164. /* See if this tick has made a timeout expire. Tasks are stored in
  53165. the queue in the order of their wake time - meaning once one task
  53166. has been found whose block time has not expired there is no need to
  53167. look any further down the list. */
  53168. if( xConstTickCount >= xNextTaskUnblockTime )
  53169. 80163d8: 4b3b ldr r3, [pc, #236] @ (80164c8 <xTaskIncrementTick+0x15c>)
  53170. 80163da: 681b ldr r3, [r3, #0]
  53171. 80163dc: 693a ldr r2, [r7, #16]
  53172. 80163de: 429a cmp r2, r3
  53173. 80163e0: d349 bcc.n 8016476 <xTaskIncrementTick+0x10a>
  53174. {
  53175. for( ;; )
  53176. {
  53177. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53178. 80163e2: 4b36 ldr r3, [pc, #216] @ (80164bc <xTaskIncrementTick+0x150>)
  53179. 80163e4: 681b ldr r3, [r3, #0]
  53180. 80163e6: 681b ldr r3, [r3, #0]
  53181. 80163e8: 2b00 cmp r3, #0
  53182. 80163ea: d104 bne.n 80163f6 <xTaskIncrementTick+0x8a>
  53183. /* The delayed list is empty. Set xNextTaskUnblockTime
  53184. to the maximum possible value so it is extremely
  53185. unlikely that the
  53186. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  53187. next time through. */
  53188. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53189. 80163ec: 4b36 ldr r3, [pc, #216] @ (80164c8 <xTaskIncrementTick+0x15c>)
  53190. 80163ee: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53191. 80163f2: 601a str r2, [r3, #0]
  53192. break;
  53193. 80163f4: e03f b.n 8016476 <xTaskIncrementTick+0x10a>
  53194. {
  53195. /* The delayed list is not empty, get the value of the
  53196. item at the head of the delayed list. This is the time
  53197. at which the task at the head of the delayed list must
  53198. be removed from the Blocked state. */
  53199. 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. */
  53200. 80163f6: 4b31 ldr r3, [pc, #196] @ (80164bc <xTaskIncrementTick+0x150>)
  53201. 80163f8: 681b ldr r3, [r3, #0]
  53202. 80163fa: 68db ldr r3, [r3, #12]
  53203. 80163fc: 68db ldr r3, [r3, #12]
  53204. 80163fe: 60bb str r3, [r7, #8]
  53205. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  53206. 8016400: 68bb ldr r3, [r7, #8]
  53207. 8016402: 685b ldr r3, [r3, #4]
  53208. 8016404: 607b str r3, [r7, #4]
  53209. if( xConstTickCount < xItemValue )
  53210. 8016406: 693a ldr r2, [r7, #16]
  53211. 8016408: 687b ldr r3, [r7, #4]
  53212. 801640a: 429a cmp r2, r3
  53213. 801640c: d203 bcs.n 8016416 <xTaskIncrementTick+0xaa>
  53214. /* It is not time to unblock this item yet, but the
  53215. item value is the time at which the task at the head
  53216. of the blocked list must be removed from the Blocked
  53217. state - so record the item value in
  53218. xNextTaskUnblockTime. */
  53219. xNextTaskUnblockTime = xItemValue;
  53220. 801640e: 4a2e ldr r2, [pc, #184] @ (80164c8 <xTaskIncrementTick+0x15c>)
  53221. 8016410: 687b ldr r3, [r7, #4]
  53222. 8016412: 6013 str r3, [r2, #0]
  53223. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  53224. 8016414: e02f b.n 8016476 <xTaskIncrementTick+0x10a>
  53225. {
  53226. mtCOVERAGE_TEST_MARKER();
  53227. }
  53228. /* It is time to remove the item from the Blocked state. */
  53229. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53230. 8016416: 68bb ldr r3, [r7, #8]
  53231. 8016418: 3304 adds r3, #4
  53232. 801641a: 4618 mov r0, r3
  53233. 801641c: f7fe fb06 bl 8014a2c <uxListRemove>
  53234. /* Is the task waiting on an event also? If so remove
  53235. it from the event list. */
  53236. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  53237. 8016420: 68bb ldr r3, [r7, #8]
  53238. 8016422: 6a9b ldr r3, [r3, #40] @ 0x28
  53239. 8016424: 2b00 cmp r3, #0
  53240. 8016426: d004 beq.n 8016432 <xTaskIncrementTick+0xc6>
  53241. {
  53242. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  53243. 8016428: 68bb ldr r3, [r7, #8]
  53244. 801642a: 3318 adds r3, #24
  53245. 801642c: 4618 mov r0, r3
  53246. 801642e: f7fe fafd bl 8014a2c <uxListRemove>
  53247. mtCOVERAGE_TEST_MARKER();
  53248. }
  53249. /* Place the unblocked task into the appropriate ready
  53250. list. */
  53251. prvAddTaskToReadyList( pxTCB );
  53252. 8016432: 68bb ldr r3, [r7, #8]
  53253. 8016434: 6ada ldr r2, [r3, #44] @ 0x2c
  53254. 8016436: 4b25 ldr r3, [pc, #148] @ (80164cc <xTaskIncrementTick+0x160>)
  53255. 8016438: 681b ldr r3, [r3, #0]
  53256. 801643a: 429a cmp r2, r3
  53257. 801643c: d903 bls.n 8016446 <xTaskIncrementTick+0xda>
  53258. 801643e: 68bb ldr r3, [r7, #8]
  53259. 8016440: 6adb ldr r3, [r3, #44] @ 0x2c
  53260. 8016442: 4a22 ldr r2, [pc, #136] @ (80164cc <xTaskIncrementTick+0x160>)
  53261. 8016444: 6013 str r3, [r2, #0]
  53262. 8016446: 68bb ldr r3, [r7, #8]
  53263. 8016448: 6ada ldr r2, [r3, #44] @ 0x2c
  53264. 801644a: 4613 mov r3, r2
  53265. 801644c: 009b lsls r3, r3, #2
  53266. 801644e: 4413 add r3, r2
  53267. 8016450: 009b lsls r3, r3, #2
  53268. 8016452: 4a1f ldr r2, [pc, #124] @ (80164d0 <xTaskIncrementTick+0x164>)
  53269. 8016454: 441a add r2, r3
  53270. 8016456: 68bb ldr r3, [r7, #8]
  53271. 8016458: 3304 adds r3, #4
  53272. 801645a: 4619 mov r1, r3
  53273. 801645c: 4610 mov r0, r2
  53274. 801645e: f7fe fa88 bl 8014972 <vListInsertEnd>
  53275. {
  53276. /* Preemption is on, but a context switch should
  53277. only be performed if the unblocked task has a
  53278. priority that is equal to or higher than the
  53279. currently executing task. */
  53280. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  53281. 8016462: 68bb ldr r3, [r7, #8]
  53282. 8016464: 6ada ldr r2, [r3, #44] @ 0x2c
  53283. 8016466: 4b1b ldr r3, [pc, #108] @ (80164d4 <xTaskIncrementTick+0x168>)
  53284. 8016468: 681b ldr r3, [r3, #0]
  53285. 801646a: 6adb ldr r3, [r3, #44] @ 0x2c
  53286. 801646c: 429a cmp r2, r3
  53287. 801646e: d3b8 bcc.n 80163e2 <xTaskIncrementTick+0x76>
  53288. {
  53289. xSwitchRequired = pdTRUE;
  53290. 8016470: 2301 movs r3, #1
  53291. 8016472: 617b str r3, [r7, #20]
  53292. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53293. 8016474: e7b5 b.n 80163e2 <xTaskIncrementTick+0x76>
  53294. /* Tasks of equal priority to the currently running task will share
  53295. processing time (time slice) if preemption is on, and the application
  53296. writer has not explicitly turned time slicing off. */
  53297. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  53298. {
  53299. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  53300. 8016476: 4b17 ldr r3, [pc, #92] @ (80164d4 <xTaskIncrementTick+0x168>)
  53301. 8016478: 681b ldr r3, [r3, #0]
  53302. 801647a: 6ada ldr r2, [r3, #44] @ 0x2c
  53303. 801647c: 4914 ldr r1, [pc, #80] @ (80164d0 <xTaskIncrementTick+0x164>)
  53304. 801647e: 4613 mov r3, r2
  53305. 8016480: 009b lsls r3, r3, #2
  53306. 8016482: 4413 add r3, r2
  53307. 8016484: 009b lsls r3, r3, #2
  53308. 8016486: 440b add r3, r1
  53309. 8016488: 681b ldr r3, [r3, #0]
  53310. 801648a: 2b01 cmp r3, #1
  53311. 801648c: d901 bls.n 8016492 <xTaskIncrementTick+0x126>
  53312. {
  53313. xSwitchRequired = pdTRUE;
  53314. 801648e: 2301 movs r3, #1
  53315. 8016490: 617b str r3, [r7, #20]
  53316. }
  53317. #endif /* configUSE_TICK_HOOK */
  53318. #if ( configUSE_PREEMPTION == 1 )
  53319. {
  53320. if( xYieldPending != pdFALSE )
  53321. 8016492: 4b11 ldr r3, [pc, #68] @ (80164d8 <xTaskIncrementTick+0x16c>)
  53322. 8016494: 681b ldr r3, [r3, #0]
  53323. 8016496: 2b00 cmp r3, #0
  53324. 8016498: d007 beq.n 80164aa <xTaskIncrementTick+0x13e>
  53325. {
  53326. xSwitchRequired = pdTRUE;
  53327. 801649a: 2301 movs r3, #1
  53328. 801649c: 617b str r3, [r7, #20]
  53329. 801649e: e004 b.n 80164aa <xTaskIncrementTick+0x13e>
  53330. }
  53331. #endif /* configUSE_PREEMPTION */
  53332. }
  53333. else
  53334. {
  53335. ++xPendedTicks;
  53336. 80164a0: 4b0e ldr r3, [pc, #56] @ (80164dc <xTaskIncrementTick+0x170>)
  53337. 80164a2: 681b ldr r3, [r3, #0]
  53338. 80164a4: 3301 adds r3, #1
  53339. 80164a6: 4a0d ldr r2, [pc, #52] @ (80164dc <xTaskIncrementTick+0x170>)
  53340. 80164a8: 6013 str r3, [r2, #0]
  53341. vApplicationTickHook();
  53342. }
  53343. #endif
  53344. }
  53345. return xSwitchRequired;
  53346. 80164aa: 697b ldr r3, [r7, #20]
  53347. }
  53348. 80164ac: 4618 mov r0, r3
  53349. 80164ae: 3718 adds r7, #24
  53350. 80164b0: 46bd mov sp, r7
  53351. 80164b2: bd80 pop {r7, pc}
  53352. 80164b4: 24002ef4 .word 0x24002ef4
  53353. 80164b8: 24002ed0 .word 0x24002ed0
  53354. 80164bc: 24002e84 .word 0x24002e84
  53355. 80164c0: 24002e88 .word 0x24002e88
  53356. 80164c4: 24002ee4 .word 0x24002ee4
  53357. 80164c8: 24002eec .word 0x24002eec
  53358. 80164cc: 24002ed4 .word 0x24002ed4
  53359. 80164d0: 240029fc .word 0x240029fc
  53360. 80164d4: 240029f8 .word 0x240029f8
  53361. 80164d8: 24002ee0 .word 0x24002ee0
  53362. 80164dc: 24002edc .word 0x24002edc
  53363. 080164e0 <vTaskSwitchContext>:
  53364. #endif /* configUSE_APPLICATION_TASK_TAG */
  53365. /*-----------------------------------------------------------*/
  53366. void vTaskSwitchContext( void )
  53367. {
  53368. 80164e0: b580 push {r7, lr}
  53369. 80164e2: b084 sub sp, #16
  53370. 80164e4: af00 add r7, sp, #0
  53371. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  53372. 80164e6: 4b32 ldr r3, [pc, #200] @ (80165b0 <vTaskSwitchContext+0xd0>)
  53373. 80164e8: 681b ldr r3, [r3, #0]
  53374. 80164ea: 2b00 cmp r3, #0
  53375. 80164ec: d003 beq.n 80164f6 <vTaskSwitchContext+0x16>
  53376. {
  53377. /* The scheduler is currently suspended - do not allow a context
  53378. switch. */
  53379. xYieldPending = pdTRUE;
  53380. 80164ee: 4b31 ldr r3, [pc, #196] @ (80165b4 <vTaskSwitchContext+0xd4>)
  53381. 80164f0: 2201 movs r2, #1
  53382. 80164f2: 601a str r2, [r3, #0]
  53383. for additional information. */
  53384. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53385. }
  53386. #endif /* configUSE_NEWLIB_REENTRANT */
  53387. }
  53388. }
  53389. 80164f4: e058 b.n 80165a8 <vTaskSwitchContext+0xc8>
  53390. xYieldPending = pdFALSE;
  53391. 80164f6: 4b2f ldr r3, [pc, #188] @ (80165b4 <vTaskSwitchContext+0xd4>)
  53392. 80164f8: 2200 movs r2, #0
  53393. 80164fa: 601a str r2, [r3, #0]
  53394. taskCHECK_FOR_STACK_OVERFLOW();
  53395. 80164fc: 4b2e ldr r3, [pc, #184] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53396. 80164fe: 681b ldr r3, [r3, #0]
  53397. 8016500: 681a ldr r2, [r3, #0]
  53398. 8016502: 4b2d ldr r3, [pc, #180] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53399. 8016504: 681b ldr r3, [r3, #0]
  53400. 8016506: 6b1b ldr r3, [r3, #48] @ 0x30
  53401. 8016508: 429a cmp r2, r3
  53402. 801650a: d808 bhi.n 801651e <vTaskSwitchContext+0x3e>
  53403. 801650c: 4b2a ldr r3, [pc, #168] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53404. 801650e: 681a ldr r2, [r3, #0]
  53405. 8016510: 4b29 ldr r3, [pc, #164] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53406. 8016512: 681b ldr r3, [r3, #0]
  53407. 8016514: 3334 adds r3, #52 @ 0x34
  53408. 8016516: 4619 mov r1, r3
  53409. 8016518: 4610 mov r0, r2
  53410. 801651a: f7ea f859 bl 80005d0 <vApplicationStackOverflowHook>
  53411. 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. */
  53412. 801651e: 4b27 ldr r3, [pc, #156] @ (80165bc <vTaskSwitchContext+0xdc>)
  53413. 8016520: 681b ldr r3, [r3, #0]
  53414. 8016522: 60fb str r3, [r7, #12]
  53415. 8016524: e011 b.n 801654a <vTaskSwitchContext+0x6a>
  53416. 8016526: 68fb ldr r3, [r7, #12]
  53417. 8016528: 2b00 cmp r3, #0
  53418. 801652a: d10b bne.n 8016544 <vTaskSwitchContext+0x64>
  53419. __asm volatile
  53420. 801652c: f04f 0350 mov.w r3, #80 @ 0x50
  53421. 8016530: f383 8811 msr BASEPRI, r3
  53422. 8016534: f3bf 8f6f isb sy
  53423. 8016538: f3bf 8f4f dsb sy
  53424. 801653c: 607b str r3, [r7, #4]
  53425. }
  53426. 801653e: bf00 nop
  53427. 8016540: bf00 nop
  53428. 8016542: e7fd b.n 8016540 <vTaskSwitchContext+0x60>
  53429. 8016544: 68fb ldr r3, [r7, #12]
  53430. 8016546: 3b01 subs r3, #1
  53431. 8016548: 60fb str r3, [r7, #12]
  53432. 801654a: 491d ldr r1, [pc, #116] @ (80165c0 <vTaskSwitchContext+0xe0>)
  53433. 801654c: 68fa ldr r2, [r7, #12]
  53434. 801654e: 4613 mov r3, r2
  53435. 8016550: 009b lsls r3, r3, #2
  53436. 8016552: 4413 add r3, r2
  53437. 8016554: 009b lsls r3, r3, #2
  53438. 8016556: 440b add r3, r1
  53439. 8016558: 681b ldr r3, [r3, #0]
  53440. 801655a: 2b00 cmp r3, #0
  53441. 801655c: d0e3 beq.n 8016526 <vTaskSwitchContext+0x46>
  53442. 801655e: 68fa ldr r2, [r7, #12]
  53443. 8016560: 4613 mov r3, r2
  53444. 8016562: 009b lsls r3, r3, #2
  53445. 8016564: 4413 add r3, r2
  53446. 8016566: 009b lsls r3, r3, #2
  53447. 8016568: 4a15 ldr r2, [pc, #84] @ (80165c0 <vTaskSwitchContext+0xe0>)
  53448. 801656a: 4413 add r3, r2
  53449. 801656c: 60bb str r3, [r7, #8]
  53450. 801656e: 68bb ldr r3, [r7, #8]
  53451. 8016570: 685b ldr r3, [r3, #4]
  53452. 8016572: 685a ldr r2, [r3, #4]
  53453. 8016574: 68bb ldr r3, [r7, #8]
  53454. 8016576: 605a str r2, [r3, #4]
  53455. 8016578: 68bb ldr r3, [r7, #8]
  53456. 801657a: 685a ldr r2, [r3, #4]
  53457. 801657c: 68bb ldr r3, [r7, #8]
  53458. 801657e: 3308 adds r3, #8
  53459. 8016580: 429a cmp r2, r3
  53460. 8016582: d104 bne.n 801658e <vTaskSwitchContext+0xae>
  53461. 8016584: 68bb ldr r3, [r7, #8]
  53462. 8016586: 685b ldr r3, [r3, #4]
  53463. 8016588: 685a ldr r2, [r3, #4]
  53464. 801658a: 68bb ldr r3, [r7, #8]
  53465. 801658c: 605a str r2, [r3, #4]
  53466. 801658e: 68bb ldr r3, [r7, #8]
  53467. 8016590: 685b ldr r3, [r3, #4]
  53468. 8016592: 68db ldr r3, [r3, #12]
  53469. 8016594: 4a08 ldr r2, [pc, #32] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53470. 8016596: 6013 str r3, [r2, #0]
  53471. 8016598: 4a08 ldr r2, [pc, #32] @ (80165bc <vTaskSwitchContext+0xdc>)
  53472. 801659a: 68fb ldr r3, [r7, #12]
  53473. 801659c: 6013 str r3, [r2, #0]
  53474. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53475. 801659e: 4b06 ldr r3, [pc, #24] @ (80165b8 <vTaskSwitchContext+0xd8>)
  53476. 80165a0: 681b ldr r3, [r3, #0]
  53477. 80165a2: 3354 adds r3, #84 @ 0x54
  53478. 80165a4: 4a07 ldr r2, [pc, #28] @ (80165c4 <vTaskSwitchContext+0xe4>)
  53479. 80165a6: 6013 str r3, [r2, #0]
  53480. }
  53481. 80165a8: bf00 nop
  53482. 80165aa: 3710 adds r7, #16
  53483. 80165ac: 46bd mov sp, r7
  53484. 80165ae: bd80 pop {r7, pc}
  53485. 80165b0: 24002ef4 .word 0x24002ef4
  53486. 80165b4: 24002ee0 .word 0x24002ee0
  53487. 80165b8: 240029f8 .word 0x240029f8
  53488. 80165bc: 24002ed4 .word 0x24002ed4
  53489. 80165c0: 240029fc .word 0x240029fc
  53490. 80165c4: 24000048 .word 0x24000048
  53491. 080165c8 <vTaskPlaceOnEventList>:
  53492. /*-----------------------------------------------------------*/
  53493. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  53494. {
  53495. 80165c8: b580 push {r7, lr}
  53496. 80165ca: b084 sub sp, #16
  53497. 80165cc: af00 add r7, sp, #0
  53498. 80165ce: 6078 str r0, [r7, #4]
  53499. 80165d0: 6039 str r1, [r7, #0]
  53500. configASSERT( pxEventList );
  53501. 80165d2: 687b ldr r3, [r7, #4]
  53502. 80165d4: 2b00 cmp r3, #0
  53503. 80165d6: d10b bne.n 80165f0 <vTaskPlaceOnEventList+0x28>
  53504. __asm volatile
  53505. 80165d8: f04f 0350 mov.w r3, #80 @ 0x50
  53506. 80165dc: f383 8811 msr BASEPRI, r3
  53507. 80165e0: f3bf 8f6f isb sy
  53508. 80165e4: f3bf 8f4f dsb sy
  53509. 80165e8: 60fb str r3, [r7, #12]
  53510. }
  53511. 80165ea: bf00 nop
  53512. 80165ec: bf00 nop
  53513. 80165ee: e7fd b.n 80165ec <vTaskPlaceOnEventList+0x24>
  53514. /* Place the event list item of the TCB in the appropriate event list.
  53515. This is placed in the list in priority order so the highest priority task
  53516. is the first to be woken by the event. The queue that contains the event
  53517. list is locked, preventing simultaneous access from interrupts. */
  53518. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53519. 80165f0: 4b07 ldr r3, [pc, #28] @ (8016610 <vTaskPlaceOnEventList+0x48>)
  53520. 80165f2: 681b ldr r3, [r3, #0]
  53521. 80165f4: 3318 adds r3, #24
  53522. 80165f6: 4619 mov r1, r3
  53523. 80165f8: 6878 ldr r0, [r7, #4]
  53524. 80165fa: f7fe f9de bl 80149ba <vListInsert>
  53525. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53526. 80165fe: 2101 movs r1, #1
  53527. 8016600: 6838 ldr r0, [r7, #0]
  53528. 8016602: f000 fded bl 80171e0 <prvAddCurrentTaskToDelayedList>
  53529. }
  53530. 8016606: bf00 nop
  53531. 8016608: 3710 adds r7, #16
  53532. 801660a: 46bd mov sp, r7
  53533. 801660c: bd80 pop {r7, pc}
  53534. 801660e: bf00 nop
  53535. 8016610: 240029f8 .word 0x240029f8
  53536. 08016614 <vTaskPlaceOnEventListRestricted>:
  53537. /*-----------------------------------------------------------*/
  53538. #if( configUSE_TIMERS == 1 )
  53539. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  53540. {
  53541. 8016614: b580 push {r7, lr}
  53542. 8016616: b086 sub sp, #24
  53543. 8016618: af00 add r7, sp, #0
  53544. 801661a: 60f8 str r0, [r7, #12]
  53545. 801661c: 60b9 str r1, [r7, #8]
  53546. 801661e: 607a str r2, [r7, #4]
  53547. configASSERT( pxEventList );
  53548. 8016620: 68fb ldr r3, [r7, #12]
  53549. 8016622: 2b00 cmp r3, #0
  53550. 8016624: d10b bne.n 801663e <vTaskPlaceOnEventListRestricted+0x2a>
  53551. __asm volatile
  53552. 8016626: f04f 0350 mov.w r3, #80 @ 0x50
  53553. 801662a: f383 8811 msr BASEPRI, r3
  53554. 801662e: f3bf 8f6f isb sy
  53555. 8016632: f3bf 8f4f dsb sy
  53556. 8016636: 617b str r3, [r7, #20]
  53557. }
  53558. 8016638: bf00 nop
  53559. 801663a: bf00 nop
  53560. 801663c: e7fd b.n 801663a <vTaskPlaceOnEventListRestricted+0x26>
  53561. /* Place the event list item of the TCB in the appropriate event list.
  53562. In this case it is assume that this is the only task that is going to
  53563. be waiting on this event list, so the faster vListInsertEnd() function
  53564. can be used in place of vListInsert. */
  53565. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53566. 801663e: 4b0a ldr r3, [pc, #40] @ (8016668 <vTaskPlaceOnEventListRestricted+0x54>)
  53567. 8016640: 681b ldr r3, [r3, #0]
  53568. 8016642: 3318 adds r3, #24
  53569. 8016644: 4619 mov r1, r3
  53570. 8016646: 68f8 ldr r0, [r7, #12]
  53571. 8016648: f7fe f993 bl 8014972 <vListInsertEnd>
  53572. /* If the task should block indefinitely then set the block time to a
  53573. value that will be recognised as an indefinite delay inside the
  53574. prvAddCurrentTaskToDelayedList() function. */
  53575. if( xWaitIndefinitely != pdFALSE )
  53576. 801664c: 687b ldr r3, [r7, #4]
  53577. 801664e: 2b00 cmp r3, #0
  53578. 8016650: d002 beq.n 8016658 <vTaskPlaceOnEventListRestricted+0x44>
  53579. {
  53580. xTicksToWait = portMAX_DELAY;
  53581. 8016652: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  53582. 8016656: 60bb str r3, [r7, #8]
  53583. }
  53584. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  53585. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  53586. 8016658: 6879 ldr r1, [r7, #4]
  53587. 801665a: 68b8 ldr r0, [r7, #8]
  53588. 801665c: f000 fdc0 bl 80171e0 <prvAddCurrentTaskToDelayedList>
  53589. }
  53590. 8016660: bf00 nop
  53591. 8016662: 3718 adds r7, #24
  53592. 8016664: 46bd mov sp, r7
  53593. 8016666: bd80 pop {r7, pc}
  53594. 8016668: 240029f8 .word 0x240029f8
  53595. 0801666c <xTaskRemoveFromEventList>:
  53596. #endif /* configUSE_TIMERS */
  53597. /*-----------------------------------------------------------*/
  53598. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  53599. {
  53600. 801666c: b580 push {r7, lr}
  53601. 801666e: b086 sub sp, #24
  53602. 8016670: af00 add r7, sp, #0
  53603. 8016672: 6078 str r0, [r7, #4]
  53604. get called - the lock count on the queue will get modified instead. This
  53605. means exclusive access to the event list is guaranteed here.
  53606. This function assumes that a check has already been made to ensure that
  53607. pxEventList is not empty. */
  53608. 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. */
  53609. 8016674: 687b ldr r3, [r7, #4]
  53610. 8016676: 68db ldr r3, [r3, #12]
  53611. 8016678: 68db ldr r3, [r3, #12]
  53612. 801667a: 613b str r3, [r7, #16]
  53613. configASSERT( pxUnblockedTCB );
  53614. 801667c: 693b ldr r3, [r7, #16]
  53615. 801667e: 2b00 cmp r3, #0
  53616. 8016680: d10b bne.n 801669a <xTaskRemoveFromEventList+0x2e>
  53617. __asm volatile
  53618. 8016682: f04f 0350 mov.w r3, #80 @ 0x50
  53619. 8016686: f383 8811 msr BASEPRI, r3
  53620. 801668a: f3bf 8f6f isb sy
  53621. 801668e: f3bf 8f4f dsb sy
  53622. 8016692: 60fb str r3, [r7, #12]
  53623. }
  53624. 8016694: bf00 nop
  53625. 8016696: bf00 nop
  53626. 8016698: e7fd b.n 8016696 <xTaskRemoveFromEventList+0x2a>
  53627. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  53628. 801669a: 693b ldr r3, [r7, #16]
  53629. 801669c: 3318 adds r3, #24
  53630. 801669e: 4618 mov r0, r3
  53631. 80166a0: f7fe f9c4 bl 8014a2c <uxListRemove>
  53632. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53633. 80166a4: 4b1d ldr r3, [pc, #116] @ (801671c <xTaskRemoveFromEventList+0xb0>)
  53634. 80166a6: 681b ldr r3, [r3, #0]
  53635. 80166a8: 2b00 cmp r3, #0
  53636. 80166aa: d11d bne.n 80166e8 <xTaskRemoveFromEventList+0x7c>
  53637. {
  53638. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  53639. 80166ac: 693b ldr r3, [r7, #16]
  53640. 80166ae: 3304 adds r3, #4
  53641. 80166b0: 4618 mov r0, r3
  53642. 80166b2: f7fe f9bb bl 8014a2c <uxListRemove>
  53643. prvAddTaskToReadyList( pxUnblockedTCB );
  53644. 80166b6: 693b ldr r3, [r7, #16]
  53645. 80166b8: 6ada ldr r2, [r3, #44] @ 0x2c
  53646. 80166ba: 4b19 ldr r3, [pc, #100] @ (8016720 <xTaskRemoveFromEventList+0xb4>)
  53647. 80166bc: 681b ldr r3, [r3, #0]
  53648. 80166be: 429a cmp r2, r3
  53649. 80166c0: d903 bls.n 80166ca <xTaskRemoveFromEventList+0x5e>
  53650. 80166c2: 693b ldr r3, [r7, #16]
  53651. 80166c4: 6adb ldr r3, [r3, #44] @ 0x2c
  53652. 80166c6: 4a16 ldr r2, [pc, #88] @ (8016720 <xTaskRemoveFromEventList+0xb4>)
  53653. 80166c8: 6013 str r3, [r2, #0]
  53654. 80166ca: 693b ldr r3, [r7, #16]
  53655. 80166cc: 6ada ldr r2, [r3, #44] @ 0x2c
  53656. 80166ce: 4613 mov r3, r2
  53657. 80166d0: 009b lsls r3, r3, #2
  53658. 80166d2: 4413 add r3, r2
  53659. 80166d4: 009b lsls r3, r3, #2
  53660. 80166d6: 4a13 ldr r2, [pc, #76] @ (8016724 <xTaskRemoveFromEventList+0xb8>)
  53661. 80166d8: 441a add r2, r3
  53662. 80166da: 693b ldr r3, [r7, #16]
  53663. 80166dc: 3304 adds r3, #4
  53664. 80166de: 4619 mov r1, r3
  53665. 80166e0: 4610 mov r0, r2
  53666. 80166e2: f7fe f946 bl 8014972 <vListInsertEnd>
  53667. 80166e6: e005 b.n 80166f4 <xTaskRemoveFromEventList+0x88>
  53668. }
  53669. else
  53670. {
  53671. /* The delayed and ready lists cannot be accessed, so hold this task
  53672. pending until the scheduler is resumed. */
  53673. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  53674. 80166e8: 693b ldr r3, [r7, #16]
  53675. 80166ea: 3318 adds r3, #24
  53676. 80166ec: 4619 mov r1, r3
  53677. 80166ee: 480e ldr r0, [pc, #56] @ (8016728 <xTaskRemoveFromEventList+0xbc>)
  53678. 80166f0: f7fe f93f bl 8014972 <vListInsertEnd>
  53679. }
  53680. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  53681. 80166f4: 693b ldr r3, [r7, #16]
  53682. 80166f6: 6ada ldr r2, [r3, #44] @ 0x2c
  53683. 80166f8: 4b0c ldr r3, [pc, #48] @ (801672c <xTaskRemoveFromEventList+0xc0>)
  53684. 80166fa: 681b ldr r3, [r3, #0]
  53685. 80166fc: 6adb ldr r3, [r3, #44] @ 0x2c
  53686. 80166fe: 429a cmp r2, r3
  53687. 8016700: d905 bls.n 801670e <xTaskRemoveFromEventList+0xa2>
  53688. {
  53689. /* Return true if the task removed from the event list has a higher
  53690. priority than the calling task. This allows the calling task to know if
  53691. it should force a context switch now. */
  53692. xReturn = pdTRUE;
  53693. 8016702: 2301 movs r3, #1
  53694. 8016704: 617b str r3, [r7, #20]
  53695. /* Mark that a yield is pending in case the user is not using the
  53696. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  53697. xYieldPending = pdTRUE;
  53698. 8016706: 4b0a ldr r3, [pc, #40] @ (8016730 <xTaskRemoveFromEventList+0xc4>)
  53699. 8016708: 2201 movs r2, #1
  53700. 801670a: 601a str r2, [r3, #0]
  53701. 801670c: e001 b.n 8016712 <xTaskRemoveFromEventList+0xa6>
  53702. }
  53703. else
  53704. {
  53705. xReturn = pdFALSE;
  53706. 801670e: 2300 movs r3, #0
  53707. 8016710: 617b str r3, [r7, #20]
  53708. }
  53709. return xReturn;
  53710. 8016712: 697b ldr r3, [r7, #20]
  53711. }
  53712. 8016714: 4618 mov r0, r3
  53713. 8016716: 3718 adds r7, #24
  53714. 8016718: 46bd mov sp, r7
  53715. 801671a: bd80 pop {r7, pc}
  53716. 801671c: 24002ef4 .word 0x24002ef4
  53717. 8016720: 24002ed4 .word 0x24002ed4
  53718. 8016724: 240029fc .word 0x240029fc
  53719. 8016728: 24002e8c .word 0x24002e8c
  53720. 801672c: 240029f8 .word 0x240029f8
  53721. 8016730: 24002ee0 .word 0x24002ee0
  53722. 08016734 <vTaskSetTimeOutState>:
  53723. }
  53724. }
  53725. /*-----------------------------------------------------------*/
  53726. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  53727. {
  53728. 8016734: b580 push {r7, lr}
  53729. 8016736: b084 sub sp, #16
  53730. 8016738: af00 add r7, sp, #0
  53731. 801673a: 6078 str r0, [r7, #4]
  53732. configASSERT( pxTimeOut );
  53733. 801673c: 687b ldr r3, [r7, #4]
  53734. 801673e: 2b00 cmp r3, #0
  53735. 8016740: d10b bne.n 801675a <vTaskSetTimeOutState+0x26>
  53736. __asm volatile
  53737. 8016742: f04f 0350 mov.w r3, #80 @ 0x50
  53738. 8016746: f383 8811 msr BASEPRI, r3
  53739. 801674a: f3bf 8f6f isb sy
  53740. 801674e: f3bf 8f4f dsb sy
  53741. 8016752: 60fb str r3, [r7, #12]
  53742. }
  53743. 8016754: bf00 nop
  53744. 8016756: bf00 nop
  53745. 8016758: e7fd b.n 8016756 <vTaskSetTimeOutState+0x22>
  53746. taskENTER_CRITICAL();
  53747. 801675a: f001 fb0d bl 8017d78 <vPortEnterCritical>
  53748. {
  53749. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53750. 801675e: 4b07 ldr r3, [pc, #28] @ (801677c <vTaskSetTimeOutState+0x48>)
  53751. 8016760: 681a ldr r2, [r3, #0]
  53752. 8016762: 687b ldr r3, [r7, #4]
  53753. 8016764: 601a str r2, [r3, #0]
  53754. pxTimeOut->xTimeOnEntering = xTickCount;
  53755. 8016766: 4b06 ldr r3, [pc, #24] @ (8016780 <vTaskSetTimeOutState+0x4c>)
  53756. 8016768: 681a ldr r2, [r3, #0]
  53757. 801676a: 687b ldr r3, [r7, #4]
  53758. 801676c: 605a str r2, [r3, #4]
  53759. }
  53760. taskEXIT_CRITICAL();
  53761. 801676e: f001 fb35 bl 8017ddc <vPortExitCritical>
  53762. }
  53763. 8016772: bf00 nop
  53764. 8016774: 3710 adds r7, #16
  53765. 8016776: 46bd mov sp, r7
  53766. 8016778: bd80 pop {r7, pc}
  53767. 801677a: bf00 nop
  53768. 801677c: 24002ee4 .word 0x24002ee4
  53769. 8016780: 24002ed0 .word 0x24002ed0
  53770. 08016784 <vTaskInternalSetTimeOutState>:
  53771. /*-----------------------------------------------------------*/
  53772. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  53773. {
  53774. 8016784: b480 push {r7}
  53775. 8016786: b083 sub sp, #12
  53776. 8016788: af00 add r7, sp, #0
  53777. 801678a: 6078 str r0, [r7, #4]
  53778. /* For internal use only as it does not use a critical section. */
  53779. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53780. 801678c: 4b06 ldr r3, [pc, #24] @ (80167a8 <vTaskInternalSetTimeOutState+0x24>)
  53781. 801678e: 681a ldr r2, [r3, #0]
  53782. 8016790: 687b ldr r3, [r7, #4]
  53783. 8016792: 601a str r2, [r3, #0]
  53784. pxTimeOut->xTimeOnEntering = xTickCount;
  53785. 8016794: 4b05 ldr r3, [pc, #20] @ (80167ac <vTaskInternalSetTimeOutState+0x28>)
  53786. 8016796: 681a ldr r2, [r3, #0]
  53787. 8016798: 687b ldr r3, [r7, #4]
  53788. 801679a: 605a str r2, [r3, #4]
  53789. }
  53790. 801679c: bf00 nop
  53791. 801679e: 370c adds r7, #12
  53792. 80167a0: 46bd mov sp, r7
  53793. 80167a2: f85d 7b04 ldr.w r7, [sp], #4
  53794. 80167a6: 4770 bx lr
  53795. 80167a8: 24002ee4 .word 0x24002ee4
  53796. 80167ac: 24002ed0 .word 0x24002ed0
  53797. 080167b0 <xTaskCheckForTimeOut>:
  53798. /*-----------------------------------------------------------*/
  53799. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  53800. {
  53801. 80167b0: b580 push {r7, lr}
  53802. 80167b2: b088 sub sp, #32
  53803. 80167b4: af00 add r7, sp, #0
  53804. 80167b6: 6078 str r0, [r7, #4]
  53805. 80167b8: 6039 str r1, [r7, #0]
  53806. BaseType_t xReturn;
  53807. configASSERT( pxTimeOut );
  53808. 80167ba: 687b ldr r3, [r7, #4]
  53809. 80167bc: 2b00 cmp r3, #0
  53810. 80167be: d10b bne.n 80167d8 <xTaskCheckForTimeOut+0x28>
  53811. __asm volatile
  53812. 80167c0: f04f 0350 mov.w r3, #80 @ 0x50
  53813. 80167c4: f383 8811 msr BASEPRI, r3
  53814. 80167c8: f3bf 8f6f isb sy
  53815. 80167cc: f3bf 8f4f dsb sy
  53816. 80167d0: 613b str r3, [r7, #16]
  53817. }
  53818. 80167d2: bf00 nop
  53819. 80167d4: bf00 nop
  53820. 80167d6: e7fd b.n 80167d4 <xTaskCheckForTimeOut+0x24>
  53821. configASSERT( pxTicksToWait );
  53822. 80167d8: 683b ldr r3, [r7, #0]
  53823. 80167da: 2b00 cmp r3, #0
  53824. 80167dc: d10b bne.n 80167f6 <xTaskCheckForTimeOut+0x46>
  53825. __asm volatile
  53826. 80167de: f04f 0350 mov.w r3, #80 @ 0x50
  53827. 80167e2: f383 8811 msr BASEPRI, r3
  53828. 80167e6: f3bf 8f6f isb sy
  53829. 80167ea: f3bf 8f4f dsb sy
  53830. 80167ee: 60fb str r3, [r7, #12]
  53831. }
  53832. 80167f0: bf00 nop
  53833. 80167f2: bf00 nop
  53834. 80167f4: e7fd b.n 80167f2 <xTaskCheckForTimeOut+0x42>
  53835. taskENTER_CRITICAL();
  53836. 80167f6: f001 fabf bl 8017d78 <vPortEnterCritical>
  53837. {
  53838. /* Minor optimisation. The tick count cannot change in this block. */
  53839. const TickType_t xConstTickCount = xTickCount;
  53840. 80167fa: 4b1d ldr r3, [pc, #116] @ (8016870 <xTaskCheckForTimeOut+0xc0>)
  53841. 80167fc: 681b ldr r3, [r3, #0]
  53842. 80167fe: 61bb str r3, [r7, #24]
  53843. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  53844. 8016800: 687b ldr r3, [r7, #4]
  53845. 8016802: 685b ldr r3, [r3, #4]
  53846. 8016804: 69ba ldr r2, [r7, #24]
  53847. 8016806: 1ad3 subs r3, r2, r3
  53848. 8016808: 617b str r3, [r7, #20]
  53849. }
  53850. else
  53851. #endif
  53852. #if ( INCLUDE_vTaskSuspend == 1 )
  53853. if( *pxTicksToWait == portMAX_DELAY )
  53854. 801680a: 683b ldr r3, [r7, #0]
  53855. 801680c: 681b ldr r3, [r3, #0]
  53856. 801680e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53857. 8016812: d102 bne.n 801681a <xTaskCheckForTimeOut+0x6a>
  53858. {
  53859. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  53860. specified is the maximum block time then the task should block
  53861. indefinitely, and therefore never time out. */
  53862. xReturn = pdFALSE;
  53863. 8016814: 2300 movs r3, #0
  53864. 8016816: 61fb str r3, [r7, #28]
  53865. 8016818: e023 b.n 8016862 <xTaskCheckForTimeOut+0xb2>
  53866. }
  53867. else
  53868. #endif
  53869. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  53870. 801681a: 687b ldr r3, [r7, #4]
  53871. 801681c: 681a ldr r2, [r3, #0]
  53872. 801681e: 4b15 ldr r3, [pc, #84] @ (8016874 <xTaskCheckForTimeOut+0xc4>)
  53873. 8016820: 681b ldr r3, [r3, #0]
  53874. 8016822: 429a cmp r2, r3
  53875. 8016824: d007 beq.n 8016836 <xTaskCheckForTimeOut+0x86>
  53876. 8016826: 687b ldr r3, [r7, #4]
  53877. 8016828: 685b ldr r3, [r3, #4]
  53878. 801682a: 69ba ldr r2, [r7, #24]
  53879. 801682c: 429a cmp r2, r3
  53880. 801682e: d302 bcc.n 8016836 <xTaskCheckForTimeOut+0x86>
  53881. /* The tick count is greater than the time at which
  53882. vTaskSetTimeout() was called, but has also overflowed since
  53883. vTaskSetTimeOut() was called. It must have wrapped all the way
  53884. around and gone past again. This passed since vTaskSetTimeout()
  53885. was called. */
  53886. xReturn = pdTRUE;
  53887. 8016830: 2301 movs r3, #1
  53888. 8016832: 61fb str r3, [r7, #28]
  53889. 8016834: e015 b.n 8016862 <xTaskCheckForTimeOut+0xb2>
  53890. }
  53891. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  53892. 8016836: 683b ldr r3, [r7, #0]
  53893. 8016838: 681b ldr r3, [r3, #0]
  53894. 801683a: 697a ldr r2, [r7, #20]
  53895. 801683c: 429a cmp r2, r3
  53896. 801683e: d20b bcs.n 8016858 <xTaskCheckForTimeOut+0xa8>
  53897. {
  53898. /* Not a genuine timeout. Adjust parameters for time remaining. */
  53899. *pxTicksToWait -= xElapsedTime;
  53900. 8016840: 683b ldr r3, [r7, #0]
  53901. 8016842: 681a ldr r2, [r3, #0]
  53902. 8016844: 697b ldr r3, [r7, #20]
  53903. 8016846: 1ad2 subs r2, r2, r3
  53904. 8016848: 683b ldr r3, [r7, #0]
  53905. 801684a: 601a str r2, [r3, #0]
  53906. vTaskInternalSetTimeOutState( pxTimeOut );
  53907. 801684c: 6878 ldr r0, [r7, #4]
  53908. 801684e: f7ff ff99 bl 8016784 <vTaskInternalSetTimeOutState>
  53909. xReturn = pdFALSE;
  53910. 8016852: 2300 movs r3, #0
  53911. 8016854: 61fb str r3, [r7, #28]
  53912. 8016856: e004 b.n 8016862 <xTaskCheckForTimeOut+0xb2>
  53913. }
  53914. else
  53915. {
  53916. *pxTicksToWait = 0;
  53917. 8016858: 683b ldr r3, [r7, #0]
  53918. 801685a: 2200 movs r2, #0
  53919. 801685c: 601a str r2, [r3, #0]
  53920. xReturn = pdTRUE;
  53921. 801685e: 2301 movs r3, #1
  53922. 8016860: 61fb str r3, [r7, #28]
  53923. }
  53924. }
  53925. taskEXIT_CRITICAL();
  53926. 8016862: f001 fabb bl 8017ddc <vPortExitCritical>
  53927. return xReturn;
  53928. 8016866: 69fb ldr r3, [r7, #28]
  53929. }
  53930. 8016868: 4618 mov r0, r3
  53931. 801686a: 3720 adds r7, #32
  53932. 801686c: 46bd mov sp, r7
  53933. 801686e: bd80 pop {r7, pc}
  53934. 8016870: 24002ed0 .word 0x24002ed0
  53935. 8016874: 24002ee4 .word 0x24002ee4
  53936. 08016878 <vTaskMissedYield>:
  53937. /*-----------------------------------------------------------*/
  53938. void vTaskMissedYield( void )
  53939. {
  53940. 8016878: b480 push {r7}
  53941. 801687a: af00 add r7, sp, #0
  53942. xYieldPending = pdTRUE;
  53943. 801687c: 4b03 ldr r3, [pc, #12] @ (801688c <vTaskMissedYield+0x14>)
  53944. 801687e: 2201 movs r2, #1
  53945. 8016880: 601a str r2, [r3, #0]
  53946. }
  53947. 8016882: bf00 nop
  53948. 8016884: 46bd mov sp, r7
  53949. 8016886: f85d 7b04 ldr.w r7, [sp], #4
  53950. 801688a: 4770 bx lr
  53951. 801688c: 24002ee0 .word 0x24002ee0
  53952. 08016890 <prvIdleTask>:
  53953. *
  53954. * void prvIdleTask( void *pvParameters );
  53955. *
  53956. */
  53957. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53958. {
  53959. 8016890: b580 push {r7, lr}
  53960. 8016892: b082 sub sp, #8
  53961. 8016894: af00 add r7, sp, #0
  53962. 8016896: 6078 str r0, [r7, #4]
  53963. for( ;; )
  53964. {
  53965. /* See if any tasks have deleted themselves - if so then the idle task
  53966. is responsible for freeing the deleted task's TCB and stack. */
  53967. prvCheckTasksWaitingTermination();
  53968. 8016898: f000 f852 bl 8016940 <prvCheckTasksWaitingTermination>
  53969. A critical region is not required here as we are just reading from
  53970. the list, and an occasional incorrect value will not matter. If
  53971. the ready list at the idle priority contains more than one task
  53972. then a task other than the idle task is ready to execute. */
  53973. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53974. 801689c: 4b06 ldr r3, [pc, #24] @ (80168b8 <prvIdleTask+0x28>)
  53975. 801689e: 681b ldr r3, [r3, #0]
  53976. 80168a0: 2b01 cmp r3, #1
  53977. 80168a2: d9f9 bls.n 8016898 <prvIdleTask+0x8>
  53978. {
  53979. taskYIELD();
  53980. 80168a4: 4b05 ldr r3, [pc, #20] @ (80168bc <prvIdleTask+0x2c>)
  53981. 80168a6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53982. 80168aa: 601a str r2, [r3, #0]
  53983. 80168ac: f3bf 8f4f dsb sy
  53984. 80168b0: f3bf 8f6f isb sy
  53985. prvCheckTasksWaitingTermination();
  53986. 80168b4: e7f0 b.n 8016898 <prvIdleTask+0x8>
  53987. 80168b6: bf00 nop
  53988. 80168b8: 240029fc .word 0x240029fc
  53989. 80168bc: e000ed04 .word 0xe000ed04
  53990. 080168c0 <prvInitialiseTaskLists>:
  53991. #endif /* portUSING_MPU_WRAPPERS */
  53992. /*-----------------------------------------------------------*/
  53993. static void prvInitialiseTaskLists( void )
  53994. {
  53995. 80168c0: b580 push {r7, lr}
  53996. 80168c2: b082 sub sp, #8
  53997. 80168c4: af00 add r7, sp, #0
  53998. UBaseType_t uxPriority;
  53999. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  54000. 80168c6: 2300 movs r3, #0
  54001. 80168c8: 607b str r3, [r7, #4]
  54002. 80168ca: e00c b.n 80168e6 <prvInitialiseTaskLists+0x26>
  54003. {
  54004. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  54005. 80168cc: 687a ldr r2, [r7, #4]
  54006. 80168ce: 4613 mov r3, r2
  54007. 80168d0: 009b lsls r3, r3, #2
  54008. 80168d2: 4413 add r3, r2
  54009. 80168d4: 009b lsls r3, r3, #2
  54010. 80168d6: 4a12 ldr r2, [pc, #72] @ (8016920 <prvInitialiseTaskLists+0x60>)
  54011. 80168d8: 4413 add r3, r2
  54012. 80168da: 4618 mov r0, r3
  54013. 80168dc: f7fe f81c bl 8014918 <vListInitialise>
  54014. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  54015. 80168e0: 687b ldr r3, [r7, #4]
  54016. 80168e2: 3301 adds r3, #1
  54017. 80168e4: 607b str r3, [r7, #4]
  54018. 80168e6: 687b ldr r3, [r7, #4]
  54019. 80168e8: 2b37 cmp r3, #55 @ 0x37
  54020. 80168ea: d9ef bls.n 80168cc <prvInitialiseTaskLists+0xc>
  54021. }
  54022. vListInitialise( &xDelayedTaskList1 );
  54023. 80168ec: 480d ldr r0, [pc, #52] @ (8016924 <prvInitialiseTaskLists+0x64>)
  54024. 80168ee: f7fe f813 bl 8014918 <vListInitialise>
  54025. vListInitialise( &xDelayedTaskList2 );
  54026. 80168f2: 480d ldr r0, [pc, #52] @ (8016928 <prvInitialiseTaskLists+0x68>)
  54027. 80168f4: f7fe f810 bl 8014918 <vListInitialise>
  54028. vListInitialise( &xPendingReadyList );
  54029. 80168f8: 480c ldr r0, [pc, #48] @ (801692c <prvInitialiseTaskLists+0x6c>)
  54030. 80168fa: f7fe f80d bl 8014918 <vListInitialise>
  54031. #if ( INCLUDE_vTaskDelete == 1 )
  54032. {
  54033. vListInitialise( &xTasksWaitingTermination );
  54034. 80168fe: 480c ldr r0, [pc, #48] @ (8016930 <prvInitialiseTaskLists+0x70>)
  54035. 8016900: f7fe f80a bl 8014918 <vListInitialise>
  54036. }
  54037. #endif /* INCLUDE_vTaskDelete */
  54038. #if ( INCLUDE_vTaskSuspend == 1 )
  54039. {
  54040. vListInitialise( &xSuspendedTaskList );
  54041. 8016904: 480b ldr r0, [pc, #44] @ (8016934 <prvInitialiseTaskLists+0x74>)
  54042. 8016906: f7fe f807 bl 8014918 <vListInitialise>
  54043. }
  54044. #endif /* INCLUDE_vTaskSuspend */
  54045. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  54046. using list2. */
  54047. pxDelayedTaskList = &xDelayedTaskList1;
  54048. 801690a: 4b0b ldr r3, [pc, #44] @ (8016938 <prvInitialiseTaskLists+0x78>)
  54049. 801690c: 4a05 ldr r2, [pc, #20] @ (8016924 <prvInitialiseTaskLists+0x64>)
  54050. 801690e: 601a str r2, [r3, #0]
  54051. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  54052. 8016910: 4b0a ldr r3, [pc, #40] @ (801693c <prvInitialiseTaskLists+0x7c>)
  54053. 8016912: 4a05 ldr r2, [pc, #20] @ (8016928 <prvInitialiseTaskLists+0x68>)
  54054. 8016914: 601a str r2, [r3, #0]
  54055. }
  54056. 8016916: bf00 nop
  54057. 8016918: 3708 adds r7, #8
  54058. 801691a: 46bd mov sp, r7
  54059. 801691c: bd80 pop {r7, pc}
  54060. 801691e: bf00 nop
  54061. 8016920: 240029fc .word 0x240029fc
  54062. 8016924: 24002e5c .word 0x24002e5c
  54063. 8016928: 24002e70 .word 0x24002e70
  54064. 801692c: 24002e8c .word 0x24002e8c
  54065. 8016930: 24002ea0 .word 0x24002ea0
  54066. 8016934: 24002eb8 .word 0x24002eb8
  54067. 8016938: 24002e84 .word 0x24002e84
  54068. 801693c: 24002e88 .word 0x24002e88
  54069. 08016940 <prvCheckTasksWaitingTermination>:
  54070. /*-----------------------------------------------------------*/
  54071. static void prvCheckTasksWaitingTermination( void )
  54072. {
  54073. 8016940: b580 push {r7, lr}
  54074. 8016942: b082 sub sp, #8
  54075. 8016944: af00 add r7, sp, #0
  54076. {
  54077. TCB_t *pxTCB;
  54078. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  54079. being called too often in the idle task. */
  54080. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54081. 8016946: e019 b.n 801697c <prvCheckTasksWaitingTermination+0x3c>
  54082. {
  54083. taskENTER_CRITICAL();
  54084. 8016948: f001 fa16 bl 8017d78 <vPortEnterCritical>
  54085. {
  54086. 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. */
  54087. 801694c: 4b10 ldr r3, [pc, #64] @ (8016990 <prvCheckTasksWaitingTermination+0x50>)
  54088. 801694e: 68db ldr r3, [r3, #12]
  54089. 8016950: 68db ldr r3, [r3, #12]
  54090. 8016952: 607b str r3, [r7, #4]
  54091. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54092. 8016954: 687b ldr r3, [r7, #4]
  54093. 8016956: 3304 adds r3, #4
  54094. 8016958: 4618 mov r0, r3
  54095. 801695a: f7fe f867 bl 8014a2c <uxListRemove>
  54096. --uxCurrentNumberOfTasks;
  54097. 801695e: 4b0d ldr r3, [pc, #52] @ (8016994 <prvCheckTasksWaitingTermination+0x54>)
  54098. 8016960: 681b ldr r3, [r3, #0]
  54099. 8016962: 3b01 subs r3, #1
  54100. 8016964: 4a0b ldr r2, [pc, #44] @ (8016994 <prvCheckTasksWaitingTermination+0x54>)
  54101. 8016966: 6013 str r3, [r2, #0]
  54102. --uxDeletedTasksWaitingCleanUp;
  54103. 8016968: 4b0b ldr r3, [pc, #44] @ (8016998 <prvCheckTasksWaitingTermination+0x58>)
  54104. 801696a: 681b ldr r3, [r3, #0]
  54105. 801696c: 3b01 subs r3, #1
  54106. 801696e: 4a0a ldr r2, [pc, #40] @ (8016998 <prvCheckTasksWaitingTermination+0x58>)
  54107. 8016970: 6013 str r3, [r2, #0]
  54108. }
  54109. taskEXIT_CRITICAL();
  54110. 8016972: f001 fa33 bl 8017ddc <vPortExitCritical>
  54111. prvDeleteTCB( pxTCB );
  54112. 8016976: 6878 ldr r0, [r7, #4]
  54113. 8016978: f000 f810 bl 801699c <prvDeleteTCB>
  54114. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54115. 801697c: 4b06 ldr r3, [pc, #24] @ (8016998 <prvCheckTasksWaitingTermination+0x58>)
  54116. 801697e: 681b ldr r3, [r3, #0]
  54117. 8016980: 2b00 cmp r3, #0
  54118. 8016982: d1e1 bne.n 8016948 <prvCheckTasksWaitingTermination+0x8>
  54119. }
  54120. }
  54121. #endif /* INCLUDE_vTaskDelete */
  54122. }
  54123. 8016984: bf00 nop
  54124. 8016986: bf00 nop
  54125. 8016988: 3708 adds r7, #8
  54126. 801698a: 46bd mov sp, r7
  54127. 801698c: bd80 pop {r7, pc}
  54128. 801698e: bf00 nop
  54129. 8016990: 24002ea0 .word 0x24002ea0
  54130. 8016994: 24002ecc .word 0x24002ecc
  54131. 8016998: 24002eb4 .word 0x24002eb4
  54132. 0801699c <prvDeleteTCB>:
  54133. /*-----------------------------------------------------------*/
  54134. #if ( INCLUDE_vTaskDelete == 1 )
  54135. static void prvDeleteTCB( TCB_t *pxTCB )
  54136. {
  54137. 801699c: b580 push {r7, lr}
  54138. 801699e: b084 sub sp, #16
  54139. 80169a0: af00 add r7, sp, #0
  54140. 80169a2: 6078 str r0, [r7, #4]
  54141. to the task to free any memory allocated at the application level.
  54142. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  54143. for additional information. */
  54144. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  54145. {
  54146. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  54147. 80169a4: 687b ldr r3, [r7, #4]
  54148. 80169a6: 3354 adds r3, #84 @ 0x54
  54149. 80169a8: 4618 mov r0, r3
  54150. 80169aa: f001 fcfd bl 80183a8 <_reclaim_reent>
  54151. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  54152. {
  54153. /* The task could have been allocated statically or dynamically, so
  54154. check what was statically allocated before trying to free the
  54155. memory. */
  54156. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  54157. 80169ae: 687b ldr r3, [r7, #4]
  54158. 80169b0: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54159. 80169b4: 2b00 cmp r3, #0
  54160. 80169b6: d108 bne.n 80169ca <prvDeleteTCB+0x2e>
  54161. {
  54162. /* Both the stack and TCB were allocated dynamically, so both
  54163. must be freed. */
  54164. vPortFree( pxTCB->pxStack );
  54165. 80169b8: 687b ldr r3, [r7, #4]
  54166. 80169ba: 6b1b ldr r3, [r3, #48] @ 0x30
  54167. 80169bc: 4618 mov r0, r3
  54168. 80169be: f001 fbcb bl 8018158 <vPortFree>
  54169. vPortFree( pxTCB );
  54170. 80169c2: 6878 ldr r0, [r7, #4]
  54171. 80169c4: f001 fbc8 bl 8018158 <vPortFree>
  54172. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54173. mtCOVERAGE_TEST_MARKER();
  54174. }
  54175. }
  54176. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  54177. }
  54178. 80169c8: e019 b.n 80169fe <prvDeleteTCB+0x62>
  54179. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  54180. 80169ca: 687b ldr r3, [r7, #4]
  54181. 80169cc: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54182. 80169d0: 2b01 cmp r3, #1
  54183. 80169d2: d103 bne.n 80169dc <prvDeleteTCB+0x40>
  54184. vPortFree( pxTCB );
  54185. 80169d4: 6878 ldr r0, [r7, #4]
  54186. 80169d6: f001 fbbf bl 8018158 <vPortFree>
  54187. }
  54188. 80169da: e010 b.n 80169fe <prvDeleteTCB+0x62>
  54189. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54190. 80169dc: 687b ldr r3, [r7, #4]
  54191. 80169de: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54192. 80169e2: 2b02 cmp r3, #2
  54193. 80169e4: d00b beq.n 80169fe <prvDeleteTCB+0x62>
  54194. __asm volatile
  54195. 80169e6: f04f 0350 mov.w r3, #80 @ 0x50
  54196. 80169ea: f383 8811 msr BASEPRI, r3
  54197. 80169ee: f3bf 8f6f isb sy
  54198. 80169f2: f3bf 8f4f dsb sy
  54199. 80169f6: 60fb str r3, [r7, #12]
  54200. }
  54201. 80169f8: bf00 nop
  54202. 80169fa: bf00 nop
  54203. 80169fc: e7fd b.n 80169fa <prvDeleteTCB+0x5e>
  54204. }
  54205. 80169fe: bf00 nop
  54206. 8016a00: 3710 adds r7, #16
  54207. 8016a02: 46bd mov sp, r7
  54208. 8016a04: bd80 pop {r7, pc}
  54209. ...
  54210. 08016a08 <prvResetNextTaskUnblockTime>:
  54211. #endif /* INCLUDE_vTaskDelete */
  54212. /*-----------------------------------------------------------*/
  54213. static void prvResetNextTaskUnblockTime( void )
  54214. {
  54215. 8016a08: b480 push {r7}
  54216. 8016a0a: b083 sub sp, #12
  54217. 8016a0c: af00 add r7, sp, #0
  54218. TCB_t *pxTCB;
  54219. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  54220. 8016a0e: 4b0c ldr r3, [pc, #48] @ (8016a40 <prvResetNextTaskUnblockTime+0x38>)
  54221. 8016a10: 681b ldr r3, [r3, #0]
  54222. 8016a12: 681b ldr r3, [r3, #0]
  54223. 8016a14: 2b00 cmp r3, #0
  54224. 8016a16: d104 bne.n 8016a22 <prvResetNextTaskUnblockTime+0x1a>
  54225. {
  54226. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  54227. the maximum possible value so it is extremely unlikely that the
  54228. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  54229. there is an item in the delayed list. */
  54230. xNextTaskUnblockTime = portMAX_DELAY;
  54231. 8016a18: 4b0a ldr r3, [pc, #40] @ (8016a44 <prvResetNextTaskUnblockTime+0x3c>)
  54232. 8016a1a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  54233. 8016a1e: 601a str r2, [r3, #0]
  54234. which the task at the head of the delayed list should be removed
  54235. from the Blocked state. */
  54236. ( 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. */
  54237. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54238. }
  54239. }
  54240. 8016a20: e008 b.n 8016a34 <prvResetNextTaskUnblockTime+0x2c>
  54241. ( 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. */
  54242. 8016a22: 4b07 ldr r3, [pc, #28] @ (8016a40 <prvResetNextTaskUnblockTime+0x38>)
  54243. 8016a24: 681b ldr r3, [r3, #0]
  54244. 8016a26: 68db ldr r3, [r3, #12]
  54245. 8016a28: 68db ldr r3, [r3, #12]
  54246. 8016a2a: 607b str r3, [r7, #4]
  54247. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54248. 8016a2c: 687b ldr r3, [r7, #4]
  54249. 8016a2e: 685b ldr r3, [r3, #4]
  54250. 8016a30: 4a04 ldr r2, [pc, #16] @ (8016a44 <prvResetNextTaskUnblockTime+0x3c>)
  54251. 8016a32: 6013 str r3, [r2, #0]
  54252. }
  54253. 8016a34: bf00 nop
  54254. 8016a36: 370c adds r7, #12
  54255. 8016a38: 46bd mov sp, r7
  54256. 8016a3a: f85d 7b04 ldr.w r7, [sp], #4
  54257. 8016a3e: 4770 bx lr
  54258. 8016a40: 24002e84 .word 0x24002e84
  54259. 8016a44: 24002eec .word 0x24002eec
  54260. 08016a48 <xTaskGetCurrentTaskHandle>:
  54261. /*-----------------------------------------------------------*/
  54262. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  54263. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  54264. {
  54265. 8016a48: b480 push {r7}
  54266. 8016a4a: b083 sub sp, #12
  54267. 8016a4c: af00 add r7, sp, #0
  54268. TaskHandle_t xReturn;
  54269. /* A critical section is not required as this is not called from
  54270. an interrupt and the current TCB will always be the same for any
  54271. individual execution thread. */
  54272. xReturn = pxCurrentTCB;
  54273. 8016a4e: 4b05 ldr r3, [pc, #20] @ (8016a64 <xTaskGetCurrentTaskHandle+0x1c>)
  54274. 8016a50: 681b ldr r3, [r3, #0]
  54275. 8016a52: 607b str r3, [r7, #4]
  54276. return xReturn;
  54277. 8016a54: 687b ldr r3, [r7, #4]
  54278. }
  54279. 8016a56: 4618 mov r0, r3
  54280. 8016a58: 370c adds r7, #12
  54281. 8016a5a: 46bd mov sp, r7
  54282. 8016a5c: f85d 7b04 ldr.w r7, [sp], #4
  54283. 8016a60: 4770 bx lr
  54284. 8016a62: bf00 nop
  54285. 8016a64: 240029f8 .word 0x240029f8
  54286. 08016a68 <xTaskGetSchedulerState>:
  54287. /*-----------------------------------------------------------*/
  54288. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  54289. BaseType_t xTaskGetSchedulerState( void )
  54290. {
  54291. 8016a68: b480 push {r7}
  54292. 8016a6a: b083 sub sp, #12
  54293. 8016a6c: af00 add r7, sp, #0
  54294. BaseType_t xReturn;
  54295. if( xSchedulerRunning == pdFALSE )
  54296. 8016a6e: 4b0b ldr r3, [pc, #44] @ (8016a9c <xTaskGetSchedulerState+0x34>)
  54297. 8016a70: 681b ldr r3, [r3, #0]
  54298. 8016a72: 2b00 cmp r3, #0
  54299. 8016a74: d102 bne.n 8016a7c <xTaskGetSchedulerState+0x14>
  54300. {
  54301. xReturn = taskSCHEDULER_NOT_STARTED;
  54302. 8016a76: 2301 movs r3, #1
  54303. 8016a78: 607b str r3, [r7, #4]
  54304. 8016a7a: e008 b.n 8016a8e <xTaskGetSchedulerState+0x26>
  54305. }
  54306. else
  54307. {
  54308. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54309. 8016a7c: 4b08 ldr r3, [pc, #32] @ (8016aa0 <xTaskGetSchedulerState+0x38>)
  54310. 8016a7e: 681b ldr r3, [r3, #0]
  54311. 8016a80: 2b00 cmp r3, #0
  54312. 8016a82: d102 bne.n 8016a8a <xTaskGetSchedulerState+0x22>
  54313. {
  54314. xReturn = taskSCHEDULER_RUNNING;
  54315. 8016a84: 2302 movs r3, #2
  54316. 8016a86: 607b str r3, [r7, #4]
  54317. 8016a88: e001 b.n 8016a8e <xTaskGetSchedulerState+0x26>
  54318. }
  54319. else
  54320. {
  54321. xReturn = taskSCHEDULER_SUSPENDED;
  54322. 8016a8a: 2300 movs r3, #0
  54323. 8016a8c: 607b str r3, [r7, #4]
  54324. }
  54325. }
  54326. return xReturn;
  54327. 8016a8e: 687b ldr r3, [r7, #4]
  54328. }
  54329. 8016a90: 4618 mov r0, r3
  54330. 8016a92: 370c adds r7, #12
  54331. 8016a94: 46bd mov sp, r7
  54332. 8016a96: f85d 7b04 ldr.w r7, [sp], #4
  54333. 8016a9a: 4770 bx lr
  54334. 8016a9c: 24002ed8 .word 0x24002ed8
  54335. 8016aa0: 24002ef4 .word 0x24002ef4
  54336. 08016aa4 <xTaskPriorityInherit>:
  54337. /*-----------------------------------------------------------*/
  54338. #if ( configUSE_MUTEXES == 1 )
  54339. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  54340. {
  54341. 8016aa4: b580 push {r7, lr}
  54342. 8016aa6: b084 sub sp, #16
  54343. 8016aa8: af00 add r7, sp, #0
  54344. 8016aaa: 6078 str r0, [r7, #4]
  54345. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  54346. 8016aac: 687b ldr r3, [r7, #4]
  54347. 8016aae: 60bb str r3, [r7, #8]
  54348. BaseType_t xReturn = pdFALSE;
  54349. 8016ab0: 2300 movs r3, #0
  54350. 8016ab2: 60fb str r3, [r7, #12]
  54351. /* If the mutex was given back by an interrupt while the queue was
  54352. locked then the mutex holder might now be NULL. _RB_ Is this still
  54353. needed as interrupts can no longer use mutexes? */
  54354. if( pxMutexHolder != NULL )
  54355. 8016ab4: 687b ldr r3, [r7, #4]
  54356. 8016ab6: 2b00 cmp r3, #0
  54357. 8016ab8: d051 beq.n 8016b5e <xTaskPriorityInherit+0xba>
  54358. {
  54359. /* If the holder of the mutex has a priority below the priority of
  54360. the task attempting to obtain the mutex then it will temporarily
  54361. inherit the priority of the task attempting to obtain the mutex. */
  54362. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  54363. 8016aba: 68bb ldr r3, [r7, #8]
  54364. 8016abc: 6ada ldr r2, [r3, #44] @ 0x2c
  54365. 8016abe: 4b2a ldr r3, [pc, #168] @ (8016b68 <xTaskPriorityInherit+0xc4>)
  54366. 8016ac0: 681b ldr r3, [r3, #0]
  54367. 8016ac2: 6adb ldr r3, [r3, #44] @ 0x2c
  54368. 8016ac4: 429a cmp r2, r3
  54369. 8016ac6: d241 bcs.n 8016b4c <xTaskPriorityInherit+0xa8>
  54370. {
  54371. /* Adjust the mutex holder state to account for its new
  54372. priority. Only reset the event list item value if the value is
  54373. not being used for anything else. */
  54374. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54375. 8016ac8: 68bb ldr r3, [r7, #8]
  54376. 8016aca: 699b ldr r3, [r3, #24]
  54377. 8016acc: 2b00 cmp r3, #0
  54378. 8016ace: db06 blt.n 8016ade <xTaskPriorityInherit+0x3a>
  54379. {
  54380. 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. */
  54381. 8016ad0: 4b25 ldr r3, [pc, #148] @ (8016b68 <xTaskPriorityInherit+0xc4>)
  54382. 8016ad2: 681b ldr r3, [r3, #0]
  54383. 8016ad4: 6adb ldr r3, [r3, #44] @ 0x2c
  54384. 8016ad6: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54385. 8016ada: 68bb ldr r3, [r7, #8]
  54386. 8016adc: 619a str r2, [r3, #24]
  54387. mtCOVERAGE_TEST_MARKER();
  54388. }
  54389. /* If the task being modified is in the ready state it will need
  54390. to be moved into a new list. */
  54391. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  54392. 8016ade: 68bb ldr r3, [r7, #8]
  54393. 8016ae0: 6959 ldr r1, [r3, #20]
  54394. 8016ae2: 68bb ldr r3, [r7, #8]
  54395. 8016ae4: 6ada ldr r2, [r3, #44] @ 0x2c
  54396. 8016ae6: 4613 mov r3, r2
  54397. 8016ae8: 009b lsls r3, r3, #2
  54398. 8016aea: 4413 add r3, r2
  54399. 8016aec: 009b lsls r3, r3, #2
  54400. 8016aee: 4a1f ldr r2, [pc, #124] @ (8016b6c <xTaskPriorityInherit+0xc8>)
  54401. 8016af0: 4413 add r3, r2
  54402. 8016af2: 4299 cmp r1, r3
  54403. 8016af4: d122 bne.n 8016b3c <xTaskPriorityInherit+0x98>
  54404. {
  54405. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54406. 8016af6: 68bb ldr r3, [r7, #8]
  54407. 8016af8: 3304 adds r3, #4
  54408. 8016afa: 4618 mov r0, r3
  54409. 8016afc: f7fd ff96 bl 8014a2c <uxListRemove>
  54410. {
  54411. mtCOVERAGE_TEST_MARKER();
  54412. }
  54413. /* Inherit the priority before being moved into the new list. */
  54414. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54415. 8016b00: 4b19 ldr r3, [pc, #100] @ (8016b68 <xTaskPriorityInherit+0xc4>)
  54416. 8016b02: 681b ldr r3, [r3, #0]
  54417. 8016b04: 6ada ldr r2, [r3, #44] @ 0x2c
  54418. 8016b06: 68bb ldr r3, [r7, #8]
  54419. 8016b08: 62da str r2, [r3, #44] @ 0x2c
  54420. prvAddTaskToReadyList( pxMutexHolderTCB );
  54421. 8016b0a: 68bb ldr r3, [r7, #8]
  54422. 8016b0c: 6ada ldr r2, [r3, #44] @ 0x2c
  54423. 8016b0e: 4b18 ldr r3, [pc, #96] @ (8016b70 <xTaskPriorityInherit+0xcc>)
  54424. 8016b10: 681b ldr r3, [r3, #0]
  54425. 8016b12: 429a cmp r2, r3
  54426. 8016b14: d903 bls.n 8016b1e <xTaskPriorityInherit+0x7a>
  54427. 8016b16: 68bb ldr r3, [r7, #8]
  54428. 8016b18: 6adb ldr r3, [r3, #44] @ 0x2c
  54429. 8016b1a: 4a15 ldr r2, [pc, #84] @ (8016b70 <xTaskPriorityInherit+0xcc>)
  54430. 8016b1c: 6013 str r3, [r2, #0]
  54431. 8016b1e: 68bb ldr r3, [r7, #8]
  54432. 8016b20: 6ada ldr r2, [r3, #44] @ 0x2c
  54433. 8016b22: 4613 mov r3, r2
  54434. 8016b24: 009b lsls r3, r3, #2
  54435. 8016b26: 4413 add r3, r2
  54436. 8016b28: 009b lsls r3, r3, #2
  54437. 8016b2a: 4a10 ldr r2, [pc, #64] @ (8016b6c <xTaskPriorityInherit+0xc8>)
  54438. 8016b2c: 441a add r2, r3
  54439. 8016b2e: 68bb ldr r3, [r7, #8]
  54440. 8016b30: 3304 adds r3, #4
  54441. 8016b32: 4619 mov r1, r3
  54442. 8016b34: 4610 mov r0, r2
  54443. 8016b36: f7fd ff1c bl 8014972 <vListInsertEnd>
  54444. 8016b3a: e004 b.n 8016b46 <xTaskPriorityInherit+0xa2>
  54445. }
  54446. else
  54447. {
  54448. /* Just inherit the priority. */
  54449. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54450. 8016b3c: 4b0a ldr r3, [pc, #40] @ (8016b68 <xTaskPriorityInherit+0xc4>)
  54451. 8016b3e: 681b ldr r3, [r3, #0]
  54452. 8016b40: 6ada ldr r2, [r3, #44] @ 0x2c
  54453. 8016b42: 68bb ldr r3, [r7, #8]
  54454. 8016b44: 62da str r2, [r3, #44] @ 0x2c
  54455. }
  54456. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  54457. /* Inheritance occurred. */
  54458. xReturn = pdTRUE;
  54459. 8016b46: 2301 movs r3, #1
  54460. 8016b48: 60fb str r3, [r7, #12]
  54461. 8016b4a: e008 b.n 8016b5e <xTaskPriorityInherit+0xba>
  54462. }
  54463. else
  54464. {
  54465. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  54466. 8016b4c: 68bb ldr r3, [r7, #8]
  54467. 8016b4e: 6cda ldr r2, [r3, #76] @ 0x4c
  54468. 8016b50: 4b05 ldr r3, [pc, #20] @ (8016b68 <xTaskPriorityInherit+0xc4>)
  54469. 8016b52: 681b ldr r3, [r3, #0]
  54470. 8016b54: 6adb ldr r3, [r3, #44] @ 0x2c
  54471. 8016b56: 429a cmp r2, r3
  54472. 8016b58: d201 bcs.n 8016b5e <xTaskPriorityInherit+0xba>
  54473. current priority of the mutex holder is not lower than the
  54474. priority of the task attempting to take the mutex.
  54475. Therefore the mutex holder must have already inherited a
  54476. priority, but inheritance would have occurred if that had
  54477. not been the case. */
  54478. xReturn = pdTRUE;
  54479. 8016b5a: 2301 movs r3, #1
  54480. 8016b5c: 60fb str r3, [r7, #12]
  54481. else
  54482. {
  54483. mtCOVERAGE_TEST_MARKER();
  54484. }
  54485. return xReturn;
  54486. 8016b5e: 68fb ldr r3, [r7, #12]
  54487. }
  54488. 8016b60: 4618 mov r0, r3
  54489. 8016b62: 3710 adds r7, #16
  54490. 8016b64: 46bd mov sp, r7
  54491. 8016b66: bd80 pop {r7, pc}
  54492. 8016b68: 240029f8 .word 0x240029f8
  54493. 8016b6c: 240029fc .word 0x240029fc
  54494. 8016b70: 24002ed4 .word 0x24002ed4
  54495. 08016b74 <xTaskPriorityDisinherit>:
  54496. /*-----------------------------------------------------------*/
  54497. #if ( configUSE_MUTEXES == 1 )
  54498. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  54499. {
  54500. 8016b74: b580 push {r7, lr}
  54501. 8016b76: b086 sub sp, #24
  54502. 8016b78: af00 add r7, sp, #0
  54503. 8016b7a: 6078 str r0, [r7, #4]
  54504. TCB_t * const pxTCB = pxMutexHolder;
  54505. 8016b7c: 687b ldr r3, [r7, #4]
  54506. 8016b7e: 613b str r3, [r7, #16]
  54507. BaseType_t xReturn = pdFALSE;
  54508. 8016b80: 2300 movs r3, #0
  54509. 8016b82: 617b str r3, [r7, #20]
  54510. if( pxMutexHolder != NULL )
  54511. 8016b84: 687b ldr r3, [r7, #4]
  54512. 8016b86: 2b00 cmp r3, #0
  54513. 8016b88: d058 beq.n 8016c3c <xTaskPriorityDisinherit+0xc8>
  54514. {
  54515. /* A task can only have an inherited priority if it holds the mutex.
  54516. If the mutex is held by a task then it cannot be given from an
  54517. interrupt, and if a mutex is given by the holding task then it must
  54518. be the running state task. */
  54519. configASSERT( pxTCB == pxCurrentTCB );
  54520. 8016b8a: 4b2f ldr r3, [pc, #188] @ (8016c48 <xTaskPriorityDisinherit+0xd4>)
  54521. 8016b8c: 681b ldr r3, [r3, #0]
  54522. 8016b8e: 693a ldr r2, [r7, #16]
  54523. 8016b90: 429a cmp r2, r3
  54524. 8016b92: d00b beq.n 8016bac <xTaskPriorityDisinherit+0x38>
  54525. __asm volatile
  54526. 8016b94: f04f 0350 mov.w r3, #80 @ 0x50
  54527. 8016b98: f383 8811 msr BASEPRI, r3
  54528. 8016b9c: f3bf 8f6f isb sy
  54529. 8016ba0: f3bf 8f4f dsb sy
  54530. 8016ba4: 60fb str r3, [r7, #12]
  54531. }
  54532. 8016ba6: bf00 nop
  54533. 8016ba8: bf00 nop
  54534. 8016baa: e7fd b.n 8016ba8 <xTaskPriorityDisinherit+0x34>
  54535. configASSERT( pxTCB->uxMutexesHeld );
  54536. 8016bac: 693b ldr r3, [r7, #16]
  54537. 8016bae: 6d1b ldr r3, [r3, #80] @ 0x50
  54538. 8016bb0: 2b00 cmp r3, #0
  54539. 8016bb2: d10b bne.n 8016bcc <xTaskPriorityDisinherit+0x58>
  54540. __asm volatile
  54541. 8016bb4: f04f 0350 mov.w r3, #80 @ 0x50
  54542. 8016bb8: f383 8811 msr BASEPRI, r3
  54543. 8016bbc: f3bf 8f6f isb sy
  54544. 8016bc0: f3bf 8f4f dsb sy
  54545. 8016bc4: 60bb str r3, [r7, #8]
  54546. }
  54547. 8016bc6: bf00 nop
  54548. 8016bc8: bf00 nop
  54549. 8016bca: e7fd b.n 8016bc8 <xTaskPriorityDisinherit+0x54>
  54550. ( pxTCB->uxMutexesHeld )--;
  54551. 8016bcc: 693b ldr r3, [r7, #16]
  54552. 8016bce: 6d1b ldr r3, [r3, #80] @ 0x50
  54553. 8016bd0: 1e5a subs r2, r3, #1
  54554. 8016bd2: 693b ldr r3, [r7, #16]
  54555. 8016bd4: 651a str r2, [r3, #80] @ 0x50
  54556. /* Has the holder of the mutex inherited the priority of another
  54557. task? */
  54558. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  54559. 8016bd6: 693b ldr r3, [r7, #16]
  54560. 8016bd8: 6ada ldr r2, [r3, #44] @ 0x2c
  54561. 8016bda: 693b ldr r3, [r7, #16]
  54562. 8016bdc: 6cdb ldr r3, [r3, #76] @ 0x4c
  54563. 8016bde: 429a cmp r2, r3
  54564. 8016be0: d02c beq.n 8016c3c <xTaskPriorityDisinherit+0xc8>
  54565. {
  54566. /* Only disinherit if no other mutexes are held. */
  54567. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  54568. 8016be2: 693b ldr r3, [r7, #16]
  54569. 8016be4: 6d1b ldr r3, [r3, #80] @ 0x50
  54570. 8016be6: 2b00 cmp r3, #0
  54571. 8016be8: d128 bne.n 8016c3c <xTaskPriorityDisinherit+0xc8>
  54572. /* A task can only have an inherited priority if it holds
  54573. the mutex. If the mutex is held by a task then it cannot be
  54574. given from an interrupt, and if a mutex is given by the
  54575. holding task then it must be the running state task. Remove
  54576. the holding task from the ready/delayed list. */
  54577. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54578. 8016bea: 693b ldr r3, [r7, #16]
  54579. 8016bec: 3304 adds r3, #4
  54580. 8016bee: 4618 mov r0, r3
  54581. 8016bf0: f7fd ff1c bl 8014a2c <uxListRemove>
  54582. }
  54583. /* Disinherit the priority before adding the task into the
  54584. new ready list. */
  54585. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54586. pxTCB->uxPriority = pxTCB->uxBasePriority;
  54587. 8016bf4: 693b ldr r3, [r7, #16]
  54588. 8016bf6: 6cda ldr r2, [r3, #76] @ 0x4c
  54589. 8016bf8: 693b ldr r3, [r7, #16]
  54590. 8016bfa: 62da str r2, [r3, #44] @ 0x2c
  54591. /* Reset the event list item value. It cannot be in use for
  54592. any other purpose if this task is running, and it must be
  54593. running to give back the mutex. */
  54594. 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. */
  54595. 8016bfc: 693b ldr r3, [r7, #16]
  54596. 8016bfe: 6adb ldr r3, [r3, #44] @ 0x2c
  54597. 8016c00: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54598. 8016c04: 693b ldr r3, [r7, #16]
  54599. 8016c06: 619a str r2, [r3, #24]
  54600. prvAddTaskToReadyList( pxTCB );
  54601. 8016c08: 693b ldr r3, [r7, #16]
  54602. 8016c0a: 6ada ldr r2, [r3, #44] @ 0x2c
  54603. 8016c0c: 4b0f ldr r3, [pc, #60] @ (8016c4c <xTaskPriorityDisinherit+0xd8>)
  54604. 8016c0e: 681b ldr r3, [r3, #0]
  54605. 8016c10: 429a cmp r2, r3
  54606. 8016c12: d903 bls.n 8016c1c <xTaskPriorityDisinherit+0xa8>
  54607. 8016c14: 693b ldr r3, [r7, #16]
  54608. 8016c16: 6adb ldr r3, [r3, #44] @ 0x2c
  54609. 8016c18: 4a0c ldr r2, [pc, #48] @ (8016c4c <xTaskPriorityDisinherit+0xd8>)
  54610. 8016c1a: 6013 str r3, [r2, #0]
  54611. 8016c1c: 693b ldr r3, [r7, #16]
  54612. 8016c1e: 6ada ldr r2, [r3, #44] @ 0x2c
  54613. 8016c20: 4613 mov r3, r2
  54614. 8016c22: 009b lsls r3, r3, #2
  54615. 8016c24: 4413 add r3, r2
  54616. 8016c26: 009b lsls r3, r3, #2
  54617. 8016c28: 4a09 ldr r2, [pc, #36] @ (8016c50 <xTaskPriorityDisinherit+0xdc>)
  54618. 8016c2a: 441a add r2, r3
  54619. 8016c2c: 693b ldr r3, [r7, #16]
  54620. 8016c2e: 3304 adds r3, #4
  54621. 8016c30: 4619 mov r1, r3
  54622. 8016c32: 4610 mov r0, r2
  54623. 8016c34: f7fd fe9d bl 8014972 <vListInsertEnd>
  54624. in an order different to that in which they were taken.
  54625. If a context switch did not occur when the first mutex was
  54626. returned, even if a task was waiting on it, then a context
  54627. switch should occur when the last mutex is returned whether
  54628. a task is waiting on it or not. */
  54629. xReturn = pdTRUE;
  54630. 8016c38: 2301 movs r3, #1
  54631. 8016c3a: 617b str r3, [r7, #20]
  54632. else
  54633. {
  54634. mtCOVERAGE_TEST_MARKER();
  54635. }
  54636. return xReturn;
  54637. 8016c3c: 697b ldr r3, [r7, #20]
  54638. }
  54639. 8016c3e: 4618 mov r0, r3
  54640. 8016c40: 3718 adds r7, #24
  54641. 8016c42: 46bd mov sp, r7
  54642. 8016c44: bd80 pop {r7, pc}
  54643. 8016c46: bf00 nop
  54644. 8016c48: 240029f8 .word 0x240029f8
  54645. 8016c4c: 24002ed4 .word 0x24002ed4
  54646. 8016c50: 240029fc .word 0x240029fc
  54647. 08016c54 <vTaskPriorityDisinheritAfterTimeout>:
  54648. /*-----------------------------------------------------------*/
  54649. #if ( configUSE_MUTEXES == 1 )
  54650. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  54651. {
  54652. 8016c54: b580 push {r7, lr}
  54653. 8016c56: b088 sub sp, #32
  54654. 8016c58: af00 add r7, sp, #0
  54655. 8016c5a: 6078 str r0, [r7, #4]
  54656. 8016c5c: 6039 str r1, [r7, #0]
  54657. TCB_t * const pxTCB = pxMutexHolder;
  54658. 8016c5e: 687b ldr r3, [r7, #4]
  54659. 8016c60: 61bb str r3, [r7, #24]
  54660. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  54661. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  54662. 8016c62: 2301 movs r3, #1
  54663. 8016c64: 617b str r3, [r7, #20]
  54664. if( pxMutexHolder != NULL )
  54665. 8016c66: 687b ldr r3, [r7, #4]
  54666. 8016c68: 2b00 cmp r3, #0
  54667. 8016c6a: d06c beq.n 8016d46 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54668. {
  54669. /* If pxMutexHolder is not NULL then the holder must hold at least
  54670. one mutex. */
  54671. configASSERT( pxTCB->uxMutexesHeld );
  54672. 8016c6c: 69bb ldr r3, [r7, #24]
  54673. 8016c6e: 6d1b ldr r3, [r3, #80] @ 0x50
  54674. 8016c70: 2b00 cmp r3, #0
  54675. 8016c72: d10b bne.n 8016c8c <vTaskPriorityDisinheritAfterTimeout+0x38>
  54676. __asm volatile
  54677. 8016c74: f04f 0350 mov.w r3, #80 @ 0x50
  54678. 8016c78: f383 8811 msr BASEPRI, r3
  54679. 8016c7c: f3bf 8f6f isb sy
  54680. 8016c80: f3bf 8f4f dsb sy
  54681. 8016c84: 60fb str r3, [r7, #12]
  54682. }
  54683. 8016c86: bf00 nop
  54684. 8016c88: bf00 nop
  54685. 8016c8a: e7fd b.n 8016c88 <vTaskPriorityDisinheritAfterTimeout+0x34>
  54686. /* Determine the priority to which the priority of the task that
  54687. holds the mutex should be set. This will be the greater of the
  54688. holding task's base priority and the priority of the highest
  54689. priority task that is waiting to obtain the mutex. */
  54690. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  54691. 8016c8c: 69bb ldr r3, [r7, #24]
  54692. 8016c8e: 6cdb ldr r3, [r3, #76] @ 0x4c
  54693. 8016c90: 683a ldr r2, [r7, #0]
  54694. 8016c92: 429a cmp r2, r3
  54695. 8016c94: d902 bls.n 8016c9c <vTaskPriorityDisinheritAfterTimeout+0x48>
  54696. {
  54697. uxPriorityToUse = uxHighestPriorityWaitingTask;
  54698. 8016c96: 683b ldr r3, [r7, #0]
  54699. 8016c98: 61fb str r3, [r7, #28]
  54700. 8016c9a: e002 b.n 8016ca2 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  54701. }
  54702. else
  54703. {
  54704. uxPriorityToUse = pxTCB->uxBasePriority;
  54705. 8016c9c: 69bb ldr r3, [r7, #24]
  54706. 8016c9e: 6cdb ldr r3, [r3, #76] @ 0x4c
  54707. 8016ca0: 61fb str r3, [r7, #28]
  54708. }
  54709. /* Does the priority need to change? */
  54710. if( pxTCB->uxPriority != uxPriorityToUse )
  54711. 8016ca2: 69bb ldr r3, [r7, #24]
  54712. 8016ca4: 6adb ldr r3, [r3, #44] @ 0x2c
  54713. 8016ca6: 69fa ldr r2, [r7, #28]
  54714. 8016ca8: 429a cmp r2, r3
  54715. 8016caa: d04c beq.n 8016d46 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54716. {
  54717. /* Only disinherit if no other mutexes are held. This is a
  54718. simplification in the priority inheritance implementation. If
  54719. the task that holds the mutex is also holding other mutexes then
  54720. the other mutexes may have caused the priority inheritance. */
  54721. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  54722. 8016cac: 69bb ldr r3, [r7, #24]
  54723. 8016cae: 6d1b ldr r3, [r3, #80] @ 0x50
  54724. 8016cb0: 697a ldr r2, [r7, #20]
  54725. 8016cb2: 429a cmp r2, r3
  54726. 8016cb4: d147 bne.n 8016d46 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54727. {
  54728. /* If a task has timed out because it already holds the
  54729. mutex it was trying to obtain then it cannot of inherited
  54730. its own priority. */
  54731. configASSERT( pxTCB != pxCurrentTCB );
  54732. 8016cb6: 4b26 ldr r3, [pc, #152] @ (8016d50 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  54733. 8016cb8: 681b ldr r3, [r3, #0]
  54734. 8016cba: 69ba ldr r2, [r7, #24]
  54735. 8016cbc: 429a cmp r2, r3
  54736. 8016cbe: d10b bne.n 8016cd8 <vTaskPriorityDisinheritAfterTimeout+0x84>
  54737. __asm volatile
  54738. 8016cc0: f04f 0350 mov.w r3, #80 @ 0x50
  54739. 8016cc4: f383 8811 msr BASEPRI, r3
  54740. 8016cc8: f3bf 8f6f isb sy
  54741. 8016ccc: f3bf 8f4f dsb sy
  54742. 8016cd0: 60bb str r3, [r7, #8]
  54743. }
  54744. 8016cd2: bf00 nop
  54745. 8016cd4: bf00 nop
  54746. 8016cd6: e7fd b.n 8016cd4 <vTaskPriorityDisinheritAfterTimeout+0x80>
  54747. /* Disinherit the priority, remembering the previous
  54748. priority to facilitate determining the subject task's
  54749. state. */
  54750. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54751. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  54752. 8016cd8: 69bb ldr r3, [r7, #24]
  54753. 8016cda: 6adb ldr r3, [r3, #44] @ 0x2c
  54754. 8016cdc: 613b str r3, [r7, #16]
  54755. pxTCB->uxPriority = uxPriorityToUse;
  54756. 8016cde: 69bb ldr r3, [r7, #24]
  54757. 8016ce0: 69fa ldr r2, [r7, #28]
  54758. 8016ce2: 62da str r2, [r3, #44] @ 0x2c
  54759. /* Only reset the event list item value if the value is not
  54760. being used for anything else. */
  54761. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54762. 8016ce4: 69bb ldr r3, [r7, #24]
  54763. 8016ce6: 699b ldr r3, [r3, #24]
  54764. 8016ce8: 2b00 cmp r3, #0
  54765. 8016cea: db04 blt.n 8016cf6 <vTaskPriorityDisinheritAfterTimeout+0xa2>
  54766. {
  54767. 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. */
  54768. 8016cec: 69fb ldr r3, [r7, #28]
  54769. 8016cee: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54770. 8016cf2: 69bb ldr r3, [r7, #24]
  54771. 8016cf4: 619a str r2, [r3, #24]
  54772. then the task that holds the mutex could be in either the
  54773. Ready, Blocked or Suspended states. Only remove the task
  54774. from its current state list if it is in the Ready state as
  54775. the task's priority is going to change and there is one
  54776. Ready list per priority. */
  54777. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  54778. 8016cf6: 69bb ldr r3, [r7, #24]
  54779. 8016cf8: 6959 ldr r1, [r3, #20]
  54780. 8016cfa: 693a ldr r2, [r7, #16]
  54781. 8016cfc: 4613 mov r3, r2
  54782. 8016cfe: 009b lsls r3, r3, #2
  54783. 8016d00: 4413 add r3, r2
  54784. 8016d02: 009b lsls r3, r3, #2
  54785. 8016d04: 4a13 ldr r2, [pc, #76] @ (8016d54 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54786. 8016d06: 4413 add r3, r2
  54787. 8016d08: 4299 cmp r1, r3
  54788. 8016d0a: d11c bne.n 8016d46 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54789. {
  54790. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54791. 8016d0c: 69bb ldr r3, [r7, #24]
  54792. 8016d0e: 3304 adds r3, #4
  54793. 8016d10: 4618 mov r0, r3
  54794. 8016d12: f7fd fe8b bl 8014a2c <uxListRemove>
  54795. else
  54796. {
  54797. mtCOVERAGE_TEST_MARKER();
  54798. }
  54799. prvAddTaskToReadyList( pxTCB );
  54800. 8016d16: 69bb ldr r3, [r7, #24]
  54801. 8016d18: 6ada ldr r2, [r3, #44] @ 0x2c
  54802. 8016d1a: 4b0f ldr r3, [pc, #60] @ (8016d58 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54803. 8016d1c: 681b ldr r3, [r3, #0]
  54804. 8016d1e: 429a cmp r2, r3
  54805. 8016d20: d903 bls.n 8016d2a <vTaskPriorityDisinheritAfterTimeout+0xd6>
  54806. 8016d22: 69bb ldr r3, [r7, #24]
  54807. 8016d24: 6adb ldr r3, [r3, #44] @ 0x2c
  54808. 8016d26: 4a0c ldr r2, [pc, #48] @ (8016d58 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54809. 8016d28: 6013 str r3, [r2, #0]
  54810. 8016d2a: 69bb ldr r3, [r7, #24]
  54811. 8016d2c: 6ada ldr r2, [r3, #44] @ 0x2c
  54812. 8016d2e: 4613 mov r3, r2
  54813. 8016d30: 009b lsls r3, r3, #2
  54814. 8016d32: 4413 add r3, r2
  54815. 8016d34: 009b lsls r3, r3, #2
  54816. 8016d36: 4a07 ldr r2, [pc, #28] @ (8016d54 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54817. 8016d38: 441a add r2, r3
  54818. 8016d3a: 69bb ldr r3, [r7, #24]
  54819. 8016d3c: 3304 adds r3, #4
  54820. 8016d3e: 4619 mov r1, r3
  54821. 8016d40: 4610 mov r0, r2
  54822. 8016d42: f7fd fe16 bl 8014972 <vListInsertEnd>
  54823. }
  54824. else
  54825. {
  54826. mtCOVERAGE_TEST_MARKER();
  54827. }
  54828. }
  54829. 8016d46: bf00 nop
  54830. 8016d48: 3720 adds r7, #32
  54831. 8016d4a: 46bd mov sp, r7
  54832. 8016d4c: bd80 pop {r7, pc}
  54833. 8016d4e: bf00 nop
  54834. 8016d50: 240029f8 .word 0x240029f8
  54835. 8016d54: 240029fc .word 0x240029fc
  54836. 8016d58: 24002ed4 .word 0x24002ed4
  54837. 08016d5c <pvTaskIncrementMutexHeldCount>:
  54838. /*-----------------------------------------------------------*/
  54839. #if ( configUSE_MUTEXES == 1 )
  54840. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  54841. {
  54842. 8016d5c: b480 push {r7}
  54843. 8016d5e: af00 add r7, sp, #0
  54844. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  54845. then pxCurrentTCB will be NULL. */
  54846. if( pxCurrentTCB != NULL )
  54847. 8016d60: 4b07 ldr r3, [pc, #28] @ (8016d80 <pvTaskIncrementMutexHeldCount+0x24>)
  54848. 8016d62: 681b ldr r3, [r3, #0]
  54849. 8016d64: 2b00 cmp r3, #0
  54850. 8016d66: d004 beq.n 8016d72 <pvTaskIncrementMutexHeldCount+0x16>
  54851. {
  54852. ( pxCurrentTCB->uxMutexesHeld )++;
  54853. 8016d68: 4b05 ldr r3, [pc, #20] @ (8016d80 <pvTaskIncrementMutexHeldCount+0x24>)
  54854. 8016d6a: 681b ldr r3, [r3, #0]
  54855. 8016d6c: 6d1a ldr r2, [r3, #80] @ 0x50
  54856. 8016d6e: 3201 adds r2, #1
  54857. 8016d70: 651a str r2, [r3, #80] @ 0x50
  54858. }
  54859. return pxCurrentTCB;
  54860. 8016d72: 4b03 ldr r3, [pc, #12] @ (8016d80 <pvTaskIncrementMutexHeldCount+0x24>)
  54861. 8016d74: 681b ldr r3, [r3, #0]
  54862. }
  54863. 8016d76: 4618 mov r0, r3
  54864. 8016d78: 46bd mov sp, r7
  54865. 8016d7a: f85d 7b04 ldr.w r7, [sp], #4
  54866. 8016d7e: 4770 bx lr
  54867. 8016d80: 240029f8 .word 0x240029f8
  54868. 08016d84 <xTaskNotifyWait>:
  54869. /*-----------------------------------------------------------*/
  54870. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54871. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  54872. {
  54873. 8016d84: b580 push {r7, lr}
  54874. 8016d86: b086 sub sp, #24
  54875. 8016d88: af00 add r7, sp, #0
  54876. 8016d8a: 60f8 str r0, [r7, #12]
  54877. 8016d8c: 60b9 str r1, [r7, #8]
  54878. 8016d8e: 607a str r2, [r7, #4]
  54879. 8016d90: 603b str r3, [r7, #0]
  54880. BaseType_t xReturn;
  54881. taskENTER_CRITICAL();
  54882. 8016d92: f000 fff1 bl 8017d78 <vPortEnterCritical>
  54883. {
  54884. /* Only block if a notification is not already pending. */
  54885. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54886. 8016d96: 4b29 ldr r3, [pc, #164] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54887. 8016d98: 681b ldr r3, [r3, #0]
  54888. 8016d9a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54889. 8016d9e: b2db uxtb r3, r3
  54890. 8016da0: 2b02 cmp r3, #2
  54891. 8016da2: d01c beq.n 8016dde <xTaskNotifyWait+0x5a>
  54892. {
  54893. /* Clear bits in the task's notification value as bits may get
  54894. set by the notifying task or interrupt. This can be used to
  54895. clear the value to zero. */
  54896. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  54897. 8016da4: 4b25 ldr r3, [pc, #148] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54898. 8016da6: 681b ldr r3, [r3, #0]
  54899. 8016da8: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54900. 8016dac: 68fa ldr r2, [r7, #12]
  54901. 8016dae: 43d2 mvns r2, r2
  54902. 8016db0: 400a ands r2, r1
  54903. 8016db2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54904. /* Mark this task as waiting for a notification. */
  54905. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  54906. 8016db6: 4b21 ldr r3, [pc, #132] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54907. 8016db8: 681b ldr r3, [r3, #0]
  54908. 8016dba: 2201 movs r2, #1
  54909. 8016dbc: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54910. if( xTicksToWait > ( TickType_t ) 0 )
  54911. 8016dc0: 683b ldr r3, [r7, #0]
  54912. 8016dc2: 2b00 cmp r3, #0
  54913. 8016dc4: d00b beq.n 8016dde <xTaskNotifyWait+0x5a>
  54914. {
  54915. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  54916. 8016dc6: 2101 movs r1, #1
  54917. 8016dc8: 6838 ldr r0, [r7, #0]
  54918. 8016dca: f000 fa09 bl 80171e0 <prvAddCurrentTaskToDelayedList>
  54919. /* All ports are written to allow a yield in a critical
  54920. section (some will yield immediately, others wait until the
  54921. critical section exits) - but it is not something that
  54922. application code should ever do. */
  54923. portYIELD_WITHIN_API();
  54924. 8016dce: 4b1c ldr r3, [pc, #112] @ (8016e40 <xTaskNotifyWait+0xbc>)
  54925. 8016dd0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54926. 8016dd4: 601a str r2, [r3, #0]
  54927. 8016dd6: f3bf 8f4f dsb sy
  54928. 8016dda: f3bf 8f6f isb sy
  54929. else
  54930. {
  54931. mtCOVERAGE_TEST_MARKER();
  54932. }
  54933. }
  54934. taskEXIT_CRITICAL();
  54935. 8016dde: f000 fffd bl 8017ddc <vPortExitCritical>
  54936. taskENTER_CRITICAL();
  54937. 8016de2: f000 ffc9 bl 8017d78 <vPortEnterCritical>
  54938. {
  54939. traceTASK_NOTIFY_WAIT();
  54940. if( pulNotificationValue != NULL )
  54941. 8016de6: 687b ldr r3, [r7, #4]
  54942. 8016de8: 2b00 cmp r3, #0
  54943. 8016dea: d005 beq.n 8016df8 <xTaskNotifyWait+0x74>
  54944. {
  54945. /* Output the current notification value, which may or may not
  54946. have changed. */
  54947. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54948. 8016dec: 4b13 ldr r3, [pc, #76] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54949. 8016dee: 681b ldr r3, [r3, #0]
  54950. 8016df0: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54951. 8016df4: 687b ldr r3, [r7, #4]
  54952. 8016df6: 601a str r2, [r3, #0]
  54953. /* If ucNotifyValue is set then either the task never entered the
  54954. blocked state (because a notification was already pending) or the
  54955. task unblocked because of a notification. Otherwise the task
  54956. unblocked because of a timeout. */
  54957. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54958. 8016df8: 4b10 ldr r3, [pc, #64] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54959. 8016dfa: 681b ldr r3, [r3, #0]
  54960. 8016dfc: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54961. 8016e00: b2db uxtb r3, r3
  54962. 8016e02: 2b02 cmp r3, #2
  54963. 8016e04: d002 beq.n 8016e0c <xTaskNotifyWait+0x88>
  54964. {
  54965. /* A notification was not received. */
  54966. xReturn = pdFALSE;
  54967. 8016e06: 2300 movs r3, #0
  54968. 8016e08: 617b str r3, [r7, #20]
  54969. 8016e0a: e00a b.n 8016e22 <xTaskNotifyWait+0x9e>
  54970. }
  54971. else
  54972. {
  54973. /* A notification was already pending or a notification was
  54974. received while the task was waiting. */
  54975. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54976. 8016e0c: 4b0b ldr r3, [pc, #44] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54977. 8016e0e: 681b ldr r3, [r3, #0]
  54978. 8016e10: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54979. 8016e14: 68ba ldr r2, [r7, #8]
  54980. 8016e16: 43d2 mvns r2, r2
  54981. 8016e18: 400a ands r2, r1
  54982. 8016e1a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54983. xReturn = pdTRUE;
  54984. 8016e1e: 2301 movs r3, #1
  54985. 8016e20: 617b str r3, [r7, #20]
  54986. }
  54987. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54988. 8016e22: 4b06 ldr r3, [pc, #24] @ (8016e3c <xTaskNotifyWait+0xb8>)
  54989. 8016e24: 681b ldr r3, [r3, #0]
  54990. 8016e26: 2200 movs r2, #0
  54991. 8016e28: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54992. }
  54993. taskEXIT_CRITICAL();
  54994. 8016e2c: f000 ffd6 bl 8017ddc <vPortExitCritical>
  54995. return xReturn;
  54996. 8016e30: 697b ldr r3, [r7, #20]
  54997. }
  54998. 8016e32: 4618 mov r0, r3
  54999. 8016e34: 3718 adds r7, #24
  55000. 8016e36: 46bd mov sp, r7
  55001. 8016e38: bd80 pop {r7, pc}
  55002. 8016e3a: bf00 nop
  55003. 8016e3c: 240029f8 .word 0x240029f8
  55004. 8016e40: e000ed04 .word 0xe000ed04
  55005. 08016e44 <xTaskGenericNotify>:
  55006. /*-----------------------------------------------------------*/
  55007. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55008. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  55009. {
  55010. 8016e44: b580 push {r7, lr}
  55011. 8016e46: b08a sub sp, #40 @ 0x28
  55012. 8016e48: af00 add r7, sp, #0
  55013. 8016e4a: 60f8 str r0, [r7, #12]
  55014. 8016e4c: 60b9 str r1, [r7, #8]
  55015. 8016e4e: 603b str r3, [r7, #0]
  55016. 8016e50: 4613 mov r3, r2
  55017. 8016e52: 71fb strb r3, [r7, #7]
  55018. TCB_t * pxTCB;
  55019. BaseType_t xReturn = pdPASS;
  55020. 8016e54: 2301 movs r3, #1
  55021. 8016e56: 627b str r3, [r7, #36] @ 0x24
  55022. uint8_t ucOriginalNotifyState;
  55023. configASSERT( xTaskToNotify );
  55024. 8016e58: 68fb ldr r3, [r7, #12]
  55025. 8016e5a: 2b00 cmp r3, #0
  55026. 8016e5c: d10b bne.n 8016e76 <xTaskGenericNotify+0x32>
  55027. __asm volatile
  55028. 8016e5e: f04f 0350 mov.w r3, #80 @ 0x50
  55029. 8016e62: f383 8811 msr BASEPRI, r3
  55030. 8016e66: f3bf 8f6f isb sy
  55031. 8016e6a: f3bf 8f4f dsb sy
  55032. 8016e6e: 61bb str r3, [r7, #24]
  55033. }
  55034. 8016e70: bf00 nop
  55035. 8016e72: bf00 nop
  55036. 8016e74: e7fd b.n 8016e72 <xTaskGenericNotify+0x2e>
  55037. pxTCB = xTaskToNotify;
  55038. 8016e76: 68fb ldr r3, [r7, #12]
  55039. 8016e78: 623b str r3, [r7, #32]
  55040. taskENTER_CRITICAL();
  55041. 8016e7a: f000 ff7d bl 8017d78 <vPortEnterCritical>
  55042. {
  55043. if( pulPreviousNotificationValue != NULL )
  55044. 8016e7e: 683b ldr r3, [r7, #0]
  55045. 8016e80: 2b00 cmp r3, #0
  55046. 8016e82: d004 beq.n 8016e8e <xTaskGenericNotify+0x4a>
  55047. {
  55048. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55049. 8016e84: 6a3b ldr r3, [r7, #32]
  55050. 8016e86: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55051. 8016e8a: 683b ldr r3, [r7, #0]
  55052. 8016e8c: 601a str r2, [r3, #0]
  55053. }
  55054. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55055. 8016e8e: 6a3b ldr r3, [r7, #32]
  55056. 8016e90: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55057. 8016e94: 77fb strb r3, [r7, #31]
  55058. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55059. 8016e96: 6a3b ldr r3, [r7, #32]
  55060. 8016e98: 2202 movs r2, #2
  55061. 8016e9a: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55062. switch( eAction )
  55063. 8016e9e: 79fb ldrb r3, [r7, #7]
  55064. 8016ea0: 2b04 cmp r3, #4
  55065. 8016ea2: d82e bhi.n 8016f02 <xTaskGenericNotify+0xbe>
  55066. 8016ea4: a201 add r2, pc, #4 @ (adr r2, 8016eac <xTaskGenericNotify+0x68>)
  55067. 8016ea6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55068. 8016eaa: bf00 nop
  55069. 8016eac: 08016f27 .word 0x08016f27
  55070. 8016eb0: 08016ec1 .word 0x08016ec1
  55071. 8016eb4: 08016ed3 .word 0x08016ed3
  55072. 8016eb8: 08016ee3 .word 0x08016ee3
  55073. 8016ebc: 08016eed .word 0x08016eed
  55074. {
  55075. case eSetBits :
  55076. pxTCB->ulNotifiedValue |= ulValue;
  55077. 8016ec0: 6a3b ldr r3, [r7, #32]
  55078. 8016ec2: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55079. 8016ec6: 68bb ldr r3, [r7, #8]
  55080. 8016ec8: 431a orrs r2, r3
  55081. 8016eca: 6a3b ldr r3, [r7, #32]
  55082. 8016ecc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55083. break;
  55084. 8016ed0: e02c b.n 8016f2c <xTaskGenericNotify+0xe8>
  55085. case eIncrement :
  55086. ( pxTCB->ulNotifiedValue )++;
  55087. 8016ed2: 6a3b ldr r3, [r7, #32]
  55088. 8016ed4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55089. 8016ed8: 1c5a adds r2, r3, #1
  55090. 8016eda: 6a3b ldr r3, [r7, #32]
  55091. 8016edc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55092. break;
  55093. 8016ee0: e024 b.n 8016f2c <xTaskGenericNotify+0xe8>
  55094. case eSetValueWithOverwrite :
  55095. pxTCB->ulNotifiedValue = ulValue;
  55096. 8016ee2: 6a3b ldr r3, [r7, #32]
  55097. 8016ee4: 68ba ldr r2, [r7, #8]
  55098. 8016ee6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55099. break;
  55100. 8016eea: e01f b.n 8016f2c <xTaskGenericNotify+0xe8>
  55101. case eSetValueWithoutOverwrite :
  55102. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55103. 8016eec: 7ffb ldrb r3, [r7, #31]
  55104. 8016eee: 2b02 cmp r3, #2
  55105. 8016ef0: d004 beq.n 8016efc <xTaskGenericNotify+0xb8>
  55106. {
  55107. pxTCB->ulNotifiedValue = ulValue;
  55108. 8016ef2: 6a3b ldr r3, [r7, #32]
  55109. 8016ef4: 68ba ldr r2, [r7, #8]
  55110. 8016ef6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55111. else
  55112. {
  55113. /* The value could not be written to the task. */
  55114. xReturn = pdFAIL;
  55115. }
  55116. break;
  55117. 8016efa: e017 b.n 8016f2c <xTaskGenericNotify+0xe8>
  55118. xReturn = pdFAIL;
  55119. 8016efc: 2300 movs r3, #0
  55120. 8016efe: 627b str r3, [r7, #36] @ 0x24
  55121. break;
  55122. 8016f00: e014 b.n 8016f2c <xTaskGenericNotify+0xe8>
  55123. default:
  55124. /* Should not get here if all enums are handled.
  55125. Artificially force an assert by testing a value the
  55126. compiler can't assume is const. */
  55127. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55128. 8016f02: 6a3b ldr r3, [r7, #32]
  55129. 8016f04: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55130. 8016f08: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55131. 8016f0c: d00d beq.n 8016f2a <xTaskGenericNotify+0xe6>
  55132. __asm volatile
  55133. 8016f0e: f04f 0350 mov.w r3, #80 @ 0x50
  55134. 8016f12: f383 8811 msr BASEPRI, r3
  55135. 8016f16: f3bf 8f6f isb sy
  55136. 8016f1a: f3bf 8f4f dsb sy
  55137. 8016f1e: 617b str r3, [r7, #20]
  55138. }
  55139. 8016f20: bf00 nop
  55140. 8016f22: bf00 nop
  55141. 8016f24: e7fd b.n 8016f22 <xTaskGenericNotify+0xde>
  55142. break;
  55143. 8016f26: bf00 nop
  55144. 8016f28: e000 b.n 8016f2c <xTaskGenericNotify+0xe8>
  55145. break;
  55146. 8016f2a: bf00 nop
  55147. traceTASK_NOTIFY();
  55148. /* If the task is in the blocked state specifically to wait for a
  55149. notification then unblock it now. */
  55150. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55151. 8016f2c: 7ffb ldrb r3, [r7, #31]
  55152. 8016f2e: 2b01 cmp r3, #1
  55153. 8016f30: d13b bne.n 8016faa <xTaskGenericNotify+0x166>
  55154. {
  55155. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55156. 8016f32: 6a3b ldr r3, [r7, #32]
  55157. 8016f34: 3304 adds r3, #4
  55158. 8016f36: 4618 mov r0, r3
  55159. 8016f38: f7fd fd78 bl 8014a2c <uxListRemove>
  55160. prvAddTaskToReadyList( pxTCB );
  55161. 8016f3c: 6a3b ldr r3, [r7, #32]
  55162. 8016f3e: 6ada ldr r2, [r3, #44] @ 0x2c
  55163. 8016f40: 4b1d ldr r3, [pc, #116] @ (8016fb8 <xTaskGenericNotify+0x174>)
  55164. 8016f42: 681b ldr r3, [r3, #0]
  55165. 8016f44: 429a cmp r2, r3
  55166. 8016f46: d903 bls.n 8016f50 <xTaskGenericNotify+0x10c>
  55167. 8016f48: 6a3b ldr r3, [r7, #32]
  55168. 8016f4a: 6adb ldr r3, [r3, #44] @ 0x2c
  55169. 8016f4c: 4a1a ldr r2, [pc, #104] @ (8016fb8 <xTaskGenericNotify+0x174>)
  55170. 8016f4e: 6013 str r3, [r2, #0]
  55171. 8016f50: 6a3b ldr r3, [r7, #32]
  55172. 8016f52: 6ada ldr r2, [r3, #44] @ 0x2c
  55173. 8016f54: 4613 mov r3, r2
  55174. 8016f56: 009b lsls r3, r3, #2
  55175. 8016f58: 4413 add r3, r2
  55176. 8016f5a: 009b lsls r3, r3, #2
  55177. 8016f5c: 4a17 ldr r2, [pc, #92] @ (8016fbc <xTaskGenericNotify+0x178>)
  55178. 8016f5e: 441a add r2, r3
  55179. 8016f60: 6a3b ldr r3, [r7, #32]
  55180. 8016f62: 3304 adds r3, #4
  55181. 8016f64: 4619 mov r1, r3
  55182. 8016f66: 4610 mov r0, r2
  55183. 8016f68: f7fd fd03 bl 8014972 <vListInsertEnd>
  55184. /* The task should not have been on an event list. */
  55185. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55186. 8016f6c: 6a3b ldr r3, [r7, #32]
  55187. 8016f6e: 6a9b ldr r3, [r3, #40] @ 0x28
  55188. 8016f70: 2b00 cmp r3, #0
  55189. 8016f72: d00b beq.n 8016f8c <xTaskGenericNotify+0x148>
  55190. __asm volatile
  55191. 8016f74: f04f 0350 mov.w r3, #80 @ 0x50
  55192. 8016f78: f383 8811 msr BASEPRI, r3
  55193. 8016f7c: f3bf 8f6f isb sy
  55194. 8016f80: f3bf 8f4f dsb sy
  55195. 8016f84: 613b str r3, [r7, #16]
  55196. }
  55197. 8016f86: bf00 nop
  55198. 8016f88: bf00 nop
  55199. 8016f8a: e7fd b.n 8016f88 <xTaskGenericNotify+0x144>
  55200. earliest possible time. */
  55201. prvResetNextTaskUnblockTime();
  55202. }
  55203. #endif
  55204. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55205. 8016f8c: 6a3b ldr r3, [r7, #32]
  55206. 8016f8e: 6ada ldr r2, [r3, #44] @ 0x2c
  55207. 8016f90: 4b0b ldr r3, [pc, #44] @ (8016fc0 <xTaskGenericNotify+0x17c>)
  55208. 8016f92: 681b ldr r3, [r3, #0]
  55209. 8016f94: 6adb ldr r3, [r3, #44] @ 0x2c
  55210. 8016f96: 429a cmp r2, r3
  55211. 8016f98: d907 bls.n 8016faa <xTaskGenericNotify+0x166>
  55212. {
  55213. /* The notified task has a priority above the currently
  55214. executing task so a yield is required. */
  55215. taskYIELD_IF_USING_PREEMPTION();
  55216. 8016f9a: 4b0a ldr r3, [pc, #40] @ (8016fc4 <xTaskGenericNotify+0x180>)
  55217. 8016f9c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55218. 8016fa0: 601a str r2, [r3, #0]
  55219. 8016fa2: f3bf 8f4f dsb sy
  55220. 8016fa6: f3bf 8f6f isb sy
  55221. else
  55222. {
  55223. mtCOVERAGE_TEST_MARKER();
  55224. }
  55225. }
  55226. taskEXIT_CRITICAL();
  55227. 8016faa: f000 ff17 bl 8017ddc <vPortExitCritical>
  55228. return xReturn;
  55229. 8016fae: 6a7b ldr r3, [r7, #36] @ 0x24
  55230. }
  55231. 8016fb0: 4618 mov r0, r3
  55232. 8016fb2: 3728 adds r7, #40 @ 0x28
  55233. 8016fb4: 46bd mov sp, r7
  55234. 8016fb6: bd80 pop {r7, pc}
  55235. 8016fb8: 24002ed4 .word 0x24002ed4
  55236. 8016fbc: 240029fc .word 0x240029fc
  55237. 8016fc0: 240029f8 .word 0x240029f8
  55238. 8016fc4: e000ed04 .word 0xe000ed04
  55239. 08016fc8 <xTaskGenericNotifyFromISR>:
  55240. /*-----------------------------------------------------------*/
  55241. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55242. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  55243. {
  55244. 8016fc8: b580 push {r7, lr}
  55245. 8016fca: b08e sub sp, #56 @ 0x38
  55246. 8016fcc: af00 add r7, sp, #0
  55247. 8016fce: 60f8 str r0, [r7, #12]
  55248. 8016fd0: 60b9 str r1, [r7, #8]
  55249. 8016fd2: 603b str r3, [r7, #0]
  55250. 8016fd4: 4613 mov r3, r2
  55251. 8016fd6: 71fb strb r3, [r7, #7]
  55252. TCB_t * pxTCB;
  55253. uint8_t ucOriginalNotifyState;
  55254. BaseType_t xReturn = pdPASS;
  55255. 8016fd8: 2301 movs r3, #1
  55256. 8016fda: 637b str r3, [r7, #52] @ 0x34
  55257. UBaseType_t uxSavedInterruptStatus;
  55258. configASSERT( xTaskToNotify );
  55259. 8016fdc: 68fb ldr r3, [r7, #12]
  55260. 8016fde: 2b00 cmp r3, #0
  55261. 8016fe0: d10b bne.n 8016ffa <xTaskGenericNotifyFromISR+0x32>
  55262. __asm volatile
  55263. 8016fe2: f04f 0350 mov.w r3, #80 @ 0x50
  55264. 8016fe6: f383 8811 msr BASEPRI, r3
  55265. 8016fea: f3bf 8f6f isb sy
  55266. 8016fee: f3bf 8f4f dsb sy
  55267. 8016ff2: 627b str r3, [r7, #36] @ 0x24
  55268. }
  55269. 8016ff4: bf00 nop
  55270. 8016ff6: bf00 nop
  55271. 8016ff8: e7fd b.n 8016ff6 <xTaskGenericNotifyFromISR+0x2e>
  55272. below the maximum system call interrupt priority. FreeRTOS maintains a
  55273. separate interrupt safe API to ensure interrupt entry is as fast and as
  55274. simple as possible. More information (albeit Cortex-M specific) is
  55275. provided on the following link:
  55276. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  55277. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  55278. 8016ffa: f000 ff9d bl 8017f38 <vPortValidateInterruptPriority>
  55279. pxTCB = xTaskToNotify;
  55280. 8016ffe: 68fb ldr r3, [r7, #12]
  55281. 8017000: 633b str r3, [r7, #48] @ 0x30
  55282. __asm volatile
  55283. 8017002: f3ef 8211 mrs r2, BASEPRI
  55284. 8017006: f04f 0350 mov.w r3, #80 @ 0x50
  55285. 801700a: f383 8811 msr BASEPRI, r3
  55286. 801700e: f3bf 8f6f isb sy
  55287. 8017012: f3bf 8f4f dsb sy
  55288. 8017016: 623a str r2, [r7, #32]
  55289. 8017018: 61fb str r3, [r7, #28]
  55290. return ulOriginalBASEPRI;
  55291. 801701a: 6a3b ldr r3, [r7, #32]
  55292. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  55293. 801701c: 62fb str r3, [r7, #44] @ 0x2c
  55294. {
  55295. if( pulPreviousNotificationValue != NULL )
  55296. 801701e: 683b ldr r3, [r7, #0]
  55297. 8017020: 2b00 cmp r3, #0
  55298. 8017022: d004 beq.n 801702e <xTaskGenericNotifyFromISR+0x66>
  55299. {
  55300. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55301. 8017024: 6b3b ldr r3, [r7, #48] @ 0x30
  55302. 8017026: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55303. 801702a: 683b ldr r3, [r7, #0]
  55304. 801702c: 601a str r2, [r3, #0]
  55305. }
  55306. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55307. 801702e: 6b3b ldr r3, [r7, #48] @ 0x30
  55308. 8017030: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55309. 8017034: f887 302b strb.w r3, [r7, #43] @ 0x2b
  55310. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55311. 8017038: 6b3b ldr r3, [r7, #48] @ 0x30
  55312. 801703a: 2202 movs r2, #2
  55313. 801703c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55314. switch( eAction )
  55315. 8017040: 79fb ldrb r3, [r7, #7]
  55316. 8017042: 2b04 cmp r3, #4
  55317. 8017044: d82e bhi.n 80170a4 <xTaskGenericNotifyFromISR+0xdc>
  55318. 8017046: a201 add r2, pc, #4 @ (adr r2, 801704c <xTaskGenericNotifyFromISR+0x84>)
  55319. 8017048: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55320. 801704c: 080170c9 .word 0x080170c9
  55321. 8017050: 08017061 .word 0x08017061
  55322. 8017054: 08017073 .word 0x08017073
  55323. 8017058: 08017083 .word 0x08017083
  55324. 801705c: 0801708d .word 0x0801708d
  55325. {
  55326. case eSetBits :
  55327. pxTCB->ulNotifiedValue |= ulValue;
  55328. 8017060: 6b3b ldr r3, [r7, #48] @ 0x30
  55329. 8017062: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55330. 8017066: 68bb ldr r3, [r7, #8]
  55331. 8017068: 431a orrs r2, r3
  55332. 801706a: 6b3b ldr r3, [r7, #48] @ 0x30
  55333. 801706c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55334. break;
  55335. 8017070: e02d b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55336. case eIncrement :
  55337. ( pxTCB->ulNotifiedValue )++;
  55338. 8017072: 6b3b ldr r3, [r7, #48] @ 0x30
  55339. 8017074: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55340. 8017078: 1c5a adds r2, r3, #1
  55341. 801707a: 6b3b ldr r3, [r7, #48] @ 0x30
  55342. 801707c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55343. break;
  55344. 8017080: e025 b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55345. case eSetValueWithOverwrite :
  55346. pxTCB->ulNotifiedValue = ulValue;
  55347. 8017082: 6b3b ldr r3, [r7, #48] @ 0x30
  55348. 8017084: 68ba ldr r2, [r7, #8]
  55349. 8017086: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55350. break;
  55351. 801708a: e020 b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55352. case eSetValueWithoutOverwrite :
  55353. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55354. 801708c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55355. 8017090: 2b02 cmp r3, #2
  55356. 8017092: d004 beq.n 801709e <xTaskGenericNotifyFromISR+0xd6>
  55357. {
  55358. pxTCB->ulNotifiedValue = ulValue;
  55359. 8017094: 6b3b ldr r3, [r7, #48] @ 0x30
  55360. 8017096: 68ba ldr r2, [r7, #8]
  55361. 8017098: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55362. else
  55363. {
  55364. /* The value could not be written to the task. */
  55365. xReturn = pdFAIL;
  55366. }
  55367. break;
  55368. 801709c: e017 b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55369. xReturn = pdFAIL;
  55370. 801709e: 2300 movs r3, #0
  55371. 80170a0: 637b str r3, [r7, #52] @ 0x34
  55372. break;
  55373. 80170a2: e014 b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55374. default:
  55375. /* Should not get here if all enums are handled.
  55376. Artificially force an assert by testing a value the
  55377. compiler can't assume is const. */
  55378. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55379. 80170a4: 6b3b ldr r3, [r7, #48] @ 0x30
  55380. 80170a6: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55381. 80170aa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55382. 80170ae: d00d beq.n 80170cc <xTaskGenericNotifyFromISR+0x104>
  55383. __asm volatile
  55384. 80170b0: f04f 0350 mov.w r3, #80 @ 0x50
  55385. 80170b4: f383 8811 msr BASEPRI, r3
  55386. 80170b8: f3bf 8f6f isb sy
  55387. 80170bc: f3bf 8f4f dsb sy
  55388. 80170c0: 61bb str r3, [r7, #24]
  55389. }
  55390. 80170c2: bf00 nop
  55391. 80170c4: bf00 nop
  55392. 80170c6: e7fd b.n 80170c4 <xTaskGenericNotifyFromISR+0xfc>
  55393. break;
  55394. 80170c8: bf00 nop
  55395. 80170ca: e000 b.n 80170ce <xTaskGenericNotifyFromISR+0x106>
  55396. break;
  55397. 80170cc: bf00 nop
  55398. traceTASK_NOTIFY_FROM_ISR();
  55399. /* If the task is in the blocked state specifically to wait for a
  55400. notification then unblock it now. */
  55401. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55402. 80170ce: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55403. 80170d2: 2b01 cmp r3, #1
  55404. 80170d4: d147 bne.n 8017166 <xTaskGenericNotifyFromISR+0x19e>
  55405. {
  55406. /* The task should not have been on an event list. */
  55407. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55408. 80170d6: 6b3b ldr r3, [r7, #48] @ 0x30
  55409. 80170d8: 6a9b ldr r3, [r3, #40] @ 0x28
  55410. 80170da: 2b00 cmp r3, #0
  55411. 80170dc: d00b beq.n 80170f6 <xTaskGenericNotifyFromISR+0x12e>
  55412. __asm volatile
  55413. 80170de: f04f 0350 mov.w r3, #80 @ 0x50
  55414. 80170e2: f383 8811 msr BASEPRI, r3
  55415. 80170e6: f3bf 8f6f isb sy
  55416. 80170ea: f3bf 8f4f dsb sy
  55417. 80170ee: 617b str r3, [r7, #20]
  55418. }
  55419. 80170f0: bf00 nop
  55420. 80170f2: bf00 nop
  55421. 80170f4: e7fd b.n 80170f2 <xTaskGenericNotifyFromISR+0x12a>
  55422. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  55423. 80170f6: 4b21 ldr r3, [pc, #132] @ (801717c <xTaskGenericNotifyFromISR+0x1b4>)
  55424. 80170f8: 681b ldr r3, [r3, #0]
  55425. 80170fa: 2b00 cmp r3, #0
  55426. 80170fc: d11d bne.n 801713a <xTaskGenericNotifyFromISR+0x172>
  55427. {
  55428. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55429. 80170fe: 6b3b ldr r3, [r7, #48] @ 0x30
  55430. 8017100: 3304 adds r3, #4
  55431. 8017102: 4618 mov r0, r3
  55432. 8017104: f7fd fc92 bl 8014a2c <uxListRemove>
  55433. prvAddTaskToReadyList( pxTCB );
  55434. 8017108: 6b3b ldr r3, [r7, #48] @ 0x30
  55435. 801710a: 6ada ldr r2, [r3, #44] @ 0x2c
  55436. 801710c: 4b1c ldr r3, [pc, #112] @ (8017180 <xTaskGenericNotifyFromISR+0x1b8>)
  55437. 801710e: 681b ldr r3, [r3, #0]
  55438. 8017110: 429a cmp r2, r3
  55439. 8017112: d903 bls.n 801711c <xTaskGenericNotifyFromISR+0x154>
  55440. 8017114: 6b3b ldr r3, [r7, #48] @ 0x30
  55441. 8017116: 6adb ldr r3, [r3, #44] @ 0x2c
  55442. 8017118: 4a19 ldr r2, [pc, #100] @ (8017180 <xTaskGenericNotifyFromISR+0x1b8>)
  55443. 801711a: 6013 str r3, [r2, #0]
  55444. 801711c: 6b3b ldr r3, [r7, #48] @ 0x30
  55445. 801711e: 6ada ldr r2, [r3, #44] @ 0x2c
  55446. 8017120: 4613 mov r3, r2
  55447. 8017122: 009b lsls r3, r3, #2
  55448. 8017124: 4413 add r3, r2
  55449. 8017126: 009b lsls r3, r3, #2
  55450. 8017128: 4a16 ldr r2, [pc, #88] @ (8017184 <xTaskGenericNotifyFromISR+0x1bc>)
  55451. 801712a: 441a add r2, r3
  55452. 801712c: 6b3b ldr r3, [r7, #48] @ 0x30
  55453. 801712e: 3304 adds r3, #4
  55454. 8017130: 4619 mov r1, r3
  55455. 8017132: 4610 mov r0, r2
  55456. 8017134: f7fd fc1d bl 8014972 <vListInsertEnd>
  55457. 8017138: e005 b.n 8017146 <xTaskGenericNotifyFromISR+0x17e>
  55458. }
  55459. else
  55460. {
  55461. /* The delayed and ready lists cannot be accessed, so hold
  55462. this task pending until the scheduler is resumed. */
  55463. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  55464. 801713a: 6b3b ldr r3, [r7, #48] @ 0x30
  55465. 801713c: 3318 adds r3, #24
  55466. 801713e: 4619 mov r1, r3
  55467. 8017140: 4811 ldr r0, [pc, #68] @ (8017188 <xTaskGenericNotifyFromISR+0x1c0>)
  55468. 8017142: f7fd fc16 bl 8014972 <vListInsertEnd>
  55469. }
  55470. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55471. 8017146: 6b3b ldr r3, [r7, #48] @ 0x30
  55472. 8017148: 6ada ldr r2, [r3, #44] @ 0x2c
  55473. 801714a: 4b10 ldr r3, [pc, #64] @ (801718c <xTaskGenericNotifyFromISR+0x1c4>)
  55474. 801714c: 681b ldr r3, [r3, #0]
  55475. 801714e: 6adb ldr r3, [r3, #44] @ 0x2c
  55476. 8017150: 429a cmp r2, r3
  55477. 8017152: d908 bls.n 8017166 <xTaskGenericNotifyFromISR+0x19e>
  55478. {
  55479. /* The notified task has a priority above the currently
  55480. executing task so a yield is required. */
  55481. if( pxHigherPriorityTaskWoken != NULL )
  55482. 8017154: 6c3b ldr r3, [r7, #64] @ 0x40
  55483. 8017156: 2b00 cmp r3, #0
  55484. 8017158: d002 beq.n 8017160 <xTaskGenericNotifyFromISR+0x198>
  55485. {
  55486. *pxHigherPriorityTaskWoken = pdTRUE;
  55487. 801715a: 6c3b ldr r3, [r7, #64] @ 0x40
  55488. 801715c: 2201 movs r2, #1
  55489. 801715e: 601a str r2, [r3, #0]
  55490. }
  55491. /* Mark that a yield is pending in case the user is not
  55492. using the "xHigherPriorityTaskWoken" parameter to an ISR
  55493. safe FreeRTOS function. */
  55494. xYieldPending = pdTRUE;
  55495. 8017160: 4b0b ldr r3, [pc, #44] @ (8017190 <xTaskGenericNotifyFromISR+0x1c8>)
  55496. 8017162: 2201 movs r2, #1
  55497. 8017164: 601a str r2, [r3, #0]
  55498. 8017166: 6afb ldr r3, [r7, #44] @ 0x2c
  55499. 8017168: 613b str r3, [r7, #16]
  55500. __asm volatile
  55501. 801716a: 693b ldr r3, [r7, #16]
  55502. 801716c: f383 8811 msr BASEPRI, r3
  55503. }
  55504. 8017170: bf00 nop
  55505. }
  55506. }
  55507. }
  55508. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  55509. return xReturn;
  55510. 8017172: 6b7b ldr r3, [r7, #52] @ 0x34
  55511. }
  55512. 8017174: 4618 mov r0, r3
  55513. 8017176: 3738 adds r7, #56 @ 0x38
  55514. 8017178: 46bd mov sp, r7
  55515. 801717a: bd80 pop {r7, pc}
  55516. 801717c: 24002ef4 .word 0x24002ef4
  55517. 8017180: 24002ed4 .word 0x24002ed4
  55518. 8017184: 240029fc .word 0x240029fc
  55519. 8017188: 24002e8c .word 0x24002e8c
  55520. 801718c: 240029f8 .word 0x240029f8
  55521. 8017190: 24002ee0 .word 0x24002ee0
  55522. 08017194 <xTaskNotifyStateClear>:
  55523. /*-----------------------------------------------------------*/
  55524. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55525. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  55526. {
  55527. 8017194: b580 push {r7, lr}
  55528. 8017196: b084 sub sp, #16
  55529. 8017198: af00 add r7, sp, #0
  55530. 801719a: 6078 str r0, [r7, #4]
  55531. TCB_t *pxTCB;
  55532. BaseType_t xReturn;
  55533. /* If null is passed in here then it is the calling task that is having
  55534. its notification state cleared. */
  55535. pxTCB = prvGetTCBFromHandle( xTask );
  55536. 801719c: 687b ldr r3, [r7, #4]
  55537. 801719e: 2b00 cmp r3, #0
  55538. 80171a0: d102 bne.n 80171a8 <xTaskNotifyStateClear+0x14>
  55539. 80171a2: 4b0e ldr r3, [pc, #56] @ (80171dc <xTaskNotifyStateClear+0x48>)
  55540. 80171a4: 681b ldr r3, [r3, #0]
  55541. 80171a6: e000 b.n 80171aa <xTaskNotifyStateClear+0x16>
  55542. 80171a8: 687b ldr r3, [r7, #4]
  55543. 80171aa: 60bb str r3, [r7, #8]
  55544. taskENTER_CRITICAL();
  55545. 80171ac: f000 fde4 bl 8017d78 <vPortEnterCritical>
  55546. {
  55547. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  55548. 80171b0: 68bb ldr r3, [r7, #8]
  55549. 80171b2: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55550. 80171b6: b2db uxtb r3, r3
  55551. 80171b8: 2b02 cmp r3, #2
  55552. 80171ba: d106 bne.n 80171ca <xTaskNotifyStateClear+0x36>
  55553. {
  55554. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  55555. 80171bc: 68bb ldr r3, [r7, #8]
  55556. 80171be: 2200 movs r2, #0
  55557. 80171c0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55558. xReturn = pdPASS;
  55559. 80171c4: 2301 movs r3, #1
  55560. 80171c6: 60fb str r3, [r7, #12]
  55561. 80171c8: e001 b.n 80171ce <xTaskNotifyStateClear+0x3a>
  55562. }
  55563. else
  55564. {
  55565. xReturn = pdFAIL;
  55566. 80171ca: 2300 movs r3, #0
  55567. 80171cc: 60fb str r3, [r7, #12]
  55568. }
  55569. }
  55570. taskEXIT_CRITICAL();
  55571. 80171ce: f000 fe05 bl 8017ddc <vPortExitCritical>
  55572. return xReturn;
  55573. 80171d2: 68fb ldr r3, [r7, #12]
  55574. }
  55575. 80171d4: 4618 mov r0, r3
  55576. 80171d6: 3710 adds r7, #16
  55577. 80171d8: 46bd mov sp, r7
  55578. 80171da: bd80 pop {r7, pc}
  55579. 80171dc: 240029f8 .word 0x240029f8
  55580. 080171e0 <prvAddCurrentTaskToDelayedList>:
  55581. #endif
  55582. /*-----------------------------------------------------------*/
  55583. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  55584. {
  55585. 80171e0: b580 push {r7, lr}
  55586. 80171e2: b084 sub sp, #16
  55587. 80171e4: af00 add r7, sp, #0
  55588. 80171e6: 6078 str r0, [r7, #4]
  55589. 80171e8: 6039 str r1, [r7, #0]
  55590. TickType_t xTimeToWake;
  55591. const TickType_t xConstTickCount = xTickCount;
  55592. 80171ea: 4b21 ldr r3, [pc, #132] @ (8017270 <prvAddCurrentTaskToDelayedList+0x90>)
  55593. 80171ec: 681b ldr r3, [r3, #0]
  55594. 80171ee: 60fb str r3, [r7, #12]
  55595. }
  55596. #endif
  55597. /* Remove the task from the ready list before adding it to the blocked list
  55598. as the same list item is used for both lists. */
  55599. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  55600. 80171f0: 4b20 ldr r3, [pc, #128] @ (8017274 <prvAddCurrentTaskToDelayedList+0x94>)
  55601. 80171f2: 681b ldr r3, [r3, #0]
  55602. 80171f4: 3304 adds r3, #4
  55603. 80171f6: 4618 mov r0, r3
  55604. 80171f8: f7fd fc18 bl 8014a2c <uxListRemove>
  55605. mtCOVERAGE_TEST_MARKER();
  55606. }
  55607. #if ( INCLUDE_vTaskSuspend == 1 )
  55608. {
  55609. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  55610. 80171fc: 687b ldr r3, [r7, #4]
  55611. 80171fe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55612. 8017202: d10a bne.n 801721a <prvAddCurrentTaskToDelayedList+0x3a>
  55613. 8017204: 683b ldr r3, [r7, #0]
  55614. 8017206: 2b00 cmp r3, #0
  55615. 8017208: d007 beq.n 801721a <prvAddCurrentTaskToDelayedList+0x3a>
  55616. {
  55617. /* Add the task to the suspended task list instead of a delayed task
  55618. list to ensure it is not woken by a timing event. It will block
  55619. indefinitely. */
  55620. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55621. 801720a: 4b1a ldr r3, [pc, #104] @ (8017274 <prvAddCurrentTaskToDelayedList+0x94>)
  55622. 801720c: 681b ldr r3, [r3, #0]
  55623. 801720e: 3304 adds r3, #4
  55624. 8017210: 4619 mov r1, r3
  55625. 8017212: 4819 ldr r0, [pc, #100] @ (8017278 <prvAddCurrentTaskToDelayedList+0x98>)
  55626. 8017214: f7fd fbad bl 8014972 <vListInsertEnd>
  55627. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  55628. ( void ) xCanBlockIndefinitely;
  55629. }
  55630. #endif /* INCLUDE_vTaskSuspend */
  55631. }
  55632. 8017218: e026 b.n 8017268 <prvAddCurrentTaskToDelayedList+0x88>
  55633. xTimeToWake = xConstTickCount + xTicksToWait;
  55634. 801721a: 68fa ldr r2, [r7, #12]
  55635. 801721c: 687b ldr r3, [r7, #4]
  55636. 801721e: 4413 add r3, r2
  55637. 8017220: 60bb str r3, [r7, #8]
  55638. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  55639. 8017222: 4b14 ldr r3, [pc, #80] @ (8017274 <prvAddCurrentTaskToDelayedList+0x94>)
  55640. 8017224: 681b ldr r3, [r3, #0]
  55641. 8017226: 68ba ldr r2, [r7, #8]
  55642. 8017228: 605a str r2, [r3, #4]
  55643. if( xTimeToWake < xConstTickCount )
  55644. 801722a: 68ba ldr r2, [r7, #8]
  55645. 801722c: 68fb ldr r3, [r7, #12]
  55646. 801722e: 429a cmp r2, r3
  55647. 8017230: d209 bcs.n 8017246 <prvAddCurrentTaskToDelayedList+0x66>
  55648. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55649. 8017232: 4b12 ldr r3, [pc, #72] @ (801727c <prvAddCurrentTaskToDelayedList+0x9c>)
  55650. 8017234: 681a ldr r2, [r3, #0]
  55651. 8017236: 4b0f ldr r3, [pc, #60] @ (8017274 <prvAddCurrentTaskToDelayedList+0x94>)
  55652. 8017238: 681b ldr r3, [r3, #0]
  55653. 801723a: 3304 adds r3, #4
  55654. 801723c: 4619 mov r1, r3
  55655. 801723e: 4610 mov r0, r2
  55656. 8017240: f7fd fbbb bl 80149ba <vListInsert>
  55657. }
  55658. 8017244: e010 b.n 8017268 <prvAddCurrentTaskToDelayedList+0x88>
  55659. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55660. 8017246: 4b0e ldr r3, [pc, #56] @ (8017280 <prvAddCurrentTaskToDelayedList+0xa0>)
  55661. 8017248: 681a ldr r2, [r3, #0]
  55662. 801724a: 4b0a ldr r3, [pc, #40] @ (8017274 <prvAddCurrentTaskToDelayedList+0x94>)
  55663. 801724c: 681b ldr r3, [r3, #0]
  55664. 801724e: 3304 adds r3, #4
  55665. 8017250: 4619 mov r1, r3
  55666. 8017252: 4610 mov r0, r2
  55667. 8017254: f7fd fbb1 bl 80149ba <vListInsert>
  55668. if( xTimeToWake < xNextTaskUnblockTime )
  55669. 8017258: 4b0a ldr r3, [pc, #40] @ (8017284 <prvAddCurrentTaskToDelayedList+0xa4>)
  55670. 801725a: 681b ldr r3, [r3, #0]
  55671. 801725c: 68ba ldr r2, [r7, #8]
  55672. 801725e: 429a cmp r2, r3
  55673. 8017260: d202 bcs.n 8017268 <prvAddCurrentTaskToDelayedList+0x88>
  55674. xNextTaskUnblockTime = xTimeToWake;
  55675. 8017262: 4a08 ldr r2, [pc, #32] @ (8017284 <prvAddCurrentTaskToDelayedList+0xa4>)
  55676. 8017264: 68bb ldr r3, [r7, #8]
  55677. 8017266: 6013 str r3, [r2, #0]
  55678. }
  55679. 8017268: bf00 nop
  55680. 801726a: 3710 adds r7, #16
  55681. 801726c: 46bd mov sp, r7
  55682. 801726e: bd80 pop {r7, pc}
  55683. 8017270: 24002ed0 .word 0x24002ed0
  55684. 8017274: 240029f8 .word 0x240029f8
  55685. 8017278: 24002eb8 .word 0x24002eb8
  55686. 801727c: 24002e88 .word 0x24002e88
  55687. 8017280: 24002e84 .word 0x24002e84
  55688. 8017284: 24002eec .word 0x24002eec
  55689. 08017288 <xTimerCreateTimerTask>:
  55690. TimerCallbackFunction_t pxCallbackFunction,
  55691. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  55692. /*-----------------------------------------------------------*/
  55693. BaseType_t xTimerCreateTimerTask( void )
  55694. {
  55695. 8017288: b580 push {r7, lr}
  55696. 801728a: b08a sub sp, #40 @ 0x28
  55697. 801728c: af04 add r7, sp, #16
  55698. BaseType_t xReturn = pdFAIL;
  55699. 801728e: 2300 movs r3, #0
  55700. 8017290: 617b str r3, [r7, #20]
  55701. /* This function is called when the scheduler is started if
  55702. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  55703. timer service task has been created/initialised. If timers have already
  55704. been created then the initialisation will already have been performed. */
  55705. prvCheckForValidListAndQueue();
  55706. 8017292: f000 fbb1 bl 80179f8 <prvCheckForValidListAndQueue>
  55707. if( xTimerQueue != NULL )
  55708. 8017296: 4b1d ldr r3, [pc, #116] @ (801730c <xTimerCreateTimerTask+0x84>)
  55709. 8017298: 681b ldr r3, [r3, #0]
  55710. 801729a: 2b00 cmp r3, #0
  55711. 801729c: d021 beq.n 80172e2 <xTimerCreateTimerTask+0x5a>
  55712. {
  55713. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  55714. {
  55715. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  55716. 801729e: 2300 movs r3, #0
  55717. 80172a0: 60fb str r3, [r7, #12]
  55718. StackType_t *pxTimerTaskStackBuffer = NULL;
  55719. 80172a2: 2300 movs r3, #0
  55720. 80172a4: 60bb str r3, [r7, #8]
  55721. uint32_t ulTimerTaskStackSize;
  55722. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  55723. 80172a6: 1d3a adds r2, r7, #4
  55724. 80172a8: f107 0108 add.w r1, r7, #8
  55725. 80172ac: f107 030c add.w r3, r7, #12
  55726. 80172b0: 4618 mov r0, r3
  55727. 80172b2: f7fd fb17 bl 80148e4 <vApplicationGetTimerTaskMemory>
  55728. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  55729. 80172b6: 6879 ldr r1, [r7, #4]
  55730. 80172b8: 68bb ldr r3, [r7, #8]
  55731. 80172ba: 68fa ldr r2, [r7, #12]
  55732. 80172bc: 9202 str r2, [sp, #8]
  55733. 80172be: 9301 str r3, [sp, #4]
  55734. 80172c0: 2302 movs r3, #2
  55735. 80172c2: 9300 str r3, [sp, #0]
  55736. 80172c4: 2300 movs r3, #0
  55737. 80172c6: 460a mov r2, r1
  55738. 80172c8: 4911 ldr r1, [pc, #68] @ (8017310 <xTimerCreateTimerTask+0x88>)
  55739. 80172ca: 4812 ldr r0, [pc, #72] @ (8017314 <xTimerCreateTimerTask+0x8c>)
  55740. 80172cc: f7fe fd2f bl 8015d2e <xTaskCreateStatic>
  55741. 80172d0: 4603 mov r3, r0
  55742. 80172d2: 4a11 ldr r2, [pc, #68] @ (8017318 <xTimerCreateTimerTask+0x90>)
  55743. 80172d4: 6013 str r3, [r2, #0]
  55744. NULL,
  55745. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  55746. pxTimerTaskStackBuffer,
  55747. pxTimerTaskTCBBuffer );
  55748. if( xTimerTaskHandle != NULL )
  55749. 80172d6: 4b10 ldr r3, [pc, #64] @ (8017318 <xTimerCreateTimerTask+0x90>)
  55750. 80172d8: 681b ldr r3, [r3, #0]
  55751. 80172da: 2b00 cmp r3, #0
  55752. 80172dc: d001 beq.n 80172e2 <xTimerCreateTimerTask+0x5a>
  55753. {
  55754. xReturn = pdPASS;
  55755. 80172de: 2301 movs r3, #1
  55756. 80172e0: 617b str r3, [r7, #20]
  55757. else
  55758. {
  55759. mtCOVERAGE_TEST_MARKER();
  55760. }
  55761. configASSERT( xReturn );
  55762. 80172e2: 697b ldr r3, [r7, #20]
  55763. 80172e4: 2b00 cmp r3, #0
  55764. 80172e6: d10b bne.n 8017300 <xTimerCreateTimerTask+0x78>
  55765. __asm volatile
  55766. 80172e8: f04f 0350 mov.w r3, #80 @ 0x50
  55767. 80172ec: f383 8811 msr BASEPRI, r3
  55768. 80172f0: f3bf 8f6f isb sy
  55769. 80172f4: f3bf 8f4f dsb sy
  55770. 80172f8: 613b str r3, [r7, #16]
  55771. }
  55772. 80172fa: bf00 nop
  55773. 80172fc: bf00 nop
  55774. 80172fe: e7fd b.n 80172fc <xTimerCreateTimerTask+0x74>
  55775. return xReturn;
  55776. 8017300: 697b ldr r3, [r7, #20]
  55777. }
  55778. 8017302: 4618 mov r0, r3
  55779. 8017304: 3718 adds r7, #24
  55780. 8017306: 46bd mov sp, r7
  55781. 8017308: bd80 pop {r7, pc}
  55782. 801730a: bf00 nop
  55783. 801730c: 24002f28 .word 0x24002f28
  55784. 8017310: 08018718 .word 0x08018718
  55785. 8017314: 08017591 .word 0x08017591
  55786. 8017318: 24002f2c .word 0x24002f2c
  55787. 0801731c <xTimerCreate>:
  55788. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  55789. const TickType_t xTimerPeriodInTicks,
  55790. const UBaseType_t uxAutoReload,
  55791. void * const pvTimerID,
  55792. TimerCallbackFunction_t pxCallbackFunction )
  55793. {
  55794. 801731c: b580 push {r7, lr}
  55795. 801731e: b088 sub sp, #32
  55796. 8017320: af02 add r7, sp, #8
  55797. 8017322: 60f8 str r0, [r7, #12]
  55798. 8017324: 60b9 str r1, [r7, #8]
  55799. 8017326: 607a str r2, [r7, #4]
  55800. 8017328: 603b str r3, [r7, #0]
  55801. Timer_t *pxNewTimer;
  55802. 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. */
  55803. 801732a: 202c movs r0, #44 @ 0x2c
  55804. 801732c: f000 fe46 bl 8017fbc <pvPortMalloc>
  55805. 8017330: 6178 str r0, [r7, #20]
  55806. if( pxNewTimer != NULL )
  55807. 8017332: 697b ldr r3, [r7, #20]
  55808. 8017334: 2b00 cmp r3, #0
  55809. 8017336: d00d beq.n 8017354 <xTimerCreate+0x38>
  55810. {
  55811. /* Status is thus far zero as the timer is not created statically
  55812. and has not been started. The auto-reload bit may get set in
  55813. prvInitialiseNewTimer. */
  55814. pxNewTimer->ucStatus = 0x00;
  55815. 8017338: 697b ldr r3, [r7, #20]
  55816. 801733a: 2200 movs r2, #0
  55817. 801733c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55818. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55819. 8017340: 697b ldr r3, [r7, #20]
  55820. 8017342: 9301 str r3, [sp, #4]
  55821. 8017344: 6a3b ldr r3, [r7, #32]
  55822. 8017346: 9300 str r3, [sp, #0]
  55823. 8017348: 683b ldr r3, [r7, #0]
  55824. 801734a: 687a ldr r2, [r7, #4]
  55825. 801734c: 68b9 ldr r1, [r7, #8]
  55826. 801734e: 68f8 ldr r0, [r7, #12]
  55827. 8017350: f000 f845 bl 80173de <prvInitialiseNewTimer>
  55828. }
  55829. return pxNewTimer;
  55830. 8017354: 697b ldr r3, [r7, #20]
  55831. }
  55832. 8017356: 4618 mov r0, r3
  55833. 8017358: 3718 adds r7, #24
  55834. 801735a: 46bd mov sp, r7
  55835. 801735c: bd80 pop {r7, pc}
  55836. 0801735e <xTimerCreateStatic>:
  55837. const TickType_t xTimerPeriodInTicks,
  55838. const UBaseType_t uxAutoReload,
  55839. void * const pvTimerID,
  55840. TimerCallbackFunction_t pxCallbackFunction,
  55841. StaticTimer_t *pxTimerBuffer )
  55842. {
  55843. 801735e: b580 push {r7, lr}
  55844. 8017360: b08a sub sp, #40 @ 0x28
  55845. 8017362: af02 add r7, sp, #8
  55846. 8017364: 60f8 str r0, [r7, #12]
  55847. 8017366: 60b9 str r1, [r7, #8]
  55848. 8017368: 607a str r2, [r7, #4]
  55849. 801736a: 603b str r3, [r7, #0]
  55850. #if( configASSERT_DEFINED == 1 )
  55851. {
  55852. /* Sanity check that the size of the structure used to declare a
  55853. variable of type StaticTimer_t equals the size of the real timer
  55854. structure. */
  55855. volatile size_t xSize = sizeof( StaticTimer_t );
  55856. 801736c: 232c movs r3, #44 @ 0x2c
  55857. 801736e: 613b str r3, [r7, #16]
  55858. configASSERT( xSize == sizeof( Timer_t ) );
  55859. 8017370: 693b ldr r3, [r7, #16]
  55860. 8017372: 2b2c cmp r3, #44 @ 0x2c
  55861. 8017374: d00b beq.n 801738e <xTimerCreateStatic+0x30>
  55862. __asm volatile
  55863. 8017376: f04f 0350 mov.w r3, #80 @ 0x50
  55864. 801737a: f383 8811 msr BASEPRI, r3
  55865. 801737e: f3bf 8f6f isb sy
  55866. 8017382: f3bf 8f4f dsb sy
  55867. 8017386: 61bb str r3, [r7, #24]
  55868. }
  55869. 8017388: bf00 nop
  55870. 801738a: bf00 nop
  55871. 801738c: e7fd b.n 801738a <xTimerCreateStatic+0x2c>
  55872. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  55873. 801738e: 693b ldr r3, [r7, #16]
  55874. }
  55875. #endif /* configASSERT_DEFINED */
  55876. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  55877. configASSERT( pxTimerBuffer );
  55878. 8017390: 6afb ldr r3, [r7, #44] @ 0x2c
  55879. 8017392: 2b00 cmp r3, #0
  55880. 8017394: d10b bne.n 80173ae <xTimerCreateStatic+0x50>
  55881. __asm volatile
  55882. 8017396: f04f 0350 mov.w r3, #80 @ 0x50
  55883. 801739a: f383 8811 msr BASEPRI, r3
  55884. 801739e: f3bf 8f6f isb sy
  55885. 80173a2: f3bf 8f4f dsb sy
  55886. 80173a6: 617b str r3, [r7, #20]
  55887. }
  55888. 80173a8: bf00 nop
  55889. 80173aa: bf00 nop
  55890. 80173ac: e7fd b.n 80173aa <xTimerCreateStatic+0x4c>
  55891. 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. */
  55892. 80173ae: 6afb ldr r3, [r7, #44] @ 0x2c
  55893. 80173b0: 61fb str r3, [r7, #28]
  55894. if( pxNewTimer != NULL )
  55895. 80173b2: 69fb ldr r3, [r7, #28]
  55896. 80173b4: 2b00 cmp r3, #0
  55897. 80173b6: d00d beq.n 80173d4 <xTimerCreateStatic+0x76>
  55898. {
  55899. /* Timers can be created statically or dynamically so note this
  55900. timer was created statically in case it is later deleted. The
  55901. auto-reload bit may get set in prvInitialiseNewTimer(). */
  55902. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  55903. 80173b8: 69fb ldr r3, [r7, #28]
  55904. 80173ba: 2202 movs r2, #2
  55905. 80173bc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55906. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55907. 80173c0: 69fb ldr r3, [r7, #28]
  55908. 80173c2: 9301 str r3, [sp, #4]
  55909. 80173c4: 6abb ldr r3, [r7, #40] @ 0x28
  55910. 80173c6: 9300 str r3, [sp, #0]
  55911. 80173c8: 683b ldr r3, [r7, #0]
  55912. 80173ca: 687a ldr r2, [r7, #4]
  55913. 80173cc: 68b9 ldr r1, [r7, #8]
  55914. 80173ce: 68f8 ldr r0, [r7, #12]
  55915. 80173d0: f000 f805 bl 80173de <prvInitialiseNewTimer>
  55916. }
  55917. return pxNewTimer;
  55918. 80173d4: 69fb ldr r3, [r7, #28]
  55919. }
  55920. 80173d6: 4618 mov r0, r3
  55921. 80173d8: 3720 adds r7, #32
  55922. 80173da: 46bd mov sp, r7
  55923. 80173dc: bd80 pop {r7, pc}
  55924. 080173de <prvInitialiseNewTimer>:
  55925. const TickType_t xTimerPeriodInTicks,
  55926. const UBaseType_t uxAutoReload,
  55927. void * const pvTimerID,
  55928. TimerCallbackFunction_t pxCallbackFunction,
  55929. Timer_t *pxNewTimer )
  55930. {
  55931. 80173de: b580 push {r7, lr}
  55932. 80173e0: b086 sub sp, #24
  55933. 80173e2: af00 add r7, sp, #0
  55934. 80173e4: 60f8 str r0, [r7, #12]
  55935. 80173e6: 60b9 str r1, [r7, #8]
  55936. 80173e8: 607a str r2, [r7, #4]
  55937. 80173ea: 603b str r3, [r7, #0]
  55938. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55939. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55940. 80173ec: 68bb ldr r3, [r7, #8]
  55941. 80173ee: 2b00 cmp r3, #0
  55942. 80173f0: d10b bne.n 801740a <prvInitialiseNewTimer+0x2c>
  55943. __asm volatile
  55944. 80173f2: f04f 0350 mov.w r3, #80 @ 0x50
  55945. 80173f6: f383 8811 msr BASEPRI, r3
  55946. 80173fa: f3bf 8f6f isb sy
  55947. 80173fe: f3bf 8f4f dsb sy
  55948. 8017402: 617b str r3, [r7, #20]
  55949. }
  55950. 8017404: bf00 nop
  55951. 8017406: bf00 nop
  55952. 8017408: e7fd b.n 8017406 <prvInitialiseNewTimer+0x28>
  55953. if( pxNewTimer != NULL )
  55954. 801740a: 6a7b ldr r3, [r7, #36] @ 0x24
  55955. 801740c: 2b00 cmp r3, #0
  55956. 801740e: d01e beq.n 801744e <prvInitialiseNewTimer+0x70>
  55957. {
  55958. /* Ensure the infrastructure used by the timer service task has been
  55959. created/initialised. */
  55960. prvCheckForValidListAndQueue();
  55961. 8017410: f000 faf2 bl 80179f8 <prvCheckForValidListAndQueue>
  55962. /* Initialise the timer structure members using the function
  55963. parameters. */
  55964. pxNewTimer->pcTimerName = pcTimerName;
  55965. 8017414: 6a7b ldr r3, [r7, #36] @ 0x24
  55966. 8017416: 68fa ldr r2, [r7, #12]
  55967. 8017418: 601a str r2, [r3, #0]
  55968. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55969. 801741a: 6a7b ldr r3, [r7, #36] @ 0x24
  55970. 801741c: 68ba ldr r2, [r7, #8]
  55971. 801741e: 619a str r2, [r3, #24]
  55972. pxNewTimer->pvTimerID = pvTimerID;
  55973. 8017420: 6a7b ldr r3, [r7, #36] @ 0x24
  55974. 8017422: 683a ldr r2, [r7, #0]
  55975. 8017424: 61da str r2, [r3, #28]
  55976. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55977. 8017426: 6a7b ldr r3, [r7, #36] @ 0x24
  55978. 8017428: 6a3a ldr r2, [r7, #32]
  55979. 801742a: 621a str r2, [r3, #32]
  55980. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55981. 801742c: 6a7b ldr r3, [r7, #36] @ 0x24
  55982. 801742e: 3304 adds r3, #4
  55983. 8017430: 4618 mov r0, r3
  55984. 8017432: f7fd fa91 bl 8014958 <vListInitialiseItem>
  55985. if( uxAutoReload != pdFALSE )
  55986. 8017436: 687b ldr r3, [r7, #4]
  55987. 8017438: 2b00 cmp r3, #0
  55988. 801743a: d008 beq.n 801744e <prvInitialiseNewTimer+0x70>
  55989. {
  55990. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55991. 801743c: 6a7b ldr r3, [r7, #36] @ 0x24
  55992. 801743e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55993. 8017442: f043 0304 orr.w r3, r3, #4
  55994. 8017446: b2da uxtb r2, r3
  55995. 8017448: 6a7b ldr r3, [r7, #36] @ 0x24
  55996. 801744a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55997. }
  55998. traceTIMER_CREATE( pxNewTimer );
  55999. }
  56000. }
  56001. 801744e: bf00 nop
  56002. 8017450: 3718 adds r7, #24
  56003. 8017452: 46bd mov sp, r7
  56004. 8017454: bd80 pop {r7, pc}
  56005. ...
  56006. 08017458 <xTimerGenericCommand>:
  56007. /*-----------------------------------------------------------*/
  56008. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  56009. {
  56010. 8017458: b580 push {r7, lr}
  56011. 801745a: b08a sub sp, #40 @ 0x28
  56012. 801745c: af00 add r7, sp, #0
  56013. 801745e: 60f8 str r0, [r7, #12]
  56014. 8017460: 60b9 str r1, [r7, #8]
  56015. 8017462: 607a str r2, [r7, #4]
  56016. 8017464: 603b str r3, [r7, #0]
  56017. BaseType_t xReturn = pdFAIL;
  56018. 8017466: 2300 movs r3, #0
  56019. 8017468: 627b str r3, [r7, #36] @ 0x24
  56020. DaemonTaskMessage_t xMessage;
  56021. configASSERT( xTimer );
  56022. 801746a: 68fb ldr r3, [r7, #12]
  56023. 801746c: 2b00 cmp r3, #0
  56024. 801746e: d10b bne.n 8017488 <xTimerGenericCommand+0x30>
  56025. __asm volatile
  56026. 8017470: f04f 0350 mov.w r3, #80 @ 0x50
  56027. 8017474: f383 8811 msr BASEPRI, r3
  56028. 8017478: f3bf 8f6f isb sy
  56029. 801747c: f3bf 8f4f dsb sy
  56030. 8017480: 623b str r3, [r7, #32]
  56031. }
  56032. 8017482: bf00 nop
  56033. 8017484: bf00 nop
  56034. 8017486: e7fd b.n 8017484 <xTimerGenericCommand+0x2c>
  56035. /* Send a message to the timer service task to perform a particular action
  56036. on a particular timer definition. */
  56037. if( xTimerQueue != NULL )
  56038. 8017488: 4b19 ldr r3, [pc, #100] @ (80174f0 <xTimerGenericCommand+0x98>)
  56039. 801748a: 681b ldr r3, [r3, #0]
  56040. 801748c: 2b00 cmp r3, #0
  56041. 801748e: d02a beq.n 80174e6 <xTimerGenericCommand+0x8e>
  56042. {
  56043. /* Send a command to the timer service task to start the xTimer timer. */
  56044. xMessage.xMessageID = xCommandID;
  56045. 8017490: 68bb ldr r3, [r7, #8]
  56046. 8017492: 613b str r3, [r7, #16]
  56047. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  56048. 8017494: 687b ldr r3, [r7, #4]
  56049. 8017496: 617b str r3, [r7, #20]
  56050. xMessage.u.xTimerParameters.pxTimer = xTimer;
  56051. 8017498: 68fb ldr r3, [r7, #12]
  56052. 801749a: 61bb str r3, [r7, #24]
  56053. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  56054. 801749c: 68bb ldr r3, [r7, #8]
  56055. 801749e: 2b05 cmp r3, #5
  56056. 80174a0: dc18 bgt.n 80174d4 <xTimerGenericCommand+0x7c>
  56057. {
  56058. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  56059. 80174a2: f7ff fae1 bl 8016a68 <xTaskGetSchedulerState>
  56060. 80174a6: 4603 mov r3, r0
  56061. 80174a8: 2b02 cmp r3, #2
  56062. 80174aa: d109 bne.n 80174c0 <xTimerGenericCommand+0x68>
  56063. {
  56064. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  56065. 80174ac: 4b10 ldr r3, [pc, #64] @ (80174f0 <xTimerGenericCommand+0x98>)
  56066. 80174ae: 6818 ldr r0, [r3, #0]
  56067. 80174b0: f107 0110 add.w r1, r7, #16
  56068. 80174b4: 2300 movs r3, #0
  56069. 80174b6: 6b3a ldr r2, [r7, #48] @ 0x30
  56070. 80174b8: f7fd fce0 bl 8014e7c <xQueueGenericSend>
  56071. 80174bc: 6278 str r0, [r7, #36] @ 0x24
  56072. 80174be: e012 b.n 80174e6 <xTimerGenericCommand+0x8e>
  56073. }
  56074. else
  56075. {
  56076. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  56077. 80174c0: 4b0b ldr r3, [pc, #44] @ (80174f0 <xTimerGenericCommand+0x98>)
  56078. 80174c2: 6818 ldr r0, [r3, #0]
  56079. 80174c4: f107 0110 add.w r1, r7, #16
  56080. 80174c8: 2300 movs r3, #0
  56081. 80174ca: 2200 movs r2, #0
  56082. 80174cc: f7fd fcd6 bl 8014e7c <xQueueGenericSend>
  56083. 80174d0: 6278 str r0, [r7, #36] @ 0x24
  56084. 80174d2: e008 b.n 80174e6 <xTimerGenericCommand+0x8e>
  56085. }
  56086. }
  56087. else
  56088. {
  56089. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  56090. 80174d4: 4b06 ldr r3, [pc, #24] @ (80174f0 <xTimerGenericCommand+0x98>)
  56091. 80174d6: 6818 ldr r0, [r3, #0]
  56092. 80174d8: f107 0110 add.w r1, r7, #16
  56093. 80174dc: 2300 movs r3, #0
  56094. 80174de: 683a ldr r2, [r7, #0]
  56095. 80174e0: f7fd fdce bl 8015080 <xQueueGenericSendFromISR>
  56096. 80174e4: 6278 str r0, [r7, #36] @ 0x24
  56097. else
  56098. {
  56099. mtCOVERAGE_TEST_MARKER();
  56100. }
  56101. return xReturn;
  56102. 80174e6: 6a7b ldr r3, [r7, #36] @ 0x24
  56103. }
  56104. 80174e8: 4618 mov r0, r3
  56105. 80174ea: 3728 adds r7, #40 @ 0x28
  56106. 80174ec: 46bd mov sp, r7
  56107. 80174ee: bd80 pop {r7, pc}
  56108. 80174f0: 24002f28 .word 0x24002f28
  56109. 080174f4 <prvProcessExpiredTimer>:
  56110. return pxTimer->pcTimerName;
  56111. }
  56112. /*-----------------------------------------------------------*/
  56113. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  56114. {
  56115. 80174f4: b580 push {r7, lr}
  56116. 80174f6: b088 sub sp, #32
  56117. 80174f8: af02 add r7, sp, #8
  56118. 80174fa: 6078 str r0, [r7, #4]
  56119. 80174fc: 6039 str r1, [r7, #0]
  56120. BaseType_t xResult;
  56121. 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. */
  56122. 80174fe: 4b23 ldr r3, [pc, #140] @ (801758c <prvProcessExpiredTimer+0x98>)
  56123. 8017500: 681b ldr r3, [r3, #0]
  56124. 8017502: 68db ldr r3, [r3, #12]
  56125. 8017504: 68db ldr r3, [r3, #12]
  56126. 8017506: 617b str r3, [r7, #20]
  56127. /* Remove the timer from the list of active timers. A check has already
  56128. been performed to ensure the list is not empty. */
  56129. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56130. 8017508: 697b ldr r3, [r7, #20]
  56131. 801750a: 3304 adds r3, #4
  56132. 801750c: 4618 mov r0, r3
  56133. 801750e: f7fd fa8d bl 8014a2c <uxListRemove>
  56134. traceTIMER_EXPIRED( pxTimer );
  56135. /* If the timer is an auto-reload timer then calculate the next
  56136. expiry time and re-insert the timer in the list of active timers. */
  56137. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56138. 8017512: 697b ldr r3, [r7, #20]
  56139. 8017514: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56140. 8017518: f003 0304 and.w r3, r3, #4
  56141. 801751c: 2b00 cmp r3, #0
  56142. 801751e: d023 beq.n 8017568 <prvProcessExpiredTimer+0x74>
  56143. {
  56144. /* The timer is inserted into a list using a time relative to anything
  56145. other than the current time. It will therefore be inserted into the
  56146. correct list relative to the time this task thinks it is now. */
  56147. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  56148. 8017520: 697b ldr r3, [r7, #20]
  56149. 8017522: 699a ldr r2, [r3, #24]
  56150. 8017524: 687b ldr r3, [r7, #4]
  56151. 8017526: 18d1 adds r1, r2, r3
  56152. 8017528: 687b ldr r3, [r7, #4]
  56153. 801752a: 683a ldr r2, [r7, #0]
  56154. 801752c: 6978 ldr r0, [r7, #20]
  56155. 801752e: f000 f8d5 bl 80176dc <prvInsertTimerInActiveList>
  56156. 8017532: 4603 mov r3, r0
  56157. 8017534: 2b00 cmp r3, #0
  56158. 8017536: d020 beq.n 801757a <prvProcessExpiredTimer+0x86>
  56159. {
  56160. /* The timer expired before it was added to the active timer
  56161. list. Reload it now. */
  56162. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56163. 8017538: 2300 movs r3, #0
  56164. 801753a: 9300 str r3, [sp, #0]
  56165. 801753c: 2300 movs r3, #0
  56166. 801753e: 687a ldr r2, [r7, #4]
  56167. 8017540: 2100 movs r1, #0
  56168. 8017542: 6978 ldr r0, [r7, #20]
  56169. 8017544: f7ff ff88 bl 8017458 <xTimerGenericCommand>
  56170. 8017548: 6138 str r0, [r7, #16]
  56171. configASSERT( xResult );
  56172. 801754a: 693b ldr r3, [r7, #16]
  56173. 801754c: 2b00 cmp r3, #0
  56174. 801754e: d114 bne.n 801757a <prvProcessExpiredTimer+0x86>
  56175. __asm volatile
  56176. 8017550: f04f 0350 mov.w r3, #80 @ 0x50
  56177. 8017554: f383 8811 msr BASEPRI, r3
  56178. 8017558: f3bf 8f6f isb sy
  56179. 801755c: f3bf 8f4f dsb sy
  56180. 8017560: 60fb str r3, [r7, #12]
  56181. }
  56182. 8017562: bf00 nop
  56183. 8017564: bf00 nop
  56184. 8017566: e7fd b.n 8017564 <prvProcessExpiredTimer+0x70>
  56185. mtCOVERAGE_TEST_MARKER();
  56186. }
  56187. }
  56188. else
  56189. {
  56190. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56191. 8017568: 697b ldr r3, [r7, #20]
  56192. 801756a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56193. 801756e: f023 0301 bic.w r3, r3, #1
  56194. 8017572: b2da uxtb r2, r3
  56195. 8017574: 697b ldr r3, [r7, #20]
  56196. 8017576: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56197. mtCOVERAGE_TEST_MARKER();
  56198. }
  56199. /* Call the timer callback. */
  56200. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56201. 801757a: 697b ldr r3, [r7, #20]
  56202. 801757c: 6a1b ldr r3, [r3, #32]
  56203. 801757e: 6978 ldr r0, [r7, #20]
  56204. 8017580: 4798 blx r3
  56205. }
  56206. 8017582: bf00 nop
  56207. 8017584: 3718 adds r7, #24
  56208. 8017586: 46bd mov sp, r7
  56209. 8017588: bd80 pop {r7, pc}
  56210. 801758a: bf00 nop
  56211. 801758c: 24002f20 .word 0x24002f20
  56212. 08017590 <prvTimerTask>:
  56213. /*-----------------------------------------------------------*/
  56214. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  56215. {
  56216. 8017590: b580 push {r7, lr}
  56217. 8017592: b084 sub sp, #16
  56218. 8017594: af00 add r7, sp, #0
  56219. 8017596: 6078 str r0, [r7, #4]
  56220. for( ;; )
  56221. {
  56222. /* Query the timers list to see if it contains any timers, and if so,
  56223. obtain the time at which the next timer will expire. */
  56224. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56225. 8017598: f107 0308 add.w r3, r7, #8
  56226. 801759c: 4618 mov r0, r3
  56227. 801759e: f000 f859 bl 8017654 <prvGetNextExpireTime>
  56228. 80175a2: 60f8 str r0, [r7, #12]
  56229. /* If a timer has expired, process it. Otherwise, block this task
  56230. until either a timer does expire, or a command is received. */
  56231. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  56232. 80175a4: 68bb ldr r3, [r7, #8]
  56233. 80175a6: 4619 mov r1, r3
  56234. 80175a8: 68f8 ldr r0, [r7, #12]
  56235. 80175aa: f000 f805 bl 80175b8 <prvProcessTimerOrBlockTask>
  56236. /* Empty the command queue. */
  56237. prvProcessReceivedCommands();
  56238. 80175ae: f000 f8d7 bl 8017760 <prvProcessReceivedCommands>
  56239. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56240. 80175b2: bf00 nop
  56241. 80175b4: e7f0 b.n 8017598 <prvTimerTask+0x8>
  56242. ...
  56243. 080175b8 <prvProcessTimerOrBlockTask>:
  56244. }
  56245. }
  56246. /*-----------------------------------------------------------*/
  56247. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  56248. {
  56249. 80175b8: b580 push {r7, lr}
  56250. 80175ba: b084 sub sp, #16
  56251. 80175bc: af00 add r7, sp, #0
  56252. 80175be: 6078 str r0, [r7, #4]
  56253. 80175c0: 6039 str r1, [r7, #0]
  56254. TickType_t xTimeNow;
  56255. BaseType_t xTimerListsWereSwitched;
  56256. vTaskSuspendAll();
  56257. 80175c2: f7fe fe17 bl 80161f4 <vTaskSuspendAll>
  56258. /* Obtain the time now to make an assessment as to whether the timer
  56259. has expired or not. If obtaining the time causes the lists to switch
  56260. then don't process this timer as any timers that remained in the list
  56261. when the lists were switched will have been processed within the
  56262. prvSampleTimeNow() function. */
  56263. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56264. 80175c6: f107 0308 add.w r3, r7, #8
  56265. 80175ca: 4618 mov r0, r3
  56266. 80175cc: f000 f866 bl 801769c <prvSampleTimeNow>
  56267. 80175d0: 60f8 str r0, [r7, #12]
  56268. if( xTimerListsWereSwitched == pdFALSE )
  56269. 80175d2: 68bb ldr r3, [r7, #8]
  56270. 80175d4: 2b00 cmp r3, #0
  56271. 80175d6: d130 bne.n 801763a <prvProcessTimerOrBlockTask+0x82>
  56272. {
  56273. /* The tick count has not overflowed, has the timer expired? */
  56274. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  56275. 80175d8: 683b ldr r3, [r7, #0]
  56276. 80175da: 2b00 cmp r3, #0
  56277. 80175dc: d10a bne.n 80175f4 <prvProcessTimerOrBlockTask+0x3c>
  56278. 80175de: 687a ldr r2, [r7, #4]
  56279. 80175e0: 68fb ldr r3, [r7, #12]
  56280. 80175e2: 429a cmp r2, r3
  56281. 80175e4: d806 bhi.n 80175f4 <prvProcessTimerOrBlockTask+0x3c>
  56282. {
  56283. ( void ) xTaskResumeAll();
  56284. 80175e6: f7fe fe13 bl 8016210 <xTaskResumeAll>
  56285. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  56286. 80175ea: 68f9 ldr r1, [r7, #12]
  56287. 80175ec: 6878 ldr r0, [r7, #4]
  56288. 80175ee: f7ff ff81 bl 80174f4 <prvProcessExpiredTimer>
  56289. else
  56290. {
  56291. ( void ) xTaskResumeAll();
  56292. }
  56293. }
  56294. }
  56295. 80175f2: e024 b.n 801763e <prvProcessTimerOrBlockTask+0x86>
  56296. if( xListWasEmpty != pdFALSE )
  56297. 80175f4: 683b ldr r3, [r7, #0]
  56298. 80175f6: 2b00 cmp r3, #0
  56299. 80175f8: d008 beq.n 801760c <prvProcessTimerOrBlockTask+0x54>
  56300. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  56301. 80175fa: 4b13 ldr r3, [pc, #76] @ (8017648 <prvProcessTimerOrBlockTask+0x90>)
  56302. 80175fc: 681b ldr r3, [r3, #0]
  56303. 80175fe: 681b ldr r3, [r3, #0]
  56304. 8017600: 2b00 cmp r3, #0
  56305. 8017602: d101 bne.n 8017608 <prvProcessTimerOrBlockTask+0x50>
  56306. 8017604: 2301 movs r3, #1
  56307. 8017606: e000 b.n 801760a <prvProcessTimerOrBlockTask+0x52>
  56308. 8017608: 2300 movs r3, #0
  56309. 801760a: 603b str r3, [r7, #0]
  56310. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  56311. 801760c: 4b0f ldr r3, [pc, #60] @ (801764c <prvProcessTimerOrBlockTask+0x94>)
  56312. 801760e: 6818 ldr r0, [r3, #0]
  56313. 8017610: 687a ldr r2, [r7, #4]
  56314. 8017612: 68fb ldr r3, [r7, #12]
  56315. 8017614: 1ad3 subs r3, r2, r3
  56316. 8017616: 683a ldr r2, [r7, #0]
  56317. 8017618: 4619 mov r1, r3
  56318. 801761a: f7fe f995 bl 8015948 <vQueueWaitForMessageRestricted>
  56319. if( xTaskResumeAll() == pdFALSE )
  56320. 801761e: f7fe fdf7 bl 8016210 <xTaskResumeAll>
  56321. 8017622: 4603 mov r3, r0
  56322. 8017624: 2b00 cmp r3, #0
  56323. 8017626: d10a bne.n 801763e <prvProcessTimerOrBlockTask+0x86>
  56324. portYIELD_WITHIN_API();
  56325. 8017628: 4b09 ldr r3, [pc, #36] @ (8017650 <prvProcessTimerOrBlockTask+0x98>)
  56326. 801762a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56327. 801762e: 601a str r2, [r3, #0]
  56328. 8017630: f3bf 8f4f dsb sy
  56329. 8017634: f3bf 8f6f isb sy
  56330. }
  56331. 8017638: e001 b.n 801763e <prvProcessTimerOrBlockTask+0x86>
  56332. ( void ) xTaskResumeAll();
  56333. 801763a: f7fe fde9 bl 8016210 <xTaskResumeAll>
  56334. }
  56335. 801763e: bf00 nop
  56336. 8017640: 3710 adds r7, #16
  56337. 8017642: 46bd mov sp, r7
  56338. 8017644: bd80 pop {r7, pc}
  56339. 8017646: bf00 nop
  56340. 8017648: 24002f24 .word 0x24002f24
  56341. 801764c: 24002f28 .word 0x24002f28
  56342. 8017650: e000ed04 .word 0xe000ed04
  56343. 08017654 <prvGetNextExpireTime>:
  56344. /*-----------------------------------------------------------*/
  56345. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  56346. {
  56347. 8017654: b480 push {r7}
  56348. 8017656: b085 sub sp, #20
  56349. 8017658: af00 add r7, sp, #0
  56350. 801765a: 6078 str r0, [r7, #4]
  56351. the timer with the nearest expiry time will expire. If there are no
  56352. active timers then just set the next expire time to 0. That will cause
  56353. this task to unblock when the tick count overflows, at which point the
  56354. timer lists will be switched and the next expiry time can be
  56355. re-assessed. */
  56356. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  56357. 801765c: 4b0e ldr r3, [pc, #56] @ (8017698 <prvGetNextExpireTime+0x44>)
  56358. 801765e: 681b ldr r3, [r3, #0]
  56359. 8017660: 681b ldr r3, [r3, #0]
  56360. 8017662: 2b00 cmp r3, #0
  56361. 8017664: d101 bne.n 801766a <prvGetNextExpireTime+0x16>
  56362. 8017666: 2201 movs r2, #1
  56363. 8017668: e000 b.n 801766c <prvGetNextExpireTime+0x18>
  56364. 801766a: 2200 movs r2, #0
  56365. 801766c: 687b ldr r3, [r7, #4]
  56366. 801766e: 601a str r2, [r3, #0]
  56367. if( *pxListWasEmpty == pdFALSE )
  56368. 8017670: 687b ldr r3, [r7, #4]
  56369. 8017672: 681b ldr r3, [r3, #0]
  56370. 8017674: 2b00 cmp r3, #0
  56371. 8017676: d105 bne.n 8017684 <prvGetNextExpireTime+0x30>
  56372. {
  56373. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56374. 8017678: 4b07 ldr r3, [pc, #28] @ (8017698 <prvGetNextExpireTime+0x44>)
  56375. 801767a: 681b ldr r3, [r3, #0]
  56376. 801767c: 68db ldr r3, [r3, #12]
  56377. 801767e: 681b ldr r3, [r3, #0]
  56378. 8017680: 60fb str r3, [r7, #12]
  56379. 8017682: e001 b.n 8017688 <prvGetNextExpireTime+0x34>
  56380. }
  56381. else
  56382. {
  56383. /* Ensure the task unblocks when the tick count rolls over. */
  56384. xNextExpireTime = ( TickType_t ) 0U;
  56385. 8017684: 2300 movs r3, #0
  56386. 8017686: 60fb str r3, [r7, #12]
  56387. }
  56388. return xNextExpireTime;
  56389. 8017688: 68fb ldr r3, [r7, #12]
  56390. }
  56391. 801768a: 4618 mov r0, r3
  56392. 801768c: 3714 adds r7, #20
  56393. 801768e: 46bd mov sp, r7
  56394. 8017690: f85d 7b04 ldr.w r7, [sp], #4
  56395. 8017694: 4770 bx lr
  56396. 8017696: bf00 nop
  56397. 8017698: 24002f20 .word 0x24002f20
  56398. 0801769c <prvSampleTimeNow>:
  56399. /*-----------------------------------------------------------*/
  56400. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  56401. {
  56402. 801769c: b580 push {r7, lr}
  56403. 801769e: b084 sub sp, #16
  56404. 80176a0: af00 add r7, sp, #0
  56405. 80176a2: 6078 str r0, [r7, #4]
  56406. TickType_t xTimeNow;
  56407. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  56408. xTimeNow = xTaskGetTickCount();
  56409. 80176a4: f7fe fe52 bl 801634c <xTaskGetTickCount>
  56410. 80176a8: 60f8 str r0, [r7, #12]
  56411. if( xTimeNow < xLastTime )
  56412. 80176aa: 4b0b ldr r3, [pc, #44] @ (80176d8 <prvSampleTimeNow+0x3c>)
  56413. 80176ac: 681b ldr r3, [r3, #0]
  56414. 80176ae: 68fa ldr r2, [r7, #12]
  56415. 80176b0: 429a cmp r2, r3
  56416. 80176b2: d205 bcs.n 80176c0 <prvSampleTimeNow+0x24>
  56417. {
  56418. prvSwitchTimerLists();
  56419. 80176b4: f000 f93a bl 801792c <prvSwitchTimerLists>
  56420. *pxTimerListsWereSwitched = pdTRUE;
  56421. 80176b8: 687b ldr r3, [r7, #4]
  56422. 80176ba: 2201 movs r2, #1
  56423. 80176bc: 601a str r2, [r3, #0]
  56424. 80176be: e002 b.n 80176c6 <prvSampleTimeNow+0x2a>
  56425. }
  56426. else
  56427. {
  56428. *pxTimerListsWereSwitched = pdFALSE;
  56429. 80176c0: 687b ldr r3, [r7, #4]
  56430. 80176c2: 2200 movs r2, #0
  56431. 80176c4: 601a str r2, [r3, #0]
  56432. }
  56433. xLastTime = xTimeNow;
  56434. 80176c6: 4a04 ldr r2, [pc, #16] @ (80176d8 <prvSampleTimeNow+0x3c>)
  56435. 80176c8: 68fb ldr r3, [r7, #12]
  56436. 80176ca: 6013 str r3, [r2, #0]
  56437. return xTimeNow;
  56438. 80176cc: 68fb ldr r3, [r7, #12]
  56439. }
  56440. 80176ce: 4618 mov r0, r3
  56441. 80176d0: 3710 adds r7, #16
  56442. 80176d2: 46bd mov sp, r7
  56443. 80176d4: bd80 pop {r7, pc}
  56444. 80176d6: bf00 nop
  56445. 80176d8: 24002f30 .word 0x24002f30
  56446. 080176dc <prvInsertTimerInActiveList>:
  56447. /*-----------------------------------------------------------*/
  56448. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  56449. {
  56450. 80176dc: b580 push {r7, lr}
  56451. 80176de: b086 sub sp, #24
  56452. 80176e0: af00 add r7, sp, #0
  56453. 80176e2: 60f8 str r0, [r7, #12]
  56454. 80176e4: 60b9 str r1, [r7, #8]
  56455. 80176e6: 607a str r2, [r7, #4]
  56456. 80176e8: 603b str r3, [r7, #0]
  56457. BaseType_t xProcessTimerNow = pdFALSE;
  56458. 80176ea: 2300 movs r3, #0
  56459. 80176ec: 617b str r3, [r7, #20]
  56460. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  56461. 80176ee: 68fb ldr r3, [r7, #12]
  56462. 80176f0: 68ba ldr r2, [r7, #8]
  56463. 80176f2: 605a str r2, [r3, #4]
  56464. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56465. 80176f4: 68fb ldr r3, [r7, #12]
  56466. 80176f6: 68fa ldr r2, [r7, #12]
  56467. 80176f8: 611a str r2, [r3, #16]
  56468. if( xNextExpiryTime <= xTimeNow )
  56469. 80176fa: 68ba ldr r2, [r7, #8]
  56470. 80176fc: 687b ldr r3, [r7, #4]
  56471. 80176fe: 429a cmp r2, r3
  56472. 8017700: d812 bhi.n 8017728 <prvInsertTimerInActiveList+0x4c>
  56473. {
  56474. /* Has the expiry time elapsed between the command to start/reset a
  56475. timer was issued, and the time the command was processed? */
  56476. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  56477. 8017702: 687a ldr r2, [r7, #4]
  56478. 8017704: 683b ldr r3, [r7, #0]
  56479. 8017706: 1ad2 subs r2, r2, r3
  56480. 8017708: 68fb ldr r3, [r7, #12]
  56481. 801770a: 699b ldr r3, [r3, #24]
  56482. 801770c: 429a cmp r2, r3
  56483. 801770e: d302 bcc.n 8017716 <prvInsertTimerInActiveList+0x3a>
  56484. {
  56485. /* The time between a command being issued and the command being
  56486. processed actually exceeds the timers period. */
  56487. xProcessTimerNow = pdTRUE;
  56488. 8017710: 2301 movs r3, #1
  56489. 8017712: 617b str r3, [r7, #20]
  56490. 8017714: e01b b.n 801774e <prvInsertTimerInActiveList+0x72>
  56491. }
  56492. else
  56493. {
  56494. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  56495. 8017716: 4b10 ldr r3, [pc, #64] @ (8017758 <prvInsertTimerInActiveList+0x7c>)
  56496. 8017718: 681a ldr r2, [r3, #0]
  56497. 801771a: 68fb ldr r3, [r7, #12]
  56498. 801771c: 3304 adds r3, #4
  56499. 801771e: 4619 mov r1, r3
  56500. 8017720: 4610 mov r0, r2
  56501. 8017722: f7fd f94a bl 80149ba <vListInsert>
  56502. 8017726: e012 b.n 801774e <prvInsertTimerInActiveList+0x72>
  56503. }
  56504. }
  56505. else
  56506. {
  56507. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  56508. 8017728: 687a ldr r2, [r7, #4]
  56509. 801772a: 683b ldr r3, [r7, #0]
  56510. 801772c: 429a cmp r2, r3
  56511. 801772e: d206 bcs.n 801773e <prvInsertTimerInActiveList+0x62>
  56512. 8017730: 68ba ldr r2, [r7, #8]
  56513. 8017732: 683b ldr r3, [r7, #0]
  56514. 8017734: 429a cmp r2, r3
  56515. 8017736: d302 bcc.n 801773e <prvInsertTimerInActiveList+0x62>
  56516. {
  56517. /* If, since the command was issued, the tick count has overflowed
  56518. but the expiry time has not, then the timer must have already passed
  56519. its expiry time and should be processed immediately. */
  56520. xProcessTimerNow = pdTRUE;
  56521. 8017738: 2301 movs r3, #1
  56522. 801773a: 617b str r3, [r7, #20]
  56523. 801773c: e007 b.n 801774e <prvInsertTimerInActiveList+0x72>
  56524. }
  56525. else
  56526. {
  56527. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56528. 801773e: 4b07 ldr r3, [pc, #28] @ (801775c <prvInsertTimerInActiveList+0x80>)
  56529. 8017740: 681a ldr r2, [r3, #0]
  56530. 8017742: 68fb ldr r3, [r7, #12]
  56531. 8017744: 3304 adds r3, #4
  56532. 8017746: 4619 mov r1, r3
  56533. 8017748: 4610 mov r0, r2
  56534. 801774a: f7fd f936 bl 80149ba <vListInsert>
  56535. }
  56536. }
  56537. return xProcessTimerNow;
  56538. 801774e: 697b ldr r3, [r7, #20]
  56539. }
  56540. 8017750: 4618 mov r0, r3
  56541. 8017752: 3718 adds r7, #24
  56542. 8017754: 46bd mov sp, r7
  56543. 8017756: bd80 pop {r7, pc}
  56544. 8017758: 24002f24 .word 0x24002f24
  56545. 801775c: 24002f20 .word 0x24002f20
  56546. 08017760 <prvProcessReceivedCommands>:
  56547. /*-----------------------------------------------------------*/
  56548. static void prvProcessReceivedCommands( void )
  56549. {
  56550. 8017760: b580 push {r7, lr}
  56551. 8017762: b08e sub sp, #56 @ 0x38
  56552. 8017764: af02 add r7, sp, #8
  56553. DaemonTaskMessage_t xMessage;
  56554. Timer_t *pxTimer;
  56555. BaseType_t xTimerListsWereSwitched, xResult;
  56556. TickType_t xTimeNow;
  56557. 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. */
  56558. 8017766: e0ce b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56559. {
  56560. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  56561. {
  56562. /* Negative commands are pended function calls rather than timer
  56563. commands. */
  56564. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  56565. 8017768: 687b ldr r3, [r7, #4]
  56566. 801776a: 2b00 cmp r3, #0
  56567. 801776c: da19 bge.n 80177a2 <prvProcessReceivedCommands+0x42>
  56568. {
  56569. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  56570. 801776e: 1d3b adds r3, r7, #4
  56571. 8017770: 3304 adds r3, #4
  56572. 8017772: 62fb str r3, [r7, #44] @ 0x2c
  56573. /* The timer uses the xCallbackParameters member to request a
  56574. callback be executed. Check the callback is not NULL. */
  56575. configASSERT( pxCallback );
  56576. 8017774: 6afb ldr r3, [r7, #44] @ 0x2c
  56577. 8017776: 2b00 cmp r3, #0
  56578. 8017778: d10b bne.n 8017792 <prvProcessReceivedCommands+0x32>
  56579. __asm volatile
  56580. 801777a: f04f 0350 mov.w r3, #80 @ 0x50
  56581. 801777e: f383 8811 msr BASEPRI, r3
  56582. 8017782: f3bf 8f6f isb sy
  56583. 8017786: f3bf 8f4f dsb sy
  56584. 801778a: 61fb str r3, [r7, #28]
  56585. }
  56586. 801778c: bf00 nop
  56587. 801778e: bf00 nop
  56588. 8017790: e7fd b.n 801778e <prvProcessReceivedCommands+0x2e>
  56589. /* Call the function. */
  56590. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  56591. 8017792: 6afb ldr r3, [r7, #44] @ 0x2c
  56592. 8017794: 681b ldr r3, [r3, #0]
  56593. 8017796: 6afa ldr r2, [r7, #44] @ 0x2c
  56594. 8017798: 6850 ldr r0, [r2, #4]
  56595. 801779a: 6afa ldr r2, [r7, #44] @ 0x2c
  56596. 801779c: 6892 ldr r2, [r2, #8]
  56597. 801779e: 4611 mov r1, r2
  56598. 80177a0: 4798 blx r3
  56599. }
  56600. #endif /* INCLUDE_xTimerPendFunctionCall */
  56601. /* Commands that are positive are timer commands rather than pended
  56602. function calls. */
  56603. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  56604. 80177a2: 687b ldr r3, [r7, #4]
  56605. 80177a4: 2b00 cmp r3, #0
  56606. 80177a6: f2c0 80ae blt.w 8017906 <prvProcessReceivedCommands+0x1a6>
  56607. {
  56608. /* The messages uses the xTimerParameters member to work on a
  56609. software timer. */
  56610. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  56611. 80177aa: 68fb ldr r3, [r7, #12]
  56612. 80177ac: 62bb str r3, [r7, #40] @ 0x28
  56613. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  56614. 80177ae: 6abb ldr r3, [r7, #40] @ 0x28
  56615. 80177b0: 695b ldr r3, [r3, #20]
  56616. 80177b2: 2b00 cmp r3, #0
  56617. 80177b4: d004 beq.n 80177c0 <prvProcessReceivedCommands+0x60>
  56618. {
  56619. /* The timer is in a list, remove it. */
  56620. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56621. 80177b6: 6abb ldr r3, [r7, #40] @ 0x28
  56622. 80177b8: 3304 adds r3, #4
  56623. 80177ba: 4618 mov r0, r3
  56624. 80177bc: f7fd f936 bl 8014a2c <uxListRemove>
  56625. it must be present in the function call. prvSampleTimeNow() must be
  56626. called after the message is received from xTimerQueue so there is no
  56627. possibility of a higher priority task adding a message to the message
  56628. queue with a time that is ahead of the timer daemon task (because it
  56629. pre-empted the timer daemon task after the xTimeNow value was set). */
  56630. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56631. 80177c0: 463b mov r3, r7
  56632. 80177c2: 4618 mov r0, r3
  56633. 80177c4: f7ff ff6a bl 801769c <prvSampleTimeNow>
  56634. 80177c8: 6278 str r0, [r7, #36] @ 0x24
  56635. switch( xMessage.xMessageID )
  56636. 80177ca: 687b ldr r3, [r7, #4]
  56637. 80177cc: 2b09 cmp r3, #9
  56638. 80177ce: f200 8097 bhi.w 8017900 <prvProcessReceivedCommands+0x1a0>
  56639. 80177d2: a201 add r2, pc, #4 @ (adr r2, 80177d8 <prvProcessReceivedCommands+0x78>)
  56640. 80177d4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  56641. 80177d8: 08017801 .word 0x08017801
  56642. 80177dc: 08017801 .word 0x08017801
  56643. 80177e0: 08017801 .word 0x08017801
  56644. 80177e4: 08017877 .word 0x08017877
  56645. 80177e8: 0801788b .word 0x0801788b
  56646. 80177ec: 080178d7 .word 0x080178d7
  56647. 80177f0: 08017801 .word 0x08017801
  56648. 80177f4: 08017801 .word 0x08017801
  56649. 80177f8: 08017877 .word 0x08017877
  56650. 80177fc: 0801788b .word 0x0801788b
  56651. case tmrCOMMAND_START_FROM_ISR :
  56652. case tmrCOMMAND_RESET :
  56653. case tmrCOMMAND_RESET_FROM_ISR :
  56654. case tmrCOMMAND_START_DONT_TRACE :
  56655. /* Start or restart a timer. */
  56656. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56657. 8017800: 6abb ldr r3, [r7, #40] @ 0x28
  56658. 8017802: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56659. 8017806: f043 0301 orr.w r3, r3, #1
  56660. 801780a: b2da uxtb r2, r3
  56661. 801780c: 6abb ldr r3, [r7, #40] @ 0x28
  56662. 801780e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56663. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  56664. 8017812: 68ba ldr r2, [r7, #8]
  56665. 8017814: 6abb ldr r3, [r7, #40] @ 0x28
  56666. 8017816: 699b ldr r3, [r3, #24]
  56667. 8017818: 18d1 adds r1, r2, r3
  56668. 801781a: 68bb ldr r3, [r7, #8]
  56669. 801781c: 6a7a ldr r2, [r7, #36] @ 0x24
  56670. 801781e: 6ab8 ldr r0, [r7, #40] @ 0x28
  56671. 8017820: f7ff ff5c bl 80176dc <prvInsertTimerInActiveList>
  56672. 8017824: 4603 mov r3, r0
  56673. 8017826: 2b00 cmp r3, #0
  56674. 8017828: d06c beq.n 8017904 <prvProcessReceivedCommands+0x1a4>
  56675. {
  56676. /* The timer expired before it was added to the active
  56677. timer list. Process it now. */
  56678. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56679. 801782a: 6abb ldr r3, [r7, #40] @ 0x28
  56680. 801782c: 6a1b ldr r3, [r3, #32]
  56681. 801782e: 6ab8 ldr r0, [r7, #40] @ 0x28
  56682. 8017830: 4798 blx r3
  56683. traceTIMER_EXPIRED( pxTimer );
  56684. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56685. 8017832: 6abb ldr r3, [r7, #40] @ 0x28
  56686. 8017834: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56687. 8017838: f003 0304 and.w r3, r3, #4
  56688. 801783c: 2b00 cmp r3, #0
  56689. 801783e: d061 beq.n 8017904 <prvProcessReceivedCommands+0x1a4>
  56690. {
  56691. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  56692. 8017840: 68ba ldr r2, [r7, #8]
  56693. 8017842: 6abb ldr r3, [r7, #40] @ 0x28
  56694. 8017844: 699b ldr r3, [r3, #24]
  56695. 8017846: 441a add r2, r3
  56696. 8017848: 2300 movs r3, #0
  56697. 801784a: 9300 str r3, [sp, #0]
  56698. 801784c: 2300 movs r3, #0
  56699. 801784e: 2100 movs r1, #0
  56700. 8017850: 6ab8 ldr r0, [r7, #40] @ 0x28
  56701. 8017852: f7ff fe01 bl 8017458 <xTimerGenericCommand>
  56702. 8017856: 6238 str r0, [r7, #32]
  56703. configASSERT( xResult );
  56704. 8017858: 6a3b ldr r3, [r7, #32]
  56705. 801785a: 2b00 cmp r3, #0
  56706. 801785c: d152 bne.n 8017904 <prvProcessReceivedCommands+0x1a4>
  56707. __asm volatile
  56708. 801785e: f04f 0350 mov.w r3, #80 @ 0x50
  56709. 8017862: f383 8811 msr BASEPRI, r3
  56710. 8017866: f3bf 8f6f isb sy
  56711. 801786a: f3bf 8f4f dsb sy
  56712. 801786e: 61bb str r3, [r7, #24]
  56713. }
  56714. 8017870: bf00 nop
  56715. 8017872: bf00 nop
  56716. 8017874: e7fd b.n 8017872 <prvProcessReceivedCommands+0x112>
  56717. break;
  56718. case tmrCOMMAND_STOP :
  56719. case tmrCOMMAND_STOP_FROM_ISR :
  56720. /* The timer has already been removed from the active list. */
  56721. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56722. 8017876: 6abb ldr r3, [r7, #40] @ 0x28
  56723. 8017878: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56724. 801787c: f023 0301 bic.w r3, r3, #1
  56725. 8017880: b2da uxtb r2, r3
  56726. 8017882: 6abb ldr r3, [r7, #40] @ 0x28
  56727. 8017884: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56728. break;
  56729. 8017888: e03d b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56730. case tmrCOMMAND_CHANGE_PERIOD :
  56731. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  56732. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56733. 801788a: 6abb ldr r3, [r7, #40] @ 0x28
  56734. 801788c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56735. 8017890: f043 0301 orr.w r3, r3, #1
  56736. 8017894: b2da uxtb r2, r3
  56737. 8017896: 6abb ldr r3, [r7, #40] @ 0x28
  56738. 8017898: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56739. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  56740. 801789c: 68ba ldr r2, [r7, #8]
  56741. 801789e: 6abb ldr r3, [r7, #40] @ 0x28
  56742. 80178a0: 619a str r2, [r3, #24]
  56743. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  56744. 80178a2: 6abb ldr r3, [r7, #40] @ 0x28
  56745. 80178a4: 699b ldr r3, [r3, #24]
  56746. 80178a6: 2b00 cmp r3, #0
  56747. 80178a8: d10b bne.n 80178c2 <prvProcessReceivedCommands+0x162>
  56748. __asm volatile
  56749. 80178aa: f04f 0350 mov.w r3, #80 @ 0x50
  56750. 80178ae: f383 8811 msr BASEPRI, r3
  56751. 80178b2: f3bf 8f6f isb sy
  56752. 80178b6: f3bf 8f4f dsb sy
  56753. 80178ba: 617b str r3, [r7, #20]
  56754. }
  56755. 80178bc: bf00 nop
  56756. 80178be: bf00 nop
  56757. 80178c0: e7fd b.n 80178be <prvProcessReceivedCommands+0x15e>
  56758. be longer or shorter than the old one. The command time is
  56759. therefore set to the current time, and as the period cannot
  56760. be zero the next expiry time can only be in the future,
  56761. meaning (unlike for the xTimerStart() case above) there is
  56762. no fail case that needs to be handled here. */
  56763. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  56764. 80178c2: 6abb ldr r3, [r7, #40] @ 0x28
  56765. 80178c4: 699a ldr r2, [r3, #24]
  56766. 80178c6: 6a7b ldr r3, [r7, #36] @ 0x24
  56767. 80178c8: 18d1 adds r1, r2, r3
  56768. 80178ca: 6a7b ldr r3, [r7, #36] @ 0x24
  56769. 80178cc: 6a7a ldr r2, [r7, #36] @ 0x24
  56770. 80178ce: 6ab8 ldr r0, [r7, #40] @ 0x28
  56771. 80178d0: f7ff ff04 bl 80176dc <prvInsertTimerInActiveList>
  56772. break;
  56773. 80178d4: e017 b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56774. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  56775. {
  56776. /* The timer has already been removed from the active list,
  56777. just free up the memory if the memory was dynamically
  56778. allocated. */
  56779. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  56780. 80178d6: 6abb ldr r3, [r7, #40] @ 0x28
  56781. 80178d8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56782. 80178dc: f003 0302 and.w r3, r3, #2
  56783. 80178e0: 2b00 cmp r3, #0
  56784. 80178e2: d103 bne.n 80178ec <prvProcessReceivedCommands+0x18c>
  56785. {
  56786. vPortFree( pxTimer );
  56787. 80178e4: 6ab8 ldr r0, [r7, #40] @ 0x28
  56788. 80178e6: f000 fc37 bl 8018158 <vPortFree>
  56789. no need to free the memory - just mark the timer as
  56790. "not active". */
  56791. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56792. }
  56793. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  56794. break;
  56795. 80178ea: e00c b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56796. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56797. 80178ec: 6abb ldr r3, [r7, #40] @ 0x28
  56798. 80178ee: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56799. 80178f2: f023 0301 bic.w r3, r3, #1
  56800. 80178f6: b2da uxtb r2, r3
  56801. 80178f8: 6abb ldr r3, [r7, #40] @ 0x28
  56802. 80178fa: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56803. break;
  56804. 80178fe: e002 b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56805. default :
  56806. /* Don't expect to get here. */
  56807. break;
  56808. 8017900: bf00 nop
  56809. 8017902: e000 b.n 8017906 <prvProcessReceivedCommands+0x1a6>
  56810. break;
  56811. 8017904: bf00 nop
  56812. 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. */
  56813. 8017906: 4b08 ldr r3, [pc, #32] @ (8017928 <prvProcessReceivedCommands+0x1c8>)
  56814. 8017908: 681b ldr r3, [r3, #0]
  56815. 801790a: 1d39 adds r1, r7, #4
  56816. 801790c: 2200 movs r2, #0
  56817. 801790e: 4618 mov r0, r3
  56818. 8017910: f7fd fc54 bl 80151bc <xQueueReceive>
  56819. 8017914: 4603 mov r3, r0
  56820. 8017916: 2b00 cmp r3, #0
  56821. 8017918: f47f af26 bne.w 8017768 <prvProcessReceivedCommands+0x8>
  56822. }
  56823. }
  56824. }
  56825. }
  56826. 801791c: bf00 nop
  56827. 801791e: bf00 nop
  56828. 8017920: 3730 adds r7, #48 @ 0x30
  56829. 8017922: 46bd mov sp, r7
  56830. 8017924: bd80 pop {r7, pc}
  56831. 8017926: bf00 nop
  56832. 8017928: 24002f28 .word 0x24002f28
  56833. 0801792c <prvSwitchTimerLists>:
  56834. /*-----------------------------------------------------------*/
  56835. static void prvSwitchTimerLists( void )
  56836. {
  56837. 801792c: b580 push {r7, lr}
  56838. 801792e: b088 sub sp, #32
  56839. 8017930: af02 add r7, sp, #8
  56840. /* The tick count has overflowed. The timer lists must be switched.
  56841. If there are any timers still referenced from the current timer list
  56842. then they must have expired and should be processed before the lists
  56843. are switched. */
  56844. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56845. 8017932: e049 b.n 80179c8 <prvSwitchTimerLists+0x9c>
  56846. {
  56847. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56848. 8017934: 4b2e ldr r3, [pc, #184] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56849. 8017936: 681b ldr r3, [r3, #0]
  56850. 8017938: 68db ldr r3, [r3, #12]
  56851. 801793a: 681b ldr r3, [r3, #0]
  56852. 801793c: 613b str r3, [r7, #16]
  56853. /* Remove the timer from the list. */
  56854. 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. */
  56855. 801793e: 4b2c ldr r3, [pc, #176] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56856. 8017940: 681b ldr r3, [r3, #0]
  56857. 8017942: 68db ldr r3, [r3, #12]
  56858. 8017944: 68db ldr r3, [r3, #12]
  56859. 8017946: 60fb str r3, [r7, #12]
  56860. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56861. 8017948: 68fb ldr r3, [r7, #12]
  56862. 801794a: 3304 adds r3, #4
  56863. 801794c: 4618 mov r0, r3
  56864. 801794e: f7fd f86d bl 8014a2c <uxListRemove>
  56865. traceTIMER_EXPIRED( pxTimer );
  56866. /* Execute its callback, then send a command to restart the timer if
  56867. it is an auto-reload timer. It cannot be restarted here as the lists
  56868. have not yet been switched. */
  56869. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56870. 8017952: 68fb ldr r3, [r7, #12]
  56871. 8017954: 6a1b ldr r3, [r3, #32]
  56872. 8017956: 68f8 ldr r0, [r7, #12]
  56873. 8017958: 4798 blx r3
  56874. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56875. 801795a: 68fb ldr r3, [r7, #12]
  56876. 801795c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56877. 8017960: f003 0304 and.w r3, r3, #4
  56878. 8017964: 2b00 cmp r3, #0
  56879. 8017966: d02f beq.n 80179c8 <prvSwitchTimerLists+0x9c>
  56880. the timer going into the same timer list then it has already expired
  56881. and the timer should be re-inserted into the current list so it is
  56882. processed again within this loop. Otherwise a command should be sent
  56883. to restart the timer to ensure it is only inserted into a list after
  56884. the lists have been swapped. */
  56885. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  56886. 8017968: 68fb ldr r3, [r7, #12]
  56887. 801796a: 699b ldr r3, [r3, #24]
  56888. 801796c: 693a ldr r2, [r7, #16]
  56889. 801796e: 4413 add r3, r2
  56890. 8017970: 60bb str r3, [r7, #8]
  56891. if( xReloadTime > xNextExpireTime )
  56892. 8017972: 68ba ldr r2, [r7, #8]
  56893. 8017974: 693b ldr r3, [r7, #16]
  56894. 8017976: 429a cmp r2, r3
  56895. 8017978: d90e bls.n 8017998 <prvSwitchTimerLists+0x6c>
  56896. {
  56897. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  56898. 801797a: 68fb ldr r3, [r7, #12]
  56899. 801797c: 68ba ldr r2, [r7, #8]
  56900. 801797e: 605a str r2, [r3, #4]
  56901. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56902. 8017980: 68fb ldr r3, [r7, #12]
  56903. 8017982: 68fa ldr r2, [r7, #12]
  56904. 8017984: 611a str r2, [r3, #16]
  56905. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56906. 8017986: 4b1a ldr r3, [pc, #104] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56907. 8017988: 681a ldr r2, [r3, #0]
  56908. 801798a: 68fb ldr r3, [r7, #12]
  56909. 801798c: 3304 adds r3, #4
  56910. 801798e: 4619 mov r1, r3
  56911. 8017990: 4610 mov r0, r2
  56912. 8017992: f7fd f812 bl 80149ba <vListInsert>
  56913. 8017996: e017 b.n 80179c8 <prvSwitchTimerLists+0x9c>
  56914. }
  56915. else
  56916. {
  56917. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56918. 8017998: 2300 movs r3, #0
  56919. 801799a: 9300 str r3, [sp, #0]
  56920. 801799c: 2300 movs r3, #0
  56921. 801799e: 693a ldr r2, [r7, #16]
  56922. 80179a0: 2100 movs r1, #0
  56923. 80179a2: 68f8 ldr r0, [r7, #12]
  56924. 80179a4: f7ff fd58 bl 8017458 <xTimerGenericCommand>
  56925. 80179a8: 6078 str r0, [r7, #4]
  56926. configASSERT( xResult );
  56927. 80179aa: 687b ldr r3, [r7, #4]
  56928. 80179ac: 2b00 cmp r3, #0
  56929. 80179ae: d10b bne.n 80179c8 <prvSwitchTimerLists+0x9c>
  56930. __asm volatile
  56931. 80179b0: f04f 0350 mov.w r3, #80 @ 0x50
  56932. 80179b4: f383 8811 msr BASEPRI, r3
  56933. 80179b8: f3bf 8f6f isb sy
  56934. 80179bc: f3bf 8f4f dsb sy
  56935. 80179c0: 603b str r3, [r7, #0]
  56936. }
  56937. 80179c2: bf00 nop
  56938. 80179c4: bf00 nop
  56939. 80179c6: e7fd b.n 80179c4 <prvSwitchTimerLists+0x98>
  56940. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56941. 80179c8: 4b09 ldr r3, [pc, #36] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56942. 80179ca: 681b ldr r3, [r3, #0]
  56943. 80179cc: 681b ldr r3, [r3, #0]
  56944. 80179ce: 2b00 cmp r3, #0
  56945. 80179d0: d1b0 bne.n 8017934 <prvSwitchTimerLists+0x8>
  56946. {
  56947. mtCOVERAGE_TEST_MARKER();
  56948. }
  56949. }
  56950. pxTemp = pxCurrentTimerList;
  56951. 80179d2: 4b07 ldr r3, [pc, #28] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56952. 80179d4: 681b ldr r3, [r3, #0]
  56953. 80179d6: 617b str r3, [r7, #20]
  56954. pxCurrentTimerList = pxOverflowTimerList;
  56955. 80179d8: 4b06 ldr r3, [pc, #24] @ (80179f4 <prvSwitchTimerLists+0xc8>)
  56956. 80179da: 681b ldr r3, [r3, #0]
  56957. 80179dc: 4a04 ldr r2, [pc, #16] @ (80179f0 <prvSwitchTimerLists+0xc4>)
  56958. 80179de: 6013 str r3, [r2, #0]
  56959. pxOverflowTimerList = pxTemp;
  56960. 80179e0: 4a04 ldr r2, [pc, #16] @ (80179f4 <prvSwitchTimerLists+0xc8>)
  56961. 80179e2: 697b ldr r3, [r7, #20]
  56962. 80179e4: 6013 str r3, [r2, #0]
  56963. }
  56964. 80179e6: bf00 nop
  56965. 80179e8: 3718 adds r7, #24
  56966. 80179ea: 46bd mov sp, r7
  56967. 80179ec: bd80 pop {r7, pc}
  56968. 80179ee: bf00 nop
  56969. 80179f0: 24002f20 .word 0x24002f20
  56970. 80179f4: 24002f24 .word 0x24002f24
  56971. 080179f8 <prvCheckForValidListAndQueue>:
  56972. /*-----------------------------------------------------------*/
  56973. static void prvCheckForValidListAndQueue( void )
  56974. {
  56975. 80179f8: b580 push {r7, lr}
  56976. 80179fa: b082 sub sp, #8
  56977. 80179fc: af02 add r7, sp, #8
  56978. /* Check that the list from which active timers are referenced, and the
  56979. queue used to communicate with the timer service, have been
  56980. initialised. */
  56981. taskENTER_CRITICAL();
  56982. 80179fe: f000 f9bb bl 8017d78 <vPortEnterCritical>
  56983. {
  56984. if( xTimerQueue == NULL )
  56985. 8017a02: 4b15 ldr r3, [pc, #84] @ (8017a58 <prvCheckForValidListAndQueue+0x60>)
  56986. 8017a04: 681b ldr r3, [r3, #0]
  56987. 8017a06: 2b00 cmp r3, #0
  56988. 8017a08: d120 bne.n 8017a4c <prvCheckForValidListAndQueue+0x54>
  56989. {
  56990. vListInitialise( &xActiveTimerList1 );
  56991. 8017a0a: 4814 ldr r0, [pc, #80] @ (8017a5c <prvCheckForValidListAndQueue+0x64>)
  56992. 8017a0c: f7fc ff84 bl 8014918 <vListInitialise>
  56993. vListInitialise( &xActiveTimerList2 );
  56994. 8017a10: 4813 ldr r0, [pc, #76] @ (8017a60 <prvCheckForValidListAndQueue+0x68>)
  56995. 8017a12: f7fc ff81 bl 8014918 <vListInitialise>
  56996. pxCurrentTimerList = &xActiveTimerList1;
  56997. 8017a16: 4b13 ldr r3, [pc, #76] @ (8017a64 <prvCheckForValidListAndQueue+0x6c>)
  56998. 8017a18: 4a10 ldr r2, [pc, #64] @ (8017a5c <prvCheckForValidListAndQueue+0x64>)
  56999. 8017a1a: 601a str r2, [r3, #0]
  57000. pxOverflowTimerList = &xActiveTimerList2;
  57001. 8017a1c: 4b12 ldr r3, [pc, #72] @ (8017a68 <prvCheckForValidListAndQueue+0x70>)
  57002. 8017a1e: 4a10 ldr r2, [pc, #64] @ (8017a60 <prvCheckForValidListAndQueue+0x68>)
  57003. 8017a20: 601a str r2, [r3, #0]
  57004. /* The timer queue is allocated statically in case
  57005. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  57006. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  57007. 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. */
  57008. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  57009. 8017a22: 2300 movs r3, #0
  57010. 8017a24: 9300 str r3, [sp, #0]
  57011. 8017a26: 4b11 ldr r3, [pc, #68] @ (8017a6c <prvCheckForValidListAndQueue+0x74>)
  57012. 8017a28: 4a11 ldr r2, [pc, #68] @ (8017a70 <prvCheckForValidListAndQueue+0x78>)
  57013. 8017a2a: 2110 movs r1, #16
  57014. 8017a2c: 200a movs r0, #10
  57015. 8017a2e: f7fd f891 bl 8014b54 <xQueueGenericCreateStatic>
  57016. 8017a32: 4603 mov r3, r0
  57017. 8017a34: 4a08 ldr r2, [pc, #32] @ (8017a58 <prvCheckForValidListAndQueue+0x60>)
  57018. 8017a36: 6013 str r3, [r2, #0]
  57019. }
  57020. #endif
  57021. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  57022. {
  57023. if( xTimerQueue != NULL )
  57024. 8017a38: 4b07 ldr r3, [pc, #28] @ (8017a58 <prvCheckForValidListAndQueue+0x60>)
  57025. 8017a3a: 681b ldr r3, [r3, #0]
  57026. 8017a3c: 2b00 cmp r3, #0
  57027. 8017a3e: d005 beq.n 8017a4c <prvCheckForValidListAndQueue+0x54>
  57028. {
  57029. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  57030. 8017a40: 4b05 ldr r3, [pc, #20] @ (8017a58 <prvCheckForValidListAndQueue+0x60>)
  57031. 8017a42: 681b ldr r3, [r3, #0]
  57032. 8017a44: 490b ldr r1, [pc, #44] @ (8017a74 <prvCheckForValidListAndQueue+0x7c>)
  57033. 8017a46: 4618 mov r0, r3
  57034. 8017a48: f7fd ff54 bl 80158f4 <vQueueAddToRegistry>
  57035. else
  57036. {
  57037. mtCOVERAGE_TEST_MARKER();
  57038. }
  57039. }
  57040. taskEXIT_CRITICAL();
  57041. 8017a4c: f000 f9c6 bl 8017ddc <vPortExitCritical>
  57042. }
  57043. 8017a50: bf00 nop
  57044. 8017a52: 46bd mov sp, r7
  57045. 8017a54: bd80 pop {r7, pc}
  57046. 8017a56: bf00 nop
  57047. 8017a58: 24002f28 .word 0x24002f28
  57048. 8017a5c: 24002ef8 .word 0x24002ef8
  57049. 8017a60: 24002f0c .word 0x24002f0c
  57050. 8017a64: 24002f20 .word 0x24002f20
  57051. 8017a68: 24002f24 .word 0x24002f24
  57052. 8017a6c: 24002fd4 .word 0x24002fd4
  57053. 8017a70: 24002f34 .word 0x24002f34
  57054. 8017a74: 08018720 .word 0x08018720
  57055. 08017a78 <xTimerIsTimerActive>:
  57056. /*-----------------------------------------------------------*/
  57057. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  57058. {
  57059. 8017a78: b580 push {r7, lr}
  57060. 8017a7a: b086 sub sp, #24
  57061. 8017a7c: af00 add r7, sp, #0
  57062. 8017a7e: 6078 str r0, [r7, #4]
  57063. BaseType_t xReturn;
  57064. Timer_t *pxTimer = xTimer;
  57065. 8017a80: 687b ldr r3, [r7, #4]
  57066. 8017a82: 613b str r3, [r7, #16]
  57067. configASSERT( xTimer );
  57068. 8017a84: 687b ldr r3, [r7, #4]
  57069. 8017a86: 2b00 cmp r3, #0
  57070. 8017a88: d10b bne.n 8017aa2 <xTimerIsTimerActive+0x2a>
  57071. __asm volatile
  57072. 8017a8a: f04f 0350 mov.w r3, #80 @ 0x50
  57073. 8017a8e: f383 8811 msr BASEPRI, r3
  57074. 8017a92: f3bf 8f6f isb sy
  57075. 8017a96: f3bf 8f4f dsb sy
  57076. 8017a9a: 60fb str r3, [r7, #12]
  57077. }
  57078. 8017a9c: bf00 nop
  57079. 8017a9e: bf00 nop
  57080. 8017aa0: e7fd b.n 8017a9e <xTimerIsTimerActive+0x26>
  57081. /* Is the timer in the list of active timers? */
  57082. taskENTER_CRITICAL();
  57083. 8017aa2: f000 f969 bl 8017d78 <vPortEnterCritical>
  57084. {
  57085. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  57086. 8017aa6: 693b ldr r3, [r7, #16]
  57087. 8017aa8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57088. 8017aac: f003 0301 and.w r3, r3, #1
  57089. 8017ab0: 2b00 cmp r3, #0
  57090. 8017ab2: d102 bne.n 8017aba <xTimerIsTimerActive+0x42>
  57091. {
  57092. xReturn = pdFALSE;
  57093. 8017ab4: 2300 movs r3, #0
  57094. 8017ab6: 617b str r3, [r7, #20]
  57095. 8017ab8: e001 b.n 8017abe <xTimerIsTimerActive+0x46>
  57096. }
  57097. else
  57098. {
  57099. xReturn = pdTRUE;
  57100. 8017aba: 2301 movs r3, #1
  57101. 8017abc: 617b str r3, [r7, #20]
  57102. }
  57103. }
  57104. taskEXIT_CRITICAL();
  57105. 8017abe: f000 f98d bl 8017ddc <vPortExitCritical>
  57106. return xReturn;
  57107. 8017ac2: 697b ldr r3, [r7, #20]
  57108. } /*lint !e818 Can't be pointer to const due to the typedef. */
  57109. 8017ac4: 4618 mov r0, r3
  57110. 8017ac6: 3718 adds r7, #24
  57111. 8017ac8: 46bd mov sp, r7
  57112. 8017aca: bd80 pop {r7, pc}
  57113. 08017acc <pvTimerGetTimerID>:
  57114. /*-----------------------------------------------------------*/
  57115. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  57116. {
  57117. 8017acc: b580 push {r7, lr}
  57118. 8017ace: b086 sub sp, #24
  57119. 8017ad0: af00 add r7, sp, #0
  57120. 8017ad2: 6078 str r0, [r7, #4]
  57121. Timer_t * const pxTimer = xTimer;
  57122. 8017ad4: 687b ldr r3, [r7, #4]
  57123. 8017ad6: 617b str r3, [r7, #20]
  57124. void *pvReturn;
  57125. configASSERT( xTimer );
  57126. 8017ad8: 687b ldr r3, [r7, #4]
  57127. 8017ada: 2b00 cmp r3, #0
  57128. 8017adc: d10b bne.n 8017af6 <pvTimerGetTimerID+0x2a>
  57129. __asm volatile
  57130. 8017ade: f04f 0350 mov.w r3, #80 @ 0x50
  57131. 8017ae2: f383 8811 msr BASEPRI, r3
  57132. 8017ae6: f3bf 8f6f isb sy
  57133. 8017aea: f3bf 8f4f dsb sy
  57134. 8017aee: 60fb str r3, [r7, #12]
  57135. }
  57136. 8017af0: bf00 nop
  57137. 8017af2: bf00 nop
  57138. 8017af4: e7fd b.n 8017af2 <pvTimerGetTimerID+0x26>
  57139. taskENTER_CRITICAL();
  57140. 8017af6: f000 f93f bl 8017d78 <vPortEnterCritical>
  57141. {
  57142. pvReturn = pxTimer->pvTimerID;
  57143. 8017afa: 697b ldr r3, [r7, #20]
  57144. 8017afc: 69db ldr r3, [r3, #28]
  57145. 8017afe: 613b str r3, [r7, #16]
  57146. }
  57147. taskEXIT_CRITICAL();
  57148. 8017b00: f000 f96c bl 8017ddc <vPortExitCritical>
  57149. return pvReturn;
  57150. 8017b04: 693b ldr r3, [r7, #16]
  57151. }
  57152. 8017b06: 4618 mov r0, r3
  57153. 8017b08: 3718 adds r7, #24
  57154. 8017b0a: 46bd mov sp, r7
  57155. 8017b0c: bd80 pop {r7, pc}
  57156. ...
  57157. 08017b10 <pxPortInitialiseStack>:
  57158. /*
  57159. * See header file for description.
  57160. */
  57161. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  57162. {
  57163. 8017b10: b480 push {r7}
  57164. 8017b12: b085 sub sp, #20
  57165. 8017b14: af00 add r7, sp, #0
  57166. 8017b16: 60f8 str r0, [r7, #12]
  57167. 8017b18: 60b9 str r1, [r7, #8]
  57168. 8017b1a: 607a str r2, [r7, #4]
  57169. /* Simulate the stack frame as it would be created by a context switch
  57170. interrupt. */
  57171. /* Offset added to account for the way the MCU uses the stack on entry/exit
  57172. of interrupts, and to ensure alignment. */
  57173. pxTopOfStack--;
  57174. 8017b1c: 68fb ldr r3, [r7, #12]
  57175. 8017b1e: 3b04 subs r3, #4
  57176. 8017b20: 60fb str r3, [r7, #12]
  57177. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  57178. 8017b22: 68fb ldr r3, [r7, #12]
  57179. 8017b24: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  57180. 8017b28: 601a str r2, [r3, #0]
  57181. pxTopOfStack--;
  57182. 8017b2a: 68fb ldr r3, [r7, #12]
  57183. 8017b2c: 3b04 subs r3, #4
  57184. 8017b2e: 60fb str r3, [r7, #12]
  57185. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  57186. 8017b30: 68bb ldr r3, [r7, #8]
  57187. 8017b32: f023 0201 bic.w r2, r3, #1
  57188. 8017b36: 68fb ldr r3, [r7, #12]
  57189. 8017b38: 601a str r2, [r3, #0]
  57190. pxTopOfStack--;
  57191. 8017b3a: 68fb ldr r3, [r7, #12]
  57192. 8017b3c: 3b04 subs r3, #4
  57193. 8017b3e: 60fb str r3, [r7, #12]
  57194. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  57195. 8017b40: 4a0c ldr r2, [pc, #48] @ (8017b74 <pxPortInitialiseStack+0x64>)
  57196. 8017b42: 68fb ldr r3, [r7, #12]
  57197. 8017b44: 601a str r2, [r3, #0]
  57198. /* Save code space by skipping register initialisation. */
  57199. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  57200. 8017b46: 68fb ldr r3, [r7, #12]
  57201. 8017b48: 3b14 subs r3, #20
  57202. 8017b4a: 60fb str r3, [r7, #12]
  57203. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  57204. 8017b4c: 687a ldr r2, [r7, #4]
  57205. 8017b4e: 68fb ldr r3, [r7, #12]
  57206. 8017b50: 601a str r2, [r3, #0]
  57207. /* A save method is being used that requires each task to maintain its
  57208. own exec return value. */
  57209. pxTopOfStack--;
  57210. 8017b52: 68fb ldr r3, [r7, #12]
  57211. 8017b54: 3b04 subs r3, #4
  57212. 8017b56: 60fb str r3, [r7, #12]
  57213. *pxTopOfStack = portINITIAL_EXC_RETURN;
  57214. 8017b58: 68fb ldr r3, [r7, #12]
  57215. 8017b5a: f06f 0202 mvn.w r2, #2
  57216. 8017b5e: 601a str r2, [r3, #0]
  57217. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  57218. 8017b60: 68fb ldr r3, [r7, #12]
  57219. 8017b62: 3b20 subs r3, #32
  57220. 8017b64: 60fb str r3, [r7, #12]
  57221. return pxTopOfStack;
  57222. 8017b66: 68fb ldr r3, [r7, #12]
  57223. }
  57224. 8017b68: 4618 mov r0, r3
  57225. 8017b6a: 3714 adds r7, #20
  57226. 8017b6c: 46bd mov sp, r7
  57227. 8017b6e: f85d 7b04 ldr.w r7, [sp], #4
  57228. 8017b72: 4770 bx lr
  57229. 8017b74: 08017b79 .word 0x08017b79
  57230. 08017b78 <prvTaskExitError>:
  57231. /*-----------------------------------------------------------*/
  57232. static void prvTaskExitError( void )
  57233. {
  57234. 8017b78: b480 push {r7}
  57235. 8017b7a: b085 sub sp, #20
  57236. 8017b7c: af00 add r7, sp, #0
  57237. volatile uint32_t ulDummy = 0;
  57238. 8017b7e: 2300 movs r3, #0
  57239. 8017b80: 607b str r3, [r7, #4]
  57240. its caller as there is nothing to return to. If a task wants to exit it
  57241. should instead call vTaskDelete( NULL ).
  57242. Artificially force an assert() to be triggered if configASSERT() is
  57243. defined, then stop here so application writers can catch the error. */
  57244. configASSERT( uxCriticalNesting == ~0UL );
  57245. 8017b82: 4b13 ldr r3, [pc, #76] @ (8017bd0 <prvTaskExitError+0x58>)
  57246. 8017b84: 681b ldr r3, [r3, #0]
  57247. 8017b86: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57248. 8017b8a: d00b beq.n 8017ba4 <prvTaskExitError+0x2c>
  57249. __asm volatile
  57250. 8017b8c: f04f 0350 mov.w r3, #80 @ 0x50
  57251. 8017b90: f383 8811 msr BASEPRI, r3
  57252. 8017b94: f3bf 8f6f isb sy
  57253. 8017b98: f3bf 8f4f dsb sy
  57254. 8017b9c: 60fb str r3, [r7, #12]
  57255. }
  57256. 8017b9e: bf00 nop
  57257. 8017ba0: bf00 nop
  57258. 8017ba2: e7fd b.n 8017ba0 <prvTaskExitError+0x28>
  57259. __asm volatile
  57260. 8017ba4: f04f 0350 mov.w r3, #80 @ 0x50
  57261. 8017ba8: f383 8811 msr BASEPRI, r3
  57262. 8017bac: f3bf 8f6f isb sy
  57263. 8017bb0: f3bf 8f4f dsb sy
  57264. 8017bb4: 60bb str r3, [r7, #8]
  57265. }
  57266. 8017bb6: bf00 nop
  57267. portDISABLE_INTERRUPTS();
  57268. while( ulDummy == 0 )
  57269. 8017bb8: bf00 nop
  57270. 8017bba: 687b ldr r3, [r7, #4]
  57271. 8017bbc: 2b00 cmp r3, #0
  57272. 8017bbe: d0fc beq.n 8017bba <prvTaskExitError+0x42>
  57273. about code appearing after this function is called - making ulDummy
  57274. volatile makes the compiler think the function could return and
  57275. therefore not output an 'unreachable code' warning for code that appears
  57276. after it. */
  57277. }
  57278. }
  57279. 8017bc0: bf00 nop
  57280. 8017bc2: bf00 nop
  57281. 8017bc4: 3714 adds r7, #20
  57282. 8017bc6: 46bd mov sp, r7
  57283. 8017bc8: f85d 7b04 ldr.w r7, [sp], #4
  57284. 8017bcc: 4770 bx lr
  57285. 8017bce: bf00 nop
  57286. 8017bd0: 24000044 .word 0x24000044
  57287. ...
  57288. 08017be0 <SVC_Handler>:
  57289. /*-----------------------------------------------------------*/
  57290. void vPortSVCHandler( void )
  57291. {
  57292. __asm volatile (
  57293. 8017be0: 4b07 ldr r3, [pc, #28] @ (8017c00 <pxCurrentTCBConst2>)
  57294. 8017be2: 6819 ldr r1, [r3, #0]
  57295. 8017be4: 6808 ldr r0, [r1, #0]
  57296. 8017be6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57297. 8017bea: f380 8809 msr PSP, r0
  57298. 8017bee: f3bf 8f6f isb sy
  57299. 8017bf2: f04f 0000 mov.w r0, #0
  57300. 8017bf6: f380 8811 msr BASEPRI, r0
  57301. 8017bfa: 4770 bx lr
  57302. 8017bfc: f3af 8000 nop.w
  57303. 08017c00 <pxCurrentTCBConst2>:
  57304. 8017c00: 240029f8 .word 0x240029f8
  57305. " bx r14 \n"
  57306. " \n"
  57307. " .align 4 \n"
  57308. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  57309. );
  57310. }
  57311. 8017c04: bf00 nop
  57312. 8017c06: bf00 nop
  57313. 08017c08 <prvPortStartFirstTask>:
  57314. {
  57315. /* Start the first task. This also clears the bit that indicates the FPU is
  57316. in use in case the FPU was used before the scheduler was started - which
  57317. would otherwise result in the unnecessary leaving of space in the SVC stack
  57318. for lazy saving of FPU registers. */
  57319. __asm volatile(
  57320. 8017c08: 4808 ldr r0, [pc, #32] @ (8017c2c <prvPortStartFirstTask+0x24>)
  57321. 8017c0a: 6800 ldr r0, [r0, #0]
  57322. 8017c0c: 6800 ldr r0, [r0, #0]
  57323. 8017c0e: f380 8808 msr MSP, r0
  57324. 8017c12: f04f 0000 mov.w r0, #0
  57325. 8017c16: f380 8814 msr CONTROL, r0
  57326. 8017c1a: b662 cpsie i
  57327. 8017c1c: b661 cpsie f
  57328. 8017c1e: f3bf 8f4f dsb sy
  57329. 8017c22: f3bf 8f6f isb sy
  57330. 8017c26: df00 svc 0
  57331. 8017c28: bf00 nop
  57332. " dsb \n"
  57333. " isb \n"
  57334. " svc 0 \n" /* System call to start first task. */
  57335. " nop \n"
  57336. );
  57337. }
  57338. 8017c2a: bf00 nop
  57339. 8017c2c: e000ed08 .word 0xe000ed08
  57340. 08017c30 <xPortStartScheduler>:
  57341. /*
  57342. * See header file for description.
  57343. */
  57344. BaseType_t xPortStartScheduler( void )
  57345. {
  57346. 8017c30: b580 push {r7, lr}
  57347. 8017c32: b086 sub sp, #24
  57348. 8017c34: af00 add r7, sp, #0
  57349. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  57350. /* This port can be used on all revisions of the Cortex-M7 core other than
  57351. the r0p1 parts. r0p1 parts should use the port from the
  57352. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  57353. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  57354. 8017c36: 4b47 ldr r3, [pc, #284] @ (8017d54 <xPortStartScheduler+0x124>)
  57355. 8017c38: 681b ldr r3, [r3, #0]
  57356. 8017c3a: 4a47 ldr r2, [pc, #284] @ (8017d58 <xPortStartScheduler+0x128>)
  57357. 8017c3c: 4293 cmp r3, r2
  57358. 8017c3e: d10b bne.n 8017c58 <xPortStartScheduler+0x28>
  57359. __asm volatile
  57360. 8017c40: f04f 0350 mov.w r3, #80 @ 0x50
  57361. 8017c44: f383 8811 msr BASEPRI, r3
  57362. 8017c48: f3bf 8f6f isb sy
  57363. 8017c4c: f3bf 8f4f dsb sy
  57364. 8017c50: 613b str r3, [r7, #16]
  57365. }
  57366. 8017c52: bf00 nop
  57367. 8017c54: bf00 nop
  57368. 8017c56: e7fd b.n 8017c54 <xPortStartScheduler+0x24>
  57369. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  57370. 8017c58: 4b3e ldr r3, [pc, #248] @ (8017d54 <xPortStartScheduler+0x124>)
  57371. 8017c5a: 681b ldr r3, [r3, #0]
  57372. 8017c5c: 4a3f ldr r2, [pc, #252] @ (8017d5c <xPortStartScheduler+0x12c>)
  57373. 8017c5e: 4293 cmp r3, r2
  57374. 8017c60: d10b bne.n 8017c7a <xPortStartScheduler+0x4a>
  57375. __asm volatile
  57376. 8017c62: f04f 0350 mov.w r3, #80 @ 0x50
  57377. 8017c66: f383 8811 msr BASEPRI, r3
  57378. 8017c6a: f3bf 8f6f isb sy
  57379. 8017c6e: f3bf 8f4f dsb sy
  57380. 8017c72: 60fb str r3, [r7, #12]
  57381. }
  57382. 8017c74: bf00 nop
  57383. 8017c76: bf00 nop
  57384. 8017c78: e7fd b.n 8017c76 <xPortStartScheduler+0x46>
  57385. #if( configASSERT_DEFINED == 1 )
  57386. {
  57387. volatile uint32_t ulOriginalPriority;
  57388. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  57389. 8017c7a: 4b39 ldr r3, [pc, #228] @ (8017d60 <xPortStartScheduler+0x130>)
  57390. 8017c7c: 617b str r3, [r7, #20]
  57391. functions can be called. ISR safe functions are those that end in
  57392. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  57393. ensure interrupt entry is as fast and simple as possible.
  57394. Save the interrupt priority value that is about to be clobbered. */
  57395. ulOriginalPriority = *pucFirstUserPriorityRegister;
  57396. 8017c7e: 697b ldr r3, [r7, #20]
  57397. 8017c80: 781b ldrb r3, [r3, #0]
  57398. 8017c82: b2db uxtb r3, r3
  57399. 8017c84: 607b str r3, [r7, #4]
  57400. /* Determine the number of priority bits available. First write to all
  57401. possible bits. */
  57402. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  57403. 8017c86: 697b ldr r3, [r7, #20]
  57404. 8017c88: 22ff movs r2, #255 @ 0xff
  57405. 8017c8a: 701a strb r2, [r3, #0]
  57406. /* Read the value back to see how many bits stuck. */
  57407. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  57408. 8017c8c: 697b ldr r3, [r7, #20]
  57409. 8017c8e: 781b ldrb r3, [r3, #0]
  57410. 8017c90: b2db uxtb r3, r3
  57411. 8017c92: 70fb strb r3, [r7, #3]
  57412. /* Use the same mask on the maximum system call priority. */
  57413. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  57414. 8017c94: 78fb ldrb r3, [r7, #3]
  57415. 8017c96: b2db uxtb r3, r3
  57416. 8017c98: f003 0350 and.w r3, r3, #80 @ 0x50
  57417. 8017c9c: b2da uxtb r2, r3
  57418. 8017c9e: 4b31 ldr r3, [pc, #196] @ (8017d64 <xPortStartScheduler+0x134>)
  57419. 8017ca0: 701a strb r2, [r3, #0]
  57420. /* Calculate the maximum acceptable priority group value for the number
  57421. of bits read back. */
  57422. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  57423. 8017ca2: 4b31 ldr r3, [pc, #196] @ (8017d68 <xPortStartScheduler+0x138>)
  57424. 8017ca4: 2207 movs r2, #7
  57425. 8017ca6: 601a str r2, [r3, #0]
  57426. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57427. 8017ca8: e009 b.n 8017cbe <xPortStartScheduler+0x8e>
  57428. {
  57429. ulMaxPRIGROUPValue--;
  57430. 8017caa: 4b2f ldr r3, [pc, #188] @ (8017d68 <xPortStartScheduler+0x138>)
  57431. 8017cac: 681b ldr r3, [r3, #0]
  57432. 8017cae: 3b01 subs r3, #1
  57433. 8017cb0: 4a2d ldr r2, [pc, #180] @ (8017d68 <xPortStartScheduler+0x138>)
  57434. 8017cb2: 6013 str r3, [r2, #0]
  57435. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  57436. 8017cb4: 78fb ldrb r3, [r7, #3]
  57437. 8017cb6: b2db uxtb r3, r3
  57438. 8017cb8: 005b lsls r3, r3, #1
  57439. 8017cba: b2db uxtb r3, r3
  57440. 8017cbc: 70fb strb r3, [r7, #3]
  57441. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57442. 8017cbe: 78fb ldrb r3, [r7, #3]
  57443. 8017cc0: b2db uxtb r3, r3
  57444. 8017cc2: f003 0380 and.w r3, r3, #128 @ 0x80
  57445. 8017cc6: 2b80 cmp r3, #128 @ 0x80
  57446. 8017cc8: d0ef beq.n 8017caa <xPortStartScheduler+0x7a>
  57447. #ifdef configPRIO_BITS
  57448. {
  57449. /* Check the FreeRTOS configuration that defines the number of
  57450. priority bits matches the number of priority bits actually queried
  57451. from the hardware. */
  57452. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  57453. 8017cca: 4b27 ldr r3, [pc, #156] @ (8017d68 <xPortStartScheduler+0x138>)
  57454. 8017ccc: 681b ldr r3, [r3, #0]
  57455. 8017cce: f1c3 0307 rsb r3, r3, #7
  57456. 8017cd2: 2b04 cmp r3, #4
  57457. 8017cd4: d00b beq.n 8017cee <xPortStartScheduler+0xbe>
  57458. __asm volatile
  57459. 8017cd6: f04f 0350 mov.w r3, #80 @ 0x50
  57460. 8017cda: f383 8811 msr BASEPRI, r3
  57461. 8017cde: f3bf 8f6f isb sy
  57462. 8017ce2: f3bf 8f4f dsb sy
  57463. 8017ce6: 60bb str r3, [r7, #8]
  57464. }
  57465. 8017ce8: bf00 nop
  57466. 8017cea: bf00 nop
  57467. 8017cec: e7fd b.n 8017cea <xPortStartScheduler+0xba>
  57468. }
  57469. #endif
  57470. /* Shift the priority group value back to its position within the AIRCR
  57471. register. */
  57472. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  57473. 8017cee: 4b1e ldr r3, [pc, #120] @ (8017d68 <xPortStartScheduler+0x138>)
  57474. 8017cf0: 681b ldr r3, [r3, #0]
  57475. 8017cf2: 021b lsls r3, r3, #8
  57476. 8017cf4: 4a1c ldr r2, [pc, #112] @ (8017d68 <xPortStartScheduler+0x138>)
  57477. 8017cf6: 6013 str r3, [r2, #0]
  57478. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  57479. 8017cf8: 4b1b ldr r3, [pc, #108] @ (8017d68 <xPortStartScheduler+0x138>)
  57480. 8017cfa: 681b ldr r3, [r3, #0]
  57481. 8017cfc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  57482. 8017d00: 4a19 ldr r2, [pc, #100] @ (8017d68 <xPortStartScheduler+0x138>)
  57483. 8017d02: 6013 str r3, [r2, #0]
  57484. /* Restore the clobbered interrupt priority register to its original
  57485. value. */
  57486. *pucFirstUserPriorityRegister = ulOriginalPriority;
  57487. 8017d04: 687b ldr r3, [r7, #4]
  57488. 8017d06: b2da uxtb r2, r3
  57489. 8017d08: 697b ldr r3, [r7, #20]
  57490. 8017d0a: 701a strb r2, [r3, #0]
  57491. }
  57492. #endif /* conifgASSERT_DEFINED */
  57493. /* Make PendSV and SysTick the lowest priority interrupts. */
  57494. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  57495. 8017d0c: 4b17 ldr r3, [pc, #92] @ (8017d6c <xPortStartScheduler+0x13c>)
  57496. 8017d0e: 681b ldr r3, [r3, #0]
  57497. 8017d10: 4a16 ldr r2, [pc, #88] @ (8017d6c <xPortStartScheduler+0x13c>)
  57498. 8017d12: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  57499. 8017d16: 6013 str r3, [r2, #0]
  57500. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  57501. 8017d18: 4b14 ldr r3, [pc, #80] @ (8017d6c <xPortStartScheduler+0x13c>)
  57502. 8017d1a: 681b ldr r3, [r3, #0]
  57503. 8017d1c: 4a13 ldr r2, [pc, #76] @ (8017d6c <xPortStartScheduler+0x13c>)
  57504. 8017d1e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  57505. 8017d22: 6013 str r3, [r2, #0]
  57506. /* Start the timer that generates the tick ISR. Interrupts are disabled
  57507. here already. */
  57508. vPortSetupTimerInterrupt();
  57509. 8017d24: f000 f8da bl 8017edc <vPortSetupTimerInterrupt>
  57510. /* Initialise the critical nesting count ready for the first task. */
  57511. uxCriticalNesting = 0;
  57512. 8017d28: 4b11 ldr r3, [pc, #68] @ (8017d70 <xPortStartScheduler+0x140>)
  57513. 8017d2a: 2200 movs r2, #0
  57514. 8017d2c: 601a str r2, [r3, #0]
  57515. /* Ensure the VFP is enabled - it should be anyway. */
  57516. vPortEnableVFP();
  57517. 8017d2e: f000 f8f9 bl 8017f24 <vPortEnableVFP>
  57518. /* Lazy save always. */
  57519. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  57520. 8017d32: 4b10 ldr r3, [pc, #64] @ (8017d74 <xPortStartScheduler+0x144>)
  57521. 8017d34: 681b ldr r3, [r3, #0]
  57522. 8017d36: 4a0f ldr r2, [pc, #60] @ (8017d74 <xPortStartScheduler+0x144>)
  57523. 8017d38: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  57524. 8017d3c: 6013 str r3, [r2, #0]
  57525. /* Start the first task. */
  57526. prvPortStartFirstTask();
  57527. 8017d3e: f7ff ff63 bl 8017c08 <prvPortStartFirstTask>
  57528. exit error function to prevent compiler warnings about a static function
  57529. not being called in the case that the application writer overrides this
  57530. functionality by defining configTASK_RETURN_ADDRESS. Call
  57531. vTaskSwitchContext() so link time optimisation does not remove the
  57532. symbol. */
  57533. vTaskSwitchContext();
  57534. 8017d42: f7fe fbcd bl 80164e0 <vTaskSwitchContext>
  57535. prvTaskExitError();
  57536. 8017d46: f7ff ff17 bl 8017b78 <prvTaskExitError>
  57537. /* Should not get here! */
  57538. return 0;
  57539. 8017d4a: 2300 movs r3, #0
  57540. }
  57541. 8017d4c: 4618 mov r0, r3
  57542. 8017d4e: 3718 adds r7, #24
  57543. 8017d50: 46bd mov sp, r7
  57544. 8017d52: bd80 pop {r7, pc}
  57545. 8017d54: e000ed00 .word 0xe000ed00
  57546. 8017d58: 410fc271 .word 0x410fc271
  57547. 8017d5c: 410fc270 .word 0x410fc270
  57548. 8017d60: e000e400 .word 0xe000e400
  57549. 8017d64: 24003024 .word 0x24003024
  57550. 8017d68: 24003028 .word 0x24003028
  57551. 8017d6c: e000ed20 .word 0xe000ed20
  57552. 8017d70: 24000044 .word 0x24000044
  57553. 8017d74: e000ef34 .word 0xe000ef34
  57554. 08017d78 <vPortEnterCritical>:
  57555. configASSERT( uxCriticalNesting == 1000UL );
  57556. }
  57557. /*-----------------------------------------------------------*/
  57558. void vPortEnterCritical( void )
  57559. {
  57560. 8017d78: b480 push {r7}
  57561. 8017d7a: b083 sub sp, #12
  57562. 8017d7c: af00 add r7, sp, #0
  57563. __asm volatile
  57564. 8017d7e: f04f 0350 mov.w r3, #80 @ 0x50
  57565. 8017d82: f383 8811 msr BASEPRI, r3
  57566. 8017d86: f3bf 8f6f isb sy
  57567. 8017d8a: f3bf 8f4f dsb sy
  57568. 8017d8e: 607b str r3, [r7, #4]
  57569. }
  57570. 8017d90: bf00 nop
  57571. portDISABLE_INTERRUPTS();
  57572. uxCriticalNesting++;
  57573. 8017d92: 4b10 ldr r3, [pc, #64] @ (8017dd4 <vPortEnterCritical+0x5c>)
  57574. 8017d94: 681b ldr r3, [r3, #0]
  57575. 8017d96: 3301 adds r3, #1
  57576. 8017d98: 4a0e ldr r2, [pc, #56] @ (8017dd4 <vPortEnterCritical+0x5c>)
  57577. 8017d9a: 6013 str r3, [r2, #0]
  57578. /* This is not the interrupt safe version of the enter critical function so
  57579. assert() if it is being called from an interrupt context. Only API
  57580. functions that end in "FromISR" can be used in an interrupt. Only assert if
  57581. the critical nesting count is 1 to protect against recursive calls if the
  57582. assert function also uses a critical section. */
  57583. if( uxCriticalNesting == 1 )
  57584. 8017d9c: 4b0d ldr r3, [pc, #52] @ (8017dd4 <vPortEnterCritical+0x5c>)
  57585. 8017d9e: 681b ldr r3, [r3, #0]
  57586. 8017da0: 2b01 cmp r3, #1
  57587. 8017da2: d110 bne.n 8017dc6 <vPortEnterCritical+0x4e>
  57588. {
  57589. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  57590. 8017da4: 4b0c ldr r3, [pc, #48] @ (8017dd8 <vPortEnterCritical+0x60>)
  57591. 8017da6: 681b ldr r3, [r3, #0]
  57592. 8017da8: b2db uxtb r3, r3
  57593. 8017daa: 2b00 cmp r3, #0
  57594. 8017dac: d00b beq.n 8017dc6 <vPortEnterCritical+0x4e>
  57595. __asm volatile
  57596. 8017dae: f04f 0350 mov.w r3, #80 @ 0x50
  57597. 8017db2: f383 8811 msr BASEPRI, r3
  57598. 8017db6: f3bf 8f6f isb sy
  57599. 8017dba: f3bf 8f4f dsb sy
  57600. 8017dbe: 603b str r3, [r7, #0]
  57601. }
  57602. 8017dc0: bf00 nop
  57603. 8017dc2: bf00 nop
  57604. 8017dc4: e7fd b.n 8017dc2 <vPortEnterCritical+0x4a>
  57605. }
  57606. }
  57607. 8017dc6: bf00 nop
  57608. 8017dc8: 370c adds r7, #12
  57609. 8017dca: 46bd mov sp, r7
  57610. 8017dcc: f85d 7b04 ldr.w r7, [sp], #4
  57611. 8017dd0: 4770 bx lr
  57612. 8017dd2: bf00 nop
  57613. 8017dd4: 24000044 .word 0x24000044
  57614. 8017dd8: e000ed04 .word 0xe000ed04
  57615. 08017ddc <vPortExitCritical>:
  57616. /*-----------------------------------------------------------*/
  57617. void vPortExitCritical( void )
  57618. {
  57619. 8017ddc: b480 push {r7}
  57620. 8017dde: b083 sub sp, #12
  57621. 8017de0: af00 add r7, sp, #0
  57622. configASSERT( uxCriticalNesting );
  57623. 8017de2: 4b12 ldr r3, [pc, #72] @ (8017e2c <vPortExitCritical+0x50>)
  57624. 8017de4: 681b ldr r3, [r3, #0]
  57625. 8017de6: 2b00 cmp r3, #0
  57626. 8017de8: d10b bne.n 8017e02 <vPortExitCritical+0x26>
  57627. __asm volatile
  57628. 8017dea: f04f 0350 mov.w r3, #80 @ 0x50
  57629. 8017dee: f383 8811 msr BASEPRI, r3
  57630. 8017df2: f3bf 8f6f isb sy
  57631. 8017df6: f3bf 8f4f dsb sy
  57632. 8017dfa: 607b str r3, [r7, #4]
  57633. }
  57634. 8017dfc: bf00 nop
  57635. 8017dfe: bf00 nop
  57636. 8017e00: e7fd b.n 8017dfe <vPortExitCritical+0x22>
  57637. uxCriticalNesting--;
  57638. 8017e02: 4b0a ldr r3, [pc, #40] @ (8017e2c <vPortExitCritical+0x50>)
  57639. 8017e04: 681b ldr r3, [r3, #0]
  57640. 8017e06: 3b01 subs r3, #1
  57641. 8017e08: 4a08 ldr r2, [pc, #32] @ (8017e2c <vPortExitCritical+0x50>)
  57642. 8017e0a: 6013 str r3, [r2, #0]
  57643. if( uxCriticalNesting == 0 )
  57644. 8017e0c: 4b07 ldr r3, [pc, #28] @ (8017e2c <vPortExitCritical+0x50>)
  57645. 8017e0e: 681b ldr r3, [r3, #0]
  57646. 8017e10: 2b00 cmp r3, #0
  57647. 8017e12: d105 bne.n 8017e20 <vPortExitCritical+0x44>
  57648. 8017e14: 2300 movs r3, #0
  57649. 8017e16: 603b str r3, [r7, #0]
  57650. __asm volatile
  57651. 8017e18: 683b ldr r3, [r7, #0]
  57652. 8017e1a: f383 8811 msr BASEPRI, r3
  57653. }
  57654. 8017e1e: bf00 nop
  57655. {
  57656. portENABLE_INTERRUPTS();
  57657. }
  57658. }
  57659. 8017e20: bf00 nop
  57660. 8017e22: 370c adds r7, #12
  57661. 8017e24: 46bd mov sp, r7
  57662. 8017e26: f85d 7b04 ldr.w r7, [sp], #4
  57663. 8017e2a: 4770 bx lr
  57664. 8017e2c: 24000044 .word 0x24000044
  57665. 08017e30 <PendSV_Handler>:
  57666. void xPortPendSVHandler( void )
  57667. {
  57668. /* This is a naked function. */
  57669. __asm volatile
  57670. 8017e30: f3ef 8009 mrs r0, PSP
  57671. 8017e34: f3bf 8f6f isb sy
  57672. 8017e38: 4b15 ldr r3, [pc, #84] @ (8017e90 <pxCurrentTCBConst>)
  57673. 8017e3a: 681a ldr r2, [r3, #0]
  57674. 8017e3c: f01e 0f10 tst.w lr, #16
  57675. 8017e40: bf08 it eq
  57676. 8017e42: ed20 8a10 vstmdbeq r0!, {s16-s31}
  57677. 8017e46: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57678. 8017e4a: 6010 str r0, [r2, #0]
  57679. 8017e4c: e92d 0009 stmdb sp!, {r0, r3}
  57680. 8017e50: f04f 0050 mov.w r0, #80 @ 0x50
  57681. 8017e54: f380 8811 msr BASEPRI, r0
  57682. 8017e58: f3bf 8f4f dsb sy
  57683. 8017e5c: f3bf 8f6f isb sy
  57684. 8017e60: f7fe fb3e bl 80164e0 <vTaskSwitchContext>
  57685. 8017e64: f04f 0000 mov.w r0, #0
  57686. 8017e68: f380 8811 msr BASEPRI, r0
  57687. 8017e6c: bc09 pop {r0, r3}
  57688. 8017e6e: 6819 ldr r1, [r3, #0]
  57689. 8017e70: 6808 ldr r0, [r1, #0]
  57690. 8017e72: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57691. 8017e76: f01e 0f10 tst.w lr, #16
  57692. 8017e7a: bf08 it eq
  57693. 8017e7c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  57694. 8017e80: f380 8809 msr PSP, r0
  57695. 8017e84: f3bf 8f6f isb sy
  57696. 8017e88: 4770 bx lr
  57697. 8017e8a: bf00 nop
  57698. 8017e8c: f3af 8000 nop.w
  57699. 08017e90 <pxCurrentTCBConst>:
  57700. 8017e90: 240029f8 .word 0x240029f8
  57701. " \n"
  57702. " .align 4 \n"
  57703. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  57704. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  57705. );
  57706. }
  57707. 8017e94: bf00 nop
  57708. 8017e96: bf00 nop
  57709. 08017e98 <xPortSysTickHandler>:
  57710. /*-----------------------------------------------------------*/
  57711. void xPortSysTickHandler( void )
  57712. {
  57713. 8017e98: b580 push {r7, lr}
  57714. 8017e9a: b082 sub sp, #8
  57715. 8017e9c: af00 add r7, sp, #0
  57716. __asm volatile
  57717. 8017e9e: f04f 0350 mov.w r3, #80 @ 0x50
  57718. 8017ea2: f383 8811 msr BASEPRI, r3
  57719. 8017ea6: f3bf 8f6f isb sy
  57720. 8017eaa: f3bf 8f4f dsb sy
  57721. 8017eae: 607b str r3, [r7, #4]
  57722. }
  57723. 8017eb0: bf00 nop
  57724. save and then restore the interrupt mask value as its value is already
  57725. known. */
  57726. portDISABLE_INTERRUPTS();
  57727. {
  57728. /* Increment the RTOS tick. */
  57729. if( xTaskIncrementTick() != pdFALSE )
  57730. 8017eb2: f7fe fa5b bl 801636c <xTaskIncrementTick>
  57731. 8017eb6: 4603 mov r3, r0
  57732. 8017eb8: 2b00 cmp r3, #0
  57733. 8017eba: d003 beq.n 8017ec4 <xPortSysTickHandler+0x2c>
  57734. {
  57735. /* A context switch is required. Context switching is performed in
  57736. the PendSV interrupt. Pend the PendSV interrupt. */
  57737. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  57738. 8017ebc: 4b06 ldr r3, [pc, #24] @ (8017ed8 <xPortSysTickHandler+0x40>)
  57739. 8017ebe: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  57740. 8017ec2: 601a str r2, [r3, #0]
  57741. 8017ec4: 2300 movs r3, #0
  57742. 8017ec6: 603b str r3, [r7, #0]
  57743. __asm volatile
  57744. 8017ec8: 683b ldr r3, [r7, #0]
  57745. 8017eca: f383 8811 msr BASEPRI, r3
  57746. }
  57747. 8017ece: bf00 nop
  57748. }
  57749. }
  57750. portENABLE_INTERRUPTS();
  57751. }
  57752. 8017ed0: bf00 nop
  57753. 8017ed2: 3708 adds r7, #8
  57754. 8017ed4: 46bd mov sp, r7
  57755. 8017ed6: bd80 pop {r7, pc}
  57756. 8017ed8: e000ed04 .word 0xe000ed04
  57757. 08017edc <vPortSetupTimerInterrupt>:
  57758. /*
  57759. * Setup the systick timer to generate the tick interrupts at the required
  57760. * frequency.
  57761. */
  57762. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  57763. {
  57764. 8017edc: b480 push {r7}
  57765. 8017ede: af00 add r7, sp, #0
  57766. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  57767. }
  57768. #endif /* configUSE_TICKLESS_IDLE */
  57769. /* Stop and clear the SysTick. */
  57770. portNVIC_SYSTICK_CTRL_REG = 0UL;
  57771. 8017ee0: 4b0b ldr r3, [pc, #44] @ (8017f10 <vPortSetupTimerInterrupt+0x34>)
  57772. 8017ee2: 2200 movs r2, #0
  57773. 8017ee4: 601a str r2, [r3, #0]
  57774. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  57775. 8017ee6: 4b0b ldr r3, [pc, #44] @ (8017f14 <vPortSetupTimerInterrupt+0x38>)
  57776. 8017ee8: 2200 movs r2, #0
  57777. 8017eea: 601a str r2, [r3, #0]
  57778. /* Configure SysTick to interrupt at the requested rate. */
  57779. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  57780. 8017eec: 4b0a ldr r3, [pc, #40] @ (8017f18 <vPortSetupTimerInterrupt+0x3c>)
  57781. 8017eee: 681b ldr r3, [r3, #0]
  57782. 8017ef0: 4a0a ldr r2, [pc, #40] @ (8017f1c <vPortSetupTimerInterrupt+0x40>)
  57783. 8017ef2: fba2 2303 umull r2, r3, r2, r3
  57784. 8017ef6: 099b lsrs r3, r3, #6
  57785. 8017ef8: 4a09 ldr r2, [pc, #36] @ (8017f20 <vPortSetupTimerInterrupt+0x44>)
  57786. 8017efa: 3b01 subs r3, #1
  57787. 8017efc: 6013 str r3, [r2, #0]
  57788. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  57789. 8017efe: 4b04 ldr r3, [pc, #16] @ (8017f10 <vPortSetupTimerInterrupt+0x34>)
  57790. 8017f00: 2207 movs r2, #7
  57791. 8017f02: 601a str r2, [r3, #0]
  57792. }
  57793. 8017f04: bf00 nop
  57794. 8017f06: 46bd mov sp, r7
  57795. 8017f08: f85d 7b04 ldr.w r7, [sp], #4
  57796. 8017f0c: 4770 bx lr
  57797. 8017f0e: bf00 nop
  57798. 8017f10: e000e010 .word 0xe000e010
  57799. 8017f14: e000e018 .word 0xe000e018
  57800. 8017f18: 24000034 .word 0x24000034
  57801. 8017f1c: 10624dd3 .word 0x10624dd3
  57802. 8017f20: e000e014 .word 0xe000e014
  57803. 08017f24 <vPortEnableVFP>:
  57804. /*-----------------------------------------------------------*/
  57805. /* This is a naked function. */
  57806. static void vPortEnableVFP( void )
  57807. {
  57808. __asm volatile
  57809. 8017f24: f8df 000c ldr.w r0, [pc, #12] @ 8017f34 <vPortEnableVFP+0x10>
  57810. 8017f28: 6801 ldr r1, [r0, #0]
  57811. 8017f2a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  57812. 8017f2e: 6001 str r1, [r0, #0]
  57813. 8017f30: 4770 bx lr
  57814. " \n"
  57815. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  57816. " str r1, [r0] \n"
  57817. " bx r14 "
  57818. );
  57819. }
  57820. 8017f32: bf00 nop
  57821. 8017f34: e000ed88 .word 0xe000ed88
  57822. 08017f38 <vPortValidateInterruptPriority>:
  57823. /*-----------------------------------------------------------*/
  57824. #if( configASSERT_DEFINED == 1 )
  57825. void vPortValidateInterruptPriority( void )
  57826. {
  57827. 8017f38: b480 push {r7}
  57828. 8017f3a: b085 sub sp, #20
  57829. 8017f3c: af00 add r7, sp, #0
  57830. uint32_t ulCurrentInterrupt;
  57831. uint8_t ucCurrentPriority;
  57832. /* Obtain the number of the currently executing interrupt. */
  57833. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  57834. 8017f3e: f3ef 8305 mrs r3, IPSR
  57835. 8017f42: 60fb str r3, [r7, #12]
  57836. /* Is the interrupt number a user defined interrupt? */
  57837. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  57838. 8017f44: 68fb ldr r3, [r7, #12]
  57839. 8017f46: 2b0f cmp r3, #15
  57840. 8017f48: d915 bls.n 8017f76 <vPortValidateInterruptPriority+0x3e>
  57841. {
  57842. /* Look up the interrupt's priority. */
  57843. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  57844. 8017f4a: 4a18 ldr r2, [pc, #96] @ (8017fac <vPortValidateInterruptPriority+0x74>)
  57845. 8017f4c: 68fb ldr r3, [r7, #12]
  57846. 8017f4e: 4413 add r3, r2
  57847. 8017f50: 781b ldrb r3, [r3, #0]
  57848. 8017f52: 72fb strb r3, [r7, #11]
  57849. interrupt entry is as fast and simple as possible.
  57850. The following links provide detailed information:
  57851. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  57852. http://www.freertos.org/FAQHelp.html */
  57853. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  57854. 8017f54: 4b16 ldr r3, [pc, #88] @ (8017fb0 <vPortValidateInterruptPriority+0x78>)
  57855. 8017f56: 781b ldrb r3, [r3, #0]
  57856. 8017f58: 7afa ldrb r2, [r7, #11]
  57857. 8017f5a: 429a cmp r2, r3
  57858. 8017f5c: d20b bcs.n 8017f76 <vPortValidateInterruptPriority+0x3e>
  57859. __asm volatile
  57860. 8017f5e: f04f 0350 mov.w r3, #80 @ 0x50
  57861. 8017f62: f383 8811 msr BASEPRI, r3
  57862. 8017f66: f3bf 8f6f isb sy
  57863. 8017f6a: f3bf 8f4f dsb sy
  57864. 8017f6e: 607b str r3, [r7, #4]
  57865. }
  57866. 8017f70: bf00 nop
  57867. 8017f72: bf00 nop
  57868. 8017f74: e7fd b.n 8017f72 <vPortValidateInterruptPriority+0x3a>
  57869. configuration then the correct setting can be achieved on all Cortex-M
  57870. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  57871. scheduler. Note however that some vendor specific peripheral libraries
  57872. assume a non-zero priority group setting, in which cases using a value
  57873. of zero will result in unpredictable behaviour. */
  57874. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  57875. 8017f76: 4b0f ldr r3, [pc, #60] @ (8017fb4 <vPortValidateInterruptPriority+0x7c>)
  57876. 8017f78: 681b ldr r3, [r3, #0]
  57877. 8017f7a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  57878. 8017f7e: 4b0e ldr r3, [pc, #56] @ (8017fb8 <vPortValidateInterruptPriority+0x80>)
  57879. 8017f80: 681b ldr r3, [r3, #0]
  57880. 8017f82: 429a cmp r2, r3
  57881. 8017f84: d90b bls.n 8017f9e <vPortValidateInterruptPriority+0x66>
  57882. __asm volatile
  57883. 8017f86: f04f 0350 mov.w r3, #80 @ 0x50
  57884. 8017f8a: f383 8811 msr BASEPRI, r3
  57885. 8017f8e: f3bf 8f6f isb sy
  57886. 8017f92: f3bf 8f4f dsb sy
  57887. 8017f96: 603b str r3, [r7, #0]
  57888. }
  57889. 8017f98: bf00 nop
  57890. 8017f9a: bf00 nop
  57891. 8017f9c: e7fd b.n 8017f9a <vPortValidateInterruptPriority+0x62>
  57892. }
  57893. 8017f9e: bf00 nop
  57894. 8017fa0: 3714 adds r7, #20
  57895. 8017fa2: 46bd mov sp, r7
  57896. 8017fa4: f85d 7b04 ldr.w r7, [sp], #4
  57897. 8017fa8: 4770 bx lr
  57898. 8017faa: bf00 nop
  57899. 8017fac: e000e3f0 .word 0xe000e3f0
  57900. 8017fb0: 24003024 .word 0x24003024
  57901. 8017fb4: e000ed0c .word 0xe000ed0c
  57902. 8017fb8: 24003028 .word 0x24003028
  57903. 08017fbc <pvPortMalloc>:
  57904. static size_t xBlockAllocatedBit = 0;
  57905. /*-----------------------------------------------------------*/
  57906. void *pvPortMalloc( size_t xWantedSize )
  57907. {
  57908. 8017fbc: b580 push {r7, lr}
  57909. 8017fbe: b08a sub sp, #40 @ 0x28
  57910. 8017fc0: af00 add r7, sp, #0
  57911. 8017fc2: 6078 str r0, [r7, #4]
  57912. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  57913. void *pvReturn = NULL;
  57914. 8017fc4: 2300 movs r3, #0
  57915. 8017fc6: 61fb str r3, [r7, #28]
  57916. vTaskSuspendAll();
  57917. 8017fc8: f7fe f914 bl 80161f4 <vTaskSuspendAll>
  57918. {
  57919. /* If this is the first call to malloc then the heap will require
  57920. initialisation to setup the list of free blocks. */
  57921. if( pxEnd == NULL )
  57922. 8017fcc: 4b5c ldr r3, [pc, #368] @ (8018140 <pvPortMalloc+0x184>)
  57923. 8017fce: 681b ldr r3, [r3, #0]
  57924. 8017fd0: 2b00 cmp r3, #0
  57925. 8017fd2: d101 bne.n 8017fd8 <pvPortMalloc+0x1c>
  57926. {
  57927. prvHeapInit();
  57928. 8017fd4: f000 f924 bl 8018220 <prvHeapInit>
  57929. /* Check the requested block size is not so large that the top bit is
  57930. set. The top bit of the block size member of the BlockLink_t structure
  57931. is used to determine who owns the block - the application or the
  57932. kernel, so it must be free. */
  57933. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57934. 8017fd8: 4b5a ldr r3, [pc, #360] @ (8018144 <pvPortMalloc+0x188>)
  57935. 8017fda: 681a ldr r2, [r3, #0]
  57936. 8017fdc: 687b ldr r3, [r7, #4]
  57937. 8017fde: 4013 ands r3, r2
  57938. 8017fe0: 2b00 cmp r3, #0
  57939. 8017fe2: f040 8095 bne.w 8018110 <pvPortMalloc+0x154>
  57940. {
  57941. /* The wanted size is increased so it can contain a BlockLink_t
  57942. structure in addition to the requested amount of bytes. */
  57943. if( xWantedSize > 0 )
  57944. 8017fe6: 687b ldr r3, [r7, #4]
  57945. 8017fe8: 2b00 cmp r3, #0
  57946. 8017fea: d01e beq.n 801802a <pvPortMalloc+0x6e>
  57947. {
  57948. xWantedSize += xHeapStructSize;
  57949. 8017fec: 2208 movs r2, #8
  57950. 8017fee: 687b ldr r3, [r7, #4]
  57951. 8017ff0: 4413 add r3, r2
  57952. 8017ff2: 607b str r3, [r7, #4]
  57953. /* Ensure that blocks are always aligned to the required number
  57954. of bytes. */
  57955. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57956. 8017ff4: 687b ldr r3, [r7, #4]
  57957. 8017ff6: f003 0307 and.w r3, r3, #7
  57958. 8017ffa: 2b00 cmp r3, #0
  57959. 8017ffc: d015 beq.n 801802a <pvPortMalloc+0x6e>
  57960. {
  57961. /* Byte alignment required. */
  57962. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57963. 8017ffe: 687b ldr r3, [r7, #4]
  57964. 8018000: f023 0307 bic.w r3, r3, #7
  57965. 8018004: 3308 adds r3, #8
  57966. 8018006: 607b str r3, [r7, #4]
  57967. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57968. 8018008: 687b ldr r3, [r7, #4]
  57969. 801800a: f003 0307 and.w r3, r3, #7
  57970. 801800e: 2b00 cmp r3, #0
  57971. 8018010: d00b beq.n 801802a <pvPortMalloc+0x6e>
  57972. __asm volatile
  57973. 8018012: f04f 0350 mov.w r3, #80 @ 0x50
  57974. 8018016: f383 8811 msr BASEPRI, r3
  57975. 801801a: f3bf 8f6f isb sy
  57976. 801801e: f3bf 8f4f dsb sy
  57977. 8018022: 617b str r3, [r7, #20]
  57978. }
  57979. 8018024: bf00 nop
  57980. 8018026: bf00 nop
  57981. 8018028: e7fd b.n 8018026 <pvPortMalloc+0x6a>
  57982. else
  57983. {
  57984. mtCOVERAGE_TEST_MARKER();
  57985. }
  57986. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57987. 801802a: 687b ldr r3, [r7, #4]
  57988. 801802c: 2b00 cmp r3, #0
  57989. 801802e: d06f beq.n 8018110 <pvPortMalloc+0x154>
  57990. 8018030: 4b45 ldr r3, [pc, #276] @ (8018148 <pvPortMalloc+0x18c>)
  57991. 8018032: 681b ldr r3, [r3, #0]
  57992. 8018034: 687a ldr r2, [r7, #4]
  57993. 8018036: 429a cmp r2, r3
  57994. 8018038: d86a bhi.n 8018110 <pvPortMalloc+0x154>
  57995. {
  57996. /* Traverse the list from the start (lowest address) block until
  57997. one of adequate size is found. */
  57998. pxPreviousBlock = &xStart;
  57999. 801803a: 4b44 ldr r3, [pc, #272] @ (801814c <pvPortMalloc+0x190>)
  58000. 801803c: 623b str r3, [r7, #32]
  58001. pxBlock = xStart.pxNextFreeBlock;
  58002. 801803e: 4b43 ldr r3, [pc, #268] @ (801814c <pvPortMalloc+0x190>)
  58003. 8018040: 681b ldr r3, [r3, #0]
  58004. 8018042: 627b str r3, [r7, #36] @ 0x24
  58005. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  58006. 8018044: e004 b.n 8018050 <pvPortMalloc+0x94>
  58007. {
  58008. pxPreviousBlock = pxBlock;
  58009. 8018046: 6a7b ldr r3, [r7, #36] @ 0x24
  58010. 8018048: 623b str r3, [r7, #32]
  58011. pxBlock = pxBlock->pxNextFreeBlock;
  58012. 801804a: 6a7b ldr r3, [r7, #36] @ 0x24
  58013. 801804c: 681b ldr r3, [r3, #0]
  58014. 801804e: 627b str r3, [r7, #36] @ 0x24
  58015. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  58016. 8018050: 6a7b ldr r3, [r7, #36] @ 0x24
  58017. 8018052: 685b ldr r3, [r3, #4]
  58018. 8018054: 687a ldr r2, [r7, #4]
  58019. 8018056: 429a cmp r2, r3
  58020. 8018058: d903 bls.n 8018062 <pvPortMalloc+0xa6>
  58021. 801805a: 6a7b ldr r3, [r7, #36] @ 0x24
  58022. 801805c: 681b ldr r3, [r3, #0]
  58023. 801805e: 2b00 cmp r3, #0
  58024. 8018060: d1f1 bne.n 8018046 <pvPortMalloc+0x8a>
  58025. }
  58026. /* If the end marker was reached then a block of adequate size
  58027. was not found. */
  58028. if( pxBlock != pxEnd )
  58029. 8018062: 4b37 ldr r3, [pc, #220] @ (8018140 <pvPortMalloc+0x184>)
  58030. 8018064: 681b ldr r3, [r3, #0]
  58031. 8018066: 6a7a ldr r2, [r7, #36] @ 0x24
  58032. 8018068: 429a cmp r2, r3
  58033. 801806a: d051 beq.n 8018110 <pvPortMalloc+0x154>
  58034. {
  58035. /* Return the memory space pointed to - jumping over the
  58036. BlockLink_t structure at its start. */
  58037. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  58038. 801806c: 6a3b ldr r3, [r7, #32]
  58039. 801806e: 681b ldr r3, [r3, #0]
  58040. 8018070: 2208 movs r2, #8
  58041. 8018072: 4413 add r3, r2
  58042. 8018074: 61fb str r3, [r7, #28]
  58043. /* This block is being returned for use so must be taken out
  58044. of the list of free blocks. */
  58045. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  58046. 8018076: 6a7b ldr r3, [r7, #36] @ 0x24
  58047. 8018078: 681a ldr r2, [r3, #0]
  58048. 801807a: 6a3b ldr r3, [r7, #32]
  58049. 801807c: 601a str r2, [r3, #0]
  58050. /* If the block is larger than required it can be split into
  58051. two. */
  58052. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  58053. 801807e: 6a7b ldr r3, [r7, #36] @ 0x24
  58054. 8018080: 685a ldr r2, [r3, #4]
  58055. 8018082: 687b ldr r3, [r7, #4]
  58056. 8018084: 1ad2 subs r2, r2, r3
  58057. 8018086: 2308 movs r3, #8
  58058. 8018088: 005b lsls r3, r3, #1
  58059. 801808a: 429a cmp r2, r3
  58060. 801808c: d920 bls.n 80180d0 <pvPortMalloc+0x114>
  58061. {
  58062. /* This block is to be split into two. Create a new
  58063. block following the number of bytes requested. The void
  58064. cast is used to prevent byte alignment warnings from the
  58065. compiler. */
  58066. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  58067. 801808e: 6a7a ldr r2, [r7, #36] @ 0x24
  58068. 8018090: 687b ldr r3, [r7, #4]
  58069. 8018092: 4413 add r3, r2
  58070. 8018094: 61bb str r3, [r7, #24]
  58071. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  58072. 8018096: 69bb ldr r3, [r7, #24]
  58073. 8018098: f003 0307 and.w r3, r3, #7
  58074. 801809c: 2b00 cmp r3, #0
  58075. 801809e: d00b beq.n 80180b8 <pvPortMalloc+0xfc>
  58076. __asm volatile
  58077. 80180a0: f04f 0350 mov.w r3, #80 @ 0x50
  58078. 80180a4: f383 8811 msr BASEPRI, r3
  58079. 80180a8: f3bf 8f6f isb sy
  58080. 80180ac: f3bf 8f4f dsb sy
  58081. 80180b0: 613b str r3, [r7, #16]
  58082. }
  58083. 80180b2: bf00 nop
  58084. 80180b4: bf00 nop
  58085. 80180b6: e7fd b.n 80180b4 <pvPortMalloc+0xf8>
  58086. /* Calculate the sizes of two blocks split from the
  58087. single block. */
  58088. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  58089. 80180b8: 6a7b ldr r3, [r7, #36] @ 0x24
  58090. 80180ba: 685a ldr r2, [r3, #4]
  58091. 80180bc: 687b ldr r3, [r7, #4]
  58092. 80180be: 1ad2 subs r2, r2, r3
  58093. 80180c0: 69bb ldr r3, [r7, #24]
  58094. 80180c2: 605a str r2, [r3, #4]
  58095. pxBlock->xBlockSize = xWantedSize;
  58096. 80180c4: 6a7b ldr r3, [r7, #36] @ 0x24
  58097. 80180c6: 687a ldr r2, [r7, #4]
  58098. 80180c8: 605a str r2, [r3, #4]
  58099. /* Insert the new block into the list of free blocks. */
  58100. prvInsertBlockIntoFreeList( pxNewBlockLink );
  58101. 80180ca: 69b8 ldr r0, [r7, #24]
  58102. 80180cc: f000 f90a bl 80182e4 <prvInsertBlockIntoFreeList>
  58103. else
  58104. {
  58105. mtCOVERAGE_TEST_MARKER();
  58106. }
  58107. xFreeBytesRemaining -= pxBlock->xBlockSize;
  58108. 80180d0: 4b1d ldr r3, [pc, #116] @ (8018148 <pvPortMalloc+0x18c>)
  58109. 80180d2: 681a ldr r2, [r3, #0]
  58110. 80180d4: 6a7b ldr r3, [r7, #36] @ 0x24
  58111. 80180d6: 685b ldr r3, [r3, #4]
  58112. 80180d8: 1ad3 subs r3, r2, r3
  58113. 80180da: 4a1b ldr r2, [pc, #108] @ (8018148 <pvPortMalloc+0x18c>)
  58114. 80180dc: 6013 str r3, [r2, #0]
  58115. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  58116. 80180de: 4b1a ldr r3, [pc, #104] @ (8018148 <pvPortMalloc+0x18c>)
  58117. 80180e0: 681a ldr r2, [r3, #0]
  58118. 80180e2: 4b1b ldr r3, [pc, #108] @ (8018150 <pvPortMalloc+0x194>)
  58119. 80180e4: 681b ldr r3, [r3, #0]
  58120. 80180e6: 429a cmp r2, r3
  58121. 80180e8: d203 bcs.n 80180f2 <pvPortMalloc+0x136>
  58122. {
  58123. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  58124. 80180ea: 4b17 ldr r3, [pc, #92] @ (8018148 <pvPortMalloc+0x18c>)
  58125. 80180ec: 681b ldr r3, [r3, #0]
  58126. 80180ee: 4a18 ldr r2, [pc, #96] @ (8018150 <pvPortMalloc+0x194>)
  58127. 80180f0: 6013 str r3, [r2, #0]
  58128. mtCOVERAGE_TEST_MARKER();
  58129. }
  58130. /* The block is being returned - it is allocated and owned
  58131. by the application and has no "next" block. */
  58132. pxBlock->xBlockSize |= xBlockAllocatedBit;
  58133. 80180f2: 6a7b ldr r3, [r7, #36] @ 0x24
  58134. 80180f4: 685a ldr r2, [r3, #4]
  58135. 80180f6: 4b13 ldr r3, [pc, #76] @ (8018144 <pvPortMalloc+0x188>)
  58136. 80180f8: 681b ldr r3, [r3, #0]
  58137. 80180fa: 431a orrs r2, r3
  58138. 80180fc: 6a7b ldr r3, [r7, #36] @ 0x24
  58139. 80180fe: 605a str r2, [r3, #4]
  58140. pxBlock->pxNextFreeBlock = NULL;
  58141. 8018100: 6a7b ldr r3, [r7, #36] @ 0x24
  58142. 8018102: 2200 movs r2, #0
  58143. 8018104: 601a str r2, [r3, #0]
  58144. xNumberOfSuccessfulAllocations++;
  58145. 8018106: 4b13 ldr r3, [pc, #76] @ (8018154 <pvPortMalloc+0x198>)
  58146. 8018108: 681b ldr r3, [r3, #0]
  58147. 801810a: 3301 adds r3, #1
  58148. 801810c: 4a11 ldr r2, [pc, #68] @ (8018154 <pvPortMalloc+0x198>)
  58149. 801810e: 6013 str r3, [r2, #0]
  58150. mtCOVERAGE_TEST_MARKER();
  58151. }
  58152. traceMALLOC( pvReturn, xWantedSize );
  58153. }
  58154. ( void ) xTaskResumeAll();
  58155. 8018110: f7fe f87e bl 8016210 <xTaskResumeAll>
  58156. mtCOVERAGE_TEST_MARKER();
  58157. }
  58158. }
  58159. #endif
  58160. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  58161. 8018114: 69fb ldr r3, [r7, #28]
  58162. 8018116: f003 0307 and.w r3, r3, #7
  58163. 801811a: 2b00 cmp r3, #0
  58164. 801811c: d00b beq.n 8018136 <pvPortMalloc+0x17a>
  58165. __asm volatile
  58166. 801811e: f04f 0350 mov.w r3, #80 @ 0x50
  58167. 8018122: f383 8811 msr BASEPRI, r3
  58168. 8018126: f3bf 8f6f isb sy
  58169. 801812a: f3bf 8f4f dsb sy
  58170. 801812e: 60fb str r3, [r7, #12]
  58171. }
  58172. 8018130: bf00 nop
  58173. 8018132: bf00 nop
  58174. 8018134: e7fd b.n 8018132 <pvPortMalloc+0x176>
  58175. return pvReturn;
  58176. 8018136: 69fb ldr r3, [r7, #28]
  58177. }
  58178. 8018138: 4618 mov r0, r3
  58179. 801813a: 3728 adds r7, #40 @ 0x28
  58180. 801813c: 46bd mov sp, r7
  58181. 801813e: bd80 pop {r7, pc}
  58182. 8018140: 24013034 .word 0x24013034
  58183. 8018144: 24013048 .word 0x24013048
  58184. 8018148: 24013038 .word 0x24013038
  58185. 801814c: 2401302c .word 0x2401302c
  58186. 8018150: 2401303c .word 0x2401303c
  58187. 8018154: 24013040 .word 0x24013040
  58188. 08018158 <vPortFree>:
  58189. /*-----------------------------------------------------------*/
  58190. void vPortFree( void *pv )
  58191. {
  58192. 8018158: b580 push {r7, lr}
  58193. 801815a: b086 sub sp, #24
  58194. 801815c: af00 add r7, sp, #0
  58195. 801815e: 6078 str r0, [r7, #4]
  58196. uint8_t *puc = ( uint8_t * ) pv;
  58197. 8018160: 687b ldr r3, [r7, #4]
  58198. 8018162: 617b str r3, [r7, #20]
  58199. BlockLink_t *pxLink;
  58200. if( pv != NULL )
  58201. 8018164: 687b ldr r3, [r7, #4]
  58202. 8018166: 2b00 cmp r3, #0
  58203. 8018168: d04f beq.n 801820a <vPortFree+0xb2>
  58204. {
  58205. /* The memory being freed will have an BlockLink_t structure immediately
  58206. before it. */
  58207. puc -= xHeapStructSize;
  58208. 801816a: 2308 movs r3, #8
  58209. 801816c: 425b negs r3, r3
  58210. 801816e: 697a ldr r2, [r7, #20]
  58211. 8018170: 4413 add r3, r2
  58212. 8018172: 617b str r3, [r7, #20]
  58213. /* This casting is to keep the compiler from issuing warnings. */
  58214. pxLink = ( void * ) puc;
  58215. 8018174: 697b ldr r3, [r7, #20]
  58216. 8018176: 613b str r3, [r7, #16]
  58217. /* Check the block is actually allocated. */
  58218. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  58219. 8018178: 693b ldr r3, [r7, #16]
  58220. 801817a: 685a ldr r2, [r3, #4]
  58221. 801817c: 4b25 ldr r3, [pc, #148] @ (8018214 <vPortFree+0xbc>)
  58222. 801817e: 681b ldr r3, [r3, #0]
  58223. 8018180: 4013 ands r3, r2
  58224. 8018182: 2b00 cmp r3, #0
  58225. 8018184: d10b bne.n 801819e <vPortFree+0x46>
  58226. __asm volatile
  58227. 8018186: f04f 0350 mov.w r3, #80 @ 0x50
  58228. 801818a: f383 8811 msr BASEPRI, r3
  58229. 801818e: f3bf 8f6f isb sy
  58230. 8018192: f3bf 8f4f dsb sy
  58231. 8018196: 60fb str r3, [r7, #12]
  58232. }
  58233. 8018198: bf00 nop
  58234. 801819a: bf00 nop
  58235. 801819c: e7fd b.n 801819a <vPortFree+0x42>
  58236. configASSERT( pxLink->pxNextFreeBlock == NULL );
  58237. 801819e: 693b ldr r3, [r7, #16]
  58238. 80181a0: 681b ldr r3, [r3, #0]
  58239. 80181a2: 2b00 cmp r3, #0
  58240. 80181a4: d00b beq.n 80181be <vPortFree+0x66>
  58241. __asm volatile
  58242. 80181a6: f04f 0350 mov.w r3, #80 @ 0x50
  58243. 80181aa: f383 8811 msr BASEPRI, r3
  58244. 80181ae: f3bf 8f6f isb sy
  58245. 80181b2: f3bf 8f4f dsb sy
  58246. 80181b6: 60bb str r3, [r7, #8]
  58247. }
  58248. 80181b8: bf00 nop
  58249. 80181ba: bf00 nop
  58250. 80181bc: e7fd b.n 80181ba <vPortFree+0x62>
  58251. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  58252. 80181be: 693b ldr r3, [r7, #16]
  58253. 80181c0: 685a ldr r2, [r3, #4]
  58254. 80181c2: 4b14 ldr r3, [pc, #80] @ (8018214 <vPortFree+0xbc>)
  58255. 80181c4: 681b ldr r3, [r3, #0]
  58256. 80181c6: 4013 ands r3, r2
  58257. 80181c8: 2b00 cmp r3, #0
  58258. 80181ca: d01e beq.n 801820a <vPortFree+0xb2>
  58259. {
  58260. if( pxLink->pxNextFreeBlock == NULL )
  58261. 80181cc: 693b ldr r3, [r7, #16]
  58262. 80181ce: 681b ldr r3, [r3, #0]
  58263. 80181d0: 2b00 cmp r3, #0
  58264. 80181d2: d11a bne.n 801820a <vPortFree+0xb2>
  58265. {
  58266. /* The block is being returned to the heap - it is no longer
  58267. allocated. */
  58268. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  58269. 80181d4: 693b ldr r3, [r7, #16]
  58270. 80181d6: 685a ldr r2, [r3, #4]
  58271. 80181d8: 4b0e ldr r3, [pc, #56] @ (8018214 <vPortFree+0xbc>)
  58272. 80181da: 681b ldr r3, [r3, #0]
  58273. 80181dc: 43db mvns r3, r3
  58274. 80181de: 401a ands r2, r3
  58275. 80181e0: 693b ldr r3, [r7, #16]
  58276. 80181e2: 605a str r2, [r3, #4]
  58277. vTaskSuspendAll();
  58278. 80181e4: f7fe f806 bl 80161f4 <vTaskSuspendAll>
  58279. {
  58280. /* Add this block to the list of free blocks. */
  58281. xFreeBytesRemaining += pxLink->xBlockSize;
  58282. 80181e8: 693b ldr r3, [r7, #16]
  58283. 80181ea: 685a ldr r2, [r3, #4]
  58284. 80181ec: 4b0a ldr r3, [pc, #40] @ (8018218 <vPortFree+0xc0>)
  58285. 80181ee: 681b ldr r3, [r3, #0]
  58286. 80181f0: 4413 add r3, r2
  58287. 80181f2: 4a09 ldr r2, [pc, #36] @ (8018218 <vPortFree+0xc0>)
  58288. 80181f4: 6013 str r3, [r2, #0]
  58289. traceFREE( pv, pxLink->xBlockSize );
  58290. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  58291. 80181f6: 6938 ldr r0, [r7, #16]
  58292. 80181f8: f000 f874 bl 80182e4 <prvInsertBlockIntoFreeList>
  58293. xNumberOfSuccessfulFrees++;
  58294. 80181fc: 4b07 ldr r3, [pc, #28] @ (801821c <vPortFree+0xc4>)
  58295. 80181fe: 681b ldr r3, [r3, #0]
  58296. 8018200: 3301 adds r3, #1
  58297. 8018202: 4a06 ldr r2, [pc, #24] @ (801821c <vPortFree+0xc4>)
  58298. 8018204: 6013 str r3, [r2, #0]
  58299. }
  58300. ( void ) xTaskResumeAll();
  58301. 8018206: f7fe f803 bl 8016210 <xTaskResumeAll>
  58302. else
  58303. {
  58304. mtCOVERAGE_TEST_MARKER();
  58305. }
  58306. }
  58307. }
  58308. 801820a: bf00 nop
  58309. 801820c: 3718 adds r7, #24
  58310. 801820e: 46bd mov sp, r7
  58311. 8018210: bd80 pop {r7, pc}
  58312. 8018212: bf00 nop
  58313. 8018214: 24013048 .word 0x24013048
  58314. 8018218: 24013038 .word 0x24013038
  58315. 801821c: 24013044 .word 0x24013044
  58316. 08018220 <prvHeapInit>:
  58317. /* This just exists to keep the linker quiet. */
  58318. }
  58319. /*-----------------------------------------------------------*/
  58320. static void prvHeapInit( void )
  58321. {
  58322. 8018220: b480 push {r7}
  58323. 8018222: b085 sub sp, #20
  58324. 8018224: af00 add r7, sp, #0
  58325. BlockLink_t *pxFirstFreeBlock;
  58326. uint8_t *pucAlignedHeap;
  58327. size_t uxAddress;
  58328. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  58329. 8018226: f44f 3380 mov.w r3, #65536 @ 0x10000
  58330. 801822a: 60bb str r3, [r7, #8]
  58331. /* Ensure the heap starts on a correctly aligned boundary. */
  58332. uxAddress = ( size_t ) ucHeap;
  58333. 801822c: 4b27 ldr r3, [pc, #156] @ (80182cc <prvHeapInit+0xac>)
  58334. 801822e: 60fb str r3, [r7, #12]
  58335. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  58336. 8018230: 68fb ldr r3, [r7, #12]
  58337. 8018232: f003 0307 and.w r3, r3, #7
  58338. 8018236: 2b00 cmp r3, #0
  58339. 8018238: d00c beq.n 8018254 <prvHeapInit+0x34>
  58340. {
  58341. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  58342. 801823a: 68fb ldr r3, [r7, #12]
  58343. 801823c: 3307 adds r3, #7
  58344. 801823e: 60fb str r3, [r7, #12]
  58345. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58346. 8018240: 68fb ldr r3, [r7, #12]
  58347. 8018242: f023 0307 bic.w r3, r3, #7
  58348. 8018246: 60fb str r3, [r7, #12]
  58349. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  58350. 8018248: 68ba ldr r2, [r7, #8]
  58351. 801824a: 68fb ldr r3, [r7, #12]
  58352. 801824c: 1ad3 subs r3, r2, r3
  58353. 801824e: 4a1f ldr r2, [pc, #124] @ (80182cc <prvHeapInit+0xac>)
  58354. 8018250: 4413 add r3, r2
  58355. 8018252: 60bb str r3, [r7, #8]
  58356. }
  58357. pucAlignedHeap = ( uint8_t * ) uxAddress;
  58358. 8018254: 68fb ldr r3, [r7, #12]
  58359. 8018256: 607b str r3, [r7, #4]
  58360. /* xStart is used to hold a pointer to the first item in the list of free
  58361. blocks. The void cast is used to prevent compiler warnings. */
  58362. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  58363. 8018258: 4a1d ldr r2, [pc, #116] @ (80182d0 <prvHeapInit+0xb0>)
  58364. 801825a: 687b ldr r3, [r7, #4]
  58365. 801825c: 6013 str r3, [r2, #0]
  58366. xStart.xBlockSize = ( size_t ) 0;
  58367. 801825e: 4b1c ldr r3, [pc, #112] @ (80182d0 <prvHeapInit+0xb0>)
  58368. 8018260: 2200 movs r2, #0
  58369. 8018262: 605a str r2, [r3, #4]
  58370. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  58371. at the end of the heap space. */
  58372. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  58373. 8018264: 687b ldr r3, [r7, #4]
  58374. 8018266: 68ba ldr r2, [r7, #8]
  58375. 8018268: 4413 add r3, r2
  58376. 801826a: 60fb str r3, [r7, #12]
  58377. uxAddress -= xHeapStructSize;
  58378. 801826c: 2208 movs r2, #8
  58379. 801826e: 68fb ldr r3, [r7, #12]
  58380. 8018270: 1a9b subs r3, r3, r2
  58381. 8018272: 60fb str r3, [r7, #12]
  58382. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58383. 8018274: 68fb ldr r3, [r7, #12]
  58384. 8018276: f023 0307 bic.w r3, r3, #7
  58385. 801827a: 60fb str r3, [r7, #12]
  58386. pxEnd = ( void * ) uxAddress;
  58387. 801827c: 68fb ldr r3, [r7, #12]
  58388. 801827e: 4a15 ldr r2, [pc, #84] @ (80182d4 <prvHeapInit+0xb4>)
  58389. 8018280: 6013 str r3, [r2, #0]
  58390. pxEnd->xBlockSize = 0;
  58391. 8018282: 4b14 ldr r3, [pc, #80] @ (80182d4 <prvHeapInit+0xb4>)
  58392. 8018284: 681b ldr r3, [r3, #0]
  58393. 8018286: 2200 movs r2, #0
  58394. 8018288: 605a str r2, [r3, #4]
  58395. pxEnd->pxNextFreeBlock = NULL;
  58396. 801828a: 4b12 ldr r3, [pc, #72] @ (80182d4 <prvHeapInit+0xb4>)
  58397. 801828c: 681b ldr r3, [r3, #0]
  58398. 801828e: 2200 movs r2, #0
  58399. 8018290: 601a str r2, [r3, #0]
  58400. /* To start with there is a single free block that is sized to take up the
  58401. entire heap space, minus the space taken by pxEnd. */
  58402. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  58403. 8018292: 687b ldr r3, [r7, #4]
  58404. 8018294: 603b str r3, [r7, #0]
  58405. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  58406. 8018296: 683b ldr r3, [r7, #0]
  58407. 8018298: 68fa ldr r2, [r7, #12]
  58408. 801829a: 1ad2 subs r2, r2, r3
  58409. 801829c: 683b ldr r3, [r7, #0]
  58410. 801829e: 605a str r2, [r3, #4]
  58411. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  58412. 80182a0: 4b0c ldr r3, [pc, #48] @ (80182d4 <prvHeapInit+0xb4>)
  58413. 80182a2: 681a ldr r2, [r3, #0]
  58414. 80182a4: 683b ldr r3, [r7, #0]
  58415. 80182a6: 601a str r2, [r3, #0]
  58416. /* Only one block exists - and it covers the entire usable heap space. */
  58417. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58418. 80182a8: 683b ldr r3, [r7, #0]
  58419. 80182aa: 685b ldr r3, [r3, #4]
  58420. 80182ac: 4a0a ldr r2, [pc, #40] @ (80182d8 <prvHeapInit+0xb8>)
  58421. 80182ae: 6013 str r3, [r2, #0]
  58422. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58423. 80182b0: 683b ldr r3, [r7, #0]
  58424. 80182b2: 685b ldr r3, [r3, #4]
  58425. 80182b4: 4a09 ldr r2, [pc, #36] @ (80182dc <prvHeapInit+0xbc>)
  58426. 80182b6: 6013 str r3, [r2, #0]
  58427. /* Work out the position of the top bit in a size_t variable. */
  58428. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  58429. 80182b8: 4b09 ldr r3, [pc, #36] @ (80182e0 <prvHeapInit+0xc0>)
  58430. 80182ba: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  58431. 80182be: 601a str r2, [r3, #0]
  58432. }
  58433. 80182c0: bf00 nop
  58434. 80182c2: 3714 adds r7, #20
  58435. 80182c4: 46bd mov sp, r7
  58436. 80182c6: f85d 7b04 ldr.w r7, [sp], #4
  58437. 80182ca: 4770 bx lr
  58438. 80182cc: 2400302c .word 0x2400302c
  58439. 80182d0: 2401302c .word 0x2401302c
  58440. 80182d4: 24013034 .word 0x24013034
  58441. 80182d8: 2401303c .word 0x2401303c
  58442. 80182dc: 24013038 .word 0x24013038
  58443. 80182e0: 24013048 .word 0x24013048
  58444. 080182e4 <prvInsertBlockIntoFreeList>:
  58445. /*-----------------------------------------------------------*/
  58446. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  58447. {
  58448. 80182e4: b480 push {r7}
  58449. 80182e6: b085 sub sp, #20
  58450. 80182e8: af00 add r7, sp, #0
  58451. 80182ea: 6078 str r0, [r7, #4]
  58452. BlockLink_t *pxIterator;
  58453. uint8_t *puc;
  58454. /* Iterate through the list until a block is found that has a higher address
  58455. than the block being inserted. */
  58456. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  58457. 80182ec: 4b28 ldr r3, [pc, #160] @ (8018390 <prvInsertBlockIntoFreeList+0xac>)
  58458. 80182ee: 60fb str r3, [r7, #12]
  58459. 80182f0: e002 b.n 80182f8 <prvInsertBlockIntoFreeList+0x14>
  58460. 80182f2: 68fb ldr r3, [r7, #12]
  58461. 80182f4: 681b ldr r3, [r3, #0]
  58462. 80182f6: 60fb str r3, [r7, #12]
  58463. 80182f8: 68fb ldr r3, [r7, #12]
  58464. 80182fa: 681b ldr r3, [r3, #0]
  58465. 80182fc: 687a ldr r2, [r7, #4]
  58466. 80182fe: 429a cmp r2, r3
  58467. 8018300: d8f7 bhi.n 80182f2 <prvInsertBlockIntoFreeList+0xe>
  58468. /* Nothing to do here, just iterate to the right position. */
  58469. }
  58470. /* Do the block being inserted, and the block it is being inserted after
  58471. make a contiguous block of memory? */
  58472. puc = ( uint8_t * ) pxIterator;
  58473. 8018302: 68fb ldr r3, [r7, #12]
  58474. 8018304: 60bb str r3, [r7, #8]
  58475. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  58476. 8018306: 68fb ldr r3, [r7, #12]
  58477. 8018308: 685b ldr r3, [r3, #4]
  58478. 801830a: 68ba ldr r2, [r7, #8]
  58479. 801830c: 4413 add r3, r2
  58480. 801830e: 687a ldr r2, [r7, #4]
  58481. 8018310: 429a cmp r2, r3
  58482. 8018312: d108 bne.n 8018326 <prvInsertBlockIntoFreeList+0x42>
  58483. {
  58484. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  58485. 8018314: 68fb ldr r3, [r7, #12]
  58486. 8018316: 685a ldr r2, [r3, #4]
  58487. 8018318: 687b ldr r3, [r7, #4]
  58488. 801831a: 685b ldr r3, [r3, #4]
  58489. 801831c: 441a add r2, r3
  58490. 801831e: 68fb ldr r3, [r7, #12]
  58491. 8018320: 605a str r2, [r3, #4]
  58492. pxBlockToInsert = pxIterator;
  58493. 8018322: 68fb ldr r3, [r7, #12]
  58494. 8018324: 607b str r3, [r7, #4]
  58495. mtCOVERAGE_TEST_MARKER();
  58496. }
  58497. /* Do the block being inserted, and the block it is being inserted before
  58498. make a contiguous block of memory? */
  58499. puc = ( uint8_t * ) pxBlockToInsert;
  58500. 8018326: 687b ldr r3, [r7, #4]
  58501. 8018328: 60bb str r3, [r7, #8]
  58502. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  58503. 801832a: 687b ldr r3, [r7, #4]
  58504. 801832c: 685b ldr r3, [r3, #4]
  58505. 801832e: 68ba ldr r2, [r7, #8]
  58506. 8018330: 441a add r2, r3
  58507. 8018332: 68fb ldr r3, [r7, #12]
  58508. 8018334: 681b ldr r3, [r3, #0]
  58509. 8018336: 429a cmp r2, r3
  58510. 8018338: d118 bne.n 801836c <prvInsertBlockIntoFreeList+0x88>
  58511. {
  58512. if( pxIterator->pxNextFreeBlock != pxEnd )
  58513. 801833a: 68fb ldr r3, [r7, #12]
  58514. 801833c: 681a ldr r2, [r3, #0]
  58515. 801833e: 4b15 ldr r3, [pc, #84] @ (8018394 <prvInsertBlockIntoFreeList+0xb0>)
  58516. 8018340: 681b ldr r3, [r3, #0]
  58517. 8018342: 429a cmp r2, r3
  58518. 8018344: d00d beq.n 8018362 <prvInsertBlockIntoFreeList+0x7e>
  58519. {
  58520. /* Form one big block from the two blocks. */
  58521. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  58522. 8018346: 687b ldr r3, [r7, #4]
  58523. 8018348: 685a ldr r2, [r3, #4]
  58524. 801834a: 68fb ldr r3, [r7, #12]
  58525. 801834c: 681b ldr r3, [r3, #0]
  58526. 801834e: 685b ldr r3, [r3, #4]
  58527. 8018350: 441a add r2, r3
  58528. 8018352: 687b ldr r3, [r7, #4]
  58529. 8018354: 605a str r2, [r3, #4]
  58530. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  58531. 8018356: 68fb ldr r3, [r7, #12]
  58532. 8018358: 681b ldr r3, [r3, #0]
  58533. 801835a: 681a ldr r2, [r3, #0]
  58534. 801835c: 687b ldr r3, [r7, #4]
  58535. 801835e: 601a str r2, [r3, #0]
  58536. 8018360: e008 b.n 8018374 <prvInsertBlockIntoFreeList+0x90>
  58537. }
  58538. else
  58539. {
  58540. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  58541. 8018362: 4b0c ldr r3, [pc, #48] @ (8018394 <prvInsertBlockIntoFreeList+0xb0>)
  58542. 8018364: 681a ldr r2, [r3, #0]
  58543. 8018366: 687b ldr r3, [r7, #4]
  58544. 8018368: 601a str r2, [r3, #0]
  58545. 801836a: e003 b.n 8018374 <prvInsertBlockIntoFreeList+0x90>
  58546. }
  58547. }
  58548. else
  58549. {
  58550. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  58551. 801836c: 68fb ldr r3, [r7, #12]
  58552. 801836e: 681a ldr r2, [r3, #0]
  58553. 8018370: 687b ldr r3, [r7, #4]
  58554. 8018372: 601a str r2, [r3, #0]
  58555. /* If the block being inserted plugged a gab, so was merged with the block
  58556. before and the block after, then it's pxNextFreeBlock pointer will have
  58557. already been set, and should not be set here as that would make it point
  58558. to itself. */
  58559. if( pxIterator != pxBlockToInsert )
  58560. 8018374: 68fa ldr r2, [r7, #12]
  58561. 8018376: 687b ldr r3, [r7, #4]
  58562. 8018378: 429a cmp r2, r3
  58563. 801837a: d002 beq.n 8018382 <prvInsertBlockIntoFreeList+0x9e>
  58564. {
  58565. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  58566. 801837c: 68fb ldr r3, [r7, #12]
  58567. 801837e: 687a ldr r2, [r7, #4]
  58568. 8018380: 601a str r2, [r3, #0]
  58569. }
  58570. else
  58571. {
  58572. mtCOVERAGE_TEST_MARKER();
  58573. }
  58574. }
  58575. 8018382: bf00 nop
  58576. 8018384: 3714 adds r7, #20
  58577. 8018386: 46bd mov sp, r7
  58578. 8018388: f85d 7b04 ldr.w r7, [sp], #4
  58579. 801838c: 4770 bx lr
  58580. 801838e: bf00 nop
  58581. 8018390: 2401302c .word 0x2401302c
  58582. 8018394: 24013034 .word 0x24013034
  58583. 08018398 <memset>:
  58584. 8018398: 4402 add r2, r0
  58585. 801839a: 4603 mov r3, r0
  58586. 801839c: 4293 cmp r3, r2
  58587. 801839e: d100 bne.n 80183a2 <memset+0xa>
  58588. 80183a0: 4770 bx lr
  58589. 80183a2: f803 1b01 strb.w r1, [r3], #1
  58590. 80183a6: e7f9 b.n 801839c <memset+0x4>
  58591. 080183a8 <_reclaim_reent>:
  58592. 80183a8: 4b29 ldr r3, [pc, #164] @ (8018450 <_reclaim_reent+0xa8>)
  58593. 80183aa: 681b ldr r3, [r3, #0]
  58594. 80183ac: 4283 cmp r3, r0
  58595. 80183ae: b570 push {r4, r5, r6, lr}
  58596. 80183b0: 4604 mov r4, r0
  58597. 80183b2: d04b beq.n 801844c <_reclaim_reent+0xa4>
  58598. 80183b4: 69c3 ldr r3, [r0, #28]
  58599. 80183b6: b1ab cbz r3, 80183e4 <_reclaim_reent+0x3c>
  58600. 80183b8: 68db ldr r3, [r3, #12]
  58601. 80183ba: b16b cbz r3, 80183d8 <_reclaim_reent+0x30>
  58602. 80183bc: 2500 movs r5, #0
  58603. 80183be: 69e3 ldr r3, [r4, #28]
  58604. 80183c0: 68db ldr r3, [r3, #12]
  58605. 80183c2: 5959 ldr r1, [r3, r5]
  58606. 80183c4: 2900 cmp r1, #0
  58607. 80183c6: d13b bne.n 8018440 <_reclaim_reent+0x98>
  58608. 80183c8: 3504 adds r5, #4
  58609. 80183ca: 2d80 cmp r5, #128 @ 0x80
  58610. 80183cc: d1f7 bne.n 80183be <_reclaim_reent+0x16>
  58611. 80183ce: 69e3 ldr r3, [r4, #28]
  58612. 80183d0: 4620 mov r0, r4
  58613. 80183d2: 68d9 ldr r1, [r3, #12]
  58614. 80183d4: f000 f878 bl 80184c8 <_free_r>
  58615. 80183d8: 69e3 ldr r3, [r4, #28]
  58616. 80183da: 6819 ldr r1, [r3, #0]
  58617. 80183dc: b111 cbz r1, 80183e4 <_reclaim_reent+0x3c>
  58618. 80183de: 4620 mov r0, r4
  58619. 80183e0: f000 f872 bl 80184c8 <_free_r>
  58620. 80183e4: 6961 ldr r1, [r4, #20]
  58621. 80183e6: b111 cbz r1, 80183ee <_reclaim_reent+0x46>
  58622. 80183e8: 4620 mov r0, r4
  58623. 80183ea: f000 f86d bl 80184c8 <_free_r>
  58624. 80183ee: 69e1 ldr r1, [r4, #28]
  58625. 80183f0: b111 cbz r1, 80183f8 <_reclaim_reent+0x50>
  58626. 80183f2: 4620 mov r0, r4
  58627. 80183f4: f000 f868 bl 80184c8 <_free_r>
  58628. 80183f8: 6b21 ldr r1, [r4, #48] @ 0x30
  58629. 80183fa: b111 cbz r1, 8018402 <_reclaim_reent+0x5a>
  58630. 80183fc: 4620 mov r0, r4
  58631. 80183fe: f000 f863 bl 80184c8 <_free_r>
  58632. 8018402: 6b61 ldr r1, [r4, #52] @ 0x34
  58633. 8018404: b111 cbz r1, 801840c <_reclaim_reent+0x64>
  58634. 8018406: 4620 mov r0, r4
  58635. 8018408: f000 f85e bl 80184c8 <_free_r>
  58636. 801840c: 6ba1 ldr r1, [r4, #56] @ 0x38
  58637. 801840e: b111 cbz r1, 8018416 <_reclaim_reent+0x6e>
  58638. 8018410: 4620 mov r0, r4
  58639. 8018412: f000 f859 bl 80184c8 <_free_r>
  58640. 8018416: 6ca1 ldr r1, [r4, #72] @ 0x48
  58641. 8018418: b111 cbz r1, 8018420 <_reclaim_reent+0x78>
  58642. 801841a: 4620 mov r0, r4
  58643. 801841c: f000 f854 bl 80184c8 <_free_r>
  58644. 8018420: 6c61 ldr r1, [r4, #68] @ 0x44
  58645. 8018422: b111 cbz r1, 801842a <_reclaim_reent+0x82>
  58646. 8018424: 4620 mov r0, r4
  58647. 8018426: f000 f84f bl 80184c8 <_free_r>
  58648. 801842a: 6ae1 ldr r1, [r4, #44] @ 0x2c
  58649. 801842c: b111 cbz r1, 8018434 <_reclaim_reent+0x8c>
  58650. 801842e: 4620 mov r0, r4
  58651. 8018430: f000 f84a bl 80184c8 <_free_r>
  58652. 8018434: 6a23 ldr r3, [r4, #32]
  58653. 8018436: b14b cbz r3, 801844c <_reclaim_reent+0xa4>
  58654. 8018438: 4620 mov r0, r4
  58655. 801843a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  58656. 801843e: 4718 bx r3
  58657. 8018440: 680e ldr r6, [r1, #0]
  58658. 8018442: 4620 mov r0, r4
  58659. 8018444: f000 f840 bl 80184c8 <_free_r>
  58660. 8018448: 4631 mov r1, r6
  58661. 801844a: e7bb b.n 80183c4 <_reclaim_reent+0x1c>
  58662. 801844c: bd70 pop {r4, r5, r6, pc}
  58663. 801844e: bf00 nop
  58664. 8018450: 24000048 .word 0x24000048
  58665. 08018454 <__errno>:
  58666. 8018454: 4b01 ldr r3, [pc, #4] @ (801845c <__errno+0x8>)
  58667. 8018456: 6818 ldr r0, [r3, #0]
  58668. 8018458: 4770 bx lr
  58669. 801845a: bf00 nop
  58670. 801845c: 24000048 .word 0x24000048
  58671. 08018460 <__libc_init_array>:
  58672. 8018460: b570 push {r4, r5, r6, lr}
  58673. 8018462: 4d0d ldr r5, [pc, #52] @ (8018498 <__libc_init_array+0x38>)
  58674. 8018464: 4c0d ldr r4, [pc, #52] @ (801849c <__libc_init_array+0x3c>)
  58675. 8018466: 1b64 subs r4, r4, r5
  58676. 8018468: 10a4 asrs r4, r4, #2
  58677. 801846a: 2600 movs r6, #0
  58678. 801846c: 42a6 cmp r6, r4
  58679. 801846e: d109 bne.n 8018484 <__libc_init_array+0x24>
  58680. 8018470: 4d0b ldr r5, [pc, #44] @ (80184a0 <__libc_init_array+0x40>)
  58681. 8018472: 4c0c ldr r4, [pc, #48] @ (80184a4 <__libc_init_array+0x44>)
  58682. 8018474: f000 f920 bl 80186b8 <_init>
  58683. 8018478: 1b64 subs r4, r4, r5
  58684. 801847a: 10a4 asrs r4, r4, #2
  58685. 801847c: 2600 movs r6, #0
  58686. 801847e: 42a6 cmp r6, r4
  58687. 8018480: d105 bne.n 801848e <__libc_init_array+0x2e>
  58688. 8018482: bd70 pop {r4, r5, r6, pc}
  58689. 8018484: f855 3b04 ldr.w r3, [r5], #4
  58690. 8018488: 4798 blx r3
  58691. 801848a: 3601 adds r6, #1
  58692. 801848c: e7ee b.n 801846c <__libc_init_array+0xc>
  58693. 801848e: f855 3b04 ldr.w r3, [r5], #4
  58694. 8018492: 4798 blx r3
  58695. 8018494: 3601 adds r6, #1
  58696. 8018496: e7f2 b.n 801847e <__libc_init_array+0x1e>
  58697. 8018498: 080187dc .word 0x080187dc
  58698. 801849c: 080187dc .word 0x080187dc
  58699. 80184a0: 080187dc .word 0x080187dc
  58700. 80184a4: 080187e0 .word 0x080187e0
  58701. 080184a8 <__retarget_lock_acquire_recursive>:
  58702. 80184a8: 4770 bx lr
  58703. 080184aa <__retarget_lock_release_recursive>:
  58704. 80184aa: 4770 bx lr
  58705. 080184ac <memcpy>:
  58706. 80184ac: 440a add r2, r1
  58707. 80184ae: 4291 cmp r1, r2
  58708. 80184b0: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58709. 80184b4: d100 bne.n 80184b8 <memcpy+0xc>
  58710. 80184b6: 4770 bx lr
  58711. 80184b8: b510 push {r4, lr}
  58712. 80184ba: f811 4b01 ldrb.w r4, [r1], #1
  58713. 80184be: f803 4f01 strb.w r4, [r3, #1]!
  58714. 80184c2: 4291 cmp r1, r2
  58715. 80184c4: d1f9 bne.n 80184ba <memcpy+0xe>
  58716. 80184c6: bd10 pop {r4, pc}
  58717. 080184c8 <_free_r>:
  58718. 80184c8: b538 push {r3, r4, r5, lr}
  58719. 80184ca: 4605 mov r5, r0
  58720. 80184cc: 2900 cmp r1, #0
  58721. 80184ce: d041 beq.n 8018554 <_free_r+0x8c>
  58722. 80184d0: f851 3c04 ldr.w r3, [r1, #-4]
  58723. 80184d4: 1f0c subs r4, r1, #4
  58724. 80184d6: 2b00 cmp r3, #0
  58725. 80184d8: bfb8 it lt
  58726. 80184da: 18e4 addlt r4, r4, r3
  58727. 80184dc: f000 f83e bl 801855c <__malloc_lock>
  58728. 80184e0: 4a1d ldr r2, [pc, #116] @ (8018558 <_free_r+0x90>)
  58729. 80184e2: 6813 ldr r3, [r2, #0]
  58730. 80184e4: b933 cbnz r3, 80184f4 <_free_r+0x2c>
  58731. 80184e6: 6063 str r3, [r4, #4]
  58732. 80184e8: 6014 str r4, [r2, #0]
  58733. 80184ea: 4628 mov r0, r5
  58734. 80184ec: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58735. 80184f0: f000 b83a b.w 8018568 <__malloc_unlock>
  58736. 80184f4: 42a3 cmp r3, r4
  58737. 80184f6: d908 bls.n 801850a <_free_r+0x42>
  58738. 80184f8: 6820 ldr r0, [r4, #0]
  58739. 80184fa: 1821 adds r1, r4, r0
  58740. 80184fc: 428b cmp r3, r1
  58741. 80184fe: bf01 itttt eq
  58742. 8018500: 6819 ldreq r1, [r3, #0]
  58743. 8018502: 685b ldreq r3, [r3, #4]
  58744. 8018504: 1809 addeq r1, r1, r0
  58745. 8018506: 6021 streq r1, [r4, #0]
  58746. 8018508: e7ed b.n 80184e6 <_free_r+0x1e>
  58747. 801850a: 461a mov r2, r3
  58748. 801850c: 685b ldr r3, [r3, #4]
  58749. 801850e: b10b cbz r3, 8018514 <_free_r+0x4c>
  58750. 8018510: 42a3 cmp r3, r4
  58751. 8018512: d9fa bls.n 801850a <_free_r+0x42>
  58752. 8018514: 6811 ldr r1, [r2, #0]
  58753. 8018516: 1850 adds r0, r2, r1
  58754. 8018518: 42a0 cmp r0, r4
  58755. 801851a: d10b bne.n 8018534 <_free_r+0x6c>
  58756. 801851c: 6820 ldr r0, [r4, #0]
  58757. 801851e: 4401 add r1, r0
  58758. 8018520: 1850 adds r0, r2, r1
  58759. 8018522: 4283 cmp r3, r0
  58760. 8018524: 6011 str r1, [r2, #0]
  58761. 8018526: d1e0 bne.n 80184ea <_free_r+0x22>
  58762. 8018528: 6818 ldr r0, [r3, #0]
  58763. 801852a: 685b ldr r3, [r3, #4]
  58764. 801852c: 6053 str r3, [r2, #4]
  58765. 801852e: 4408 add r0, r1
  58766. 8018530: 6010 str r0, [r2, #0]
  58767. 8018532: e7da b.n 80184ea <_free_r+0x22>
  58768. 8018534: d902 bls.n 801853c <_free_r+0x74>
  58769. 8018536: 230c movs r3, #12
  58770. 8018538: 602b str r3, [r5, #0]
  58771. 801853a: e7d6 b.n 80184ea <_free_r+0x22>
  58772. 801853c: 6820 ldr r0, [r4, #0]
  58773. 801853e: 1821 adds r1, r4, r0
  58774. 8018540: 428b cmp r3, r1
  58775. 8018542: bf04 itt eq
  58776. 8018544: 6819 ldreq r1, [r3, #0]
  58777. 8018546: 685b ldreq r3, [r3, #4]
  58778. 8018548: 6063 str r3, [r4, #4]
  58779. 801854a: bf04 itt eq
  58780. 801854c: 1809 addeq r1, r1, r0
  58781. 801854e: 6021 streq r1, [r4, #0]
  58782. 8018550: 6054 str r4, [r2, #4]
  58783. 8018552: e7ca b.n 80184ea <_free_r+0x22>
  58784. 8018554: bd38 pop {r3, r4, r5, pc}
  58785. 8018556: bf00 nop
  58786. 8018558: 24013188 .word 0x24013188
  58787. 0801855c <__malloc_lock>:
  58788. 801855c: 4801 ldr r0, [pc, #4] @ (8018564 <__malloc_lock+0x8>)
  58789. 801855e: f7ff bfa3 b.w 80184a8 <__retarget_lock_acquire_recursive>
  58790. 8018562: bf00 nop
  58791. 8018564: 24013184 .word 0x24013184
  58792. 08018568 <__malloc_unlock>:
  58793. 8018568: 4801 ldr r0, [pc, #4] @ (8018570 <__malloc_unlock+0x8>)
  58794. 801856a: f7ff bf9e b.w 80184aa <__retarget_lock_release_recursive>
  58795. 801856e: bf00 nop
  58796. 8018570: 24013184 .word 0x24013184
  58797. 08018574 <fmodf>:
  58798. 8018574: b508 push {r3, lr}
  58799. 8018576: ed2d 8b02 vpush {d8}
  58800. 801857a: eef0 8a40 vmov.f32 s17, s0
  58801. 801857e: eeb0 8a60 vmov.f32 s16, s1
  58802. 8018582: f000 f817 bl 80185b4 <__ieee754_fmodf>
  58803. 8018586: eef4 8a48 vcmp.f32 s17, s16
  58804. 801858a: eef1 fa10 vmrs APSR_nzcv, fpscr
  58805. 801858e: d60c bvs.n 80185aa <fmodf+0x36>
  58806. 8018590: eddf 8a07 vldr s17, [pc, #28] @ 80185b0 <fmodf+0x3c>
  58807. 8018594: eeb4 8a68 vcmp.f32 s16, s17
  58808. 8018598: eef1 fa10 vmrs APSR_nzcv, fpscr
  58809. 801859c: d105 bne.n 80185aa <fmodf+0x36>
  58810. 801859e: f7ff ff59 bl 8018454 <__errno>
  58811. 80185a2: ee88 0aa8 vdiv.f32 s0, s17, s17
  58812. 80185a6: 2321 movs r3, #33 @ 0x21
  58813. 80185a8: 6003 str r3, [r0, #0]
  58814. 80185aa: ecbd 8b02 vpop {d8}
  58815. 80185ae: bd08 pop {r3, pc}
  58816. 80185b0: 00000000 .word 0x00000000
  58817. 080185b4 <__ieee754_fmodf>:
  58818. 80185b4: b5f0 push {r4, r5, r6, r7, lr}
  58819. 80185b6: ee10 5a90 vmov r5, s1
  58820. 80185ba: f025 4000 bic.w r0, r5, #2147483648 @ 0x80000000
  58821. 80185be: 1e43 subs r3, r0, #1
  58822. 80185c0: f1b3 4fff cmp.w r3, #2139095040 @ 0x7f800000
  58823. 80185c4: d206 bcs.n 80185d4 <__ieee754_fmodf+0x20>
  58824. 80185c6: ee10 3a10 vmov r3, s0
  58825. 80185ca: f023 4600 bic.w r6, r3, #2147483648 @ 0x80000000
  58826. 80185ce: f1b6 4fff cmp.w r6, #2139095040 @ 0x7f800000
  58827. 80185d2: d304 bcc.n 80185de <__ieee754_fmodf+0x2a>
  58828. 80185d4: ee60 0a20 vmul.f32 s1, s0, s1
  58829. 80185d8: ee80 0aa0 vdiv.f32 s0, s1, s1
  58830. 80185dc: bdf0 pop {r4, r5, r6, r7, pc}
  58831. 80185de: 4286 cmp r6, r0
  58832. 80185e0: dbfc blt.n 80185dc <__ieee754_fmodf+0x28>
  58833. 80185e2: f003 4400 and.w r4, r3, #2147483648 @ 0x80000000
  58834. 80185e6: d105 bne.n 80185f4 <__ieee754_fmodf+0x40>
  58835. 80185e8: 4b32 ldr r3, [pc, #200] @ (80186b4 <__ieee754_fmodf+0x100>)
  58836. 80185ea: eb03 7354 add.w r3, r3, r4, lsr #29
  58837. 80185ee: ed93 0a00 vldr s0, [r3]
  58838. 80185f2: e7f3 b.n 80185dc <__ieee754_fmodf+0x28>
  58839. 80185f4: f013 4fff tst.w r3, #2139095040 @ 0x7f800000
  58840. 80185f8: d140 bne.n 801867c <__ieee754_fmodf+0xc8>
  58841. 80185fa: 0232 lsls r2, r6, #8
  58842. 80185fc: f06f 017d mvn.w r1, #125 @ 0x7d
  58843. 8018600: 2a00 cmp r2, #0
  58844. 8018602: dc38 bgt.n 8018676 <__ieee754_fmodf+0xc2>
  58845. 8018604: f015 4fff tst.w r5, #2139095040 @ 0x7f800000
  58846. 8018608: d13e bne.n 8018688 <__ieee754_fmodf+0xd4>
  58847. 801860a: 0207 lsls r7, r0, #8
  58848. 801860c: f06f 027d mvn.w r2, #125 @ 0x7d
  58849. 8018610: 2f00 cmp r7, #0
  58850. 8018612: da36 bge.n 8018682 <__ieee754_fmodf+0xce>
  58851. 8018614: f111 0f7e cmn.w r1, #126 @ 0x7e
  58852. 8018618: bfb9 ittee lt
  58853. 801861a: f06f 037d mvnlt.w r3, #125 @ 0x7d
  58854. 801861e: 1a5b sublt r3, r3, r1
  58855. 8018620: f3c3 0316 ubfxge r3, r3, #0, #23
  58856. 8018624: f443 0300 orrge.w r3, r3, #8388608 @ 0x800000
  58857. 8018628: bfb8 it lt
  58858. 801862a: fa06 f303 lsllt.w r3, r6, r3
  58859. 801862e: f112 0f7e cmn.w r2, #126 @ 0x7e
  58860. 8018632: bfb5 itete lt
  58861. 8018634: f06f 057d mvnlt.w r5, #125 @ 0x7d
  58862. 8018638: f3c5 0516 ubfxge r5, r5, #0, #23
  58863. 801863c: 1aad sublt r5, r5, r2
  58864. 801863e: f445 0000 orrge.w r0, r5, #8388608 @ 0x800000
  58865. 8018642: bfb8 it lt
  58866. 8018644: 40a8 lsllt r0, r5
  58867. 8018646: 1a89 subs r1, r1, r2
  58868. 8018648: 1a1d subs r5, r3, r0
  58869. 801864a: bb01 cbnz r1, 801868e <__ieee754_fmodf+0xda>
  58870. 801864c: ea13 0325 ands.w r3, r3, r5, asr #32
  58871. 8018650: bf38 it cc
  58872. 8018652: 462b movcc r3, r5
  58873. 8018654: 2b00 cmp r3, #0
  58874. 8018656: d0c7 beq.n 80185e8 <__ieee754_fmodf+0x34>
  58875. 8018658: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  58876. 801865c: db1f blt.n 801869e <__ieee754_fmodf+0xea>
  58877. 801865e: f112 0f7e cmn.w r2, #126 @ 0x7e
  58878. 8018662: db1f blt.n 80186a4 <__ieee754_fmodf+0xf0>
  58879. 8018664: f5a3 0300 sub.w r3, r3, #8388608 @ 0x800000
  58880. 8018668: 327f adds r2, #127 @ 0x7f
  58881. 801866a: 4323 orrs r3, r4
  58882. 801866c: ea43 53c2 orr.w r3, r3, r2, lsl #23
  58883. 8018670: ee00 3a10 vmov s0, r3
  58884. 8018674: e7b2 b.n 80185dc <__ieee754_fmodf+0x28>
  58885. 8018676: 3901 subs r1, #1
  58886. 8018678: 0052 lsls r2, r2, #1
  58887. 801867a: e7c1 b.n 8018600 <__ieee754_fmodf+0x4c>
  58888. 801867c: 15f1 asrs r1, r6, #23
  58889. 801867e: 397f subs r1, #127 @ 0x7f
  58890. 8018680: e7c0 b.n 8018604 <__ieee754_fmodf+0x50>
  58891. 8018682: 3a01 subs r2, #1
  58892. 8018684: 007f lsls r7, r7, #1
  58893. 8018686: e7c3 b.n 8018610 <__ieee754_fmodf+0x5c>
  58894. 8018688: 15c2 asrs r2, r0, #23
  58895. 801868a: 3a7f subs r2, #127 @ 0x7f
  58896. 801868c: e7c2 b.n 8018614 <__ieee754_fmodf+0x60>
  58897. 801868e: 2d00 cmp r5, #0
  58898. 8018690: da02 bge.n 8018698 <__ieee754_fmodf+0xe4>
  58899. 8018692: 005b lsls r3, r3, #1
  58900. 8018694: 3901 subs r1, #1
  58901. 8018696: e7d7 b.n 8018648 <__ieee754_fmodf+0x94>
  58902. 8018698: d0a6 beq.n 80185e8 <__ieee754_fmodf+0x34>
  58903. 801869a: 006b lsls r3, r5, #1
  58904. 801869c: e7fa b.n 8018694 <__ieee754_fmodf+0xe0>
  58905. 801869e: 005b lsls r3, r3, #1
  58906. 80186a0: 3a01 subs r2, #1
  58907. 80186a2: e7d9 b.n 8018658 <__ieee754_fmodf+0xa4>
  58908. 80186a4: f1c2 22ff rsb r2, r2, #4278255360 @ 0xff00ff00
  58909. 80186a8: f502 027f add.w r2, r2, #16711680 @ 0xff0000
  58910. 80186ac: 3282 adds r2, #130 @ 0x82
  58911. 80186ae: 4113 asrs r3, r2
  58912. 80186b0: 4323 orrs r3, r4
  58913. 80186b2: e7dd b.n 8018670 <__ieee754_fmodf+0xbc>
  58914. 80186b4: 080187cc .word 0x080187cc
  58915. 080186b8 <_init>:
  58916. 80186b8: b5f8 push {r3, r4, r5, r6, r7, lr}
  58917. 80186ba: bf00 nop
  58918. 80186bc: bcf8 pop {r3, r4, r5, r6, r7}
  58919. 80186be: bc08 pop {r3}
  58920. 80186c0: 469e mov lr, r3
  58921. 80186c2: 4770 bx lr
  58922. 080186c4 <_fini>:
  58923. 80186c4: b5f8 push {r3, r4, r5, r6, r7, lr}
  58924. 80186c6: bf00 nop
  58925. 80186c8: bcf8 pop {r3, r4, r5, r6, r7}
  58926. 80186ca: bc08 pop {r3}
  58927. 80186cc: 469e mov lr, r3
  58928. 80186ce: 4770 bx lr