OZE_Sensor.list 2.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705
  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 000183b0 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000104 08018650 08018650 00019650 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08018754 08018754 00019754 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 0801875c 0801875c 0001975c 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08018760 08018760 00019760 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000098 24000000 08018764 0001a000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 000130ec 240000a0 080187fc 0001a0a0 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 2401318c 080187fc 0001a18c 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001a098 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 0003514c 00000000 00000000 0001a0c6 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 00006452 00000000 00000000 0004f212 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002478 00000000 00000000 00055668 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0003ef10 00000000 00000000 00057ae0 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000317e9 00000000 00000000 000969f0 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 00186a2c 00000000 00000000 000c81d9 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0024ec05 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c1d 00000000 00000000 0024ec48 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 00009d14 00000000 00000000 00250868 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 0025a57c 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: 08018638 .word 0x08018638
  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: 08018638 .word 0x08018638
  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 ff82 bl 800b534 <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 f838 bl 80146b4 <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 fb2e bl 8005d84 <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 ff91 bl 800b69c <HAL_IWDG_Refresh>
  643. #endif
  644. /* USER CODE END 2 */
  645. /* Init scheduler */
  646. osKernelInitialize();
  647. 800077a: f013 fc2b bl 8013fd4 <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 fd33 bl 80141f0 <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 fd2a bl 80141f0 <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 fd21 bl 80141f0 <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 fd18 bl 80141f0 <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 fc4c bl 8014068 <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 ff60 bl 800b69c <HAL_IWDG_Refresh>
  709. #endif
  710. UartTasksInit();
  711. 80007dc: f004 f8f8 bl 80049d0 <UartTasksInit>
  712. #ifdef USER_MOCKS
  713. MockMeasurmetsTaskInit();
  714. #else
  715. MeasTasksInit();
  716. 80007e0: f001 fb7a bl 8001ed8 <MeasTasksInit>
  717. #endif
  718. PositionControlTaskInit();
  719. 80007e4: f002 fdb2 bl 800334c <PositionControlTaskInit>
  720. /* USER CODE BEGIN RTOS_EVENTS */
  721. /* add events, ... */
  722. /* USER CODE END RTOS_EVENTS */
  723. /* Start scheduler */
  724. osKernelStart();
  725. 80007e8: f013 fc18 bl 801401c <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: 080186cc .word 0x080186cc
  735. 80007fc: 08001d15 .word 0x08001d15
  736. 8000800: 240006e4 .word 0x240006e4
  737. 8000804: 080186dc .word 0x080186dc
  738. 8000808: 08001d2d .word 0x08001d2d
  739. 800080c: 24000714 .word 0x24000714
  740. 8000810: 080186ec .word 0x080186ec
  741. 8000814: 08001d49 .word 0x08001d49
  742. 8000818: 24000744 .word 0x24000744
  743. 800081c: 080186fc .word 0x080186fc
  744. 8000820: 08001d85 .word 0x08001d85
  745. 8000824: 24000774 .word 0x24000774
  746. 8000828: 080186a8 .word 0x080186a8
  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 fd68 bl 8018318 <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 fd62 bl 8018318 <memset>
  771. /** Supply configuration update enable
  772. */
  773. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  774. 8000854: 2002 movs r0, #2
  775. 8000856: f00a ffbb bl 800b7d0 <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 f838 bl 800b950 <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 fc77 bl 800c204 <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 fceb bl 8018318 <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 f812 bl 800c9a0 <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 fc65 bl 80062e4 <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 fd76 bl 8007520 <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 feb9 bl 80067d8 <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 feab bl 80067d8 <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 fe9d bl 80067d8 <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 fe8f bl 80067d8 <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 fe80 bl 80067d8 <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 fe71 bl 80067d8 <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 fe62 bl 80067d8 <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 fc96 bl 8007458 <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 fb81 bl 80062e4 <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 fde2 bl 80067d8 <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 fdd4 bl 80067d8 <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 fdc6 bl 80067d8 <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 fbfa bl 8007458 <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 faf0 bl 80062e4 <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 fd51 bl 80067d8 <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 fd43 bl 80067d8 <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 fd35 bl 80067d8 <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 fd27 bl 80067d8 <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 fd18 bl 80067d8 <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 fb4c bl 8007458 <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 fc57 bl 80076dc <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 ff16 bl 8007cb0 <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 fa35 bl 8018318 <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 f901 bl 80080bc <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 f9f0 bl 80082c4 <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 f9e5 bl 80082c4 <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 fb64 bl 800b5fe <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 fa01 bl 800f364 <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 f9b7 bl 8018318 <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 fb66 bl 800f6a8 <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 f8b9 bl 8011170 <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 f88d bl 801014c <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 f90b bl 801128c <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 f9c5 bl 8004424 <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 f98d bl 800f428 <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 f925 bl 8010374 <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 fcb3 bl 800faa0 <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 f80c bl 8011170 <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 ff4a bl 8010012 <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 ff3f bl 8010012 <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 fa56 bl 800f6a8 <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 ffab bl 8011170 <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 ff85 bl 801014c <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 ff70 bl 801014c <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 ff5d bl 801014c <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 ff4a bl 801014c <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 f89d bl 8004424 <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 f864 bl 800f428 <HAL_TIM_Base_Init>
  2624. 8001360: 4603 mov r3, r0
  2625. 8001362: 2b00 cmp r3, #0
  2626. 8001364: d001 beq.n 800136a <MX_TIM4_Init+0x66>
  2627. {
  2628. Error_Handler();
  2629. 8001366: f000 fdb1 bl 8001ecc <Error_Handler>
  2630. }
  2631. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2632. 800136a: f44f 5380 mov.w r3, #4096 @ 0x1000
  2633. 800136e: 623b str r3, [r7, #32]
  2634. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2635. 8001370: f107 0320 add.w r3, r7, #32
  2636. 8001374: 4619 mov r1, r3
  2637. 8001376: 4820 ldr r0, [pc, #128] @ (80013f8 <MX_TIM4_Init+0xf4>)
  2638. 8001378: f00e fffc bl 8010374 <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 fb8a bl 800faa0 <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 fee3 bl 8011170 <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 fe21 bl 8010012 <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 fe16 bl 8010012 <HAL_TIM_IC_ConfigChannel>
  2705. 80013e6: 4603 mov r3, r0
  2706. 80013e8: 2b00 cmp r3, #0
  2707. 80013ea: d001 beq.n 80013f0 <MX_TIM4_Init+0xec>
  2708. {
  2709. Error_Handler();
  2710. 80013ec: f000 fd6e bl 8001ecc <Error_Handler>
  2711. }
  2712. /* USER CODE BEGIN TIM4_Init 2 */
  2713. /* USER CODE END TIM4_Init 2 */
  2714. }
  2715. 80013f0: bf00 nop
  2716. 80013f2: 3730 adds r7, #48 @ 0x30
  2717. 80013f4: 46bd mov sp, r7
  2718. 80013f6: bd80 pop {r7, pc}
  2719. 80013f8: 24000520 .word 0x24000520
  2720. 80013fc: 40000800 .word 0x40000800
  2721. 08001400 <MX_TIM8_Init>:
  2722. * @brief TIM8 Initialization Function
  2723. * @param None
  2724. * @retval None
  2725. */
  2726. static void MX_TIM8_Init(void)
  2727. {
  2728. 8001400: b580 push {r7, lr}
  2729. 8001402: b088 sub sp, #32
  2730. 8001404: af00 add r7, sp, #0
  2731. /* USER CODE BEGIN TIM8_Init 0 */
  2732. /* USER CODE END TIM8_Init 0 */
  2733. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2734. 8001406: f107 0310 add.w r3, r7, #16
  2735. 800140a: 2200 movs r2, #0
  2736. 800140c: 601a str r2, [r3, #0]
  2737. 800140e: 605a str r2, [r3, #4]
  2738. 8001410: 609a str r2, [r3, #8]
  2739. 8001412: 60da str r2, [r3, #12]
  2740. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2741. 8001414: 1d3b adds r3, r7, #4
  2742. 8001416: 2200 movs r2, #0
  2743. 8001418: 601a str r2, [r3, #0]
  2744. 800141a: 605a str r2, [r3, #4]
  2745. 800141c: 609a str r2, [r3, #8]
  2746. /* USER CODE BEGIN TIM8_Init 1 */
  2747. /* USER CODE END TIM8_Init 1 */
  2748. htim8.Instance = TIM8;
  2749. 800141e: 4b21 ldr r3, [pc, #132] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2750. 8001420: 4a21 ldr r2, [pc, #132] @ (80014a8 <MX_TIM8_Init+0xa8>)
  2751. 8001422: 601a str r2, [r3, #0]
  2752. htim8.Init.Prescaler = 9999;
  2753. 8001424: 4b1f ldr r3, [pc, #124] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2754. 8001426: f242 720f movw r2, #9999 @ 0x270f
  2755. 800142a: 605a str r2, [r3, #4]
  2756. htim8.Init.CounterMode = TIM_COUNTERMODE_UP;
  2757. 800142c: 4b1d ldr r3, [pc, #116] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2758. 800142e: 2200 movs r2, #0
  2759. 8001430: 609a str r2, [r3, #8]
  2760. htim8.Init.Period = 999;
  2761. 8001432: 4b1c ldr r3, [pc, #112] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2762. 8001434: f240 32e7 movw r2, #999 @ 0x3e7
  2763. 8001438: 60da str r2, [r3, #12]
  2764. htim8.Init.ClockDivision = TIM_CLOCKDIVISION_DIV2;
  2765. 800143a: 4b1a ldr r3, [pc, #104] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2766. 800143c: f44f 7280 mov.w r2, #256 @ 0x100
  2767. 8001440: 611a str r2, [r3, #16]
  2768. htim8.Init.RepetitionCounter = 0;
  2769. 8001442: 4b18 ldr r3, [pc, #96] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2770. 8001444: 2200 movs r2, #0
  2771. 8001446: 615a str r2, [r3, #20]
  2772. htim8.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2773. 8001448: 4b16 ldr r3, [pc, #88] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2774. 800144a: 2280 movs r2, #128 @ 0x80
  2775. 800144c: 619a str r2, [r3, #24]
  2776. if (HAL_TIM_Base_Init(&htim8) != HAL_OK)
  2777. 800144e: 4815 ldr r0, [pc, #84] @ (80014a4 <MX_TIM8_Init+0xa4>)
  2778. 8001450: f00d ffea bl 800f428 <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 ff82 bl 8010374 <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 fe70 bl 8011170 <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 ff65 bl 80113c4 <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 fc05 bl 8013d16 <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 fc3a bl 8013d92 <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 fbbb bl 8013ca4 <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 ff15 bl 80113c4 <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 fbb5 bl 8013d16 <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 fbea bl 8013d92 <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 fb6b bl 8013ca4 <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 faaf bl 8007b70 <HAL_NVIC_SetPriority>
  3074. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  3075. 8001612: 200b movs r0, #11
  3076. 8001614: f006 fac6 bl 8007ba4 <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 faa7 bl 8007b70 <HAL_NVIC_SetPriority>
  3083. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  3084. 8001622: 200c movs r0, #12
  3085. 8001624: f006 fabe bl 8007ba4 <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 fa9f bl 8007b70 <HAL_NVIC_SetPriority>
  3092. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  3093. 8001632: 200d movs r0, #13
  3094. 8001634: f006 fab6 bl 8007ba4 <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 ff25 bl 800b564 <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 ff20 bl 800b564 <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 fd49 bl 800b1d4 <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 fd3b bl 800b1d4 <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 fd2f bl 800b1d4 <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 fd21 bl 800b1d4 <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 f9ea bl 8007b70 <HAL_NVIC_SetPriority>
  3277. HAL_NVIC_EnableIRQ(EXTI9_5_IRQn);
  3278. 800179c: 2017 movs r0, #23
  3279. 800179e: f006 fa01 bl 8007ba4 <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 f9e2 bl 8007b70 <HAL_NVIC_SetPriority>
  3285. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3286. 80017ac: 2028 movs r0, #40 @ 0x28
  3287. 80017ae: f006 f9f9 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  3288. /* USER CODE BEGIN MX_GPIO_Init_2 */
  3289. /* USER CODE END MX_GPIO_Init_2 */
  3290. }
  3291. 80017b2: bf00 nop
  3292. 80017b4: 3730 adds r7, #48 @ 0x30
  3293. 80017b6: 46bd mov sp, r7
  3294. 80017b8: bd80 pop {r7, pc}
  3295. 80017ba: bf00 nop
  3296. 80017bc: 58024400 .word 0x58024400
  3297. 80017c0: 58021000 .word 0x58021000
  3298. 80017c4: 58020c00 .word 0x58020c00
  3299. 080017c8 <HAL_ADC_ConvCpltCallback>:
  3300. /* USER CODE BEGIN 4 */
  3301. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
  3302. {
  3303. 80017c8: b580 push {r7, lr}
  3304. 80017ca: b08e sub sp, #56 @ 0x38
  3305. 80017cc: af00 add r7, sp, #0
  3306. 80017ce: 6078 str r0, [r7, #4]
  3307. if(hadc->Instance == ADC1)
  3308. 80017d0: 687b ldr r3, [r7, #4]
  3309. 80017d2: 681b ldr r3, [r3, #0]
  3310. 80017d4: 4a67 ldr r2, [pc, #412] @ (8001974 <HAL_ADC_ConvCpltCallback+0x1ac>)
  3311. 80017d6: 4293 cmp r3, r2
  3312. 80017d8: d13f bne.n 800185a <HAL_ADC_ConvCpltCallback+0x92>
  3313. {
  3314. DbgLEDToggle(DBG_LED4);
  3315. 80017da: 2080 movs r0, #128 @ 0x80
  3316. 80017dc: f001 fba6 bl 8002f2c <DbgLEDToggle>
  3317. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc1Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3318. 80017e0: 4b65 ldr r3, [pc, #404] @ (8001978 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3319. 80017e2: f023 031f bic.w r3, r3, #31
  3320. 80017e6: 637b str r3, [r7, #52] @ 0x34
  3321. 80017e8: 2320 movs r3, #32
  3322. 80017ea: 633b str r3, [r7, #48] @ 0x30
  3323. \param[in] dsize size of memory block (in number of bytes)
  3324. */
  3325. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  3326. {
  3327. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3328. if ( dsize > 0 ) {
  3329. 80017ec: 6b3b ldr r3, [r7, #48] @ 0x30
  3330. 80017ee: 2b00 cmp r3, #0
  3331. 80017f0: dd1d ble.n 800182e <HAL_ADC_ConvCpltCallback+0x66>
  3332. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3333. 80017f2: 6b7b ldr r3, [r7, #52] @ 0x34
  3334. 80017f4: f003 021f and.w r2, r3, #31
  3335. 80017f8: 6b3b ldr r3, [r7, #48] @ 0x30
  3336. 80017fa: 4413 add r3, r2
  3337. 80017fc: 62fb str r3, [r7, #44] @ 0x2c
  3338. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3339. 80017fe: 6b7b ldr r3, [r7, #52] @ 0x34
  3340. 8001800: 62bb str r3, [r7, #40] @ 0x28
  3341. __ASM volatile ("dsb 0xF":::"memory");
  3342. 8001802: f3bf 8f4f dsb sy
  3343. }
  3344. 8001806: bf00 nop
  3345. __DSB();
  3346. do {
  3347. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3348. 8001808: 4a5c ldr r2, [pc, #368] @ (800197c <HAL_ADC_ConvCpltCallback+0x1b4>)
  3349. 800180a: 6abb ldr r3, [r7, #40] @ 0x28
  3350. 800180c: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3351. op_addr += __SCB_DCACHE_LINE_SIZE;
  3352. 8001810: 6abb ldr r3, [r7, #40] @ 0x28
  3353. 8001812: 3320 adds r3, #32
  3354. 8001814: 62bb str r3, [r7, #40] @ 0x28
  3355. op_size -= __SCB_DCACHE_LINE_SIZE;
  3356. 8001816: 6afb ldr r3, [r7, #44] @ 0x2c
  3357. 8001818: 3b20 subs r3, #32
  3358. 800181a: 62fb str r3, [r7, #44] @ 0x2c
  3359. } while ( op_size > 0 );
  3360. 800181c: 6afb ldr r3, [r7, #44] @ 0x2c
  3361. 800181e: 2b00 cmp r3, #0
  3362. 8001820: dcf2 bgt.n 8001808 <HAL_ADC_ConvCpltCallback+0x40>
  3363. __ASM volatile ("dsb 0xF":::"memory");
  3364. 8001822: f3bf 8f4f dsb sy
  3365. }
  3366. 8001826: bf00 nop
  3367. __ASM volatile ("isb 0xF":::"memory");
  3368. 8001828: f3bf 8f6f isb sy
  3369. }
  3370. 800182c: bf00 nop
  3371. __DSB();
  3372. __ISB();
  3373. }
  3374. #endif
  3375. }
  3376. 800182e: bf00 nop
  3377. if(adc1MeasDataQueue != NULL)
  3378. 8001830: 4b53 ldr r3, [pc, #332] @ (8001980 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3379. 8001832: 681b ldr r3, [r3, #0]
  3380. 8001834: 2b00 cmp r3, #0
  3381. 8001836: d006 beq.n 8001846 <HAL_ADC_ConvCpltCallback+0x7e>
  3382. {
  3383. osMessageQueuePut(adc1MeasDataQueue, &adc1Data, 0, 0);
  3384. 8001838: 4b51 ldr r3, [pc, #324] @ (8001980 <HAL_ADC_ConvCpltCallback+0x1b8>)
  3385. 800183a: 6818 ldr r0, [r3, #0]
  3386. 800183c: 2300 movs r3, #0
  3387. 800183e: 2200 movs r2, #0
  3388. 8001840: 494d ldr r1, [pc, #308] @ (8001978 <HAL_ADC_ConvCpltCallback+0x1b0>)
  3389. 8001842: f012 ff37 bl 80146b4 <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 feec bl 8006628 <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 fef5 bl 80146b4 <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 feaa bl 8006628 <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 feb3 bl 80146b4 <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 fe68 bl 8006628 <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 fcec bl 8014344 <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 fdc7 bl 8010564 <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 fdae bl 8010564 <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 fe27 bl 80146b4 <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 fd67 bl 8010564 <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 fd4e bl 8010564 <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 fdc5 bl 80146b4 <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 fd9b bl 800b69c <HAL_IWDG_Refresh>
  3875. #endif
  3876. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3877. 8001b66: 2102 movs r1, #2
  3878. 8001b68: 2000 movs r0, #0
  3879. 8001b6a: f001 f9fd bl 8002f68 <SelectCurrentSensorGain>
  3880. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3881. 8001b6e: 2102 movs r1, #2
  3882. 8001b70: 2001 movs r0, #1
  3883. 8001b72: f001 f9f9 bl 8002f68 <SelectCurrentSensorGain>
  3884. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3885. 8001b76: 2102 movs r1, #2
  3886. 8001b78: 2002 movs r0, #2
  3887. 8001b7a: f001 f9f5 bl 8002f68 <SelectCurrentSensorGain>
  3888. EnableCurrentSensors();
  3889. 8001b7e: f001 f9e7 bl 8002f50 <EnableCurrentSensors>
  3890. osDelay(pdMS_TO_TICKS(100));
  3891. 8001b82: 2064 movs r0, #100 @ 0x64
  3892. 8001b84: f012 fb03 bl 801418e <osDelay>
  3893. #ifdef WATCHDOG_ENABLED
  3894. HAL_IWDG_Refresh(&hiwdg1);
  3895. 8001b88: 4854 ldr r0, [pc, #336] @ (8001cdc <StartDefaultTask+0x184>)
  3896. 8001b8a: f009 fd87 bl 800b69c <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 fca2 bl 800f4d8 <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 fd0a bl 800f5b8 <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 fd02 bl 800f5b8 <HAL_TIM_Base_Start_IT>
  3921. 8001bb4: 4603 mov r3, r0
  3922. 8001bb6: 2b00 cmp r3, #0
  3923. 8001bb8: d001 beq.n 8001bbe <StartDefaultTask+0x66>
  3924. {
  3925. Error_Handler();
  3926. 8001bba: f000 f987 bl 8001ecc <Error_Handler>
  3927. }
  3928. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_3) != HAL_OK)
  3929. 8001bbe: 2108 movs r1, #8
  3930. 8001bc0: 4849 ldr r0, [pc, #292] @ (8001ce8 <StartDefaultTask+0x190>)
  3931. 8001bc2: f00d ffcf bl 800fb64 <HAL_TIM_IC_Start_IT>
  3932. 8001bc6: 4603 mov r3, r0
  3933. 8001bc8: 2b00 cmp r3, #0
  3934. 8001bca: d001 beq.n 8001bd0 <StartDefaultTask+0x78>
  3935. {
  3936. Error_Handler();
  3937. 8001bcc: f000 f97e bl 8001ecc <Error_Handler>
  3938. }
  3939. if(HAL_TIM_IC_Start_IT(&htim4, TIM_CHANNEL_4) != HAL_OK)
  3940. 8001bd0: 210c movs r1, #12
  3941. 8001bd2: 4845 ldr r0, [pc, #276] @ (8001ce8 <StartDefaultTask+0x190>)
  3942. 8001bd4: f00d ffc6 bl 800fb64 <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 ffbd bl 800fb64 <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 ffb4 bl 800fb64 <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 fd0c bl 8006628 <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 fd02 bl 8006628 <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 fcf8 bl 8006628 <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 fe74 bl 8007930 <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 fd27 bl 800b69c <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 fa9d bl 801418e <osDelay>
  4022. #ifdef WATCHDOG_ENABLED
  4023. HAL_IWDG_Refresh(&hiwdg1);
  4024. 8001c54: 4821 ldr r0, [pc, #132] @ (8001cdc <StartDefaultTask+0x184>)
  4025. 8001c56: f009 fd21 bl 800b69c <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 fce3 bl 8010628 <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 fcdc bl 8010628 <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 fc1d bl 80144be <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 fc5d bl 8014554 <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 fcc3 bl 8010628 <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 fcbc bl 8010628 <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 fbfd bl 80144be <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 fc3d bl 8014554 <osMutexRelease>
  4099. osDelay(pdMS_TO_TICKS(100));
  4100. 8001cda: e7b8 b.n 8001c4e <StartDefaultTask+0xf6>
  4101. 8001cdc: 24000418 .word 0x24000418
  4102. 8001ce0: 2400056c .word 0x2400056c
  4103. 8001ce4: 24000488 .word 0x24000488
  4104. 8001ce8: 24000520 .word 0x24000520
  4105. 8001cec: 240000c0 .word 0x240000c0
  4106. 8001cf0: 24000120 .word 0x24000120
  4107. 8001cf4: 240000e0 .word 0x240000e0
  4108. 8001cf8: 24000184 .word 0x24000184
  4109. 8001cfc: 24000100 .word 0x24000100
  4110. 8001d00: 240001e8 .word 0x240001e8
  4111. 8001d04: 240003b4 .word 0x240003b4
  4112. 8001d08: 240004d4 .word 0x240004d4
  4113. 8001d0c: 2400081c .word 0x2400081c
  4114. 8001d10: 24000860 .word 0x24000860
  4115. 08001d14 <debugLedTimerCallback>:
  4116. /* USER CODE END 5 */
  4117. }
  4118. /* debugLedTimerCallback function */
  4119. void debugLedTimerCallback(void *argument)
  4120. {
  4121. 8001d14: b580 push {r7, lr}
  4122. 8001d16: b082 sub sp, #8
  4123. 8001d18: af00 add r7, sp, #0
  4124. 8001d1a: 6078 str r0, [r7, #4]
  4125. /* USER CODE BEGIN debugLedTimerCallback */
  4126. DbgLEDOff (DBG_LED1);
  4127. 8001d1c: 2010 movs r0, #16
  4128. 8001d1e: f001 f8f3 bl 8002f08 <DbgLEDOff>
  4129. /* USER CODE END debugLedTimerCallback */
  4130. }
  4131. 8001d22: bf00 nop
  4132. 8001d24: 3708 adds r7, #8
  4133. 8001d26: 46bd mov sp, r7
  4134. 8001d28: bd80 pop {r7, pc}
  4135. ...
  4136. 08001d2c <fanTimerCallback>:
  4137. /* fanTimerCallback function */
  4138. void fanTimerCallback(void *argument)
  4139. {
  4140. 8001d2c: b580 push {r7, lr}
  4141. 8001d2e: b082 sub sp, #8
  4142. 8001d30: af00 add r7, sp, #0
  4143. 8001d32: 6078 str r0, [r7, #4]
  4144. /* USER CODE BEGIN fanTimerCallback */
  4145. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  4146. 8001d34: 2104 movs r1, #4
  4147. 8001d36: 4803 ldr r0, [pc, #12] @ (8001d44 <fanTimerCallback+0x18>)
  4148. 8001d38: f00d fe1c bl 800f974 <HAL_TIM_PWM_Stop>
  4149. /* USER CODE END fanTimerCallback */
  4150. }
  4151. 8001d3c: bf00 nop
  4152. 8001d3e: 3708 adds r7, #8
  4153. 8001d40: 46bd mov sp, r7
  4154. 8001d42: bd80 pop {r7, pc}
  4155. 8001d44: 2400043c .word 0x2400043c
  4156. 08001d48 <motorXTimerCallback>:
  4157. /* motorXTimerCallback function */
  4158. void motorXTimerCallback(void *argument)
  4159. {
  4160. 8001d48: b580 push {r7, lr}
  4161. 8001d4a: b084 sub sp, #16
  4162. 8001d4c: af02 add r7, sp, #8
  4163. 8001d4e: 6078 str r0, [r7, #4]
  4164. /* USER CODE BEGIN motorXTimerCallback */
  4165. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  4166. 8001d50: 2300 movs r3, #0
  4167. 8001d52: 9301 str r3, [sp, #4]
  4168. 8001d54: 2300 movs r3, #0
  4169. 8001d56: 9300 str r3, [sp, #0]
  4170. 8001d58: 2304 movs r3, #4
  4171. 8001d5a: 2200 movs r2, #0
  4172. 8001d5c: 4907 ldr r1, [pc, #28] @ (8001d7c <motorXTimerCallback+0x34>)
  4173. 8001d5e: 4808 ldr r0, [pc, #32] @ (8001d80 <motorXTimerCallback+0x38>)
  4174. 8001d60: f001 fa87 bl 8003272 <MotorAction>
  4175. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  4176. 8001d64: 2100 movs r1, #0
  4177. 8001d66: 4806 ldr r0, [pc, #24] @ (8001d80 <motorXTimerCallback+0x38>)
  4178. 8001d68: f00d fe04 bl 800f974 <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 fe00 bl 800f974 <HAL_TIM_PWM_Stop>
  4183. /* USER CODE END motorXTimerCallback */
  4184. }
  4185. 8001d74: bf00 nop
  4186. 8001d76: 3708 adds r7, #8
  4187. 8001d78: 46bd mov sp, r7
  4188. 8001d7a: bd80 pop {r7, pc}
  4189. 8001d7c: 240007c0 .word 0x240007c0
  4190. 8001d80: 240004d4 .word 0x240004d4
  4191. 08001d84 <motorYTimerCallback>:
  4192. /* motorYTimerCallback function */
  4193. void motorYTimerCallback(void *argument)
  4194. {
  4195. 8001d84: b580 push {r7, lr}
  4196. 8001d86: b084 sub sp, #16
  4197. 8001d88: af02 add r7, sp, #8
  4198. 8001d8a: 6078 str r0, [r7, #4]
  4199. /* USER CODE BEGIN motorYTimerCallback */
  4200. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  4201. 8001d8c: 2300 movs r3, #0
  4202. 8001d8e: 9301 str r3, [sp, #4]
  4203. 8001d90: 2300 movs r3, #0
  4204. 8001d92: 9300 str r3, [sp, #0]
  4205. 8001d94: 230c movs r3, #12
  4206. 8001d96: 2208 movs r2, #8
  4207. 8001d98: 4907 ldr r1, [pc, #28] @ (8001db8 <motorYTimerCallback+0x34>)
  4208. 8001d9a: 4808 ldr r0, [pc, #32] @ (8001dbc <motorYTimerCallback+0x38>)
  4209. 8001d9c: f001 fa69 bl 8003272 <MotorAction>
  4210. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  4211. 8001da0: 2108 movs r1, #8
  4212. 8001da2: 4806 ldr r0, [pc, #24] @ (8001dbc <motorYTimerCallback+0x38>)
  4213. 8001da4: f00d fde6 bl 800f974 <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 fde2 bl 800f974 <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 fef5 bl 8007bc0 <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 ff13 bl 8007c30 <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 ff01 bl 8007c30 <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 fef1 bl 8007c30 <HAL_MPU_ConfigRegion>
  4333. /* Enables the MPU */
  4334. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  4335. 8001e4e: 2004 movs r0, #4
  4336. 8001e50: f005 fece bl 8007bf0 <HAL_MPU_Enable>
  4337. }
  4338. 8001e54: bf00 nop
  4339. 8001e56: 3710 adds r7, #16
  4340. 8001e58: 46bd mov sp, r7
  4341. 8001e5a: bd80 pop {r7, pc}
  4342. 8001e5c: 24020000 .word 0x24020000
  4343. 8001e60: 24040000 .word 0x24040000
  4344. 08001e64 <HAL_TIM_PeriodElapsedCallback>:
  4345. * a global variable "uwTick" used as application time base.
  4346. * @param htim : TIM handle
  4347. * @retval None
  4348. */
  4349. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  4350. {
  4351. 8001e64: b580 push {r7, lr}
  4352. 8001e66: b082 sub sp, #8
  4353. 8001e68: af00 add r7, sp, #0
  4354. 8001e6a: 6078 str r0, [r7, #4]
  4355. /* USER CODE BEGIN Callback 0 */
  4356. /* USER CODE END Callback 0 */
  4357. if (htim->Instance == TIM6) {
  4358. 8001e6c: 687b ldr r3, [r7, #4]
  4359. 8001e6e: 681b ldr r3, [r3, #0]
  4360. 8001e70: 4a10 ldr r2, [pc, #64] @ (8001eb4 <HAL_TIM_PeriodElapsedCallback+0x50>)
  4361. 8001e72: 4293 cmp r3, r2
  4362. 8001e74: d102 bne.n 8001e7c <HAL_TIM_PeriodElapsedCallback+0x18>
  4363. HAL_IncTick();
  4364. 8001e76: f003 ffc1 bl 8005dfc <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 fa67 bl 80143b2 <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 fa61 bl 80143b2 <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 fa5b bl 80143b2 <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 fa55 bl 80143b2 <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 fb5b bl 80145ce <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 fb53 bl 80145ce <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 fb4b bl 80145ce <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 f9e6 bl 8018318 <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 f9df bl 8018318 <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 f9d8 bl 8018318 <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 f866 bl 8014068 <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 f85c bl 8014068 <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 f852 bl 8014068 <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 fafd bl 80145ce <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 f998 bl 8018318 <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 f834 bl 8014068 <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 fadf bl 80145ce <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 f97b bl 8018318 <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 f817 bl 8014068 <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 f935 bl 8018318 <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 f92b bl 8018318 <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 fb4b bl 8014774 <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 f9e9 bl 80144be <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 fa24 bl 8014554 <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 f935 bl 80144be <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 f935 bl 8014554 <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 f8cb bl 80144be <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 f8ee bl 8014554 <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 f883 bl 80144be <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 f8c2 bl 8014554 <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 ff71 bl 8018318 <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 ff67 bl 8018318 <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 f987 bl 8014774 <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 f825 bl 80144be <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 f860 bl 8014554 <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 f803 bl 80144be <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 f828 bl 8014554 <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 ff31 bl 80144be <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 ff4d bl 8014554 <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 fded bl 8018318 <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 fde6 bl 8018318 <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 fddf bl 8018318 <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 fdd8 bl 8018318 <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 fdce bl 8018318 <memset>
  5361. while (pdTRUE) {
  5362. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  5363. 800277c: 4bc2 ldr r3, [pc, #776] @ (8002a88 <ADC3MeasTask+0x360>)
  5364. 800277e: 6818 ldr r0, [r3, #0]
  5365. 8002780: f107 010c add.w r1, r7, #12
  5366. 8002784: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5367. 8002788: 2200 movs r2, #0
  5368. 800278a: f011 fff3 bl 8014774 <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 fe85 bl 80144be <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 fec4 bl 8014554 <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 fd7b bl 80144be <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 fd8a bl 8014554 <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 fd37 bl 800b534 <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 fded bl 80146b4 <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 fce7 bl 80144be <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 fd22 bl 8014554 <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 fe23 bl 8014774 <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 fcc1 bl 80144be <osMutexAcquire>
  5747. 8002b3c: 4603 mov r3, r0
  5748. 8002b3e: 2b00 cmp r3, #0
  5749. 8002b40: d1ec bne.n 8002b1c <LimiterSwitchTask+0x78>
  5750. switch (limiterSwitchData.gpioPin) {
  5751. 8002b42: 893b ldrh r3, [r7, #8]
  5752. 8002b44: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5753. 8002b48: f000 8094 beq.w 8002c74 <LimiterSwitchTask+0x1d0>
  5754. 8002b4c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  5755. 8002b50: f300 80a8 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5756. 8002b54: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5757. 8002b58: d075 beq.n 8002c46 <LimiterSwitchTask+0x1a2>
  5758. 8002b5a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  5759. 8002b5e: f300 80a1 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5760. 8002b62: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5761. 8002b66: d057 beq.n 8002c18 <LimiterSwitchTask+0x174>
  5762. 8002b68: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  5763. 8002b6c: f300 809a bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5764. 8002b70: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5765. 8002b74: d039 beq.n 8002bea <LimiterSwitchTask+0x146>
  5766. 8002b76: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  5767. 8002b7a: f300 8093 bgt.w 8002ca4 <LimiterSwitchTask+0x200>
  5768. 8002b7e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  5769. 8002b82: d003 beq.n 8002b8c <LimiterSwitchTask+0xe8>
  5770. 8002b84: f5b3 7f00 cmp.w r3, #512 @ 0x200
  5771. 8002b88: d017 beq.n 8002bba <LimiterSwitchTask+0x116>
  5772. {
  5773. sensorsInfo.currentXPosition = 0;
  5774. sensorsInfo.positionXWeak = 0;
  5775. }
  5776. break;
  5777. default: break;
  5778. 8002b8a: e08b b.n 8002ca4 <LimiterSwitchTask+0x200>
  5779. sensorsInfo.limitYSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5780. 8002b8c: 7abb ldrb r3, [r7, #10]
  5781. 8002b8e: 2b01 cmp r3, #1
  5782. 8002b90: bf0c ite eq
  5783. 8002b92: 2301 moveq r3, #1
  5784. 8002b94: 2300 movne r3, #0
  5785. 8002b96: b2db uxtb r3, r3
  5786. 8002b98: 461a mov r2, r3
  5787. 8002b9a: 4b72 ldr r3, [pc, #456] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5788. 8002b9c: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5789. if (sensorsInfo.limitYSwitchCenter == 1)
  5790. 8002ba0: 4b70 ldr r3, [pc, #448] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5791. 8002ba2: f893 302d ldrb.w r3, [r3, #45] @ 0x2d
  5792. 8002ba6: 2b01 cmp r3, #1
  5793. 8002ba8: d17e bne.n 8002ca8 <LimiterSwitchTask+0x204>
  5794. sensorsInfo.currentYPosition = AXE_Y_MIDDLE_VALUE;
  5795. 8002baa: 4b6e ldr r3, [pc, #440] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5796. 8002bac: 4a6e ldr r2, [pc, #440] @ (8002d68 <LimiterSwitchTask+0x2c4>)
  5797. 8002bae: 635a str r2, [r3, #52] @ 0x34
  5798. sensorsInfo.positionYWeak = 0;
  5799. 8002bb0: 4b6c ldr r3, [pc, #432] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5800. 8002bb2: 2200 movs r2, #0
  5801. 8002bb4: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5802. break;
  5803. 8002bb8: e076 b.n 8002ca8 <LimiterSwitchTask+0x204>
  5804. sensorsInfo.limitYSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5805. 8002bba: 7abb ldrb r3, [r7, #10]
  5806. 8002bbc: 2b01 cmp r3, #1
  5807. 8002bbe: bf0c ite eq
  5808. 8002bc0: 2301 moveq r3, #1
  5809. 8002bc2: 2300 movne r3, #0
  5810. 8002bc4: b2db uxtb r3, r3
  5811. 8002bc6: 461a mov r2, r3
  5812. 8002bc8: 4b66 ldr r3, [pc, #408] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5813. 8002bca: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5814. if (sensorsInfo.limitYSwitchDown == 1)
  5815. 8002bce: 4b65 ldr r3, [pc, #404] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5816. 8002bd0: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5817. 8002bd4: 2b01 cmp r3, #1
  5818. 8002bd6: d169 bne.n 8002cac <LimiterSwitchTask+0x208>
  5819. sensorsInfo.currentYPosition = 0;
  5820. 8002bd8: 4b62 ldr r3, [pc, #392] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5821. 8002bda: f04f 0200 mov.w r2, #0
  5822. 8002bde: 635a str r2, [r3, #52] @ 0x34
  5823. sensorsInfo.positionYWeak = 0;
  5824. 8002be0: 4b60 ldr r3, [pc, #384] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5825. 8002be2: 2200 movs r2, #0
  5826. 8002be4: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5827. break;
  5828. 8002be8: e060 b.n 8002cac <LimiterSwitchTask+0x208>
  5829. sensorsInfo.limitXSwitchCenter = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5830. 8002bea: 7abb ldrb r3, [r7, #10]
  5831. 8002bec: 2b01 cmp r3, #1
  5832. 8002bee: bf0c ite eq
  5833. 8002bf0: 2301 moveq r3, #1
  5834. 8002bf2: 2300 movne r3, #0
  5835. 8002bf4: b2db uxtb r3, r3
  5836. 8002bf6: 461a mov r2, r3
  5837. 8002bf8: 4b5a ldr r3, [pc, #360] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5838. 8002bfa: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5839. if (sensorsInfo.limitXSwitchCenter == 1)
  5840. 8002bfe: 4b59 ldr r3, [pc, #356] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5841. 8002c00: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5842. 8002c04: 2b01 cmp r3, #1
  5843. 8002c06: d153 bne.n 8002cb0 <LimiterSwitchTask+0x20c>
  5844. sensorsInfo.currentXPosition = AXE_X_MIDDLE_VALUE;
  5845. 8002c08: 4b56 ldr r3, [pc, #344] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5846. 8002c0a: 4a57 ldr r2, [pc, #348] @ (8002d68 <LimiterSwitchTask+0x2c4>)
  5847. 8002c0c: 631a str r2, [r3, #48] @ 0x30
  5848. sensorsInfo.positionXWeak = 0;
  5849. 8002c0e: 4b55 ldr r3, [pc, #340] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5850. 8002c10: 2200 movs r2, #0
  5851. 8002c12: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5852. break;
  5853. 8002c16: e04b b.n 8002cb0 <LimiterSwitchTask+0x20c>
  5854. sensorsInfo.limitYSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5855. 8002c18: 7abb ldrb r3, [r7, #10]
  5856. 8002c1a: 2b01 cmp r3, #1
  5857. 8002c1c: bf0c ite eq
  5858. 8002c1e: 2301 moveq r3, #1
  5859. 8002c20: 2300 movne r3, #0
  5860. 8002c22: b2db uxtb r3, r3
  5861. 8002c24: 461a mov r2, r3
  5862. 8002c26: 4b4f ldr r3, [pc, #316] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5863. 8002c28: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5864. if (sensorsInfo.limitYSwitchUp == 1)
  5865. 8002c2c: 4b4d ldr r3, [pc, #308] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5866. 8002c2e: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5867. 8002c32: 2b01 cmp r3, #1
  5868. 8002c34: d13e bne.n 8002cb4 <LimiterSwitchTask+0x210>
  5869. sensorsInfo.currentYPosition = 100;
  5870. 8002c36: 4b4b ldr r3, [pc, #300] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5871. 8002c38: 4a4c ldr r2, [pc, #304] @ (8002d6c <LimiterSwitchTask+0x2c8>)
  5872. 8002c3a: 635a str r2, [r3, #52] @ 0x34
  5873. sensorsInfo.positionYWeak = 0;
  5874. 8002c3c: 4b49 ldr r3, [pc, #292] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5875. 8002c3e: 2200 movs r2, #0
  5876. 8002c40: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5877. break;
  5878. 8002c44: e036 b.n 8002cb4 <LimiterSwitchTask+0x210>
  5879. sensorsInfo.limitXSwitchUp = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5880. 8002c46: 7abb ldrb r3, [r7, #10]
  5881. 8002c48: 2b01 cmp r3, #1
  5882. 8002c4a: bf0c ite eq
  5883. 8002c4c: 2301 moveq r3, #1
  5884. 8002c4e: 2300 movne r3, #0
  5885. 8002c50: b2db uxtb r3, r3
  5886. 8002c52: 461a mov r2, r3
  5887. 8002c54: 4b43 ldr r3, [pc, #268] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5888. 8002c56: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5889. if (sensorsInfo.limitXSwitchUp == 1)
  5890. 8002c5a: 4b42 ldr r3, [pc, #264] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5891. 8002c5c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5892. 8002c60: 2b01 cmp r3, #1
  5893. 8002c62: d129 bne.n 8002cb8 <LimiterSwitchTask+0x214>
  5894. sensorsInfo.currentXPosition = 100;
  5895. 8002c64: 4b3f ldr r3, [pc, #252] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5896. 8002c66: 4a41 ldr r2, [pc, #260] @ (8002d6c <LimiterSwitchTask+0x2c8>)
  5897. 8002c68: 631a str r2, [r3, #48] @ 0x30
  5898. sensorsInfo.positionXWeak = 0;
  5899. 8002c6a: 4b3e ldr r3, [pc, #248] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5900. 8002c6c: 2200 movs r2, #0
  5901. 8002c6e: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5902. break;
  5903. 8002c72: e021 b.n 8002cb8 <LimiterSwitchTask+0x214>
  5904. sensorsInfo.limitXSwitchDown = limiterSwitchData.pinState == GPIO_PIN_SET ? 1 : 0;
  5905. 8002c74: 7abb ldrb r3, [r7, #10]
  5906. 8002c76: 2b01 cmp r3, #1
  5907. 8002c78: bf0c ite eq
  5908. 8002c7a: 2301 moveq r3, #1
  5909. 8002c7c: 2300 movne r3, #0
  5910. 8002c7e: b2db uxtb r3, r3
  5911. 8002c80: 461a mov r2, r3
  5912. 8002c82: 4b38 ldr r3, [pc, #224] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5913. 8002c84: f883 2029 strb.w r2, [r3, #41] @ 0x29
  5914. if (sensorsInfo.limitXSwitchDown == 1)
  5915. 8002c88: 4b36 ldr r3, [pc, #216] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5916. 8002c8a: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5917. 8002c8e: 2b01 cmp r3, #1
  5918. 8002c90: d114 bne.n 8002cbc <LimiterSwitchTask+0x218>
  5919. sensorsInfo.currentXPosition = 0;
  5920. 8002c92: 4b34 ldr r3, [pc, #208] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5921. 8002c94: f04f 0200 mov.w r2, #0
  5922. 8002c98: 631a str r2, [r3, #48] @ 0x30
  5923. sensorsInfo.positionXWeak = 0;
  5924. 8002c9a: 4b32 ldr r3, [pc, #200] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5925. 8002c9c: 2200 movs r2, #0
  5926. 8002c9e: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5927. break;
  5928. 8002ca2: e00b b.n 8002cbc <LimiterSwitchTask+0x218>
  5929. default: break;
  5930. 8002ca4: bf00 nop
  5931. 8002ca6: e00a b.n 8002cbe <LimiterSwitchTask+0x21a>
  5932. break;
  5933. 8002ca8: bf00 nop
  5934. 8002caa: e008 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5935. break;
  5936. 8002cac: bf00 nop
  5937. 8002cae: e006 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5938. break;
  5939. 8002cb0: bf00 nop
  5940. 8002cb2: e004 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5941. break;
  5942. 8002cb4: bf00 nop
  5943. 8002cb6: e002 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5944. break;
  5945. 8002cb8: bf00 nop
  5946. 8002cba: e000 b.n 8002cbe <LimiterSwitchTask+0x21a>
  5947. break;
  5948. 8002cbc: bf00 nop
  5949. }
  5950. if ((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) {
  5951. 8002cbe: 4b29 ldr r3, [pc, #164] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5952. 8002cc0: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5953. 8002cc4: 2b01 cmp r3, #1
  5954. 8002cc6: d004 beq.n 8002cd2 <LimiterSwitchTask+0x22e>
  5955. 8002cc8: 4b26 ldr r3, [pc, #152] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5956. 8002cca: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5957. 8002cce: 2b01 cmp r3, #1
  5958. 8002cd0: d118 bne.n 8002d04 <LimiterSwitchTask+0x260>
  5959. sensorsInfo.motorXStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5960. 8002cd2: 4b27 ldr r3, [pc, #156] @ (8002d70 <LimiterSwitchTask+0x2cc>)
  5961. 8002cd4: 681b ldr r3, [r3, #0]
  5962. 8002cd6: 4a23 ldr r2, [pc, #140] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5963. 8002cd8: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5964. 8002cdc: 4921 ldr r1, [pc, #132] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5965. 8002cde: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5966. 8002ce2: 9104 str r1, [sp, #16]
  5967. 8002ce4: 9203 str r2, [sp, #12]
  5968. 8002ce6: 2200 movs r2, #0
  5969. 8002ce8: 9202 str r2, [sp, #8]
  5970. 8002cea: 2200 movs r2, #0
  5971. 8002cec: 9201 str r2, [sp, #4]
  5972. 8002cee: 9300 str r3, [sp, #0]
  5973. 8002cf0: 2304 movs r3, #4
  5974. 8002cf2: 2200 movs r2, #0
  5975. 8002cf4: 491f ldr r1, [pc, #124] @ (8002d74 <LimiterSwitchTask+0x2d0>)
  5976. 8002cf6: 4820 ldr r0, [pc, #128] @ (8002d78 <LimiterSwitchTask+0x2d4>)
  5977. 8002cf8: f000 f982 bl 8003000 <MotorControl>
  5978. 8002cfc: 4603 mov r3, r0
  5979. 8002cfe: 461a mov r2, r3
  5980. 8002d00: 4b18 ldr r3, [pc, #96] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5981. 8002d02: 751a strb r2, [r3, #20]
  5982. }
  5983. if ((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) {
  5984. 8002d04: 4b17 ldr r3, [pc, #92] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5985. 8002d06: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5986. 8002d0a: 2b01 cmp r3, #1
  5987. 8002d0c: d004 beq.n 8002d18 <LimiterSwitchTask+0x274>
  5988. 8002d0e: 4b15 ldr r3, [pc, #84] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5989. 8002d10: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5990. 8002d14: 2b01 cmp r3, #1
  5991. 8002d16: d118 bne.n 8002d4a <LimiterSwitchTask+0x2a6>
  5992. sensorsInfo.motorYStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5993. 8002d18: 4b18 ldr r3, [pc, #96] @ (8002d7c <LimiterSwitchTask+0x2d8>)
  5994. 8002d1a: 681b ldr r3, [r3, #0]
  5995. 8002d1c: 4a11 ldr r2, [pc, #68] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5996. 8002d1e: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5997. 8002d22: 4910 ldr r1, [pc, #64] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  5998. 8002d24: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5999. 8002d28: 9104 str r1, [sp, #16]
  6000. 8002d2a: 9203 str r2, [sp, #12]
  6001. 8002d2c: 2200 movs r2, #0
  6002. 8002d2e: 9202 str r2, [sp, #8]
  6003. 8002d30: 2200 movs r2, #0
  6004. 8002d32: 9201 str r2, [sp, #4]
  6005. 8002d34: 9300 str r3, [sp, #0]
  6006. 8002d36: 230c movs r3, #12
  6007. 8002d38: 2208 movs r2, #8
  6008. 8002d3a: 490e ldr r1, [pc, #56] @ (8002d74 <LimiterSwitchTask+0x2d0>)
  6009. 8002d3c: 480e ldr r0, [pc, #56] @ (8002d78 <LimiterSwitchTask+0x2d4>)
  6010. 8002d3e: f000 f95f bl 8003000 <MotorControl>
  6011. 8002d42: 4603 mov r3, r0
  6012. 8002d44: 461a mov r2, r3
  6013. 8002d46: 4b07 ldr r3, [pc, #28] @ (8002d64 <LimiterSwitchTask+0x2c0>)
  6014. 8002d48: 755a strb r2, [r3, #21]
  6015. }
  6016. osMutexRelease (sensorsInfoMutex);
  6017. 8002d4a: 4b05 ldr r3, [pc, #20] @ (8002d60 <LimiterSwitchTask+0x2bc>)
  6018. 8002d4c: 681b ldr r3, [r3, #0]
  6019. 8002d4e: 4618 mov r0, r3
  6020. 8002d50: f011 fc00 bl 8014554 <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 fcea bl 8014774 <osMessageQueueGet>
  6056. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  6057. 8002da0: 4b4b ldr r3, [pc, #300] @ (8002ed0 <EncoderTask+0x150>)
  6058. 8002da2: 681b ldr r3, [r3, #0]
  6059. 8002da4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6060. 8002da8: 4618 mov r0, r3
  6061. 8002daa: f011 fb88 bl 80144be <osMutexAcquire>
  6062. 8002dae: 4603 mov r3, r0
  6063. 8002db0: 2b00 cmp r3, #0
  6064. 8002db2: d1ed bne.n 8002d90 <EncoderTask+0x10>
  6065. if (encoderData.axe == encoderAxeX) {
  6066. 8002db4: 7a3b ldrb r3, [r7, #8]
  6067. 8002db6: 2b00 cmp r3, #0
  6068. 8002db8: d142 bne.n 8002e40 <EncoderTask+0xc0>
  6069. if (encoderData.direction == encoderCW) {
  6070. 8002dba: 7a7b ldrb r3, [r7, #9]
  6071. 8002dbc: 2b00 cmp r3, #0
  6072. 8002dbe: d10a bne.n 8002dd6 <EncoderTask+0x56>
  6073. sensorsInfo.pvEncoderX += 360.0 / ENCODER_X_IMP_PER_TURN;
  6074. 8002dc0: 4b44 ldr r3, [pc, #272] @ (8002ed4 <EncoderTask+0x154>)
  6075. 8002dc2: edd3 7a03 vldr s15, [r3, #12]
  6076. 8002dc6: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6077. 8002dca: ee77 7a87 vadd.f32 s15, s15, s14
  6078. 8002dce: 4b41 ldr r3, [pc, #260] @ (8002ed4 <EncoderTask+0x154>)
  6079. 8002dd0: edc3 7a03 vstr s15, [r3, #12]
  6080. 8002dd4: e009 b.n 8002dea <EncoderTask+0x6a>
  6081. } else {
  6082. sensorsInfo.pvEncoderX -= 360.0 / ENCODER_X_IMP_PER_TURN;
  6083. 8002dd6: 4b3f ldr r3, [pc, #252] @ (8002ed4 <EncoderTask+0x154>)
  6084. 8002dd8: edd3 7a03 vldr s15, [r3, #12]
  6085. 8002ddc: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6086. 8002de0: ee77 7ac7 vsub.f32 s15, s15, s14
  6087. 8002de4: 4b3b ldr r3, [pc, #236] @ (8002ed4 <EncoderTask+0x154>)
  6088. 8002de6: edc3 7a03 vstr s15, [r3, #12]
  6089. }
  6090. float currentPercentPos = 100 * sensorsInfo.pvEncoderX / MAX_X_AXE_ANGLE;
  6091. 8002dea: 4b3a ldr r3, [pc, #232] @ (8002ed4 <EncoderTask+0x154>)
  6092. 8002dec: edd3 7a03 vldr s15, [r3, #12]
  6093. 8002df0: ed9f 7a39 vldr s14, [pc, #228] @ 8002ed8 <EncoderTask+0x158>
  6094. 8002df4: ee27 7a87 vmul.f32 s14, s15, s14
  6095. 8002df8: eddf 6a38 vldr s13, [pc, #224] @ 8002edc <EncoderTask+0x15c>
  6096. 8002dfc: eec7 7a26 vdiv.f32 s15, s14, s13
  6097. 8002e00: edc7 7a03 vstr s15, [r7, #12]
  6098. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6099. 8002e04: edd7 7a03 vldr s15, [r7, #12]
  6100. 8002e08: eef5 7ac0 vcmpe.f32 s15, #0.0
  6101. 8002e0c: eef1 fa10 vmrs APSR_nzcv, fpscr
  6102. 8002e10: d502 bpl.n 8002e18 <EncoderTask+0x98>
  6103. 8002e12: f04f 0300 mov.w r3, #0
  6104. 8002e16: e000 b.n 8002e1a <EncoderTask+0x9a>
  6105. 8002e18: 68fb ldr r3, [r7, #12]
  6106. 8002e1a: 60fb str r3, [r7, #12]
  6107. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6108. 8002e1c: edd7 7a03 vldr s15, [r7, #12]
  6109. 8002e20: ed9f 7a2d vldr s14, [pc, #180] @ 8002ed8 <EncoderTask+0x158>
  6110. 8002e24: eef4 7ac7 vcmpe.f32 s15, s14
  6111. 8002e28: eef1 fa10 vmrs APSR_nzcv, fpscr
  6112. 8002e2c: dd01 ble.n 8002e32 <EncoderTask+0xb2>
  6113. 8002e2e: 4b2c ldr r3, [pc, #176] @ (8002ee0 <EncoderTask+0x160>)
  6114. 8002e30: e000 b.n 8002e34 <EncoderTask+0xb4>
  6115. 8002e32: 68fb ldr r3, [r7, #12]
  6116. 8002e34: 4a27 ldr r2, [pc, #156] @ (8002ed4 <EncoderTask+0x154>)
  6117. 8002e36: 6313 str r3, [r2, #48] @ 0x30
  6118. DbgLEDToggle(DBG_LED2);
  6119. 8002e38: 2020 movs r0, #32
  6120. 8002e3a: f000 f877 bl 8002f2c <DbgLEDToggle>
  6121. 8002e3e: e041 b.n 8002ec4 <EncoderTask+0x144>
  6122. } else {
  6123. if (encoderData.direction == encoderCW) {
  6124. 8002e40: 7a7b ldrb r3, [r7, #9]
  6125. 8002e42: 2b00 cmp r3, #0
  6126. 8002e44: d10a bne.n 8002e5c <EncoderTask+0xdc>
  6127. sensorsInfo.pvEncoderY += 360.0 / ENCODER_Y_IMP_PER_TURN;
  6128. 8002e46: 4b23 ldr r3, [pc, #140] @ (8002ed4 <EncoderTask+0x154>)
  6129. 8002e48: edd3 7a04 vldr s15, [r3, #16]
  6130. 8002e4c: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6131. 8002e50: ee77 7a87 vadd.f32 s15, s15, s14
  6132. 8002e54: 4b1f ldr r3, [pc, #124] @ (8002ed4 <EncoderTask+0x154>)
  6133. 8002e56: edc3 7a04 vstr s15, [r3, #16]
  6134. 8002e5a: e009 b.n 8002e70 <EncoderTask+0xf0>
  6135. } else {
  6136. sensorsInfo.pvEncoderY -= 360.0 / ENCODER_Y_IMP_PER_TURN;
  6137. 8002e5c: 4b1d ldr r3, [pc, #116] @ (8002ed4 <EncoderTask+0x154>)
  6138. 8002e5e: edd3 7a04 vldr s15, [r3, #16]
  6139. 8002e62: eeb3 7a02 vmov.f32 s14, #50 @ 0x41900000 18.0
  6140. 8002e66: ee77 7ac7 vsub.f32 s15, s15, s14
  6141. 8002e6a: 4b1a ldr r3, [pc, #104] @ (8002ed4 <EncoderTask+0x154>)
  6142. 8002e6c: edc3 7a04 vstr s15, [r3, #16]
  6143. }
  6144. float currentPercentPos = 100 * sensorsInfo.pvEncoderY / MAX_X_AXE_ANGLE;
  6145. 8002e70: 4b18 ldr r3, [pc, #96] @ (8002ed4 <EncoderTask+0x154>)
  6146. 8002e72: edd3 7a04 vldr s15, [r3, #16]
  6147. 8002e76: ed9f 7a18 vldr s14, [pc, #96] @ 8002ed8 <EncoderTask+0x158>
  6148. 8002e7a: ee27 7a87 vmul.f32 s14, s15, s14
  6149. 8002e7e: eddf 6a17 vldr s13, [pc, #92] @ 8002edc <EncoderTask+0x15c>
  6150. 8002e82: eec7 7a26 vdiv.f32 s15, s14, s13
  6151. 8002e86: edc7 7a04 vstr s15, [r7, #16]
  6152. currentPercentPos = currentPercentPos < 0 ? 0 : currentPercentPos;
  6153. 8002e8a: edd7 7a04 vldr s15, [r7, #16]
  6154. 8002e8e: eef5 7ac0 vcmpe.f32 s15, #0.0
  6155. 8002e92: eef1 fa10 vmrs APSR_nzcv, fpscr
  6156. 8002e96: d502 bpl.n 8002e9e <EncoderTask+0x11e>
  6157. 8002e98: f04f 0300 mov.w r3, #0
  6158. 8002e9c: e000 b.n 8002ea0 <EncoderTask+0x120>
  6159. 8002e9e: 693b ldr r3, [r7, #16]
  6160. 8002ea0: 613b str r3, [r7, #16]
  6161. sensorsInfo.currentXPosition = currentPercentPos > 100 ? 100 : currentPercentPos;
  6162. 8002ea2: edd7 7a04 vldr s15, [r7, #16]
  6163. 8002ea6: ed9f 7a0c vldr s14, [pc, #48] @ 8002ed8 <EncoderTask+0x158>
  6164. 8002eaa: eef4 7ac7 vcmpe.f32 s15, s14
  6165. 8002eae: eef1 fa10 vmrs APSR_nzcv, fpscr
  6166. 8002eb2: dd01 ble.n 8002eb8 <EncoderTask+0x138>
  6167. 8002eb4: 4b0a ldr r3, [pc, #40] @ (8002ee0 <EncoderTask+0x160>)
  6168. 8002eb6: e000 b.n 8002eba <EncoderTask+0x13a>
  6169. 8002eb8: 693b ldr r3, [r7, #16]
  6170. 8002eba: 4a06 ldr r2, [pc, #24] @ (8002ed4 <EncoderTask+0x154>)
  6171. 8002ebc: 6313 str r3, [r2, #48] @ 0x30
  6172. DbgLEDToggle(DBG_LED3);
  6173. 8002ebe: 2040 movs r0, #64 @ 0x40
  6174. 8002ec0: f000 f834 bl 8002f2c <DbgLEDToggle>
  6175. }
  6176. osMutexRelease (sensorsInfoMutex);
  6177. 8002ec4: 4b02 ldr r3, [pc, #8] @ (8002ed0 <EncoderTask+0x150>)
  6178. 8002ec6: 681b ldr r3, [r3, #0]
  6179. 8002ec8: 4618 mov r0, r3
  6180. 8002eca: f011 fb43 bl 8014554 <osMutexRelease>
  6181. osMessageQueueGet (encoderQueue, &encoderData, 0, osWaitForever);
  6182. 8002ece: e75f b.n 8002d90 <EncoderTask+0x10>
  6183. 8002ed0: 2400081c .word 0x2400081c
  6184. 8002ed4: 24000860 .word 0x24000860
  6185. 8002ed8: 42c80000 .word 0x42c80000
  6186. 8002edc: 43b40000 .word 0x43b40000
  6187. 8002ee0: 42c80000 .word 0x42c80000
  6188. 08002ee4 <DbgLEDOn>:
  6189. #include <stdlib.h>
  6190. #include "peripherial.h"
  6191. void DbgLEDOn (uint8_t ledNumber) {
  6192. 8002ee4: b580 push {r7, lr}
  6193. 8002ee6: b082 sub sp, #8
  6194. 8002ee8: af00 add r7, sp, #0
  6195. 8002eea: 4603 mov r3, r0
  6196. 8002eec: 71fb strb r3, [r7, #7]
  6197. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  6198. 8002eee: 79fb ldrb r3, [r7, #7]
  6199. 8002ef0: b29b uxth r3, r3
  6200. 8002ef2: 2201 movs r2, #1
  6201. 8002ef4: 4619 mov r1, r3
  6202. 8002ef6: 4803 ldr r0, [pc, #12] @ (8002f04 <DbgLEDOn+0x20>)
  6203. 8002ef8: f008 fb34 bl 800b564 <HAL_GPIO_WritePin>
  6204. }
  6205. 8002efc: bf00 nop
  6206. 8002efe: 3708 adds r7, #8
  6207. 8002f00: 46bd mov sp, r7
  6208. 8002f02: bd80 pop {r7, pc}
  6209. 8002f04: 58020c00 .word 0x58020c00
  6210. 08002f08 <DbgLEDOff>:
  6211. void DbgLEDOff (uint8_t ledNumber) {
  6212. 8002f08: b580 push {r7, lr}
  6213. 8002f0a: b082 sub sp, #8
  6214. 8002f0c: af00 add r7, sp, #0
  6215. 8002f0e: 4603 mov r3, r0
  6216. 8002f10: 71fb strb r3, [r7, #7]
  6217. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  6218. 8002f12: 79fb ldrb r3, [r7, #7]
  6219. 8002f14: b29b uxth r3, r3
  6220. 8002f16: 2200 movs r2, #0
  6221. 8002f18: 4619 mov r1, r3
  6222. 8002f1a: 4803 ldr r0, [pc, #12] @ (8002f28 <DbgLEDOff+0x20>)
  6223. 8002f1c: f008 fb22 bl 800b564 <HAL_GPIO_WritePin>
  6224. }
  6225. 8002f20: bf00 nop
  6226. 8002f22: 3708 adds r7, #8
  6227. 8002f24: 46bd mov sp, r7
  6228. 8002f26: bd80 pop {r7, pc}
  6229. 8002f28: 58020c00 .word 0x58020c00
  6230. 08002f2c <DbgLEDToggle>:
  6231. void DbgLEDToggle (uint8_t ledNumber) {
  6232. 8002f2c: b580 push {r7, lr}
  6233. 8002f2e: b082 sub sp, #8
  6234. 8002f30: af00 add r7, sp, #0
  6235. 8002f32: 4603 mov r3, r0
  6236. 8002f34: 71fb strb r3, [r7, #7]
  6237. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  6238. 8002f36: 79fb ldrb r3, [r7, #7]
  6239. 8002f38: b29b uxth r3, r3
  6240. 8002f3a: 4619 mov r1, r3
  6241. 8002f3c: 4803 ldr r0, [pc, #12] @ (8002f4c <DbgLEDToggle+0x20>)
  6242. 8002f3e: f008 fb2a bl 800b596 <HAL_GPIO_TogglePin>
  6243. }
  6244. 8002f42: bf00 nop
  6245. 8002f44: 3708 adds r7, #8
  6246. 8002f46: 46bd mov sp, r7
  6247. 8002f48: bd80 pop {r7, pc}
  6248. 8002f4a: bf00 nop
  6249. 8002f4c: 58020c00 .word 0x58020c00
  6250. 08002f50 <EnableCurrentSensors>:
  6251. void EnableCurrentSensors (void) {
  6252. 8002f50: b580 push {r7, lr}
  6253. 8002f52: af00 add r7, sp, #0
  6254. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  6255. 8002f54: 2201 movs r2, #1
  6256. 8002f56: f44f 4100 mov.w r1, #32768 @ 0x8000
  6257. 8002f5a: 4802 ldr r0, [pc, #8] @ (8002f64 <EnableCurrentSensors+0x14>)
  6258. 8002f5c: f008 fb02 bl 800b564 <HAL_GPIO_WritePin>
  6259. }
  6260. 8002f60: bf00 nop
  6261. 8002f62: bd80 pop {r7, pc}
  6262. 8002f64: 58021000 .word 0x58021000
  6263. 08002f68 <SelectCurrentSensorGain>:
  6264. void DisableCurrentSensors (void) {
  6265. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  6266. }
  6267. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  6268. 8002f68: b580 push {r7, lr}
  6269. 8002f6a: b084 sub sp, #16
  6270. 8002f6c: af00 add r7, sp, #0
  6271. 8002f6e: 4603 mov r3, r0
  6272. 8002f70: 460a mov r2, r1
  6273. 8002f72: 71fb strb r3, [r7, #7]
  6274. 8002f74: 4613 mov r3, r2
  6275. 8002f76: 71bb strb r3, [r7, #6]
  6276. uint8_t gpioOffset = 0;
  6277. 8002f78: 2300 movs r3, #0
  6278. 8002f7a: 73fb strb r3, [r7, #15]
  6279. switch (sensor) {
  6280. 8002f7c: 79fb ldrb r3, [r7, #7]
  6281. 8002f7e: 2b02 cmp r3, #2
  6282. 8002f80: d00c beq.n 8002f9c <SelectCurrentSensorGain+0x34>
  6283. 8002f82: 2b02 cmp r3, #2
  6284. 8002f84: dc0d bgt.n 8002fa2 <SelectCurrentSensorGain+0x3a>
  6285. 8002f86: 2b00 cmp r3, #0
  6286. 8002f88: d002 beq.n 8002f90 <SelectCurrentSensorGain+0x28>
  6287. 8002f8a: 2b01 cmp r3, #1
  6288. 8002f8c: d003 beq.n 8002f96 <SelectCurrentSensorGain+0x2e>
  6289. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6290. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6291. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6292. default: break;
  6293. 8002f8e: e008 b.n 8002fa2 <SelectCurrentSensorGain+0x3a>
  6294. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  6295. 8002f90: 2307 movs r3, #7
  6296. 8002f92: 73fb strb r3, [r7, #15]
  6297. 8002f94: e006 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6298. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  6299. 8002f96: 2309 movs r3, #9
  6300. 8002f98: 73fb strb r3, [r7, #15]
  6301. 8002f9a: e003 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6302. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  6303. 8002f9c: 230d movs r3, #13
  6304. 8002f9e: 73fb strb r3, [r7, #15]
  6305. 8002fa0: e000 b.n 8002fa4 <SelectCurrentSensorGain+0x3c>
  6306. default: break;
  6307. 8002fa2: bf00 nop
  6308. }
  6309. if (gpioOffset > 0) {
  6310. 8002fa4: 7bfb ldrb r3, [r7, #15]
  6311. 8002fa6: 2b00 cmp r3, #0
  6312. 8002fa8: d023 beq.n 8002ff2 <SelectCurrentSensorGain+0x8a>
  6313. uint16_t gain0Gpio = 1 << gpioOffset;
  6314. 8002faa: 7bfb ldrb r3, [r7, #15]
  6315. 8002fac: 2201 movs r2, #1
  6316. 8002fae: fa02 f303 lsl.w r3, r2, r3
  6317. 8002fb2: 81bb strh r3, [r7, #12]
  6318. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  6319. 8002fb4: 7bfb ldrb r3, [r7, #15]
  6320. 8002fb6: 3301 adds r3, #1
  6321. 8002fb8: 2201 movs r2, #1
  6322. 8002fba: fa02 f303 lsl.w r3, r2, r3
  6323. 8002fbe: 817b strh r3, [r7, #10]
  6324. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  6325. 8002fc0: 79bb ldrb r3, [r7, #6]
  6326. 8002fc2: b29b uxth r3, r3
  6327. 8002fc4: f003 0301 and.w r3, r3, #1
  6328. 8002fc8: 813b strh r3, [r7, #8]
  6329. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  6330. 8002fca: 893b ldrh r3, [r7, #8]
  6331. 8002fcc: b2da uxtb r2, r3
  6332. 8002fce: 89bb ldrh r3, [r7, #12]
  6333. 8002fd0: 4619 mov r1, r3
  6334. 8002fd2: 480a ldr r0, [pc, #40] @ (8002ffc <SelectCurrentSensorGain+0x94>)
  6335. 8002fd4: f008 fac6 bl 800b564 <HAL_GPIO_WritePin>
  6336. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  6337. 8002fd8: 79bb ldrb r3, [r7, #6]
  6338. 8002fda: 085b lsrs r3, r3, #1
  6339. 8002fdc: b2db uxtb r3, r3
  6340. 8002fde: f003 0301 and.w r3, r3, #1
  6341. 8002fe2: 813b strh r3, [r7, #8]
  6342. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  6343. 8002fe4: 893b ldrh r3, [r7, #8]
  6344. 8002fe6: b2da uxtb r2, r3
  6345. 8002fe8: 897b ldrh r3, [r7, #10]
  6346. 8002fea: 4619 mov r1, r3
  6347. 8002fec: 4803 ldr r0, [pc, #12] @ (8002ffc <SelectCurrentSensorGain+0x94>)
  6348. 8002fee: f008 fab9 bl 800b564 <HAL_GPIO_WritePin>
  6349. }
  6350. }
  6351. 8002ff2: bf00 nop
  6352. 8002ff4: 3710 adds r7, #16
  6353. 8002ff6: 46bd mov sp, r7
  6354. 8002ff8: bd80 pop {r7, pc}
  6355. 8002ffa: bf00 nop
  6356. 8002ffc: 58021000 .word 0x58021000
  6357. 08003000 <MotorControl>:
  6358. uint8_t
  6359. MotorControl (TIM_HandleTypeDef* htim, TIM_OC_InitTypeDef* motorTimerConfigOC, uint8_t channel1, uint8_t channel2, osTimerId_t motorTimerHandle, int32_t motorPWMPulse, int32_t motorTimerPeriod, uint8_t switchLimiterUpStat, uint8_t switchLimiterDownStat) {
  6360. 8003000: b580 push {r7, lr}
  6361. 8003002: b088 sub sp, #32
  6362. 8003004: af02 add r7, sp, #8
  6363. 8003006: 60f8 str r0, [r7, #12]
  6364. 8003008: 60b9 str r1, [r7, #8]
  6365. 800300a: 4611 mov r1, r2
  6366. 800300c: 461a mov r2, r3
  6367. 800300e: 460b mov r3, r1
  6368. 8003010: 71fb strb r3, [r7, #7]
  6369. 8003012: 4613 mov r3, r2
  6370. 8003014: 71bb strb r3, [r7, #6]
  6371. uint32_t motorStatus = 0;
  6372. 8003016: 2300 movs r3, #0
  6373. 8003018: 617b str r3, [r7, #20]
  6374. MotorDriverState setMotorState = HiZ;
  6375. 800301a: 2300 movs r3, #0
  6376. 800301c: 74fb strb r3, [r7, #19]
  6377. HAL_TIM_PWM_Stop (htim, channel1);
  6378. 800301e: 79fb ldrb r3, [r7, #7]
  6379. 8003020: 4619 mov r1, r3
  6380. 8003022: 68f8 ldr r0, [r7, #12]
  6381. 8003024: f00c fca6 bl 800f974 <HAL_TIM_PWM_Stop>
  6382. HAL_TIM_PWM_Stop (htim, channel2);
  6383. 8003028: 79bb ldrb r3, [r7, #6]
  6384. 800302a: 4619 mov r1, r3
  6385. 800302c: 68f8 ldr r0, [r7, #12]
  6386. 800302e: f00c fca1 bl 800f974 <HAL_TIM_PWM_Stop>
  6387. if (motorTimerPeriod > 0) {
  6388. 8003032: 6abb ldr r3, [r7, #40] @ 0x28
  6389. 8003034: 2b00 cmp r3, #0
  6390. 8003036: f340 808c ble.w 8003152 <MotorControl+0x152>
  6391. if (motorPWMPulse > 0) {
  6392. 800303a: 6a7b ldr r3, [r7, #36] @ 0x24
  6393. 800303c: 2b00 cmp r3, #0
  6394. 800303e: dd2c ble.n 800309a <MotorControl+0x9a>
  6395. // Forward
  6396. if (switchLimiterUpStat == 0) {
  6397. 8003040: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6398. 8003044: 2b00 cmp r3, #0
  6399. 8003046: d11d bne.n 8003084 <MotorControl+0x84>
  6400. setMotorState = Forward;
  6401. 8003048: 2301 movs r3, #1
  6402. 800304a: 74fb strb r3, [r7, #19]
  6403. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6404. 800304c: 79f9 ldrb r1, [r7, #7]
  6405. 800304e: 79b8 ldrb r0, [r7, #6]
  6406. 8003050: 6a7b ldr r3, [r7, #36] @ 0x24
  6407. 8003052: ea83 72e3 eor.w r2, r3, r3, asr #31
  6408. 8003056: eba2 72e3 sub.w r2, r2, r3, asr #31
  6409. 800305a: 4613 mov r3, r2
  6410. 800305c: 009b lsls r3, r3, #2
  6411. 800305e: 4413 add r3, r2
  6412. 8003060: 005b lsls r3, r3, #1
  6413. 8003062: 9301 str r3, [sp, #4]
  6414. 8003064: 7cfb ldrb r3, [r7, #19]
  6415. 8003066: 9300 str r3, [sp, #0]
  6416. 8003068: 4603 mov r3, r0
  6417. 800306a: 460a mov r2, r1
  6418. 800306c: 68b9 ldr r1, [r7, #8]
  6419. 800306e: 68f8 ldr r0, [r7, #12]
  6420. 8003070: f000 f8ff bl 8003272 <MotorAction>
  6421. HAL_TIM_PWM_Start (htim, channel1);
  6422. 8003074: 79fb ldrb r3, [r7, #7]
  6423. 8003076: 4619 mov r1, r3
  6424. 8003078: 68f8 ldr r0, [r7, #12]
  6425. 800307a: f00c fb6d bl 800f758 <HAL_TIM_PWM_Start>
  6426. motorStatus = 1;
  6427. 800307e: 2301 movs r3, #1
  6428. 8003080: 617b str r3, [r7, #20]
  6429. 8003082: e004 b.n 800308e <MotorControl+0x8e>
  6430. } else {
  6431. HAL_TIM_PWM_Stop (htim, channel1);
  6432. 8003084: 79fb ldrb r3, [r7, #7]
  6433. 8003086: 4619 mov r1, r3
  6434. 8003088: 68f8 ldr r0, [r7, #12]
  6435. 800308a: f00c fc73 bl 800f974 <HAL_TIM_PWM_Stop>
  6436. }
  6437. HAL_TIM_PWM_Stop (htim, channel2);
  6438. 800308e: 79bb ldrb r3, [r7, #6]
  6439. 8003090: 4619 mov r1, r3
  6440. 8003092: 68f8 ldr r0, [r7, #12]
  6441. 8003094: f00c fc6e bl 800f974 <HAL_TIM_PWM_Stop>
  6442. 8003098: e051 b.n 800313e <MotorControl+0x13e>
  6443. } else if (motorPWMPulse < 0) {
  6444. 800309a: 6a7b ldr r3, [r7, #36] @ 0x24
  6445. 800309c: 2b00 cmp r3, #0
  6446. 800309e: da2c bge.n 80030fa <MotorControl+0xfa>
  6447. // Reverse
  6448. if (switchLimiterDownStat == 0) {
  6449. 80030a0: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6450. 80030a4: 2b00 cmp r3, #0
  6451. 80030a6: d11d bne.n 80030e4 <MotorControl+0xe4>
  6452. setMotorState = Reverse;
  6453. 80030a8: 2302 movs r3, #2
  6454. 80030aa: 74fb strb r3, [r7, #19]
  6455. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6456. 80030ac: 79f9 ldrb r1, [r7, #7]
  6457. 80030ae: 79b8 ldrb r0, [r7, #6]
  6458. 80030b0: 6a7b ldr r3, [r7, #36] @ 0x24
  6459. 80030b2: ea83 72e3 eor.w r2, r3, r3, asr #31
  6460. 80030b6: eba2 72e3 sub.w r2, r2, r3, asr #31
  6461. 80030ba: 4613 mov r3, r2
  6462. 80030bc: 009b lsls r3, r3, #2
  6463. 80030be: 4413 add r3, r2
  6464. 80030c0: 005b lsls r3, r3, #1
  6465. 80030c2: 9301 str r3, [sp, #4]
  6466. 80030c4: 7cfb ldrb r3, [r7, #19]
  6467. 80030c6: 9300 str r3, [sp, #0]
  6468. 80030c8: 4603 mov r3, r0
  6469. 80030ca: 460a mov r2, r1
  6470. 80030cc: 68b9 ldr r1, [r7, #8]
  6471. 80030ce: 68f8 ldr r0, [r7, #12]
  6472. 80030d0: f000 f8cf bl 8003272 <MotorAction>
  6473. HAL_TIM_PWM_Start (htim, channel2);
  6474. 80030d4: 79bb ldrb r3, [r7, #6]
  6475. 80030d6: 4619 mov r1, r3
  6476. 80030d8: 68f8 ldr r0, [r7, #12]
  6477. 80030da: f00c fb3d bl 800f758 <HAL_TIM_PWM_Start>
  6478. motorStatus = 1;
  6479. 80030de: 2301 movs r3, #1
  6480. 80030e0: 617b str r3, [r7, #20]
  6481. 80030e2: e004 b.n 80030ee <MotorControl+0xee>
  6482. } else {
  6483. HAL_TIM_PWM_Stop (htim, channel2);
  6484. 80030e4: 79bb ldrb r3, [r7, #6]
  6485. 80030e6: 4619 mov r1, r3
  6486. 80030e8: 68f8 ldr r0, [r7, #12]
  6487. 80030ea: f00c fc43 bl 800f974 <HAL_TIM_PWM_Stop>
  6488. }
  6489. HAL_TIM_PWM_Stop (htim, channel1);
  6490. 80030ee: 79fb ldrb r3, [r7, #7]
  6491. 80030f0: 4619 mov r1, r3
  6492. 80030f2: 68f8 ldr r0, [r7, #12]
  6493. 80030f4: f00c fc3e bl 800f974 <HAL_TIM_PWM_Stop>
  6494. 80030f8: e021 b.n 800313e <MotorControl+0x13e>
  6495. } else {
  6496. // Brake
  6497. setMotorState = Brake;
  6498. 80030fa: 2303 movs r3, #3
  6499. 80030fc: 74fb strb r3, [r7, #19]
  6500. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6501. 80030fe: 79f9 ldrb r1, [r7, #7]
  6502. 8003100: 79b8 ldrb r0, [r7, #6]
  6503. 8003102: 6a7b ldr r3, [r7, #36] @ 0x24
  6504. 8003104: ea83 72e3 eor.w r2, r3, r3, asr #31
  6505. 8003108: eba2 72e3 sub.w r2, r2, r3, asr #31
  6506. 800310c: 4613 mov r3, r2
  6507. 800310e: 009b lsls r3, r3, #2
  6508. 8003110: 4413 add r3, r2
  6509. 8003112: 005b lsls r3, r3, #1
  6510. 8003114: 9301 str r3, [sp, #4]
  6511. 8003116: 7cfb ldrb r3, [r7, #19]
  6512. 8003118: 9300 str r3, [sp, #0]
  6513. 800311a: 4603 mov r3, r0
  6514. 800311c: 460a mov r2, r1
  6515. 800311e: 68b9 ldr r1, [r7, #8]
  6516. 8003120: 68f8 ldr r0, [r7, #12]
  6517. 8003122: f000 f8a6 bl 8003272 <MotorAction>
  6518. HAL_TIM_PWM_Start (htim, channel1);
  6519. 8003126: 79fb ldrb r3, [r7, #7]
  6520. 8003128: 4619 mov r1, r3
  6521. 800312a: 68f8 ldr r0, [r7, #12]
  6522. 800312c: f00c fb14 bl 800f758 <HAL_TIM_PWM_Start>
  6523. HAL_TIM_PWM_Start (htim, channel2);
  6524. 8003130: 79bb ldrb r3, [r7, #6]
  6525. 8003132: 4619 mov r1, r3
  6526. 8003134: 68f8 ldr r0, [r7, #12]
  6527. 8003136: f00c fb0f bl 800f758 <HAL_TIM_PWM_Start>
  6528. motorStatus = 0;
  6529. 800313a: 2300 movs r3, #0
  6530. 800313c: 617b str r3, [r7, #20]
  6531. }
  6532. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  6533. 800313e: 6abb ldr r3, [r7, #40] @ 0x28
  6534. 8003140: f44f 727a mov.w r2, #1000 @ 0x3e8
  6535. 8003144: fb02 f303 mul.w r3, r2, r3
  6536. 8003148: 4619 mov r1, r3
  6537. 800314a: 6a38 ldr r0, [r7, #32]
  6538. 800314c: f011 f8cc bl 80142e8 <osTimerStart>
  6539. 8003150: e089 b.n 8003266 <MotorControl+0x266>
  6540. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  6541. 8003152: 6abb ldr r3, [r7, #40] @ 0x28
  6542. 8003154: 2b00 cmp r3, #0
  6543. 8003156: d126 bne.n 80031a6 <MotorControl+0x1a6>
  6544. 8003158: 6a7b ldr r3, [r7, #36] @ 0x24
  6545. 800315a: 2b00 cmp r3, #0
  6546. 800315c: d123 bne.n 80031a6 <MotorControl+0x1a6>
  6547. MotorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  6548. 800315e: 79f9 ldrb r1, [r7, #7]
  6549. 8003160: 79b8 ldrb r0, [r7, #6]
  6550. 8003162: 6a7b ldr r3, [r7, #36] @ 0x24
  6551. 8003164: ea83 72e3 eor.w r2, r3, r3, asr #31
  6552. 8003168: eba2 72e3 sub.w r2, r2, r3, asr #31
  6553. 800316c: 4613 mov r3, r2
  6554. 800316e: 009b lsls r3, r3, #2
  6555. 8003170: 4413 add r3, r2
  6556. 8003172: 005b lsls r3, r3, #1
  6557. 8003174: 9301 str r3, [sp, #4]
  6558. 8003176: 2300 movs r3, #0
  6559. 8003178: 9300 str r3, [sp, #0]
  6560. 800317a: 4603 mov r3, r0
  6561. 800317c: 460a mov r2, r1
  6562. 800317e: 68b9 ldr r1, [r7, #8]
  6563. 8003180: 68f8 ldr r0, [r7, #12]
  6564. 8003182: f000 f876 bl 8003272 <MotorAction>
  6565. HAL_TIM_PWM_Stop (htim, channel1);
  6566. 8003186: 79fb ldrb r3, [r7, #7]
  6567. 8003188: 4619 mov r1, r3
  6568. 800318a: 68f8 ldr r0, [r7, #12]
  6569. 800318c: f00c fbf2 bl 800f974 <HAL_TIM_PWM_Stop>
  6570. HAL_TIM_PWM_Stop (htim, channel2);
  6571. 8003190: 79bb ldrb r3, [r7, #6]
  6572. 8003192: 4619 mov r1, r3
  6573. 8003194: 68f8 ldr r0, [r7, #12]
  6574. 8003196: f00c fbed bl 800f974 <HAL_TIM_PWM_Stop>
  6575. osTimerStop (motorTimerHandle);
  6576. 800319a: 6a38 ldr r0, [r7, #32]
  6577. 800319c: f011 f8d2 bl 8014344 <osTimerStop>
  6578. motorStatus = 0;
  6579. 80031a0: 2300 movs r3, #0
  6580. 80031a2: 617b str r3, [r7, #20]
  6581. 80031a4: e05f b.n 8003266 <MotorControl+0x266>
  6582. } else if (motorTimerPeriod == -1) {
  6583. 80031a6: 6abb ldr r3, [r7, #40] @ 0x28
  6584. 80031a8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  6585. 80031ac: d15b bne.n 8003266 <MotorControl+0x266>
  6586. if (motorPWMPulse > 0) {
  6587. 80031ae: 6a7b ldr r3, [r7, #36] @ 0x24
  6588. 80031b0: 2b00 cmp r3, #0
  6589. 80031b2: dd2c ble.n 800320e <MotorControl+0x20e>
  6590. // Forward
  6591. if (switchLimiterUpStat == 0) {
  6592. 80031b4: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  6593. 80031b8: 2b00 cmp r3, #0
  6594. 80031ba: d11d bne.n 80031f8 <MotorControl+0x1f8>
  6595. setMotorState = Forward;
  6596. 80031bc: 2301 movs r3, #1
  6597. 80031be: 74fb strb r3, [r7, #19]
  6598. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6599. 80031c0: 79f9 ldrb r1, [r7, #7]
  6600. 80031c2: 79b8 ldrb r0, [r7, #6]
  6601. 80031c4: 6a7b ldr r3, [r7, #36] @ 0x24
  6602. 80031c6: ea83 72e3 eor.w r2, r3, r3, asr #31
  6603. 80031ca: eba2 72e3 sub.w r2, r2, r3, asr #31
  6604. 80031ce: 4613 mov r3, r2
  6605. 80031d0: 009b lsls r3, r3, #2
  6606. 80031d2: 4413 add r3, r2
  6607. 80031d4: 005b lsls r3, r3, #1
  6608. 80031d6: 9301 str r3, [sp, #4]
  6609. 80031d8: 7cfb ldrb r3, [r7, #19]
  6610. 80031da: 9300 str r3, [sp, #0]
  6611. 80031dc: 4603 mov r3, r0
  6612. 80031de: 460a mov r2, r1
  6613. 80031e0: 68b9 ldr r1, [r7, #8]
  6614. 80031e2: 68f8 ldr r0, [r7, #12]
  6615. 80031e4: f000 f845 bl 8003272 <MotorAction>
  6616. HAL_TIM_PWM_Start (htim, channel1);
  6617. 80031e8: 79fb ldrb r3, [r7, #7]
  6618. 80031ea: 4619 mov r1, r3
  6619. 80031ec: 68f8 ldr r0, [r7, #12]
  6620. 80031ee: f00c fab3 bl 800f758 <HAL_TIM_PWM_Start>
  6621. motorStatus = 1;
  6622. 80031f2: 2301 movs r3, #1
  6623. 80031f4: 617b str r3, [r7, #20]
  6624. 80031f6: e004 b.n 8003202 <MotorControl+0x202>
  6625. } else {
  6626. HAL_TIM_PWM_Stop (htim, channel1);
  6627. 80031f8: 79fb ldrb r3, [r7, #7]
  6628. 80031fa: 4619 mov r1, r3
  6629. 80031fc: 68f8 ldr r0, [r7, #12]
  6630. 80031fe: f00c fbb9 bl 800f974 <HAL_TIM_PWM_Stop>
  6631. }
  6632. HAL_TIM_PWM_Stop (htim, channel2);
  6633. 8003202: 79bb ldrb r3, [r7, #6]
  6634. 8003204: 4619 mov r1, r3
  6635. 8003206: 68f8 ldr r0, [r7, #12]
  6636. 8003208: f00c fbb4 bl 800f974 <HAL_TIM_PWM_Stop>
  6637. 800320c: e02b b.n 8003266 <MotorControl+0x266>
  6638. } else {
  6639. // Reverse
  6640. if (switchLimiterDownStat == 0) {
  6641. 800320e: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  6642. 8003212: 2b00 cmp r3, #0
  6643. 8003214: d11d bne.n 8003252 <MotorControl+0x252>
  6644. setMotorState = Reverse;
  6645. 8003216: 2302 movs r3, #2
  6646. 8003218: 74fb strb r3, [r7, #19]
  6647. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  6648. 800321a: 79f9 ldrb r1, [r7, #7]
  6649. 800321c: 79b8 ldrb r0, [r7, #6]
  6650. 800321e: 6a7b ldr r3, [r7, #36] @ 0x24
  6651. 8003220: ea83 72e3 eor.w r2, r3, r3, asr #31
  6652. 8003224: eba2 72e3 sub.w r2, r2, r3, asr #31
  6653. 8003228: 4613 mov r3, r2
  6654. 800322a: 009b lsls r3, r3, #2
  6655. 800322c: 4413 add r3, r2
  6656. 800322e: 005b lsls r3, r3, #1
  6657. 8003230: 9301 str r3, [sp, #4]
  6658. 8003232: 7cfb ldrb r3, [r7, #19]
  6659. 8003234: 9300 str r3, [sp, #0]
  6660. 8003236: 4603 mov r3, r0
  6661. 8003238: 460a mov r2, r1
  6662. 800323a: 68b9 ldr r1, [r7, #8]
  6663. 800323c: 68f8 ldr r0, [r7, #12]
  6664. 800323e: f000 f818 bl 8003272 <MotorAction>
  6665. HAL_TIM_PWM_Start (htim, channel2);
  6666. 8003242: 79bb ldrb r3, [r7, #6]
  6667. 8003244: 4619 mov r1, r3
  6668. 8003246: 68f8 ldr r0, [r7, #12]
  6669. 8003248: f00c fa86 bl 800f758 <HAL_TIM_PWM_Start>
  6670. motorStatus = 1;
  6671. 800324c: 2301 movs r3, #1
  6672. 800324e: 617b str r3, [r7, #20]
  6673. 8003250: e004 b.n 800325c <MotorControl+0x25c>
  6674. } else {
  6675. HAL_TIM_PWM_Stop (htim, channel2);
  6676. 8003252: 79bb ldrb r3, [r7, #6]
  6677. 8003254: 4619 mov r1, r3
  6678. 8003256: 68f8 ldr r0, [r7, #12]
  6679. 8003258: f00c fb8c bl 800f974 <HAL_TIM_PWM_Stop>
  6680. }
  6681. HAL_TIM_PWM_Stop (htim, channel1);
  6682. 800325c: 79fb ldrb r3, [r7, #7]
  6683. 800325e: 4619 mov r1, r3
  6684. 8003260: 68f8 ldr r0, [r7, #12]
  6685. 8003262: f00c fb87 bl 800f974 <HAL_TIM_PWM_Stop>
  6686. }
  6687. }
  6688. return motorStatus;
  6689. 8003266: 697b ldr r3, [r7, #20]
  6690. 8003268: b2db uxtb r3, r3
  6691. }
  6692. 800326a: 4618 mov r0, r3
  6693. 800326c: 3718 adds r7, #24
  6694. 800326e: 46bd mov sp, r7
  6695. 8003270: bd80 pop {r7, pc}
  6696. 08003272 <MotorAction>:
  6697. void MotorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  6698. 8003272: b580 push {r7, lr}
  6699. 8003274: b084 sub sp, #16
  6700. 8003276: af00 add r7, sp, #0
  6701. 8003278: 60f8 str r0, [r7, #12]
  6702. 800327a: 60b9 str r1, [r7, #8]
  6703. 800327c: 607a str r2, [r7, #4]
  6704. 800327e: 603b str r3, [r7, #0]
  6705. timerConf->Pulse = pulse;
  6706. 8003280: 68bb ldr r3, [r7, #8]
  6707. 8003282: 69fa ldr r2, [r7, #28]
  6708. 8003284: 605a str r2, [r3, #4]
  6709. switch (setState) {
  6710. 8003286: 7e3b ldrb r3, [r7, #24]
  6711. 8003288: 2b02 cmp r3, #2
  6712. 800328a: dc02 bgt.n 8003292 <MotorAction+0x20>
  6713. 800328c: 2b00 cmp r3, #0
  6714. 800328e: da03 bge.n 8003298 <MotorAction+0x26>
  6715. 8003290: e038 b.n 8003304 <MotorAction+0x92>
  6716. 8003292: 2b03 cmp r3, #3
  6717. 8003294: d01b beq.n 80032ce <MotorAction+0x5c>
  6718. 8003296: e035 b.n 8003304 <MotorAction+0x92>
  6719. case Forward:
  6720. case Reverse:
  6721. case HiZ:
  6722. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6723. 8003298: 68bb ldr r3, [r7, #8]
  6724. 800329a: 2200 movs r2, #0
  6725. 800329c: 609a str r2, [r3, #8]
  6726. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6727. 800329e: 687a ldr r2, [r7, #4]
  6728. 80032a0: 68b9 ldr r1, [r7, #8]
  6729. 80032a2: 68f8 ldr r0, [r7, #12]
  6730. 80032a4: f00c ff52 bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6731. 80032a8: 4603 mov r3, r0
  6732. 80032aa: 2b00 cmp r3, #0
  6733. 80032ac: d001 beq.n 80032b2 <MotorAction+0x40>
  6734. Error_Handler ();
  6735. 80032ae: f7fe fe0d bl 8001ecc <Error_Handler>
  6736. }
  6737. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6738. 80032b2: 68bb ldr r3, [r7, #8]
  6739. 80032b4: 2200 movs r2, #0
  6740. 80032b6: 609a str r2, [r3, #8]
  6741. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6742. 80032b8: 683a ldr r2, [r7, #0]
  6743. 80032ba: 68b9 ldr r1, [r7, #8]
  6744. 80032bc: 68f8 ldr r0, [r7, #12]
  6745. 80032be: f00c ff45 bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6746. 80032c2: 4603 mov r3, r0
  6747. 80032c4: 2b00 cmp r3, #0
  6748. 80032c6: d038 beq.n 800333a <MotorAction+0xc8>
  6749. Error_Handler ();
  6750. 80032c8: f7fe fe00 bl 8001ecc <Error_Handler>
  6751. }
  6752. break;
  6753. 80032cc: e035 b.n 800333a <MotorAction+0xc8>
  6754. case Brake:
  6755. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6756. 80032ce: 68bb ldr r3, [r7, #8]
  6757. 80032d0: 2202 movs r2, #2
  6758. 80032d2: 609a str r2, [r3, #8]
  6759. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6760. 80032d4: 687a ldr r2, [r7, #4]
  6761. 80032d6: 68b9 ldr r1, [r7, #8]
  6762. 80032d8: 68f8 ldr r0, [r7, #12]
  6763. 80032da: f00c ff37 bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6764. 80032de: 4603 mov r3, r0
  6765. 80032e0: 2b00 cmp r3, #0
  6766. 80032e2: d001 beq.n 80032e8 <MotorAction+0x76>
  6767. Error_Handler ();
  6768. 80032e4: f7fe fdf2 bl 8001ecc <Error_Handler>
  6769. }
  6770. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6771. 80032e8: 68bb ldr r3, [r7, #8]
  6772. 80032ea: 2202 movs r2, #2
  6773. 80032ec: 609a str r2, [r3, #8]
  6774. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6775. 80032ee: 683a ldr r2, [r7, #0]
  6776. 80032f0: 68b9 ldr r1, [r7, #8]
  6777. 80032f2: 68f8 ldr r0, [r7, #12]
  6778. 80032f4: f00c ff2a bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6779. 80032f8: 4603 mov r3, r0
  6780. 80032fa: 2b00 cmp r3, #0
  6781. 80032fc: d01f beq.n 800333e <MotorAction+0xcc>
  6782. Error_Handler ();
  6783. 80032fe: f7fe fde5 bl 8001ecc <Error_Handler>
  6784. }
  6785. break;
  6786. 8003302: e01c b.n 800333e <MotorAction+0xcc>
  6787. default:
  6788. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6789. 8003304: 68bb ldr r3, [r7, #8]
  6790. 8003306: 2200 movs r2, #0
  6791. 8003308: 609a str r2, [r3, #8]
  6792. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6793. 800330a: 687a ldr r2, [r7, #4]
  6794. 800330c: 68b9 ldr r1, [r7, #8]
  6795. 800330e: 68f8 ldr r0, [r7, #12]
  6796. 8003310: f00c ff1c bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6797. 8003314: 4603 mov r3, r0
  6798. 8003316: 2b00 cmp r3, #0
  6799. 8003318: d001 beq.n 800331e <MotorAction+0xac>
  6800. Error_Handler ();
  6801. 800331a: f7fe fdd7 bl 8001ecc <Error_Handler>
  6802. }
  6803. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6804. 800331e: 68bb ldr r3, [r7, #8]
  6805. 8003320: 2200 movs r2, #0
  6806. 8003322: 609a str r2, [r3, #8]
  6807. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6808. 8003324: 683a ldr r2, [r7, #0]
  6809. 8003326: 68b9 ldr r1, [r7, #8]
  6810. 8003328: 68f8 ldr r0, [r7, #12]
  6811. 800332a: f00c ff0f bl 801014c <HAL_TIM_PWM_ConfigChannel>
  6812. 800332e: 4603 mov r3, r0
  6813. 8003330: 2b00 cmp r3, #0
  6814. 8003332: d006 beq.n 8003342 <MotorAction+0xd0>
  6815. Error_Handler ();
  6816. 8003334: f7fe fdca bl 8001ecc <Error_Handler>
  6817. }
  6818. break;
  6819. 8003338: e003 b.n 8003342 <MotorAction+0xd0>
  6820. break;
  6821. 800333a: bf00 nop
  6822. 800333c: e002 b.n 8003344 <MotorAction+0xd2>
  6823. break;
  6824. 800333e: bf00 nop
  6825. 8003340: e000 b.n 8003344 <MotorAction+0xd2>
  6826. break;
  6827. 8003342: bf00 nop
  6828. }
  6829. }
  6830. 8003344: bf00 nop
  6831. 8003346: 3710 adds r7, #16
  6832. 8003348: 46bd mov sp, r7
  6833. 800334a: bd80 pop {r7, pc}
  6834. 0800334c <PositionControlTaskInit>:
  6835. extern osTimerId_t motorXTimerHandle;
  6836. extern osTimerId_t motorYTimerHandle;
  6837. extern TIM_HandleTypeDef htim3;
  6838. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  6839. void PositionControlTaskInit (void) {
  6840. 800334c: b580 push {r7, lr}
  6841. 800334e: b08a sub sp, #40 @ 0x28
  6842. 8003350: af00 add r7, sp, #0
  6843. positionSettingMutex = osMutexNew (NULL);
  6844. 8003352: 2000 movs r0, #0
  6845. 8003354: f011 f82d bl 80143b2 <osMutexNew>
  6846. 8003358: 4603 mov r3, r0
  6847. 800335a: 4a42 ldr r2, [pc, #264] @ (8003464 <PositionControlTaskInit+0x118>)
  6848. 800335c: 6013 str r3, [r2, #0]
  6849. osThreadAttr_t osThreadAttrPositionControlTask = { 0 };
  6850. 800335e: 1d3b adds r3, r7, #4
  6851. 8003360: 2224 movs r2, #36 @ 0x24
  6852. 8003362: 2100 movs r1, #0
  6853. 8003364: 4618 mov r0, r3
  6854. 8003366: f014 ffd7 bl 8018318 <memset>
  6855. osThreadAttrPositionControlTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  6856. 800336a: f44f 6380 mov.w r3, #1024 @ 0x400
  6857. 800336e: 61bb str r3, [r7, #24]
  6858. osThreadAttrPositionControlTask.priority = (osPriority_t)osPriorityNormal;
  6859. 8003370: 2318 movs r3, #24
  6860. 8003372: 61fb str r3, [r7, #28]
  6861. positionXControlTaskInitArg.channel1 = TIM_CHANNEL_1;
  6862. 8003374: 4b3c ldr r3, [pc, #240] @ (8003468 <PositionControlTaskInit+0x11c>)
  6863. 8003376: 2200 movs r2, #0
  6864. 8003378: 721a strb r2, [r3, #8]
  6865. positionXControlTaskInitArg.channel2 = TIM_CHANNEL_2;
  6866. 800337a: 4b3b ldr r3, [pc, #236] @ (8003468 <PositionControlTaskInit+0x11c>)
  6867. 800337c: 2204 movs r2, #4
  6868. 800337e: 725a strb r2, [r3, #9]
  6869. positionXControlTaskInitArg.htim = &htim3;
  6870. 8003380: 4b39 ldr r3, [pc, #228] @ (8003468 <PositionControlTaskInit+0x11c>)
  6871. 8003382: 4a3a ldr r2, [pc, #232] @ (800346c <PositionControlTaskInit+0x120>)
  6872. 8003384: 601a str r2, [r3, #0]
  6873. positionXControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6874. 8003386: 4b38 ldr r3, [pc, #224] @ (8003468 <PositionControlTaskInit+0x11c>)
  6875. 8003388: 4a39 ldr r2, [pc, #228] @ (8003470 <PositionControlTaskInit+0x124>)
  6876. 800338a: 605a str r2, [r3, #4]
  6877. positionXControlTaskInitArg.motorTimerHandle = motorXTimerHandle;
  6878. 800338c: 4b39 ldr r3, [pc, #228] @ (8003474 <PositionControlTaskInit+0x128>)
  6879. 800338e: 681b ldr r3, [r3, #0]
  6880. 8003390: 4a35 ldr r2, [pc, #212] @ (8003468 <PositionControlTaskInit+0x11c>)
  6881. 8003392: 60d3 str r3, [r2, #12]
  6882. positionXControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6883. 8003394: 2200 movs r2, #0
  6884. 8003396: 2104 movs r1, #4
  6885. 8003398: 2010 movs r0, #16
  6886. 800339a: f011 f918 bl 80145ce <osMessageQueueNew>
  6887. 800339e: 4603 mov r3, r0
  6888. 80033a0: 4a31 ldr r2, [pc, #196] @ (8003468 <PositionControlTaskInit+0x11c>)
  6889. 80033a2: 6113 str r3, [r2, #16]
  6890. positionXControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitXSwitchCenter);
  6891. 80033a4: 4b30 ldr r3, [pc, #192] @ (8003468 <PositionControlTaskInit+0x11c>)
  6892. 80033a6: 4a34 ldr r2, [pc, #208] @ (8003478 <PositionControlTaskInit+0x12c>)
  6893. 80033a8: 61da str r2, [r3, #28]
  6894. positionXControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitXSwitchUp);
  6895. 80033aa: 4b2f ldr r3, [pc, #188] @ (8003468 <PositionControlTaskInit+0x11c>)
  6896. 80033ac: 4a33 ldr r2, [pc, #204] @ (800347c <PositionControlTaskInit+0x130>)
  6897. 80033ae: 615a str r2, [r3, #20]
  6898. positionXControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitXSwitchDown);
  6899. 80033b0: 4b2d ldr r3, [pc, #180] @ (8003468 <PositionControlTaskInit+0x11c>)
  6900. 80033b2: 4a33 ldr r2, [pc, #204] @ (8003480 <PositionControlTaskInit+0x134>)
  6901. 80033b4: 619a str r2, [r3, #24]
  6902. positionXControlTaskInitArg.currentPosition = &(sensorsInfo.currentXPosition);
  6903. 80033b6: 4b2c ldr r3, [pc, #176] @ (8003468 <PositionControlTaskInit+0x11c>)
  6904. 80033b8: 4a32 ldr r2, [pc, #200] @ (8003484 <PositionControlTaskInit+0x138>)
  6905. 80033ba: 621a str r2, [r3, #32]
  6906. positionXControlTaskInitArg.motorStatus = &(sensorsInfo.motorXStatus);
  6907. 80033bc: 4b2a ldr r3, [pc, #168] @ (8003468 <PositionControlTaskInit+0x11c>)
  6908. 80033be: 4a32 ldr r2, [pc, #200] @ (8003488 <PositionControlTaskInit+0x13c>)
  6909. 80033c0: 629a str r2, [r3, #40] @ 0x28
  6910. positionXControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorXPeakCurrent);
  6911. 80033c2: 4b29 ldr r3, [pc, #164] @ (8003468 <PositionControlTaskInit+0x11c>)
  6912. 80033c4: 4a31 ldr r2, [pc, #196] @ (800348c <PositionControlTaskInit+0x140>)
  6913. 80033c6: 62da str r2, [r3, #44] @ 0x2c
  6914. positionXControlTaskInitArg.positionSetting = &positionXSetting;
  6915. 80033c8: 4b27 ldr r3, [pc, #156] @ (8003468 <PositionControlTaskInit+0x11c>)
  6916. 80033ca: 4a31 ldr r2, [pc, #196] @ (8003490 <PositionControlTaskInit+0x144>)
  6917. 80033cc: 625a str r2, [r3, #36] @ 0x24
  6918. positionXControlTaskInitArg.axe = 'X';
  6919. 80033ce: 4b26 ldr r3, [pc, #152] @ (8003468 <PositionControlTaskInit+0x11c>)
  6920. 80033d0: 2258 movs r2, #88 @ 0x58
  6921. 80033d2: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6922. positionYControlTaskInitArg.channel1 = TIM_CHANNEL_3;
  6923. 80033d6: 4b2f ldr r3, [pc, #188] @ (8003494 <PositionControlTaskInit+0x148>)
  6924. 80033d8: 2208 movs r2, #8
  6925. 80033da: 721a strb r2, [r3, #8]
  6926. positionYControlTaskInitArg.channel2 = TIM_CHANNEL_4;
  6927. 80033dc: 4b2d ldr r3, [pc, #180] @ (8003494 <PositionControlTaskInit+0x148>)
  6928. 80033de: 220c movs r2, #12
  6929. 80033e0: 725a strb r2, [r3, #9]
  6930. positionYControlTaskInitArg.htim = &htim3;
  6931. 80033e2: 4b2c ldr r3, [pc, #176] @ (8003494 <PositionControlTaskInit+0x148>)
  6932. 80033e4: 4a21 ldr r2, [pc, #132] @ (800346c <PositionControlTaskInit+0x120>)
  6933. 80033e6: 601a str r2, [r3, #0]
  6934. positionYControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6935. 80033e8: 4b2a ldr r3, [pc, #168] @ (8003494 <PositionControlTaskInit+0x148>)
  6936. 80033ea: 4a21 ldr r2, [pc, #132] @ (8003470 <PositionControlTaskInit+0x124>)
  6937. 80033ec: 605a str r2, [r3, #4]
  6938. positionYControlTaskInitArg.motorTimerHandle = motorYTimerHandle;
  6939. 80033ee: 4b2a ldr r3, [pc, #168] @ (8003498 <PositionControlTaskInit+0x14c>)
  6940. 80033f0: 681b ldr r3, [r3, #0]
  6941. 80033f2: 4a28 ldr r2, [pc, #160] @ (8003494 <PositionControlTaskInit+0x148>)
  6942. 80033f4: 60d3 str r3, [r2, #12]
  6943. positionYControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6944. 80033f6: 2200 movs r2, #0
  6945. 80033f8: 2104 movs r1, #4
  6946. 80033fa: 2010 movs r0, #16
  6947. 80033fc: f011 f8e7 bl 80145ce <osMessageQueueNew>
  6948. 8003400: 4603 mov r3, r0
  6949. 8003402: 4a24 ldr r2, [pc, #144] @ (8003494 <PositionControlTaskInit+0x148>)
  6950. 8003404: 6113 str r3, [r2, #16]
  6951. positionYControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitYSwitchCenter);
  6952. 8003406: 4b23 ldr r3, [pc, #140] @ (8003494 <PositionControlTaskInit+0x148>)
  6953. 8003408: 4a24 ldr r2, [pc, #144] @ (800349c <PositionControlTaskInit+0x150>)
  6954. 800340a: 61da str r2, [r3, #28]
  6955. positionYControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitYSwitchUp);
  6956. 800340c: 4b21 ldr r3, [pc, #132] @ (8003494 <PositionControlTaskInit+0x148>)
  6957. 800340e: 4a24 ldr r2, [pc, #144] @ (80034a0 <PositionControlTaskInit+0x154>)
  6958. 8003410: 615a str r2, [r3, #20]
  6959. positionYControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitYSwitchDown);
  6960. 8003412: 4b20 ldr r3, [pc, #128] @ (8003494 <PositionControlTaskInit+0x148>)
  6961. 8003414: 4a23 ldr r2, [pc, #140] @ (80034a4 <PositionControlTaskInit+0x158>)
  6962. 8003416: 619a str r2, [r3, #24]
  6963. positionYControlTaskInitArg.currentPosition = &(sensorsInfo.currentYPosition);
  6964. 8003418: 4b1e ldr r3, [pc, #120] @ (8003494 <PositionControlTaskInit+0x148>)
  6965. 800341a: 4a23 ldr r2, [pc, #140] @ (80034a8 <PositionControlTaskInit+0x15c>)
  6966. 800341c: 621a str r2, [r3, #32]
  6967. positionYControlTaskInitArg.motorStatus = &(sensorsInfo.motorYStatus);
  6968. 800341e: 4b1d ldr r3, [pc, #116] @ (8003494 <PositionControlTaskInit+0x148>)
  6969. 8003420: 4a22 ldr r2, [pc, #136] @ (80034ac <PositionControlTaskInit+0x160>)
  6970. 8003422: 629a str r2, [r3, #40] @ 0x28
  6971. positionYControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorYPeakCurrent);
  6972. 8003424: 4b1b ldr r3, [pc, #108] @ (8003494 <PositionControlTaskInit+0x148>)
  6973. 8003426: 4a22 ldr r2, [pc, #136] @ (80034b0 <PositionControlTaskInit+0x164>)
  6974. 8003428: 62da str r2, [r3, #44] @ 0x2c
  6975. positionXControlTaskInitArg.positionSetting = &positionYSetting;
  6976. 800342a: 4b0f ldr r3, [pc, #60] @ (8003468 <PositionControlTaskInit+0x11c>)
  6977. 800342c: 4a21 ldr r2, [pc, #132] @ (80034b4 <PositionControlTaskInit+0x168>)
  6978. 800342e: 625a str r2, [r3, #36] @ 0x24
  6979. positionYControlTaskInitArg.axe = 'Y';
  6980. 8003430: 4b18 ldr r3, [pc, #96] @ (8003494 <PositionControlTaskInit+0x148>)
  6981. 8003432: 2259 movs r2, #89 @ 0x59
  6982. 8003434: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6983. positionXControlTaskHandle = osThreadNew (PositionControlTask, &positionXControlTaskInitArg, &osThreadAttrPositionControlTask);
  6984. 8003438: 1d3b adds r3, r7, #4
  6985. 800343a: 461a mov r2, r3
  6986. 800343c: 490a ldr r1, [pc, #40] @ (8003468 <PositionControlTaskInit+0x11c>)
  6987. 800343e: 481e ldr r0, [pc, #120] @ (80034b8 <PositionControlTaskInit+0x16c>)
  6988. 8003440: f010 fe12 bl 8014068 <osThreadNew>
  6989. 8003444: 4603 mov r3, r0
  6990. 8003446: 4a1d ldr r2, [pc, #116] @ (80034bc <PositionControlTaskInit+0x170>)
  6991. 8003448: 6013 str r3, [r2, #0]
  6992. positionYControlTaskHandle = osThreadNew (PositionControlTask, &positionYControlTaskInitArg, &osThreadAttrPositionControlTask);
  6993. 800344a: 1d3b adds r3, r7, #4
  6994. 800344c: 461a mov r2, r3
  6995. 800344e: 4911 ldr r1, [pc, #68] @ (8003494 <PositionControlTaskInit+0x148>)
  6996. 8003450: 4819 ldr r0, [pc, #100] @ (80034b8 <PositionControlTaskInit+0x16c>)
  6997. 8003452: f010 fe09 bl 8014068 <osThreadNew>
  6998. 8003456: 4603 mov r3, r0
  6999. 8003458: 4a19 ldr r2, [pc, #100] @ (80034c0 <PositionControlTaskInit+0x174>)
  7000. 800345a: 6013 str r3, [r2, #0]
  7001. }
  7002. 800345c: bf00 nop
  7003. 800345e: 3728 adds r7, #40 @ 0x28
  7004. 8003460: 46bd mov sp, r7
  7005. 8003462: bd80 pop {r7, pc}
  7006. 8003464: 240008a8 .word 0x240008a8
  7007. 8003468: 240008b4 .word 0x240008b4
  7008. 800346c: 240004d4 .word 0x240004d4
  7009. 8003470: 240007c0 .word 0x240007c0
  7010. 8003474: 24000744 .word 0x24000744
  7011. 8003478: 2400088a .word 0x2400088a
  7012. 800347c: 24000888 .word 0x24000888
  7013. 8003480: 24000889 .word 0x24000889
  7014. 8003484: 24000890 .word 0x24000890
  7015. 8003488: 24000874 .word 0x24000874
  7016. 800348c: 24000880 .word 0x24000880
  7017. 8003490: 240008a0 .word 0x240008a0
  7018. 8003494: 240008e8 .word 0x240008e8
  7019. 8003498: 24000774 .word 0x24000774
  7020. 800349c: 2400088d .word 0x2400088d
  7021. 80034a0: 2400088b .word 0x2400088b
  7022. 80034a4: 2400088c .word 0x2400088c
  7023. 80034a8: 24000894 .word 0x24000894
  7024. 80034ac: 24000875 .word 0x24000875
  7025. 80034b0: 24000884 .word 0x24000884
  7026. 80034b4: 240008a4 .word 0x240008a4
  7027. 80034b8: 080034c5 .word 0x080034c5
  7028. 80034bc: 240008ac .word 0x240008ac
  7029. 80034c0: 240008b0 .word 0x240008b0
  7030. 080034c4 <PositionControlTask>:
  7031. void PositionControlTask (void* argument) {
  7032. 80034c4: b5f0 push {r4, r5, r6, r7, lr}
  7033. 80034c6: b097 sub sp, #92 @ 0x5c
  7034. 80034c8: af06 add r7, sp, #24
  7035. 80034ca: 6078 str r0, [r7, #4]
  7036. const int32_t PositionControlTaskTimeOut = 100;
  7037. 80034cc: 2364 movs r3, #100 @ 0x64
  7038. 80034ce: 623b str r3, [r7, #32]
  7039. PositionControlTaskInitArg* posCtrlTaskArg = (PositionControlTaskInitArg*)argument;
  7040. 80034d0: 687b ldr r3, [r7, #4]
  7041. 80034d2: 61fb str r3, [r7, #28]
  7042. PositionControlTaskData posCtrlData = { 0 };
  7043. 80034d4: f04f 0300 mov.w r3, #0
  7044. 80034d8: 60bb str r3, [r7, #8]
  7045. uint32_t motorStatus = 0;
  7046. 80034da: 2300 movs r3, #0
  7047. 80034dc: 61bb str r3, [r7, #24]
  7048. osStatus_t queueSatus;
  7049. int32_t pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7050. 80034de: 233c movs r3, #60 @ 0x3c
  7051. 80034e0: 63fb str r3, [r7, #60] @ 0x3c
  7052. int32_t sign = 0;
  7053. 80034e2: 2300 movs r3, #0
  7054. 80034e4: 63bb str r3, [r7, #56] @ 0x38
  7055. MovementPhases movementPhase = idlePhase;
  7056. 80034e6: 2300 movs r3, #0
  7057. 80034e8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7058. float startPosition = 0;
  7059. 80034ec: f04f 0300 mov.w r3, #0
  7060. 80034f0: 633b str r3, [r7, #48] @ 0x30
  7061. float prevPosition = 0;
  7062. 80034f2: f04f 0300 mov.w r3, #0
  7063. 80034f6: 62fb str r3, [r7, #44] @ 0x2c
  7064. int32_t timeLeftMS = 0;
  7065. 80034f8: 2300 movs r3, #0
  7066. 80034fa: 62bb str r3, [r7, #40] @ 0x28
  7067. int32_t moveCmdTimeoutCounter = 0;
  7068. 80034fc: 2300 movs r3, #0
  7069. 80034fe: 627b str r3, [r7, #36] @ 0x24
  7070. while (pdTRUE) {
  7071. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7072. 8003500: 69fb ldr r3, [r7, #28]
  7073. 8003502: 6918 ldr r0, [r3, #16]
  7074. 8003504: 6a3b ldr r3, [r7, #32]
  7075. 8003506: f44f 727a mov.w r2, #1000 @ 0x3e8
  7076. 800350a: fb02 f303 mul.w r3, r2, r3
  7077. 800350e: 4aa1 ldr r2, [pc, #644] @ (8003794 <PositionControlTask+0x2d0>)
  7078. 8003510: fba2 2303 umull r2, r3, r2, r3
  7079. 8003514: 099b lsrs r3, r3, #6
  7080. 8003516: f107 0108 add.w r1, r7, #8
  7081. 800351a: 2200 movs r2, #0
  7082. 800351c: f011 f92a bl 8014774 <osMessageQueueGet>
  7083. 8003520: 6178 str r0, [r7, #20]
  7084. if (queueSatus == osOK) {
  7085. 8003522: 697b ldr r3, [r7, #20]
  7086. 8003524: 2b00 cmp r3, #0
  7087. 8003526: d14a bne.n 80035be <PositionControlTask+0xfa>
  7088. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7089. 8003528: 4b9b ldr r3, [pc, #620] @ (8003798 <PositionControlTask+0x2d4>)
  7090. 800352a: 681b ldr r3, [r3, #0]
  7091. 800352c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7092. 8003530: 4618 mov r0, r3
  7093. 8003532: f010 ffc4 bl 80144be <osMutexAcquire>
  7094. 8003536: 4603 mov r3, r0
  7095. 8003538: 2b00 cmp r3, #0
  7096. 800353a: d1e1 bne.n 8003500 <PositionControlTask+0x3c>
  7097. float posDiff = posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition;
  7098. 800353c: ed97 7a02 vldr s14, [r7, #8]
  7099. 8003540: 69fb ldr r3, [r7, #28]
  7100. 8003542: 6a1b ldr r3, [r3, #32]
  7101. 8003544: edd3 7a00 vldr s15, [r3]
  7102. 8003548: ee77 7a67 vsub.f32 s15, s14, s15
  7103. 800354c: edc7 7a03 vstr s15, [r7, #12]
  7104. if (posDiff != 0) {
  7105. 8003550: edd7 7a03 vldr s15, [r7, #12]
  7106. 8003554: eef5 7a40 vcmp.f32 s15, #0.0
  7107. 8003558: eef1 fa10 vmrs APSR_nzcv, fpscr
  7108. 800355c: d016 beq.n 800358c <PositionControlTask+0xc8>
  7109. sign = posDiff > 0 ? 1 : -1;
  7110. 800355e: edd7 7a03 vldr s15, [r7, #12]
  7111. 8003562: eef5 7ac0 vcmpe.f32 s15, #0.0
  7112. 8003566: eef1 fa10 vmrs APSR_nzcv, fpscr
  7113. 800356a: dd01 ble.n 8003570 <PositionControlTask+0xac>
  7114. 800356c: 2301 movs r3, #1
  7115. 800356e: e001 b.n 8003574 <PositionControlTask+0xb0>
  7116. 8003570: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  7117. 8003574: 63bb str r3, [r7, #56] @ 0x38
  7118. startPosition = *posCtrlTaskArg->currentPosition;
  7119. 8003576: 69fb ldr r3, [r7, #28]
  7120. 8003578: 6a1b ldr r3, [r3, #32]
  7121. 800357a: 681b ldr r3, [r3, #0]
  7122. 800357c: 633b str r3, [r7, #48] @ 0x30
  7123. movementPhase = startPhase;
  7124. 800357e: 2301 movs r3, #1
  7125. 8003580: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7126. moveCmdTimeoutCounter = 0;
  7127. 8003584: 2300 movs r3, #0
  7128. 8003586: 627b str r3, [r7, #36] @ 0x24
  7129. timeLeftMS = 0;
  7130. 8003588: 2300 movs r3, #0
  7131. 800358a: 62bb str r3, [r7, #40] @ 0x28
  7132. #ifdef DBG_POSITION
  7133. printf ("Axe %c start phase\n", posCtrlTaskArg->axe);
  7134. #endif
  7135. }
  7136. osMutexRelease (sensorsInfoMutex);
  7137. 800358c: 4b82 ldr r3, [pc, #520] @ (8003798 <PositionControlTask+0x2d4>)
  7138. 800358e: 681b ldr r3, [r3, #0]
  7139. 8003590: 4618 mov r0, r3
  7140. 8003592: f010 ffdf bl 8014554 <osMutexRelease>
  7141. if (osMutexAcquire (positionSettingMutex, osWaitForever) == osOK) {
  7142. 8003596: 4b81 ldr r3, [pc, #516] @ (800379c <PositionControlTask+0x2d8>)
  7143. 8003598: 681b ldr r3, [r3, #0]
  7144. 800359a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7145. 800359e: 4618 mov r0, r3
  7146. 80035a0: f010 ff8d bl 80144be <osMutexAcquire>
  7147. 80035a4: 4603 mov r3, r0
  7148. 80035a6: 2b00 cmp r3, #0
  7149. 80035a8: d1aa bne.n 8003500 <PositionControlTask+0x3c>
  7150. *positionXControlTaskInitArg.positionSetting = posCtrlData.positionSettingValue;
  7151. 80035aa: 4b7d ldr r3, [pc, #500] @ (80037a0 <PositionControlTask+0x2dc>)
  7152. 80035ac: 6a5b ldr r3, [r3, #36] @ 0x24
  7153. 80035ae: 68ba ldr r2, [r7, #8]
  7154. 80035b0: 601a str r2, [r3, #0]
  7155. osMutexRelease (positionSettingMutex);
  7156. 80035b2: 4b7a ldr r3, [pc, #488] @ (800379c <PositionControlTask+0x2d8>)
  7157. 80035b4: 681b ldr r3, [r3, #0]
  7158. 80035b6: 4618 mov r0, r3
  7159. 80035b8: f010 ffcc bl 8014554 <osMutexRelease>
  7160. 80035bc: e7a0 b.n 8003500 <PositionControlTask+0x3c>
  7161. }
  7162. }
  7163. } else if (queueSatus == osErrorTimeout) {
  7164. 80035be: 697b ldr r3, [r7, #20]
  7165. 80035c0: f113 0f02 cmn.w r3, #2
  7166. 80035c4: d19c bne.n 8003500 <PositionControlTask+0x3c>
  7167. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  7168. 80035c6: 4b74 ldr r3, [pc, #464] @ (8003798 <PositionControlTask+0x2d4>)
  7169. 80035c8: 681b ldr r3, [r3, #0]
  7170. 80035ca: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7171. 80035ce: 4618 mov r0, r3
  7172. 80035d0: f010 ff75 bl 80144be <osMutexAcquire>
  7173. 80035d4: 4603 mov r3, r0
  7174. 80035d6: 2b00 cmp r3, #0
  7175. 80035d8: d192 bne.n 8003500 <PositionControlTask+0x3c>
  7176. if (((*posCtrlTaskArg->motorStatus != 0) && (movementPhase != idlePhase)) || (movementPhase == startPhase) ) {
  7177. 80035da: 69fb ldr r3, [r7, #28]
  7178. 80035dc: 6a9b ldr r3, [r3, #40] @ 0x28
  7179. 80035de: 781b ldrb r3, [r3, #0]
  7180. 80035e0: 2b00 cmp r3, #0
  7181. 80035e2: d003 beq.n 80035ec <PositionControlTask+0x128>
  7182. 80035e4: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7183. 80035e8: 2b00 cmp r3, #0
  7184. 80035ea: d104 bne.n 80035f6 <PositionControlTask+0x132>
  7185. 80035ec: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7186. 80035f0: 2b01 cmp r3, #1
  7187. 80035f2: f040 81c4 bne.w 800397e <PositionControlTask+0x4ba>
  7188. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7189. 80035f6: 69fb ldr r3, [r7, #28]
  7190. 80035f8: 699b ldr r3, [r3, #24]
  7191. 80035fa: 781b ldrb r3, [r3, #0]
  7192. 80035fc: 2b01 cmp r3, #1
  7193. 80035fe: d104 bne.n 800360a <PositionControlTask+0x146>
  7194. 8003600: 69fb ldr r3, [r7, #28]
  7195. 8003602: 695b ldr r3, [r3, #20]
  7196. 8003604: 781b ldrb r3, [r3, #0]
  7197. 8003606: 2b01 cmp r3, #1
  7198. 8003608: d009 beq.n 800361e <PositionControlTask+0x15a>
  7199. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7200. 800360a: 69fb ldr r3, [r7, #28]
  7201. 800360c: 695b ldr r3, [r3, #20]
  7202. 800360e: 781b ldrb r3, [r3, #0]
  7203. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  7204. 8003610: 2b01 cmp r3, #1
  7205. 8003612: d12a bne.n 800366a <PositionControlTask+0x1a6>
  7206. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  7207. 8003614: 69fb ldr r3, [r7, #28]
  7208. 8003616: 69db ldr r3, [r3, #28]
  7209. 8003618: 781b ldrb r3, [r3, #0]
  7210. 800361a: 2b01 cmp r3, #1
  7211. 800361c: d125 bne.n 800366a <PositionControlTask+0x1a6>
  7212. movementPhase = idlePhase;
  7213. 800361e: 2300 movs r3, #0
  7214. 8003620: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7215. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7216. 8003624: 69fb ldr r3, [r7, #28]
  7217. 8003626: 6818 ldr r0, [r3, #0]
  7218. 8003628: 69fb ldr r3, [r7, #28]
  7219. 800362a: 685c ldr r4, [r3, #4]
  7220. 800362c: 69fb ldr r3, [r7, #28]
  7221. 800362e: 7a1d ldrb r5, [r3, #8]
  7222. 8003630: 69fb ldr r3, [r7, #28]
  7223. 8003632: 7a5e ldrb r6, [r3, #9]
  7224. 8003634: 69fb ldr r3, [r7, #28]
  7225. 8003636: 68db ldr r3, [r3, #12]
  7226. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7227. 8003638: 69fa ldr r2, [r7, #28]
  7228. 800363a: 6952 ldr r2, [r2, #20]
  7229. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7230. 800363c: 7812 ldrb r2, [r2, #0]
  7231. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7232. 800363e: 69f9 ldr r1, [r7, #28]
  7233. 8003640: 6989 ldr r1, [r1, #24]
  7234. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7235. 8003642: 7809 ldrb r1, [r1, #0]
  7236. 8003644: 9104 str r1, [sp, #16]
  7237. 8003646: 9203 str r2, [sp, #12]
  7238. 8003648: 2200 movs r2, #0
  7239. 800364a: 9202 str r2, [sp, #8]
  7240. 800364c: 2200 movs r2, #0
  7241. 800364e: 9201 str r2, [sp, #4]
  7242. 8003650: 9300 str r3, [sp, #0]
  7243. 8003652: 4633 mov r3, r6
  7244. 8003654: 462a mov r2, r5
  7245. 8003656: 4621 mov r1, r4
  7246. 8003658: f7ff fcd2 bl 8003000 <MotorControl>
  7247. 800365c: 4603 mov r3, r0
  7248. 800365e: 61bb str r3, [r7, #24]
  7249. *posCtrlTaskArg->motorStatus = motorStatus;
  7250. 8003660: 69fb ldr r3, [r7, #28]
  7251. 8003662: 6a9b ldr r3, [r3, #40] @ 0x28
  7252. 8003664: 69ba ldr r2, [r7, #24]
  7253. 8003666: b2d2 uxtb r2, r2
  7254. 8003668: 701a strb r2, [r3, #0]
  7255. printf ("Axe %c limiters wrong state - idle phase\n", posCtrlTaskArg->axe);
  7256. #endif
  7257. }
  7258. timeLeftMS += PositionControlTaskTimeOut;
  7259. 800366a: 6aba ldr r2, [r7, #40] @ 0x28
  7260. 800366c: 6a3b ldr r3, [r7, #32]
  7261. 800366e: 4413 add r3, r2
  7262. 8003670: 62bb str r3, [r7, #40] @ 0x28
  7263. if (prevPosition == *posCtrlTaskArg->currentPosition) {
  7264. 8003672: 69fb ldr r3, [r7, #28]
  7265. 8003674: 6a1b ldr r3, [r3, #32]
  7266. 8003676: edd3 7a00 vldr s15, [r3]
  7267. 800367a: ed97 7a0b vldr s14, [r7, #44] @ 0x2c
  7268. 800367e: eeb4 7a67 vcmp.f32 s14, s15
  7269. 8003682: eef1 fa10 vmrs APSR_nzcv, fpscr
  7270. 8003686: d104 bne.n 8003692 <PositionControlTask+0x1ce>
  7271. moveCmdTimeoutCounter += PositionControlTaskTimeOut;
  7272. 8003688: 6a7a ldr r2, [r7, #36] @ 0x24
  7273. 800368a: 6a3b ldr r3, [r7, #32]
  7274. 800368c: 4413 add r3, r2
  7275. 800368e: 627b str r3, [r7, #36] @ 0x24
  7276. 8003690: e001 b.n 8003696 <PositionControlTask+0x1d2>
  7277. } else {
  7278. moveCmdTimeoutCounter = 0;
  7279. 8003692: 2300 movs r3, #0
  7280. 8003694: 627b str r3, [r7, #36] @ 0x24
  7281. }
  7282. prevPosition = *posCtrlTaskArg->currentPosition;
  7283. 8003696: 69fb ldr r3, [r7, #28]
  7284. 8003698: 6a1b ldr r3, [r3, #32]
  7285. 800369a: 681b ldr r3, [r3, #0]
  7286. 800369c: 62fb str r3, [r7, #44] @ 0x2c
  7287. if (moveCmdTimeoutCounter > NO_MOVE_TIMEOUT_MS) {
  7288. 800369e: 6a7b ldr r3, [r7, #36] @ 0x24
  7289. 80036a0: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7290. 80036a4: dd25 ble.n 80036f2 <PositionControlTask+0x22e>
  7291. movementPhase = idlePhase;
  7292. 80036a6: 2300 movs r3, #0
  7293. 80036a8: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7294. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7295. 80036ac: 69fb ldr r3, [r7, #28]
  7296. 80036ae: 6818 ldr r0, [r3, #0]
  7297. 80036b0: 69fb ldr r3, [r7, #28]
  7298. 80036b2: 685c ldr r4, [r3, #4]
  7299. 80036b4: 69fb ldr r3, [r7, #28]
  7300. 80036b6: 7a1d ldrb r5, [r3, #8]
  7301. 80036b8: 69fb ldr r3, [r7, #28]
  7302. 80036ba: 7a5e ldrb r6, [r3, #9]
  7303. 80036bc: 69fb ldr r3, [r7, #28]
  7304. 80036be: 68db ldr r3, [r3, #12]
  7305. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7306. 80036c0: 69fa ldr r2, [r7, #28]
  7307. 80036c2: 6952 ldr r2, [r2, #20]
  7308. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7309. 80036c4: 7812 ldrb r2, [r2, #0]
  7310. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7311. 80036c6: 69f9 ldr r1, [r7, #28]
  7312. 80036c8: 6989 ldr r1, [r1, #24]
  7313. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  7314. 80036ca: 7809 ldrb r1, [r1, #0]
  7315. 80036cc: 9104 str r1, [sp, #16]
  7316. 80036ce: 9203 str r2, [sp, #12]
  7317. 80036d0: 2200 movs r2, #0
  7318. 80036d2: 9202 str r2, [sp, #8]
  7319. 80036d4: 2200 movs r2, #0
  7320. 80036d6: 9201 str r2, [sp, #4]
  7321. 80036d8: 9300 str r3, [sp, #0]
  7322. 80036da: 4633 mov r3, r6
  7323. 80036dc: 462a mov r2, r5
  7324. 80036de: 4621 mov r1, r4
  7325. 80036e0: f7ff fc8e bl 8003000 <MotorControl>
  7326. 80036e4: 4603 mov r3, r0
  7327. 80036e6: 61bb str r3, [r7, #24]
  7328. *posCtrlTaskArg->motorStatus = motorStatus;
  7329. 80036e8: 69fb ldr r3, [r7, #28]
  7330. 80036ea: 6a9b ldr r3, [r3, #40] @ 0x28
  7331. 80036ec: 69ba ldr r2, [r7, #24]
  7332. 80036ee: b2d2 uxtb r2, r2
  7333. 80036f0: 701a strb r2, [r3, #0]
  7334. #ifdef DBG_POSITION
  7335. printf ("Axe %c no movement idle phase\n", posCtrlTaskArg->axe);
  7336. #endif
  7337. }
  7338. switch (movementPhase) {
  7339. 80036f2: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7340. 80036f6: 3b01 subs r3, #1
  7341. 80036f8: 2b04 cmp r3, #4
  7342. 80036fa: f200 8138 bhi.w 800396e <PositionControlTask+0x4aa>
  7343. 80036fe: a201 add r2, pc, #4 @ (adr r2, 8003704 <PositionControlTask+0x240>)
  7344. 8003700: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  7345. 8003704: 08003719 .word 0x08003719
  7346. 8003708: 080037a5 .word 0x080037a5
  7347. 800370c: 0800382f .word 0x0800382f
  7348. 8003710: 0800387d .word 0x0800387d
  7349. 8003714: 080038df .word 0x080038df
  7350. case startPhase:
  7351. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7352. 8003718: 69fb ldr r3, [r7, #28]
  7353. 800371a: 681c ldr r4, [r3, #0]
  7354. 800371c: 69fb ldr r3, [r7, #28]
  7355. 800371e: 685d ldr r5, [r3, #4]
  7356. 8003720: 69fb ldr r3, [r7, #28]
  7357. 8003722: 7a1e ldrb r6, [r3, #8]
  7358. 8003724: 69fb ldr r3, [r7, #28]
  7359. 8003726: f893 c009 ldrb.w ip, [r3, #9]
  7360. 800372a: 69fb ldr r3, [r7, #28]
  7361. 800372c: 68db ldr r3, [r3, #12]
  7362. 800372e: 6bba ldr r2, [r7, #56] @ 0x38
  7363. 8003730: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7364. 8003732: fb01 f202 mul.w r2, r1, r2
  7365. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7366. 8003736: 69f9 ldr r1, [r7, #28]
  7367. 8003738: 6949 ldr r1, [r1, #20]
  7368. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7369. 800373a: 7809 ldrb r1, [r1, #0]
  7370. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7371. 800373c: 69f8 ldr r0, [r7, #28]
  7372. 800373e: 6980 ldr r0, [r0, #24]
  7373. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7374. 8003740: 7800 ldrb r0, [r0, #0]
  7375. 8003742: 9004 str r0, [sp, #16]
  7376. 8003744: 9103 str r1, [sp, #12]
  7377. 8003746: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7378. 800374a: 9102 str r1, [sp, #8]
  7379. 800374c: 9201 str r2, [sp, #4]
  7380. 800374e: 9300 str r3, [sp, #0]
  7381. 8003750: 4663 mov r3, ip
  7382. 8003752: 4632 mov r2, r6
  7383. 8003754: 4629 mov r1, r5
  7384. 8003756: 4620 mov r0, r4
  7385. 8003758: f7ff fc52 bl 8003000 <MotorControl>
  7386. 800375c: 4603 mov r3, r0
  7387. 800375e: 61bb str r3, [r7, #24]
  7388. *posCtrlTaskArg->motorStatus = motorStatus;
  7389. 8003760: 69fb ldr r3, [r7, #28]
  7390. 8003762: 6a9b ldr r3, [r3, #40] @ 0x28
  7391. 8003764: 69ba ldr r2, [r7, #24]
  7392. 8003766: b2d2 uxtb r2, r2
  7393. 8003768: 701a strb r2, [r3, #0]
  7394. if (motorStatus == 1) {
  7395. 800376a: 69bb ldr r3, [r7, #24]
  7396. 800376c: 2b01 cmp r3, #1
  7397. 800376e: d10c bne.n 800378a <PositionControlTask+0x2c6>
  7398. *posCtrlTaskArg->motorPeakCurrent = 0.0;
  7399. 8003770: 69fb ldr r3, [r7, #28]
  7400. 8003772: 6adb ldr r3, [r3, #44] @ 0x2c
  7401. 8003774: f04f 0200 mov.w r2, #0
  7402. 8003778: 601a str r2, [r3, #0]
  7403. #ifdef DBG_POSITION
  7404. printf ("Axe %c speed up phase\n", posCtrlTaskArg->axe);
  7405. #endif
  7406. movementPhase = speedUpPhase;
  7407. 800377a: 2302 movs r3, #2
  7408. 800377c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7409. timeLeftMS = 0;
  7410. 8003780: 2300 movs r3, #0
  7411. 8003782: 62bb str r3, [r7, #40] @ 0x28
  7412. moveCmdTimeoutCounter = 0;
  7413. 8003784: 2300 movs r3, #0
  7414. 8003786: 627b str r3, [r7, #36] @ 0x24
  7415. #ifdef DBG_POSITION
  7416. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7417. #endif
  7418. }
  7419. break;
  7420. 8003788: e0f8 b.n 800397c <PositionControlTask+0x4b8>
  7421. movementPhase = idlePhase;
  7422. 800378a: 2300 movs r3, #0
  7423. 800378c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7424. break;
  7425. 8003790: e0f4 b.n 800397c <PositionControlTask+0x4b8>
  7426. 8003792: bf00 nop
  7427. 8003794: 10624dd3 .word 0x10624dd3
  7428. 8003798: 2400081c .word 0x2400081c
  7429. 800379c: 240008a8 .word 0x240008a8
  7430. 80037a0: 240008b4 .word 0x240008b4
  7431. case speedUpPhase:
  7432. if ((abs (*posCtrlTaskArg->currentPosition - startPosition) >= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7433. 80037a4: 69fb ldr r3, [r7, #28]
  7434. 80037a6: 6a1b ldr r3, [r3, #32]
  7435. 80037a8: ed93 7a00 vldr s14, [r3]
  7436. 80037ac: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  7437. 80037b0: ee77 7a67 vsub.f32 s15, s14, s15
  7438. 80037b4: eefd 7ae7 vcvt.s32.f32 s15, s15
  7439. 80037b8: ee17 3a90 vmov r3, s15
  7440. 80037bc: 2b00 cmp r3, #0
  7441. 80037be: bfb8 it lt
  7442. 80037c0: 425b neglt r3, r3
  7443. 80037c2: 2b04 cmp r3, #4
  7444. 80037c4: dc04 bgt.n 80037d0 <PositionControlTask+0x30c>
  7445. 80037c6: 6abb ldr r3, [r7, #40] @ 0x28
  7446. 80037c8: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7447. 80037cc: f2c0 80d1 blt.w 8003972 <PositionControlTask+0x4ae>
  7448. pwmValue = MOTOR_HIGH_SPEED_PWM_VALUE;
  7449. 80037d0: 2364 movs r3, #100 @ 0x64
  7450. 80037d2: 63fb str r3, [r7, #60] @ 0x3c
  7451. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7452. 80037d4: 69fb ldr r3, [r7, #28]
  7453. 80037d6: 681c ldr r4, [r3, #0]
  7454. 80037d8: 69fb ldr r3, [r7, #28]
  7455. 80037da: 685d ldr r5, [r3, #4]
  7456. 80037dc: 69fb ldr r3, [r7, #28]
  7457. 80037de: 7a1e ldrb r6, [r3, #8]
  7458. 80037e0: 69fb ldr r3, [r7, #28]
  7459. 80037e2: f893 c009 ldrb.w ip, [r3, #9]
  7460. 80037e6: 69fb ldr r3, [r7, #28]
  7461. 80037e8: 68db ldr r3, [r3, #12]
  7462. 80037ea: 6bba ldr r2, [r7, #56] @ 0x38
  7463. 80037ec: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7464. 80037ee: fb01 f202 mul.w r2, r1, r2
  7465. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7466. 80037f2: 69f9 ldr r1, [r7, #28]
  7467. 80037f4: 6949 ldr r1, [r1, #20]
  7468. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7469. 80037f6: 7809 ldrb r1, [r1, #0]
  7470. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7471. 80037f8: 69f8 ldr r0, [r7, #28]
  7472. 80037fa: 6980 ldr r0, [r0, #24]
  7473. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7474. 80037fc: 7800 ldrb r0, [r0, #0]
  7475. 80037fe: 9004 str r0, [sp, #16]
  7476. 8003800: 9103 str r1, [sp, #12]
  7477. 8003802: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7478. 8003806: 9102 str r1, [sp, #8]
  7479. 8003808: 9201 str r2, [sp, #4]
  7480. 800380a: 9300 str r3, [sp, #0]
  7481. 800380c: 4663 mov r3, ip
  7482. 800380e: 4632 mov r2, r6
  7483. 8003810: 4629 mov r1, r5
  7484. 8003812: 4620 mov r0, r4
  7485. 8003814: f7ff fbf4 bl 8003000 <MotorControl>
  7486. 8003818: 4603 mov r3, r0
  7487. 800381a: 61bb str r3, [r7, #24]
  7488. *posCtrlTaskArg->motorStatus = motorStatus;
  7489. 800381c: 69fb ldr r3, [r7, #28]
  7490. 800381e: 6a9b ldr r3, [r3, #40] @ 0x28
  7491. 8003820: 69ba ldr r2, [r7, #24]
  7492. 8003822: b2d2 uxtb r2, r2
  7493. 8003824: 701a strb r2, [r3, #0]
  7494. movementPhase = movePhase;
  7495. 8003826: 2303 movs r3, #3
  7496. 8003828: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7497. #ifdef DBG_POSITION
  7498. printf ("Axe %c move phase\n", posCtrlTaskArg->axe);
  7499. #endif
  7500. }
  7501. break;
  7502. 800382c: e0a1 b.n 8003972 <PositionControlTask+0x4ae>
  7503. case movePhase:
  7504. if (abs (*posCtrlTaskArg->currentPosition - *posCtrlTaskArg->positionSetting) <= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) {
  7505. 800382e: 69fb ldr r3, [r7, #28]
  7506. 8003830: 6a1b ldr r3, [r3, #32]
  7507. 8003832: ed93 7a00 vldr s14, [r3]
  7508. 8003836: 69fb ldr r3, [r7, #28]
  7509. 8003838: 6a5b ldr r3, [r3, #36] @ 0x24
  7510. 800383a: edd3 7a00 vldr s15, [r3]
  7511. 800383e: ee77 7a67 vsub.f32 s15, s14, s15
  7512. 8003842: eefd 7ae7 vcvt.s32.f32 s15, s15
  7513. 8003846: ee17 3a90 vmov r3, s15
  7514. 800384a: f113 0f05 cmn.w r3, #5
  7515. 800384e: f2c0 8092 blt.w 8003976 <PositionControlTask+0x4b2>
  7516. 8003852: 69fb ldr r3, [r7, #28]
  7517. 8003854: 6a1b ldr r3, [r3, #32]
  7518. 8003856: ed93 7a00 vldr s14, [r3]
  7519. 800385a: 69fb ldr r3, [r7, #28]
  7520. 800385c: 6a5b ldr r3, [r3, #36] @ 0x24
  7521. 800385e: edd3 7a00 vldr s15, [r3]
  7522. 8003862: ee77 7a67 vsub.f32 s15, s14, s15
  7523. 8003866: eefd 7ae7 vcvt.s32.f32 s15, s15
  7524. 800386a: ee17 3a90 vmov r3, s15
  7525. 800386e: 2b05 cmp r3, #5
  7526. 8003870: f300 8081 bgt.w 8003976 <PositionControlTask+0x4b2>
  7527. movementPhase = slowDownPhase;
  7528. 8003874: 2304 movs r3, #4
  7529. 8003876: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7530. #ifdef DBG_POSITION
  7531. printf ("Axe %c slow down phase\n", posCtrlTaskArg->axe);
  7532. #endif
  7533. }
  7534. break;
  7535. 800387a: e07c b.n 8003976 <PositionControlTask+0x4b2>
  7536. case slowDownPhase:
  7537. pwmValue = MOTOR_START_STOP_PWM_VALUE;
  7538. 800387c: 233c movs r3, #60 @ 0x3c
  7539. 800387e: 63fb str r3, [r7, #60] @ 0x3c
  7540. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7541. 8003880: 69fb ldr r3, [r7, #28]
  7542. 8003882: 681c ldr r4, [r3, #0]
  7543. 8003884: 69fb ldr r3, [r7, #28]
  7544. 8003886: 685d ldr r5, [r3, #4]
  7545. 8003888: 69fb ldr r3, [r7, #28]
  7546. 800388a: 7a1e ldrb r6, [r3, #8]
  7547. 800388c: 69fb ldr r3, [r7, #28]
  7548. 800388e: f893 c009 ldrb.w ip, [r3, #9]
  7549. 8003892: 69fb ldr r3, [r7, #28]
  7550. 8003894: 68db ldr r3, [r3, #12]
  7551. 8003896: 6bba ldr r2, [r7, #56] @ 0x38
  7552. 8003898: 6bf9 ldr r1, [r7, #60] @ 0x3c
  7553. 800389a: fb01 f202 mul.w r2, r1, r2
  7554. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7555. 800389e: 69f9 ldr r1, [r7, #28]
  7556. 80038a0: 6949 ldr r1, [r1, #20]
  7557. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7558. 80038a2: 7809 ldrb r1, [r1, #0]
  7559. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7560. 80038a4: 69f8 ldr r0, [r7, #28]
  7561. 80038a6: 6980 ldr r0, [r0, #24]
  7562. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7563. 80038a8: 7800 ldrb r0, [r0, #0]
  7564. 80038aa: 9004 str r0, [sp, #16]
  7565. 80038ac: 9103 str r1, [sp, #12]
  7566. 80038ae: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  7567. 80038b2: 9102 str r1, [sp, #8]
  7568. 80038b4: 9201 str r2, [sp, #4]
  7569. 80038b6: 9300 str r3, [sp, #0]
  7570. 80038b8: 4663 mov r3, ip
  7571. 80038ba: 4632 mov r2, r6
  7572. 80038bc: 4629 mov r1, r5
  7573. 80038be: 4620 mov r0, r4
  7574. 80038c0: f7ff fb9e bl 8003000 <MotorControl>
  7575. 80038c4: 4603 mov r3, r0
  7576. 80038c6: 61bb str r3, [r7, #24]
  7577. *posCtrlTaskArg->motorStatus = motorStatus;
  7578. 80038c8: 69fb ldr r3, [r7, #28]
  7579. 80038ca: 6a9b ldr r3, [r3, #40] @ 0x28
  7580. 80038cc: 69ba ldr r2, [r7, #24]
  7581. 80038ce: b2d2 uxtb r2, r2
  7582. 80038d0: 701a strb r2, [r3, #0]
  7583. movementPhase = stopPhase;
  7584. 80038d2: 2305 movs r3, #5
  7585. 80038d4: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7586. timeLeftMS = 0;
  7587. 80038d8: 2300 movs r3, #0
  7588. 80038da: 62bb str r3, [r7, #40] @ 0x28
  7589. #ifdef DBG_POSITION
  7590. printf ("Axe %c stop phase\n", posCtrlTaskArg->axe);
  7591. #endif
  7592. break;
  7593. 80038dc: e04e b.n 800397c <PositionControlTask+0x4b8>
  7594. case stopPhase:
  7595. float posDiff = sign > 0 ? posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition : *posCtrlTaskArg->currentPosition - posCtrlData.positionSettingValue;
  7596. 80038de: 6bbb ldr r3, [r7, #56] @ 0x38
  7597. 80038e0: 2b00 cmp r3, #0
  7598. 80038e2: dd08 ble.n 80038f6 <PositionControlTask+0x432>
  7599. 80038e4: ed97 7a02 vldr s14, [r7, #8]
  7600. 80038e8: 69fb ldr r3, [r7, #28]
  7601. 80038ea: 6a1b ldr r3, [r3, #32]
  7602. 80038ec: edd3 7a00 vldr s15, [r3]
  7603. 80038f0: ee77 7a67 vsub.f32 s15, s14, s15
  7604. 80038f4: e007 b.n 8003906 <PositionControlTask+0x442>
  7605. 80038f6: 69fb ldr r3, [r7, #28]
  7606. 80038f8: 6a1b ldr r3, [r3, #32]
  7607. 80038fa: ed93 7a00 vldr s14, [r3]
  7608. 80038fe: edd7 7a02 vldr s15, [r7, #8]
  7609. 8003902: ee77 7a67 vsub.f32 s15, s14, s15
  7610. 8003906: edc7 7a04 vstr s15, [r7, #16]
  7611. if ((posDiff <= 0) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  7612. 800390a: edd7 7a04 vldr s15, [r7, #16]
  7613. 800390e: eef5 7ac0 vcmpe.f32 s15, #0.0
  7614. 8003912: eef1 fa10 vmrs APSR_nzcv, fpscr
  7615. 8003916: d903 bls.n 8003920 <PositionControlTask+0x45c>
  7616. 8003918: 6abb ldr r3, [r7, #40] @ 0x28
  7617. 800391a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  7618. 800391e: db2c blt.n 800397a <PositionControlTask+0x4b6>
  7619. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7620. 8003920: 69fb ldr r3, [r7, #28]
  7621. 8003922: 6818 ldr r0, [r3, #0]
  7622. 8003924: 69fb ldr r3, [r7, #28]
  7623. 8003926: 685c ldr r4, [r3, #4]
  7624. 8003928: 69fb ldr r3, [r7, #28]
  7625. 800392a: 7a1d ldrb r5, [r3, #8]
  7626. 800392c: 69fb ldr r3, [r7, #28]
  7627. 800392e: 7a5e ldrb r6, [r3, #9]
  7628. 8003930: 69fb ldr r3, [r7, #28]
  7629. 8003932: 68db ldr r3, [r3, #12]
  7630. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7631. 8003934: 69fa ldr r2, [r7, #28]
  7632. 8003936: 6952 ldr r2, [r2, #20]
  7633. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7634. 8003938: 7812 ldrb r2, [r2, #0]
  7635. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  7636. 800393a: 69f9 ldr r1, [r7, #28]
  7637. 800393c: 6989 ldr r1, [r1, #24]
  7638. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  7639. 800393e: 7809 ldrb r1, [r1, #0]
  7640. 8003940: 9104 str r1, [sp, #16]
  7641. 8003942: 9203 str r2, [sp, #12]
  7642. 8003944: 2200 movs r2, #0
  7643. 8003946: 9202 str r2, [sp, #8]
  7644. 8003948: 2200 movs r2, #0
  7645. 800394a: 9201 str r2, [sp, #4]
  7646. 800394c: 9300 str r3, [sp, #0]
  7647. 800394e: 4633 mov r3, r6
  7648. 8003950: 462a mov r2, r5
  7649. 8003952: 4621 mov r1, r4
  7650. 8003954: f7ff fb54 bl 8003000 <MotorControl>
  7651. 8003958: 4603 mov r3, r0
  7652. 800395a: 61bb str r3, [r7, #24]
  7653. *posCtrlTaskArg->motorStatus = motorStatus;
  7654. 800395c: 69fb ldr r3, [r7, #28]
  7655. 800395e: 6a9b ldr r3, [r3, #40] @ 0x28
  7656. 8003960: 69ba ldr r2, [r7, #24]
  7657. 8003962: b2d2 uxtb r2, r2
  7658. 8003964: 701a strb r2, [r3, #0]
  7659. movementPhase = idlePhase;
  7660. 8003966: 2300 movs r3, #0
  7661. 8003968: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7662. #ifdef DBG_POSITION
  7663. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7664. #endif
  7665. }
  7666. break;
  7667. 800396c: e005 b.n 800397a <PositionControlTask+0x4b6>
  7668. default: break;
  7669. 800396e: bf00 nop
  7670. 8003970: e011 b.n 8003996 <PositionControlTask+0x4d2>
  7671. break;
  7672. 8003972: bf00 nop
  7673. 8003974: e00f b.n 8003996 <PositionControlTask+0x4d2>
  7674. break;
  7675. 8003976: bf00 nop
  7676. 8003978: e00d b.n 8003996 <PositionControlTask+0x4d2>
  7677. break;
  7678. 800397a: bf00 nop
  7679. switch (movementPhase) {
  7680. 800397c: e00b b.n 8003996 <PositionControlTask+0x4d2>
  7681. }
  7682. } else {
  7683. if ((*posCtrlTaskArg->motorStatus == 0) && (movementPhase != idlePhase)) {
  7684. 800397e: 69fb ldr r3, [r7, #28]
  7685. 8003980: 6a9b ldr r3, [r3, #40] @ 0x28
  7686. 8003982: 781b ldrb r3, [r3, #0]
  7687. 8003984: 2b00 cmp r3, #0
  7688. 8003986: d106 bne.n 8003996 <PositionControlTask+0x4d2>
  7689. 8003988: f897 3037 ldrb.w r3, [r7, #55] @ 0x37
  7690. 800398c: 2b00 cmp r3, #0
  7691. 800398e: d002 beq.n 8003996 <PositionControlTask+0x4d2>
  7692. movementPhase = idlePhase;
  7693. 8003990: 2300 movs r3, #0
  7694. 8003992: f887 3037 strb.w r3, [r7, #55] @ 0x37
  7695. #ifdef DBG_POSITION
  7696. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  7697. #endif
  7698. }
  7699. }
  7700. osMutexRelease (sensorsInfoMutex);
  7701. 8003996: 4b03 ldr r3, [pc, #12] @ (80039a4 <PositionControlTask+0x4e0>)
  7702. 8003998: 681b ldr r3, [r3, #0]
  7703. 800399a: 4618 mov r0, r3
  7704. 800399c: f010 fdda bl 8014554 <osMutexRelease>
  7705. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  7706. 80039a0: e5ae b.n 8003500 <PositionControlTask+0x3c>
  7707. 80039a2: bf00 nop
  7708. 80039a4: 2400081c .word 0x2400081c
  7709. 080039a8 <WriteDataToBuffer>:
  7710. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7711. }
  7712. *buffPos = newBuffPos;
  7713. }
  7714. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  7715. 80039a8: b480 push {r7}
  7716. 80039aa: b089 sub sp, #36 @ 0x24
  7717. 80039ac: af00 add r7, sp, #0
  7718. 80039ae: 60f8 str r0, [r7, #12]
  7719. 80039b0: 60b9 str r1, [r7, #8]
  7720. 80039b2: 607a str r2, [r7, #4]
  7721. 80039b4: 70fb strb r3, [r7, #3]
  7722. uint32_t* uDataPtr = data;
  7723. 80039b6: 687b ldr r3, [r7, #4]
  7724. 80039b8: 61bb str r3, [r7, #24]
  7725. uint32_t uData = *uDataPtr;
  7726. 80039ba: 69bb ldr r3, [r7, #24]
  7727. 80039bc: 681b ldr r3, [r3, #0]
  7728. 80039be: 617b str r3, [r7, #20]
  7729. uint8_t i = 0;
  7730. 80039c0: 2300 movs r3, #0
  7731. 80039c2: 77fb strb r3, [r7, #31]
  7732. uint8_t newBuffPos = *buffPos;
  7733. 80039c4: 68bb ldr r3, [r7, #8]
  7734. 80039c6: 881b ldrh r3, [r3, #0]
  7735. 80039c8: 77bb strb r3, [r7, #30]
  7736. for (i = 0; i < dataSize; i++) {
  7737. 80039ca: 2300 movs r3, #0
  7738. 80039cc: 77fb strb r3, [r7, #31]
  7739. 80039ce: e00e b.n 80039ee <WriteDataToBuffer+0x46>
  7740. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7741. 80039d0: 7ffb ldrb r3, [r7, #31]
  7742. 80039d2: 00db lsls r3, r3, #3
  7743. 80039d4: 697a ldr r2, [r7, #20]
  7744. 80039d6: 40da lsrs r2, r3
  7745. 80039d8: 7fbb ldrb r3, [r7, #30]
  7746. 80039da: 1c59 adds r1, r3, #1
  7747. 80039dc: 77b9 strb r1, [r7, #30]
  7748. 80039de: 4619 mov r1, r3
  7749. 80039e0: 68fb ldr r3, [r7, #12]
  7750. 80039e2: 440b add r3, r1
  7751. 80039e4: b2d2 uxtb r2, r2
  7752. 80039e6: 701a strb r2, [r3, #0]
  7753. for (i = 0; i < dataSize; i++) {
  7754. 80039e8: 7ffb ldrb r3, [r7, #31]
  7755. 80039ea: 3301 adds r3, #1
  7756. 80039ec: 77fb strb r3, [r7, #31]
  7757. 80039ee: 7ffa ldrb r2, [r7, #31]
  7758. 80039f0: 78fb ldrb r3, [r7, #3]
  7759. 80039f2: 429a cmp r2, r3
  7760. 80039f4: d3ec bcc.n 80039d0 <WriteDataToBuffer+0x28>
  7761. }
  7762. *buffPos = newBuffPos;
  7763. 80039f6: 7fbb ldrb r3, [r7, #30]
  7764. 80039f8: b29a uxth r2, r3
  7765. 80039fa: 68bb ldr r3, [r7, #8]
  7766. 80039fc: 801a strh r2, [r3, #0]
  7767. }
  7768. 80039fe: bf00 nop
  7769. 8003a00: 3724 adds r7, #36 @ 0x24
  7770. 8003a02: 46bd mov sp, r7
  7771. 8003a04: f85d 7b04 ldr.w r7, [sp], #4
  7772. 8003a08: 4770 bx lr
  7773. 08003a0a <ReadFloatFromBuffer>:
  7774. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7775. {
  7776. 8003a0a: b480 push {r7}
  7777. 8003a0c: b087 sub sp, #28
  7778. 8003a0e: af00 add r7, sp, #0
  7779. 8003a10: 60f8 str r0, [r7, #12]
  7780. 8003a12: 60b9 str r1, [r7, #8]
  7781. 8003a14: 607a str r2, [r7, #4]
  7782. uint32_t* word = (uint32_t *)data;
  7783. 8003a16: 687b ldr r3, [r7, #4]
  7784. 8003a18: 617b str r3, [r7, #20]
  7785. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7786. 8003a1a: 68bb ldr r3, [r7, #8]
  7787. 8003a1c: 881b ldrh r3, [r3, #0]
  7788. 8003a1e: 3303 adds r3, #3
  7789. 8003a20: 68fa ldr r2, [r7, #12]
  7790. 8003a22: 4413 add r3, r2
  7791. 8003a24: 781b ldrb r3, [r3, #0]
  7792. 8003a26: 061a lsls r2, r3, #24
  7793. 8003a28: 68bb ldr r3, [r7, #8]
  7794. 8003a2a: 881b ldrh r3, [r3, #0]
  7795. 8003a2c: 3302 adds r3, #2
  7796. 8003a2e: 68f9 ldr r1, [r7, #12]
  7797. 8003a30: 440b add r3, r1
  7798. 8003a32: 781b ldrb r3, [r3, #0]
  7799. 8003a34: 041b lsls r3, r3, #16
  7800. 8003a36: 431a orrs r2, r3
  7801. 8003a38: 68bb ldr r3, [r7, #8]
  7802. 8003a3a: 881b ldrh r3, [r3, #0]
  7803. 8003a3c: 3301 adds r3, #1
  7804. 8003a3e: 68f9 ldr r1, [r7, #12]
  7805. 8003a40: 440b add r3, r1
  7806. 8003a42: 781b ldrb r3, [r3, #0]
  7807. 8003a44: 021b lsls r3, r3, #8
  7808. 8003a46: 4313 orrs r3, r2
  7809. 8003a48: 68ba ldr r2, [r7, #8]
  7810. 8003a4a: 8812 ldrh r2, [r2, #0]
  7811. 8003a4c: 4611 mov r1, r2
  7812. 8003a4e: 68fa ldr r2, [r7, #12]
  7813. 8003a50: 440a add r2, r1
  7814. 8003a52: 7812 ldrb r2, [r2, #0]
  7815. 8003a54: 4313 orrs r3, r2
  7816. 8003a56: 461a mov r2, r3
  7817. 8003a58: 697b ldr r3, [r7, #20]
  7818. 8003a5a: 601a str r2, [r3, #0]
  7819. *buffPos += sizeof(float);
  7820. 8003a5c: 68bb ldr r3, [r7, #8]
  7821. 8003a5e: 881b ldrh r3, [r3, #0]
  7822. 8003a60: 3304 adds r3, #4
  7823. 8003a62: b29a uxth r2, r3
  7824. 8003a64: 68bb ldr r3, [r7, #8]
  7825. 8003a66: 801a strh r2, [r3, #0]
  7826. }
  7827. 8003a68: bf00 nop
  7828. 8003a6a: 371c adds r7, #28
  7829. 8003a6c: 46bd mov sp, r7
  7830. 8003a6e: f85d 7b04 ldr.w r7, [sp], #4
  7831. 8003a72: 4770 bx lr
  7832. 08003a74 <ReadWordFromBufer>:
  7833. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7834. *buffPos += sizeof(uint16_t);
  7835. }
  7836. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  7837. {
  7838. 8003a74: b480 push {r7}
  7839. 8003a76: b085 sub sp, #20
  7840. 8003a78: af00 add r7, sp, #0
  7841. 8003a7a: 60f8 str r0, [r7, #12]
  7842. 8003a7c: 60b9 str r1, [r7, #8]
  7843. 8003a7e: 607a str r2, [r7, #4]
  7844. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7845. 8003a80: 68bb ldr r3, [r7, #8]
  7846. 8003a82: 881b ldrh r3, [r3, #0]
  7847. 8003a84: 3303 adds r3, #3
  7848. 8003a86: 68fa ldr r2, [r7, #12]
  7849. 8003a88: 4413 add r3, r2
  7850. 8003a8a: 781b ldrb r3, [r3, #0]
  7851. 8003a8c: 061a lsls r2, r3, #24
  7852. 8003a8e: 68bb ldr r3, [r7, #8]
  7853. 8003a90: 881b ldrh r3, [r3, #0]
  7854. 8003a92: 3302 adds r3, #2
  7855. 8003a94: 68f9 ldr r1, [r7, #12]
  7856. 8003a96: 440b add r3, r1
  7857. 8003a98: 781b ldrb r3, [r3, #0]
  7858. 8003a9a: 041b lsls r3, r3, #16
  7859. 8003a9c: 431a orrs r2, r3
  7860. 8003a9e: 68bb ldr r3, [r7, #8]
  7861. 8003aa0: 881b ldrh r3, [r3, #0]
  7862. 8003aa2: 3301 adds r3, #1
  7863. 8003aa4: 68f9 ldr r1, [r7, #12]
  7864. 8003aa6: 440b add r3, r1
  7865. 8003aa8: 781b ldrb r3, [r3, #0]
  7866. 8003aaa: 021b lsls r3, r3, #8
  7867. 8003aac: 4313 orrs r3, r2
  7868. 8003aae: 68ba ldr r2, [r7, #8]
  7869. 8003ab0: 8812 ldrh r2, [r2, #0]
  7870. 8003ab2: 4611 mov r1, r2
  7871. 8003ab4: 68fa ldr r2, [r7, #12]
  7872. 8003ab6: 440a add r2, r1
  7873. 8003ab8: 7812 ldrb r2, [r2, #0]
  7874. 8003aba: 4313 orrs r3, r2
  7875. 8003abc: 461a mov r2, r3
  7876. 8003abe: 687b ldr r3, [r7, #4]
  7877. 8003ac0: 601a str r2, [r3, #0]
  7878. *buffPos += sizeof(uint32_t);
  7879. 8003ac2: 68bb ldr r3, [r7, #8]
  7880. 8003ac4: 881b ldrh r3, [r3, #0]
  7881. 8003ac6: 3304 adds r3, #4
  7882. 8003ac8: b29a uxth r2, r3
  7883. 8003aca: 68bb ldr r3, [r7, #8]
  7884. 8003acc: 801a strh r2, [r3, #0]
  7885. }
  7886. 8003ace: bf00 nop
  7887. 8003ad0: 3714 adds r7, #20
  7888. 8003ad2: 46bd mov sp, r7
  7889. 8003ad4: f85d 7b04 ldr.w r7, [sp], #4
  7890. 8003ad8: 4770 bx lr
  7891. ...
  7892. 08003adc <PrepareRespFrame>:
  7893. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7894. return txBufferPos;
  7895. }
  7896. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7897. 8003adc: b580 push {r7, lr}
  7898. 8003ade: b084 sub sp, #16
  7899. 8003ae0: af00 add r7, sp, #0
  7900. 8003ae2: 6078 str r0, [r7, #4]
  7901. 8003ae4: 4608 mov r0, r1
  7902. 8003ae6: 4611 mov r1, r2
  7903. 8003ae8: 461a mov r2, r3
  7904. 8003aea: 4603 mov r3, r0
  7905. 8003aec: 807b strh r3, [r7, #2]
  7906. 8003aee: 460b mov r3, r1
  7907. 8003af0: 707b strb r3, [r7, #1]
  7908. 8003af2: 4613 mov r3, r2
  7909. 8003af4: 703b strb r3, [r7, #0]
  7910. uint16_t crc = 0;
  7911. 8003af6: 2300 movs r3, #0
  7912. 8003af8: 81bb strh r3, [r7, #12]
  7913. uint16_t txBufferPos = 0;
  7914. 8003afa: 2300 movs r3, #0
  7915. 8003afc: 81fb strh r3, [r7, #14]
  7916. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7917. 8003afe: 787b ldrb r3, [r7, #1]
  7918. 8003b00: b21a sxth r2, r3
  7919. 8003b02: 4b43 ldr r3, [pc, #268] @ (8003c10 <PrepareRespFrame+0x134>)
  7920. 8003b04: 4313 orrs r3, r2
  7921. 8003b06: b21b sxth r3, r3
  7922. 8003b08: 817b strh r3, [r7, #10]
  7923. memset (txBuffer, 0x00, dataLength);
  7924. 8003b0a: 8bbb ldrh r3, [r7, #28]
  7925. 8003b0c: 461a mov r2, r3
  7926. 8003b0e: 2100 movs r1, #0
  7927. 8003b10: 6878 ldr r0, [r7, #4]
  7928. 8003b12: f014 fc01 bl 8018318 <memset>
  7929. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7930. 8003b16: 89fb ldrh r3, [r7, #14]
  7931. 8003b18: 1c5a adds r2, r3, #1
  7932. 8003b1a: 81fa strh r2, [r7, #14]
  7933. 8003b1c: 461a mov r2, r3
  7934. 8003b1e: 687b ldr r3, [r7, #4]
  7935. 8003b20: 4413 add r3, r2
  7936. 8003b22: 22aa movs r2, #170 @ 0xaa
  7937. 8003b24: 701a strb r2, [r3, #0]
  7938. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7939. 8003b26: 89fb ldrh r3, [r7, #14]
  7940. 8003b28: 1c5a adds r2, r3, #1
  7941. 8003b2a: 81fa strh r2, [r7, #14]
  7942. 8003b2c: 461a mov r2, r3
  7943. 8003b2e: 687b ldr r3, [r7, #4]
  7944. 8003b30: 4413 add r3, r2
  7945. 8003b32: 887a ldrh r2, [r7, #2]
  7946. 8003b34: b2d2 uxtb r2, r2
  7947. 8003b36: 701a strb r2, [r3, #0]
  7948. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7949. 8003b38: 887b ldrh r3, [r7, #2]
  7950. 8003b3a: 0a1b lsrs r3, r3, #8
  7951. 8003b3c: b29a uxth r2, r3
  7952. 8003b3e: 89fb ldrh r3, [r7, #14]
  7953. 8003b40: 1c59 adds r1, r3, #1
  7954. 8003b42: 81f9 strh r1, [r7, #14]
  7955. 8003b44: 4619 mov r1, r3
  7956. 8003b46: 687b ldr r3, [r7, #4]
  7957. 8003b48: 440b add r3, r1
  7958. 8003b4a: b2d2 uxtb r2, r2
  7959. 8003b4c: 701a strb r2, [r3, #0]
  7960. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7961. 8003b4e: 89fb ldrh r3, [r7, #14]
  7962. 8003b50: 1c5a adds r2, r3, #1
  7963. 8003b52: 81fa strh r2, [r7, #14]
  7964. 8003b54: 461a mov r2, r3
  7965. 8003b56: 687b ldr r3, [r7, #4]
  7966. 8003b58: 4413 add r3, r2
  7967. 8003b5a: 897a ldrh r2, [r7, #10]
  7968. 8003b5c: b2d2 uxtb r2, r2
  7969. 8003b5e: 701a strb r2, [r3, #0]
  7970. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7971. 8003b60: 897b ldrh r3, [r7, #10]
  7972. 8003b62: 0a1b lsrs r3, r3, #8
  7973. 8003b64: b29a uxth r2, r3
  7974. 8003b66: 89fb ldrh r3, [r7, #14]
  7975. 8003b68: 1c59 adds r1, r3, #1
  7976. 8003b6a: 81f9 strh r1, [r7, #14]
  7977. 8003b6c: 4619 mov r1, r3
  7978. 8003b6e: 687b ldr r3, [r7, #4]
  7979. 8003b70: 440b add r3, r1
  7980. 8003b72: b2d2 uxtb r2, r2
  7981. 8003b74: 701a strb r2, [r3, #0]
  7982. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7983. 8003b76: 89fb ldrh r3, [r7, #14]
  7984. 8003b78: 1c5a adds r2, r3, #1
  7985. 8003b7a: 81fa strh r2, [r7, #14]
  7986. 8003b7c: 461a mov r2, r3
  7987. 8003b7e: 687b ldr r3, [r7, #4]
  7988. 8003b80: 4413 add r3, r2
  7989. 8003b82: 8bba ldrh r2, [r7, #28]
  7990. 8003b84: b2d2 uxtb r2, r2
  7991. 8003b86: 701a strb r2, [r3, #0]
  7992. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7993. 8003b88: 8bbb ldrh r3, [r7, #28]
  7994. 8003b8a: 0a1b lsrs r3, r3, #8
  7995. 8003b8c: b29a uxth r2, r3
  7996. 8003b8e: 89fb ldrh r3, [r7, #14]
  7997. 8003b90: 1c59 adds r1, r3, #1
  7998. 8003b92: 81f9 strh r1, [r7, #14]
  7999. 8003b94: 4619 mov r1, r3
  8000. 8003b96: 687b ldr r3, [r7, #4]
  8001. 8003b98: 440b add r3, r1
  8002. 8003b9a: b2d2 uxtb r2, r2
  8003. 8003b9c: 701a strb r2, [r3, #0]
  8004. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  8005. 8003b9e: 89fb ldrh r3, [r7, #14]
  8006. 8003ba0: 1c5a adds r2, r3, #1
  8007. 8003ba2: 81fa strh r2, [r7, #14]
  8008. 8003ba4: 461a mov r2, r3
  8009. 8003ba6: 687b ldr r3, [r7, #4]
  8010. 8003ba8: 4413 add r3, r2
  8011. 8003baa: 783a ldrb r2, [r7, #0]
  8012. 8003bac: 701a strb r2, [r3, #0]
  8013. if (dataLength > 0) {
  8014. 8003bae: 8bbb ldrh r3, [r7, #28]
  8015. 8003bb0: 2b00 cmp r3, #0
  8016. 8003bb2: d00b beq.n 8003bcc <PrepareRespFrame+0xf0>
  8017. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  8018. 8003bb4: 89fb ldrh r3, [r7, #14]
  8019. 8003bb6: 687a ldr r2, [r7, #4]
  8020. 8003bb8: 4413 add r3, r2
  8021. 8003bba: 8bba ldrh r2, [r7, #28]
  8022. 8003bbc: 69b9 ldr r1, [r7, #24]
  8023. 8003bbe: 4618 mov r0, r3
  8024. 8003bc0: f014 fc34 bl 801842c <memcpy>
  8025. txBufferPos += dataLength;
  8026. 8003bc4: 89fa ldrh r2, [r7, #14]
  8027. 8003bc6: 8bbb ldrh r3, [r7, #28]
  8028. 8003bc8: 4413 add r3, r2
  8029. 8003bca: 81fb strh r3, [r7, #14]
  8030. }
  8031. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  8032. 8003bcc: 89fb ldrh r3, [r7, #14]
  8033. 8003bce: 461a mov r2, r3
  8034. 8003bd0: 6879 ldr r1, [r7, #4]
  8035. 8003bd2: 4810 ldr r0, [pc, #64] @ (8003c14 <PrepareRespFrame+0x138>)
  8036. 8003bd4: f004 f8d0 bl 8007d78 <HAL_CRC_Calculate>
  8037. 8003bd8: 4603 mov r3, r0
  8038. 8003bda: 81bb strh r3, [r7, #12]
  8039. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  8040. 8003bdc: 89fb ldrh r3, [r7, #14]
  8041. 8003bde: 1c5a adds r2, r3, #1
  8042. 8003be0: 81fa strh r2, [r7, #14]
  8043. 8003be2: 461a mov r2, r3
  8044. 8003be4: 687b ldr r3, [r7, #4]
  8045. 8003be6: 4413 add r3, r2
  8046. 8003be8: 89ba ldrh r2, [r7, #12]
  8047. 8003bea: b2d2 uxtb r2, r2
  8048. 8003bec: 701a strb r2, [r3, #0]
  8049. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  8050. 8003bee: 89bb ldrh r3, [r7, #12]
  8051. 8003bf0: 0a1b lsrs r3, r3, #8
  8052. 8003bf2: b29a uxth r2, r3
  8053. 8003bf4: 89fb ldrh r3, [r7, #14]
  8054. 8003bf6: 1c59 adds r1, r3, #1
  8055. 8003bf8: 81f9 strh r1, [r7, #14]
  8056. 8003bfa: 4619 mov r1, r3
  8057. 8003bfc: 687b ldr r3, [r7, #4]
  8058. 8003bfe: 440b add r3, r1
  8059. 8003c00: b2d2 uxtb r2, r2
  8060. 8003c02: 701a strb r2, [r3, #0]
  8061. return txBufferPos;
  8062. 8003c04: 89fb ldrh r3, [r7, #14]
  8063. }
  8064. 8003c06: 4618 mov r0, r3
  8065. 8003c08: 3710 adds r7, #16
  8066. 8003c0a: 46bd mov sp, r7
  8067. 8003c0c: bd80 pop {r7, pc}
  8068. 8003c0e: bf00 nop
  8069. 8003c10: ffff8000 .word 0xffff8000
  8070. 8003c14: 240003e0 .word 0x240003e0
  8071. 08003c18 <HAL_MspInit>:
  8072. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  8073. /**
  8074. * Initializes the Global MSP.
  8075. */
  8076. void HAL_MspInit(void)
  8077. {
  8078. 8003c18: b580 push {r7, lr}
  8079. 8003c1a: b086 sub sp, #24
  8080. 8003c1c: af00 add r7, sp, #0
  8081. /* USER CODE BEGIN MspInit 0 */
  8082. /* USER CODE END MspInit 0 */
  8083. PWREx_AVDTypeDef sConfigAVD = {0};
  8084. 8003c1e: f107 0310 add.w r3, r7, #16
  8085. 8003c22: 2200 movs r2, #0
  8086. 8003c24: 601a str r2, [r3, #0]
  8087. 8003c26: 605a str r2, [r3, #4]
  8088. PWR_PVDTypeDef sConfigPVD = {0};
  8089. 8003c28: f107 0308 add.w r3, r7, #8
  8090. 8003c2c: 2200 movs r2, #0
  8091. 8003c2e: 601a str r2, [r3, #0]
  8092. 8003c30: 605a str r2, [r3, #4]
  8093. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8094. 8003c32: 4b26 ldr r3, [pc, #152] @ (8003ccc <HAL_MspInit+0xb4>)
  8095. 8003c34: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8096. 8003c38: 4a24 ldr r2, [pc, #144] @ (8003ccc <HAL_MspInit+0xb4>)
  8097. 8003c3a: f043 0302 orr.w r3, r3, #2
  8098. 8003c3e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8099. 8003c42: 4b22 ldr r3, [pc, #136] @ (8003ccc <HAL_MspInit+0xb4>)
  8100. 8003c44: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8101. 8003c48: f003 0302 and.w r3, r3, #2
  8102. 8003c4c: 607b str r3, [r7, #4]
  8103. 8003c4e: 687b ldr r3, [r7, #4]
  8104. /* System interrupt init*/
  8105. /* PendSV_IRQn interrupt configuration */
  8106. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  8107. 8003c50: 2200 movs r2, #0
  8108. 8003c52: 210f movs r1, #15
  8109. 8003c54: f06f 0001 mvn.w r0, #1
  8110. 8003c58: f003 ff8a bl 8007b70 <HAL_NVIC_SetPriority>
  8111. /* Peripheral interrupt init */
  8112. /* RCC_IRQn interrupt configuration */
  8113. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  8114. 8003c5c: 2200 movs r2, #0
  8115. 8003c5e: 2105 movs r1, #5
  8116. 8003c60: 2005 movs r0, #5
  8117. 8003c62: f003 ff85 bl 8007b70 <HAL_NVIC_SetPriority>
  8118. HAL_NVIC_EnableIRQ(RCC_IRQn);
  8119. 8003c66: 2005 movs r0, #5
  8120. 8003c68: f003 ff9c bl 8007ba4 <HAL_NVIC_EnableIRQ>
  8121. /** AVD Configuration
  8122. */
  8123. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  8124. 8003c6c: f44f 23c0 mov.w r3, #393216 @ 0x60000
  8125. 8003c70: 613b str r3, [r7, #16]
  8126. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  8127. 8003c72: 2300 movs r3, #0
  8128. 8003c74: 617b str r3, [r7, #20]
  8129. HAL_PWREx_ConfigAVD(&sConfigAVD);
  8130. 8003c76: f107 0310 add.w r3, r7, #16
  8131. 8003c7a: 4618 mov r0, r3
  8132. 8003c7c: f007 fde2 bl 800b844 <HAL_PWREx_ConfigAVD>
  8133. /** Enable the AVD Output
  8134. */
  8135. HAL_PWREx_EnableAVD();
  8136. 8003c80: f007 fe56 bl 800b930 <HAL_PWREx_EnableAVD>
  8137. /** PVD Configuration
  8138. */
  8139. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  8140. 8003c84: 23c0 movs r3, #192 @ 0xc0
  8141. 8003c86: 60bb str r3, [r7, #8]
  8142. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  8143. 8003c88: 2300 movs r3, #0
  8144. 8003c8a: 60fb str r3, [r7, #12]
  8145. HAL_PWR_ConfigPVD(&sConfigPVD);
  8146. 8003c8c: f107 0308 add.w r3, r7, #8
  8147. 8003c90: 4618 mov r0, r3
  8148. 8003c92: f007 fd13 bl 800b6bc <HAL_PWR_ConfigPVD>
  8149. /** Enable the PVD Output
  8150. */
  8151. HAL_PWR_EnablePVD();
  8152. 8003c96: f007 fd8b bl 800b7b0 <HAL_PWR_EnablePVD>
  8153. /** Enable the VREF clock
  8154. */
  8155. __HAL_RCC_VREF_CLK_ENABLE();
  8156. 8003c9a: 4b0c ldr r3, [pc, #48] @ (8003ccc <HAL_MspInit+0xb4>)
  8157. 8003c9c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8158. 8003ca0: 4a0a ldr r2, [pc, #40] @ (8003ccc <HAL_MspInit+0xb4>)
  8159. 8003ca2: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  8160. 8003ca6: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8161. 8003caa: 4b08 ldr r3, [pc, #32] @ (8003ccc <HAL_MspInit+0xb4>)
  8162. 8003cac: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8163. 8003cb0: f403 4300 and.w r3, r3, #32768 @ 0x8000
  8164. 8003cb4: 603b str r3, [r7, #0]
  8165. 8003cb6: 683b ldr r3, [r7, #0]
  8166. /** Disable the Internal Voltage Reference buffer
  8167. */
  8168. HAL_SYSCFG_DisableVREFBUF();
  8169. 8003cb8: f002 f8e0 bl 8005e7c <HAL_SYSCFG_DisableVREFBUF>
  8170. /** Configure the internal voltage reference buffer high impedance mode
  8171. */
  8172. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  8173. 8003cbc: 2002 movs r0, #2
  8174. 8003cbe: f002 f8c9 bl 8005e54 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  8175. /* USER CODE BEGIN MspInit 1 */
  8176. /* USER CODE END MspInit 1 */
  8177. }
  8178. 8003cc2: bf00 nop
  8179. 8003cc4: 3718 adds r7, #24
  8180. 8003cc6: 46bd mov sp, r7
  8181. 8003cc8: bd80 pop {r7, pc}
  8182. 8003cca: bf00 nop
  8183. 8003ccc: 58024400 .word 0x58024400
  8184. 08003cd0 <HAL_ADC_MspInit>:
  8185. * This function configures the hardware resources used in this example
  8186. * @param hadc: ADC handle pointer
  8187. * @retval None
  8188. */
  8189. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  8190. {
  8191. 8003cd0: b580 push {r7, lr}
  8192. 8003cd2: b092 sub sp, #72 @ 0x48
  8193. 8003cd4: af00 add r7, sp, #0
  8194. 8003cd6: 6078 str r0, [r7, #4]
  8195. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8196. 8003cd8: f107 0334 add.w r3, r7, #52 @ 0x34
  8197. 8003cdc: 2200 movs r2, #0
  8198. 8003cde: 601a str r2, [r3, #0]
  8199. 8003ce0: 605a str r2, [r3, #4]
  8200. 8003ce2: 609a str r2, [r3, #8]
  8201. 8003ce4: 60da str r2, [r3, #12]
  8202. 8003ce6: 611a str r2, [r3, #16]
  8203. if(hadc->Instance==ADC1)
  8204. 8003ce8: 687b ldr r3, [r7, #4]
  8205. 8003cea: 681b ldr r3, [r3, #0]
  8206. 8003cec: 4a9d ldr r2, [pc, #628] @ (8003f64 <HAL_ADC_MspInit+0x294>)
  8207. 8003cee: 4293 cmp r3, r2
  8208. 8003cf0: f040 8099 bne.w 8003e26 <HAL_ADC_MspInit+0x156>
  8209. {
  8210. /* USER CODE BEGIN ADC1_MspInit 0 */
  8211. /* USER CODE END ADC1_MspInit 0 */
  8212. /* Peripheral clock enable */
  8213. HAL_RCC_ADC12_CLK_ENABLED++;
  8214. 8003cf4: 4b9c ldr r3, [pc, #624] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8215. 8003cf6: 681b ldr r3, [r3, #0]
  8216. 8003cf8: 3301 adds r3, #1
  8217. 8003cfa: 4a9b ldr r2, [pc, #620] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8218. 8003cfc: 6013 str r3, [r2, #0]
  8219. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8220. 8003cfe: 4b9a ldr r3, [pc, #616] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8221. 8003d00: 681b ldr r3, [r3, #0]
  8222. 8003d02: 2b01 cmp r3, #1
  8223. 8003d04: d10e bne.n 8003d24 <HAL_ADC_MspInit+0x54>
  8224. __HAL_RCC_ADC12_CLK_ENABLE();
  8225. 8003d06: 4b99 ldr r3, [pc, #612] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8226. 8003d08: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8227. 8003d0c: 4a97 ldr r2, [pc, #604] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8228. 8003d0e: f043 0320 orr.w r3, r3, #32
  8229. 8003d12: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8230. 8003d16: 4b95 ldr r3, [pc, #596] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8231. 8003d18: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8232. 8003d1c: f003 0320 and.w r3, r3, #32
  8233. 8003d20: 633b str r3, [r7, #48] @ 0x30
  8234. 8003d22: 6b3b ldr r3, [r7, #48] @ 0x30
  8235. }
  8236. __HAL_RCC_GPIOA_CLK_ENABLE();
  8237. 8003d24: 4b91 ldr r3, [pc, #580] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8238. 8003d26: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8239. 8003d2a: 4a90 ldr r2, [pc, #576] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8240. 8003d2c: f043 0301 orr.w r3, r3, #1
  8241. 8003d30: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8242. 8003d34: 4b8d ldr r3, [pc, #564] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8243. 8003d36: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8244. 8003d3a: f003 0301 and.w r3, r3, #1
  8245. 8003d3e: 62fb str r3, [r7, #44] @ 0x2c
  8246. 8003d40: 6afb ldr r3, [r7, #44] @ 0x2c
  8247. __HAL_RCC_GPIOC_CLK_ENABLE();
  8248. 8003d42: 4b8a ldr r3, [pc, #552] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8249. 8003d44: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8250. 8003d48: 4a88 ldr r2, [pc, #544] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8251. 8003d4a: f043 0304 orr.w r3, r3, #4
  8252. 8003d4e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8253. 8003d52: 4b86 ldr r3, [pc, #536] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8254. 8003d54: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8255. 8003d58: f003 0304 and.w r3, r3, #4
  8256. 8003d5c: 62bb str r3, [r7, #40] @ 0x28
  8257. 8003d5e: 6abb ldr r3, [r7, #40] @ 0x28
  8258. __HAL_RCC_GPIOB_CLK_ENABLE();
  8259. 8003d60: 4b82 ldr r3, [pc, #520] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8260. 8003d62: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8261. 8003d66: 4a81 ldr r2, [pc, #516] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8262. 8003d68: f043 0302 orr.w r3, r3, #2
  8263. 8003d6c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8264. 8003d70: 4b7e ldr r3, [pc, #504] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8265. 8003d72: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8266. 8003d76: f003 0302 and.w r3, r3, #2
  8267. 8003d7a: 627b str r3, [r7, #36] @ 0x24
  8268. 8003d7c: 6a7b ldr r3, [r7, #36] @ 0x24
  8269. PA3 ------> ADC1_INP15
  8270. PA7 ------> ADC1_INP7
  8271. PC5 ------> ADC1_INP8
  8272. PB0 ------> ADC1_INP9
  8273. */
  8274. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  8275. 8003d7e: 238f movs r3, #143 @ 0x8f
  8276. 8003d80: 637b str r3, [r7, #52] @ 0x34
  8277. |GPIO_PIN_7;
  8278. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8279. 8003d82: 2303 movs r3, #3
  8280. 8003d84: 63bb str r3, [r7, #56] @ 0x38
  8281. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8282. 8003d86: 2300 movs r3, #0
  8283. 8003d88: 63fb str r3, [r7, #60] @ 0x3c
  8284. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8285. 8003d8a: f107 0334 add.w r3, r7, #52 @ 0x34
  8286. 8003d8e: 4619 mov r1, r3
  8287. 8003d90: 4877 ldr r0, [pc, #476] @ (8003f70 <HAL_ADC_MspInit+0x2a0>)
  8288. 8003d92: f007 fa1f bl 800b1d4 <HAL_GPIO_Init>
  8289. GPIO_InitStruct.Pin = GPIO_PIN_5;
  8290. 8003d96: 2320 movs r3, #32
  8291. 8003d98: 637b str r3, [r7, #52] @ 0x34
  8292. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8293. 8003d9a: 2303 movs r3, #3
  8294. 8003d9c: 63bb str r3, [r7, #56] @ 0x38
  8295. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8296. 8003d9e: 2300 movs r3, #0
  8297. 8003da0: 63fb str r3, [r7, #60] @ 0x3c
  8298. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8299. 8003da2: f107 0334 add.w r3, r7, #52 @ 0x34
  8300. 8003da6: 4619 mov r1, r3
  8301. 8003da8: 4872 ldr r0, [pc, #456] @ (8003f74 <HAL_ADC_MspInit+0x2a4>)
  8302. 8003daa: f007 fa13 bl 800b1d4 <HAL_GPIO_Init>
  8303. GPIO_InitStruct.Pin = GPIO_PIN_0;
  8304. 8003dae: 2301 movs r3, #1
  8305. 8003db0: 637b str r3, [r7, #52] @ 0x34
  8306. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8307. 8003db2: 2303 movs r3, #3
  8308. 8003db4: 63bb str r3, [r7, #56] @ 0x38
  8309. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8310. 8003db6: 2300 movs r3, #0
  8311. 8003db8: 63fb str r3, [r7, #60] @ 0x3c
  8312. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8313. 8003dba: f107 0334 add.w r3, r7, #52 @ 0x34
  8314. 8003dbe: 4619 mov r1, r3
  8315. 8003dc0: 486d ldr r0, [pc, #436] @ (8003f78 <HAL_ADC_MspInit+0x2a8>)
  8316. 8003dc2: f007 fa07 bl 800b1d4 <HAL_GPIO_Init>
  8317. /* ADC1 DMA Init */
  8318. /* ADC1 Init */
  8319. hdma_adc1.Instance = DMA1_Stream0;
  8320. 8003dc6: 4b6d ldr r3, [pc, #436] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8321. 8003dc8: 4a6d ldr r2, [pc, #436] @ (8003f80 <HAL_ADC_MspInit+0x2b0>)
  8322. 8003dca: 601a str r2, [r3, #0]
  8323. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  8324. 8003dcc: 4b6b ldr r3, [pc, #428] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8325. 8003dce: 2209 movs r2, #9
  8326. 8003dd0: 605a str r2, [r3, #4]
  8327. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8328. 8003dd2: 4b6a ldr r3, [pc, #424] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8329. 8003dd4: 2200 movs r2, #0
  8330. 8003dd6: 609a str r2, [r3, #8]
  8331. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  8332. 8003dd8: 4b68 ldr r3, [pc, #416] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8333. 8003dda: 2200 movs r2, #0
  8334. 8003ddc: 60da str r2, [r3, #12]
  8335. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  8336. 8003dde: 4b67 ldr r3, [pc, #412] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8337. 8003de0: f44f 6280 mov.w r2, #1024 @ 0x400
  8338. 8003de4: 611a str r2, [r3, #16]
  8339. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8340. 8003de6: 4b65 ldr r3, [pc, #404] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8341. 8003de8: f44f 6200 mov.w r2, #2048 @ 0x800
  8342. 8003dec: 615a str r2, [r3, #20]
  8343. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8344. 8003dee: 4b63 ldr r3, [pc, #396] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8345. 8003df0: f44f 5200 mov.w r2, #8192 @ 0x2000
  8346. 8003df4: 619a str r2, [r3, #24]
  8347. hdma_adc1.Init.Mode = DMA_NORMAL;
  8348. 8003df6: 4b61 ldr r3, [pc, #388] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8349. 8003df8: 2200 movs r2, #0
  8350. 8003dfa: 61da str r2, [r3, #28]
  8351. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  8352. 8003dfc: 4b5f ldr r3, [pc, #380] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8353. 8003dfe: 2200 movs r2, #0
  8354. 8003e00: 621a str r2, [r3, #32]
  8355. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8356. 8003e02: 4b5e ldr r3, [pc, #376] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8357. 8003e04: 2200 movs r2, #0
  8358. 8003e06: 625a str r2, [r3, #36] @ 0x24
  8359. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  8360. 8003e08: 485c ldr r0, [pc, #368] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8361. 8003e0a: f004 fba7 bl 800855c <HAL_DMA_Init>
  8362. 8003e0e: 4603 mov r3, r0
  8363. 8003e10: 2b00 cmp r3, #0
  8364. 8003e12: d001 beq.n 8003e18 <HAL_ADC_MspInit+0x148>
  8365. {
  8366. Error_Handler();
  8367. 8003e14: f7fe f85a bl 8001ecc <Error_Handler>
  8368. }
  8369. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  8370. 8003e18: 687b ldr r3, [r7, #4]
  8371. 8003e1a: 4a58 ldr r2, [pc, #352] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8372. 8003e1c: 64da str r2, [r3, #76] @ 0x4c
  8373. 8003e1e: 4a57 ldr r2, [pc, #348] @ (8003f7c <HAL_ADC_MspInit+0x2ac>)
  8374. 8003e20: 687b ldr r3, [r7, #4]
  8375. 8003e22: 6393 str r3, [r2, #56] @ 0x38
  8376. /* USER CODE BEGIN ADC3_MspInit 1 */
  8377. /* USER CODE END ADC3_MspInit 1 */
  8378. }
  8379. }
  8380. 8003e24: e11e b.n 8004064 <HAL_ADC_MspInit+0x394>
  8381. else if(hadc->Instance==ADC2)
  8382. 8003e26: 687b ldr r3, [r7, #4]
  8383. 8003e28: 681b ldr r3, [r3, #0]
  8384. 8003e2a: 4a56 ldr r2, [pc, #344] @ (8003f84 <HAL_ADC_MspInit+0x2b4>)
  8385. 8003e2c: 4293 cmp r3, r2
  8386. 8003e2e: f040 80af bne.w 8003f90 <HAL_ADC_MspInit+0x2c0>
  8387. HAL_RCC_ADC12_CLK_ENABLED++;
  8388. 8003e32: 4b4d ldr r3, [pc, #308] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8389. 8003e34: 681b ldr r3, [r3, #0]
  8390. 8003e36: 3301 adds r3, #1
  8391. 8003e38: 4a4b ldr r2, [pc, #300] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8392. 8003e3a: 6013 str r3, [r2, #0]
  8393. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  8394. 8003e3c: 4b4a ldr r3, [pc, #296] @ (8003f68 <HAL_ADC_MspInit+0x298>)
  8395. 8003e3e: 681b ldr r3, [r3, #0]
  8396. 8003e40: 2b01 cmp r3, #1
  8397. 8003e42: d10e bne.n 8003e62 <HAL_ADC_MspInit+0x192>
  8398. __HAL_RCC_ADC12_CLK_ENABLE();
  8399. 8003e44: 4b49 ldr r3, [pc, #292] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8400. 8003e46: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8401. 8003e4a: 4a48 ldr r2, [pc, #288] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8402. 8003e4c: f043 0320 orr.w r3, r3, #32
  8403. 8003e50: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  8404. 8003e54: 4b45 ldr r3, [pc, #276] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8405. 8003e56: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  8406. 8003e5a: f003 0320 and.w r3, r3, #32
  8407. 8003e5e: 623b str r3, [r7, #32]
  8408. 8003e60: 6a3b ldr r3, [r7, #32]
  8409. __HAL_RCC_GPIOA_CLK_ENABLE();
  8410. 8003e62: 4b42 ldr r3, [pc, #264] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8411. 8003e64: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8412. 8003e68: 4a40 ldr r2, [pc, #256] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8413. 8003e6a: f043 0301 orr.w r3, r3, #1
  8414. 8003e6e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8415. 8003e72: 4b3e ldr r3, [pc, #248] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8416. 8003e74: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8417. 8003e78: f003 0301 and.w r3, r3, #1
  8418. 8003e7c: 61fb str r3, [r7, #28]
  8419. 8003e7e: 69fb ldr r3, [r7, #28]
  8420. __HAL_RCC_GPIOC_CLK_ENABLE();
  8421. 8003e80: 4b3a ldr r3, [pc, #232] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8422. 8003e82: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8423. 8003e86: 4a39 ldr r2, [pc, #228] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8424. 8003e88: f043 0304 orr.w r3, r3, #4
  8425. 8003e8c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8426. 8003e90: 4b36 ldr r3, [pc, #216] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8427. 8003e92: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8428. 8003e96: f003 0304 and.w r3, r3, #4
  8429. 8003e9a: 61bb str r3, [r7, #24]
  8430. 8003e9c: 69bb ldr r3, [r7, #24]
  8431. __HAL_RCC_GPIOB_CLK_ENABLE();
  8432. 8003e9e: 4b33 ldr r3, [pc, #204] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8433. 8003ea0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8434. 8003ea4: 4a31 ldr r2, [pc, #196] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8435. 8003ea6: f043 0302 orr.w r3, r3, #2
  8436. 8003eaa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8437. 8003eae: 4b2f ldr r3, [pc, #188] @ (8003f6c <HAL_ADC_MspInit+0x29c>)
  8438. 8003eb0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8439. 8003eb4: f003 0302 and.w r3, r3, #2
  8440. 8003eb8: 617b str r3, [r7, #20]
  8441. 8003eba: 697b ldr r3, [r7, #20]
  8442. GPIO_InitStruct.Pin = GPIO_PIN_6;
  8443. 8003ebc: 2340 movs r3, #64 @ 0x40
  8444. 8003ebe: 637b str r3, [r7, #52] @ 0x34
  8445. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8446. 8003ec0: 2303 movs r3, #3
  8447. 8003ec2: 63bb str r3, [r7, #56] @ 0x38
  8448. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8449. 8003ec4: 2300 movs r3, #0
  8450. 8003ec6: 63fb str r3, [r7, #60] @ 0x3c
  8451. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8452. 8003ec8: f107 0334 add.w r3, r7, #52 @ 0x34
  8453. 8003ecc: 4619 mov r1, r3
  8454. 8003ece: 4828 ldr r0, [pc, #160] @ (8003f70 <HAL_ADC_MspInit+0x2a0>)
  8455. 8003ed0: f007 f980 bl 800b1d4 <HAL_GPIO_Init>
  8456. GPIO_InitStruct.Pin = GPIO_PIN_4;
  8457. 8003ed4: 2310 movs r3, #16
  8458. 8003ed6: 637b str r3, [r7, #52] @ 0x34
  8459. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8460. 8003ed8: 2303 movs r3, #3
  8461. 8003eda: 63bb str r3, [r7, #56] @ 0x38
  8462. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8463. 8003edc: 2300 movs r3, #0
  8464. 8003ede: 63fb str r3, [r7, #60] @ 0x3c
  8465. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8466. 8003ee0: f107 0334 add.w r3, r7, #52 @ 0x34
  8467. 8003ee4: 4619 mov r1, r3
  8468. 8003ee6: 4823 ldr r0, [pc, #140] @ (8003f74 <HAL_ADC_MspInit+0x2a4>)
  8469. 8003ee8: f007 f974 bl 800b1d4 <HAL_GPIO_Init>
  8470. GPIO_InitStruct.Pin = GPIO_PIN_1;
  8471. 8003eec: 2302 movs r3, #2
  8472. 8003eee: 637b str r3, [r7, #52] @ 0x34
  8473. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8474. 8003ef0: 2303 movs r3, #3
  8475. 8003ef2: 63bb str r3, [r7, #56] @ 0x38
  8476. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8477. 8003ef4: 2300 movs r3, #0
  8478. 8003ef6: 63fb str r3, [r7, #60] @ 0x3c
  8479. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8480. 8003ef8: f107 0334 add.w r3, r7, #52 @ 0x34
  8481. 8003efc: 4619 mov r1, r3
  8482. 8003efe: 481e ldr r0, [pc, #120] @ (8003f78 <HAL_ADC_MspInit+0x2a8>)
  8483. 8003f00: f007 f968 bl 800b1d4 <HAL_GPIO_Init>
  8484. hdma_adc2.Instance = DMA1_Stream1;
  8485. 8003f04: 4b20 ldr r3, [pc, #128] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8486. 8003f06: 4a21 ldr r2, [pc, #132] @ (8003f8c <HAL_ADC_MspInit+0x2bc>)
  8487. 8003f08: 601a str r2, [r3, #0]
  8488. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  8489. 8003f0a: 4b1f ldr r3, [pc, #124] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8490. 8003f0c: 220a movs r2, #10
  8491. 8003f0e: 605a str r2, [r3, #4]
  8492. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8493. 8003f10: 4b1d ldr r3, [pc, #116] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8494. 8003f12: 2200 movs r2, #0
  8495. 8003f14: 609a str r2, [r3, #8]
  8496. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  8497. 8003f16: 4b1c ldr r3, [pc, #112] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8498. 8003f18: 2200 movs r2, #0
  8499. 8003f1a: 60da str r2, [r3, #12]
  8500. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  8501. 8003f1c: 4b1a ldr r3, [pc, #104] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8502. 8003f1e: f44f 6280 mov.w r2, #1024 @ 0x400
  8503. 8003f22: 611a str r2, [r3, #16]
  8504. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8505. 8003f24: 4b18 ldr r3, [pc, #96] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8506. 8003f26: f44f 6200 mov.w r2, #2048 @ 0x800
  8507. 8003f2a: 615a str r2, [r3, #20]
  8508. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8509. 8003f2c: 4b16 ldr r3, [pc, #88] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8510. 8003f2e: f44f 5200 mov.w r2, #8192 @ 0x2000
  8511. 8003f32: 619a str r2, [r3, #24]
  8512. hdma_adc2.Init.Mode = DMA_NORMAL;
  8513. 8003f34: 4b14 ldr r3, [pc, #80] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8514. 8003f36: 2200 movs r2, #0
  8515. 8003f38: 61da str r2, [r3, #28]
  8516. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  8517. 8003f3a: 4b13 ldr r3, [pc, #76] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8518. 8003f3c: 2200 movs r2, #0
  8519. 8003f3e: 621a str r2, [r3, #32]
  8520. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8521. 8003f40: 4b11 ldr r3, [pc, #68] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8522. 8003f42: 2200 movs r2, #0
  8523. 8003f44: 625a str r2, [r3, #36] @ 0x24
  8524. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  8525. 8003f46: 4810 ldr r0, [pc, #64] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8526. 8003f48: f004 fb08 bl 800855c <HAL_DMA_Init>
  8527. 8003f4c: 4603 mov r3, r0
  8528. 8003f4e: 2b00 cmp r3, #0
  8529. 8003f50: d001 beq.n 8003f56 <HAL_ADC_MspInit+0x286>
  8530. Error_Handler();
  8531. 8003f52: f7fd ffbb bl 8001ecc <Error_Handler>
  8532. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  8533. 8003f56: 687b ldr r3, [r7, #4]
  8534. 8003f58: 4a0b ldr r2, [pc, #44] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8535. 8003f5a: 64da str r2, [r3, #76] @ 0x4c
  8536. 8003f5c: 4a0a ldr r2, [pc, #40] @ (8003f88 <HAL_ADC_MspInit+0x2b8>)
  8537. 8003f5e: 687b ldr r3, [r7, #4]
  8538. 8003f60: 6393 str r3, [r2, #56] @ 0x38
  8539. }
  8540. 8003f62: e07f b.n 8004064 <HAL_ADC_MspInit+0x394>
  8541. 8003f64: 40022000 .word 0x40022000
  8542. 8003f68: 2400091c .word 0x2400091c
  8543. 8003f6c: 58024400 .word 0x58024400
  8544. 8003f70: 58020000 .word 0x58020000
  8545. 8003f74: 58020800 .word 0x58020800
  8546. 8003f78: 58020400 .word 0x58020400
  8547. 8003f7c: 2400024c .word 0x2400024c
  8548. 8003f80: 40020010 .word 0x40020010
  8549. 8003f84: 40022100 .word 0x40022100
  8550. 8003f88: 240002c4 .word 0x240002c4
  8551. 8003f8c: 40020028 .word 0x40020028
  8552. else if(hadc->Instance==ADC3)
  8553. 8003f90: 687b ldr r3, [r7, #4]
  8554. 8003f92: 681b ldr r3, [r3, #0]
  8555. 8003f94: 4a35 ldr r2, [pc, #212] @ (800406c <HAL_ADC_MspInit+0x39c>)
  8556. 8003f96: 4293 cmp r3, r2
  8557. 8003f98: d164 bne.n 8004064 <HAL_ADC_MspInit+0x394>
  8558. __HAL_RCC_ADC3_CLK_ENABLE();
  8559. 8003f9a: 4b35 ldr r3, [pc, #212] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8560. 8003f9c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8561. 8003fa0: 4a33 ldr r2, [pc, #204] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8562. 8003fa2: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  8563. 8003fa6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8564. 8003faa: 4b31 ldr r3, [pc, #196] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8565. 8003fac: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8566. 8003fb0: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  8567. 8003fb4: 613b str r3, [r7, #16]
  8568. 8003fb6: 693b ldr r3, [r7, #16]
  8569. __HAL_RCC_GPIOC_CLK_ENABLE();
  8570. 8003fb8: 4b2d ldr r3, [pc, #180] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8571. 8003fba: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8572. 8003fbe: 4a2c ldr r2, [pc, #176] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8573. 8003fc0: f043 0304 orr.w r3, r3, #4
  8574. 8003fc4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8575. 8003fc8: 4b29 ldr r3, [pc, #164] @ (8004070 <HAL_ADC_MspInit+0x3a0>)
  8576. 8003fca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8577. 8003fce: f003 0304 and.w r3, r3, #4
  8578. 8003fd2: 60fb str r3, [r7, #12]
  8579. 8003fd4: 68fb ldr r3, [r7, #12]
  8580. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8581. 8003fd6: 2303 movs r3, #3
  8582. 8003fd8: 637b str r3, [r7, #52] @ 0x34
  8583. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8584. 8003fda: 2303 movs r3, #3
  8585. 8003fdc: 63bb str r3, [r7, #56] @ 0x38
  8586. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8587. 8003fde: 2300 movs r3, #0
  8588. 8003fe0: 63fb str r3, [r7, #60] @ 0x3c
  8589. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8590. 8003fe2: f107 0334 add.w r3, r7, #52 @ 0x34
  8591. 8003fe6: 4619 mov r1, r3
  8592. 8003fe8: 4822 ldr r0, [pc, #136] @ (8004074 <HAL_ADC_MspInit+0x3a4>)
  8593. 8003fea: f007 f8f3 bl 800b1d4 <HAL_GPIO_Init>
  8594. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  8595. 8003fee: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  8596. 8003ff2: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  8597. 8003ff6: f001 ff51 bl 8005e9c <HAL_SYSCFG_AnalogSwitchConfig>
  8598. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  8599. 8003ffa: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  8600. 8003ffe: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  8601. 8004002: f001 ff4b bl 8005e9c <HAL_SYSCFG_AnalogSwitchConfig>
  8602. hdma_adc3.Instance = DMA1_Stream2;
  8603. 8004006: 4b1c ldr r3, [pc, #112] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8604. 8004008: 4a1c ldr r2, [pc, #112] @ (800407c <HAL_ADC_MspInit+0x3ac>)
  8605. 800400a: 601a str r2, [r3, #0]
  8606. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  8607. 800400c: 4b1a ldr r3, [pc, #104] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8608. 800400e: 2273 movs r2, #115 @ 0x73
  8609. 8004010: 605a str r2, [r3, #4]
  8610. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  8611. 8004012: 4b19 ldr r3, [pc, #100] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8612. 8004014: 2200 movs r2, #0
  8613. 8004016: 609a str r2, [r3, #8]
  8614. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  8615. 8004018: 4b17 ldr r3, [pc, #92] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8616. 800401a: 2200 movs r2, #0
  8617. 800401c: 60da str r2, [r3, #12]
  8618. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  8619. 800401e: 4b16 ldr r3, [pc, #88] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8620. 8004020: f44f 6280 mov.w r2, #1024 @ 0x400
  8621. 8004024: 611a str r2, [r3, #16]
  8622. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  8623. 8004026: 4b14 ldr r3, [pc, #80] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8624. 8004028: f44f 6200 mov.w r2, #2048 @ 0x800
  8625. 800402c: 615a str r2, [r3, #20]
  8626. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  8627. 800402e: 4b12 ldr r3, [pc, #72] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8628. 8004030: f44f 5200 mov.w r2, #8192 @ 0x2000
  8629. 8004034: 619a str r2, [r3, #24]
  8630. hdma_adc3.Init.Mode = DMA_NORMAL;
  8631. 8004036: 4b10 ldr r3, [pc, #64] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8632. 8004038: 2200 movs r2, #0
  8633. 800403a: 61da str r2, [r3, #28]
  8634. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  8635. 800403c: 4b0e ldr r3, [pc, #56] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8636. 800403e: 2200 movs r2, #0
  8637. 8004040: 621a str r2, [r3, #32]
  8638. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  8639. 8004042: 4b0d ldr r3, [pc, #52] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8640. 8004044: 2200 movs r2, #0
  8641. 8004046: 625a str r2, [r3, #36] @ 0x24
  8642. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  8643. 8004048: 480b ldr r0, [pc, #44] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8644. 800404a: f004 fa87 bl 800855c <HAL_DMA_Init>
  8645. 800404e: 4603 mov r3, r0
  8646. 8004050: 2b00 cmp r3, #0
  8647. 8004052: d001 beq.n 8004058 <HAL_ADC_MspInit+0x388>
  8648. Error_Handler();
  8649. 8004054: f7fd ff3a bl 8001ecc <Error_Handler>
  8650. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  8651. 8004058: 687b ldr r3, [r7, #4]
  8652. 800405a: 4a07 ldr r2, [pc, #28] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8653. 800405c: 64da str r2, [r3, #76] @ 0x4c
  8654. 800405e: 4a06 ldr r2, [pc, #24] @ (8004078 <HAL_ADC_MspInit+0x3a8>)
  8655. 8004060: 687b ldr r3, [r7, #4]
  8656. 8004062: 6393 str r3, [r2, #56] @ 0x38
  8657. }
  8658. 8004064: bf00 nop
  8659. 8004066: 3748 adds r7, #72 @ 0x48
  8660. 8004068: 46bd mov sp, r7
  8661. 800406a: bd80 pop {r7, pc}
  8662. 800406c: 58026000 .word 0x58026000
  8663. 8004070: 58024400 .word 0x58024400
  8664. 8004074: 58020800 .word 0x58020800
  8665. 8004078: 2400033c .word 0x2400033c
  8666. 800407c: 40020040 .word 0x40020040
  8667. 08004080 <HAL_COMP_MspInit>:
  8668. * This function configures the hardware resources used in this example
  8669. * @param hcomp: COMP handle pointer
  8670. * @retval None
  8671. */
  8672. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  8673. {
  8674. 8004080: b580 push {r7, lr}
  8675. 8004082: b08a sub sp, #40 @ 0x28
  8676. 8004084: af00 add r7, sp, #0
  8677. 8004086: 6078 str r0, [r7, #4]
  8678. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8679. 8004088: f107 0314 add.w r3, r7, #20
  8680. 800408c: 2200 movs r2, #0
  8681. 800408e: 601a str r2, [r3, #0]
  8682. 8004090: 605a str r2, [r3, #4]
  8683. 8004092: 609a str r2, [r3, #8]
  8684. 8004094: 60da str r2, [r3, #12]
  8685. 8004096: 611a str r2, [r3, #16]
  8686. if(hcomp->Instance==COMP1)
  8687. 8004098: 687b ldr r3, [r7, #4]
  8688. 800409a: 681b ldr r3, [r3, #0]
  8689. 800409c: 4a18 ldr r2, [pc, #96] @ (8004100 <HAL_COMP_MspInit+0x80>)
  8690. 800409e: 4293 cmp r3, r2
  8691. 80040a0: d129 bne.n 80040f6 <HAL_COMP_MspInit+0x76>
  8692. {
  8693. /* USER CODE BEGIN COMP1_MspInit 0 */
  8694. /* USER CODE END COMP1_MspInit 0 */
  8695. /* Peripheral clock enable */
  8696. __HAL_RCC_COMP12_CLK_ENABLE();
  8697. 80040a2: 4b18 ldr r3, [pc, #96] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8698. 80040a4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8699. 80040a8: 4a16 ldr r2, [pc, #88] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8700. 80040aa: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  8701. 80040ae: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  8702. 80040b2: 4b14 ldr r3, [pc, #80] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8703. 80040b4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  8704. 80040b8: f403 4380 and.w r3, r3, #16384 @ 0x4000
  8705. 80040bc: 613b str r3, [r7, #16]
  8706. 80040be: 693b ldr r3, [r7, #16]
  8707. __HAL_RCC_GPIOB_CLK_ENABLE();
  8708. 80040c0: 4b10 ldr r3, [pc, #64] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8709. 80040c2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8710. 80040c6: 4a0f ldr r2, [pc, #60] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8711. 80040c8: f043 0302 orr.w r3, r3, #2
  8712. 80040cc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8713. 80040d0: 4b0c ldr r3, [pc, #48] @ (8004104 <HAL_COMP_MspInit+0x84>)
  8714. 80040d2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8715. 80040d6: f003 0302 and.w r3, r3, #2
  8716. 80040da: 60fb str r3, [r7, #12]
  8717. 80040dc: 68fb ldr r3, [r7, #12]
  8718. /**COMP1 GPIO Configuration
  8719. PB2 ------> COMP1_INP
  8720. */
  8721. GPIO_InitStruct.Pin = GPIO_PIN_2;
  8722. 80040de: 2304 movs r3, #4
  8723. 80040e0: 617b str r3, [r7, #20]
  8724. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8725. 80040e2: 2303 movs r3, #3
  8726. 80040e4: 61bb str r3, [r7, #24]
  8727. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8728. 80040e6: 2300 movs r3, #0
  8729. 80040e8: 61fb str r3, [r7, #28]
  8730. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8731. 80040ea: f107 0314 add.w r3, r7, #20
  8732. 80040ee: 4619 mov r1, r3
  8733. 80040f0: 4805 ldr r0, [pc, #20] @ (8004108 <HAL_COMP_MspInit+0x88>)
  8734. 80040f2: f007 f86f bl 800b1d4 <HAL_GPIO_Init>
  8735. /* USER CODE BEGIN COMP1_MspInit 1 */
  8736. /* USER CODE END COMP1_MspInit 1 */
  8737. }
  8738. }
  8739. 80040f6: bf00 nop
  8740. 80040f8: 3728 adds r7, #40 @ 0x28
  8741. 80040fa: 46bd mov sp, r7
  8742. 80040fc: bd80 pop {r7, pc}
  8743. 80040fe: bf00 nop
  8744. 8004100: 5800380c .word 0x5800380c
  8745. 8004104: 58024400 .word 0x58024400
  8746. 8004108: 58020400 .word 0x58020400
  8747. 0800410c <HAL_CRC_MspInit>:
  8748. * This function configures the hardware resources used in this example
  8749. * @param hcrc: CRC handle pointer
  8750. * @retval None
  8751. */
  8752. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  8753. {
  8754. 800410c: b480 push {r7}
  8755. 800410e: b085 sub sp, #20
  8756. 8004110: af00 add r7, sp, #0
  8757. 8004112: 6078 str r0, [r7, #4]
  8758. if(hcrc->Instance==CRC)
  8759. 8004114: 687b ldr r3, [r7, #4]
  8760. 8004116: 681b ldr r3, [r3, #0]
  8761. 8004118: 4a0b ldr r2, [pc, #44] @ (8004148 <HAL_CRC_MspInit+0x3c>)
  8762. 800411a: 4293 cmp r3, r2
  8763. 800411c: d10e bne.n 800413c <HAL_CRC_MspInit+0x30>
  8764. {
  8765. /* USER CODE BEGIN CRC_MspInit 0 */
  8766. /* USER CODE END CRC_MspInit 0 */
  8767. /* Peripheral clock enable */
  8768. __HAL_RCC_CRC_CLK_ENABLE();
  8769. 800411e: 4b0b ldr r3, [pc, #44] @ (800414c <HAL_CRC_MspInit+0x40>)
  8770. 8004120: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8771. 8004124: 4a09 ldr r2, [pc, #36] @ (800414c <HAL_CRC_MspInit+0x40>)
  8772. 8004126: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  8773. 800412a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8774. 800412e: 4b07 ldr r3, [pc, #28] @ (800414c <HAL_CRC_MspInit+0x40>)
  8775. 8004130: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8776. 8004134: f403 2300 and.w r3, r3, #524288 @ 0x80000
  8777. 8004138: 60fb str r3, [r7, #12]
  8778. 800413a: 68fb ldr r3, [r7, #12]
  8779. /* USER CODE BEGIN CRC_MspInit 1 */
  8780. /* USER CODE END CRC_MspInit 1 */
  8781. }
  8782. }
  8783. 800413c: bf00 nop
  8784. 800413e: 3714 adds r7, #20
  8785. 8004140: 46bd mov sp, r7
  8786. 8004142: f85d 7b04 ldr.w r7, [sp], #4
  8787. 8004146: 4770 bx lr
  8788. 8004148: 58024c00 .word 0x58024c00
  8789. 800414c: 58024400 .word 0x58024400
  8790. 08004150 <HAL_DAC_MspInit>:
  8791. * This function configures the hardware resources used in this example
  8792. * @param hdac: DAC handle pointer
  8793. * @retval None
  8794. */
  8795. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  8796. {
  8797. 8004150: b580 push {r7, lr}
  8798. 8004152: b08a sub sp, #40 @ 0x28
  8799. 8004154: af00 add r7, sp, #0
  8800. 8004156: 6078 str r0, [r7, #4]
  8801. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8802. 8004158: f107 0314 add.w r3, r7, #20
  8803. 800415c: 2200 movs r2, #0
  8804. 800415e: 601a str r2, [r3, #0]
  8805. 8004160: 605a str r2, [r3, #4]
  8806. 8004162: 609a str r2, [r3, #8]
  8807. 8004164: 60da str r2, [r3, #12]
  8808. 8004166: 611a str r2, [r3, #16]
  8809. if(hdac->Instance==DAC1)
  8810. 8004168: 687b ldr r3, [r7, #4]
  8811. 800416a: 681b ldr r3, [r3, #0]
  8812. 800416c: 4a1c ldr r2, [pc, #112] @ (80041e0 <HAL_DAC_MspInit+0x90>)
  8813. 800416e: 4293 cmp r3, r2
  8814. 8004170: d131 bne.n 80041d6 <HAL_DAC_MspInit+0x86>
  8815. {
  8816. /* USER CODE BEGIN DAC1_MspInit 0 */
  8817. /* USER CODE END DAC1_MspInit 0 */
  8818. /* Peripheral clock enable */
  8819. __HAL_RCC_DAC12_CLK_ENABLE();
  8820. 8004172: 4b1c ldr r3, [pc, #112] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8821. 8004174: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8822. 8004178: 4a1a ldr r2, [pc, #104] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8823. 800417a: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  8824. 800417e: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8825. 8004182: 4b18 ldr r3, [pc, #96] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8826. 8004184: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8827. 8004188: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  8828. 800418c: 613b str r3, [r7, #16]
  8829. 800418e: 693b ldr r3, [r7, #16]
  8830. __HAL_RCC_GPIOA_CLK_ENABLE();
  8831. 8004190: 4b14 ldr r3, [pc, #80] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8832. 8004192: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8833. 8004196: 4a13 ldr r2, [pc, #76] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8834. 8004198: f043 0301 orr.w r3, r3, #1
  8835. 800419c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8836. 80041a0: 4b10 ldr r3, [pc, #64] @ (80041e4 <HAL_DAC_MspInit+0x94>)
  8837. 80041a2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8838. 80041a6: f003 0301 and.w r3, r3, #1
  8839. 80041aa: 60fb str r3, [r7, #12]
  8840. 80041ac: 68fb ldr r3, [r7, #12]
  8841. /**DAC1 GPIO Configuration
  8842. PA4 ------> DAC1_OUT1
  8843. PA5 ------> DAC1_OUT2
  8844. */
  8845. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  8846. 80041ae: 2330 movs r3, #48 @ 0x30
  8847. 80041b0: 617b str r3, [r7, #20]
  8848. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8849. 80041b2: 2303 movs r3, #3
  8850. 80041b4: 61bb str r3, [r7, #24]
  8851. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8852. 80041b6: 2300 movs r3, #0
  8853. 80041b8: 61fb str r3, [r7, #28]
  8854. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8855. 80041ba: f107 0314 add.w r3, r7, #20
  8856. 80041be: 4619 mov r1, r3
  8857. 80041c0: 4809 ldr r0, [pc, #36] @ (80041e8 <HAL_DAC_MspInit+0x98>)
  8858. 80041c2: f007 f807 bl 800b1d4 <HAL_GPIO_Init>
  8859. /* DAC1 interrupt Init */
  8860. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  8861. 80041c6: 2200 movs r2, #0
  8862. 80041c8: 2105 movs r1, #5
  8863. 80041ca: 2036 movs r0, #54 @ 0x36
  8864. 80041cc: f003 fcd0 bl 8007b70 <HAL_NVIC_SetPriority>
  8865. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8866. 80041d0: 2036 movs r0, #54 @ 0x36
  8867. 80041d2: f003 fce7 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  8868. /* USER CODE BEGIN DAC1_MspInit 1 */
  8869. /* USER CODE END DAC1_MspInit 1 */
  8870. }
  8871. }
  8872. 80041d6: bf00 nop
  8873. 80041d8: 3728 adds r7, #40 @ 0x28
  8874. 80041da: 46bd mov sp, r7
  8875. 80041dc: bd80 pop {r7, pc}
  8876. 80041de: bf00 nop
  8877. 80041e0: 40007400 .word 0x40007400
  8878. 80041e4: 58024400 .word 0x58024400
  8879. 80041e8: 58020000 .word 0x58020000
  8880. 080041ec <HAL_RNG_MspInit>:
  8881. * This function configures the hardware resources used in this example
  8882. * @param hrng: RNG handle pointer
  8883. * @retval None
  8884. */
  8885. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  8886. {
  8887. 80041ec: b580 push {r7, lr}
  8888. 80041ee: b0b4 sub sp, #208 @ 0xd0
  8889. 80041f0: af00 add r7, sp, #0
  8890. 80041f2: 6078 str r0, [r7, #4]
  8891. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8892. 80041f4: f107 0310 add.w r3, r7, #16
  8893. 80041f8: 22c0 movs r2, #192 @ 0xc0
  8894. 80041fa: 2100 movs r1, #0
  8895. 80041fc: 4618 mov r0, r3
  8896. 80041fe: f014 f88b bl 8018318 <memset>
  8897. if(hrng->Instance==RNG)
  8898. 8004202: 687b ldr r3, [r7, #4]
  8899. 8004204: 681b ldr r3, [r3, #0]
  8900. 8004206: 4a14 ldr r2, [pc, #80] @ (8004258 <HAL_RNG_MspInit+0x6c>)
  8901. 8004208: 4293 cmp r3, r2
  8902. 800420a: d121 bne.n 8004250 <HAL_RNG_MspInit+0x64>
  8903. /* USER CODE END RNG_MspInit 0 */
  8904. /** Initializes the peripherals clock
  8905. */
  8906. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  8907. 800420c: f44f 3200 mov.w r2, #131072 @ 0x20000
  8908. 8004210: f04f 0300 mov.w r3, #0
  8909. 8004214: e9c7 2304 strd r2, r3, [r7, #16]
  8910. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  8911. 8004218: 2300 movs r3, #0
  8912. 800421a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8913. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8914. 800421e: f107 0310 add.w r3, r7, #16
  8915. 8004222: 4618 mov r0, r3
  8916. 8004224: f008 fbbc bl 800c9a0 <HAL_RCCEx_PeriphCLKConfig>
  8917. 8004228: 4603 mov r3, r0
  8918. 800422a: 2b00 cmp r3, #0
  8919. 800422c: d001 beq.n 8004232 <HAL_RNG_MspInit+0x46>
  8920. {
  8921. Error_Handler();
  8922. 800422e: f7fd fe4d bl 8001ecc <Error_Handler>
  8923. }
  8924. /* Peripheral clock enable */
  8925. __HAL_RCC_RNG_CLK_ENABLE();
  8926. 8004232: 4b0a ldr r3, [pc, #40] @ (800425c <HAL_RNG_MspInit+0x70>)
  8927. 8004234: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8928. 8004238: 4a08 ldr r2, [pc, #32] @ (800425c <HAL_RNG_MspInit+0x70>)
  8929. 800423a: f043 0340 orr.w r3, r3, #64 @ 0x40
  8930. 800423e: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  8931. 8004242: 4b06 ldr r3, [pc, #24] @ (800425c <HAL_RNG_MspInit+0x70>)
  8932. 8004244: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8933. 8004248: f003 0340 and.w r3, r3, #64 @ 0x40
  8934. 800424c: 60fb str r3, [r7, #12]
  8935. 800424e: 68fb ldr r3, [r7, #12]
  8936. /* USER CODE BEGIN RNG_MspInit 1 */
  8937. /* USER CODE END RNG_MspInit 1 */
  8938. }
  8939. }
  8940. 8004250: bf00 nop
  8941. 8004252: 37d0 adds r7, #208 @ 0xd0
  8942. 8004254: 46bd mov sp, r7
  8943. 8004256: bd80 pop {r7, pc}
  8944. 8004258: 48021800 .word 0x48021800
  8945. 800425c: 58024400 .word 0x58024400
  8946. 08004260 <HAL_TIM_PWM_MspInit>:
  8947. * This function configures the hardware resources used in this example
  8948. * @param htim_pwm: TIM_PWM handle pointer
  8949. * @retval None
  8950. */
  8951. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  8952. {
  8953. 8004260: b480 push {r7}
  8954. 8004262: b085 sub sp, #20
  8955. 8004264: af00 add r7, sp, #0
  8956. 8004266: 6078 str r0, [r7, #4]
  8957. if(htim_pwm->Instance==TIM1)
  8958. 8004268: 687b ldr r3, [r7, #4]
  8959. 800426a: 681b ldr r3, [r3, #0]
  8960. 800426c: 4a16 ldr r2, [pc, #88] @ (80042c8 <HAL_TIM_PWM_MspInit+0x68>)
  8961. 800426e: 4293 cmp r3, r2
  8962. 8004270: d10f bne.n 8004292 <HAL_TIM_PWM_MspInit+0x32>
  8963. {
  8964. /* USER CODE BEGIN TIM1_MspInit 0 */
  8965. /* USER CODE END TIM1_MspInit 0 */
  8966. /* Peripheral clock enable */
  8967. __HAL_RCC_TIM1_CLK_ENABLE();
  8968. 8004272: 4b16 ldr r3, [pc, #88] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8969. 8004274: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8970. 8004278: 4a14 ldr r2, [pc, #80] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8971. 800427a: f043 0301 orr.w r3, r3, #1
  8972. 800427e: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8973. 8004282: 4b12 ldr r3, [pc, #72] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8974. 8004284: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8975. 8004288: f003 0301 and.w r3, r3, #1
  8976. 800428c: 60fb str r3, [r7, #12]
  8977. 800428e: 68fb ldr r3, [r7, #12]
  8978. /* USER CODE BEGIN TIM3_MspInit 1 */
  8979. /* USER CODE END TIM3_MspInit 1 */
  8980. }
  8981. }
  8982. 8004290: e013 b.n 80042ba <HAL_TIM_PWM_MspInit+0x5a>
  8983. else if(htim_pwm->Instance==TIM3)
  8984. 8004292: 687b ldr r3, [r7, #4]
  8985. 8004294: 681b ldr r3, [r3, #0]
  8986. 8004296: 4a0e ldr r2, [pc, #56] @ (80042d0 <HAL_TIM_PWM_MspInit+0x70>)
  8987. 8004298: 4293 cmp r3, r2
  8988. 800429a: d10e bne.n 80042ba <HAL_TIM_PWM_MspInit+0x5a>
  8989. __HAL_RCC_TIM3_CLK_ENABLE();
  8990. 800429c: 4b0b ldr r3, [pc, #44] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8991. 800429e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8992. 80042a2: 4a0a ldr r2, [pc, #40] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8993. 80042a4: f043 0302 orr.w r3, r3, #2
  8994. 80042a8: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8995. 80042ac: 4b07 ldr r3, [pc, #28] @ (80042cc <HAL_TIM_PWM_MspInit+0x6c>)
  8996. 80042ae: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8997. 80042b2: f003 0302 and.w r3, r3, #2
  8998. 80042b6: 60bb str r3, [r7, #8]
  8999. 80042b8: 68bb ldr r3, [r7, #8]
  9000. }
  9001. 80042ba: bf00 nop
  9002. 80042bc: 3714 adds r7, #20
  9003. 80042be: 46bd mov sp, r7
  9004. 80042c0: f85d 7b04 ldr.w r7, [sp], #4
  9005. 80042c4: 4770 bx lr
  9006. 80042c6: bf00 nop
  9007. 80042c8: 40010000 .word 0x40010000
  9008. 80042cc: 58024400 .word 0x58024400
  9009. 80042d0: 40000400 .word 0x40000400
  9010. 080042d4 <HAL_TIM_Base_MspInit>:
  9011. * This function configures the hardware resources used in this example
  9012. * @param htim_base: TIM_Base handle pointer
  9013. * @retval None
  9014. */
  9015. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  9016. {
  9017. 80042d4: b580 push {r7, lr}
  9018. 80042d6: b08c sub sp, #48 @ 0x30
  9019. 80042d8: af00 add r7, sp, #0
  9020. 80042da: 6078 str r0, [r7, #4]
  9021. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9022. 80042dc: f107 031c add.w r3, r7, #28
  9023. 80042e0: 2200 movs r2, #0
  9024. 80042e2: 601a str r2, [r3, #0]
  9025. 80042e4: 605a str r2, [r3, #4]
  9026. 80042e6: 609a str r2, [r3, #8]
  9027. 80042e8: 60da str r2, [r3, #12]
  9028. 80042ea: 611a str r2, [r3, #16]
  9029. if(htim_base->Instance==TIM2)
  9030. 80042ec: 687b ldr r3, [r7, #4]
  9031. 80042ee: 681b ldr r3, [r3, #0]
  9032. 80042f0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  9033. 80042f4: d137 bne.n 8004366 <HAL_TIM_Base_MspInit+0x92>
  9034. {
  9035. /* USER CODE BEGIN TIM2_MspInit 0 */
  9036. /* USER CODE END TIM2_MspInit 0 */
  9037. /* Peripheral clock enable */
  9038. __HAL_RCC_TIM2_CLK_ENABLE();
  9039. 80042f6: 4b46 ldr r3, [pc, #280] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9040. 80042f8: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9041. 80042fc: 4a44 ldr r2, [pc, #272] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9042. 80042fe: f043 0301 orr.w r3, r3, #1
  9043. 8004302: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9044. 8004306: 4b42 ldr r3, [pc, #264] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9045. 8004308: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9046. 800430c: f003 0301 and.w r3, r3, #1
  9047. 8004310: 61bb str r3, [r7, #24]
  9048. 8004312: 69bb ldr r3, [r7, #24]
  9049. __HAL_RCC_GPIOB_CLK_ENABLE();
  9050. 8004314: 4b3e ldr r3, [pc, #248] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9051. 8004316: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9052. 800431a: 4a3d ldr r2, [pc, #244] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9053. 800431c: f043 0302 orr.w r3, r3, #2
  9054. 8004320: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9055. 8004324: 4b3a ldr r3, [pc, #232] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9056. 8004326: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9057. 800432a: f003 0302 and.w r3, r3, #2
  9058. 800432e: 617b str r3, [r7, #20]
  9059. 8004330: 697b ldr r3, [r7, #20]
  9060. /**TIM2 GPIO Configuration
  9061. PB10 ------> TIM2_CH3
  9062. PB11 ------> TIM2_CH4
  9063. */
  9064. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  9065. 8004332: f44f 6340 mov.w r3, #3072 @ 0xc00
  9066. 8004336: 61fb str r3, [r7, #28]
  9067. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9068. 8004338: 2302 movs r3, #2
  9069. 800433a: 623b str r3, [r7, #32]
  9070. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9071. 800433c: 2300 movs r3, #0
  9072. 800433e: 627b str r3, [r7, #36] @ 0x24
  9073. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9074. 8004340: 2300 movs r3, #0
  9075. 8004342: 62bb str r3, [r7, #40] @ 0x28
  9076. GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
  9077. 8004344: 2301 movs r3, #1
  9078. 8004346: 62fb str r3, [r7, #44] @ 0x2c
  9079. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9080. 8004348: f107 031c add.w r3, r7, #28
  9081. 800434c: 4619 mov r1, r3
  9082. 800434e: 4831 ldr r0, [pc, #196] @ (8004414 <HAL_TIM_Base_MspInit+0x140>)
  9083. 8004350: f006 ff40 bl 800b1d4 <HAL_GPIO_Init>
  9084. /* TIM2 interrupt Init */
  9085. HAL_NVIC_SetPriority(TIM2_IRQn, 5, 0);
  9086. 8004354: 2200 movs r2, #0
  9087. 8004356: 2105 movs r1, #5
  9088. 8004358: 201c movs r0, #28
  9089. 800435a: f003 fc09 bl 8007b70 <HAL_NVIC_SetPriority>
  9090. HAL_NVIC_EnableIRQ(TIM2_IRQn);
  9091. 800435e: 201c movs r0, #28
  9092. 8004360: f003 fc20 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  9093. /* USER CODE BEGIN TIM8_MspInit 1 */
  9094. /* USER CODE END TIM8_MspInit 1 */
  9095. }
  9096. }
  9097. 8004364: e050 b.n 8004408 <HAL_TIM_Base_MspInit+0x134>
  9098. else if(htim_base->Instance==TIM4)
  9099. 8004366: 687b ldr r3, [r7, #4]
  9100. 8004368: 681b ldr r3, [r3, #0]
  9101. 800436a: 4a2b ldr r2, [pc, #172] @ (8004418 <HAL_TIM_Base_MspInit+0x144>)
  9102. 800436c: 4293 cmp r3, r2
  9103. 800436e: d137 bne.n 80043e0 <HAL_TIM_Base_MspInit+0x10c>
  9104. __HAL_RCC_TIM4_CLK_ENABLE();
  9105. 8004370: 4b27 ldr r3, [pc, #156] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9106. 8004372: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9107. 8004376: 4a26 ldr r2, [pc, #152] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9108. 8004378: f043 0304 orr.w r3, r3, #4
  9109. 800437c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9110. 8004380: 4b23 ldr r3, [pc, #140] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9111. 8004382: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9112. 8004386: f003 0304 and.w r3, r3, #4
  9113. 800438a: 613b str r3, [r7, #16]
  9114. 800438c: 693b ldr r3, [r7, #16]
  9115. __HAL_RCC_GPIOD_CLK_ENABLE();
  9116. 800438e: 4b20 ldr r3, [pc, #128] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9117. 8004390: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9118. 8004394: 4a1e ldr r2, [pc, #120] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9119. 8004396: f043 0308 orr.w r3, r3, #8
  9120. 800439a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9121. 800439e: 4b1c ldr r3, [pc, #112] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9122. 80043a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9123. 80043a4: f003 0308 and.w r3, r3, #8
  9124. 80043a8: 60fb str r3, [r7, #12]
  9125. 80043aa: 68fb ldr r3, [r7, #12]
  9126. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9127. 80043ac: f44f 4340 mov.w r3, #49152 @ 0xc000
  9128. 80043b0: 61fb str r3, [r7, #28]
  9129. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9130. 80043b2: 2302 movs r3, #2
  9131. 80043b4: 623b str r3, [r7, #32]
  9132. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9133. 80043b6: 2300 movs r3, #0
  9134. 80043b8: 627b str r3, [r7, #36] @ 0x24
  9135. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9136. 80043ba: 2300 movs r3, #0
  9137. 80043bc: 62bb str r3, [r7, #40] @ 0x28
  9138. GPIO_InitStruct.Alternate = GPIO_AF2_TIM4;
  9139. 80043be: 2302 movs r3, #2
  9140. 80043c0: 62fb str r3, [r7, #44] @ 0x2c
  9141. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  9142. 80043c2: f107 031c add.w r3, r7, #28
  9143. 80043c6: 4619 mov r1, r3
  9144. 80043c8: 4814 ldr r0, [pc, #80] @ (800441c <HAL_TIM_Base_MspInit+0x148>)
  9145. 80043ca: f006 ff03 bl 800b1d4 <HAL_GPIO_Init>
  9146. HAL_NVIC_SetPriority(TIM4_IRQn, 5, 0);
  9147. 80043ce: 2200 movs r2, #0
  9148. 80043d0: 2105 movs r1, #5
  9149. 80043d2: 201e movs r0, #30
  9150. 80043d4: f003 fbcc bl 8007b70 <HAL_NVIC_SetPriority>
  9151. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  9152. 80043d8: 201e movs r0, #30
  9153. 80043da: f003 fbe3 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  9154. }
  9155. 80043de: e013 b.n 8004408 <HAL_TIM_Base_MspInit+0x134>
  9156. else if(htim_base->Instance==TIM8)
  9157. 80043e0: 687b ldr r3, [r7, #4]
  9158. 80043e2: 681b ldr r3, [r3, #0]
  9159. 80043e4: 4a0e ldr r2, [pc, #56] @ (8004420 <HAL_TIM_Base_MspInit+0x14c>)
  9160. 80043e6: 4293 cmp r3, r2
  9161. 80043e8: d10e bne.n 8004408 <HAL_TIM_Base_MspInit+0x134>
  9162. __HAL_RCC_TIM8_CLK_ENABLE();
  9163. 80043ea: 4b09 ldr r3, [pc, #36] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9164. 80043ec: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9165. 80043f0: 4a07 ldr r2, [pc, #28] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9166. 80043f2: f043 0302 orr.w r3, r3, #2
  9167. 80043f6: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9168. 80043fa: 4b05 ldr r3, [pc, #20] @ (8004410 <HAL_TIM_Base_MspInit+0x13c>)
  9169. 80043fc: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9170. 8004400: f003 0302 and.w r3, r3, #2
  9171. 8004404: 60bb str r3, [r7, #8]
  9172. 8004406: 68bb ldr r3, [r7, #8]
  9173. }
  9174. 8004408: bf00 nop
  9175. 800440a: 3730 adds r7, #48 @ 0x30
  9176. 800440c: 46bd mov sp, r7
  9177. 800440e: bd80 pop {r7, pc}
  9178. 8004410: 58024400 .word 0x58024400
  9179. 8004414: 58020400 .word 0x58020400
  9180. 8004418: 40000800 .word 0x40000800
  9181. 800441c: 58020c00 .word 0x58020c00
  9182. 8004420: 40010400 .word 0x40010400
  9183. 08004424 <HAL_TIM_MspPostInit>:
  9184. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  9185. {
  9186. 8004424: b580 push {r7, lr}
  9187. 8004426: b08a sub sp, #40 @ 0x28
  9188. 8004428: af00 add r7, sp, #0
  9189. 800442a: 6078 str r0, [r7, #4]
  9190. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9191. 800442c: f107 0314 add.w r3, r7, #20
  9192. 8004430: 2200 movs r2, #0
  9193. 8004432: 601a str r2, [r3, #0]
  9194. 8004434: 605a str r2, [r3, #4]
  9195. 8004436: 609a str r2, [r3, #8]
  9196. 8004438: 60da str r2, [r3, #12]
  9197. 800443a: 611a str r2, [r3, #16]
  9198. if(htim->Instance==TIM1)
  9199. 800443c: 687b ldr r3, [r7, #4]
  9200. 800443e: 681b ldr r3, [r3, #0]
  9201. 8004440: 4a26 ldr r2, [pc, #152] @ (80044dc <HAL_TIM_MspPostInit+0xb8>)
  9202. 8004442: 4293 cmp r3, r2
  9203. 8004444: d120 bne.n 8004488 <HAL_TIM_MspPostInit+0x64>
  9204. {
  9205. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  9206. /* USER CODE END TIM1_MspPostInit 0 */
  9207. __HAL_RCC_GPIOA_CLK_ENABLE();
  9208. 8004446: 4b26 ldr r3, [pc, #152] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9209. 8004448: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9210. 800444c: 4a24 ldr r2, [pc, #144] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9211. 800444e: f043 0301 orr.w r3, r3, #1
  9212. 8004452: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9213. 8004456: 4b22 ldr r3, [pc, #136] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9214. 8004458: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9215. 800445c: f003 0301 and.w r3, r3, #1
  9216. 8004460: 613b str r3, [r7, #16]
  9217. 8004462: 693b ldr r3, [r7, #16]
  9218. /**TIM1 GPIO Configuration
  9219. PA9 ------> TIM1_CH2
  9220. */
  9221. GPIO_InitStruct.Pin = GPIO_PIN_9;
  9222. 8004464: f44f 7300 mov.w r3, #512 @ 0x200
  9223. 8004468: 617b str r3, [r7, #20]
  9224. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9225. 800446a: 2302 movs r3, #2
  9226. 800446c: 61bb str r3, [r7, #24]
  9227. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9228. 800446e: 2300 movs r3, #0
  9229. 8004470: 61fb str r3, [r7, #28]
  9230. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9231. 8004472: 2300 movs r3, #0
  9232. 8004474: 623b str r3, [r7, #32]
  9233. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  9234. 8004476: 2301 movs r3, #1
  9235. 8004478: 627b str r3, [r7, #36] @ 0x24
  9236. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  9237. 800447a: f107 0314 add.w r3, r7, #20
  9238. 800447e: 4619 mov r1, r3
  9239. 8004480: 4818 ldr r0, [pc, #96] @ (80044e4 <HAL_TIM_MspPostInit+0xc0>)
  9240. 8004482: f006 fea7 bl 800b1d4 <HAL_GPIO_Init>
  9241. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  9242. /* USER CODE END TIM3_MspPostInit 1 */
  9243. }
  9244. }
  9245. 8004486: e024 b.n 80044d2 <HAL_TIM_MspPostInit+0xae>
  9246. else if(htim->Instance==TIM3)
  9247. 8004488: 687b ldr r3, [r7, #4]
  9248. 800448a: 681b ldr r3, [r3, #0]
  9249. 800448c: 4a16 ldr r2, [pc, #88] @ (80044e8 <HAL_TIM_MspPostInit+0xc4>)
  9250. 800448e: 4293 cmp r3, r2
  9251. 8004490: d11f bne.n 80044d2 <HAL_TIM_MspPostInit+0xae>
  9252. __HAL_RCC_GPIOC_CLK_ENABLE();
  9253. 8004492: 4b13 ldr r3, [pc, #76] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9254. 8004494: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9255. 8004498: 4a11 ldr r2, [pc, #68] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9256. 800449a: f043 0304 orr.w r3, r3, #4
  9257. 800449e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9258. 80044a2: 4b0f ldr r3, [pc, #60] @ (80044e0 <HAL_TIM_MspPostInit+0xbc>)
  9259. 80044a4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9260. 80044a8: f003 0304 and.w r3, r3, #4
  9261. 80044ac: 60fb str r3, [r7, #12]
  9262. 80044ae: 68fb ldr r3, [r7, #12]
  9263. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  9264. 80044b0: f44f 7370 mov.w r3, #960 @ 0x3c0
  9265. 80044b4: 617b str r3, [r7, #20]
  9266. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9267. 80044b6: 2302 movs r3, #2
  9268. 80044b8: 61bb str r3, [r7, #24]
  9269. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9270. 80044ba: 2300 movs r3, #0
  9271. 80044bc: 61fb str r3, [r7, #28]
  9272. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  9273. 80044be: 2301 movs r3, #1
  9274. 80044c0: 623b str r3, [r7, #32]
  9275. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  9276. 80044c2: 2302 movs r3, #2
  9277. 80044c4: 627b str r3, [r7, #36] @ 0x24
  9278. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  9279. 80044c6: f107 0314 add.w r3, r7, #20
  9280. 80044ca: 4619 mov r1, r3
  9281. 80044cc: 4807 ldr r0, [pc, #28] @ (80044ec <HAL_TIM_MspPostInit+0xc8>)
  9282. 80044ce: f006 fe81 bl 800b1d4 <HAL_GPIO_Init>
  9283. }
  9284. 80044d2: bf00 nop
  9285. 80044d4: 3728 adds r7, #40 @ 0x28
  9286. 80044d6: 46bd mov sp, r7
  9287. 80044d8: bd80 pop {r7, pc}
  9288. 80044da: bf00 nop
  9289. 80044dc: 40010000 .word 0x40010000
  9290. 80044e0: 58024400 .word 0x58024400
  9291. 80044e4: 58020000 .word 0x58020000
  9292. 80044e8: 40000400 .word 0x40000400
  9293. 80044ec: 58020800 .word 0x58020800
  9294. 080044f0 <HAL_UART_MspInit>:
  9295. * This function configures the hardware resources used in this example
  9296. * @param huart: UART handle pointer
  9297. * @retval None
  9298. */
  9299. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  9300. {
  9301. 80044f0: b580 push {r7, lr}
  9302. 80044f2: b0bc sub sp, #240 @ 0xf0
  9303. 80044f4: af00 add r7, sp, #0
  9304. 80044f6: 6078 str r0, [r7, #4]
  9305. GPIO_InitTypeDef GPIO_InitStruct = {0};
  9306. 80044f8: f107 03dc add.w r3, r7, #220 @ 0xdc
  9307. 80044fc: 2200 movs r2, #0
  9308. 80044fe: 601a str r2, [r3, #0]
  9309. 8004500: 605a str r2, [r3, #4]
  9310. 8004502: 609a str r2, [r3, #8]
  9311. 8004504: 60da str r2, [r3, #12]
  9312. 8004506: 611a str r2, [r3, #16]
  9313. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  9314. 8004508: f107 0318 add.w r3, r7, #24
  9315. 800450c: 22c0 movs r2, #192 @ 0xc0
  9316. 800450e: 2100 movs r1, #0
  9317. 8004510: 4618 mov r0, r3
  9318. 8004512: f013 ff01 bl 8018318 <memset>
  9319. if(huart->Instance==UART8)
  9320. 8004516: 687b ldr r3, [r7, #4]
  9321. 8004518: 681b ldr r3, [r3, #0]
  9322. 800451a: 4a55 ldr r2, [pc, #340] @ (8004670 <HAL_UART_MspInit+0x180>)
  9323. 800451c: 4293 cmp r3, r2
  9324. 800451e: d14e bne.n 80045be <HAL_UART_MspInit+0xce>
  9325. /* USER CODE END UART8_MspInit 0 */
  9326. /** Initializes the peripherals clock
  9327. */
  9328. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  9329. 8004520: f04f 0202 mov.w r2, #2
  9330. 8004524: f04f 0300 mov.w r3, #0
  9331. 8004528: e9c7 2306 strd r2, r3, [r7, #24]
  9332. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  9333. 800452c: 2300 movs r3, #0
  9334. 800452e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  9335. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9336. 8004532: f107 0318 add.w r3, r7, #24
  9337. 8004536: 4618 mov r0, r3
  9338. 8004538: f008 fa32 bl 800c9a0 <HAL_RCCEx_PeriphCLKConfig>
  9339. 800453c: 4603 mov r3, r0
  9340. 800453e: 2b00 cmp r3, #0
  9341. 8004540: d001 beq.n 8004546 <HAL_UART_MspInit+0x56>
  9342. {
  9343. Error_Handler();
  9344. 8004542: f7fd fcc3 bl 8001ecc <Error_Handler>
  9345. }
  9346. /* Peripheral clock enable */
  9347. __HAL_RCC_UART8_CLK_ENABLE();
  9348. 8004546: 4b4b ldr r3, [pc, #300] @ (8004674 <HAL_UART_MspInit+0x184>)
  9349. 8004548: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9350. 800454c: 4a49 ldr r2, [pc, #292] @ (8004674 <HAL_UART_MspInit+0x184>)
  9351. 800454e: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  9352. 8004552: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9353. 8004556: 4b47 ldr r3, [pc, #284] @ (8004674 <HAL_UART_MspInit+0x184>)
  9354. 8004558: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9355. 800455c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  9356. 8004560: 617b str r3, [r7, #20]
  9357. 8004562: 697b ldr r3, [r7, #20]
  9358. __HAL_RCC_GPIOE_CLK_ENABLE();
  9359. 8004564: 4b43 ldr r3, [pc, #268] @ (8004674 <HAL_UART_MspInit+0x184>)
  9360. 8004566: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9361. 800456a: 4a42 ldr r2, [pc, #264] @ (8004674 <HAL_UART_MspInit+0x184>)
  9362. 800456c: f043 0310 orr.w r3, r3, #16
  9363. 8004570: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9364. 8004574: 4b3f ldr r3, [pc, #252] @ (8004674 <HAL_UART_MspInit+0x184>)
  9365. 8004576: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9366. 800457a: f003 0310 and.w r3, r3, #16
  9367. 800457e: 613b str r3, [r7, #16]
  9368. 8004580: 693b ldr r3, [r7, #16]
  9369. /**UART8 GPIO Configuration
  9370. PE0 ------> UART8_RX
  9371. PE1 ------> UART8_TX
  9372. */
  9373. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  9374. 8004582: 2303 movs r3, #3
  9375. 8004584: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9376. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9377. 8004588: 2302 movs r3, #2
  9378. 800458a: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9379. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9380. 800458e: 2300 movs r3, #0
  9381. 8004590: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9382. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9383. 8004594: 2300 movs r3, #0
  9384. 8004596: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9385. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  9386. 800459a: 2308 movs r3, #8
  9387. 800459c: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9388. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  9389. 80045a0: f107 03dc add.w r3, r7, #220 @ 0xdc
  9390. 80045a4: 4619 mov r1, r3
  9391. 80045a6: 4834 ldr r0, [pc, #208] @ (8004678 <HAL_UART_MspInit+0x188>)
  9392. 80045a8: f006 fe14 bl 800b1d4 <HAL_GPIO_Init>
  9393. /* UART8 interrupt Init */
  9394. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  9395. 80045ac: 2200 movs r2, #0
  9396. 80045ae: 2105 movs r1, #5
  9397. 80045b0: 2053 movs r0, #83 @ 0x53
  9398. 80045b2: f003 fadd bl 8007b70 <HAL_NVIC_SetPriority>
  9399. HAL_NVIC_EnableIRQ(UART8_IRQn);
  9400. 80045b6: 2053 movs r0, #83 @ 0x53
  9401. 80045b8: f003 faf4 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  9402. /* USER CODE BEGIN USART1_MspInit 1 */
  9403. /* USER CODE END USART1_MspInit 1 */
  9404. }
  9405. }
  9406. 80045bc: e053 b.n 8004666 <HAL_UART_MspInit+0x176>
  9407. else if(huart->Instance==USART1)
  9408. 80045be: 687b ldr r3, [r7, #4]
  9409. 80045c0: 681b ldr r3, [r3, #0]
  9410. 80045c2: 4a2e ldr r2, [pc, #184] @ (800467c <HAL_UART_MspInit+0x18c>)
  9411. 80045c4: 4293 cmp r3, r2
  9412. 80045c6: d14e bne.n 8004666 <HAL_UART_MspInit+0x176>
  9413. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  9414. 80045c8: f04f 0201 mov.w r2, #1
  9415. 80045cc: f04f 0300 mov.w r3, #0
  9416. 80045d0: e9c7 2306 strd r2, r3, [r7, #24]
  9417. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  9418. 80045d4: 2300 movs r3, #0
  9419. 80045d6: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  9420. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  9421. 80045da: f107 0318 add.w r3, r7, #24
  9422. 80045de: 4618 mov r0, r3
  9423. 80045e0: f008 f9de bl 800c9a0 <HAL_RCCEx_PeriphCLKConfig>
  9424. 80045e4: 4603 mov r3, r0
  9425. 80045e6: 2b00 cmp r3, #0
  9426. 80045e8: d001 beq.n 80045ee <HAL_UART_MspInit+0xfe>
  9427. Error_Handler();
  9428. 80045ea: f7fd fc6f bl 8001ecc <Error_Handler>
  9429. __HAL_RCC_USART1_CLK_ENABLE();
  9430. 80045ee: 4b21 ldr r3, [pc, #132] @ (8004674 <HAL_UART_MspInit+0x184>)
  9431. 80045f0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9432. 80045f4: 4a1f ldr r2, [pc, #124] @ (8004674 <HAL_UART_MspInit+0x184>)
  9433. 80045f6: f043 0310 orr.w r3, r3, #16
  9434. 80045fa: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  9435. 80045fe: 4b1d ldr r3, [pc, #116] @ (8004674 <HAL_UART_MspInit+0x184>)
  9436. 8004600: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  9437. 8004604: f003 0310 and.w r3, r3, #16
  9438. 8004608: 60fb str r3, [r7, #12]
  9439. 800460a: 68fb ldr r3, [r7, #12]
  9440. __HAL_RCC_GPIOB_CLK_ENABLE();
  9441. 800460c: 4b19 ldr r3, [pc, #100] @ (8004674 <HAL_UART_MspInit+0x184>)
  9442. 800460e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9443. 8004612: 4a18 ldr r2, [pc, #96] @ (8004674 <HAL_UART_MspInit+0x184>)
  9444. 8004614: f043 0302 orr.w r3, r3, #2
  9445. 8004618: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  9446. 800461c: 4b15 ldr r3, [pc, #84] @ (8004674 <HAL_UART_MspInit+0x184>)
  9447. 800461e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  9448. 8004622: f003 0302 and.w r3, r3, #2
  9449. 8004626: 60bb str r3, [r7, #8]
  9450. 8004628: 68bb ldr r3, [r7, #8]
  9451. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  9452. 800462a: f44f 4340 mov.w r3, #49152 @ 0xc000
  9453. 800462e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  9454. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  9455. 8004632: 2302 movs r3, #2
  9456. 8004634: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  9457. GPIO_InitStruct.Pull = GPIO_NOPULL;
  9458. 8004638: 2300 movs r3, #0
  9459. 800463a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  9460. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  9461. 800463e: 2300 movs r3, #0
  9462. 8004640: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  9463. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  9464. 8004644: 2304 movs r3, #4
  9465. 8004646: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  9466. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  9467. 800464a: f107 03dc add.w r3, r7, #220 @ 0xdc
  9468. 800464e: 4619 mov r1, r3
  9469. 8004650: 480b ldr r0, [pc, #44] @ (8004680 <HAL_UART_MspInit+0x190>)
  9470. 8004652: f006 fdbf bl 800b1d4 <HAL_GPIO_Init>
  9471. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  9472. 8004656: 2200 movs r2, #0
  9473. 8004658: 2105 movs r1, #5
  9474. 800465a: 2025 movs r0, #37 @ 0x25
  9475. 800465c: f003 fa88 bl 8007b70 <HAL_NVIC_SetPriority>
  9476. HAL_NVIC_EnableIRQ(USART1_IRQn);
  9477. 8004660: 2025 movs r0, #37 @ 0x25
  9478. 8004662: f003 fa9f bl 8007ba4 <HAL_NVIC_EnableIRQ>
  9479. }
  9480. 8004666: bf00 nop
  9481. 8004668: 37f0 adds r7, #240 @ 0xf0
  9482. 800466a: 46bd mov sp, r7
  9483. 800466c: bd80 pop {r7, pc}
  9484. 800466e: bf00 nop
  9485. 8004670: 40007c00 .word 0x40007c00
  9486. 8004674: 58024400 .word 0x58024400
  9487. 8004678: 58021000 .word 0x58021000
  9488. 800467c: 40011000 .word 0x40011000
  9489. 8004680: 58020400 .word 0x58020400
  9490. 08004684 <HAL_InitTick>:
  9491. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  9492. * @param TickPriority: Tick interrupt priority.
  9493. * @retval HAL status
  9494. */
  9495. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  9496. {
  9497. 8004684: b580 push {r7, lr}
  9498. 8004686: b090 sub sp, #64 @ 0x40
  9499. 8004688: af00 add r7, sp, #0
  9500. 800468a: 6078 str r0, [r7, #4]
  9501. uint32_t uwTimclock, uwAPB1Prescaler;
  9502. uint32_t uwPrescalerValue;
  9503. uint32_t pFLatency;
  9504. /*Configure the TIM6 IRQ priority */
  9505. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  9506. 800468c: 687b ldr r3, [r7, #4]
  9507. 800468e: 2b0f cmp r3, #15
  9508. 8004690: d827 bhi.n 80046e2 <HAL_InitTick+0x5e>
  9509. {
  9510. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  9511. 8004692: 2200 movs r2, #0
  9512. 8004694: 6879 ldr r1, [r7, #4]
  9513. 8004696: 2036 movs r0, #54 @ 0x36
  9514. 8004698: f003 fa6a bl 8007b70 <HAL_NVIC_SetPriority>
  9515. /* Enable the TIM6 global Interrupt */
  9516. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  9517. 800469c: 2036 movs r0, #54 @ 0x36
  9518. 800469e: f003 fa81 bl 8007ba4 <HAL_NVIC_EnableIRQ>
  9519. uwTickPrio = TickPriority;
  9520. 80046a2: 4a29 ldr r2, [pc, #164] @ (8004748 <HAL_InitTick+0xc4>)
  9521. 80046a4: 687b ldr r3, [r7, #4]
  9522. 80046a6: 6013 str r3, [r2, #0]
  9523. {
  9524. return HAL_ERROR;
  9525. }
  9526. /* Enable TIM6 clock */
  9527. __HAL_RCC_TIM6_CLK_ENABLE();
  9528. 80046a8: 4b28 ldr r3, [pc, #160] @ (800474c <HAL_InitTick+0xc8>)
  9529. 80046aa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9530. 80046ae: 4a27 ldr r2, [pc, #156] @ (800474c <HAL_InitTick+0xc8>)
  9531. 80046b0: f043 0310 orr.w r3, r3, #16
  9532. 80046b4: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  9533. 80046b8: 4b24 ldr r3, [pc, #144] @ (800474c <HAL_InitTick+0xc8>)
  9534. 80046ba: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  9535. 80046be: f003 0310 and.w r3, r3, #16
  9536. 80046c2: 60fb str r3, [r7, #12]
  9537. 80046c4: 68fb ldr r3, [r7, #12]
  9538. /* Get clock configuration */
  9539. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  9540. 80046c6: f107 0210 add.w r2, r7, #16
  9541. 80046ca: f107 0314 add.w r3, r7, #20
  9542. 80046ce: 4611 mov r1, r2
  9543. 80046d0: 4618 mov r0, r3
  9544. 80046d2: f008 f923 bl 800c91c <HAL_RCC_GetClockConfig>
  9545. /* Get APB1 prescaler */
  9546. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  9547. 80046d6: 6abb ldr r3, [r7, #40] @ 0x28
  9548. 80046d8: 63bb str r3, [r7, #56] @ 0x38
  9549. /* Compute TIM6 clock */
  9550. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  9551. 80046da: 6bbb ldr r3, [r7, #56] @ 0x38
  9552. 80046dc: 2b00 cmp r3, #0
  9553. 80046de: d106 bne.n 80046ee <HAL_InitTick+0x6a>
  9554. 80046e0: e001 b.n 80046e6 <HAL_InitTick+0x62>
  9555. return HAL_ERROR;
  9556. 80046e2: 2301 movs r3, #1
  9557. 80046e4: e02b b.n 800473e <HAL_InitTick+0xba>
  9558. {
  9559. uwTimclock = HAL_RCC_GetPCLK1Freq();
  9560. 80046e6: f008 f8ed bl 800c8c4 <HAL_RCC_GetPCLK1Freq>
  9561. 80046ea: 63f8 str r0, [r7, #60] @ 0x3c
  9562. 80046ec: e004 b.n 80046f8 <HAL_InitTick+0x74>
  9563. }
  9564. else
  9565. {
  9566. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  9567. 80046ee: f008 f8e9 bl 800c8c4 <HAL_RCC_GetPCLK1Freq>
  9568. 80046f2: 4603 mov r3, r0
  9569. 80046f4: 005b lsls r3, r3, #1
  9570. 80046f6: 63fb str r3, [r7, #60] @ 0x3c
  9571. }
  9572. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  9573. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  9574. 80046f8: 6bfb ldr r3, [r7, #60] @ 0x3c
  9575. 80046fa: 4a15 ldr r2, [pc, #84] @ (8004750 <HAL_InitTick+0xcc>)
  9576. 80046fc: fba2 2303 umull r2, r3, r2, r3
  9577. 8004700: 0c9b lsrs r3, r3, #18
  9578. 8004702: 3b01 subs r3, #1
  9579. 8004704: 637b str r3, [r7, #52] @ 0x34
  9580. /* Initialize TIM6 */
  9581. htim6.Instance = TIM6;
  9582. 8004706: 4b13 ldr r3, [pc, #76] @ (8004754 <HAL_InitTick+0xd0>)
  9583. 8004708: 4a13 ldr r2, [pc, #76] @ (8004758 <HAL_InitTick+0xd4>)
  9584. 800470a: 601a str r2, [r3, #0]
  9585. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  9586. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  9587. + ClockDivision = 0
  9588. + Counter direction = Up
  9589. */
  9590. htim6.Init.Period = (1000000U / 1000U) - 1U;
  9591. 800470c: 4b11 ldr r3, [pc, #68] @ (8004754 <HAL_InitTick+0xd0>)
  9592. 800470e: f240 32e7 movw r2, #999 @ 0x3e7
  9593. 8004712: 60da str r2, [r3, #12]
  9594. htim6.Init.Prescaler = uwPrescalerValue;
  9595. 8004714: 4a0f ldr r2, [pc, #60] @ (8004754 <HAL_InitTick+0xd0>)
  9596. 8004716: 6b7b ldr r3, [r7, #52] @ 0x34
  9597. 8004718: 6053 str r3, [r2, #4]
  9598. htim6.Init.ClockDivision = 0;
  9599. 800471a: 4b0e ldr r3, [pc, #56] @ (8004754 <HAL_InitTick+0xd0>)
  9600. 800471c: 2200 movs r2, #0
  9601. 800471e: 611a str r2, [r3, #16]
  9602. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  9603. 8004720: 4b0c ldr r3, [pc, #48] @ (8004754 <HAL_InitTick+0xd0>)
  9604. 8004722: 2200 movs r2, #0
  9605. 8004724: 609a str r2, [r3, #8]
  9606. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  9607. 8004726: 480b ldr r0, [pc, #44] @ (8004754 <HAL_InitTick+0xd0>)
  9608. 8004728: f00a fe7e bl 800f428 <HAL_TIM_Base_Init>
  9609. 800472c: 4603 mov r3, r0
  9610. 800472e: 2b00 cmp r3, #0
  9611. 8004730: d104 bne.n 800473c <HAL_InitTick+0xb8>
  9612. {
  9613. /* Start the TIM time Base generation in interrupt mode */
  9614. return HAL_TIM_Base_Start_IT(&htim6);
  9615. 8004732: 4808 ldr r0, [pc, #32] @ (8004754 <HAL_InitTick+0xd0>)
  9616. 8004734: f00a ff40 bl 800f5b8 <HAL_TIM_Base_Start_IT>
  9617. 8004738: 4603 mov r3, r0
  9618. 800473a: e000 b.n 800473e <HAL_InitTick+0xba>
  9619. }
  9620. /* Return function status */
  9621. return HAL_ERROR;
  9622. 800473c: 2301 movs r3, #1
  9623. }
  9624. 800473e: 4618 mov r0, r3
  9625. 8004740: 3740 adds r7, #64 @ 0x40
  9626. 8004742: 46bd mov sp, r7
  9627. 8004744: bd80 pop {r7, pc}
  9628. 8004746: bf00 nop
  9629. 8004748: 2400003c .word 0x2400003c
  9630. 800474c: 58024400 .word 0x58024400
  9631. 8004750: 431bde83 .word 0x431bde83
  9632. 8004754: 24000920 .word 0x24000920
  9633. 8004758: 40001000 .word 0x40001000
  9634. 0800475c <NMI_Handler>:
  9635. /******************************************************************************/
  9636. /**
  9637. * @brief This function handles Non maskable interrupt.
  9638. */
  9639. void NMI_Handler(void)
  9640. {
  9641. 800475c: b480 push {r7}
  9642. 800475e: af00 add r7, sp, #0
  9643. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  9644. /* USER CODE END NonMaskableInt_IRQn 0 */
  9645. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  9646. while (1)
  9647. 8004760: bf00 nop
  9648. 8004762: e7fd b.n 8004760 <NMI_Handler+0x4>
  9649. 08004764 <HardFault_Handler>:
  9650. /**
  9651. * @brief This function handles Hard fault interrupt.
  9652. */
  9653. void HardFault_Handler(void)
  9654. {
  9655. 8004764: b480 push {r7}
  9656. 8004766: af00 add r7, sp, #0
  9657. /* USER CODE BEGIN HardFault_IRQn 0 */
  9658. /* USER CODE END HardFault_IRQn 0 */
  9659. while (1)
  9660. 8004768: bf00 nop
  9661. 800476a: e7fd b.n 8004768 <HardFault_Handler+0x4>
  9662. 0800476c <MemManage_Handler>:
  9663. /**
  9664. * @brief This function handles Memory management fault.
  9665. */
  9666. void MemManage_Handler(void)
  9667. {
  9668. 800476c: b480 push {r7}
  9669. 800476e: af00 add r7, sp, #0
  9670. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  9671. /* USER CODE END MemoryManagement_IRQn 0 */
  9672. while (1)
  9673. 8004770: bf00 nop
  9674. 8004772: e7fd b.n 8004770 <MemManage_Handler+0x4>
  9675. 08004774 <BusFault_Handler>:
  9676. /**
  9677. * @brief This function handles Pre-fetch fault, memory access fault.
  9678. */
  9679. void BusFault_Handler(void)
  9680. {
  9681. 8004774: b480 push {r7}
  9682. 8004776: af00 add r7, sp, #0
  9683. /* USER CODE BEGIN BusFault_IRQn 0 */
  9684. /* USER CODE END BusFault_IRQn 0 */
  9685. while (1)
  9686. 8004778: bf00 nop
  9687. 800477a: e7fd b.n 8004778 <BusFault_Handler+0x4>
  9688. 0800477c <UsageFault_Handler>:
  9689. /**
  9690. * @brief This function handles Undefined instruction or illegal state.
  9691. */
  9692. void UsageFault_Handler(void)
  9693. {
  9694. 800477c: b480 push {r7}
  9695. 800477e: af00 add r7, sp, #0
  9696. /* USER CODE BEGIN UsageFault_IRQn 0 */
  9697. /* USER CODE END UsageFault_IRQn 0 */
  9698. while (1)
  9699. 8004780: bf00 nop
  9700. 8004782: e7fd b.n 8004780 <UsageFault_Handler+0x4>
  9701. 08004784 <DebugMon_Handler>:
  9702. /**
  9703. * @brief This function handles Debug monitor.
  9704. */
  9705. void DebugMon_Handler(void)
  9706. {
  9707. 8004784: b480 push {r7}
  9708. 8004786: af00 add r7, sp, #0
  9709. /* USER CODE END DebugMonitor_IRQn 0 */
  9710. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  9711. /* USER CODE END DebugMonitor_IRQn 1 */
  9712. }
  9713. 8004788: bf00 nop
  9714. 800478a: 46bd mov sp, r7
  9715. 800478c: f85d 7b04 ldr.w r7, [sp], #4
  9716. 8004790: 4770 bx lr
  9717. 08004792 <RCC_IRQHandler>:
  9718. /**
  9719. * @brief This function handles RCC global interrupt.
  9720. */
  9721. void RCC_IRQHandler(void)
  9722. {
  9723. 8004792: b480 push {r7}
  9724. 8004794: af00 add r7, sp, #0
  9725. /* USER CODE END RCC_IRQn 0 */
  9726. /* USER CODE BEGIN RCC_IRQn 1 */
  9727. /* USER CODE END RCC_IRQn 1 */
  9728. }
  9729. 8004796: bf00 nop
  9730. 8004798: 46bd mov sp, r7
  9731. 800479a: f85d 7b04 ldr.w r7, [sp], #4
  9732. 800479e: 4770 bx lr
  9733. 080047a0 <DMA1_Stream0_IRQHandler>:
  9734. /**
  9735. * @brief This function handles DMA1 stream0 global interrupt.
  9736. */
  9737. void DMA1_Stream0_IRQHandler(void)
  9738. {
  9739. 80047a0: b580 push {r7, lr}
  9740. 80047a2: af00 add r7, sp, #0
  9741. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  9742. /* USER CODE END DMA1_Stream0_IRQn 0 */
  9743. HAL_DMA_IRQHandler(&hdma_adc1);
  9744. 80047a4: 4802 ldr r0, [pc, #8] @ (80047b0 <DMA1_Stream0_IRQHandler+0x10>)
  9745. 80047a6: f005 fa03 bl 8009bb0 <HAL_DMA_IRQHandler>
  9746. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  9747. /* USER CODE END DMA1_Stream0_IRQn 1 */
  9748. }
  9749. 80047aa: bf00 nop
  9750. 80047ac: bd80 pop {r7, pc}
  9751. 80047ae: bf00 nop
  9752. 80047b0: 2400024c .word 0x2400024c
  9753. 080047b4 <DMA1_Stream1_IRQHandler>:
  9754. /**
  9755. * @brief This function handles DMA1 stream1 global interrupt.
  9756. */
  9757. void DMA1_Stream1_IRQHandler(void)
  9758. {
  9759. 80047b4: b580 push {r7, lr}
  9760. 80047b6: af00 add r7, sp, #0
  9761. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  9762. /* USER CODE END DMA1_Stream1_IRQn 0 */
  9763. HAL_DMA_IRQHandler(&hdma_adc2);
  9764. 80047b8: 4802 ldr r0, [pc, #8] @ (80047c4 <DMA1_Stream1_IRQHandler+0x10>)
  9765. 80047ba: f005 f9f9 bl 8009bb0 <HAL_DMA_IRQHandler>
  9766. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  9767. /* USER CODE END DMA1_Stream1_IRQn 1 */
  9768. }
  9769. 80047be: bf00 nop
  9770. 80047c0: bd80 pop {r7, pc}
  9771. 80047c2: bf00 nop
  9772. 80047c4: 240002c4 .word 0x240002c4
  9773. 080047c8 <DMA1_Stream2_IRQHandler>:
  9774. /**
  9775. * @brief This function handles DMA1 stream2 global interrupt.
  9776. */
  9777. void DMA1_Stream2_IRQHandler(void)
  9778. {
  9779. 80047c8: b580 push {r7, lr}
  9780. 80047ca: af00 add r7, sp, #0
  9781. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  9782. /* USER CODE END DMA1_Stream2_IRQn 0 */
  9783. HAL_DMA_IRQHandler(&hdma_adc3);
  9784. 80047cc: 4802 ldr r0, [pc, #8] @ (80047d8 <DMA1_Stream2_IRQHandler+0x10>)
  9785. 80047ce: f005 f9ef bl 8009bb0 <HAL_DMA_IRQHandler>
  9786. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  9787. /* USER CODE END DMA1_Stream2_IRQn 1 */
  9788. }
  9789. 80047d2: bf00 nop
  9790. 80047d4: bd80 pop {r7, pc}
  9791. 80047d6: bf00 nop
  9792. 80047d8: 2400033c .word 0x2400033c
  9793. 080047dc <EXTI9_5_IRQHandler>:
  9794. /**
  9795. * @brief This function handles EXTI line[9:5] interrupts.
  9796. */
  9797. void EXTI9_5_IRQHandler(void)
  9798. {
  9799. 80047dc: b580 push {r7, lr}
  9800. 80047de: af00 add r7, sp, #0
  9801. /* USER CODE BEGIN EXTI9_5_IRQn 0 */
  9802. /* USER CODE END EXTI9_5_IRQn 0 */
  9803. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
  9804. 80047e0: f44f 7080 mov.w r0, #256 @ 0x100
  9805. 80047e4: f006 fef1 bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9806. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_9);
  9807. 80047e8: f44f 7000 mov.w r0, #512 @ 0x200
  9808. 80047ec: f006 feed bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9809. /* USER CODE BEGIN EXTI9_5_IRQn 1 */
  9810. /* USER CODE END EXTI9_5_IRQn 1 */
  9811. }
  9812. 80047f0: bf00 nop
  9813. 80047f2: bd80 pop {r7, pc}
  9814. 080047f4 <TIM2_IRQHandler>:
  9815. /**
  9816. * @brief This function handles TIM2 global interrupt.
  9817. */
  9818. void TIM2_IRQHandler(void)
  9819. {
  9820. 80047f4: b580 push {r7, lr}
  9821. 80047f6: af00 add r7, sp, #0
  9822. /* USER CODE BEGIN TIM2_IRQn 0 */
  9823. /* USER CODE END TIM2_IRQn 0 */
  9824. HAL_TIM_IRQHandler(&htim2);
  9825. 80047f8: 4802 ldr r0, [pc, #8] @ (8004804 <TIM2_IRQHandler+0x10>)
  9826. 80047fa: f00b fb03 bl 800fe04 <HAL_TIM_IRQHandler>
  9827. /* USER CODE BEGIN TIM2_IRQn 1 */
  9828. /* USER CODE END TIM2_IRQn 1 */
  9829. }
  9830. 80047fe: bf00 nop
  9831. 8004800: bd80 pop {r7, pc}
  9832. 8004802: bf00 nop
  9833. 8004804: 24000488 .word 0x24000488
  9834. 08004808 <TIM4_IRQHandler>:
  9835. /**
  9836. * @brief This function handles TIM4 global interrupt.
  9837. */
  9838. void TIM4_IRQHandler(void)
  9839. {
  9840. 8004808: b580 push {r7, lr}
  9841. 800480a: af00 add r7, sp, #0
  9842. /* USER CODE BEGIN TIM4_IRQn 0 */
  9843. /* USER CODE END TIM4_IRQn 0 */
  9844. HAL_TIM_IRQHandler(&htim4);
  9845. 800480c: 4802 ldr r0, [pc, #8] @ (8004818 <TIM4_IRQHandler+0x10>)
  9846. 800480e: f00b faf9 bl 800fe04 <HAL_TIM_IRQHandler>
  9847. /* USER CODE BEGIN TIM4_IRQn 1 */
  9848. /* USER CODE END TIM4_IRQn 1 */
  9849. }
  9850. 8004812: bf00 nop
  9851. 8004814: bd80 pop {r7, pc}
  9852. 8004816: bf00 nop
  9853. 8004818: 24000520 .word 0x24000520
  9854. 0800481c <USART1_IRQHandler>:
  9855. /**
  9856. * @brief This function handles USART1 global interrupt.
  9857. */
  9858. void USART1_IRQHandler(void)
  9859. {
  9860. 800481c: b580 push {r7, lr}
  9861. 800481e: af00 add r7, sp, #0
  9862. /* USER CODE BEGIN USART1_IRQn 0 */
  9863. /* USER CODE END USART1_IRQn 0 */
  9864. HAL_UART_IRQHandler(&huart1);
  9865. 8004820: 4802 ldr r0, [pc, #8] @ (800482c <USART1_IRQHandler+0x10>)
  9866. 8004822: f00c feb3 bl 801158c <HAL_UART_IRQHandler>
  9867. /* USER CODE BEGIN USART1_IRQn 1 */
  9868. /* USER CODE END USART1_IRQn 1 */
  9869. }
  9870. 8004826: bf00 nop
  9871. 8004828: bd80 pop {r7, pc}
  9872. 800482a: bf00 nop
  9873. 800482c: 2400064c .word 0x2400064c
  9874. 08004830 <EXTI15_10_IRQHandler>:
  9875. /**
  9876. * @brief This function handles EXTI line[15:10] interrupts.
  9877. */
  9878. void EXTI15_10_IRQHandler(void)
  9879. {
  9880. 8004830: b580 push {r7, lr}
  9881. 8004832: af00 add r7, sp, #0
  9882. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  9883. /* USER CODE END EXTI15_10_IRQn 0 */
  9884. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  9885. 8004834: f44f 6080 mov.w r0, #1024 @ 0x400
  9886. 8004838: f006 fec7 bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9887. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  9888. 800483c: f44f 6000 mov.w r0, #2048 @ 0x800
  9889. 8004840: f006 fec3 bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9890. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_12);
  9891. 8004844: f44f 5080 mov.w r0, #4096 @ 0x1000
  9892. 8004848: f006 febf bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9893. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_13);
  9894. 800484c: f44f 5000 mov.w r0, #8192 @ 0x2000
  9895. 8004850: f006 febb bl 800b5ca <HAL_GPIO_EXTI_IRQHandler>
  9896. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  9897. /* USER CODE END EXTI15_10_IRQn 1 */
  9898. }
  9899. 8004854: bf00 nop
  9900. 8004856: bd80 pop {r7, pc}
  9901. 08004858 <TIM6_DAC_IRQHandler>:
  9902. /**
  9903. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  9904. */
  9905. void TIM6_DAC_IRQHandler(void)
  9906. {
  9907. 8004858: b580 push {r7, lr}
  9908. 800485a: af00 add r7, sp, #0
  9909. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  9910. /* USER CODE END TIM6_DAC_IRQn 0 */
  9911. if (hdac1.State != HAL_DAC_STATE_RESET) {
  9912. 800485c: 4b06 ldr r3, [pc, #24] @ (8004878 <TIM6_DAC_IRQHandler+0x20>)
  9913. 800485e: 791b ldrb r3, [r3, #4]
  9914. 8004860: b2db uxtb r3, r3
  9915. 8004862: 2b00 cmp r3, #0
  9916. 8004864: d002 beq.n 800486c <TIM6_DAC_IRQHandler+0x14>
  9917. HAL_DAC_IRQHandler(&hdac1);
  9918. 8004866: 4804 ldr r0, [pc, #16] @ (8004878 <TIM6_DAC_IRQHandler+0x20>)
  9919. 8004868: f003 fca1 bl 80081ae <HAL_DAC_IRQHandler>
  9920. }
  9921. HAL_TIM_IRQHandler(&htim6);
  9922. 800486c: 4803 ldr r0, [pc, #12] @ (800487c <TIM6_DAC_IRQHandler+0x24>)
  9923. 800486e: f00b fac9 bl 800fe04 <HAL_TIM_IRQHandler>
  9924. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  9925. /* USER CODE END TIM6_DAC_IRQn 1 */
  9926. }
  9927. 8004872: bf00 nop
  9928. 8004874: bd80 pop {r7, pc}
  9929. 8004876: bf00 nop
  9930. 8004878: 24000404 .word 0x24000404
  9931. 800487c: 24000920 .word 0x24000920
  9932. 08004880 <UART8_IRQHandler>:
  9933. /**
  9934. * @brief This function handles UART8 global interrupt.
  9935. */
  9936. void UART8_IRQHandler(void)
  9937. {
  9938. 8004880: b580 push {r7, lr}
  9939. 8004882: af00 add r7, sp, #0
  9940. /* USER CODE BEGIN UART8_IRQn 0 */
  9941. /* USER CODE END UART8_IRQn 0 */
  9942. HAL_UART_IRQHandler(&huart8);
  9943. 8004884: 4802 ldr r0, [pc, #8] @ (8004890 <UART8_IRQHandler+0x10>)
  9944. 8004886: f00c fe81 bl 801158c <HAL_UART_IRQHandler>
  9945. /* USER CODE BEGIN UART8_IRQn 1 */
  9946. /* USER CODE END UART8_IRQn 1 */
  9947. }
  9948. 800488a: bf00 nop
  9949. 800488c: bd80 pop {r7, pc}
  9950. 800488e: bf00 nop
  9951. 8004890: 240005b8 .word 0x240005b8
  9952. 08004894 <SystemInit>:
  9953. * configuration.
  9954. * @param None
  9955. * @retval None
  9956. */
  9957. void SystemInit (void)
  9958. {
  9959. 8004894: b480 push {r7}
  9960. 8004896: af00 add r7, sp, #0
  9961. __IO uint32_t tmpreg;
  9962. #endif /* DATA_IN_D2_SRAM */
  9963. /* FPU settings ------------------------------------------------------------*/
  9964. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9965. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9966. 8004898: 4b37 ldr r3, [pc, #220] @ (8004978 <SystemInit+0xe4>)
  9967. 800489a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9968. 800489e: 4a36 ldr r2, [pc, #216] @ (8004978 <SystemInit+0xe4>)
  9969. 80048a0: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9970. 80048a4: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9971. #endif
  9972. /* Reset the RCC clock configuration to the default reset state ------------*/
  9973. /* Increasing the CPU frequency */
  9974. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9975. 80048a8: 4b34 ldr r3, [pc, #208] @ (800497c <SystemInit+0xe8>)
  9976. 80048aa: 681b ldr r3, [r3, #0]
  9977. 80048ac: f003 030f and.w r3, r3, #15
  9978. 80048b0: 2b06 cmp r3, #6
  9979. 80048b2: d807 bhi.n 80048c4 <SystemInit+0x30>
  9980. {
  9981. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9982. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9983. 80048b4: 4b31 ldr r3, [pc, #196] @ (800497c <SystemInit+0xe8>)
  9984. 80048b6: 681b ldr r3, [r3, #0]
  9985. 80048b8: f023 030f bic.w r3, r3, #15
  9986. 80048bc: 4a2f ldr r2, [pc, #188] @ (800497c <SystemInit+0xe8>)
  9987. 80048be: f043 0307 orr.w r3, r3, #7
  9988. 80048c2: 6013 str r3, [r2, #0]
  9989. }
  9990. /* Set HSION bit */
  9991. RCC->CR |= RCC_CR_HSION;
  9992. 80048c4: 4b2e ldr r3, [pc, #184] @ (8004980 <SystemInit+0xec>)
  9993. 80048c6: 681b ldr r3, [r3, #0]
  9994. 80048c8: 4a2d ldr r2, [pc, #180] @ (8004980 <SystemInit+0xec>)
  9995. 80048ca: f043 0301 orr.w r3, r3, #1
  9996. 80048ce: 6013 str r3, [r2, #0]
  9997. /* Reset CFGR register */
  9998. RCC->CFGR = 0x00000000;
  9999. 80048d0: 4b2b ldr r3, [pc, #172] @ (8004980 <SystemInit+0xec>)
  10000. 80048d2: 2200 movs r2, #0
  10001. 80048d4: 611a str r2, [r3, #16]
  10002. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  10003. RCC->CR &= 0xEAF6ED7FU;
  10004. 80048d6: 4b2a ldr r3, [pc, #168] @ (8004980 <SystemInit+0xec>)
  10005. 80048d8: 681a ldr r2, [r3, #0]
  10006. 80048da: 4929 ldr r1, [pc, #164] @ (8004980 <SystemInit+0xec>)
  10007. 80048dc: 4b29 ldr r3, [pc, #164] @ (8004984 <SystemInit+0xf0>)
  10008. 80048de: 4013 ands r3, r2
  10009. 80048e0: 600b str r3, [r1, #0]
  10010. /* Decreasing the number of wait states because of lower CPU frequency */
  10011. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  10012. 80048e2: 4b26 ldr r3, [pc, #152] @ (800497c <SystemInit+0xe8>)
  10013. 80048e4: 681b ldr r3, [r3, #0]
  10014. 80048e6: f003 0308 and.w r3, r3, #8
  10015. 80048ea: 2b00 cmp r3, #0
  10016. 80048ec: d007 beq.n 80048fe <SystemInit+0x6a>
  10017. {
  10018. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  10019. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  10020. 80048ee: 4b23 ldr r3, [pc, #140] @ (800497c <SystemInit+0xe8>)
  10021. 80048f0: 681b ldr r3, [r3, #0]
  10022. 80048f2: f023 030f bic.w r3, r3, #15
  10023. 80048f6: 4a21 ldr r2, [pc, #132] @ (800497c <SystemInit+0xe8>)
  10024. 80048f8: f043 0307 orr.w r3, r3, #7
  10025. 80048fc: 6013 str r3, [r2, #0]
  10026. }
  10027. #if defined(D3_SRAM_BASE)
  10028. /* Reset D1CFGR register */
  10029. RCC->D1CFGR = 0x00000000;
  10030. 80048fe: 4b20 ldr r3, [pc, #128] @ (8004980 <SystemInit+0xec>)
  10031. 8004900: 2200 movs r2, #0
  10032. 8004902: 619a str r2, [r3, #24]
  10033. /* Reset D2CFGR register */
  10034. RCC->D2CFGR = 0x00000000;
  10035. 8004904: 4b1e ldr r3, [pc, #120] @ (8004980 <SystemInit+0xec>)
  10036. 8004906: 2200 movs r2, #0
  10037. 8004908: 61da str r2, [r3, #28]
  10038. /* Reset D3CFGR register */
  10039. RCC->D3CFGR = 0x00000000;
  10040. 800490a: 4b1d ldr r3, [pc, #116] @ (8004980 <SystemInit+0xec>)
  10041. 800490c: 2200 movs r2, #0
  10042. 800490e: 621a str r2, [r3, #32]
  10043. /* Reset SRDCFGR register */
  10044. RCC->SRDCFGR = 0x00000000;
  10045. #endif
  10046. /* Reset PLLCKSELR register */
  10047. RCC->PLLCKSELR = 0x02020200;
  10048. 8004910: 4b1b ldr r3, [pc, #108] @ (8004980 <SystemInit+0xec>)
  10049. 8004912: 4a1d ldr r2, [pc, #116] @ (8004988 <SystemInit+0xf4>)
  10050. 8004914: 629a str r2, [r3, #40] @ 0x28
  10051. /* Reset PLLCFGR register */
  10052. RCC->PLLCFGR = 0x01FF0000;
  10053. 8004916: 4b1a ldr r3, [pc, #104] @ (8004980 <SystemInit+0xec>)
  10054. 8004918: 4a1c ldr r2, [pc, #112] @ (800498c <SystemInit+0xf8>)
  10055. 800491a: 62da str r2, [r3, #44] @ 0x2c
  10056. /* Reset PLL1DIVR register */
  10057. RCC->PLL1DIVR = 0x01010280;
  10058. 800491c: 4b18 ldr r3, [pc, #96] @ (8004980 <SystemInit+0xec>)
  10059. 800491e: 4a1c ldr r2, [pc, #112] @ (8004990 <SystemInit+0xfc>)
  10060. 8004920: 631a str r2, [r3, #48] @ 0x30
  10061. /* Reset PLL1FRACR register */
  10062. RCC->PLL1FRACR = 0x00000000;
  10063. 8004922: 4b17 ldr r3, [pc, #92] @ (8004980 <SystemInit+0xec>)
  10064. 8004924: 2200 movs r2, #0
  10065. 8004926: 635a str r2, [r3, #52] @ 0x34
  10066. /* Reset PLL2DIVR register */
  10067. RCC->PLL2DIVR = 0x01010280;
  10068. 8004928: 4b15 ldr r3, [pc, #84] @ (8004980 <SystemInit+0xec>)
  10069. 800492a: 4a19 ldr r2, [pc, #100] @ (8004990 <SystemInit+0xfc>)
  10070. 800492c: 639a str r2, [r3, #56] @ 0x38
  10071. /* Reset PLL2FRACR register */
  10072. RCC->PLL2FRACR = 0x00000000;
  10073. 800492e: 4b14 ldr r3, [pc, #80] @ (8004980 <SystemInit+0xec>)
  10074. 8004930: 2200 movs r2, #0
  10075. 8004932: 63da str r2, [r3, #60] @ 0x3c
  10076. /* Reset PLL3DIVR register */
  10077. RCC->PLL3DIVR = 0x01010280;
  10078. 8004934: 4b12 ldr r3, [pc, #72] @ (8004980 <SystemInit+0xec>)
  10079. 8004936: 4a16 ldr r2, [pc, #88] @ (8004990 <SystemInit+0xfc>)
  10080. 8004938: 641a str r2, [r3, #64] @ 0x40
  10081. /* Reset PLL3FRACR register */
  10082. RCC->PLL3FRACR = 0x00000000;
  10083. 800493a: 4b11 ldr r3, [pc, #68] @ (8004980 <SystemInit+0xec>)
  10084. 800493c: 2200 movs r2, #0
  10085. 800493e: 645a str r2, [r3, #68] @ 0x44
  10086. /* Reset HSEBYP bit */
  10087. RCC->CR &= 0xFFFBFFFFU;
  10088. 8004940: 4b0f ldr r3, [pc, #60] @ (8004980 <SystemInit+0xec>)
  10089. 8004942: 681b ldr r3, [r3, #0]
  10090. 8004944: 4a0e ldr r2, [pc, #56] @ (8004980 <SystemInit+0xec>)
  10091. 8004946: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  10092. 800494a: 6013 str r3, [r2, #0]
  10093. /* Disable all interrupts */
  10094. RCC->CIER = 0x00000000;
  10095. 800494c: 4b0c ldr r3, [pc, #48] @ (8004980 <SystemInit+0xec>)
  10096. 800494e: 2200 movs r2, #0
  10097. 8004950: 661a str r2, [r3, #96] @ 0x60
  10098. #if (STM32H7_DEV_ID == 0x450UL)
  10099. /* dual core CM7 or single core line */
  10100. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  10101. 8004952: 4b10 ldr r3, [pc, #64] @ (8004994 <SystemInit+0x100>)
  10102. 8004954: 681a ldr r2, [r3, #0]
  10103. 8004956: 4b10 ldr r3, [pc, #64] @ (8004998 <SystemInit+0x104>)
  10104. 8004958: 4013 ands r3, r2
  10105. 800495a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  10106. 800495e: d202 bcs.n 8004966 <SystemInit+0xd2>
  10107. {
  10108. /* if stm32h7 revY*/
  10109. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  10110. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  10111. 8004960: 4b0e ldr r3, [pc, #56] @ (800499c <SystemInit+0x108>)
  10112. 8004962: 2201 movs r2, #1
  10113. 8004964: 601a str r2, [r3, #0]
  10114. /*
  10115. * Disable the FMC bank1 (enabled after reset).
  10116. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  10117. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  10118. */
  10119. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  10120. 8004966: 4b0e ldr r3, [pc, #56] @ (80049a0 <SystemInit+0x10c>)
  10121. 8004968: f243 02d2 movw r2, #12498 @ 0x30d2
  10122. 800496c: 601a str r2, [r3, #0]
  10123. #if defined(USER_VECT_TAB_ADDRESS)
  10124. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  10125. #endif /* USER_VECT_TAB_ADDRESS */
  10126. #endif /*DUAL_CORE && CORE_CM4*/
  10127. }
  10128. 800496e: bf00 nop
  10129. 8004970: 46bd mov sp, r7
  10130. 8004972: f85d 7b04 ldr.w r7, [sp], #4
  10131. 8004976: 4770 bx lr
  10132. 8004978: e000ed00 .word 0xe000ed00
  10133. 800497c: 52002000 .word 0x52002000
  10134. 8004980: 58024400 .word 0x58024400
  10135. 8004984: eaf6ed7f .word 0xeaf6ed7f
  10136. 8004988: 02020200 .word 0x02020200
  10137. 800498c: 01ff0000 .word 0x01ff0000
  10138. 8004990: 01010280 .word 0x01010280
  10139. 8004994: 5c001000 .word 0x5c001000
  10140. 8004998: ffff0000 .word 0xffff0000
  10141. 800499c: 51008108 .word 0x51008108
  10142. 80049a0: 52004000 .word 0x52004000
  10143. 080049a4 <__NVIC_SystemReset>:
  10144. {
  10145. 80049a4: b480 push {r7}
  10146. 80049a6: af00 add r7, sp, #0
  10147. __ASM volatile ("dsb 0xF":::"memory");
  10148. 80049a8: f3bf 8f4f dsb sy
  10149. }
  10150. 80049ac: bf00 nop
  10151. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  10152. 80049ae: 4b06 ldr r3, [pc, #24] @ (80049c8 <__NVIC_SystemReset+0x24>)
  10153. 80049b0: 68db ldr r3, [r3, #12]
  10154. 80049b2: f403 62e0 and.w r2, r3, #1792 @ 0x700
  10155. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  10156. 80049b6: 4904 ldr r1, [pc, #16] @ (80049c8 <__NVIC_SystemReset+0x24>)
  10157. 80049b8: 4b04 ldr r3, [pc, #16] @ (80049cc <__NVIC_SystemReset+0x28>)
  10158. 80049ba: 4313 orrs r3, r2
  10159. 80049bc: 60cb str r3, [r1, #12]
  10160. __ASM volatile ("dsb 0xF":::"memory");
  10161. 80049be: f3bf 8f4f dsb sy
  10162. }
  10163. 80049c2: bf00 nop
  10164. __NOP();
  10165. 80049c4: bf00 nop
  10166. 80049c6: e7fd b.n 80049c4 <__NVIC_SystemReset+0x20>
  10167. 80049c8: e000ed00 .word 0xe000ed00
  10168. 80049cc: 05fa0004 .word 0x05fa0004
  10169. 080049d0 <UartTasksInit>:
  10170. uint8_t outputDataBuffer[OUTPUT_DATA_BUFF_SIZE];
  10171. uint16_t outputDataBufferPos = 0;
  10172. extern RNG_HandleTypeDef hrng;
  10173. void UartTasksInit (void) {
  10174. 80049d0: b580 push {r7, lr}
  10175. 80049d2: af00 add r7, sp, #0
  10176. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  10177. 80049d4: 4b24 ldr r3, [pc, #144] @ (8004a68 <UartTasksInit+0x98>)
  10178. 80049d6: 4a25 ldr r2, [pc, #148] @ (8004a6c <UartTasksInit+0x9c>)
  10179. 80049d8: 601a str r2, [r3, #0]
  10180. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  10181. 80049da: 4b23 ldr r3, [pc, #140] @ (8004a68 <UartTasksInit+0x98>)
  10182. 80049dc: f44f 7280 mov.w r2, #256 @ 0x100
  10183. 80049e0: 809a strh r2, [r3, #4]
  10184. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  10185. 80049e2: 4b21 ldr r3, [pc, #132] @ (8004a68 <UartTasksInit+0x98>)
  10186. 80049e4: 4a22 ldr r2, [pc, #136] @ (8004a70 <UartTasksInit+0xa0>)
  10187. 80049e6: 609a str r2, [r3, #8]
  10188. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  10189. 80049e8: 4b1f ldr r3, [pc, #124] @ (8004a68 <UartTasksInit+0x98>)
  10190. 80049ea: f44f 7280 mov.w r2, #256 @ 0x100
  10191. 80049ee: 809a strh r2, [r3, #4]
  10192. uart1TaskData.frameData = uart1TaskFrameData;
  10193. 80049f0: 4b1d ldr r3, [pc, #116] @ (8004a68 <UartTasksInit+0x98>)
  10194. 80049f2: 4a20 ldr r2, [pc, #128] @ (8004a74 <UartTasksInit+0xa4>)
  10195. 80049f4: 611a str r2, [r3, #16]
  10196. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  10197. 80049f6: 4b1c ldr r3, [pc, #112] @ (8004a68 <UartTasksInit+0x98>)
  10198. 80049f8: f44f 7280 mov.w r2, #256 @ 0x100
  10199. 80049fc: 829a strh r2, [r3, #20]
  10200. uart1TaskData.huart = &huart1;
  10201. 80049fe: 4b1a ldr r3, [pc, #104] @ (8004a68 <UartTasksInit+0x98>)
  10202. 8004a00: 4a1d ldr r2, [pc, #116] @ (8004a78 <UartTasksInit+0xa8>)
  10203. 8004a02: 631a str r2, [r3, #48] @ 0x30
  10204. uart1TaskData.uartNumber = 1;
  10205. 8004a04: 4b18 ldr r3, [pc, #96] @ (8004a68 <UartTasksInit+0x98>)
  10206. 8004a06: 2201 movs r2, #1
  10207. 8004a08: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10208. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  10209. 8004a0c: 4b16 ldr r3, [pc, #88] @ (8004a68 <UartTasksInit+0x98>)
  10210. 8004a0e: 4a1b ldr r2, [pc, #108] @ (8004a7c <UartTasksInit+0xac>)
  10211. 8004a10: 629a str r2, [r3, #40] @ 0x28
  10212. uart1TaskData.processRxDataMsgBuffer = NULL;
  10213. 8004a12: 4b15 ldr r3, [pc, #84] @ (8004a68 <UartTasksInit+0x98>)
  10214. 8004a14: 2200 movs r2, #0
  10215. 8004a16: 625a str r2, [r3, #36] @ 0x24
  10216. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  10217. 8004a18: 4b19 ldr r3, [pc, #100] @ (8004a80 <UartTasksInit+0xb0>)
  10218. 8004a1a: 4a1a ldr r2, [pc, #104] @ (8004a84 <UartTasksInit+0xb4>)
  10219. 8004a1c: 601a str r2, [r3, #0]
  10220. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  10221. 8004a1e: 4b18 ldr r3, [pc, #96] @ (8004a80 <UartTasksInit+0xb0>)
  10222. 8004a20: f44f 7280 mov.w r2, #256 @ 0x100
  10223. 8004a24: 809a strh r2, [r3, #4]
  10224. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  10225. 8004a26: 4b16 ldr r3, [pc, #88] @ (8004a80 <UartTasksInit+0xb0>)
  10226. 8004a28: 4a17 ldr r2, [pc, #92] @ (8004a88 <UartTasksInit+0xb8>)
  10227. 8004a2a: 609a str r2, [r3, #8]
  10228. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  10229. 8004a2c: 4b14 ldr r3, [pc, #80] @ (8004a80 <UartTasksInit+0xb0>)
  10230. 8004a2e: f44f 7280 mov.w r2, #256 @ 0x100
  10231. 8004a32: 809a strh r2, [r3, #4]
  10232. uart8TaskData.frameData = uart8TaskFrameData;
  10233. 8004a34: 4b12 ldr r3, [pc, #72] @ (8004a80 <UartTasksInit+0xb0>)
  10234. 8004a36: 4a15 ldr r2, [pc, #84] @ (8004a8c <UartTasksInit+0xbc>)
  10235. 8004a38: 611a str r2, [r3, #16]
  10236. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  10237. 8004a3a: 4b11 ldr r3, [pc, #68] @ (8004a80 <UartTasksInit+0xb0>)
  10238. 8004a3c: f44f 7280 mov.w r2, #256 @ 0x100
  10239. 8004a40: 829a strh r2, [r3, #20]
  10240. uart8TaskData.huart = &huart8;
  10241. 8004a42: 4b0f ldr r3, [pc, #60] @ (8004a80 <UartTasksInit+0xb0>)
  10242. 8004a44: 4a12 ldr r2, [pc, #72] @ (8004a90 <UartTasksInit+0xc0>)
  10243. 8004a46: 631a str r2, [r3, #48] @ 0x30
  10244. uart8TaskData.uartNumber = 8;
  10245. 8004a48: 4b0d ldr r3, [pc, #52] @ (8004a80 <UartTasksInit+0xb0>)
  10246. 8004a4a: 2208 movs r2, #8
  10247. 8004a4c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  10248. uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  10249. 8004a50: 4b0b ldr r3, [pc, #44] @ (8004a80 <UartTasksInit+0xb0>)
  10250. 8004a52: 4a10 ldr r2, [pc, #64] @ (8004a94 <UartTasksInit+0xc4>)
  10251. 8004a54: 629a str r2, [r3, #40] @ 0x28
  10252. uart8TaskData.processRxDataMsgBuffer = NULL;
  10253. 8004a56: 4b0a ldr r3, [pc, #40] @ (8004a80 <UartTasksInit+0xb0>)
  10254. 8004a58: 2200 movs r2, #0
  10255. 8004a5a: 625a str r2, [r3, #36] @ 0x24
  10256. #ifdef USE_UART8_INSTEAD_UART1
  10257. UartTaskCreate (&uart8TaskData);
  10258. #else
  10259. UartTaskCreate (&uart1TaskData);
  10260. 8004a5c: 4802 ldr r0, [pc, #8] @ (8004a68 <UartTasksInit+0x98>)
  10261. 8004a5e: f000 f81b bl 8004a98 <UartTaskCreate>
  10262. #endif
  10263. }
  10264. 8004a62: bf00 nop
  10265. 8004a64: bd80 pop {r7, pc}
  10266. 8004a66: bf00 nop
  10267. 8004a68: 24000f6c .word 0x24000f6c
  10268. 8004a6c: 2400096c .word 0x2400096c
  10269. 8004a70: 24000a6c .word 0x24000a6c
  10270. 8004a74: 24000b6c .word 0x24000b6c
  10271. 8004a78: 2400064c .word 0x2400064c
  10272. 8004a7c: 08005141 .word 0x08005141
  10273. 8004a80: 24000fa4 .word 0x24000fa4
  10274. 8004a84: 24000c6c .word 0x24000c6c
  10275. 8004a88: 24000d6c .word 0x24000d6c
  10276. 8004a8c: 24000e6c .word 0x24000e6c
  10277. 8004a90: 240005b8 .word 0x240005b8
  10278. 8004a94: 08005125 .word 0x08005125
  10279. 08004a98 <UartTaskCreate>:
  10280. void UartTaskCreate (UartTaskData* uartTaskData) {
  10281. 8004a98: b580 push {r7, lr}
  10282. 8004a9a: b08c sub sp, #48 @ 0x30
  10283. 8004a9c: af00 add r7, sp, #0
  10284. 8004a9e: 6078 str r0, [r7, #4]
  10285. osThreadAttr_t osThreadAttrRxUart = { 0 };
  10286. 8004aa0: f107 030c add.w r3, r7, #12
  10287. 8004aa4: 2224 movs r2, #36 @ 0x24
  10288. 8004aa6: 2100 movs r1, #0
  10289. 8004aa8: 4618 mov r0, r3
  10290. 8004aaa: f013 fc35 bl 8018318 <memset>
  10291. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  10292. 8004aae: f44f 6380 mov.w r3, #1024 @ 0x400
  10293. 8004ab2: 623b str r3, [r7, #32]
  10294. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  10295. 8004ab4: 2328 movs r3, #40 @ 0x28
  10296. 8004ab6: 627b str r3, [r7, #36] @ 0x24
  10297. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  10298. 8004ab8: f107 030c add.w r3, r7, #12
  10299. 8004abc: 461a mov r2, r3
  10300. 8004abe: 6879 ldr r1, [r7, #4]
  10301. 8004ac0: 4804 ldr r0, [pc, #16] @ (8004ad4 <UartTaskCreate+0x3c>)
  10302. 8004ac2: f00f fad1 bl 8014068 <osThreadNew>
  10303. 8004ac6: 4602 mov r2, r0
  10304. 8004ac8: 687b ldr r3, [r7, #4]
  10305. 8004aca: 619a str r2, [r3, #24]
  10306. }
  10307. 8004acc: bf00 nop
  10308. 8004ace: 3730 adds r7, #48 @ 0x30
  10309. 8004ad0: 46bd mov sp, r7
  10310. 8004ad2: bd80 pop {r7, pc}
  10311. 8004ad4: 08004bed .word 0x08004bed
  10312. 08004ad8 <HAL_UART_RxCpltCallback>:
  10313. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  10314. 8004ad8: b480 push {r7}
  10315. 8004ada: b083 sub sp, #12
  10316. 8004adc: af00 add r7, sp, #0
  10317. 8004ade: 6078 str r0, [r7, #4]
  10318. }
  10319. 8004ae0: bf00 nop
  10320. 8004ae2: 370c adds r7, #12
  10321. 8004ae4: 46bd mov sp, r7
  10322. 8004ae6: f85d 7b04 ldr.w r7, [sp], #4
  10323. 8004aea: 4770 bx lr
  10324. 08004aec <HAL_UARTEx_RxEventCallback>:
  10325. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  10326. 8004aec: b580 push {r7, lr}
  10327. 8004aee: b082 sub sp, #8
  10328. 8004af0: af00 add r7, sp, #0
  10329. 8004af2: 6078 str r0, [r7, #4]
  10330. 8004af4: 460b mov r3, r1
  10331. 8004af6: 807b strh r3, [r7, #2]
  10332. if (huart->Instance == USART1) {
  10333. 8004af8: 687b ldr r3, [r7, #4]
  10334. 8004afa: 681b ldr r3, [r3, #0]
  10335. 8004afc: 4a0c ldr r2, [pc, #48] @ (8004b30 <HAL_UARTEx_RxEventCallback+0x44>)
  10336. 8004afe: 4293 cmp r3, r2
  10337. 8004b00: d106 bne.n 8004b10 <HAL_UARTEx_RxEventCallback+0x24>
  10338. HandleUartRxCallback (&uart1TaskData, huart, Size);
  10339. 8004b02: 887b ldrh r3, [r7, #2]
  10340. 8004b04: 461a mov r2, r3
  10341. 8004b06: 6879 ldr r1, [r7, #4]
  10342. 8004b08: 480a ldr r0, [pc, #40] @ (8004b34 <HAL_UARTEx_RxEventCallback+0x48>)
  10343. 8004b0a: f000 f823 bl 8004b54 <HandleUartRxCallback>
  10344. } else if (huart->Instance == UART8) {
  10345. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10346. }
  10347. }
  10348. 8004b0e: e00a b.n 8004b26 <HAL_UARTEx_RxEventCallback+0x3a>
  10349. } else if (huart->Instance == UART8) {
  10350. 8004b10: 687b ldr r3, [r7, #4]
  10351. 8004b12: 681b ldr r3, [r3, #0]
  10352. 8004b14: 4a08 ldr r2, [pc, #32] @ (8004b38 <HAL_UARTEx_RxEventCallback+0x4c>)
  10353. 8004b16: 4293 cmp r3, r2
  10354. 8004b18: d105 bne.n 8004b26 <HAL_UARTEx_RxEventCallback+0x3a>
  10355. HandleUartRxCallback (&uart8TaskData, huart, Size);
  10356. 8004b1a: 887b ldrh r3, [r7, #2]
  10357. 8004b1c: 461a mov r2, r3
  10358. 8004b1e: 6879 ldr r1, [r7, #4]
  10359. 8004b20: 4806 ldr r0, [pc, #24] @ (8004b3c <HAL_UARTEx_RxEventCallback+0x50>)
  10360. 8004b22: f000 f817 bl 8004b54 <HandleUartRxCallback>
  10361. }
  10362. 8004b26: bf00 nop
  10363. 8004b28: 3708 adds r7, #8
  10364. 8004b2a: 46bd mov sp, r7
  10365. 8004b2c: bd80 pop {r7, pc}
  10366. 8004b2e: bf00 nop
  10367. 8004b30: 40011000 .word 0x40011000
  10368. 8004b34: 24000f6c .word 0x24000f6c
  10369. 8004b38: 40007c00 .word 0x40007c00
  10370. 8004b3c: 24000fa4 .word 0x24000fa4
  10371. 08004b40 <HAL_UART_TxCpltCallback>:
  10372. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  10373. 8004b40: b480 push {r7}
  10374. 8004b42: b083 sub sp, #12
  10375. 8004b44: af00 add r7, sp, #0
  10376. 8004b46: 6078 str r0, [r7, #4]
  10377. if (huart->Instance == UART8) {
  10378. }
  10379. }
  10380. 8004b48: bf00 nop
  10381. 8004b4a: 370c adds r7, #12
  10382. 8004b4c: 46bd mov sp, r7
  10383. 8004b4e: f85d 7b04 ldr.w r7, [sp], #4
  10384. 8004b52: 4770 bx lr
  10385. 08004b54 <HandleUartRxCallback>:
  10386. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  10387. 8004b54: b580 push {r7, lr}
  10388. 8004b56: b088 sub sp, #32
  10389. 8004b58: af02 add r7, sp, #8
  10390. 8004b5a: 60f8 str r0, [r7, #12]
  10391. 8004b5c: 60b9 str r1, [r7, #8]
  10392. 8004b5e: 4613 mov r3, r2
  10393. 8004b60: 80fb strh r3, [r7, #6]
  10394. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  10395. 8004b62: 2300 movs r3, #0
  10396. 8004b64: 617b str r3, [r7, #20]
  10397. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10398. 8004b66: 68fb ldr r3, [r7, #12]
  10399. 8004b68: 6a1b ldr r3, [r3, #32]
  10400. 8004b6a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10401. 8004b6e: 4618 mov r0, r3
  10402. 8004b70: f00f fca5 bl 80144be <osMutexAcquire>
  10403. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  10404. 8004b74: 68fb ldr r3, [r7, #12]
  10405. 8004b76: 691b ldr r3, [r3, #16]
  10406. 8004b78: 68fa ldr r2, [r7, #12]
  10407. 8004b7a: 8ad2 ldrh r2, [r2, #22]
  10408. 8004b7c: 1898 adds r0, r3, r2
  10409. 8004b7e: 68fb ldr r3, [r7, #12]
  10410. 8004b80: 681b ldr r3, [r3, #0]
  10411. 8004b82: 88fa ldrh r2, [r7, #6]
  10412. 8004b84: 4619 mov r1, r3
  10413. 8004b86: f013 fc51 bl 801842c <memcpy>
  10414. uartTaskData->frameBytesCount += Size;
  10415. 8004b8a: 68fb ldr r3, [r7, #12]
  10416. 8004b8c: 8ada ldrh r2, [r3, #22]
  10417. 8004b8e: 88fb ldrh r3, [r7, #6]
  10418. 8004b90: 4413 add r3, r2
  10419. 8004b92: b29a uxth r2, r3
  10420. 8004b94: 68fb ldr r3, [r7, #12]
  10421. 8004b96: 82da strh r2, [r3, #22]
  10422. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10423. 8004b98: 68fb ldr r3, [r7, #12]
  10424. 8004b9a: 6a1b ldr r3, [r3, #32]
  10425. 8004b9c: 4618 mov r0, r3
  10426. 8004b9e: f00f fcd9 bl 8014554 <osMutexRelease>
  10427. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  10428. 8004ba2: 68fb ldr r3, [r7, #12]
  10429. 8004ba4: 6998 ldr r0, [r3, #24]
  10430. 8004ba6: 88f9 ldrh r1, [r7, #6]
  10431. 8004ba8: f107 0314 add.w r3, r7, #20
  10432. 8004bac: 9300 str r3, [sp, #0]
  10433. 8004bae: 2300 movs r3, #0
  10434. 8004bb0: 2203 movs r2, #3
  10435. 8004bb2: f012 f9c9 bl 8016f48 <xTaskGenericNotifyFromISR>
  10436. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10437. 8004bb6: 68fb ldr r3, [r7, #12]
  10438. 8004bb8: 6b18 ldr r0, [r3, #48] @ 0x30
  10439. 8004bba: 68fb ldr r3, [r7, #12]
  10440. 8004bbc: 6819 ldr r1, [r3, #0]
  10441. 8004bbe: 68fb ldr r3, [r7, #12]
  10442. 8004bc0: 889b ldrh r3, [r3, #4]
  10443. 8004bc2: 461a mov r2, r3
  10444. 8004bc4: f00f f923 bl 8013e0e <HAL_UARTEx_ReceiveToIdle_IT>
  10445. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  10446. 8004bc8: 697b ldr r3, [r7, #20]
  10447. 8004bca: 2b00 cmp r3, #0
  10448. 8004bcc: d007 beq.n 8004bde <HandleUartRxCallback+0x8a>
  10449. 8004bce: 4b06 ldr r3, [pc, #24] @ (8004be8 <HandleUartRxCallback+0x94>)
  10450. 8004bd0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  10451. 8004bd4: 601a str r2, [r3, #0]
  10452. 8004bd6: f3bf 8f4f dsb sy
  10453. 8004bda: f3bf 8f6f isb sy
  10454. }
  10455. 8004bde: bf00 nop
  10456. 8004be0: 3718 adds r7, #24
  10457. 8004be2: 46bd mov sp, r7
  10458. 8004be4: bd80 pop {r7, pc}
  10459. 8004be6: bf00 nop
  10460. 8004be8: e000ed04 .word 0xe000ed04
  10461. 08004bec <UartRxTask>:
  10462. void UartRxTask (void* argument) {
  10463. 8004bec: b580 push {r7, lr}
  10464. 8004bee: b0d2 sub sp, #328 @ 0x148
  10465. 8004bf0: af02 add r7, sp, #8
  10466. 8004bf2: f507 73a0 add.w r3, r7, #320 @ 0x140
  10467. 8004bf6: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10468. 8004bfa: 6018 str r0, [r3, #0]
  10469. UartTaskData* uartTaskData = (UartTaskData*)argument;
  10470. 8004bfc: f507 73a0 add.w r3, r7, #320 @ 0x140
  10471. 8004c00: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10472. 8004c04: 681b ldr r3, [r3, #0]
  10473. 8004c06: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10474. SerialProtocolFrameData spFrameData = { 0 };
  10475. 8004c0a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10476. 8004c0e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10477. 8004c12: 4618 mov r0, r3
  10478. 8004c14: f44f 7386 mov.w r3, #268 @ 0x10c
  10479. 8004c18: 461a mov r2, r3
  10480. 8004c1a: 2100 movs r1, #0
  10481. 8004c1c: f013 fb7c bl 8018318 <memset>
  10482. uint32_t bytesRec = 0;
  10483. 8004c20: f507 73a0 add.w r3, r7, #320 @ 0x140
  10484. 8004c24: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10485. 8004c28: 2200 movs r2, #0
  10486. 8004c2a: 601a str r2, [r3, #0]
  10487. uint32_t crc = 0;
  10488. 8004c2c: 2300 movs r3, #0
  10489. 8004c2e: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  10490. uint16_t frameCommandRaw = 0x0000;
  10491. 8004c32: 2300 movs r3, #0
  10492. 8004c34: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10493. uint16_t frameBytesCount = 0;
  10494. 8004c38: 2300 movs r3, #0
  10495. 8004c3a: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10496. uint16_t frameCrc = 0;
  10497. 8004c3e: 2300 movs r3, #0
  10498. 8004c40: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10499. uint16_t frameTotalLength = 0;
  10500. 8004c44: 2300 movs r3, #0
  10501. 8004c46: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10502. uint16_t dataToSend = 0;
  10503. 8004c4a: 2300 movs r3, #0
  10504. 8004c4c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10505. portBASE_TYPE crcPass = pdFAIL;
  10506. 8004c50: 2300 movs r3, #0
  10507. 8004c52: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10508. portBASE_TYPE proceed = pdFALSE;
  10509. 8004c56: 2300 movs r3, #0
  10510. 8004c58: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10511. portBASE_TYPE frameTimeout = pdFAIL;
  10512. 8004c5c: 2300 movs r3, #0
  10513. 8004c5e: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10514. enum SerialReceiverStates receverState = srWaitForHeader;
  10515. 8004c62: 2300 movs r3, #0
  10516. 8004c64: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10517. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  10518. 8004c68: 2000 movs r0, #0
  10519. 8004c6a: f00f fba2 bl 80143b2 <osMutexNew>
  10520. 8004c6e: 4602 mov r2, r0
  10521. 8004c70: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10522. 8004c74: 621a str r2, [r3, #32]
  10523. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10524. 8004c76: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10525. 8004c7a: 6b18 ldr r0, [r3, #48] @ 0x30
  10526. 8004c7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10527. 8004c80: 6819 ldr r1, [r3, #0]
  10528. 8004c82: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10529. 8004c86: 889b ldrh r3, [r3, #4]
  10530. 8004c88: 461a mov r2, r3
  10531. 8004c8a: f00f f8c0 bl 8013e0e <HAL_UARTEx_ReceiveToIdle_IT>
  10532. while (pdTRUE) {
  10533. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10534. 8004c8e: f107 020c add.w r2, r7, #12
  10535. 8004c92: f44f 63fa mov.w r3, #2000 @ 0x7d0
  10536. 8004c96: 2100 movs r1, #0
  10537. 8004c98: 2000 movs r0, #0
  10538. 8004c9a: f012 f833 bl 8016d04 <xTaskNotifyWait>
  10539. 8004c9e: 4603 mov r3, r0
  10540. 8004ca0: 2b00 cmp r3, #0
  10541. 8004ca2: bf0c ite eq
  10542. 8004ca4: 2301 moveq r3, #1
  10543. 8004ca6: 2300 movne r3, #0
  10544. 8004ca8: b2db uxtb r3, r3
  10545. 8004caa: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  10546. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10547. 8004cae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10548. 8004cb2: 6a1b ldr r3, [r3, #32]
  10549. 8004cb4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10550. 8004cb8: 4618 mov r0, r3
  10551. 8004cba: f00f fc00 bl 80144be <osMutexAcquire>
  10552. frameBytesCount = uartTaskData->frameBytesCount;
  10553. 8004cbe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10554. 8004cc2: 8adb ldrh r3, [r3, #22]
  10555. 8004cc4: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  10556. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10557. 8004cc8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10558. 8004ccc: 6a1b ldr r3, [r3, #32]
  10559. 8004cce: 4618 mov r0, r3
  10560. 8004cd0: f00f fc40 bl 8014554 <osMutexRelease>
  10561. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  10562. 8004cd4: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10563. 8004cd8: 2b01 cmp r3, #1
  10564. 8004cda: d10a bne.n 8004cf2 <UartRxTask+0x106>
  10565. 8004cdc: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10566. 8004ce0: 2b00 cmp r3, #0
  10567. 8004ce2: d006 beq.n 8004cf2 <UartRxTask+0x106>
  10568. receverState = srFail;
  10569. 8004ce4: 2304 movs r3, #4
  10570. 8004ce6: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10571. proceed = pdTRUE;
  10572. 8004cea: 2301 movs r3, #1
  10573. 8004cec: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10574. 8004cf0: e01b b.n 8004d2a <UartRxTask+0x13e>
  10575. } else {
  10576. if (frameTimeout == pdFALSE) {
  10577. 8004cf2: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10578. 8004cf6: 2b00 cmp r3, #0
  10579. 8004cf8: d103 bne.n 8004d02 <UartRxTask+0x116>
  10580. proceed = pdTRUE;
  10581. 8004cfa: 2301 movs r3, #1
  10582. 8004cfc: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10583. 8004d00: e206 b.n 8005110 <UartRxTask+0x524>
  10584. #ifdef SERIAL_PROTOCOL_DBG
  10585. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  10586. #endif
  10587. } else {
  10588. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  10589. 8004d02: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10590. 8004d06: 6b1b ldr r3, [r3, #48] @ 0x30
  10591. 8004d08: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  10592. 8004d0c: 2b20 cmp r3, #32
  10593. 8004d0e: f040 81ff bne.w 8005110 <UartRxTask+0x524>
  10594. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  10595. 8004d12: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10596. 8004d16: 6b18 ldr r0, [r3, #48] @ 0x30
  10597. 8004d18: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10598. 8004d1c: 6819 ldr r1, [r3, #0]
  10599. 8004d1e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10600. 8004d22: 889b ldrh r3, [r3, #4]
  10601. 8004d24: 461a mov r2, r3
  10602. 8004d26: f00f f872 bl 8013e0e <HAL_UARTEx_ReceiveToIdle_IT>
  10603. }
  10604. }
  10605. }
  10606. while (proceed) {
  10607. 8004d2a: e1f1 b.n 8005110 <UartRxTask+0x524>
  10608. switch (receverState) {
  10609. 8004d2c: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  10610. 8004d30: 2b04 cmp r3, #4
  10611. 8004d32: f200 81c8 bhi.w 80050c6 <UartRxTask+0x4da>
  10612. 8004d36: a201 add r2, pc, #4 @ (adr r2, 8004d3c <UartRxTask+0x150>)
  10613. 8004d38: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10614. 8004d3c: 08004d51 .word 0x08004d51
  10615. 8004d40: 08004eb3 .word 0x08004eb3
  10616. 8004d44: 08004e97 .word 0x08004e97
  10617. 8004d48: 08004f43 .word 0x08004f43
  10618. 8004d4c: 08004fef .word 0x08004fef
  10619. case srWaitForHeader:
  10620. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10621. 8004d50: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10622. 8004d54: 6a1b ldr r3, [r3, #32]
  10623. 8004d56: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10624. 8004d5a: 4618 mov r0, r3
  10625. 8004d5c: f00f fbaf bl 80144be <osMutexAcquire>
  10626. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  10627. 8004d60: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10628. 8004d64: 691b ldr r3, [r3, #16]
  10629. 8004d66: 781b ldrb r3, [r3, #0]
  10630. 8004d68: 2baa cmp r3, #170 @ 0xaa
  10631. 8004d6a: f040 8082 bne.w 8004e72 <UartRxTask+0x286>
  10632. if (frameBytesCount > FRAME_ID_LENGTH) {
  10633. 8004d6e: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10634. 8004d72: 2b02 cmp r3, #2
  10635. 8004d74: d914 bls.n 8004da0 <UartRxTask+0x1b4>
  10636. spFrameData.frameHeader.frameId =
  10637. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  10638. 8004d76: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10639. 8004d7a: 691b ldr r3, [r3, #16]
  10640. 8004d7c: 3302 adds r3, #2
  10641. 8004d7e: 781b ldrb r3, [r3, #0]
  10642. 8004d80: 021b lsls r3, r3, #8
  10643. 8004d82: b21a sxth r2, r3
  10644. 8004d84: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10645. 8004d88: 691b ldr r3, [r3, #16]
  10646. 8004d8a: 3301 adds r3, #1
  10647. 8004d8c: 781b ldrb r3, [r3, #0]
  10648. 8004d8e: b21b sxth r3, r3
  10649. 8004d90: 4313 orrs r3, r2
  10650. 8004d92: b21b sxth r3, r3
  10651. 8004d94: b29a uxth r2, r3
  10652. spFrameData.frameHeader.frameId =
  10653. 8004d96: f507 73a0 add.w r3, r7, #320 @ 0x140
  10654. 8004d9a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10655. 8004d9e: 801a strh r2, [r3, #0]
  10656. }
  10657. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  10658. 8004da0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10659. 8004da4: 2b04 cmp r3, #4
  10660. 8004da6: d923 bls.n 8004df0 <UartRxTask+0x204>
  10661. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  10662. 8004da8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10663. 8004dac: 691b ldr r3, [r3, #16]
  10664. 8004dae: 3304 adds r3, #4
  10665. 8004db0: 781b ldrb r3, [r3, #0]
  10666. 8004db2: 021b lsls r3, r3, #8
  10667. 8004db4: b21a sxth r2, r3
  10668. 8004db6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10669. 8004dba: 691b ldr r3, [r3, #16]
  10670. 8004dbc: 3303 adds r3, #3
  10671. 8004dbe: 781b ldrb r3, [r3, #0]
  10672. 8004dc0: b21b sxth r3, r3
  10673. 8004dc2: 4313 orrs r3, r2
  10674. 8004dc4: b21b sxth r3, r3
  10675. 8004dc6: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10676. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  10677. 8004dca: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  10678. 8004dce: b2da uxtb r2, r3
  10679. 8004dd0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10680. 8004dd4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10681. 8004dd8: 709a strb r2, [r3, #2]
  10682. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  10683. 8004dda: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  10684. 8004dde: 13db asrs r3, r3, #15
  10685. 8004de0: b21b sxth r3, r3
  10686. 8004de2: f003 0201 and.w r2, r3, #1
  10687. 8004de6: f507 73a0 add.w r3, r7, #320 @ 0x140
  10688. 8004dea: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10689. 8004dee: 609a str r2, [r3, #8]
  10690. }
  10691. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  10692. 8004df0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10693. 8004df4: 2b05 cmp r3, #5
  10694. 8004df6: d913 bls.n 8004e20 <UartRxTask+0x234>
  10695. 8004df8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10696. 8004dfc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10697. 8004e00: 789b ldrb r3, [r3, #2]
  10698. 8004e02: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10699. 8004e06: 2b00 cmp r3, #0
  10700. 8004e08: d00a beq.n 8004e20 <UartRxTask+0x234>
  10701. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10702. 8004e0a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10703. 8004e0e: 691b ldr r3, [r3, #16]
  10704. 8004e10: 3305 adds r3, #5
  10705. 8004e12: 781b ldrb r3, [r3, #0]
  10706. 8004e14: b25a sxtb r2, r3
  10707. 8004e16: f507 73a0 add.w r3, r7, #320 @ 0x140
  10708. 8004e1a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10709. 8004e1e: 70da strb r2, [r3, #3]
  10710. }
  10711. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10712. 8004e20: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10713. 8004e24: 2b07 cmp r3, #7
  10714. 8004e26: d920 bls.n 8004e6a <UartRxTask+0x27e>
  10715. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10716. 8004e28: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10717. 8004e2c: 691b ldr r3, [r3, #16]
  10718. 8004e2e: 3306 adds r3, #6
  10719. 8004e30: 781b ldrb r3, [r3, #0]
  10720. 8004e32: 021b lsls r3, r3, #8
  10721. 8004e34: b21a sxth r2, r3
  10722. 8004e36: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10723. 8004e3a: 691b ldr r3, [r3, #16]
  10724. 8004e3c: 3305 adds r3, #5
  10725. 8004e3e: 781b ldrb r3, [r3, #0]
  10726. 8004e40: b21b sxth r3, r3
  10727. 8004e42: 4313 orrs r3, r2
  10728. 8004e44: b21b sxth r3, r3
  10729. 8004e46: b29a uxth r2, r3
  10730. 8004e48: f507 73a0 add.w r3, r7, #320 @ 0x140
  10731. 8004e4c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10732. 8004e50: 809a strh r2, [r3, #4]
  10733. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10734. 8004e52: f507 73a0 add.w r3, r7, #320 @ 0x140
  10735. 8004e56: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10736. 8004e5a: 889b ldrh r3, [r3, #4]
  10737. 8004e5c: 330a adds r3, #10
  10738. 8004e5e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10739. receverState = srRecieveData;
  10740. 8004e62: 2302 movs r3, #2
  10741. 8004e64: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10742. 8004e68: e00e b.n 8004e88 <UartRxTask+0x29c>
  10743. } else {
  10744. proceed = pdFALSE;
  10745. 8004e6a: 2300 movs r3, #0
  10746. 8004e6c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10747. 8004e70: e00a b.n 8004e88 <UartRxTask+0x29c>
  10748. }
  10749. } else {
  10750. if (frameBytesCount > 0) {
  10751. 8004e72: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10752. 8004e76: 2b00 cmp r3, #0
  10753. 8004e78: d003 beq.n 8004e82 <UartRxTask+0x296>
  10754. receverState = srFail;
  10755. 8004e7a: 2304 movs r3, #4
  10756. 8004e7c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10757. 8004e80: e002 b.n 8004e88 <UartRxTask+0x29c>
  10758. } else {
  10759. proceed = pdFALSE;
  10760. 8004e82: 2300 movs r3, #0
  10761. 8004e84: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10762. }
  10763. }
  10764. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10765. 8004e88: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10766. 8004e8c: 6a1b ldr r3, [r3, #32]
  10767. 8004e8e: 4618 mov r0, r3
  10768. 8004e90: f00f fb60 bl 8014554 <osMutexRelease>
  10769. break;
  10770. 8004e94: e13c b.n 8005110 <UartRxTask+0x524>
  10771. case srRecieveData:
  10772. if (frameBytesCount >= frameTotalLength) {
  10773. 8004e96: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10774. 8004e9a: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10775. 8004e9e: 429a cmp r2, r3
  10776. 8004ea0: d303 bcc.n 8004eaa <UartRxTask+0x2be>
  10777. receverState = srCheckCrc;
  10778. 8004ea2: 2301 movs r3, #1
  10779. 8004ea4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10780. } else {
  10781. proceed = pdFALSE;
  10782. }
  10783. break;
  10784. 8004ea8: e132 b.n 8005110 <UartRxTask+0x524>
  10785. proceed = pdFALSE;
  10786. 8004eaa: 2300 movs r3, #0
  10787. 8004eac: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10788. break;
  10789. 8004eb0: e12e b.n 8005110 <UartRxTask+0x524>
  10790. case srCheckCrc:
  10791. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10792. 8004eb2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10793. 8004eb6: 6a1b ldr r3, [r3, #32]
  10794. 8004eb8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10795. 8004ebc: 4618 mov r0, r3
  10796. 8004ebe: f00f fafe bl 80144be <osMutexAcquire>
  10797. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10798. 8004ec2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10799. 8004ec6: 691a ldr r2, [r3, #16]
  10800. 8004ec8: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10801. 8004ecc: 3b01 subs r3, #1
  10802. 8004ece: 4413 add r3, r2
  10803. 8004ed0: 781b ldrb r3, [r3, #0]
  10804. 8004ed2: 021b lsls r3, r3, #8
  10805. 8004ed4: b21a sxth r2, r3
  10806. 8004ed6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10807. 8004eda: 6919 ldr r1, [r3, #16]
  10808. 8004edc: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10809. 8004ee0: 3b02 subs r3, #2
  10810. 8004ee2: 440b add r3, r1
  10811. 8004ee4: 781b ldrb r3, [r3, #0]
  10812. 8004ee6: b21b sxth r3, r3
  10813. 8004ee8: 4313 orrs r3, r2
  10814. 8004eea: b21b sxth r3, r3
  10815. 8004eec: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10816. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10817. 8004ef0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10818. 8004ef4: 6919 ldr r1, [r3, #16]
  10819. 8004ef6: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10820. 8004efa: 3b02 subs r3, #2
  10821. 8004efc: 461a mov r2, r3
  10822. 8004efe: 4887 ldr r0, [pc, #540] @ (800511c <UartRxTask+0x530>)
  10823. 8004f00: f002 ff3a bl 8007d78 <HAL_CRC_Calculate>
  10824. 8004f04: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10825. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10826. 8004f08: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10827. 8004f0c: 6a1b ldr r3, [r3, #32]
  10828. 8004f0e: 4618 mov r0, r3
  10829. 8004f10: f00f fb20 bl 8014554 <osMutexRelease>
  10830. crcPass = frameCrc == crc;
  10831. 8004f14: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10832. 8004f18: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10833. 8004f1c: 429a cmp r2, r3
  10834. 8004f1e: bf0c ite eq
  10835. 8004f20: 2301 moveq r3, #1
  10836. 8004f22: 2300 movne r3, #0
  10837. 8004f24: b2db uxtb r3, r3
  10838. 8004f26: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10839. if (crcPass) {
  10840. 8004f2a: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10841. 8004f2e: 2b00 cmp r3, #0
  10842. 8004f30: d003 beq.n 8004f3a <UartRxTask+0x34e>
  10843. #ifdef SERIAL_PROTOCOL_DBG
  10844. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10845. #endif
  10846. receverState = srExecuteCmd;
  10847. 8004f32: 2303 movs r3, #3
  10848. 8004f34: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10849. } else {
  10850. receverState = srFail;
  10851. }
  10852. break;
  10853. 8004f38: e0ea b.n 8005110 <UartRxTask+0x524>
  10854. receverState = srFail;
  10855. 8004f3a: 2304 movs r3, #4
  10856. 8004f3c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10857. break;
  10858. 8004f40: e0e6 b.n 8005110 <UartRxTask+0x524>
  10859. case srExecuteCmd:
  10860. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10861. 8004f42: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10862. 8004f46: 6a9b ldr r3, [r3, #40] @ 0x28
  10863. 8004f48: 2b00 cmp r3, #0
  10864. 8004f4a: d104 bne.n 8004f56 <UartRxTask+0x36a>
  10865. 8004f4c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10866. 8004f50: 6a5b ldr r3, [r3, #36] @ 0x24
  10867. 8004f52: 2b00 cmp r3, #0
  10868. 8004f54: d01e beq.n 8004f94 <UartRxTask+0x3a8>
  10869. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10870. 8004f56: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10871. 8004f5a: 6a1b ldr r3, [r3, #32]
  10872. 8004f5c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10873. 8004f60: 4618 mov r0, r3
  10874. 8004f62: f00f faac bl 80144be <osMutexAcquire>
  10875. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10876. 8004f66: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10877. 8004f6a: 691b ldr r3, [r3, #16]
  10878. 8004f6c: f103 0108 add.w r1, r3, #8
  10879. 8004f70: f507 73a0 add.w r3, r7, #320 @ 0x140
  10880. 8004f74: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10881. 8004f78: 889b ldrh r3, [r3, #4]
  10882. 8004f7a: 461a mov r2, r3
  10883. 8004f7c: f107 0310 add.w r3, r7, #16
  10884. 8004f80: 330c adds r3, #12
  10885. 8004f82: 4618 mov r0, r3
  10886. 8004f84: f013 fa52 bl 801842c <memcpy>
  10887. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10888. 8004f88: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10889. 8004f8c: 6a1b ldr r3, [r3, #32]
  10890. 8004f8e: 4618 mov r0, r3
  10891. 8004f90: f00f fae0 bl 8014554 <osMutexRelease>
  10892. }
  10893. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10894. 8004f94: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10895. 8004f98: 6a5b ldr r3, [r3, #36] @ 0x24
  10896. 8004f9a: 2b00 cmp r3, #0
  10897. 8004f9c: d015 beq.n 8004fca <UartRxTask+0x3de>
  10898. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10899. 8004f9e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10900. 8004fa2: 6a58 ldr r0, [r3, #36] @ 0x24
  10901. 8004fa4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10902. 8004fa8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10903. 8004fac: 889b ldrh r3, [r3, #4]
  10904. 8004fae: f103 020c add.w r2, r3, #12
  10905. 8004fb2: f107 0110 add.w r1, r7, #16
  10906. 8004fb6: 23c8 movs r3, #200 @ 0xc8
  10907. 8004fb8: f010 fcee bl 8015998 <xStreamBufferSend>
  10908. 8004fbc: 4603 mov r3, r0
  10909. 8004fbe: 2b00 cmp r3, #0
  10910. 8004fc0: d103 bne.n 8004fca <UartRxTask+0x3de>
  10911. receverState = srFail;
  10912. 8004fc2: 2304 movs r3, #4
  10913. 8004fc4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10914. break;
  10915. 8004fc8: e0a2 b.n 8005110 <UartRxTask+0x524>
  10916. }
  10917. }
  10918. if (uartTaskData->processDataCb != NULL) {
  10919. 8004fca: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10920. 8004fce: 6a9b ldr r3, [r3, #40] @ 0x28
  10921. 8004fd0: 2b00 cmp r3, #0
  10922. 8004fd2: d008 beq.n 8004fe6 <UartRxTask+0x3fa>
  10923. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10924. 8004fd4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10925. 8004fd8: 6a9b ldr r3, [r3, #40] @ 0x28
  10926. 8004fda: f107 0210 add.w r2, r7, #16
  10927. 8004fde: 4611 mov r1, r2
  10928. 8004fe0: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10929. 8004fe4: 4798 blx r3
  10930. }
  10931. receverState = srFinish;
  10932. 8004fe6: 2305 movs r3, #5
  10933. 8004fe8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10934. break;
  10935. 8004fec: e090 b.n 8005110 <UartRxTask+0x524>
  10936. case srFail:
  10937. dataToSend = 0;
  10938. 8004fee: 2300 movs r3, #0
  10939. 8004ff0: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10940. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10941. 8004ff4: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10942. 8004ff8: 2b01 cmp r3, #1
  10943. 8004ffa: d11c bne.n 8005036 <UartRxTask+0x44a>
  10944. 8004ffc: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10945. 8005000: 2b02 cmp r3, #2
  10946. 8005002: d918 bls.n 8005036 <UartRxTask+0x44a>
  10947. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10948. 8005004: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10949. 8005008: 6898 ldr r0, [r3, #8]
  10950. 800500a: f507 73a0 add.w r3, r7, #320 @ 0x140
  10951. 800500e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10952. 8005012: 8819 ldrh r1, [r3, #0]
  10953. 8005014: f507 73a0 add.w r3, r7, #320 @ 0x140
  10954. 8005018: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10955. 800501c: 789a ldrb r2, [r3, #2]
  10956. 800501e: 2300 movs r3, #0
  10957. 8005020: 9301 str r3, [sp, #4]
  10958. 8005022: 2300 movs r3, #0
  10959. 8005024: 9300 str r3, [sp, #0]
  10960. 8005026: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10961. 800502a: f7fe fd57 bl 8003adc <PrepareRespFrame>
  10962. 800502e: 4603 mov r3, r0
  10963. 8005030: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10964. 8005034: e034 b.n 80050a0 <UartRxTask+0x4b4>
  10965. #ifdef SERIAL_PROTOCOL_DBG
  10966. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10967. #endif
  10968. } else if (!crcPass) {
  10969. 8005036: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10970. 800503a: 2b00 cmp r3, #0
  10971. 800503c: d118 bne.n 8005070 <UartRxTask+0x484>
  10972. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10973. 800503e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10974. 8005042: 6898 ldr r0, [r3, #8]
  10975. 8005044: f507 73a0 add.w r3, r7, #320 @ 0x140
  10976. 8005048: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10977. 800504c: 8819 ldrh r1, [r3, #0]
  10978. 800504e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10979. 8005052: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10980. 8005056: 789a ldrb r2, [r3, #2]
  10981. 8005058: 2300 movs r3, #0
  10982. 800505a: 9301 str r3, [sp, #4]
  10983. 800505c: 2300 movs r3, #0
  10984. 800505e: 9300 str r3, [sp, #0]
  10985. 8005060: f06f 0301 mvn.w r3, #1
  10986. 8005064: f7fe fd3a bl 8003adc <PrepareRespFrame>
  10987. 8005068: 4603 mov r3, r0
  10988. 800506a: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10989. 800506e: e017 b.n 80050a0 <UartRxTask+0x4b4>
  10990. #ifdef SERIAL_PROTOCOL_DBG
  10991. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10992. #endif
  10993. } else {
  10994. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10995. 8005070: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10996. 8005074: 6898 ldr r0, [r3, #8]
  10997. 8005076: f507 73a0 add.w r3, r7, #320 @ 0x140
  10998. 800507a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10999. 800507e: 8819 ldrh r1, [r3, #0]
  11000. 8005080: f507 73a0 add.w r3, r7, #320 @ 0x140
  11001. 8005084: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11002. 8005088: 789a ldrb r2, [r3, #2]
  11003. 800508a: 2300 movs r3, #0
  11004. 800508c: 9301 str r3, [sp, #4]
  11005. 800508e: 2300 movs r3, #0
  11006. 8005090: 9300 str r3, [sp, #0]
  11007. 8005092: f06f 0303 mvn.w r3, #3
  11008. 8005096: f7fe fd21 bl 8003adc <PrepareRespFrame>
  11009. 800509a: 4603 mov r3, r0
  11010. 800509c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  11011. }
  11012. if (dataToSend > 0) {
  11013. 80050a0: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  11014. 80050a4: 2b00 cmp r3, #0
  11015. 80050a6: d00a beq.n 80050be <UartRxTask+0x4d2>
  11016. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11017. 80050a8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11018. 80050ac: 6b18 ldr r0, [r3, #48] @ 0x30
  11019. 80050ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11020. 80050b2: 689b ldr r3, [r3, #8]
  11021. 80050b4: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  11022. 80050b8: 4619 mov r1, r3
  11023. 80050ba: f00c f9d3 bl 8011464 <HAL_UART_Transmit_IT>
  11024. }
  11025. #ifdef SERIAL_PROTOCOL_DBG
  11026. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  11027. #endif
  11028. receverState = srFinish;
  11029. 80050be: 2305 movs r3, #5
  11030. 80050c0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11031. break;
  11032. 80050c4: e024 b.n 8005110 <UartRxTask+0x524>
  11033. case srFinish:
  11034. default:
  11035. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  11036. 80050c6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11037. 80050ca: 6a1b ldr r3, [r3, #32]
  11038. 80050cc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11039. 80050d0: 4618 mov r0, r3
  11040. 80050d2: f00f f9f4 bl 80144be <osMutexAcquire>
  11041. uartTaskData->frameBytesCount = 0;
  11042. 80050d6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11043. 80050da: 2200 movs r2, #0
  11044. 80050dc: 82da strh r2, [r3, #22]
  11045. osMutexRelease (uartTaskData->rxDataBufferMutex);
  11046. 80050de: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  11047. 80050e2: 6a1b ldr r3, [r3, #32]
  11048. 80050e4: 4618 mov r0, r3
  11049. 80050e6: f00f fa35 bl 8014554 <osMutexRelease>
  11050. spFrameData.frameHeader.frameCommand = spUnknown;
  11051. 80050ea: f507 73a0 add.w r3, r7, #320 @ 0x140
  11052. 80050ee: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  11053. 80050f2: 2212 movs r2, #18
  11054. 80050f4: 709a strb r2, [r3, #2]
  11055. frameTotalLength = 0;
  11056. 80050f6: 2300 movs r3, #0
  11057. 80050f8: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  11058. outputDataBufferPos = 0;
  11059. 80050fc: 4b08 ldr r3, [pc, #32] @ (8005120 <UartRxTask+0x534>)
  11060. 80050fe: 2200 movs r2, #0
  11061. 8005100: 801a strh r2, [r3, #0]
  11062. receverState = srWaitForHeader;
  11063. 8005102: 2300 movs r3, #0
  11064. 8005104: f887 3133 strb.w r3, [r7, #307] @ 0x133
  11065. proceed = pdFALSE;
  11066. 8005108: 2300 movs r3, #0
  11067. 800510a: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  11068. break;
  11069. 800510e: bf00 nop
  11070. while (proceed) {
  11071. 8005110: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  11072. 8005114: 2b00 cmp r3, #0
  11073. 8005116: f47f ae09 bne.w 8004d2c <UartRxTask+0x140>
  11074. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  11075. 800511a: e5b8 b.n 8004c8e <UartRxTask+0xa2>
  11076. 800511c: 240003e0 .word 0x240003e0
  11077. 8005120: 2400105c .word 0x2400105c
  11078. 08005124 <Uart8ReceivedDataProcessCallback>:
  11079. }
  11080. }
  11081. }
  11082. }
  11083. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11084. 8005124: b580 push {r7, lr}
  11085. 8005126: b082 sub sp, #8
  11086. 8005128: af00 add r7, sp, #0
  11087. 800512a: 6078 str r0, [r7, #4]
  11088. 800512c: 6039 str r1, [r7, #0]
  11089. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  11090. 800512e: 6839 ldr r1, [r7, #0]
  11091. 8005130: 6878 ldr r0, [r7, #4]
  11092. 8005132: f000 f805 bl 8005140 <Uart1ReceivedDataProcessCallback>
  11093. }
  11094. 8005136: bf00 nop
  11095. 8005138: 3708 adds r7, #8
  11096. 800513a: 46bd mov sp, r7
  11097. 800513c: bd80 pop {r7, pc}
  11098. ...
  11099. 08005140 <Uart1ReceivedDataProcessCallback>:
  11100. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  11101. 8005140: b590 push {r4, r7, lr}
  11102. 8005142: b0ad sub sp, #180 @ 0xb4
  11103. 8005144: af06 add r7, sp, #24
  11104. 8005146: 6078 str r0, [r7, #4]
  11105. 8005148: 6039 str r1, [r7, #0]
  11106. UartTaskData* uartTaskData = (UartTaskData*)arg;
  11107. 800514a: 687b ldr r3, [r7, #4]
  11108. 800514c: 677b str r3, [r7, #116] @ 0x74
  11109. uint16_t dataToSend = 0;
  11110. 800514e: 2300 movs r3, #0
  11111. 8005150: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  11112. outputDataBufferPos = 0;
  11113. 8005154: 4b64 ldr r3, [pc, #400] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11114. 8005156: 2200 movs r2, #0
  11115. 8005158: 801a strh r2, [r3, #0]
  11116. uint16_t inputDataBufferPos = 0;
  11117. 800515a: 2300 movs r3, #0
  11118. 800515c: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  11119. SerialProtocolRespStatus respStatus = spUnknownCommand;
  11120. 8005160: 23fd movs r3, #253 @ 0xfd
  11121. 8005162: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11122. switch (spFrameData->frameHeader.frameCommand) {
  11123. 8005166: 683b ldr r3, [r7, #0]
  11124. 8005168: 789b ldrb r3, [r3, #2]
  11125. 800516a: 2b11 cmp r3, #17
  11126. 800516c: f200 85a2 bhi.w 8005cb4 <Uart1ReceivedDataProcessCallback+0xb74>
  11127. 8005170: a201 add r2, pc, #4 @ (adr r2, 8005178 <Uart1ReceivedDataProcessCallback+0x38>)
  11128. 8005172: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  11129. 8005176: bf00 nop
  11130. 8005178: 080051c1 .word 0x080051c1
  11131. 800517c: 080052f9 .word 0x080052f9
  11132. 8005180: 08005473 .word 0x08005473
  11133. 8005184: 080055a9 .word 0x080055a9
  11134. 8005188: 0800564b .word 0x0800564b
  11135. 800518c: 08005769 .word 0x08005769
  11136. 8005190: 080057bf .word 0x080057bf
  11137. 8005194: 080056ed .word 0x080056ed
  11138. 8005198: 08005815 .word 0x08005815
  11139. 800519c: 080058b5 .word 0x080058b5
  11140. 80051a0: 08005901 .word 0x08005901
  11141. 80051a4: 0800594d .word 0x0800594d
  11142. 80051a8: 080059af .word 0x080059af
  11143. 80051ac: 08005a13 .word 0x08005a13
  11144. 80051b0: 08005a75 .word 0x08005a75
  11145. 80051b4: 08005ad9 .word 0x08005ad9
  11146. 80051b8: 08005ae1 .word 0x08005ae1
  11147. 80051bc: 08005be5 .word 0x08005be5
  11148. case spGetElectricalMeasurments:
  11149. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11150. 80051c0: 4b4a ldr r3, [pc, #296] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1ac>)
  11151. 80051c2: 681b ldr r3, [r3, #0]
  11152. 80051c4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11153. 80051c8: 4618 mov r0, r3
  11154. 80051ca: f00f f978 bl 80144be <osMutexAcquire>
  11155. 80051ce: 4603 mov r3, r0
  11156. 80051d0: 2b00 cmp r3, #0
  11157. 80051d2: f040 8083 bne.w 80052dc <Uart1ReceivedDataProcessCallback+0x19c>
  11158. for (int i = 0; i < 3; i++) {
  11159. 80051d6: 2300 movs r3, #0
  11160. 80051d8: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11161. 80051dc: e00e b.n 80051fc <Uart1ReceivedDataProcessCallback+0xbc>
  11162. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  11163. 80051de: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11164. 80051e2: 009b lsls r3, r3, #2
  11165. 80051e4: 4a42 ldr r2, [pc, #264] @ (80052f0 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11166. 80051e6: 441a add r2, r3
  11167. 80051e8: 2304 movs r3, #4
  11168. 80051ea: 493f ldr r1, [pc, #252] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11169. 80051ec: 4841 ldr r0, [pc, #260] @ (80052f4 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11170. 80051ee: f7fe fbdb bl 80039a8 <WriteDataToBuffer>
  11171. for (int i = 0; i < 3; i++) {
  11172. 80051f2: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11173. 80051f6: 3301 adds r3, #1
  11174. 80051f8: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  11175. 80051fc: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  11176. 8005200: 2b02 cmp r3, #2
  11177. 8005202: ddec ble.n 80051de <Uart1ReceivedDataProcessCallback+0x9e>
  11178. }
  11179. for (int i = 0; i < 3; i++) {
  11180. 8005204: 2300 movs r3, #0
  11181. 8005206: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11182. 800520a: e010 b.n 800522e <Uart1ReceivedDataProcessCallback+0xee>
  11183. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  11184. 800520c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11185. 8005210: 3302 adds r3, #2
  11186. 8005212: 009b lsls r3, r3, #2
  11187. 8005214: 4a36 ldr r2, [pc, #216] @ (80052f0 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11188. 8005216: 4413 add r3, r2
  11189. 8005218: 1d1a adds r2, r3, #4
  11190. 800521a: 2304 movs r3, #4
  11191. 800521c: 4932 ldr r1, [pc, #200] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11192. 800521e: 4835 ldr r0, [pc, #212] @ (80052f4 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11193. 8005220: f7fe fbc2 bl 80039a8 <WriteDataToBuffer>
  11194. for (int i = 0; i < 3; i++) {
  11195. 8005224: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11196. 8005228: 3301 adds r3, #1
  11197. 800522a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  11198. 800522e: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  11199. 8005232: 2b02 cmp r3, #2
  11200. 8005234: ddea ble.n 800520c <Uart1ReceivedDataProcessCallback+0xcc>
  11201. }
  11202. for (int i = 0; i < 3; i++) {
  11203. 8005236: 2300 movs r3, #0
  11204. 8005238: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11205. 800523c: e00f b.n 800525e <Uart1ReceivedDataProcessCallback+0x11e>
  11206. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  11207. 800523e: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11208. 8005242: 3306 adds r3, #6
  11209. 8005244: 009b lsls r3, r3, #2
  11210. 8005246: 4a2a ldr r2, [pc, #168] @ (80052f0 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11211. 8005248: 441a add r2, r3
  11212. 800524a: 2304 movs r3, #4
  11213. 800524c: 4926 ldr r1, [pc, #152] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11214. 800524e: 4829 ldr r0, [pc, #164] @ (80052f4 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11215. 8005250: f7fe fbaa bl 80039a8 <WriteDataToBuffer>
  11216. for (int i = 0; i < 3; i++) {
  11217. 8005254: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11218. 8005258: 3301 adds r3, #1
  11219. 800525a: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  11220. 800525e: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  11221. 8005262: 2b02 cmp r3, #2
  11222. 8005264: ddeb ble.n 800523e <Uart1ReceivedDataProcessCallback+0xfe>
  11223. }
  11224. for (int i = 0; i < 3; i++) {
  11225. 8005266: 2300 movs r3, #0
  11226. 8005268: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11227. 800526c: e010 b.n 8005290 <Uart1ReceivedDataProcessCallback+0x150>
  11228. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  11229. 800526e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11230. 8005272: 3308 adds r3, #8
  11231. 8005274: 009b lsls r3, r3, #2
  11232. 8005276: 4a1e ldr r2, [pc, #120] @ (80052f0 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11233. 8005278: 4413 add r3, r2
  11234. 800527a: 1d1a adds r2, r3, #4
  11235. 800527c: 2304 movs r3, #4
  11236. 800527e: 491a ldr r1, [pc, #104] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11237. 8005280: 481c ldr r0, [pc, #112] @ (80052f4 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11238. 8005282: f7fe fb91 bl 80039a8 <WriteDataToBuffer>
  11239. for (int i = 0; i < 3; i++) {
  11240. 8005286: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11241. 800528a: 3301 adds r3, #1
  11242. 800528c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  11243. 8005290: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  11244. 8005294: 2b02 cmp r3, #2
  11245. 8005296: ddea ble.n 800526e <Uart1ReceivedDataProcessCallback+0x12e>
  11246. }
  11247. for (int i = 0; i < 3; i++) {
  11248. 8005298: 2300 movs r3, #0
  11249. 800529a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11250. 800529e: e00f b.n 80052c0 <Uart1ReceivedDataProcessCallback+0x180>
  11251. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  11252. 80052a0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11253. 80052a4: 330c adds r3, #12
  11254. 80052a6: 009b lsls r3, r3, #2
  11255. 80052a8: 4a11 ldr r2, [pc, #68] @ (80052f0 <Uart1ReceivedDataProcessCallback+0x1b0>)
  11256. 80052aa: 441a add r2, r3
  11257. 80052ac: 2304 movs r3, #4
  11258. 80052ae: 490e ldr r1, [pc, #56] @ (80052e8 <Uart1ReceivedDataProcessCallback+0x1a8>)
  11259. 80052b0: 4810 ldr r0, [pc, #64] @ (80052f4 <Uart1ReceivedDataProcessCallback+0x1b4>)
  11260. 80052b2: f7fe fb79 bl 80039a8 <WriteDataToBuffer>
  11261. for (int i = 0; i < 3; i++) {
  11262. 80052b6: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11263. 80052ba: 3301 adds r3, #1
  11264. 80052bc: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  11265. 80052c0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  11266. 80052c4: 2b02 cmp r3, #2
  11267. 80052c6: ddeb ble.n 80052a0 <Uart1ReceivedDataProcessCallback+0x160>
  11268. }
  11269. osMutexRelease (resMeasurementsMutex);
  11270. 80052c8: 4b08 ldr r3, [pc, #32] @ (80052ec <Uart1ReceivedDataProcessCallback+0x1ac>)
  11271. 80052ca: 681b ldr r3, [r3, #0]
  11272. 80052cc: 4618 mov r0, r3
  11273. 80052ce: f00f f941 bl 8014554 <osMutexRelease>
  11274. respStatus = spOK;
  11275. 80052d2: 2300 movs r3, #0
  11276. 80052d4: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11277. } else {
  11278. respStatus = spInternalError;
  11279. }
  11280. break;
  11281. 80052d8: f000 bcf3 b.w 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11282. respStatus = spInternalError;
  11283. 80052dc: 23fc movs r3, #252 @ 0xfc
  11284. 80052de: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11285. break;
  11286. 80052e2: f000 bcee b.w 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11287. 80052e6: bf00 nop
  11288. 80052e8: 2400105c .word 0x2400105c
  11289. 80052ec: 24000818 .word 0x24000818
  11290. 80052f0: 24000824 .word 0x24000824
  11291. 80052f4: 24000fdc .word 0x24000fdc
  11292. case spGetSensorMeasurments:
  11293. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11294. 80052f8: 4b8d ldr r3, [pc, #564] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11295. 80052fa: 681b ldr r3, [r3, #0]
  11296. 80052fc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11297. 8005300: 4618 mov r0, r3
  11298. 8005302: f00f f8dc bl 80144be <osMutexAcquire>
  11299. 8005306: 4603 mov r3, r0
  11300. 8005308: 2b00 cmp r3, #0
  11301. 800530a: f040 80ad bne.w 8005468 <Uart1ReceivedDataProcessCallback+0x328>
  11302. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  11303. 800530e: 2304 movs r3, #4
  11304. 8005310: 4a88 ldr r2, [pc, #544] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3f4>)
  11305. 8005312: 4989 ldr r1, [pc, #548] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11306. 8005314: 4889 ldr r0, [pc, #548] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11307. 8005316: f7fe fb47 bl 80039a8 <WriteDataToBuffer>
  11308. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  11309. 800531a: 2304 movs r3, #4
  11310. 800531c: 4a88 ldr r2, [pc, #544] @ (8005540 <Uart1ReceivedDataProcessCallback+0x400>)
  11311. 800531e: 4986 ldr r1, [pc, #536] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11312. 8005320: 4886 ldr r0, [pc, #536] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11313. 8005322: f7fe fb41 bl 80039a8 <WriteDataToBuffer>
  11314. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  11315. 8005326: 2304 movs r3, #4
  11316. 8005328: 4a86 ldr r2, [pc, #536] @ (8005544 <Uart1ReceivedDataProcessCallback+0x404>)
  11317. 800532a: 4983 ldr r1, [pc, #524] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11318. 800532c: 4883 ldr r0, [pc, #524] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11319. 800532e: f7fe fb3b bl 80039a8 <WriteDataToBuffer>
  11320. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  11321. 8005332: 2304 movs r3, #4
  11322. 8005334: 4a84 ldr r2, [pc, #528] @ (8005548 <Uart1ReceivedDataProcessCallback+0x408>)
  11323. 8005336: 4980 ldr r1, [pc, #512] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11324. 8005338: 4880 ldr r0, [pc, #512] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11325. 800533a: f7fe fb35 bl 80039a8 <WriteDataToBuffer>
  11326. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  11327. 800533e: 2304 movs r3, #4
  11328. 8005340: 4a82 ldr r2, [pc, #520] @ (800554c <Uart1ReceivedDataProcessCallback+0x40c>)
  11329. 8005342: 497d ldr r1, [pc, #500] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11330. 8005344: 487d ldr r0, [pc, #500] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11331. 8005346: f7fe fb2f bl 80039a8 <WriteDataToBuffer>
  11332. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  11333. 800534a: 2301 movs r3, #1
  11334. 800534c: 4a80 ldr r2, [pc, #512] @ (8005550 <Uart1ReceivedDataProcessCallback+0x410>)
  11335. 800534e: 497a ldr r1, [pc, #488] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11336. 8005350: 487a ldr r0, [pc, #488] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11337. 8005352: f7fe fb29 bl 80039a8 <WriteDataToBuffer>
  11338. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  11339. 8005356: 2301 movs r3, #1
  11340. 8005358: 4a7e ldr r2, [pc, #504] @ (8005554 <Uart1ReceivedDataProcessCallback+0x414>)
  11341. 800535a: 4977 ldr r1, [pc, #476] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11342. 800535c: 4877 ldr r0, [pc, #476] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11343. 800535e: f7fe fb23 bl 80039a8 <WriteDataToBuffer>
  11344. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  11345. 8005362: 2304 movs r3, #4
  11346. 8005364: 4a7c ldr r2, [pc, #496] @ (8005558 <Uart1ReceivedDataProcessCallback+0x418>)
  11347. 8005366: 4974 ldr r1, [pc, #464] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11348. 8005368: 4874 ldr r0, [pc, #464] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11349. 800536a: f7fe fb1d bl 80039a8 <WriteDataToBuffer>
  11350. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  11351. 800536e: 2304 movs r3, #4
  11352. 8005370: 4a7a ldr r2, [pc, #488] @ (800555c <Uart1ReceivedDataProcessCallback+0x41c>)
  11353. 8005372: 4971 ldr r1, [pc, #452] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11354. 8005374: 4871 ldr r0, [pc, #452] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11355. 8005376: f7fe fb17 bl 80039a8 <WriteDataToBuffer>
  11356. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  11357. 800537a: 2304 movs r3, #4
  11358. 800537c: 4a78 ldr r2, [pc, #480] @ (8005560 <Uart1ReceivedDataProcessCallback+0x420>)
  11359. 800537e: 496e ldr r1, [pc, #440] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11360. 8005380: 486e ldr r0, [pc, #440] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11361. 8005382: f7fe fb11 bl 80039a8 <WriteDataToBuffer>
  11362. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  11363. 8005386: 2304 movs r3, #4
  11364. 8005388: 4a76 ldr r2, [pc, #472] @ (8005564 <Uart1ReceivedDataProcessCallback+0x424>)
  11365. 800538a: 496b ldr r1, [pc, #428] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11366. 800538c: 486b ldr r0, [pc, #428] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11367. 800538e: f7fe fb0b bl 80039a8 <WriteDataToBuffer>
  11368. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  11369. 8005392: 2301 movs r3, #1
  11370. 8005394: 4a74 ldr r2, [pc, #464] @ (8005568 <Uart1ReceivedDataProcessCallback+0x428>)
  11371. 8005396: 4968 ldr r1, [pc, #416] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11372. 8005398: 4868 ldr r0, [pc, #416] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11373. 800539a: f7fe fb05 bl 80039a8 <WriteDataToBuffer>
  11374. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  11375. 800539e: 2301 movs r3, #1
  11376. 80053a0: 4a72 ldr r2, [pc, #456] @ (800556c <Uart1ReceivedDataProcessCallback+0x42c>)
  11377. 80053a2: 4965 ldr r1, [pc, #404] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11378. 80053a4: 4865 ldr r0, [pc, #404] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11379. 80053a6: f7fe faff bl 80039a8 <WriteDataToBuffer>
  11380. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  11381. 80053aa: 2301 movs r3, #1
  11382. 80053ac: 4a70 ldr r2, [pc, #448] @ (8005570 <Uart1ReceivedDataProcessCallback+0x430>)
  11383. 80053ae: 4962 ldr r1, [pc, #392] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11384. 80053b0: 4862 ldr r0, [pc, #392] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11385. 80053b2: f7fe faf9 bl 80039a8 <WriteDataToBuffer>
  11386. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  11387. 80053b6: 2301 movs r3, #1
  11388. 80053b8: 4a6e ldr r2, [pc, #440] @ (8005574 <Uart1ReceivedDataProcessCallback+0x434>)
  11389. 80053ba: 495f ldr r1, [pc, #380] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11390. 80053bc: 485f ldr r0, [pc, #380] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11391. 80053be: f7fe faf3 bl 80039a8 <WriteDataToBuffer>
  11392. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  11393. 80053c2: 2301 movs r3, #1
  11394. 80053c4: 4a6c ldr r2, [pc, #432] @ (8005578 <Uart1ReceivedDataProcessCallback+0x438>)
  11395. 80053c6: 495c ldr r1, [pc, #368] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11396. 80053c8: 485c ldr r0, [pc, #368] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11397. 80053ca: f7fe faed bl 80039a8 <WriteDataToBuffer>
  11398. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  11399. 80053ce: 2301 movs r3, #1
  11400. 80053d0: 4a6a ldr r2, [pc, #424] @ (800557c <Uart1ReceivedDataProcessCallback+0x43c>)
  11401. 80053d2: 4959 ldr r1, [pc, #356] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11402. 80053d4: 4859 ldr r0, [pc, #356] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11403. 80053d6: f7fe fae7 bl 80039a8 <WriteDataToBuffer>
  11404. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  11405. 80053da: 4869 ldr r0, [pc, #420] @ (8005580 <Uart1ReceivedDataProcessCallback+0x440>)
  11406. 80053dc: f002 faf2 bl 80079c4 <HAL_COMP_GetOutputLevel>
  11407. 80053e0: 4603 mov r3, r0
  11408. 80053e2: 2b01 cmp r3, #1
  11409. 80053e4: bf0c ite eq
  11410. 80053e6: 2301 moveq r3, #1
  11411. 80053e8: 2300 movne r3, #0
  11412. 80053ea: b2db uxtb r3, r3
  11413. 80053ec: f887 3047 strb.w r3, [r7, #71] @ 0x47
  11414. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  11415. 80053f0: f897 3047 ldrb.w r3, [r7, #71] @ 0x47
  11416. 80053f4: 005c lsls r4, r3, #1
  11417. 80053f6: 2108 movs r1, #8
  11418. 80053f8: 4862 ldr r0, [pc, #392] @ (8005584 <Uart1ReceivedDataProcessCallback+0x444>)
  11419. 80053fa: f006 f89b bl 800b534 <HAL_GPIO_ReadPin>
  11420. 80053fe: 4603 mov r3, r0
  11421. 8005400: 4323 orrs r3, r4
  11422. 8005402: f003 0301 and.w r3, r3, #1
  11423. 8005406: 2b00 cmp r3, #0
  11424. 8005408: bf0c ite eq
  11425. 800540a: 2301 moveq r3, #1
  11426. 800540c: 2300 movne r3, #0
  11427. 800540e: b2db uxtb r3, r3
  11428. 8005410: 461a mov r2, r3
  11429. 8005412: 4b48 ldr r3, [pc, #288] @ (8005534 <Uart1ReceivedDataProcessCallback+0x3f4>)
  11430. 8005414: f883 202e strb.w r2, [r3, #46] @ 0x2e
  11431. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  11432. 8005418: 2301 movs r3, #1
  11433. 800541a: 4a5b ldr r2, [pc, #364] @ (8005588 <Uart1ReceivedDataProcessCallback+0x448>)
  11434. 800541c: 4946 ldr r1, [pc, #280] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11435. 800541e: 4847 ldr r0, [pc, #284] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11436. 8005420: f7fe fac2 bl 80039a8 <WriteDataToBuffer>
  11437. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentXPosition, sizeof (float));
  11438. 8005424: 2304 movs r3, #4
  11439. 8005426: 4a59 ldr r2, [pc, #356] @ (800558c <Uart1ReceivedDataProcessCallback+0x44c>)
  11440. 8005428: 4943 ldr r1, [pc, #268] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11441. 800542a: 4844 ldr r0, [pc, #272] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11442. 800542c: f7fe fabc bl 80039a8 <WriteDataToBuffer>
  11443. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentYPosition, sizeof (float));
  11444. 8005430: 2304 movs r3, #4
  11445. 8005432: 4a57 ldr r2, [pc, #348] @ (8005590 <Uart1ReceivedDataProcessCallback+0x450>)
  11446. 8005434: 4940 ldr r1, [pc, #256] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11447. 8005436: 4841 ldr r0, [pc, #260] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11448. 8005438: f7fe fab6 bl 80039a8 <WriteDataToBuffer>
  11449. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionXWeak, sizeof (uint8_t));
  11450. 800543c: 2301 movs r3, #1
  11451. 800543e: 4a55 ldr r2, [pc, #340] @ (8005594 <Uart1ReceivedDataProcessCallback+0x454>)
  11452. 8005440: 493d ldr r1, [pc, #244] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11453. 8005442: 483e ldr r0, [pc, #248] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11454. 8005444: f7fe fab0 bl 80039a8 <WriteDataToBuffer>
  11455. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionYWeak, sizeof (uint8_t));
  11456. 8005448: 2301 movs r3, #1
  11457. 800544a: 4a53 ldr r2, [pc, #332] @ (8005598 <Uart1ReceivedDataProcessCallback+0x458>)
  11458. 800544c: 493a ldr r1, [pc, #232] @ (8005538 <Uart1ReceivedDataProcessCallback+0x3f8>)
  11459. 800544e: 483b ldr r0, [pc, #236] @ (800553c <Uart1ReceivedDataProcessCallback+0x3fc>)
  11460. 8005450: f7fe faaa bl 80039a8 <WriteDataToBuffer>
  11461. osMutexRelease (sensorsInfoMutex);
  11462. 8005454: 4b36 ldr r3, [pc, #216] @ (8005530 <Uart1ReceivedDataProcessCallback+0x3f0>)
  11463. 8005456: 681b ldr r3, [r3, #0]
  11464. 8005458: 4618 mov r0, r3
  11465. 800545a: f00f f87b bl 8014554 <osMutexRelease>
  11466. respStatus = spOK;
  11467. 800545e: 2300 movs r3, #0
  11468. 8005460: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11469. } else {
  11470. respStatus = spInternalError;
  11471. }
  11472. break;
  11473. 8005464: f000 bc2d b.w 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11474. respStatus = spInternalError;
  11475. 8005468: 23fc movs r3, #252 @ 0xfc
  11476. 800546a: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11477. break;
  11478. 800546e: f000 bc28 b.w 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11479. case spSetFanSpeed:
  11480. osTimerStop (fanTimerHandle);
  11481. 8005472: 4b4a ldr r3, [pc, #296] @ (800559c <Uart1ReceivedDataProcessCallback+0x45c>)
  11482. 8005474: 681b ldr r3, [r3, #0]
  11483. 8005476: 4618 mov r0, r3
  11484. 8005478: f00e ff64 bl 8014344 <osTimerStop>
  11485. int32_t fanTimerPeriod = 0;
  11486. 800547c: 2300 movs r3, #0
  11487. 800547e: 643b str r3, [r7, #64] @ 0x40
  11488. uint32_t pulse = 0;
  11489. 8005480: 2300 movs r3, #0
  11490. 8005482: 63fb str r3, [r7, #60] @ 0x3c
  11491. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  11492. 8005484: 683b ldr r3, [r7, #0]
  11493. 8005486: 330c adds r3, #12
  11494. 8005488: f107 023c add.w r2, r7, #60 @ 0x3c
  11495. 800548c: f107 0144 add.w r1, r7, #68 @ 0x44
  11496. 8005490: 4618 mov r0, r3
  11497. 8005492: f7fe faef bl 8003a74 <ReadWordFromBufer>
  11498. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  11499. 8005496: 683b ldr r3, [r7, #0]
  11500. 8005498: 330c adds r3, #12
  11501. 800549a: f107 0240 add.w r2, r7, #64 @ 0x40
  11502. 800549e: f107 0144 add.w r1, r7, #68 @ 0x44
  11503. 80054a2: 4618 mov r0, r3
  11504. 80054a4: f7fe fae6 bl 8003a74 <ReadWordFromBufer>
  11505. fanTimerConfigOC.Pulse = pulse * 10;
  11506. 80054a8: 6bfa ldr r2, [r7, #60] @ 0x3c
  11507. 80054aa: 4613 mov r3, r2
  11508. 80054ac: 009b lsls r3, r3, #2
  11509. 80054ae: 4413 add r3, r2
  11510. 80054b0: 005b lsls r3, r3, #1
  11511. 80054b2: 461a mov r2, r3
  11512. 80054b4: 4b3a ldr r3, [pc, #232] @ (80055a0 <Uart1ReceivedDataProcessCallback+0x460>)
  11513. 80054b6: 605a str r2, [r3, #4]
  11514. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  11515. 80054b8: 2204 movs r2, #4
  11516. 80054ba: 4939 ldr r1, [pc, #228] @ (80055a0 <Uart1ReceivedDataProcessCallback+0x460>)
  11517. 80054bc: 4839 ldr r0, [pc, #228] @ (80055a4 <Uart1ReceivedDataProcessCallback+0x464>)
  11518. 80054be: f00a fe45 bl 801014c <HAL_TIM_PWM_ConfigChannel>
  11519. 80054c2: 4603 mov r3, r0
  11520. 80054c4: 2b00 cmp r3, #0
  11521. 80054c6: d001 beq.n 80054cc <Uart1ReceivedDataProcessCallback+0x38c>
  11522. Error_Handler ();
  11523. 80054c8: f7fc fd00 bl 8001ecc <Error_Handler>
  11524. }
  11525. if (fanTimerPeriod > 0) {
  11526. 80054cc: 6c3b ldr r3, [r7, #64] @ 0x40
  11527. 80054ce: 2b00 cmp r3, #0
  11528. 80054d0: dd0f ble.n 80054f2 <Uart1ReceivedDataProcessCallback+0x3b2>
  11529. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  11530. 80054d2: 4b32 ldr r3, [pc, #200] @ (800559c <Uart1ReceivedDataProcessCallback+0x45c>)
  11531. 80054d4: 681a ldr r2, [r3, #0]
  11532. 80054d6: 6c3b ldr r3, [r7, #64] @ 0x40
  11533. 80054d8: f44f 717a mov.w r1, #1000 @ 0x3e8
  11534. 80054dc: fb01 f303 mul.w r3, r1, r3
  11535. 80054e0: 4619 mov r1, r3
  11536. 80054e2: 4610 mov r0, r2
  11537. 80054e4: f00e ff00 bl 80142e8 <osTimerStart>
  11538. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11539. 80054e8: 2104 movs r1, #4
  11540. 80054ea: 482e ldr r0, [pc, #184] @ (80055a4 <Uart1ReceivedDataProcessCallback+0x464>)
  11541. 80054ec: f00a f934 bl 800f758 <HAL_TIM_PWM_Start>
  11542. 80054f0: e019 b.n 8005526 <Uart1ReceivedDataProcessCallback+0x3e6>
  11543. } else if (fanTimerPeriod == 0) {
  11544. 80054f2: 6c3b ldr r3, [r7, #64] @ 0x40
  11545. 80054f4: 2b00 cmp r3, #0
  11546. 80054f6: d109 bne.n 800550c <Uart1ReceivedDataProcessCallback+0x3cc>
  11547. osTimerStop (fanTimerHandle);
  11548. 80054f8: 4b28 ldr r3, [pc, #160] @ (800559c <Uart1ReceivedDataProcessCallback+0x45c>)
  11549. 80054fa: 681b ldr r3, [r3, #0]
  11550. 80054fc: 4618 mov r0, r3
  11551. 80054fe: f00e ff21 bl 8014344 <osTimerStop>
  11552. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  11553. 8005502: 2104 movs r1, #4
  11554. 8005504: 4827 ldr r0, [pc, #156] @ (80055a4 <Uart1ReceivedDataProcessCallback+0x464>)
  11555. 8005506: f00a fa35 bl 800f974 <HAL_TIM_PWM_Stop>
  11556. 800550a: e00c b.n 8005526 <Uart1ReceivedDataProcessCallback+0x3e6>
  11557. } else if (fanTimerPeriod == -1) {
  11558. 800550c: 6c3b ldr r3, [r7, #64] @ 0x40
  11559. 800550e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11560. 8005512: d108 bne.n 8005526 <Uart1ReceivedDataProcessCallback+0x3e6>
  11561. osTimerStop (fanTimerHandle);
  11562. 8005514: 4b21 ldr r3, [pc, #132] @ (800559c <Uart1ReceivedDataProcessCallback+0x45c>)
  11563. 8005516: 681b ldr r3, [r3, #0]
  11564. 8005518: 4618 mov r0, r3
  11565. 800551a: f00e ff13 bl 8014344 <osTimerStop>
  11566. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  11567. 800551e: 2104 movs r1, #4
  11568. 8005520: 4820 ldr r0, [pc, #128] @ (80055a4 <Uart1ReceivedDataProcessCallback+0x464>)
  11569. 8005522: f00a f919 bl 800f758 <HAL_TIM_PWM_Start>
  11570. }
  11571. respStatus = spOK;
  11572. 8005526: 2300 movs r3, #0
  11573. 8005528: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11574. break;
  11575. 800552c: e3c9 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11576. 800552e: bf00 nop
  11577. 8005530: 2400081c .word 0x2400081c
  11578. 8005534: 24000860 .word 0x24000860
  11579. 8005538: 2400105c .word 0x2400105c
  11580. 800553c: 24000fdc .word 0x24000fdc
  11581. 8005540: 24000864 .word 0x24000864
  11582. 8005544: 24000868 .word 0x24000868
  11583. 8005548: 2400086c .word 0x2400086c
  11584. 800554c: 24000870 .word 0x24000870
  11585. 8005550: 24000874 .word 0x24000874
  11586. 8005554: 24000875 .word 0x24000875
  11587. 8005558: 24000878 .word 0x24000878
  11588. 800555c: 2400087c .word 0x2400087c
  11589. 8005560: 24000880 .word 0x24000880
  11590. 8005564: 24000884 .word 0x24000884
  11591. 8005568: 24000888 .word 0x24000888
  11592. 800556c: 24000889 .word 0x24000889
  11593. 8005570: 2400088a .word 0x2400088a
  11594. 8005574: 2400088b .word 0x2400088b
  11595. 8005578: 2400088c .word 0x2400088c
  11596. 800557c: 2400088d .word 0x2400088d
  11597. 8005580: 240003b4 .word 0x240003b4
  11598. 8005584: 58020c00 .word 0x58020c00
  11599. 8005588: 2400088e .word 0x2400088e
  11600. 800558c: 24000890 .word 0x24000890
  11601. 8005590: 24000894 .word 0x24000894
  11602. 8005594: 24000898 .word 0x24000898
  11603. 8005598: 24000899 .word 0x24000899
  11604. 800559c: 24000714 .word 0x24000714
  11605. 80055a0: 240007a4 .word 0x240007a4
  11606. 80055a4: 2400043c .word 0x2400043c
  11607. case spSetMotorXOn:
  11608. int32_t motorXPWMPulse = 0;
  11609. 80055a8: 2300 movs r3, #0
  11610. 80055aa: 63bb str r3, [r7, #56] @ 0x38
  11611. int32_t motorXTimerPeriod = 0;
  11612. 80055ac: 2300 movs r3, #0
  11613. 80055ae: 637b str r3, [r7, #52] @ 0x34
  11614. uint32_t motorXStatus = 0;
  11615. 80055b0: 2300 movs r3, #0
  11616. 80055b2: 64bb str r3, [r7, #72] @ 0x48
  11617. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  11618. 80055b4: 683b ldr r3, [r7, #0]
  11619. 80055b6: 330c adds r3, #12
  11620. 80055b8: f107 0238 add.w r2, r7, #56 @ 0x38
  11621. 80055bc: f107 0144 add.w r1, r7, #68 @ 0x44
  11622. 80055c0: 4618 mov r0, r3
  11623. 80055c2: f7fe fa57 bl 8003a74 <ReadWordFromBufer>
  11624. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  11625. 80055c6: 683b ldr r3, [r7, #0]
  11626. 80055c8: 330c adds r3, #12
  11627. 80055ca: f107 0234 add.w r2, r7, #52 @ 0x34
  11628. 80055ce: f107 0144 add.w r1, r7, #68 @ 0x44
  11629. 80055d2: 4618 mov r0, r3
  11630. 80055d4: f7fe fa4e bl 8003a74 <ReadWordFromBufer>
  11631. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11632. 80055d8: 4bab ldr r3, [pc, #684] @ (8005888 <Uart1ReceivedDataProcessCallback+0x748>)
  11633. 80055da: 681b ldr r3, [r3, #0]
  11634. 80055dc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11635. 80055e0: 4618 mov r0, r3
  11636. 80055e2: f00e ff6c bl 80144be <osMutexAcquire>
  11637. 80055e6: 4603 mov r3, r0
  11638. 80055e8: 2b00 cmp r3, #0
  11639. 80055ea: d12a bne.n 8005642 <Uart1ReceivedDataProcessCallback+0x502>
  11640. motorXStatus =
  11641. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  11642. 80055ec: 4ba7 ldr r3, [pc, #668] @ (800588c <Uart1ReceivedDataProcessCallback+0x74c>)
  11643. 80055ee: 681b ldr r3, [r3, #0]
  11644. 80055f0: 6bba ldr r2, [r7, #56] @ 0x38
  11645. 80055f2: 6b79 ldr r1, [r7, #52] @ 0x34
  11646. 80055f4: 48a6 ldr r0, [pc, #664] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11647. 80055f6: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  11648. 80055fa: 4ca5 ldr r4, [pc, #660] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11649. 80055fc: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  11650. 8005600: 9404 str r4, [sp, #16]
  11651. 8005602: 9003 str r0, [sp, #12]
  11652. 8005604: 9102 str r1, [sp, #8]
  11653. 8005606: 9201 str r2, [sp, #4]
  11654. 8005608: 9300 str r3, [sp, #0]
  11655. 800560a: 2304 movs r3, #4
  11656. 800560c: 2200 movs r2, #0
  11657. 800560e: 49a1 ldr r1, [pc, #644] @ (8005894 <Uart1ReceivedDataProcessCallback+0x754>)
  11658. 8005610: 48a1 ldr r0, [pc, #644] @ (8005898 <Uart1ReceivedDataProcessCallback+0x758>)
  11659. 8005612: f7fd fcf5 bl 8003000 <MotorControl>
  11660. 8005616: 4603 mov r3, r0
  11661. motorXStatus =
  11662. 8005618: 64bb str r3, [r7, #72] @ 0x48
  11663. sensorsInfo.motorXStatus = motorXStatus;
  11664. 800561a: 6cbb ldr r3, [r7, #72] @ 0x48
  11665. 800561c: b2da uxtb r2, r3
  11666. 800561e: 4b9c ldr r3, [pc, #624] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11667. 8005620: 751a strb r2, [r3, #20]
  11668. if (motorXStatus == 1) {
  11669. 8005622: 6cbb ldr r3, [r7, #72] @ 0x48
  11670. 8005624: 2b01 cmp r3, #1
  11671. 8005626: d103 bne.n 8005630 <Uart1ReceivedDataProcessCallback+0x4f0>
  11672. sensorsInfo.motorXPeakCurrent = 0.0;
  11673. 8005628: 4b99 ldr r3, [pc, #612] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11674. 800562a: f04f 0200 mov.w r2, #0
  11675. 800562e: 621a str r2, [r3, #32]
  11676. }
  11677. osMutexRelease (sensorsInfoMutex);
  11678. 8005630: 4b95 ldr r3, [pc, #596] @ (8005888 <Uart1ReceivedDataProcessCallback+0x748>)
  11679. 8005632: 681b ldr r3, [r3, #0]
  11680. 8005634: 4618 mov r0, r3
  11681. 8005636: f00e ff8d bl 8014554 <osMutexRelease>
  11682. respStatus = spOK;
  11683. 800563a: 2300 movs r3, #0
  11684. 800563c: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11685. } else {
  11686. respStatus = spInternalError;
  11687. }
  11688. break;
  11689. 8005640: e33f b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11690. respStatus = spInternalError;
  11691. 8005642: 23fc movs r3, #252 @ 0xfc
  11692. 8005644: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11693. break;
  11694. 8005648: e33b b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11695. case spSetMotorYOn:
  11696. int32_t motorYPWMPulse = 0;
  11697. 800564a: 2300 movs r3, #0
  11698. 800564c: 633b str r3, [r7, #48] @ 0x30
  11699. int32_t motorYTimerPeriod = 0;
  11700. 800564e: 2300 movs r3, #0
  11701. 8005650: 62fb str r3, [r7, #44] @ 0x2c
  11702. uint32_t motorYStatus = 0;
  11703. 8005652: 2300 movs r3, #0
  11704. 8005654: 64fb str r3, [r7, #76] @ 0x4c
  11705. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  11706. 8005656: 683b ldr r3, [r7, #0]
  11707. 8005658: 330c adds r3, #12
  11708. 800565a: f107 0230 add.w r2, r7, #48 @ 0x30
  11709. 800565e: f107 0144 add.w r1, r7, #68 @ 0x44
  11710. 8005662: 4618 mov r0, r3
  11711. 8005664: f7fe fa06 bl 8003a74 <ReadWordFromBufer>
  11712. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  11713. 8005668: 683b ldr r3, [r7, #0]
  11714. 800566a: 330c adds r3, #12
  11715. 800566c: f107 022c add.w r2, r7, #44 @ 0x2c
  11716. 8005670: f107 0144 add.w r1, r7, #68 @ 0x44
  11717. 8005674: 4618 mov r0, r3
  11718. 8005676: f7fe f9fd bl 8003a74 <ReadWordFromBufer>
  11719. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11720. 800567a: 4b83 ldr r3, [pc, #524] @ (8005888 <Uart1ReceivedDataProcessCallback+0x748>)
  11721. 800567c: 681b ldr r3, [r3, #0]
  11722. 800567e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11723. 8005682: 4618 mov r0, r3
  11724. 8005684: f00e ff1b bl 80144be <osMutexAcquire>
  11725. 8005688: 4603 mov r3, r0
  11726. 800568a: 2b00 cmp r3, #0
  11727. 800568c: d12a bne.n 80056e4 <Uart1ReceivedDataProcessCallback+0x5a4>
  11728. motorYStatus =
  11729. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  11730. 800568e: 4b83 ldr r3, [pc, #524] @ (800589c <Uart1ReceivedDataProcessCallback+0x75c>)
  11731. 8005690: 681b ldr r3, [r3, #0]
  11732. 8005692: 6b3a ldr r2, [r7, #48] @ 0x30
  11733. 8005694: 6af9 ldr r1, [r7, #44] @ 0x2c
  11734. 8005696: 487e ldr r0, [pc, #504] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11735. 8005698: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  11736. 800569c: 4c7c ldr r4, [pc, #496] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11737. 800569e: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  11738. 80056a2: 9404 str r4, [sp, #16]
  11739. 80056a4: 9003 str r0, [sp, #12]
  11740. 80056a6: 9102 str r1, [sp, #8]
  11741. 80056a8: 9201 str r2, [sp, #4]
  11742. 80056aa: 9300 str r3, [sp, #0]
  11743. 80056ac: 230c movs r3, #12
  11744. 80056ae: 2208 movs r2, #8
  11745. 80056b0: 4978 ldr r1, [pc, #480] @ (8005894 <Uart1ReceivedDataProcessCallback+0x754>)
  11746. 80056b2: 4879 ldr r0, [pc, #484] @ (8005898 <Uart1ReceivedDataProcessCallback+0x758>)
  11747. 80056b4: f7fd fca4 bl 8003000 <MotorControl>
  11748. 80056b8: 4603 mov r3, r0
  11749. motorYStatus =
  11750. 80056ba: 64fb str r3, [r7, #76] @ 0x4c
  11751. sensorsInfo.motorYStatus = motorYStatus;
  11752. 80056bc: 6cfb ldr r3, [r7, #76] @ 0x4c
  11753. 80056be: b2da uxtb r2, r3
  11754. 80056c0: 4b73 ldr r3, [pc, #460] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11755. 80056c2: 755a strb r2, [r3, #21]
  11756. if (motorYStatus == 1) {
  11757. 80056c4: 6cfb ldr r3, [r7, #76] @ 0x4c
  11758. 80056c6: 2b01 cmp r3, #1
  11759. 80056c8: d103 bne.n 80056d2 <Uart1ReceivedDataProcessCallback+0x592>
  11760. sensorsInfo.motorYPeakCurrent = 0.0;
  11761. 80056ca: 4b71 ldr r3, [pc, #452] @ (8005890 <Uart1ReceivedDataProcessCallback+0x750>)
  11762. 80056cc: f04f 0200 mov.w r2, #0
  11763. 80056d0: 625a str r2, [r3, #36] @ 0x24
  11764. }
  11765. osMutexRelease (sensorsInfoMutex);
  11766. 80056d2: 4b6d ldr r3, [pc, #436] @ (8005888 <Uart1ReceivedDataProcessCallback+0x748>)
  11767. 80056d4: 681b ldr r3, [r3, #0]
  11768. 80056d6: 4618 mov r0, r3
  11769. 80056d8: f00e ff3c bl 8014554 <osMutexRelease>
  11770. respStatus = spOK;
  11771. 80056dc: 2300 movs r3, #0
  11772. 80056de: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11773. } else {
  11774. respStatus = spInternalError;
  11775. }
  11776. break;
  11777. 80056e2: e2ee b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11778. respStatus = spInternalError;
  11779. 80056e4: 23fc movs r3, #252 @ 0xfc
  11780. 80056e6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11781. break;
  11782. 80056ea: e2ea b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11783. case spSetDiodeOn:
  11784. osTimerStop (debugLedTimerHandle);
  11785. 80056ec: 4b6c ldr r3, [pc, #432] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x760>)
  11786. 80056ee: 681b ldr r3, [r3, #0]
  11787. 80056f0: 4618 mov r0, r3
  11788. 80056f2: f00e fe27 bl 8014344 <osTimerStop>
  11789. int32_t dbgLedTimerPeriod = 0;
  11790. 80056f6: 2300 movs r3, #0
  11791. 80056f8: 62bb str r3, [r7, #40] @ 0x28
  11792. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  11793. 80056fa: 683b ldr r3, [r7, #0]
  11794. 80056fc: 330c adds r3, #12
  11795. 80056fe: f107 0228 add.w r2, r7, #40 @ 0x28
  11796. 8005702: f107 0144 add.w r1, r7, #68 @ 0x44
  11797. 8005706: 4618 mov r0, r3
  11798. 8005708: f7fe f9b4 bl 8003a74 <ReadWordFromBufer>
  11799. if (dbgLedTimerPeriod > 0) {
  11800. 800570c: 6abb ldr r3, [r7, #40] @ 0x28
  11801. 800570e: 2b00 cmp r3, #0
  11802. 8005710: dd0e ble.n 8005730 <Uart1ReceivedDataProcessCallback+0x5f0>
  11803. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  11804. 8005712: 4b63 ldr r3, [pc, #396] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x760>)
  11805. 8005714: 681a ldr r2, [r3, #0]
  11806. 8005716: 6abb ldr r3, [r7, #40] @ 0x28
  11807. 8005718: f44f 717a mov.w r1, #1000 @ 0x3e8
  11808. 800571c: fb01 f303 mul.w r3, r1, r3
  11809. 8005720: 4619 mov r1, r3
  11810. 8005722: 4610 mov r0, r2
  11811. 8005724: f00e fde0 bl 80142e8 <osTimerStart>
  11812. DbgLEDOn (DBG_LED1);
  11813. 8005728: 2010 movs r0, #16
  11814. 800572a: f7fd fbdb bl 8002ee4 <DbgLEDOn>
  11815. 800572e: e017 b.n 8005760 <Uart1ReceivedDataProcessCallback+0x620>
  11816. } else if (dbgLedTimerPeriod == 0) {
  11817. 8005730: 6abb ldr r3, [r7, #40] @ 0x28
  11818. 8005732: 2b00 cmp r3, #0
  11819. 8005734: d108 bne.n 8005748 <Uart1ReceivedDataProcessCallback+0x608>
  11820. osTimerStop (debugLedTimerHandle);
  11821. 8005736: 4b5a ldr r3, [pc, #360] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x760>)
  11822. 8005738: 681b ldr r3, [r3, #0]
  11823. 800573a: 4618 mov r0, r3
  11824. 800573c: f00e fe02 bl 8014344 <osTimerStop>
  11825. DbgLEDOff (DBG_LED1);
  11826. 8005740: 2010 movs r0, #16
  11827. 8005742: f7fd fbe1 bl 8002f08 <DbgLEDOff>
  11828. 8005746: e00b b.n 8005760 <Uart1ReceivedDataProcessCallback+0x620>
  11829. } else if (dbgLedTimerPeriod == -1) {
  11830. 8005748: 6abb ldr r3, [r7, #40] @ 0x28
  11831. 800574a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11832. 800574e: d107 bne.n 8005760 <Uart1ReceivedDataProcessCallback+0x620>
  11833. osTimerStop (debugLedTimerHandle);
  11834. 8005750: 4b53 ldr r3, [pc, #332] @ (80058a0 <Uart1ReceivedDataProcessCallback+0x760>)
  11835. 8005752: 681b ldr r3, [r3, #0]
  11836. 8005754: 4618 mov r0, r3
  11837. 8005756: f00e fdf5 bl 8014344 <osTimerStop>
  11838. DbgLEDOn (DBG_LED1);
  11839. 800575a: 2010 movs r0, #16
  11840. 800575c: f7fd fbc2 bl 8002ee4 <DbgLEDOn>
  11841. }
  11842. respStatus = spOK;
  11843. 8005760: 2300 movs r3, #0
  11844. 8005762: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11845. break;
  11846. 8005766: e2ac b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11847. case spSetmotorXMaxCurrent:
  11848. float motorXMaxCurrent = 0;
  11849. 8005768: f04f 0300 mov.w r3, #0
  11850. 800576c: 627b str r3, [r7, #36] @ 0x24
  11851. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  11852. 800576e: 683b ldr r3, [r7, #0]
  11853. 8005770: 330c adds r3, #12
  11854. 8005772: f107 0224 add.w r2, r7, #36 @ 0x24
  11855. 8005776: f107 0144 add.w r1, r7, #68 @ 0x44
  11856. 800577a: 4618 mov r0, r3
  11857. 800577c: f7fe f97a bl 8003a74 <ReadWordFromBufer>
  11858. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  11859. 8005780: edd7 7a09 vldr s15, [r7, #36] @ 0x24
  11860. 8005784: ed9f 7a47 vldr s14, [pc, #284] @ 80058a4 <Uart1ReceivedDataProcessCallback+0x764>
  11861. 8005788: ee67 7a87 vmul.f32 s15, s15, s14
  11862. 800578c: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11863. 8005790: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11864. 8005794: ee86 7b05 vdiv.f64 d7, d6, d5
  11865. 8005798: eefc 7bc7 vcvt.u32.f64 s15, d7
  11866. 800579c: ee17 3a90 vmov r3, s15
  11867. 80057a0: 653b str r3, [r7, #80] @ 0x50
  11868. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  11869. 80057a2: 6d3b ldr r3, [r7, #80] @ 0x50
  11870. 80057a4: 2200 movs r2, #0
  11871. 80057a6: 2100 movs r1, #0
  11872. 80057a8: 483f ldr r0, [pc, #252] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x768>)
  11873. 80057aa: f002 fd56 bl 800825a <HAL_DAC_SetValue>
  11874. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  11875. 80057ae: 2100 movs r1, #0
  11876. 80057b0: 483d ldr r0, [pc, #244] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x768>)
  11877. 80057b2: f002 fca5 bl 8008100 <HAL_DAC_Start>
  11878. respStatus = spOK;
  11879. 80057b6: 2300 movs r3, #0
  11880. 80057b8: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11881. break;
  11882. 80057bc: e281 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11883. case spSetmotorYMaxCurrent:
  11884. float motorYMaxCurrent = 0;
  11885. 80057be: f04f 0300 mov.w r3, #0
  11886. 80057c2: 623b str r3, [r7, #32]
  11887. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11888. 80057c4: 683b ldr r3, [r7, #0]
  11889. 80057c6: 330c adds r3, #12
  11890. 80057c8: f107 0220 add.w r2, r7, #32
  11891. 80057cc: f107 0144 add.w r1, r7, #68 @ 0x44
  11892. 80057d0: 4618 mov r0, r3
  11893. 80057d2: f7fe f94f bl 8003a74 <ReadWordFromBufer>
  11894. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11895. 80057d6: edd7 7a08 vldr s15, [r7, #32]
  11896. 80057da: ed9f 7a32 vldr s14, [pc, #200] @ 80058a4 <Uart1ReceivedDataProcessCallback+0x764>
  11897. 80057de: ee67 7a87 vmul.f32 s15, s15, s14
  11898. 80057e2: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11899. 80057e6: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11900. 80057ea: ee86 7b05 vdiv.f64 d7, d6, d5
  11901. 80057ee: eefc 7bc7 vcvt.u32.f64 s15, d7
  11902. 80057f2: ee17 3a90 vmov r3, s15
  11903. 80057f6: 657b str r3, [r7, #84] @ 0x54
  11904. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11905. 80057f8: 6d7b ldr r3, [r7, #84] @ 0x54
  11906. 80057fa: 2200 movs r2, #0
  11907. 80057fc: 2110 movs r1, #16
  11908. 80057fe: 482a ldr r0, [pc, #168] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x768>)
  11909. 8005800: f002 fd2b bl 800825a <HAL_DAC_SetValue>
  11910. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11911. 8005804: 2110 movs r1, #16
  11912. 8005806: 4828 ldr r0, [pc, #160] @ (80058a8 <Uart1ReceivedDataProcessCallback+0x768>)
  11913. 8005808: f002 fc7a bl 8008100 <HAL_DAC_Start>
  11914. respStatus = spOK;
  11915. 800580c: 2300 movs r3, #0
  11916. 800580e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11917. break;
  11918. 8005812: e256 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11919. case spClearPeakMeasurments:
  11920. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11921. 8005814: 4b25 ldr r3, [pc, #148] @ (80058ac <Uart1ReceivedDataProcessCallback+0x76c>)
  11922. 8005816: 681b ldr r3, [r3, #0]
  11923. 8005818: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11924. 800581c: 4618 mov r0, r3
  11925. 800581e: f00e fe4e bl 80144be <osMutexAcquire>
  11926. 8005822: 4603 mov r3, r0
  11927. 8005824: 2b00 cmp r3, #0
  11928. 8005826: d12a bne.n 800587e <Uart1ReceivedDataProcessCallback+0x73e>
  11929. for (int i = 0; i < 3; i++) {
  11930. 8005828: 2300 movs r3, #0
  11931. 800582a: 67fb str r3, [r7, #124] @ 0x7c
  11932. 800582c: e01b b.n 8005866 <Uart1ReceivedDataProcessCallback+0x726>
  11933. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11934. 800582e: 4a20 ldr r2, [pc, #128] @ (80058b0 <Uart1ReceivedDataProcessCallback+0x770>)
  11935. 8005830: 6ffb ldr r3, [r7, #124] @ 0x7c
  11936. 8005832: 009b lsls r3, r3, #2
  11937. 8005834: 4413 add r3, r2
  11938. 8005836: 681a ldr r2, [r3, #0]
  11939. 8005838: 491d ldr r1, [pc, #116] @ (80058b0 <Uart1ReceivedDataProcessCallback+0x770>)
  11940. 800583a: 6ffb ldr r3, [r7, #124] @ 0x7c
  11941. 800583c: 3302 adds r3, #2
  11942. 800583e: 009b lsls r3, r3, #2
  11943. 8005840: 440b add r3, r1
  11944. 8005842: 3304 adds r3, #4
  11945. 8005844: 601a str r2, [r3, #0]
  11946. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11947. 8005846: 4a1a ldr r2, [pc, #104] @ (80058b0 <Uart1ReceivedDataProcessCallback+0x770>)
  11948. 8005848: 6ffb ldr r3, [r7, #124] @ 0x7c
  11949. 800584a: 3306 adds r3, #6
  11950. 800584c: 009b lsls r3, r3, #2
  11951. 800584e: 4413 add r3, r2
  11952. 8005850: 681a ldr r2, [r3, #0]
  11953. 8005852: 4917 ldr r1, [pc, #92] @ (80058b0 <Uart1ReceivedDataProcessCallback+0x770>)
  11954. 8005854: 6ffb ldr r3, [r7, #124] @ 0x7c
  11955. 8005856: 3308 adds r3, #8
  11956. 8005858: 009b lsls r3, r3, #2
  11957. 800585a: 440b add r3, r1
  11958. 800585c: 3304 adds r3, #4
  11959. 800585e: 601a str r2, [r3, #0]
  11960. for (int i = 0; i < 3; i++) {
  11961. 8005860: 6ffb ldr r3, [r7, #124] @ 0x7c
  11962. 8005862: 3301 adds r3, #1
  11963. 8005864: 67fb str r3, [r7, #124] @ 0x7c
  11964. 8005866: 6ffb ldr r3, [r7, #124] @ 0x7c
  11965. 8005868: 2b02 cmp r3, #2
  11966. 800586a: dde0 ble.n 800582e <Uart1ReceivedDataProcessCallback+0x6ee>
  11967. }
  11968. osMutexRelease (resMeasurementsMutex);
  11969. 800586c: 4b0f ldr r3, [pc, #60] @ (80058ac <Uart1ReceivedDataProcessCallback+0x76c>)
  11970. 800586e: 681b ldr r3, [r3, #0]
  11971. 8005870: 4618 mov r0, r3
  11972. 8005872: f00e fe6f bl 8014554 <osMutexRelease>
  11973. respStatus = spOK;
  11974. 8005876: 2300 movs r3, #0
  11975. 8005878: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11976. } else {
  11977. respStatus = spInternalError;
  11978. }
  11979. break;
  11980. 800587c: e221 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11981. respStatus = spInternalError;
  11982. 800587e: 23fc movs r3, #252 @ 0xfc
  11983. 8005880: f887 3097 strb.w r3, [r7, #151] @ 0x97
  11984. break;
  11985. 8005884: e21d b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  11986. 8005886: bf00 nop
  11987. 8005888: 2400081c .word 0x2400081c
  11988. 800588c: 24000744 .word 0x24000744
  11989. 8005890: 24000860 .word 0x24000860
  11990. 8005894: 240007c0 .word 0x240007c0
  11991. 8005898: 240004d4 .word 0x240004d4
  11992. 800589c: 24000774 .word 0x24000774
  11993. 80058a0: 240006e4 .word 0x240006e4
  11994. 80058a4: 457ff000 .word 0x457ff000
  11995. 80058a8: 24000404 .word 0x24000404
  11996. 80058ac: 24000818 .word 0x24000818
  11997. 80058b0: 24000824 .word 0x24000824
  11998. case spSetEncoderXValue:
  11999. float enocoderXValue = 0;
  12000. 80058b4: f04f 0300 mov.w r3, #0
  12001. 80058b8: 61fb str r3, [r7, #28]
  12002. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  12003. 80058ba: 683b ldr r3, [r7, #0]
  12004. 80058bc: 330c adds r3, #12
  12005. 80058be: f107 021c add.w r2, r7, #28
  12006. 80058c2: f107 0144 add.w r1, r7, #68 @ 0x44
  12007. 80058c6: 4618 mov r0, r3
  12008. 80058c8: f7fe f8d4 bl 8003a74 <ReadWordFromBufer>
  12009. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12010. 80058cc: 4bbc ldr r3, [pc, #752] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa80>)
  12011. 80058ce: 681b ldr r3, [r3, #0]
  12012. 80058d0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12013. 80058d4: 4618 mov r0, r3
  12014. 80058d6: f00e fdf2 bl 80144be <osMutexAcquire>
  12015. 80058da: 4603 mov r3, r0
  12016. 80058dc: 2b00 cmp r3, #0
  12017. 80058de: d10b bne.n 80058f8 <Uart1ReceivedDataProcessCallback+0x7b8>
  12018. sensorsInfo.pvEncoderX = enocoderXValue;
  12019. 80058e0: 69fb ldr r3, [r7, #28]
  12020. 80058e2: 4ab8 ldr r2, [pc, #736] @ (8005bc4 <Uart1ReceivedDataProcessCallback+0xa84>)
  12021. 80058e4: 60d3 str r3, [r2, #12]
  12022. osMutexRelease (sensorsInfoMutex);
  12023. 80058e6: 4bb6 ldr r3, [pc, #728] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa80>)
  12024. 80058e8: 681b ldr r3, [r3, #0]
  12025. 80058ea: 4618 mov r0, r3
  12026. 80058ec: f00e fe32 bl 8014554 <osMutexRelease>
  12027. respStatus = spOK;
  12028. 80058f0: 2300 movs r3, #0
  12029. 80058f2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12030. } else {
  12031. respStatus = spInternalError;
  12032. }
  12033. break;
  12034. 80058f6: e1e4 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12035. respStatus = spInternalError;
  12036. 80058f8: 23fc movs r3, #252 @ 0xfc
  12037. 80058fa: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12038. break;
  12039. 80058fe: e1e0 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12040. case spSetEncoderYValue:
  12041. float enocoderYValue = 0;
  12042. 8005900: f04f 0300 mov.w r3, #0
  12043. 8005904: 61bb str r3, [r7, #24]
  12044. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  12045. 8005906: 683b ldr r3, [r7, #0]
  12046. 8005908: 330c adds r3, #12
  12047. 800590a: f107 0218 add.w r2, r7, #24
  12048. 800590e: f107 0144 add.w r1, r7, #68 @ 0x44
  12049. 8005912: 4618 mov r0, r3
  12050. 8005914: f7fe f8ae bl 8003a74 <ReadWordFromBufer>
  12051. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  12052. 8005918: 4ba9 ldr r3, [pc, #676] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa80>)
  12053. 800591a: 681b ldr r3, [r3, #0]
  12054. 800591c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12055. 8005920: 4618 mov r0, r3
  12056. 8005922: f00e fdcc bl 80144be <osMutexAcquire>
  12057. 8005926: 4603 mov r3, r0
  12058. 8005928: 2b00 cmp r3, #0
  12059. 800592a: d10b bne.n 8005944 <Uart1ReceivedDataProcessCallback+0x804>
  12060. sensorsInfo.pvEncoderY = enocoderYValue;
  12061. 800592c: 69bb ldr r3, [r7, #24]
  12062. 800592e: 4aa5 ldr r2, [pc, #660] @ (8005bc4 <Uart1ReceivedDataProcessCallback+0xa84>)
  12063. 8005930: 6113 str r3, [r2, #16]
  12064. osMutexRelease (sensorsInfoMutex);
  12065. 8005932: 4ba3 ldr r3, [pc, #652] @ (8005bc0 <Uart1ReceivedDataProcessCallback+0xa80>)
  12066. 8005934: 681b ldr r3, [r3, #0]
  12067. 8005936: 4618 mov r0, r3
  12068. 8005938: f00e fe0c bl 8014554 <osMutexRelease>
  12069. respStatus = spOK;
  12070. 800593c: 2300 movs r3, #0
  12071. 800593e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12072. } else {
  12073. respStatus = spInternalError;
  12074. }
  12075. break;
  12076. 8005942: e1be b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12077. respStatus = spInternalError;
  12078. 8005944: 23fc movs r3, #252 @ 0xfc
  12079. 8005946: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12080. break;
  12081. 800594a: e1ba b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12082. case spSetVoltageMeasGains:
  12083. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12084. 800594c: 4b9e ldr r3, [pc, #632] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12085. 800594e: 681b ldr r3, [r3, #0]
  12086. 8005950: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12087. 8005954: 4618 mov r0, r3
  12088. 8005956: f00e fdb2 bl 80144be <osMutexAcquire>
  12089. 800595a: 4603 mov r3, r0
  12090. 800595c: 2b00 cmp r3, #0
  12091. 800595e: d122 bne.n 80059a6 <Uart1ReceivedDataProcessCallback+0x866>
  12092. for (uint8_t i = 0; i < 3; i++) {
  12093. 8005960: 2300 movs r3, #0
  12094. 8005962: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12095. 8005966: e011 b.n 800598c <Uart1ReceivedDataProcessCallback+0x84c>
  12096. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  12097. 8005968: 683b ldr r3, [r7, #0]
  12098. 800596a: f103 000c add.w r0, r3, #12
  12099. 800596e: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12100. 8005972: 00db lsls r3, r3, #3
  12101. 8005974: 4a95 ldr r2, [pc, #596] @ (8005bcc <Uart1ReceivedDataProcessCallback+0xa8c>)
  12102. 8005976: 441a add r2, r3
  12103. 8005978: f107 0344 add.w r3, r7, #68 @ 0x44
  12104. 800597c: 4619 mov r1, r3
  12105. 800597e: f7fe f879 bl 8003a74 <ReadWordFromBufer>
  12106. for (uint8_t i = 0; i < 3; i++) {
  12107. 8005982: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12108. 8005986: 3301 adds r3, #1
  12109. 8005988: f887 307b strb.w r3, [r7, #123] @ 0x7b
  12110. 800598c: f897 307b ldrb.w r3, [r7, #123] @ 0x7b
  12111. 8005990: 2b02 cmp r3, #2
  12112. 8005992: d9e9 bls.n 8005968 <Uart1ReceivedDataProcessCallback+0x828>
  12113. }
  12114. osMutexRelease (resMeasurementsMutex);
  12115. 8005994: 4b8c ldr r3, [pc, #560] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12116. 8005996: 681b ldr r3, [r3, #0]
  12117. 8005998: 4618 mov r0, r3
  12118. 800599a: f00e fddb bl 8014554 <osMutexRelease>
  12119. respStatus = spOK;
  12120. 800599e: 2300 movs r3, #0
  12121. 80059a0: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12122. } else {
  12123. respStatus = spInternalError;
  12124. }
  12125. break;
  12126. 80059a4: e18d b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12127. respStatus = spInternalError;
  12128. 80059a6: 23fc movs r3, #252 @ 0xfc
  12129. 80059a8: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12130. break;
  12131. 80059ac: e189 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12132. case spSetVoltageMeasOffsets:
  12133. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12134. 80059ae: 4b86 ldr r3, [pc, #536] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12135. 80059b0: 681b ldr r3, [r3, #0]
  12136. 80059b2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12137. 80059b6: 4618 mov r0, r3
  12138. 80059b8: f00e fd81 bl 80144be <osMutexAcquire>
  12139. 80059bc: 4603 mov r3, r0
  12140. 80059be: 2b00 cmp r3, #0
  12141. 80059c0: d123 bne.n 8005a0a <Uart1ReceivedDataProcessCallback+0x8ca>
  12142. for (uint8_t i = 0; i < 3; i++) {
  12143. 80059c2: 2300 movs r3, #0
  12144. 80059c4: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12145. 80059c8: e012 b.n 80059f0 <Uart1ReceivedDataProcessCallback+0x8b0>
  12146. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  12147. 80059ca: 683b ldr r3, [r7, #0]
  12148. 80059cc: f103 000c add.w r0, r3, #12
  12149. 80059d0: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12150. 80059d4: 00db lsls r3, r3, #3
  12151. 80059d6: 4a7d ldr r2, [pc, #500] @ (8005bcc <Uart1ReceivedDataProcessCallback+0xa8c>)
  12152. 80059d8: 4413 add r3, r2
  12153. 80059da: 1d1a adds r2, r3, #4
  12154. 80059dc: f107 0344 add.w r3, r7, #68 @ 0x44
  12155. 80059e0: 4619 mov r1, r3
  12156. 80059e2: f7fe f847 bl 8003a74 <ReadWordFromBufer>
  12157. for (uint8_t i = 0; i < 3; i++) {
  12158. 80059e6: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12159. 80059ea: 3301 adds r3, #1
  12160. 80059ec: f887 307a strb.w r3, [r7, #122] @ 0x7a
  12161. 80059f0: f897 307a ldrb.w r3, [r7, #122] @ 0x7a
  12162. 80059f4: 2b02 cmp r3, #2
  12163. 80059f6: d9e8 bls.n 80059ca <Uart1ReceivedDataProcessCallback+0x88a>
  12164. }
  12165. osMutexRelease (resMeasurementsMutex);
  12166. 80059f8: 4b73 ldr r3, [pc, #460] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12167. 80059fa: 681b ldr r3, [r3, #0]
  12168. 80059fc: 4618 mov r0, r3
  12169. 80059fe: f00e fda9 bl 8014554 <osMutexRelease>
  12170. respStatus = spOK;
  12171. 8005a02: 2300 movs r3, #0
  12172. 8005a04: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12173. } else {
  12174. respStatus = spInternalError;
  12175. }
  12176. break;
  12177. 8005a08: e15b b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12178. respStatus = spInternalError;
  12179. 8005a0a: 23fc movs r3, #252 @ 0xfc
  12180. 8005a0c: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12181. break;
  12182. 8005a10: e157 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12183. case spSetCurrentMeasGains:
  12184. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12185. 8005a12: 4b6d ldr r3, [pc, #436] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12186. 8005a14: 681b ldr r3, [r3, #0]
  12187. 8005a16: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12188. 8005a1a: 4618 mov r0, r3
  12189. 8005a1c: f00e fd4f bl 80144be <osMutexAcquire>
  12190. 8005a20: 4603 mov r3, r0
  12191. 8005a22: 2b00 cmp r3, #0
  12192. 8005a24: d122 bne.n 8005a6c <Uart1ReceivedDataProcessCallback+0x92c>
  12193. for (uint8_t i = 0; i < 3; i++) {
  12194. 8005a26: 2300 movs r3, #0
  12195. 8005a28: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12196. 8005a2c: e011 b.n 8005a52 <Uart1ReceivedDataProcessCallback+0x912>
  12197. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  12198. 8005a2e: 683b ldr r3, [r7, #0]
  12199. 8005a30: f103 000c add.w r0, r3, #12
  12200. 8005a34: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12201. 8005a38: 00db lsls r3, r3, #3
  12202. 8005a3a: 4a65 ldr r2, [pc, #404] @ (8005bd0 <Uart1ReceivedDataProcessCallback+0xa90>)
  12203. 8005a3c: 441a add r2, r3
  12204. 8005a3e: f107 0344 add.w r3, r7, #68 @ 0x44
  12205. 8005a42: 4619 mov r1, r3
  12206. 8005a44: f7fe f816 bl 8003a74 <ReadWordFromBufer>
  12207. for (uint8_t i = 0; i < 3; i++) {
  12208. 8005a48: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12209. 8005a4c: 3301 adds r3, #1
  12210. 8005a4e: f887 3079 strb.w r3, [r7, #121] @ 0x79
  12211. 8005a52: f897 3079 ldrb.w r3, [r7, #121] @ 0x79
  12212. 8005a56: 2b02 cmp r3, #2
  12213. 8005a58: d9e9 bls.n 8005a2e <Uart1ReceivedDataProcessCallback+0x8ee>
  12214. }
  12215. osMutexRelease (resMeasurementsMutex);
  12216. 8005a5a: 4b5b ldr r3, [pc, #364] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12217. 8005a5c: 681b ldr r3, [r3, #0]
  12218. 8005a5e: 4618 mov r0, r3
  12219. 8005a60: f00e fd78 bl 8014554 <osMutexRelease>
  12220. respStatus = spOK;
  12221. 8005a64: 2300 movs r3, #0
  12222. 8005a66: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12223. } else {
  12224. respStatus = spInternalError;
  12225. }
  12226. break;
  12227. 8005a6a: e12a b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12228. respStatus = spInternalError;
  12229. 8005a6c: 23fc movs r3, #252 @ 0xfc
  12230. 8005a6e: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12231. break;
  12232. 8005a72: e126 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12233. case spSetCurrentMeasOffsets:
  12234. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  12235. 8005a74: 4b54 ldr r3, [pc, #336] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12236. 8005a76: 681b ldr r3, [r3, #0]
  12237. 8005a78: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12238. 8005a7c: 4618 mov r0, r3
  12239. 8005a7e: f00e fd1e bl 80144be <osMutexAcquire>
  12240. 8005a82: 4603 mov r3, r0
  12241. 8005a84: 2b00 cmp r3, #0
  12242. 8005a86: d123 bne.n 8005ad0 <Uart1ReceivedDataProcessCallback+0x990>
  12243. for (uint8_t i = 0; i < 3; i++) {
  12244. 8005a88: 2300 movs r3, #0
  12245. 8005a8a: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12246. 8005a8e: e012 b.n 8005ab6 <Uart1ReceivedDataProcessCallback+0x976>
  12247. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  12248. 8005a90: 683b ldr r3, [r7, #0]
  12249. 8005a92: f103 000c add.w r0, r3, #12
  12250. 8005a96: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12251. 8005a9a: 00db lsls r3, r3, #3
  12252. 8005a9c: 4a4c ldr r2, [pc, #304] @ (8005bd0 <Uart1ReceivedDataProcessCallback+0xa90>)
  12253. 8005a9e: 4413 add r3, r2
  12254. 8005aa0: 1d1a adds r2, r3, #4
  12255. 8005aa2: f107 0344 add.w r3, r7, #68 @ 0x44
  12256. 8005aa6: 4619 mov r1, r3
  12257. 8005aa8: f7fd ffe4 bl 8003a74 <ReadWordFromBufer>
  12258. for (uint8_t i = 0; i < 3; i++) {
  12259. 8005aac: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12260. 8005ab0: 3301 adds r3, #1
  12261. 8005ab2: f887 3078 strb.w r3, [r7, #120] @ 0x78
  12262. 8005ab6: f897 3078 ldrb.w r3, [r7, #120] @ 0x78
  12263. 8005aba: 2b02 cmp r3, #2
  12264. 8005abc: d9e8 bls.n 8005a90 <Uart1ReceivedDataProcessCallback+0x950>
  12265. }
  12266. osMutexRelease (resMeasurementsMutex);
  12267. 8005abe: 4b42 ldr r3, [pc, #264] @ (8005bc8 <Uart1ReceivedDataProcessCallback+0xa88>)
  12268. 8005ac0: 681b ldr r3, [r3, #0]
  12269. 8005ac2: 4618 mov r0, r3
  12270. 8005ac4: f00e fd46 bl 8014554 <osMutexRelease>
  12271. respStatus = spOK;
  12272. 8005ac8: 2300 movs r3, #0
  12273. 8005aca: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12274. } else {
  12275. respStatus = spInternalError;
  12276. }
  12277. break;
  12278. 8005ace: e0f8 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12279. respStatus = spInternalError;
  12280. 8005ad0: 23fc movs r3, #252 @ 0xfc
  12281. 8005ad2: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12282. break;
  12283. 8005ad6: e0f4 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12284. __ASM volatile ("cpsid i" : : : "memory");
  12285. 8005ad8: b672 cpsid i
  12286. }
  12287. 8005ada: bf00 nop
  12288. case spResetSystem:
  12289. __disable_irq();
  12290. NVIC_SystemReset();
  12291. 8005adc: f7fe ff62 bl 80049a4 <__NVIC_SystemReset>
  12292. break;
  12293. case spSetPositonX:
  12294. PositionControlTaskData posXData = { 0 };
  12295. 8005ae0: f04f 0300 mov.w r3, #0
  12296. 8005ae4: 617b str r3, [r7, #20]
  12297. if (positionXControlTaskInitArg.positionSettingQueue != NULL)
  12298. 8005ae6: 4b3b ldr r3, [pc, #236] @ (8005bd4 <Uart1ReceivedDataProcessCallback+0xa94>)
  12299. 8005ae8: 691b ldr r3, [r3, #16]
  12300. 8005aea: 2b00 cmp r3, #0
  12301. 8005aec: f000 80e6 beq.w 8005cbc <Uart1ReceivedDataProcessCallback+0xb7c>
  12302. {
  12303. float posXPercent = 0;
  12304. 8005af0: f04f 0300 mov.w r3, #0
  12305. 8005af4: 60fb str r3, [r7, #12]
  12306. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posXPercent);
  12307. 8005af6: 683b ldr r3, [r7, #0]
  12308. 8005af8: 330c adds r3, #12
  12309. 8005afa: f107 020c add.w r2, r7, #12
  12310. 8005afe: f107 0144 add.w r1, r7, #68 @ 0x44
  12311. 8005b02: 4618 mov r0, r3
  12312. 8005b04: f7fd ff81 bl 8003a0a <ReadFloatFromBuffer>
  12313. float posXDegress = MAX_X_AXE_ANGLE * posXPercent * 0.01;
  12314. 8005b08: edd7 7a03 vldr s15, [r7, #12]
  12315. 8005b0c: ed9f 7a32 vldr s14, [pc, #200] @ 8005bd8 <Uart1ReceivedDataProcessCallback+0xa98>
  12316. 8005b10: ee67 7a87 vmul.f32 s15, s15, s14
  12317. 8005b14: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12318. 8005b18: ed9f 6b27 vldr d6, [pc, #156] @ 8005bb8 <Uart1ReceivedDataProcessCallback+0xa78>
  12319. 8005b1c: ee27 7b06 vmul.f64 d7, d7, d6
  12320. 8005b20: eef7 7bc7 vcvt.f32.f64 s15, d7
  12321. 8005b24: edc7 7a18 vstr s15, [r7, #96] @ 0x60
  12322. float angleDelta = 360 / ENCODER_X_IMP_PER_TURN;
  12323. 8005b28: 4b2c ldr r3, [pc, #176] @ (8005bdc <Uart1ReceivedDataProcessCallback+0xa9c>)
  12324. 8005b2a: 65fb str r3, [r7, #92] @ 0x5c
  12325. float rest = fmodf(posXDegress, angleDelta);
  12326. 8005b2c: edd7 0a17 vldr s1, [r7, #92] @ 0x5c
  12327. 8005b30: ed97 0a18 vldr s0, [r7, #96] @ 0x60
  12328. 8005b34: f012 fcde bl 80184f4 <fmodf>
  12329. 8005b38: ed87 0a16 vstr s0, [r7, #88] @ 0x58
  12330. if ( rest > (angleDelta/2))
  12331. 8005b3c: ed97 7a17 vldr s14, [r7, #92] @ 0x5c
  12332. 8005b40: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12333. 8005b44: eec7 7a26 vdiv.f32 s15, s14, s13
  12334. 8005b48: ed97 7a16 vldr s14, [r7, #88] @ 0x58
  12335. 8005b4c: eeb4 7ae7 vcmpe.f32 s14, s15
  12336. 8005b50: eef1 fa10 vmrs APSR_nzcv, fpscr
  12337. 8005b54: dd14 ble.n 8005b80 <Uart1ReceivedDataProcessCallback+0xa40>
  12338. {
  12339. posXData.positionSettingValue = 100 * (posXDegress - rest + angleDelta) / MAX_X_AXE_ANGLE;
  12340. 8005b56: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12341. 8005b5a: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12342. 8005b5e: ee37 7a67 vsub.f32 s14, s14, s15
  12343. 8005b62: edd7 7a17 vldr s15, [r7, #92] @ 0x5c
  12344. 8005b66: ee77 7a27 vadd.f32 s15, s14, s15
  12345. 8005b6a: ed9f 7a1d vldr s14, [pc, #116] @ 8005be0 <Uart1ReceivedDataProcessCallback+0xaa0>
  12346. 8005b6e: ee27 7a87 vmul.f32 s14, s15, s14
  12347. 8005b72: eddf 6a19 vldr s13, [pc, #100] @ 8005bd8 <Uart1ReceivedDataProcessCallback+0xa98>
  12348. 8005b76: eec7 7a26 vdiv.f32 s15, s14, s13
  12349. 8005b7a: edc7 7a05 vstr s15, [r7, #20]
  12350. 8005b7e: e00f b.n 8005ba0 <Uart1ReceivedDataProcessCallback+0xa60>
  12351. }
  12352. else
  12353. {
  12354. posXData.positionSettingValue = 100 * (posXDegress - rest) / MAX_X_AXE_ANGLE;
  12355. 8005b80: ed97 7a18 vldr s14, [r7, #96] @ 0x60
  12356. 8005b84: edd7 7a16 vldr s15, [r7, #88] @ 0x58
  12357. 8005b88: ee77 7a67 vsub.f32 s15, s14, s15
  12358. 8005b8c: ed9f 7a14 vldr s14, [pc, #80] @ 8005be0 <Uart1ReceivedDataProcessCallback+0xaa0>
  12359. 8005b90: ee27 7a87 vmul.f32 s14, s15, s14
  12360. 8005b94: eddf 6a10 vldr s13, [pc, #64] @ 8005bd8 <Uart1ReceivedDataProcessCallback+0xa98>
  12361. 8005b98: eec7 7a26 vdiv.f32 s15, s14, s13
  12362. 8005b9c: edc7 7a05 vstr s15, [r7, #20]
  12363. }
  12364. osMessageQueuePut(positionXControlTaskInitArg.positionSettingQueue, &posXData, 0, 0);
  12365. 8005ba0: 4b0c ldr r3, [pc, #48] @ (8005bd4 <Uart1ReceivedDataProcessCallback+0xa94>)
  12366. 8005ba2: 6918 ldr r0, [r3, #16]
  12367. 8005ba4: f107 0114 add.w r1, r7, #20
  12368. 8005ba8: 2300 movs r3, #0
  12369. 8005baa: 2200 movs r2, #0
  12370. 8005bac: f00e fd82 bl 80146b4 <osMessageQueuePut>
  12371. }
  12372. break;
  12373. 8005bb0: e084 b.n 8005cbc <Uart1ReceivedDataProcessCallback+0xb7c>
  12374. 8005bb2: bf00 nop
  12375. 8005bb4: f3af 8000 nop.w
  12376. 8005bb8: 47ae147b .word 0x47ae147b
  12377. 8005bbc: 3f847ae1 .word 0x3f847ae1
  12378. 8005bc0: 2400081c .word 0x2400081c
  12379. 8005bc4: 24000860 .word 0x24000860
  12380. 8005bc8: 24000818 .word 0x24000818
  12381. 8005bcc: 24000000 .word 0x24000000
  12382. 8005bd0: 24000018 .word 0x24000018
  12383. 8005bd4: 240008b4 .word 0x240008b4
  12384. 8005bd8: 43b40000 .word 0x43b40000
  12385. 8005bdc: 41900000 .word 0x41900000
  12386. 8005be0: 42c80000 .word 0x42c80000
  12387. case spSetPositonY:
  12388. PositionControlTaskData posYData = { 0 };
  12389. 8005be4: f04f 0300 mov.w r3, #0
  12390. 8005be8: 613b str r3, [r7, #16]
  12391. if (positionYControlTaskInitArg.positionSettingQueue != NULL)
  12392. 8005bea: 4b4b ldr r3, [pc, #300] @ (8005d18 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12393. 8005bec: 691b ldr r3, [r3, #16]
  12394. 8005bee: 2b00 cmp r3, #0
  12395. 8005bf0: d066 beq.n 8005cc0 <Uart1ReceivedDataProcessCallback+0xb80>
  12396. {
  12397. float posYPercent = 0;
  12398. 8005bf2: f04f 0300 mov.w r3, #0
  12399. 8005bf6: 60bb str r3, [r7, #8]
  12400. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posYPercent);
  12401. 8005bf8: 683b ldr r3, [r7, #0]
  12402. 8005bfa: 330c adds r3, #12
  12403. 8005bfc: f107 0208 add.w r2, r7, #8
  12404. 8005c00: f107 0144 add.w r1, r7, #68 @ 0x44
  12405. 8005c04: 4618 mov r0, r3
  12406. 8005c06: f7fd ff00 bl 8003a0a <ReadFloatFromBuffer>
  12407. float posYDegress = MAX_Y_AXE_ANGLE * posYPercent * 0.01;
  12408. 8005c0a: edd7 7a02 vldr s15, [r7, #8]
  12409. 8005c0e: ed9f 7a43 vldr s14, [pc, #268] @ 8005d1c <Uart1ReceivedDataProcessCallback+0xbdc>
  12410. 8005c12: ee67 7a87 vmul.f32 s15, s15, s14
  12411. 8005c16: eeb7 7ae7 vcvt.f64.f32 d7, s15
  12412. 8005c1a: ed9f 6b3d vldr d6, [pc, #244] @ 8005d10 <Uart1ReceivedDataProcessCallback+0xbd0>
  12413. 8005c1e: ee27 7b06 vmul.f64 d7, d7, d6
  12414. 8005c22: eef7 7bc7 vcvt.f32.f64 s15, d7
  12415. 8005c26: edc7 7a1b vstr s15, [r7, #108] @ 0x6c
  12416. float angleDelta = 360 / ENCODER_Y_IMP_PER_TURN;
  12417. 8005c2a: 4b3d ldr r3, [pc, #244] @ (8005d20 <Uart1ReceivedDataProcessCallback+0xbe0>)
  12418. 8005c2c: 66bb str r3, [r7, #104] @ 0x68
  12419. float rest = fmodf(posYDegress, angleDelta);
  12420. 8005c2e: edd7 0a1a vldr s1, [r7, #104] @ 0x68
  12421. 8005c32: ed97 0a1b vldr s0, [r7, #108] @ 0x6c
  12422. 8005c36: f012 fc5d bl 80184f4 <fmodf>
  12423. 8005c3a: ed87 0a19 vstr s0, [r7, #100] @ 0x64
  12424. if ( rest > (angleDelta/2))
  12425. 8005c3e: ed97 7a1a vldr s14, [r7, #104] @ 0x68
  12426. 8005c42: eef0 6a00 vmov.f32 s13, #0 @ 0x40000000 2.0
  12427. 8005c46: eec7 7a26 vdiv.f32 s15, s14, s13
  12428. 8005c4a: ed97 7a19 vldr s14, [r7, #100] @ 0x64
  12429. 8005c4e: eeb4 7ae7 vcmpe.f32 s14, s15
  12430. 8005c52: eef1 fa10 vmrs APSR_nzcv, fpscr
  12431. 8005c56: dd14 ble.n 8005c82 <Uart1ReceivedDataProcessCallback+0xb42>
  12432. {
  12433. posYData.positionSettingValue = 100 * (posYDegress - rest + angleDelta) / MAX_Y_AXE_ANGLE;
  12434. 8005c58: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12435. 8005c5c: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12436. 8005c60: ee37 7a67 vsub.f32 s14, s14, s15
  12437. 8005c64: edd7 7a1a vldr s15, [r7, #104] @ 0x68
  12438. 8005c68: ee77 7a27 vadd.f32 s15, s14, s15
  12439. 8005c6c: ed9f 7a2d vldr s14, [pc, #180] @ 8005d24 <Uart1ReceivedDataProcessCallback+0xbe4>
  12440. 8005c70: ee27 7a87 vmul.f32 s14, s15, s14
  12441. 8005c74: eddf 6a29 vldr s13, [pc, #164] @ 8005d1c <Uart1ReceivedDataProcessCallback+0xbdc>
  12442. 8005c78: eec7 7a26 vdiv.f32 s15, s14, s13
  12443. 8005c7c: edc7 7a04 vstr s15, [r7, #16]
  12444. 8005c80: e00f b.n 8005ca2 <Uart1ReceivedDataProcessCallback+0xb62>
  12445. }
  12446. else
  12447. {
  12448. posYData.positionSettingValue = 100 * (posYDegress - rest) / MAX_Y_AXE_ANGLE;
  12449. 8005c82: ed97 7a1b vldr s14, [r7, #108] @ 0x6c
  12450. 8005c86: edd7 7a19 vldr s15, [r7, #100] @ 0x64
  12451. 8005c8a: ee77 7a67 vsub.f32 s15, s14, s15
  12452. 8005c8e: ed9f 7a25 vldr s14, [pc, #148] @ 8005d24 <Uart1ReceivedDataProcessCallback+0xbe4>
  12453. 8005c92: ee27 7a87 vmul.f32 s14, s15, s14
  12454. 8005c96: eddf 6a21 vldr s13, [pc, #132] @ 8005d1c <Uart1ReceivedDataProcessCallback+0xbdc>
  12455. 8005c9a: eec7 7a26 vdiv.f32 s15, s14, s13
  12456. 8005c9e: edc7 7a04 vstr s15, [r7, #16]
  12457. }
  12458. osMessageQueuePut(positionYControlTaskInitArg.positionSettingQueue, &posYData, 0, 0);
  12459. 8005ca2: 4b1d ldr r3, [pc, #116] @ (8005d18 <Uart1ReceivedDataProcessCallback+0xbd8>)
  12460. 8005ca4: 6918 ldr r0, [r3, #16]
  12461. 8005ca6: f107 0110 add.w r1, r7, #16
  12462. 8005caa: 2300 movs r3, #0
  12463. 8005cac: 2200 movs r2, #0
  12464. 8005cae: f00e fd01 bl 80146b4 <osMessageQueuePut>
  12465. }
  12466. break;
  12467. 8005cb2: e005 b.n 8005cc0 <Uart1ReceivedDataProcessCallback+0xb80>
  12468. default: respStatus = spUnknownCommand; break;
  12469. 8005cb4: 23fd movs r3, #253 @ 0xfd
  12470. 8005cb6: f887 3097 strb.w r3, [r7, #151] @ 0x97
  12471. 8005cba: e002 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12472. break;
  12473. 8005cbc: bf00 nop
  12474. 8005cbe: e000 b.n 8005cc2 <Uart1ReceivedDataProcessCallback+0xb82>
  12475. break;
  12476. 8005cc0: bf00 nop
  12477. }
  12478. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  12479. 8005cc2: 6f7b ldr r3, [r7, #116] @ 0x74
  12480. 8005cc4: 6898 ldr r0, [r3, #8]
  12481. 8005cc6: 683b ldr r3, [r7, #0]
  12482. 8005cc8: 8819 ldrh r1, [r3, #0]
  12483. 8005cca: 683b ldr r3, [r7, #0]
  12484. 8005ccc: 789a ldrb r2, [r3, #2]
  12485. 8005cce: 4b16 ldr r3, [pc, #88] @ (8005d28 <Uart1ReceivedDataProcessCallback+0xbe8>)
  12486. 8005cd0: 881b ldrh r3, [r3, #0]
  12487. 8005cd2: f997 4097 ldrsb.w r4, [r7, #151] @ 0x97
  12488. 8005cd6: 9301 str r3, [sp, #4]
  12489. 8005cd8: 4b14 ldr r3, [pc, #80] @ (8005d2c <Uart1ReceivedDataProcessCallback+0xbec>)
  12490. 8005cda: 9300 str r3, [sp, #0]
  12491. 8005cdc: 4623 mov r3, r4
  12492. 8005cde: f7fd fefd bl 8003adc <PrepareRespFrame>
  12493. 8005ce2: 4603 mov r3, r0
  12494. 8005ce4: f8a7 3072 strh.w r3, [r7, #114] @ 0x72
  12495. if (dataToSend > 0) {
  12496. 8005ce8: f8b7 3072 ldrh.w r3, [r7, #114] @ 0x72
  12497. 8005cec: 2b00 cmp r3, #0
  12498. 8005cee: d008 beq.n 8005d02 <Uart1ReceivedDataProcessCallback+0xbc2>
  12499. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  12500. 8005cf0: 6f7b ldr r3, [r7, #116] @ 0x74
  12501. 8005cf2: 6b18 ldr r0, [r3, #48] @ 0x30
  12502. 8005cf4: 6f7b ldr r3, [r7, #116] @ 0x74
  12503. 8005cf6: 689b ldr r3, [r3, #8]
  12504. 8005cf8: f8b7 2072 ldrh.w r2, [r7, #114] @ 0x72
  12505. 8005cfc: 4619 mov r1, r3
  12506. 8005cfe: f00b fbb1 bl 8011464 <HAL_UART_Transmit_IT>
  12507. }
  12508. #ifdef SERIAL_PROTOCOL_DBG
  12509. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  12510. #endif
  12511. }
  12512. 8005d02: bf00 nop
  12513. 8005d04: 379c adds r7, #156 @ 0x9c
  12514. 8005d06: 46bd mov sp, r7
  12515. 8005d08: bd90 pop {r4, r7, pc}
  12516. 8005d0a: bf00 nop
  12517. 8005d0c: f3af 8000 nop.w
  12518. 8005d10: 47ae147b .word 0x47ae147b
  12519. 8005d14: 3f847ae1 .word 0x3f847ae1
  12520. 8005d18: 240008e8 .word 0x240008e8
  12521. 8005d1c: 43b40000 .word 0x43b40000
  12522. 8005d20: 41900000 .word 0x41900000
  12523. 8005d24: 42c80000 .word 0x42c80000
  12524. 8005d28: 2400105c .word 0x2400105c
  12525. 8005d2c: 24000fdc .word 0x24000fdc
  12526. 08005d30 <Reset_Handler>:
  12527. .section .text.Reset_Handler
  12528. .weak Reset_Handler
  12529. .type Reset_Handler, %function
  12530. Reset_Handler:
  12531. ldr sp, =_estack /* set stack pointer */
  12532. 8005d30: f8df d034 ldr.w sp, [pc, #52] @ 8005d68 <LoopFillZerobss+0xe>
  12533. /* Call the clock system initialization function.*/
  12534. bl SystemInit
  12535. 8005d34: f7fe fdae bl 8004894 <SystemInit>
  12536. /* Copy the data segment initializers from flash to SRAM */
  12537. ldr r0, =_sdata
  12538. 8005d38: 480c ldr r0, [pc, #48] @ (8005d6c <LoopFillZerobss+0x12>)
  12539. ldr r1, =_edata
  12540. 8005d3a: 490d ldr r1, [pc, #52] @ (8005d70 <LoopFillZerobss+0x16>)
  12541. ldr r2, =_sidata
  12542. 8005d3c: 4a0d ldr r2, [pc, #52] @ (8005d74 <LoopFillZerobss+0x1a>)
  12543. movs r3, #0
  12544. 8005d3e: 2300 movs r3, #0
  12545. b LoopCopyDataInit
  12546. 8005d40: e002 b.n 8005d48 <LoopCopyDataInit>
  12547. 08005d42 <CopyDataInit>:
  12548. CopyDataInit:
  12549. ldr r4, [r2, r3]
  12550. 8005d42: 58d4 ldr r4, [r2, r3]
  12551. str r4, [r0, r3]
  12552. 8005d44: 50c4 str r4, [r0, r3]
  12553. adds r3, r3, #4
  12554. 8005d46: 3304 adds r3, #4
  12555. 08005d48 <LoopCopyDataInit>:
  12556. LoopCopyDataInit:
  12557. adds r4, r0, r3
  12558. 8005d48: 18c4 adds r4, r0, r3
  12559. cmp r4, r1
  12560. 8005d4a: 428c cmp r4, r1
  12561. bcc CopyDataInit
  12562. 8005d4c: d3f9 bcc.n 8005d42 <CopyDataInit>
  12563. /* Zero fill the bss segment. */
  12564. ldr r2, =_sbss
  12565. 8005d4e: 4a0a ldr r2, [pc, #40] @ (8005d78 <LoopFillZerobss+0x1e>)
  12566. ldr r4, =_ebss
  12567. 8005d50: 4c0a ldr r4, [pc, #40] @ (8005d7c <LoopFillZerobss+0x22>)
  12568. movs r3, #0
  12569. 8005d52: 2300 movs r3, #0
  12570. b LoopFillZerobss
  12571. 8005d54: e001 b.n 8005d5a <LoopFillZerobss>
  12572. 08005d56 <FillZerobss>:
  12573. FillZerobss:
  12574. str r3, [r2]
  12575. 8005d56: 6013 str r3, [r2, #0]
  12576. adds r2, r2, #4
  12577. 8005d58: 3204 adds r2, #4
  12578. 08005d5a <LoopFillZerobss>:
  12579. LoopFillZerobss:
  12580. cmp r2, r4
  12581. 8005d5a: 42a2 cmp r2, r4
  12582. bcc FillZerobss
  12583. 8005d5c: d3fb bcc.n 8005d56 <FillZerobss>
  12584. /* Call static constructors */
  12585. bl __libc_init_array
  12586. 8005d5e: f012 fb3f bl 80183e0 <__libc_init_array>
  12587. /* Call the application's entry point.*/
  12588. bl main
  12589. 8005d62: f7fa fc77 bl 8000654 <main>
  12590. bx lr
  12591. 8005d66: 4770 bx lr
  12592. ldr sp, =_estack /* set stack pointer */
  12593. 8005d68: 24060000 .word 0x24060000
  12594. ldr r0, =_sdata
  12595. 8005d6c: 24000000 .word 0x24000000
  12596. ldr r1, =_edata
  12597. 8005d70: 24000098 .word 0x24000098
  12598. ldr r2, =_sidata
  12599. 8005d74: 08018764 .word 0x08018764
  12600. ldr r2, =_sbss
  12601. 8005d78: 240000a0 .word 0x240000a0
  12602. ldr r4, =_ebss
  12603. 8005d7c: 2401318c .word 0x2401318c
  12604. 08005d80 <ADC3_IRQHandler>:
  12605. * @retval None
  12606. */
  12607. .section .text.Default_Handler,"ax",%progbits
  12608. Default_Handler:
  12609. Infinite_Loop:
  12610. b Infinite_Loop
  12611. 8005d80: e7fe b.n 8005d80 <ADC3_IRQHandler>
  12612. ...
  12613. 08005d84 <HAL_Init>:
  12614. * need to ensure that the SysTick time base is always set to 1 millisecond
  12615. * to have correct HAL operation.
  12616. * @retval HAL status
  12617. */
  12618. HAL_StatusTypeDef HAL_Init(void)
  12619. {
  12620. 8005d84: b580 push {r7, lr}
  12621. 8005d86: b082 sub sp, #8
  12622. 8005d88: af00 add r7, sp, #0
  12623. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  12624. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  12625. #endif /* DUAL_CORE && CORE_CM4 */
  12626. /* Set Interrupt Group Priority */
  12627. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  12628. 8005d8a: 2003 movs r0, #3
  12629. 8005d8c: f001 fee5 bl 8007b5a <HAL_NVIC_SetPriorityGrouping>
  12630. /* Update the SystemCoreClock global variable */
  12631. #if defined(RCC_D1CFGR_D1CPRE)
  12632. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  12633. 8005d90: f006 fbee bl 800c570 <HAL_RCC_GetSysClockFreq>
  12634. 8005d94: 4602 mov r2, r0
  12635. 8005d96: 4b15 ldr r3, [pc, #84] @ (8005dec <HAL_Init+0x68>)
  12636. 8005d98: 699b ldr r3, [r3, #24]
  12637. 8005d9a: 0a1b lsrs r3, r3, #8
  12638. 8005d9c: f003 030f and.w r3, r3, #15
  12639. 8005da0: 4913 ldr r1, [pc, #76] @ (8005df0 <HAL_Init+0x6c>)
  12640. 8005da2: 5ccb ldrb r3, [r1, r3]
  12641. 8005da4: f003 031f and.w r3, r3, #31
  12642. 8005da8: fa22 f303 lsr.w r3, r2, r3
  12643. 8005dac: 607b str r3, [r7, #4]
  12644. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  12645. #endif
  12646. /* Update the SystemD2Clock global variable */
  12647. #if defined(RCC_D1CFGR_HPRE)
  12648. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  12649. 8005dae: 4b0f ldr r3, [pc, #60] @ (8005dec <HAL_Init+0x68>)
  12650. 8005db0: 699b ldr r3, [r3, #24]
  12651. 8005db2: f003 030f and.w r3, r3, #15
  12652. 8005db6: 4a0e ldr r2, [pc, #56] @ (8005df0 <HAL_Init+0x6c>)
  12653. 8005db8: 5cd3 ldrb r3, [r2, r3]
  12654. 8005dba: f003 031f and.w r3, r3, #31
  12655. 8005dbe: 687a ldr r2, [r7, #4]
  12656. 8005dc0: fa22 f303 lsr.w r3, r2, r3
  12657. 8005dc4: 4a0b ldr r2, [pc, #44] @ (8005df4 <HAL_Init+0x70>)
  12658. 8005dc6: 6013 str r3, [r2, #0]
  12659. #endif
  12660. #if defined(DUAL_CORE) && defined(CORE_CM4)
  12661. SystemCoreClock = SystemD2Clock;
  12662. #else
  12663. SystemCoreClock = common_system_clock;
  12664. 8005dc8: 4a0b ldr r2, [pc, #44] @ (8005df8 <HAL_Init+0x74>)
  12665. 8005dca: 687b ldr r3, [r7, #4]
  12666. 8005dcc: 6013 str r3, [r2, #0]
  12667. #endif /* DUAL_CORE && CORE_CM4 */
  12668. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  12669. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  12670. 8005dce: 2005 movs r0, #5
  12671. 8005dd0: f7fe fc58 bl 8004684 <HAL_InitTick>
  12672. 8005dd4: 4603 mov r3, r0
  12673. 8005dd6: 2b00 cmp r3, #0
  12674. 8005dd8: d001 beq.n 8005dde <HAL_Init+0x5a>
  12675. {
  12676. return HAL_ERROR;
  12677. 8005dda: 2301 movs r3, #1
  12678. 8005ddc: e002 b.n 8005de4 <HAL_Init+0x60>
  12679. }
  12680. /* Init the low level hardware */
  12681. HAL_MspInit();
  12682. 8005dde: f7fd ff1b bl 8003c18 <HAL_MspInit>
  12683. /* Return function status */
  12684. return HAL_OK;
  12685. 8005de2: 2300 movs r3, #0
  12686. }
  12687. 8005de4: 4618 mov r0, r3
  12688. 8005de6: 3708 adds r7, #8
  12689. 8005de8: 46bd mov sp, r7
  12690. 8005dea: bd80 pop {r7, pc}
  12691. 8005dec: 58024400 .word 0x58024400
  12692. 8005df0: 0801870c .word 0x0801870c
  12693. 8005df4: 24000038 .word 0x24000038
  12694. 8005df8: 24000034 .word 0x24000034
  12695. 08005dfc <HAL_IncTick>:
  12696. * @note This function is declared as __weak to be overwritten in case of other
  12697. * implementations in user file.
  12698. * @retval None
  12699. */
  12700. __weak void HAL_IncTick(void)
  12701. {
  12702. 8005dfc: b480 push {r7}
  12703. 8005dfe: af00 add r7, sp, #0
  12704. uwTick += (uint32_t)uwTickFreq;
  12705. 8005e00: 4b06 ldr r3, [pc, #24] @ (8005e1c <HAL_IncTick+0x20>)
  12706. 8005e02: 781b ldrb r3, [r3, #0]
  12707. 8005e04: 461a mov r2, r3
  12708. 8005e06: 4b06 ldr r3, [pc, #24] @ (8005e20 <HAL_IncTick+0x24>)
  12709. 8005e08: 681b ldr r3, [r3, #0]
  12710. 8005e0a: 4413 add r3, r2
  12711. 8005e0c: 4a04 ldr r2, [pc, #16] @ (8005e20 <HAL_IncTick+0x24>)
  12712. 8005e0e: 6013 str r3, [r2, #0]
  12713. }
  12714. 8005e10: bf00 nop
  12715. 8005e12: 46bd mov sp, r7
  12716. 8005e14: f85d 7b04 ldr.w r7, [sp], #4
  12717. 8005e18: 4770 bx lr
  12718. 8005e1a: bf00 nop
  12719. 8005e1c: 24000040 .word 0x24000040
  12720. 8005e20: 24001060 .word 0x24001060
  12721. 08005e24 <HAL_GetTick>:
  12722. * @note This function is declared as __weak to be overwritten in case of other
  12723. * implementations in user file.
  12724. * @retval tick value
  12725. */
  12726. __weak uint32_t HAL_GetTick(void)
  12727. {
  12728. 8005e24: b480 push {r7}
  12729. 8005e26: af00 add r7, sp, #0
  12730. return uwTick;
  12731. 8005e28: 4b03 ldr r3, [pc, #12] @ (8005e38 <HAL_GetTick+0x14>)
  12732. 8005e2a: 681b ldr r3, [r3, #0]
  12733. }
  12734. 8005e2c: 4618 mov r0, r3
  12735. 8005e2e: 46bd mov sp, r7
  12736. 8005e30: f85d 7b04 ldr.w r7, [sp], #4
  12737. 8005e34: 4770 bx lr
  12738. 8005e36: bf00 nop
  12739. 8005e38: 24001060 .word 0x24001060
  12740. 08005e3c <HAL_GetREVID>:
  12741. /**
  12742. * @brief Returns the device revision identifier.
  12743. * @retval Device revision identifier
  12744. */
  12745. uint32_t HAL_GetREVID(void)
  12746. {
  12747. 8005e3c: b480 push {r7}
  12748. 8005e3e: af00 add r7, sp, #0
  12749. return((DBGMCU->IDCODE) >> 16);
  12750. 8005e40: 4b03 ldr r3, [pc, #12] @ (8005e50 <HAL_GetREVID+0x14>)
  12751. 8005e42: 681b ldr r3, [r3, #0]
  12752. 8005e44: 0c1b lsrs r3, r3, #16
  12753. }
  12754. 8005e46: 4618 mov r0, r3
  12755. 8005e48: 46bd mov sp, r7
  12756. 8005e4a: f85d 7b04 ldr.w r7, [sp], #4
  12757. 8005e4e: 4770 bx lr
  12758. 8005e50: 5c001000 .word 0x5c001000
  12759. 08005e54 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  12760. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  12761. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  12762. * @retval None
  12763. */
  12764. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  12765. {
  12766. 8005e54: b480 push {r7}
  12767. 8005e56: b083 sub sp, #12
  12768. 8005e58: af00 add r7, sp, #0
  12769. 8005e5a: 6078 str r0, [r7, #4]
  12770. /* Check the parameters */
  12771. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  12772. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  12773. 8005e5c: 4b06 ldr r3, [pc, #24] @ (8005e78 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12774. 8005e5e: 681b ldr r3, [r3, #0]
  12775. 8005e60: f023 0202 bic.w r2, r3, #2
  12776. 8005e64: 4904 ldr r1, [pc, #16] @ (8005e78 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12777. 8005e66: 687b ldr r3, [r7, #4]
  12778. 8005e68: 4313 orrs r3, r2
  12779. 8005e6a: 600b str r3, [r1, #0]
  12780. }
  12781. 8005e6c: bf00 nop
  12782. 8005e6e: 370c adds r7, #12
  12783. 8005e70: 46bd mov sp, r7
  12784. 8005e72: f85d 7b04 ldr.w r7, [sp], #4
  12785. 8005e76: 4770 bx lr
  12786. 8005e78: 58003c00 .word 0x58003c00
  12787. 08005e7c <HAL_SYSCFG_DisableVREFBUF>:
  12788. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  12789. *
  12790. * @retval None
  12791. */
  12792. void HAL_SYSCFG_DisableVREFBUF(void)
  12793. {
  12794. 8005e7c: b480 push {r7}
  12795. 8005e7e: af00 add r7, sp, #0
  12796. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  12797. 8005e80: 4b05 ldr r3, [pc, #20] @ (8005e98 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12798. 8005e82: 681b ldr r3, [r3, #0]
  12799. 8005e84: 4a04 ldr r2, [pc, #16] @ (8005e98 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12800. 8005e86: f023 0301 bic.w r3, r3, #1
  12801. 8005e8a: 6013 str r3, [r2, #0]
  12802. }
  12803. 8005e8c: bf00 nop
  12804. 8005e8e: 46bd mov sp, r7
  12805. 8005e90: f85d 7b04 ldr.w r7, [sp], #4
  12806. 8005e94: 4770 bx lr
  12807. 8005e96: bf00 nop
  12808. 8005e98: 58003c00 .word 0x58003c00
  12809. 08005e9c <HAL_SYSCFG_AnalogSwitchConfig>:
  12810. * @arg SYSCFG_SWITCH_PC3_CLOSE
  12811. * @retval None
  12812. */
  12813. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  12814. {
  12815. 8005e9c: b480 push {r7}
  12816. 8005e9e: b083 sub sp, #12
  12817. 8005ea0: af00 add r7, sp, #0
  12818. 8005ea2: 6078 str r0, [r7, #4]
  12819. 8005ea4: 6039 str r1, [r7, #0]
  12820. /* Check the parameter */
  12821. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  12822. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  12823. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  12824. 8005ea6: 4b07 ldr r3, [pc, #28] @ (8005ec4 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12825. 8005ea8: 685a ldr r2, [r3, #4]
  12826. 8005eaa: 687b ldr r3, [r7, #4]
  12827. 8005eac: 43db mvns r3, r3
  12828. 8005eae: 401a ands r2, r3
  12829. 8005eb0: 4904 ldr r1, [pc, #16] @ (8005ec4 <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12830. 8005eb2: 683b ldr r3, [r7, #0]
  12831. 8005eb4: 4313 orrs r3, r2
  12832. 8005eb6: 604b str r3, [r1, #4]
  12833. }
  12834. 8005eb8: bf00 nop
  12835. 8005eba: 370c adds r7, #12
  12836. 8005ebc: 46bd mov sp, r7
  12837. 8005ebe: f85d 7b04 ldr.w r7, [sp], #4
  12838. 8005ec2: 4770 bx lr
  12839. 8005ec4: 58000400 .word 0x58000400
  12840. 08005ec8 <LL_ADC_SetCommonClock>:
  12841. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  12842. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  12843. * @retval None
  12844. */
  12845. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  12846. {
  12847. 8005ec8: b480 push {r7}
  12848. 8005eca: b083 sub sp, #12
  12849. 8005ecc: af00 add r7, sp, #0
  12850. 8005ece: 6078 str r0, [r7, #4]
  12851. 8005ed0: 6039 str r1, [r7, #0]
  12852. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  12853. 8005ed2: 687b ldr r3, [r7, #4]
  12854. 8005ed4: 689b ldr r3, [r3, #8]
  12855. 8005ed6: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  12856. 8005eda: 683b ldr r3, [r7, #0]
  12857. 8005edc: 431a orrs r2, r3
  12858. 8005ede: 687b ldr r3, [r7, #4]
  12859. 8005ee0: 609a str r2, [r3, #8]
  12860. }
  12861. 8005ee2: bf00 nop
  12862. 8005ee4: 370c adds r7, #12
  12863. 8005ee6: 46bd mov sp, r7
  12864. 8005ee8: f85d 7b04 ldr.w r7, [sp], #4
  12865. 8005eec: 4770 bx lr
  12866. 08005eee <LL_ADC_SetCommonPathInternalCh>:
  12867. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12868. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12869. * @retval None
  12870. */
  12871. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  12872. {
  12873. 8005eee: b480 push {r7}
  12874. 8005ef0: b083 sub sp, #12
  12875. 8005ef2: af00 add r7, sp, #0
  12876. 8005ef4: 6078 str r0, [r7, #4]
  12877. 8005ef6: 6039 str r1, [r7, #0]
  12878. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  12879. 8005ef8: 687b ldr r3, [r7, #4]
  12880. 8005efa: 689b ldr r3, [r3, #8]
  12881. 8005efc: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  12882. 8005f00: 683b ldr r3, [r7, #0]
  12883. 8005f02: 431a orrs r2, r3
  12884. 8005f04: 687b ldr r3, [r7, #4]
  12885. 8005f06: 609a str r2, [r3, #8]
  12886. }
  12887. 8005f08: bf00 nop
  12888. 8005f0a: 370c adds r7, #12
  12889. 8005f0c: 46bd mov sp, r7
  12890. 8005f0e: f85d 7b04 ldr.w r7, [sp], #4
  12891. 8005f12: 4770 bx lr
  12892. 08005f14 <LL_ADC_GetCommonPathInternalCh>:
  12893. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  12894. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12895. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12896. */
  12897. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  12898. {
  12899. 8005f14: b480 push {r7}
  12900. 8005f16: b083 sub sp, #12
  12901. 8005f18: af00 add r7, sp, #0
  12902. 8005f1a: 6078 str r0, [r7, #4]
  12903. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  12904. 8005f1c: 687b ldr r3, [r7, #4]
  12905. 8005f1e: 689b ldr r3, [r3, #8]
  12906. 8005f20: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  12907. }
  12908. 8005f24: 4618 mov r0, r3
  12909. 8005f26: 370c adds r7, #12
  12910. 8005f28: 46bd mov sp, r7
  12911. 8005f2a: f85d 7b04 ldr.w r7, [sp], #4
  12912. 8005f2e: 4770 bx lr
  12913. 08005f30 <LL_ADC_SetOffset>:
  12914. * Other channels are slow channels (conversion rate: refer to reference manual).
  12915. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  12916. * @retval None
  12917. */
  12918. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  12919. {
  12920. 8005f30: b480 push {r7}
  12921. 8005f32: b087 sub sp, #28
  12922. 8005f34: af00 add r7, sp, #0
  12923. 8005f36: 60f8 str r0, [r7, #12]
  12924. 8005f38: 60b9 str r1, [r7, #8]
  12925. 8005f3a: 607a str r2, [r7, #4]
  12926. 8005f3c: 603b str r3, [r7, #0]
  12927. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12928. 8005f3e: 68fb ldr r3, [r7, #12]
  12929. 8005f40: 3360 adds r3, #96 @ 0x60
  12930. 8005f42: 461a mov r2, r3
  12931. 8005f44: 68bb ldr r3, [r7, #8]
  12932. 8005f46: 009b lsls r3, r3, #2
  12933. 8005f48: 4413 add r3, r2
  12934. 8005f4a: 617b str r3, [r7, #20]
  12935. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12936. }
  12937. else
  12938. #endif /* ADC_VER_V5_V90 */
  12939. {
  12940. MODIFY_REG(*preg,
  12941. 8005f4c: 697b ldr r3, [r7, #20]
  12942. 8005f4e: 681b ldr r3, [r3, #0]
  12943. 8005f50: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  12944. 8005f54: 687b ldr r3, [r7, #4]
  12945. 8005f56: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  12946. 8005f5a: 683b ldr r3, [r7, #0]
  12947. 8005f5c: 430b orrs r3, r1
  12948. 8005f5e: 431a orrs r2, r3
  12949. 8005f60: 697b ldr r3, [r7, #20]
  12950. 8005f62: 601a str r2, [r3, #0]
  12951. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  12952. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12953. }
  12954. }
  12955. 8005f64: bf00 nop
  12956. 8005f66: 371c adds r7, #28
  12957. 8005f68: 46bd mov sp, r7
  12958. 8005f6a: f85d 7b04 ldr.w r7, [sp], #4
  12959. 8005f6e: 4770 bx lr
  12960. 08005f70 <LL_ADC_SetDataRightShift>:
  12961. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  12962. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  12963. * @retval Returned None
  12964. */
  12965. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  12966. {
  12967. 8005f70: b480 push {r7}
  12968. 8005f72: b085 sub sp, #20
  12969. 8005f74: af00 add r7, sp, #0
  12970. 8005f76: 60f8 str r0, [r7, #12]
  12971. 8005f78: 60b9 str r1, [r7, #8]
  12972. 8005f7a: 607a str r2, [r7, #4]
  12973. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  12974. 8005f7c: 68fb ldr r3, [r7, #12]
  12975. 8005f7e: 691b ldr r3, [r3, #16]
  12976. 8005f80: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  12977. 8005f84: 68bb ldr r3, [r7, #8]
  12978. 8005f86: f003 031f and.w r3, r3, #31
  12979. 8005f8a: 6879 ldr r1, [r7, #4]
  12980. 8005f8c: fa01 f303 lsl.w r3, r1, r3
  12981. 8005f90: 431a orrs r2, r3
  12982. 8005f92: 68fb ldr r3, [r7, #12]
  12983. 8005f94: 611a str r2, [r3, #16]
  12984. }
  12985. 8005f96: bf00 nop
  12986. 8005f98: 3714 adds r7, #20
  12987. 8005f9a: 46bd mov sp, r7
  12988. 8005f9c: f85d 7b04 ldr.w r7, [sp], #4
  12989. 8005fa0: 4770 bx lr
  12990. 08005fa2 <LL_ADC_SetOffsetSignedSaturation>:
  12991. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  12992. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  12993. * @retval Returned None
  12994. */
  12995. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  12996. {
  12997. 8005fa2: b480 push {r7}
  12998. 8005fa4: b087 sub sp, #28
  12999. 8005fa6: af00 add r7, sp, #0
  13000. 8005fa8: 60f8 str r0, [r7, #12]
  13001. 8005faa: 60b9 str r1, [r7, #8]
  13002. 8005fac: 607a str r2, [r7, #4]
  13003. /* Function not available on this instance */
  13004. }
  13005. else
  13006. #endif /* ADC_VER_V5_V90 */
  13007. {
  13008. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  13009. 8005fae: 68fb ldr r3, [r7, #12]
  13010. 8005fb0: 3360 adds r3, #96 @ 0x60
  13011. 8005fb2: 461a mov r2, r3
  13012. 8005fb4: 68bb ldr r3, [r7, #8]
  13013. 8005fb6: 009b lsls r3, r3, #2
  13014. 8005fb8: 4413 add r3, r2
  13015. 8005fba: 617b str r3, [r7, #20]
  13016. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  13017. 8005fbc: 697b ldr r3, [r7, #20]
  13018. 8005fbe: 681b ldr r3, [r3, #0]
  13019. 8005fc0: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  13020. 8005fc4: 687b ldr r3, [r7, #4]
  13021. 8005fc6: 431a orrs r2, r3
  13022. 8005fc8: 697b ldr r3, [r7, #20]
  13023. 8005fca: 601a str r2, [r3, #0]
  13024. }
  13025. }
  13026. 8005fcc: bf00 nop
  13027. 8005fce: 371c adds r7, #28
  13028. 8005fd0: 46bd mov sp, r7
  13029. 8005fd2: f85d 7b04 ldr.w r7, [sp], #4
  13030. 8005fd6: 4770 bx lr
  13031. 08005fd8 <LL_ADC_REG_IsTriggerSourceSWStart>:
  13032. * @param ADCx ADC instance
  13033. * @retval Value "0" if trigger source external trigger
  13034. * Value "1" if trigger source SW start.
  13035. */
  13036. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  13037. {
  13038. 8005fd8: b480 push {r7}
  13039. 8005fda: b083 sub sp, #12
  13040. 8005fdc: af00 add r7, sp, #0
  13041. 8005fde: 6078 str r0, [r7, #4]
  13042. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  13043. 8005fe0: 687b ldr r3, [r7, #4]
  13044. 8005fe2: 68db ldr r3, [r3, #12]
  13045. 8005fe4: f403 6340 and.w r3, r3, #3072 @ 0xc00
  13046. 8005fe8: 2b00 cmp r3, #0
  13047. 8005fea: d101 bne.n 8005ff0 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  13048. 8005fec: 2301 movs r3, #1
  13049. 8005fee: e000 b.n 8005ff2 <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  13050. 8005ff0: 2300 movs r3, #0
  13051. }
  13052. 8005ff2: 4618 mov r0, r3
  13053. 8005ff4: 370c adds r7, #12
  13054. 8005ff6: 46bd mov sp, r7
  13055. 8005ff8: f85d 7b04 ldr.w r7, [sp], #4
  13056. 8005ffc: 4770 bx lr
  13057. 08005ffe <LL_ADC_REG_SetSequencerRanks>:
  13058. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  13059. * Other channels are slow channels (conversion rate: refer to reference manual).
  13060. * @retval None
  13061. */
  13062. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  13063. {
  13064. 8005ffe: b480 push {r7}
  13065. 8006000: b087 sub sp, #28
  13066. 8006002: af00 add r7, sp, #0
  13067. 8006004: 60f8 str r0, [r7, #12]
  13068. 8006006: 60b9 str r1, [r7, #8]
  13069. 8006008: 607a str r2, [r7, #4]
  13070. /* Set bits with content of parameter "Channel" with bits position */
  13071. /* in register and register position depending on parameter "Rank". */
  13072. /* Parameters "Rank" and "Channel" are used with masks because containing */
  13073. /* other bits reserved for other purpose. */
  13074. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  13075. 800600a: 68fb ldr r3, [r7, #12]
  13076. 800600c: 3330 adds r3, #48 @ 0x30
  13077. 800600e: 461a mov r2, r3
  13078. 8006010: 68bb ldr r3, [r7, #8]
  13079. 8006012: 0a1b lsrs r3, r3, #8
  13080. 8006014: 009b lsls r3, r3, #2
  13081. 8006016: f003 030c and.w r3, r3, #12
  13082. 800601a: 4413 add r3, r2
  13083. 800601c: 617b str r3, [r7, #20]
  13084. MODIFY_REG(*preg,
  13085. 800601e: 697b ldr r3, [r7, #20]
  13086. 8006020: 681a ldr r2, [r3, #0]
  13087. 8006022: 68bb ldr r3, [r7, #8]
  13088. 8006024: f003 031f and.w r3, r3, #31
  13089. 8006028: 211f movs r1, #31
  13090. 800602a: fa01 f303 lsl.w r3, r1, r3
  13091. 800602e: 43db mvns r3, r3
  13092. 8006030: 401a ands r2, r3
  13093. 8006032: 687b ldr r3, [r7, #4]
  13094. 8006034: 0e9b lsrs r3, r3, #26
  13095. 8006036: f003 011f and.w r1, r3, #31
  13096. 800603a: 68bb ldr r3, [r7, #8]
  13097. 800603c: f003 031f and.w r3, r3, #31
  13098. 8006040: fa01 f303 lsl.w r3, r1, r3
  13099. 8006044: 431a orrs r2, r3
  13100. 8006046: 697b ldr r3, [r7, #20]
  13101. 8006048: 601a str r2, [r3, #0]
  13102. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  13103. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  13104. }
  13105. 800604a: bf00 nop
  13106. 800604c: 371c adds r7, #28
  13107. 800604e: 46bd mov sp, r7
  13108. 8006050: f85d 7b04 ldr.w r7, [sp], #4
  13109. 8006054: 4770 bx lr
  13110. 08006056 <LL_ADC_REG_SetDataTransferMode>:
  13111. * @param ADCx ADC instance
  13112. * @param DataTransferMode Select Data Management configuration
  13113. * @retval None
  13114. */
  13115. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  13116. {
  13117. 8006056: b480 push {r7}
  13118. 8006058: b083 sub sp, #12
  13119. 800605a: af00 add r7, sp, #0
  13120. 800605c: 6078 str r0, [r7, #4]
  13121. 800605e: 6039 str r1, [r7, #0]
  13122. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  13123. 8006060: 687b ldr r3, [r7, #4]
  13124. 8006062: 68db ldr r3, [r3, #12]
  13125. 8006064: f023 0203 bic.w r2, r3, #3
  13126. 8006068: 683b ldr r3, [r7, #0]
  13127. 800606a: 431a orrs r2, r3
  13128. 800606c: 687b ldr r3, [r7, #4]
  13129. 800606e: 60da str r2, [r3, #12]
  13130. }
  13131. 8006070: bf00 nop
  13132. 8006072: 370c adds r7, #12
  13133. 8006074: 46bd mov sp, r7
  13134. 8006076: f85d 7b04 ldr.w r7, [sp], #4
  13135. 800607a: 4770 bx lr
  13136. 0800607c <LL_ADC_SetChannelSamplingTime>:
  13137. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  13138. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  13139. * @retval None
  13140. */
  13141. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  13142. {
  13143. 800607c: b480 push {r7}
  13144. 800607e: b087 sub sp, #28
  13145. 8006080: af00 add r7, sp, #0
  13146. 8006082: 60f8 str r0, [r7, #12]
  13147. 8006084: 60b9 str r1, [r7, #8]
  13148. 8006086: 607a str r2, [r7, #4]
  13149. /* Set bits with content of parameter "SamplingTime" with bits position */
  13150. /* in register and register position depending on parameter "Channel". */
  13151. /* Parameter "Channel" is used with masks because containing */
  13152. /* other bits reserved for other purpose. */
  13153. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  13154. 8006088: 68fb ldr r3, [r7, #12]
  13155. 800608a: 3314 adds r3, #20
  13156. 800608c: 461a mov r2, r3
  13157. 800608e: 68bb ldr r3, [r7, #8]
  13158. 8006090: 0e5b lsrs r3, r3, #25
  13159. 8006092: 009b lsls r3, r3, #2
  13160. 8006094: f003 0304 and.w r3, r3, #4
  13161. 8006098: 4413 add r3, r2
  13162. 800609a: 617b str r3, [r7, #20]
  13163. MODIFY_REG(*preg,
  13164. 800609c: 697b ldr r3, [r7, #20]
  13165. 800609e: 681a ldr r2, [r3, #0]
  13166. 80060a0: 68bb ldr r3, [r7, #8]
  13167. 80060a2: 0d1b lsrs r3, r3, #20
  13168. 80060a4: f003 031f and.w r3, r3, #31
  13169. 80060a8: 2107 movs r1, #7
  13170. 80060aa: fa01 f303 lsl.w r3, r1, r3
  13171. 80060ae: 43db mvns r3, r3
  13172. 80060b0: 401a ands r2, r3
  13173. 80060b2: 68bb ldr r3, [r7, #8]
  13174. 80060b4: 0d1b lsrs r3, r3, #20
  13175. 80060b6: f003 031f and.w r3, r3, #31
  13176. 80060ba: 6879 ldr r1, [r7, #4]
  13177. 80060bc: fa01 f303 lsl.w r3, r1, r3
  13178. 80060c0: 431a orrs r2, r3
  13179. 80060c2: 697b ldr r3, [r7, #20]
  13180. 80060c4: 601a str r2, [r3, #0]
  13181. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  13182. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  13183. }
  13184. 80060c6: bf00 nop
  13185. 80060c8: 371c adds r7, #28
  13186. 80060ca: 46bd mov sp, r7
  13187. 80060cc: f85d 7b04 ldr.w r7, [sp], #4
  13188. 80060d0: 4770 bx lr
  13189. ...
  13190. 080060d4 <LL_ADC_SetChannelSingleDiff>:
  13191. * @arg @ref LL_ADC_SINGLE_ENDED
  13192. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  13193. * @retval None
  13194. */
  13195. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  13196. {
  13197. 80060d4: b480 push {r7}
  13198. 80060d6: b085 sub sp, #20
  13199. 80060d8: af00 add r7, sp, #0
  13200. 80060da: 60f8 str r0, [r7, #12]
  13201. 80060dc: 60b9 str r1, [r7, #8]
  13202. 80060de: 607a str r2, [r7, #4]
  13203. }
  13204. #else /* ADC_VER_V5_V90 */
  13205. /* Bits of channels in single or differential mode are set only for */
  13206. /* differential mode (for single mode, mask of bits allowed to be set is */
  13207. /* shifted out of range of bits of channels in single or differential mode. */
  13208. MODIFY_REG(ADCx->DIFSEL,
  13209. 80060e0: 68fb ldr r3, [r7, #12]
  13210. 80060e2: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  13211. 80060e6: 68bb ldr r3, [r7, #8]
  13212. 80060e8: f3c3 0313 ubfx r3, r3, #0, #20
  13213. 80060ec: 43db mvns r3, r3
  13214. 80060ee: 401a ands r2, r3
  13215. 80060f0: 687b ldr r3, [r7, #4]
  13216. 80060f2: f003 0318 and.w r3, r3, #24
  13217. 80060f6: 4908 ldr r1, [pc, #32] @ (8006118 <LL_ADC_SetChannelSingleDiff+0x44>)
  13218. 80060f8: 40d9 lsrs r1, r3
  13219. 80060fa: 68bb ldr r3, [r7, #8]
  13220. 80060fc: 400b ands r3, r1
  13221. 80060fe: f3c3 0313 ubfx r3, r3, #0, #20
  13222. 8006102: 431a orrs r2, r3
  13223. 8006104: 68fb ldr r3, [r7, #12]
  13224. 8006106: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  13225. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  13226. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  13227. #endif /* ADC_VER_V5_V90 */
  13228. }
  13229. 800610a: bf00 nop
  13230. 800610c: 3714 adds r7, #20
  13231. 800610e: 46bd mov sp, r7
  13232. 8006110: f85d 7b04 ldr.w r7, [sp], #4
  13233. 8006114: 4770 bx lr
  13234. 8006116: bf00 nop
  13235. 8006118: 000fffff .word 0x000fffff
  13236. 0800611c <LL_ADC_GetMultimode>:
  13237. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  13238. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  13239. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  13240. */
  13241. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  13242. {
  13243. 800611c: b480 push {r7}
  13244. 800611e: b083 sub sp, #12
  13245. 8006120: af00 add r7, sp, #0
  13246. 8006122: 6078 str r0, [r7, #4]
  13247. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  13248. 8006124: 687b ldr r3, [r7, #4]
  13249. 8006126: 689b ldr r3, [r3, #8]
  13250. 8006128: f003 031f and.w r3, r3, #31
  13251. }
  13252. 800612c: 4618 mov r0, r3
  13253. 800612e: 370c adds r7, #12
  13254. 8006130: 46bd mov sp, r7
  13255. 8006132: f85d 7b04 ldr.w r7, [sp], #4
  13256. 8006136: 4770 bx lr
  13257. 08006138 <LL_ADC_DisableDeepPowerDown>:
  13258. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  13259. * @param ADCx ADC instance
  13260. * @retval None
  13261. */
  13262. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  13263. {
  13264. 8006138: b480 push {r7}
  13265. 800613a: b083 sub sp, #12
  13266. 800613c: af00 add r7, sp, #0
  13267. 800613e: 6078 str r0, [r7, #4]
  13268. /* Note: Write register with some additional bits forced to state reset */
  13269. /* instead of modifying only the selected bit for this function, */
  13270. /* to not interfere with bits with HW property "rs". */
  13271. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  13272. 8006140: 687b ldr r3, [r7, #4]
  13273. 8006142: 689a ldr r2, [r3, #8]
  13274. 8006144: 4b04 ldr r3, [pc, #16] @ (8006158 <LL_ADC_DisableDeepPowerDown+0x20>)
  13275. 8006146: 4013 ands r3, r2
  13276. 8006148: 687a ldr r2, [r7, #4]
  13277. 800614a: 6093 str r3, [r2, #8]
  13278. }
  13279. 800614c: bf00 nop
  13280. 800614e: 370c adds r7, #12
  13281. 8006150: 46bd mov sp, r7
  13282. 8006152: f85d 7b04 ldr.w r7, [sp], #4
  13283. 8006156: 4770 bx lr
  13284. 8006158: 5fffffc0 .word 0x5fffffc0
  13285. 0800615c <LL_ADC_IsDeepPowerDownEnabled>:
  13286. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  13287. * @param ADCx ADC instance
  13288. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  13289. */
  13290. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  13291. {
  13292. 800615c: b480 push {r7}
  13293. 800615e: b083 sub sp, #12
  13294. 8006160: af00 add r7, sp, #0
  13295. 8006162: 6078 str r0, [r7, #4]
  13296. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  13297. 8006164: 687b ldr r3, [r7, #4]
  13298. 8006166: 689b ldr r3, [r3, #8]
  13299. 8006168: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  13300. 800616c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  13301. 8006170: d101 bne.n 8006176 <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  13302. 8006172: 2301 movs r3, #1
  13303. 8006174: e000 b.n 8006178 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  13304. 8006176: 2300 movs r3, #0
  13305. }
  13306. 8006178: 4618 mov r0, r3
  13307. 800617a: 370c adds r7, #12
  13308. 800617c: 46bd mov sp, r7
  13309. 800617e: f85d 7b04 ldr.w r7, [sp], #4
  13310. 8006182: 4770 bx lr
  13311. 08006184 <LL_ADC_EnableInternalRegulator>:
  13312. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  13313. * @param ADCx ADC instance
  13314. * @retval None
  13315. */
  13316. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  13317. {
  13318. 8006184: b480 push {r7}
  13319. 8006186: b083 sub sp, #12
  13320. 8006188: af00 add r7, sp, #0
  13321. 800618a: 6078 str r0, [r7, #4]
  13322. /* Note: Write register with some additional bits forced to state reset */
  13323. /* instead of modifying only the selected bit for this function, */
  13324. /* to not interfere with bits with HW property "rs". */
  13325. MODIFY_REG(ADCx->CR,
  13326. 800618c: 687b ldr r3, [r7, #4]
  13327. 800618e: 689a ldr r2, [r3, #8]
  13328. 8006190: 4b05 ldr r3, [pc, #20] @ (80061a8 <LL_ADC_EnableInternalRegulator+0x24>)
  13329. 8006192: 4013 ands r3, r2
  13330. 8006194: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  13331. 8006198: 687b ldr r3, [r7, #4]
  13332. 800619a: 609a str r2, [r3, #8]
  13333. ADC_CR_BITS_PROPERTY_RS,
  13334. ADC_CR_ADVREGEN);
  13335. }
  13336. 800619c: bf00 nop
  13337. 800619e: 370c adds r7, #12
  13338. 80061a0: 46bd mov sp, r7
  13339. 80061a2: f85d 7b04 ldr.w r7, [sp], #4
  13340. 80061a6: 4770 bx lr
  13341. 80061a8: 6fffffc0 .word 0x6fffffc0
  13342. 080061ac <LL_ADC_IsInternalRegulatorEnabled>:
  13343. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  13344. * @param ADCx ADC instance
  13345. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  13346. */
  13347. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  13348. {
  13349. 80061ac: b480 push {r7}
  13350. 80061ae: b083 sub sp, #12
  13351. 80061b0: af00 add r7, sp, #0
  13352. 80061b2: 6078 str r0, [r7, #4]
  13353. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  13354. 80061b4: 687b ldr r3, [r7, #4]
  13355. 80061b6: 689b ldr r3, [r3, #8]
  13356. 80061b8: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  13357. 80061bc: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13358. 80061c0: d101 bne.n 80061c6 <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  13359. 80061c2: 2301 movs r3, #1
  13360. 80061c4: e000 b.n 80061c8 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  13361. 80061c6: 2300 movs r3, #0
  13362. }
  13363. 80061c8: 4618 mov r0, r3
  13364. 80061ca: 370c adds r7, #12
  13365. 80061cc: 46bd mov sp, r7
  13366. 80061ce: f85d 7b04 ldr.w r7, [sp], #4
  13367. 80061d2: 4770 bx lr
  13368. 080061d4 <LL_ADC_Enable>:
  13369. * @rmtoll CR ADEN LL_ADC_Enable
  13370. * @param ADCx ADC instance
  13371. * @retval None
  13372. */
  13373. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  13374. {
  13375. 80061d4: b480 push {r7}
  13376. 80061d6: b083 sub sp, #12
  13377. 80061d8: af00 add r7, sp, #0
  13378. 80061da: 6078 str r0, [r7, #4]
  13379. /* Note: Write register with some additional bits forced to state reset */
  13380. /* instead of modifying only the selected bit for this function, */
  13381. /* to not interfere with bits with HW property "rs". */
  13382. MODIFY_REG(ADCx->CR,
  13383. 80061dc: 687b ldr r3, [r7, #4]
  13384. 80061de: 689a ldr r2, [r3, #8]
  13385. 80061e0: 4b05 ldr r3, [pc, #20] @ (80061f8 <LL_ADC_Enable+0x24>)
  13386. 80061e2: 4013 ands r3, r2
  13387. 80061e4: f043 0201 orr.w r2, r3, #1
  13388. 80061e8: 687b ldr r3, [r7, #4]
  13389. 80061ea: 609a str r2, [r3, #8]
  13390. ADC_CR_BITS_PROPERTY_RS,
  13391. ADC_CR_ADEN);
  13392. }
  13393. 80061ec: bf00 nop
  13394. 80061ee: 370c adds r7, #12
  13395. 80061f0: 46bd mov sp, r7
  13396. 80061f2: f85d 7b04 ldr.w r7, [sp], #4
  13397. 80061f6: 4770 bx lr
  13398. 80061f8: 7fffffc0 .word 0x7fffffc0
  13399. 080061fc <LL_ADC_Disable>:
  13400. * @rmtoll CR ADDIS LL_ADC_Disable
  13401. * @param ADCx ADC instance
  13402. * @retval None
  13403. */
  13404. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  13405. {
  13406. 80061fc: b480 push {r7}
  13407. 80061fe: b083 sub sp, #12
  13408. 8006200: af00 add r7, sp, #0
  13409. 8006202: 6078 str r0, [r7, #4]
  13410. /* Note: Write register with some additional bits forced to state reset */
  13411. /* instead of modifying only the selected bit for this function, */
  13412. /* to not interfere with bits with HW property "rs". */
  13413. MODIFY_REG(ADCx->CR,
  13414. 8006204: 687b ldr r3, [r7, #4]
  13415. 8006206: 689a ldr r2, [r3, #8]
  13416. 8006208: 4b05 ldr r3, [pc, #20] @ (8006220 <LL_ADC_Disable+0x24>)
  13417. 800620a: 4013 ands r3, r2
  13418. 800620c: f043 0202 orr.w r2, r3, #2
  13419. 8006210: 687b ldr r3, [r7, #4]
  13420. 8006212: 609a str r2, [r3, #8]
  13421. ADC_CR_BITS_PROPERTY_RS,
  13422. ADC_CR_ADDIS);
  13423. }
  13424. 8006214: bf00 nop
  13425. 8006216: 370c adds r7, #12
  13426. 8006218: 46bd mov sp, r7
  13427. 800621a: f85d 7b04 ldr.w r7, [sp], #4
  13428. 800621e: 4770 bx lr
  13429. 8006220: 7fffffc0 .word 0x7fffffc0
  13430. 08006224 <LL_ADC_IsEnabled>:
  13431. * @rmtoll CR ADEN LL_ADC_IsEnabled
  13432. * @param ADCx ADC instance
  13433. * @retval 0: ADC is disabled, 1: ADC is enabled.
  13434. */
  13435. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  13436. {
  13437. 8006224: b480 push {r7}
  13438. 8006226: b083 sub sp, #12
  13439. 8006228: af00 add r7, sp, #0
  13440. 800622a: 6078 str r0, [r7, #4]
  13441. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  13442. 800622c: 687b ldr r3, [r7, #4]
  13443. 800622e: 689b ldr r3, [r3, #8]
  13444. 8006230: f003 0301 and.w r3, r3, #1
  13445. 8006234: 2b01 cmp r3, #1
  13446. 8006236: d101 bne.n 800623c <LL_ADC_IsEnabled+0x18>
  13447. 8006238: 2301 movs r3, #1
  13448. 800623a: e000 b.n 800623e <LL_ADC_IsEnabled+0x1a>
  13449. 800623c: 2300 movs r3, #0
  13450. }
  13451. 800623e: 4618 mov r0, r3
  13452. 8006240: 370c adds r7, #12
  13453. 8006242: 46bd mov sp, r7
  13454. 8006244: f85d 7b04 ldr.w r7, [sp], #4
  13455. 8006248: 4770 bx lr
  13456. 0800624a <LL_ADC_IsDisableOngoing>:
  13457. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  13458. * @param ADCx ADC instance
  13459. * @retval 0: no ADC disable command on going.
  13460. */
  13461. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  13462. {
  13463. 800624a: b480 push {r7}
  13464. 800624c: b083 sub sp, #12
  13465. 800624e: af00 add r7, sp, #0
  13466. 8006250: 6078 str r0, [r7, #4]
  13467. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  13468. 8006252: 687b ldr r3, [r7, #4]
  13469. 8006254: 689b ldr r3, [r3, #8]
  13470. 8006256: f003 0302 and.w r3, r3, #2
  13471. 800625a: 2b02 cmp r3, #2
  13472. 800625c: d101 bne.n 8006262 <LL_ADC_IsDisableOngoing+0x18>
  13473. 800625e: 2301 movs r3, #1
  13474. 8006260: e000 b.n 8006264 <LL_ADC_IsDisableOngoing+0x1a>
  13475. 8006262: 2300 movs r3, #0
  13476. }
  13477. 8006264: 4618 mov r0, r3
  13478. 8006266: 370c adds r7, #12
  13479. 8006268: 46bd mov sp, r7
  13480. 800626a: f85d 7b04 ldr.w r7, [sp], #4
  13481. 800626e: 4770 bx lr
  13482. 08006270 <LL_ADC_REG_StartConversion>:
  13483. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  13484. * @param ADCx ADC instance
  13485. * @retval None
  13486. */
  13487. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  13488. {
  13489. 8006270: b480 push {r7}
  13490. 8006272: b083 sub sp, #12
  13491. 8006274: af00 add r7, sp, #0
  13492. 8006276: 6078 str r0, [r7, #4]
  13493. /* Note: Write register with some additional bits forced to state reset */
  13494. /* instead of modifying only the selected bit for this function, */
  13495. /* to not interfere with bits with HW property "rs". */
  13496. MODIFY_REG(ADCx->CR,
  13497. 8006278: 687b ldr r3, [r7, #4]
  13498. 800627a: 689a ldr r2, [r3, #8]
  13499. 800627c: 4b05 ldr r3, [pc, #20] @ (8006294 <LL_ADC_REG_StartConversion+0x24>)
  13500. 800627e: 4013 ands r3, r2
  13501. 8006280: f043 0204 orr.w r2, r3, #4
  13502. 8006284: 687b ldr r3, [r7, #4]
  13503. 8006286: 609a str r2, [r3, #8]
  13504. ADC_CR_BITS_PROPERTY_RS,
  13505. ADC_CR_ADSTART);
  13506. }
  13507. 8006288: bf00 nop
  13508. 800628a: 370c adds r7, #12
  13509. 800628c: 46bd mov sp, r7
  13510. 800628e: f85d 7b04 ldr.w r7, [sp], #4
  13511. 8006292: 4770 bx lr
  13512. 8006294: 7fffffc0 .word 0x7fffffc0
  13513. 08006298 <LL_ADC_REG_IsConversionOngoing>:
  13514. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  13515. * @param ADCx ADC instance
  13516. * @retval 0: no conversion is on going on ADC group regular.
  13517. */
  13518. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  13519. {
  13520. 8006298: b480 push {r7}
  13521. 800629a: b083 sub sp, #12
  13522. 800629c: af00 add r7, sp, #0
  13523. 800629e: 6078 str r0, [r7, #4]
  13524. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  13525. 80062a0: 687b ldr r3, [r7, #4]
  13526. 80062a2: 689b ldr r3, [r3, #8]
  13527. 80062a4: f003 0304 and.w r3, r3, #4
  13528. 80062a8: 2b04 cmp r3, #4
  13529. 80062aa: d101 bne.n 80062b0 <LL_ADC_REG_IsConversionOngoing+0x18>
  13530. 80062ac: 2301 movs r3, #1
  13531. 80062ae: e000 b.n 80062b2 <LL_ADC_REG_IsConversionOngoing+0x1a>
  13532. 80062b0: 2300 movs r3, #0
  13533. }
  13534. 80062b2: 4618 mov r0, r3
  13535. 80062b4: 370c adds r7, #12
  13536. 80062b6: 46bd mov sp, r7
  13537. 80062b8: f85d 7b04 ldr.w r7, [sp], #4
  13538. 80062bc: 4770 bx lr
  13539. 080062be <LL_ADC_INJ_IsConversionOngoing>:
  13540. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  13541. * @param ADCx ADC instance
  13542. * @retval 0: no conversion is on going on ADC group injected.
  13543. */
  13544. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  13545. {
  13546. 80062be: b480 push {r7}
  13547. 80062c0: b083 sub sp, #12
  13548. 80062c2: af00 add r7, sp, #0
  13549. 80062c4: 6078 str r0, [r7, #4]
  13550. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  13551. 80062c6: 687b ldr r3, [r7, #4]
  13552. 80062c8: 689b ldr r3, [r3, #8]
  13553. 80062ca: f003 0308 and.w r3, r3, #8
  13554. 80062ce: 2b08 cmp r3, #8
  13555. 80062d0: d101 bne.n 80062d6 <LL_ADC_INJ_IsConversionOngoing+0x18>
  13556. 80062d2: 2301 movs r3, #1
  13557. 80062d4: e000 b.n 80062d8 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  13558. 80062d6: 2300 movs r3, #0
  13559. }
  13560. 80062d8: 4618 mov r0, r3
  13561. 80062da: 370c adds r7, #12
  13562. 80062dc: 46bd mov sp, r7
  13563. 80062de: f85d 7b04 ldr.w r7, [sp], #4
  13564. 80062e2: 4770 bx lr
  13565. 080062e4 <HAL_ADC_Init>:
  13566. * without disabling the other ADCs.
  13567. * @param hadc ADC handle
  13568. * @retval HAL status
  13569. */
  13570. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  13571. {
  13572. 80062e4: b590 push {r4, r7, lr}
  13573. 80062e6: b089 sub sp, #36 @ 0x24
  13574. 80062e8: af00 add r7, sp, #0
  13575. 80062ea: 6078 str r0, [r7, #4]
  13576. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13577. 80062ec: 2300 movs r3, #0
  13578. 80062ee: 77fb strb r3, [r7, #31]
  13579. uint32_t tmpCFGR;
  13580. uint32_t tmp_adc_reg_is_conversion_on_going;
  13581. __IO uint32_t wait_loop_index = 0UL;
  13582. 80062f0: 2300 movs r3, #0
  13583. 80062f2: 60bb str r3, [r7, #8]
  13584. uint32_t tmp_adc_is_conversion_on_going_regular;
  13585. uint32_t tmp_adc_is_conversion_on_going_injected;
  13586. /* Check ADC handle */
  13587. if (hadc == NULL)
  13588. 80062f4: 687b ldr r3, [r7, #4]
  13589. 80062f6: 2b00 cmp r3, #0
  13590. 80062f8: d101 bne.n 80062fe <HAL_ADC_Init+0x1a>
  13591. {
  13592. return HAL_ERROR;
  13593. 80062fa: 2301 movs r3, #1
  13594. 80062fc: e18f b.n 800661e <HAL_ADC_Init+0x33a>
  13595. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  13596. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  13597. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  13598. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  13599. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  13600. 80062fe: 687b ldr r3, [r7, #4]
  13601. 8006300: 68db ldr r3, [r3, #12]
  13602. 8006302: 2b00 cmp r3, #0
  13603. /* DISCEN and CONT bits cannot be set at the same time */
  13604. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  13605. /* Actions performed only if ADC is coming from state reset: */
  13606. /* - Initialization of ADC MSP */
  13607. if (hadc->State == HAL_ADC_STATE_RESET)
  13608. 8006304: 687b ldr r3, [r7, #4]
  13609. 8006306: 6d5b ldr r3, [r3, #84] @ 0x54
  13610. 8006308: 2b00 cmp r3, #0
  13611. 800630a: d109 bne.n 8006320 <HAL_ADC_Init+0x3c>
  13612. /* Init the low level hardware */
  13613. hadc->MspInitCallback(hadc);
  13614. #else
  13615. /* Init the low level hardware */
  13616. HAL_ADC_MspInit(hadc);
  13617. 800630c: 6878 ldr r0, [r7, #4]
  13618. 800630e: f7fd fcdf bl 8003cd0 <HAL_ADC_MspInit>
  13619. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  13620. /* Set ADC error code to none */
  13621. ADC_CLEAR_ERRORCODE(hadc);
  13622. 8006312: 687b ldr r3, [r7, #4]
  13623. 8006314: 2200 movs r2, #0
  13624. 8006316: 659a str r2, [r3, #88] @ 0x58
  13625. /* Initialize Lock */
  13626. hadc->Lock = HAL_UNLOCKED;
  13627. 8006318: 687b ldr r3, [r7, #4]
  13628. 800631a: 2200 movs r2, #0
  13629. 800631c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13630. }
  13631. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  13632. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  13633. 8006320: 687b ldr r3, [r7, #4]
  13634. 8006322: 681b ldr r3, [r3, #0]
  13635. 8006324: 4618 mov r0, r3
  13636. 8006326: f7ff ff19 bl 800615c <LL_ADC_IsDeepPowerDownEnabled>
  13637. 800632a: 4603 mov r3, r0
  13638. 800632c: 2b00 cmp r3, #0
  13639. 800632e: d004 beq.n 800633a <HAL_ADC_Init+0x56>
  13640. {
  13641. /* Disable ADC deep power down mode */
  13642. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  13643. 8006330: 687b ldr r3, [r7, #4]
  13644. 8006332: 681b ldr r3, [r3, #0]
  13645. 8006334: 4618 mov r0, r3
  13646. 8006336: f7ff feff bl 8006138 <LL_ADC_DisableDeepPowerDown>
  13647. /* System was in deep power down mode, calibration must
  13648. be relaunched or a previously saved calibration factor
  13649. re-applied once the ADC voltage regulator is enabled */
  13650. }
  13651. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13652. 800633a: 687b ldr r3, [r7, #4]
  13653. 800633c: 681b ldr r3, [r3, #0]
  13654. 800633e: 4618 mov r0, r3
  13655. 8006340: f7ff ff34 bl 80061ac <LL_ADC_IsInternalRegulatorEnabled>
  13656. 8006344: 4603 mov r3, r0
  13657. 8006346: 2b00 cmp r3, #0
  13658. 8006348: d114 bne.n 8006374 <HAL_ADC_Init+0x90>
  13659. {
  13660. /* Enable ADC internal voltage regulator */
  13661. LL_ADC_EnableInternalRegulator(hadc->Instance);
  13662. 800634a: 687b ldr r3, [r7, #4]
  13663. 800634c: 681b ldr r3, [r3, #0]
  13664. 800634e: 4618 mov r0, r3
  13665. 8006350: f7ff ff18 bl 8006184 <LL_ADC_EnableInternalRegulator>
  13666. /* Note: Variable divided by 2 to compensate partially */
  13667. /* CPU processing cycles, scaling in us split to not */
  13668. /* exceed 32 bits register capacity and handle low frequency. */
  13669. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  13670. 8006354: 4b87 ldr r3, [pc, #540] @ (8006574 <HAL_ADC_Init+0x290>)
  13671. 8006356: 681b ldr r3, [r3, #0]
  13672. 8006358: 099b lsrs r3, r3, #6
  13673. 800635a: 4a87 ldr r2, [pc, #540] @ (8006578 <HAL_ADC_Init+0x294>)
  13674. 800635c: fba2 2303 umull r2, r3, r2, r3
  13675. 8006360: 099b lsrs r3, r3, #6
  13676. 8006362: 3301 adds r3, #1
  13677. 8006364: 60bb str r3, [r7, #8]
  13678. while (wait_loop_index != 0UL)
  13679. 8006366: e002 b.n 800636e <HAL_ADC_Init+0x8a>
  13680. {
  13681. wait_loop_index--;
  13682. 8006368: 68bb ldr r3, [r7, #8]
  13683. 800636a: 3b01 subs r3, #1
  13684. 800636c: 60bb str r3, [r7, #8]
  13685. while (wait_loop_index != 0UL)
  13686. 800636e: 68bb ldr r3, [r7, #8]
  13687. 8006370: 2b00 cmp r3, #0
  13688. 8006372: d1f9 bne.n 8006368 <HAL_ADC_Init+0x84>
  13689. }
  13690. /* Verification that ADC voltage regulator is correctly enabled, whether */
  13691. /* or not ADC is coming from state reset (if any potential problem of */
  13692. /* clocking, voltage regulator would not be enabled). */
  13693. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  13694. 8006374: 687b ldr r3, [r7, #4]
  13695. 8006376: 681b ldr r3, [r3, #0]
  13696. 8006378: 4618 mov r0, r3
  13697. 800637a: f7ff ff17 bl 80061ac <LL_ADC_IsInternalRegulatorEnabled>
  13698. 800637e: 4603 mov r3, r0
  13699. 8006380: 2b00 cmp r3, #0
  13700. 8006382: d10d bne.n 80063a0 <HAL_ADC_Init+0xbc>
  13701. {
  13702. /* Update ADC state machine to error */
  13703. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13704. 8006384: 687b ldr r3, [r7, #4]
  13705. 8006386: 6d5b ldr r3, [r3, #84] @ 0x54
  13706. 8006388: f043 0210 orr.w r2, r3, #16
  13707. 800638c: 687b ldr r3, [r7, #4]
  13708. 800638e: 655a str r2, [r3, #84] @ 0x54
  13709. /* Set ADC error code to ADC peripheral internal error */
  13710. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  13711. 8006390: 687b ldr r3, [r7, #4]
  13712. 8006392: 6d9b ldr r3, [r3, #88] @ 0x58
  13713. 8006394: f043 0201 orr.w r2, r3, #1
  13714. 8006398: 687b ldr r3, [r7, #4]
  13715. 800639a: 659a str r2, [r3, #88] @ 0x58
  13716. tmp_hal_status = HAL_ERROR;
  13717. 800639c: 2301 movs r3, #1
  13718. 800639e: 77fb strb r3, [r7, #31]
  13719. /* Configuration of ADC parameters if previous preliminary actions are */
  13720. /* correctly completed and if there is no conversion on going on regular */
  13721. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  13722. /* called to update a parameter on the fly). */
  13723. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13724. 80063a0: 687b ldr r3, [r7, #4]
  13725. 80063a2: 681b ldr r3, [r3, #0]
  13726. 80063a4: 4618 mov r0, r3
  13727. 80063a6: f7ff ff77 bl 8006298 <LL_ADC_REG_IsConversionOngoing>
  13728. 80063aa: 6178 str r0, [r7, #20]
  13729. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  13730. 80063ac: 687b ldr r3, [r7, #4]
  13731. 80063ae: 6d5b ldr r3, [r3, #84] @ 0x54
  13732. 80063b0: f003 0310 and.w r3, r3, #16
  13733. 80063b4: 2b00 cmp r3, #0
  13734. 80063b6: f040 8129 bne.w 800660c <HAL_ADC_Init+0x328>
  13735. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  13736. 80063ba: 697b ldr r3, [r7, #20]
  13737. 80063bc: 2b00 cmp r3, #0
  13738. 80063be: f040 8125 bne.w 800660c <HAL_ADC_Init+0x328>
  13739. )
  13740. {
  13741. /* Set ADC state */
  13742. ADC_STATE_CLR_SET(hadc->State,
  13743. 80063c2: 687b ldr r3, [r7, #4]
  13744. 80063c4: 6d5b ldr r3, [r3, #84] @ 0x54
  13745. 80063c6: f423 7381 bic.w r3, r3, #258 @ 0x102
  13746. 80063ca: f043 0202 orr.w r2, r3, #2
  13747. 80063ce: 687b ldr r3, [r7, #4]
  13748. 80063d0: 655a str r2, [r3, #84] @ 0x54
  13749. /* Configuration of common ADC parameters */
  13750. /* Parameters update conditioned to ADC state: */
  13751. /* Parameters that can be updated only when ADC is disabled: */
  13752. /* - clock configuration */
  13753. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13754. 80063d2: 687b ldr r3, [r7, #4]
  13755. 80063d4: 681b ldr r3, [r3, #0]
  13756. 80063d6: 4618 mov r0, r3
  13757. 80063d8: f7ff ff24 bl 8006224 <LL_ADC_IsEnabled>
  13758. 80063dc: 4603 mov r3, r0
  13759. 80063de: 2b00 cmp r3, #0
  13760. 80063e0: d136 bne.n 8006450 <HAL_ADC_Init+0x16c>
  13761. {
  13762. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13763. 80063e2: 687b ldr r3, [r7, #4]
  13764. 80063e4: 681b ldr r3, [r3, #0]
  13765. 80063e6: 4a65 ldr r2, [pc, #404] @ (800657c <HAL_ADC_Init+0x298>)
  13766. 80063e8: 4293 cmp r3, r2
  13767. 80063ea: d004 beq.n 80063f6 <HAL_ADC_Init+0x112>
  13768. 80063ec: 687b ldr r3, [r7, #4]
  13769. 80063ee: 681b ldr r3, [r3, #0]
  13770. 80063f0: 4a63 ldr r2, [pc, #396] @ (8006580 <HAL_ADC_Init+0x29c>)
  13771. 80063f2: 4293 cmp r3, r2
  13772. 80063f4: d10e bne.n 8006414 <HAL_ADC_Init+0x130>
  13773. 80063f6: 4861 ldr r0, [pc, #388] @ (800657c <HAL_ADC_Init+0x298>)
  13774. 80063f8: f7ff ff14 bl 8006224 <LL_ADC_IsEnabled>
  13775. 80063fc: 4604 mov r4, r0
  13776. 80063fe: 4860 ldr r0, [pc, #384] @ (8006580 <HAL_ADC_Init+0x29c>)
  13777. 8006400: f7ff ff10 bl 8006224 <LL_ADC_IsEnabled>
  13778. 8006404: 4603 mov r3, r0
  13779. 8006406: 4323 orrs r3, r4
  13780. 8006408: 2b00 cmp r3, #0
  13781. 800640a: bf0c ite eq
  13782. 800640c: 2301 moveq r3, #1
  13783. 800640e: 2300 movne r3, #0
  13784. 8006410: b2db uxtb r3, r3
  13785. 8006412: e008 b.n 8006426 <HAL_ADC_Init+0x142>
  13786. 8006414: 485b ldr r0, [pc, #364] @ (8006584 <HAL_ADC_Init+0x2a0>)
  13787. 8006416: f7ff ff05 bl 8006224 <LL_ADC_IsEnabled>
  13788. 800641a: 4603 mov r3, r0
  13789. 800641c: 2b00 cmp r3, #0
  13790. 800641e: bf0c ite eq
  13791. 8006420: 2301 moveq r3, #1
  13792. 8006422: 2300 movne r3, #0
  13793. 8006424: b2db uxtb r3, r3
  13794. 8006426: 2b00 cmp r3, #0
  13795. 8006428: d012 beq.n 8006450 <HAL_ADC_Init+0x16c>
  13796. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  13797. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  13798. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  13799. /* (set into HAL_ADC_ConfigChannel() or */
  13800. /* HAL_ADCEx_InjectedConfigChannel() ) */
  13801. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  13802. 800642a: 687b ldr r3, [r7, #4]
  13803. 800642c: 681b ldr r3, [r3, #0]
  13804. 800642e: 4a53 ldr r2, [pc, #332] @ (800657c <HAL_ADC_Init+0x298>)
  13805. 8006430: 4293 cmp r3, r2
  13806. 8006432: d004 beq.n 800643e <HAL_ADC_Init+0x15a>
  13807. 8006434: 687b ldr r3, [r7, #4]
  13808. 8006436: 681b ldr r3, [r3, #0]
  13809. 8006438: 4a51 ldr r2, [pc, #324] @ (8006580 <HAL_ADC_Init+0x29c>)
  13810. 800643a: 4293 cmp r3, r2
  13811. 800643c: d101 bne.n 8006442 <HAL_ADC_Init+0x15e>
  13812. 800643e: 4a52 ldr r2, [pc, #328] @ (8006588 <HAL_ADC_Init+0x2a4>)
  13813. 8006440: e000 b.n 8006444 <HAL_ADC_Init+0x160>
  13814. 8006442: 4a52 ldr r2, [pc, #328] @ (800658c <HAL_ADC_Init+0x2a8>)
  13815. 8006444: 687b ldr r3, [r7, #4]
  13816. 8006446: 685b ldr r3, [r3, #4]
  13817. 8006448: 4619 mov r1, r3
  13818. 800644a: 4610 mov r0, r2
  13819. 800644c: f7ff fd3c bl 8005ec8 <LL_ADC_SetCommonClock>
  13820. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13821. }
  13822. #else
  13823. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  13824. 8006450: f7ff fcf4 bl 8005e3c <HAL_GetREVID>
  13825. 8006454: 4603 mov r3, r0
  13826. 8006456: f241 0203 movw r2, #4099 @ 0x1003
  13827. 800645a: 4293 cmp r3, r2
  13828. 800645c: d914 bls.n 8006488 <HAL_ADC_Init+0x1a4>
  13829. 800645e: 687b ldr r3, [r7, #4]
  13830. 8006460: 689b ldr r3, [r3, #8]
  13831. 8006462: 2b10 cmp r3, #16
  13832. 8006464: d110 bne.n 8006488 <HAL_ADC_Init+0x1a4>
  13833. {
  13834. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  13835. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13836. 8006466: 687b ldr r3, [r7, #4]
  13837. 8006468: 7d5b ldrb r3, [r3, #21]
  13838. 800646a: 035a lsls r2, r3, #13
  13839. hadc->Init.Overrun |
  13840. 800646c: 687b ldr r3, [r7, #4]
  13841. 800646e: 6b1b ldr r3, [r3, #48] @ 0x30
  13842. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13843. 8006470: 431a orrs r2, r3
  13844. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13845. 8006472: 687b ldr r3, [r7, #4]
  13846. 8006474: 689b ldr r3, [r3, #8]
  13847. hadc->Init.Overrun |
  13848. 8006476: 431a orrs r2, r3
  13849. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13850. 8006478: 687b ldr r3, [r7, #4]
  13851. 800647a: 7f1b ldrb r3, [r3, #28]
  13852. 800647c: 041b lsls r3, r3, #16
  13853. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13854. 800647e: 4313 orrs r3, r2
  13855. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13856. 8006480: f043 030c orr.w r3, r3, #12
  13857. 8006484: 61bb str r3, [r7, #24]
  13858. 8006486: e00d b.n 80064a4 <HAL_ADC_Init+0x1c0>
  13859. }
  13860. else
  13861. {
  13862. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13863. 8006488: 687b ldr r3, [r7, #4]
  13864. 800648a: 7d5b ldrb r3, [r3, #21]
  13865. 800648c: 035a lsls r2, r3, #13
  13866. hadc->Init.Overrun |
  13867. 800648e: 687b ldr r3, [r7, #4]
  13868. 8006490: 6b1b ldr r3, [r3, #48] @ 0x30
  13869. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13870. 8006492: 431a orrs r2, r3
  13871. hadc->Init.Resolution |
  13872. 8006494: 687b ldr r3, [r7, #4]
  13873. 8006496: 689b ldr r3, [r3, #8]
  13874. hadc->Init.Overrun |
  13875. 8006498: 431a orrs r2, r3
  13876. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13877. 800649a: 687b ldr r3, [r7, #4]
  13878. 800649c: 7f1b ldrb r3, [r3, #28]
  13879. 800649e: 041b lsls r3, r3, #16
  13880. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13881. 80064a0: 4313 orrs r3, r2
  13882. 80064a2: 61bb str r3, [r7, #24]
  13883. }
  13884. #endif /* ADC_VER_V5_3 */
  13885. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  13886. 80064a4: 687b ldr r3, [r7, #4]
  13887. 80064a6: 7f1b ldrb r3, [r3, #28]
  13888. 80064a8: 2b01 cmp r3, #1
  13889. 80064aa: d106 bne.n 80064ba <HAL_ADC_Init+0x1d6>
  13890. {
  13891. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  13892. 80064ac: 687b ldr r3, [r7, #4]
  13893. 80064ae: 6a1b ldr r3, [r3, #32]
  13894. 80064b0: 3b01 subs r3, #1
  13895. 80064b2: 045b lsls r3, r3, #17
  13896. 80064b4: 69ba ldr r2, [r7, #24]
  13897. 80064b6: 4313 orrs r3, r2
  13898. 80064b8: 61bb str r3, [r7, #24]
  13899. /* Enable external trigger if trigger selection is different of software */
  13900. /* start. */
  13901. /* Note: This configuration keeps the hardware feature of parameter */
  13902. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  13903. /* software start. */
  13904. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  13905. 80064ba: 687b ldr r3, [r7, #4]
  13906. 80064bc: 6a5b ldr r3, [r3, #36] @ 0x24
  13907. 80064be: 2b00 cmp r3, #0
  13908. 80064c0: d009 beq.n 80064d6 <HAL_ADC_Init+0x1f2>
  13909. {
  13910. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13911. 80064c2: 687b ldr r3, [r7, #4]
  13912. 80064c4: 6a5b ldr r3, [r3, #36] @ 0x24
  13913. 80064c6: f403 7278 and.w r2, r3, #992 @ 0x3e0
  13914. | hadc->Init.ExternalTrigConvEdge
  13915. 80064ca: 687b ldr r3, [r7, #4]
  13916. 80064cc: 6a9b ldr r3, [r3, #40] @ 0x28
  13917. 80064ce: 4313 orrs r3, r2
  13918. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13919. 80064d0: 69ba ldr r2, [r7, #24]
  13920. 80064d2: 4313 orrs r3, r2
  13921. 80064d4: 61bb str r3, [r7, #24]
  13922. /* Update Configuration Register CFGR */
  13923. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13924. }
  13925. #else
  13926. /* Update Configuration Register CFGR */
  13927. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13928. 80064d6: 687b ldr r3, [r7, #4]
  13929. 80064d8: 681b ldr r3, [r3, #0]
  13930. 80064da: 68da ldr r2, [r3, #12]
  13931. 80064dc: 4b2c ldr r3, [pc, #176] @ (8006590 <HAL_ADC_Init+0x2ac>)
  13932. 80064de: 4013 ands r3, r2
  13933. 80064e0: 687a ldr r2, [r7, #4]
  13934. 80064e2: 6812 ldr r2, [r2, #0]
  13935. 80064e4: 69b9 ldr r1, [r7, #24]
  13936. 80064e6: 430b orrs r3, r1
  13937. 80064e8: 60d3 str r3, [r2, #12]
  13938. /* Parameters that can be updated when ADC is disabled or enabled without */
  13939. /* conversion on going on regular and injected groups: */
  13940. /* - Conversion data management Init.ConversionDataManagement */
  13941. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  13942. /* - Oversampling parameters Init.Oversampling */
  13943. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13944. 80064ea: 687b ldr r3, [r7, #4]
  13945. 80064ec: 681b ldr r3, [r3, #0]
  13946. 80064ee: 4618 mov r0, r3
  13947. 80064f0: f7ff fed2 bl 8006298 <LL_ADC_REG_IsConversionOngoing>
  13948. 80064f4: 6138 str r0, [r7, #16]
  13949. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13950. 80064f6: 687b ldr r3, [r7, #4]
  13951. 80064f8: 681b ldr r3, [r3, #0]
  13952. 80064fa: 4618 mov r0, r3
  13953. 80064fc: f7ff fedf bl 80062be <LL_ADC_INJ_IsConversionOngoing>
  13954. 8006500: 60f8 str r0, [r7, #12]
  13955. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13956. 8006502: 693b ldr r3, [r7, #16]
  13957. 8006504: 2b00 cmp r3, #0
  13958. 8006506: d15f bne.n 80065c8 <HAL_ADC_Init+0x2e4>
  13959. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13960. 8006508: 68fb ldr r3, [r7, #12]
  13961. 800650a: 2b00 cmp r3, #0
  13962. 800650c: d15c bne.n 80065c8 <HAL_ADC_Init+0x2e4>
  13963. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13964. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13965. }
  13966. #else
  13967. tmpCFGR = (
  13968. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13969. 800650e: 687b ldr r3, [r7, #4]
  13970. 8006510: 7d1b ldrb r3, [r3, #20]
  13971. 8006512: 039a lsls r2, r3, #14
  13972. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13973. 8006514: 687b ldr r3, [r7, #4]
  13974. 8006516: 6adb ldr r3, [r3, #44] @ 0x2c
  13975. tmpCFGR = (
  13976. 8006518: 4313 orrs r3, r2
  13977. 800651a: 61bb str r3, [r7, #24]
  13978. #endif
  13979. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  13980. 800651c: 687b ldr r3, [r7, #4]
  13981. 800651e: 681b ldr r3, [r3, #0]
  13982. 8006520: 68da ldr r2, [r3, #12]
  13983. 8006522: 4b1c ldr r3, [pc, #112] @ (8006594 <HAL_ADC_Init+0x2b0>)
  13984. 8006524: 4013 ands r3, r2
  13985. 8006526: 687a ldr r2, [r7, #4]
  13986. 8006528: 6812 ldr r2, [r2, #0]
  13987. 800652a: 69b9 ldr r1, [r7, #24]
  13988. 800652c: 430b orrs r3, r1
  13989. 800652e: 60d3 str r3, [r2, #12]
  13990. if (hadc->Init.OversamplingMode == ENABLE)
  13991. 8006530: 687b ldr r3, [r7, #4]
  13992. 8006532: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  13993. 8006536: 2b01 cmp r3, #1
  13994. 8006538: d130 bne.n 800659c <HAL_ADC_Init+0x2b8>
  13995. #endif
  13996. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  13997. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  13998. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  13999. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  14000. 800653a: 687b ldr r3, [r7, #4]
  14001. 800653c: 6a5b ldr r3, [r3, #36] @ 0x24
  14002. 800653e: 2b00 cmp r3, #0
  14003. /* - Oversampling Ratio */
  14004. /* - Right bit shift */
  14005. /* - Left bit shift */
  14006. /* - Triggered mode */
  14007. /* - Oversampling mode (continued/resumed) */
  14008. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  14009. 8006540: 687b ldr r3, [r7, #4]
  14010. 8006542: 681b ldr r3, [r3, #0]
  14011. 8006544: 691a ldr r2, [r3, #16]
  14012. 8006546: 4b14 ldr r3, [pc, #80] @ (8006598 <HAL_ADC_Init+0x2b4>)
  14013. 8006548: 4013 ands r3, r2
  14014. 800654a: 687a ldr r2, [r7, #4]
  14015. 800654c: 6bd2 ldr r2, [r2, #60] @ 0x3c
  14016. 800654e: 3a01 subs r2, #1
  14017. 8006550: 0411 lsls r1, r2, #16
  14018. 8006552: 687a ldr r2, [r7, #4]
  14019. 8006554: 6c12 ldr r2, [r2, #64] @ 0x40
  14020. 8006556: 4311 orrs r1, r2
  14021. 8006558: 687a ldr r2, [r7, #4]
  14022. 800655a: 6c52 ldr r2, [r2, #68] @ 0x44
  14023. 800655c: 4311 orrs r1, r2
  14024. 800655e: 687a ldr r2, [r7, #4]
  14025. 8006560: 6c92 ldr r2, [r2, #72] @ 0x48
  14026. 8006562: 430a orrs r2, r1
  14027. 8006564: 431a orrs r2, r3
  14028. 8006566: 687b ldr r3, [r7, #4]
  14029. 8006568: 681b ldr r3, [r3, #0]
  14030. 800656a: f042 0201 orr.w r2, r2, #1
  14031. 800656e: 611a str r2, [r3, #16]
  14032. 8006570: e01c b.n 80065ac <HAL_ADC_Init+0x2c8>
  14033. 8006572: bf00 nop
  14034. 8006574: 24000034 .word 0x24000034
  14035. 8006578: 053e2d63 .word 0x053e2d63
  14036. 800657c: 40022000 .word 0x40022000
  14037. 8006580: 40022100 .word 0x40022100
  14038. 8006584: 58026000 .word 0x58026000
  14039. 8006588: 40022300 .word 0x40022300
  14040. 800658c: 58026300 .word 0x58026300
  14041. 8006590: fff0c003 .word 0xfff0c003
  14042. 8006594: ffffbffc .word 0xffffbffc
  14043. 8006598: fc00f81e .word 0xfc00f81e
  14044. }
  14045. else
  14046. {
  14047. /* Disable ADC oversampling scope on ADC group regular */
  14048. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  14049. 800659c: 687b ldr r3, [r7, #4]
  14050. 800659e: 681b ldr r3, [r3, #0]
  14051. 80065a0: 691a ldr r2, [r3, #16]
  14052. 80065a2: 687b ldr r3, [r7, #4]
  14053. 80065a4: 681b ldr r3, [r3, #0]
  14054. 80065a6: f022 0201 bic.w r2, r2, #1
  14055. 80065aa: 611a str r2, [r3, #16]
  14056. }
  14057. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  14058. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  14059. 80065ac: 687b ldr r3, [r7, #4]
  14060. 80065ae: 681b ldr r3, [r3, #0]
  14061. 80065b0: 691b ldr r3, [r3, #16]
  14062. 80065b2: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  14063. 80065b6: 687b ldr r3, [r7, #4]
  14064. 80065b8: 6b5a ldr r2, [r3, #52] @ 0x34
  14065. 80065ba: 687b ldr r3, [r7, #4]
  14066. 80065bc: 681b ldr r3, [r3, #0]
  14067. 80065be: 430a orrs r2, r1
  14068. 80065c0: 611a str r2, [r3, #16]
  14069. /* Configure the BOOST Mode */
  14070. ADC_ConfigureBoostMode(hadc);
  14071. }
  14072. #else
  14073. /* Configure the BOOST Mode */
  14074. ADC_ConfigureBoostMode(hadc);
  14075. 80065c2: 6878 ldr r0, [r7, #4]
  14076. 80065c4: f000 fde2 bl 800718c <ADC_ConfigureBoostMode>
  14077. /* Note: Scan mode is not present by hardware on this device, but */
  14078. /* emulated by software for alignment over all STM32 devices. */
  14079. /* - if scan mode is enabled, regular channels sequence length is set to */
  14080. /* parameter "NbrOfConversion". */
  14081. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  14082. 80065c8: 687b ldr r3, [r7, #4]
  14083. 80065ca: 68db ldr r3, [r3, #12]
  14084. 80065cc: 2b01 cmp r3, #1
  14085. 80065ce: d10c bne.n 80065ea <HAL_ADC_Init+0x306>
  14086. {
  14087. /* Set number of ranks in regular group sequencer */
  14088. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  14089. 80065d0: 687b ldr r3, [r7, #4]
  14090. 80065d2: 681b ldr r3, [r3, #0]
  14091. 80065d4: 6b1b ldr r3, [r3, #48] @ 0x30
  14092. 80065d6: f023 010f bic.w r1, r3, #15
  14093. 80065da: 687b ldr r3, [r7, #4]
  14094. 80065dc: 699b ldr r3, [r3, #24]
  14095. 80065de: 1e5a subs r2, r3, #1
  14096. 80065e0: 687b ldr r3, [r7, #4]
  14097. 80065e2: 681b ldr r3, [r3, #0]
  14098. 80065e4: 430a orrs r2, r1
  14099. 80065e6: 631a str r2, [r3, #48] @ 0x30
  14100. 80065e8: e007 b.n 80065fa <HAL_ADC_Init+0x316>
  14101. }
  14102. else
  14103. {
  14104. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  14105. 80065ea: 687b ldr r3, [r7, #4]
  14106. 80065ec: 681b ldr r3, [r3, #0]
  14107. 80065ee: 6b1a ldr r2, [r3, #48] @ 0x30
  14108. 80065f0: 687b ldr r3, [r7, #4]
  14109. 80065f2: 681b ldr r3, [r3, #0]
  14110. 80065f4: f022 020f bic.w r2, r2, #15
  14111. 80065f8: 631a str r2, [r3, #48] @ 0x30
  14112. }
  14113. /* Initialize the ADC state */
  14114. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  14115. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  14116. 80065fa: 687b ldr r3, [r7, #4]
  14117. 80065fc: 6d5b ldr r3, [r3, #84] @ 0x54
  14118. 80065fe: f023 0303 bic.w r3, r3, #3
  14119. 8006602: f043 0201 orr.w r2, r3, #1
  14120. 8006606: 687b ldr r3, [r7, #4]
  14121. 8006608: 655a str r2, [r3, #84] @ 0x54
  14122. 800660a: e007 b.n 800661c <HAL_ADC_Init+0x338>
  14123. }
  14124. else
  14125. {
  14126. /* Update ADC state machine to error */
  14127. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14128. 800660c: 687b ldr r3, [r7, #4]
  14129. 800660e: 6d5b ldr r3, [r3, #84] @ 0x54
  14130. 8006610: f043 0210 orr.w r2, r3, #16
  14131. 8006614: 687b ldr r3, [r7, #4]
  14132. 8006616: 655a str r2, [r3, #84] @ 0x54
  14133. tmp_hal_status = HAL_ERROR;
  14134. 8006618: 2301 movs r3, #1
  14135. 800661a: 77fb strb r3, [r7, #31]
  14136. }
  14137. /* Return function status */
  14138. return tmp_hal_status;
  14139. 800661c: 7ffb ldrb r3, [r7, #31]
  14140. }
  14141. 800661e: 4618 mov r0, r3
  14142. 8006620: 3724 adds r7, #36 @ 0x24
  14143. 8006622: 46bd mov sp, r7
  14144. 8006624: bd90 pop {r4, r7, pc}
  14145. 8006626: bf00 nop
  14146. 08006628 <HAL_ADC_Start_DMA>:
  14147. * @param pData Destination Buffer address.
  14148. * @param Length Number of data to be transferred from ADC peripheral to memory
  14149. * @retval HAL status.
  14150. */
  14151. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  14152. {
  14153. 8006628: b580 push {r7, lr}
  14154. 800662a: b086 sub sp, #24
  14155. 800662c: af00 add r7, sp, #0
  14156. 800662e: 60f8 str r0, [r7, #12]
  14157. 8006630: 60b9 str r1, [r7, #8]
  14158. 8006632: 607a str r2, [r7, #4]
  14159. HAL_StatusTypeDef tmp_hal_status;
  14160. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14161. 8006634: 68fb ldr r3, [r7, #12]
  14162. 8006636: 681b ldr r3, [r3, #0]
  14163. 8006638: 4a55 ldr r2, [pc, #340] @ (8006790 <HAL_ADC_Start_DMA+0x168>)
  14164. 800663a: 4293 cmp r3, r2
  14165. 800663c: d004 beq.n 8006648 <HAL_ADC_Start_DMA+0x20>
  14166. 800663e: 68fb ldr r3, [r7, #12]
  14167. 8006640: 681b ldr r3, [r3, #0]
  14168. 8006642: 4a54 ldr r2, [pc, #336] @ (8006794 <HAL_ADC_Start_DMA+0x16c>)
  14169. 8006644: 4293 cmp r3, r2
  14170. 8006646: d101 bne.n 800664c <HAL_ADC_Start_DMA+0x24>
  14171. 8006648: 4b53 ldr r3, [pc, #332] @ (8006798 <HAL_ADC_Start_DMA+0x170>)
  14172. 800664a: e000 b.n 800664e <HAL_ADC_Start_DMA+0x26>
  14173. 800664c: 4b53 ldr r3, [pc, #332] @ (800679c <HAL_ADC_Start_DMA+0x174>)
  14174. 800664e: 4618 mov r0, r3
  14175. 8006650: f7ff fd64 bl 800611c <LL_ADC_GetMultimode>
  14176. 8006654: 6138 str r0, [r7, #16]
  14177. /* Check the parameters */
  14178. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  14179. /* Perform ADC enable and conversion start if no conversion is on going */
  14180. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14181. 8006656: 68fb ldr r3, [r7, #12]
  14182. 8006658: 681b ldr r3, [r3, #0]
  14183. 800665a: 4618 mov r0, r3
  14184. 800665c: f7ff fe1c bl 8006298 <LL_ADC_REG_IsConversionOngoing>
  14185. 8006660: 4603 mov r3, r0
  14186. 8006662: 2b00 cmp r3, #0
  14187. 8006664: f040 808c bne.w 8006780 <HAL_ADC_Start_DMA+0x158>
  14188. {
  14189. /* Process locked */
  14190. __HAL_LOCK(hadc);
  14191. 8006668: 68fb ldr r3, [r7, #12]
  14192. 800666a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14193. 800666e: 2b01 cmp r3, #1
  14194. 8006670: d101 bne.n 8006676 <HAL_ADC_Start_DMA+0x4e>
  14195. 8006672: 2302 movs r3, #2
  14196. 8006674: e087 b.n 8006786 <HAL_ADC_Start_DMA+0x15e>
  14197. 8006676: 68fb ldr r3, [r7, #12]
  14198. 8006678: 2201 movs r2, #1
  14199. 800667a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14200. /* Ensure that multimode regular conversions are not enabled. */
  14201. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  14202. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14203. 800667e: 693b ldr r3, [r7, #16]
  14204. 8006680: 2b00 cmp r3, #0
  14205. 8006682: d005 beq.n 8006690 <HAL_ADC_Start_DMA+0x68>
  14206. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  14207. 8006684: 693b ldr r3, [r7, #16]
  14208. 8006686: 2b05 cmp r3, #5
  14209. 8006688: d002 beq.n 8006690 <HAL_ADC_Start_DMA+0x68>
  14210. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  14211. 800668a: 693b ldr r3, [r7, #16]
  14212. 800668c: 2b09 cmp r3, #9
  14213. 800668e: d170 bne.n 8006772 <HAL_ADC_Start_DMA+0x14a>
  14214. )
  14215. {
  14216. /* Enable the ADC peripheral */
  14217. tmp_hal_status = ADC_Enable(hadc);
  14218. 8006690: 68f8 ldr r0, [r7, #12]
  14219. 8006692: f000 fbfd bl 8006e90 <ADC_Enable>
  14220. 8006696: 4603 mov r3, r0
  14221. 8006698: 75fb strb r3, [r7, #23]
  14222. /* Start conversion if ADC is effectively enabled */
  14223. if (tmp_hal_status == HAL_OK)
  14224. 800669a: 7dfb ldrb r3, [r7, #23]
  14225. 800669c: 2b00 cmp r3, #0
  14226. 800669e: d163 bne.n 8006768 <HAL_ADC_Start_DMA+0x140>
  14227. {
  14228. /* Set ADC state */
  14229. /* - Clear state bitfield related to regular group conversion results */
  14230. /* - Set state bitfield related to regular operation */
  14231. ADC_STATE_CLR_SET(hadc->State,
  14232. 80066a0: 68fb ldr r3, [r7, #12]
  14233. 80066a2: 6d5a ldr r2, [r3, #84] @ 0x54
  14234. 80066a4: 4b3e ldr r3, [pc, #248] @ (80067a0 <HAL_ADC_Start_DMA+0x178>)
  14235. 80066a6: 4013 ands r3, r2
  14236. 80066a8: f443 7280 orr.w r2, r3, #256 @ 0x100
  14237. 80066ac: 68fb ldr r3, [r7, #12]
  14238. 80066ae: 655a str r2, [r3, #84] @ 0x54
  14239. HAL_ADC_STATE_REG_BUSY);
  14240. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  14241. - if ADC instance is master or if multimode feature is not available
  14242. - if multimode setting is disabled (ADC instance slave in independent mode) */
  14243. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14244. 80066b0: 68fb ldr r3, [r7, #12]
  14245. 80066b2: 681b ldr r3, [r3, #0]
  14246. 80066b4: 4a37 ldr r2, [pc, #220] @ (8006794 <HAL_ADC_Start_DMA+0x16c>)
  14247. 80066b6: 4293 cmp r3, r2
  14248. 80066b8: d002 beq.n 80066c0 <HAL_ADC_Start_DMA+0x98>
  14249. 80066ba: 68fb ldr r3, [r7, #12]
  14250. 80066bc: 681b ldr r3, [r3, #0]
  14251. 80066be: e000 b.n 80066c2 <HAL_ADC_Start_DMA+0x9a>
  14252. 80066c0: 4b33 ldr r3, [pc, #204] @ (8006790 <HAL_ADC_Start_DMA+0x168>)
  14253. 80066c2: 68fa ldr r2, [r7, #12]
  14254. 80066c4: 6812 ldr r2, [r2, #0]
  14255. 80066c6: 4293 cmp r3, r2
  14256. 80066c8: d002 beq.n 80066d0 <HAL_ADC_Start_DMA+0xa8>
  14257. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14258. 80066ca: 693b ldr r3, [r7, #16]
  14259. 80066cc: 2b00 cmp r3, #0
  14260. 80066ce: d105 bne.n 80066dc <HAL_ADC_Start_DMA+0xb4>
  14261. )
  14262. {
  14263. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  14264. 80066d0: 68fb ldr r3, [r7, #12]
  14265. 80066d2: 6d5b ldr r3, [r3, #84] @ 0x54
  14266. 80066d4: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  14267. 80066d8: 68fb ldr r3, [r7, #12]
  14268. 80066da: 655a str r2, [r3, #84] @ 0x54
  14269. }
  14270. /* Check if a conversion is on going on ADC group injected */
  14271. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  14272. 80066dc: 68fb ldr r3, [r7, #12]
  14273. 80066de: 6d5b ldr r3, [r3, #84] @ 0x54
  14274. 80066e0: f403 5380 and.w r3, r3, #4096 @ 0x1000
  14275. 80066e4: 2b00 cmp r3, #0
  14276. 80066e6: d006 beq.n 80066f6 <HAL_ADC_Start_DMA+0xce>
  14277. {
  14278. /* Reset ADC error code fields related to regular conversions only */
  14279. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  14280. 80066e8: 68fb ldr r3, [r7, #12]
  14281. 80066ea: 6d9b ldr r3, [r3, #88] @ 0x58
  14282. 80066ec: f023 0206 bic.w r2, r3, #6
  14283. 80066f0: 68fb ldr r3, [r7, #12]
  14284. 80066f2: 659a str r2, [r3, #88] @ 0x58
  14285. 80066f4: e002 b.n 80066fc <HAL_ADC_Start_DMA+0xd4>
  14286. }
  14287. else
  14288. {
  14289. /* Reset all ADC error code fields */
  14290. ADC_CLEAR_ERRORCODE(hadc);
  14291. 80066f6: 68fb ldr r3, [r7, #12]
  14292. 80066f8: 2200 movs r2, #0
  14293. 80066fa: 659a str r2, [r3, #88] @ 0x58
  14294. }
  14295. /* Set the DMA transfer complete callback */
  14296. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  14297. 80066fc: 68fb ldr r3, [r7, #12]
  14298. 80066fe: 6cdb ldr r3, [r3, #76] @ 0x4c
  14299. 8006700: 4a28 ldr r2, [pc, #160] @ (80067a4 <HAL_ADC_Start_DMA+0x17c>)
  14300. 8006702: 63da str r2, [r3, #60] @ 0x3c
  14301. /* Set the DMA half transfer complete callback */
  14302. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  14303. 8006704: 68fb ldr r3, [r7, #12]
  14304. 8006706: 6cdb ldr r3, [r3, #76] @ 0x4c
  14305. 8006708: 4a27 ldr r2, [pc, #156] @ (80067a8 <HAL_ADC_Start_DMA+0x180>)
  14306. 800670a: 641a str r2, [r3, #64] @ 0x40
  14307. /* Set the DMA error callback */
  14308. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  14309. 800670c: 68fb ldr r3, [r7, #12]
  14310. 800670e: 6cdb ldr r3, [r3, #76] @ 0x4c
  14311. 8006710: 4a26 ldr r2, [pc, #152] @ (80067ac <HAL_ADC_Start_DMA+0x184>)
  14312. 8006712: 64da str r2, [r3, #76] @ 0x4c
  14313. /* ADC start (in case of SW start): */
  14314. /* Clear regular group conversion flag and overrun flag */
  14315. /* (To ensure of no unknown state from potential previous ADC */
  14316. /* operations) */
  14317. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  14318. 8006714: 68fb ldr r3, [r7, #12]
  14319. 8006716: 681b ldr r3, [r3, #0]
  14320. 8006718: 221c movs r2, #28
  14321. 800671a: 601a str r2, [r3, #0]
  14322. /* Process unlocked */
  14323. /* Unlock before starting ADC conversions: in case of potential */
  14324. /* interruption, to let the process to ADC IRQ Handler. */
  14325. __HAL_UNLOCK(hadc);
  14326. 800671c: 68fb ldr r3, [r7, #12]
  14327. 800671e: 2200 movs r2, #0
  14328. 8006720: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14329. /* With DMA, overrun event is always considered as an error even if
  14330. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  14331. ADC_IT_OVR is enabled. */
  14332. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  14333. 8006724: 68fb ldr r3, [r7, #12]
  14334. 8006726: 681b ldr r3, [r3, #0]
  14335. 8006728: 685a ldr r2, [r3, #4]
  14336. 800672a: 68fb ldr r3, [r7, #12]
  14337. 800672c: 681b ldr r3, [r3, #0]
  14338. 800672e: f042 0210 orr.w r2, r2, #16
  14339. 8006732: 605a str r2, [r3, #4]
  14340. {
  14341. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  14342. }
  14343. #else
  14344. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  14345. 8006734: 68fb ldr r3, [r7, #12]
  14346. 8006736: 681a ldr r2, [r3, #0]
  14347. 8006738: 68fb ldr r3, [r7, #12]
  14348. 800673a: 6adb ldr r3, [r3, #44] @ 0x2c
  14349. 800673c: 4619 mov r1, r3
  14350. 800673e: 4610 mov r0, r2
  14351. 8006740: f7ff fc89 bl 8006056 <LL_ADC_REG_SetDataTransferMode>
  14352. #endif
  14353. /* Start the DMA channel */
  14354. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  14355. 8006744: 68fb ldr r3, [r7, #12]
  14356. 8006746: 6cd8 ldr r0, [r3, #76] @ 0x4c
  14357. 8006748: 68fb ldr r3, [r7, #12]
  14358. 800674a: 681b ldr r3, [r3, #0]
  14359. 800674c: 3340 adds r3, #64 @ 0x40
  14360. 800674e: 4619 mov r1, r3
  14361. 8006750: 68ba ldr r2, [r7, #8]
  14362. 8006752: 687b ldr r3, [r7, #4]
  14363. 8006754: f002 fa5e bl 8008c14 <HAL_DMA_Start_IT>
  14364. 8006758: 4603 mov r3, r0
  14365. 800675a: 75fb strb r3, [r7, #23]
  14366. /* Enable conversion of regular group. */
  14367. /* If software start has been selected, conversion starts immediately. */
  14368. /* If external trigger has been selected, conversion will start at next */
  14369. /* trigger event. */
  14370. /* Start ADC group regular conversion */
  14371. LL_ADC_REG_StartConversion(hadc->Instance);
  14372. 800675c: 68fb ldr r3, [r7, #12]
  14373. 800675e: 681b ldr r3, [r3, #0]
  14374. 8006760: 4618 mov r0, r3
  14375. 8006762: f7ff fd85 bl 8006270 <LL_ADC_REG_StartConversion>
  14376. if (tmp_hal_status == HAL_OK)
  14377. 8006766: e00d b.n 8006784 <HAL_ADC_Start_DMA+0x15c>
  14378. }
  14379. else
  14380. {
  14381. /* Process unlocked */
  14382. __HAL_UNLOCK(hadc);
  14383. 8006768: 68fb ldr r3, [r7, #12]
  14384. 800676a: 2200 movs r2, #0
  14385. 800676c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14386. if (tmp_hal_status == HAL_OK)
  14387. 8006770: e008 b.n 8006784 <HAL_ADC_Start_DMA+0x15c>
  14388. }
  14389. }
  14390. else
  14391. {
  14392. tmp_hal_status = HAL_ERROR;
  14393. 8006772: 2301 movs r3, #1
  14394. 8006774: 75fb strb r3, [r7, #23]
  14395. /* Process unlocked */
  14396. __HAL_UNLOCK(hadc);
  14397. 8006776: 68fb ldr r3, [r7, #12]
  14398. 8006778: 2200 movs r2, #0
  14399. 800677a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14400. 800677e: e001 b.n 8006784 <HAL_ADC_Start_DMA+0x15c>
  14401. }
  14402. }
  14403. else
  14404. {
  14405. tmp_hal_status = HAL_BUSY;
  14406. 8006780: 2302 movs r3, #2
  14407. 8006782: 75fb strb r3, [r7, #23]
  14408. }
  14409. /* Return function status */
  14410. return tmp_hal_status;
  14411. 8006784: 7dfb ldrb r3, [r7, #23]
  14412. }
  14413. 8006786: 4618 mov r0, r3
  14414. 8006788: 3718 adds r7, #24
  14415. 800678a: 46bd mov sp, r7
  14416. 800678c: bd80 pop {r7, pc}
  14417. 800678e: bf00 nop
  14418. 8006790: 40022000 .word 0x40022000
  14419. 8006794: 40022100 .word 0x40022100
  14420. 8006798: 40022300 .word 0x40022300
  14421. 800679c: 58026300 .word 0x58026300
  14422. 80067a0: fffff0fe .word 0xfffff0fe
  14423. 80067a4: 08007063 .word 0x08007063
  14424. 80067a8: 0800713b .word 0x0800713b
  14425. 80067ac: 08007157 .word 0x08007157
  14426. 080067b0 <HAL_ADC_ConvHalfCpltCallback>:
  14427. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  14428. * @param hadc ADC handle
  14429. * @retval None
  14430. */
  14431. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  14432. {
  14433. 80067b0: b480 push {r7}
  14434. 80067b2: b083 sub sp, #12
  14435. 80067b4: af00 add r7, sp, #0
  14436. 80067b6: 6078 str r0, [r7, #4]
  14437. UNUSED(hadc);
  14438. /* NOTE : This function should not be modified. When the callback is needed,
  14439. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  14440. */
  14441. }
  14442. 80067b8: bf00 nop
  14443. 80067ba: 370c adds r7, #12
  14444. 80067bc: 46bd mov sp, r7
  14445. 80067be: f85d 7b04 ldr.w r7, [sp], #4
  14446. 80067c2: 4770 bx lr
  14447. 080067c4 <HAL_ADC_ErrorCallback>:
  14448. * (this function is also clearing overrun flag)
  14449. * @param hadc ADC handle
  14450. * @retval None
  14451. */
  14452. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  14453. {
  14454. 80067c4: b480 push {r7}
  14455. 80067c6: b083 sub sp, #12
  14456. 80067c8: af00 add r7, sp, #0
  14457. 80067ca: 6078 str r0, [r7, #4]
  14458. UNUSED(hadc);
  14459. /* NOTE : This function should not be modified. When the callback is needed,
  14460. function HAL_ADC_ErrorCallback must be implemented in the user file.
  14461. */
  14462. }
  14463. 80067cc: bf00 nop
  14464. 80067ce: 370c adds r7, #12
  14465. 80067d0: 46bd mov sp, r7
  14466. 80067d2: f85d 7b04 ldr.w r7, [sp], #4
  14467. 80067d6: 4770 bx lr
  14468. 080067d8 <HAL_ADC_ConfigChannel>:
  14469. * @param hadc ADC handle
  14470. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  14471. * @retval HAL status
  14472. */
  14473. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  14474. {
  14475. 80067d8: b590 push {r4, r7, lr}
  14476. 80067da: b0a1 sub sp, #132 @ 0x84
  14477. 80067dc: af00 add r7, sp, #0
  14478. 80067de: 6078 str r0, [r7, #4]
  14479. 80067e0: 6039 str r1, [r7, #0]
  14480. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  14481. 80067e2: 2300 movs r3, #0
  14482. 80067e4: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14483. uint32_t tmpOffsetShifted;
  14484. uint32_t tmp_config_internal_channel;
  14485. __IO uint32_t wait_loop_index = 0;
  14486. 80067e8: 2300 movs r3, #0
  14487. 80067ea: 60bb str r3, [r7, #8]
  14488. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  14489. ignored (considered as reset) */
  14490. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  14491. /* Verification of channel number */
  14492. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  14493. 80067ec: 683b ldr r3, [r7, #0]
  14494. 80067ee: 68db ldr r3, [r3, #12]
  14495. 80067f0: 4a65 ldr r2, [pc, #404] @ (8006988 <HAL_ADC_ConfigChannel+0x1b0>)
  14496. 80067f2: 4293 cmp r3, r2
  14497. }
  14498. #endif
  14499. }
  14500. /* Process locked */
  14501. __HAL_LOCK(hadc);
  14502. 80067f4: 687b ldr r3, [r7, #4]
  14503. 80067f6: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  14504. 80067fa: 2b01 cmp r3, #1
  14505. 80067fc: d101 bne.n 8006802 <HAL_ADC_ConfigChannel+0x2a>
  14506. 80067fe: 2302 movs r3, #2
  14507. 8006800: e32e b.n 8006e60 <HAL_ADC_ConfigChannel+0x688>
  14508. 8006802: 687b ldr r3, [r7, #4]
  14509. 8006804: 2201 movs r2, #1
  14510. 8006806: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14511. /* Parameters update conditioned to ADC state: */
  14512. /* Parameters that can be updated when ADC is disabled or enabled without */
  14513. /* conversion on going on regular group: */
  14514. /* - Channel number */
  14515. /* - Channel rank */
  14516. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  14517. 800680a: 687b ldr r3, [r7, #4]
  14518. 800680c: 681b ldr r3, [r3, #0]
  14519. 800680e: 4618 mov r0, r3
  14520. 8006810: f7ff fd42 bl 8006298 <LL_ADC_REG_IsConversionOngoing>
  14521. 8006814: 4603 mov r3, r0
  14522. 8006816: 2b00 cmp r3, #0
  14523. 8006818: f040 8313 bne.w 8006e42 <HAL_ADC_ConfigChannel+0x66a>
  14524. {
  14525. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  14526. 800681c: 683b ldr r3, [r7, #0]
  14527. 800681e: 681b ldr r3, [r3, #0]
  14528. 8006820: 2b00 cmp r3, #0
  14529. 8006822: db2c blt.n 800687e <HAL_ADC_ConfigChannel+0xa6>
  14530. /* ADC channels preselection */
  14531. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14532. }
  14533. #else
  14534. /* ADC channels preselection */
  14535. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  14536. 8006824: 683b ldr r3, [r7, #0]
  14537. 8006826: 681b ldr r3, [r3, #0]
  14538. 8006828: f3c3 0313 ubfx r3, r3, #0, #20
  14539. 800682c: 2b00 cmp r3, #0
  14540. 800682e: d108 bne.n 8006842 <HAL_ADC_ConfigChannel+0x6a>
  14541. 8006830: 683b ldr r3, [r7, #0]
  14542. 8006832: 681b ldr r3, [r3, #0]
  14543. 8006834: 0e9b lsrs r3, r3, #26
  14544. 8006836: f003 031f and.w r3, r3, #31
  14545. 800683a: 2201 movs r2, #1
  14546. 800683c: fa02 f303 lsl.w r3, r2, r3
  14547. 8006840: e016 b.n 8006870 <HAL_ADC_ConfigChannel+0x98>
  14548. 8006842: 683b ldr r3, [r7, #0]
  14549. 8006844: 681b ldr r3, [r3, #0]
  14550. 8006846: 667b str r3, [r7, #100] @ 0x64
  14551. uint32_t result;
  14552. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  14553. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  14554. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  14555. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14556. 8006848: 6e7b ldr r3, [r7, #100] @ 0x64
  14557. 800684a: fa93 f3a3 rbit r3, r3
  14558. 800684e: 663b str r3, [r7, #96] @ 0x60
  14559. result |= value & 1U;
  14560. s--;
  14561. }
  14562. result <<= s; /* shift when v's highest bits are zero */
  14563. #endif
  14564. return result;
  14565. 8006850: 6e3b ldr r3, [r7, #96] @ 0x60
  14566. 8006852: 66bb str r3, [r7, #104] @ 0x68
  14567. optimisations using the logic "value was passed to __builtin_clz, so it
  14568. is non-zero".
  14569. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  14570. single CLZ instruction.
  14571. */
  14572. if (value == 0U)
  14573. 8006854: 6ebb ldr r3, [r7, #104] @ 0x68
  14574. 8006856: 2b00 cmp r3, #0
  14575. 8006858: d101 bne.n 800685e <HAL_ADC_ConfigChannel+0x86>
  14576. {
  14577. return 32U;
  14578. 800685a: 2320 movs r3, #32
  14579. 800685c: e003 b.n 8006866 <HAL_ADC_ConfigChannel+0x8e>
  14580. }
  14581. return __builtin_clz(value);
  14582. 800685e: 6ebb ldr r3, [r7, #104] @ 0x68
  14583. 8006860: fab3 f383 clz r3, r3
  14584. 8006864: b2db uxtb r3, r3
  14585. 8006866: f003 031f and.w r3, r3, #31
  14586. 800686a: 2201 movs r2, #1
  14587. 800686c: fa02 f303 lsl.w r3, r2, r3
  14588. 8006870: 687a ldr r2, [r7, #4]
  14589. 8006872: 6812 ldr r2, [r2, #0]
  14590. 8006874: 69d1 ldr r1, [r2, #28]
  14591. 8006876: 687a ldr r2, [r7, #4]
  14592. 8006878: 6812 ldr r2, [r2, #0]
  14593. 800687a: 430b orrs r3, r1
  14594. 800687c: 61d3 str r3, [r2, #28]
  14595. #endif /* ADC_VER_V5_V90 */
  14596. }
  14597. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  14598. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  14599. 800687e: 687b ldr r3, [r7, #4]
  14600. 8006880: 6818 ldr r0, [r3, #0]
  14601. 8006882: 683b ldr r3, [r7, #0]
  14602. 8006884: 6859 ldr r1, [r3, #4]
  14603. 8006886: 683b ldr r3, [r7, #0]
  14604. 8006888: 681b ldr r3, [r3, #0]
  14605. 800688a: 461a mov r2, r3
  14606. 800688c: f7ff fbb7 bl 8005ffe <LL_ADC_REG_SetSequencerRanks>
  14607. /* Parameters update conditioned to ADC state: */
  14608. /* Parameters that can be updated when ADC is disabled or enabled without */
  14609. /* conversion on going on regular group: */
  14610. /* - Channel sampling time */
  14611. /* - Channel offset */
  14612. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  14613. 8006890: 687b ldr r3, [r7, #4]
  14614. 8006892: 681b ldr r3, [r3, #0]
  14615. 8006894: 4618 mov r0, r3
  14616. 8006896: f7ff fcff bl 8006298 <LL_ADC_REG_IsConversionOngoing>
  14617. 800689a: 67b8 str r0, [r7, #120] @ 0x78
  14618. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  14619. 800689c: 687b ldr r3, [r7, #4]
  14620. 800689e: 681b ldr r3, [r3, #0]
  14621. 80068a0: 4618 mov r0, r3
  14622. 80068a2: f7ff fd0c bl 80062be <LL_ADC_INJ_IsConversionOngoing>
  14623. 80068a6: 6778 str r0, [r7, #116] @ 0x74
  14624. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  14625. 80068a8: 6fbb ldr r3, [r7, #120] @ 0x78
  14626. 80068aa: 2b00 cmp r3, #0
  14627. 80068ac: f040 80b8 bne.w 8006a20 <HAL_ADC_ConfigChannel+0x248>
  14628. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  14629. 80068b0: 6f7b ldr r3, [r7, #116] @ 0x74
  14630. 80068b2: 2b00 cmp r3, #0
  14631. 80068b4: f040 80b4 bne.w 8006a20 <HAL_ADC_ConfigChannel+0x248>
  14632. )
  14633. {
  14634. /* Set sampling time of the selected ADC channel */
  14635. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  14636. 80068b8: 687b ldr r3, [r7, #4]
  14637. 80068ba: 6818 ldr r0, [r3, #0]
  14638. 80068bc: 683b ldr r3, [r7, #0]
  14639. 80068be: 6819 ldr r1, [r3, #0]
  14640. 80068c0: 683b ldr r3, [r7, #0]
  14641. 80068c2: 689b ldr r3, [r3, #8]
  14642. 80068c4: 461a mov r2, r3
  14643. 80068c6: f7ff fbd9 bl 800607c <LL_ADC_SetChannelSamplingTime>
  14644. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14645. }
  14646. else
  14647. #endif /* ADC_VER_V5_V90 */
  14648. {
  14649. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  14650. 80068ca: 4b30 ldr r3, [pc, #192] @ (800698c <HAL_ADC_ConfigChannel+0x1b4>)
  14651. 80068cc: 681b ldr r3, [r3, #0]
  14652. 80068ce: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  14653. 80068d2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  14654. 80068d6: d10b bne.n 80068f0 <HAL_ADC_ConfigChannel+0x118>
  14655. 80068d8: 683b ldr r3, [r7, #0]
  14656. 80068da: 695a ldr r2, [r3, #20]
  14657. 80068dc: 687b ldr r3, [r7, #4]
  14658. 80068de: 681b ldr r3, [r3, #0]
  14659. 80068e0: 68db ldr r3, [r3, #12]
  14660. 80068e2: 089b lsrs r3, r3, #2
  14661. 80068e4: f003 0307 and.w r3, r3, #7
  14662. 80068e8: 005b lsls r3, r3, #1
  14663. 80068ea: fa02 f303 lsl.w r3, r2, r3
  14664. 80068ee: e01d b.n 800692c <HAL_ADC_ConfigChannel+0x154>
  14665. 80068f0: 687b ldr r3, [r7, #4]
  14666. 80068f2: 681b ldr r3, [r3, #0]
  14667. 80068f4: 68db ldr r3, [r3, #12]
  14668. 80068f6: f003 0310 and.w r3, r3, #16
  14669. 80068fa: 2b00 cmp r3, #0
  14670. 80068fc: d10b bne.n 8006916 <HAL_ADC_ConfigChannel+0x13e>
  14671. 80068fe: 683b ldr r3, [r7, #0]
  14672. 8006900: 695a ldr r2, [r3, #20]
  14673. 8006902: 687b ldr r3, [r7, #4]
  14674. 8006904: 681b ldr r3, [r3, #0]
  14675. 8006906: 68db ldr r3, [r3, #12]
  14676. 8006908: 089b lsrs r3, r3, #2
  14677. 800690a: f003 0307 and.w r3, r3, #7
  14678. 800690e: 005b lsls r3, r3, #1
  14679. 8006910: fa02 f303 lsl.w r3, r2, r3
  14680. 8006914: e00a b.n 800692c <HAL_ADC_ConfigChannel+0x154>
  14681. 8006916: 683b ldr r3, [r7, #0]
  14682. 8006918: 695a ldr r2, [r3, #20]
  14683. 800691a: 687b ldr r3, [r7, #4]
  14684. 800691c: 681b ldr r3, [r3, #0]
  14685. 800691e: 68db ldr r3, [r3, #12]
  14686. 8006920: 089b lsrs r3, r3, #2
  14687. 8006922: f003 0304 and.w r3, r3, #4
  14688. 8006926: 005b lsls r3, r3, #1
  14689. 8006928: fa02 f303 lsl.w r3, r2, r3
  14690. 800692c: 673b str r3, [r7, #112] @ 0x70
  14691. }
  14692. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  14693. 800692e: 683b ldr r3, [r7, #0]
  14694. 8006930: 691b ldr r3, [r3, #16]
  14695. 8006932: 2b04 cmp r3, #4
  14696. 8006934: d02c beq.n 8006990 <HAL_ADC_ConfigChannel+0x1b8>
  14697. {
  14698. /* Set ADC selected offset number */
  14699. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  14700. 8006936: 687b ldr r3, [r7, #4]
  14701. 8006938: 6818 ldr r0, [r3, #0]
  14702. 800693a: 683b ldr r3, [r7, #0]
  14703. 800693c: 6919 ldr r1, [r3, #16]
  14704. 800693e: 683b ldr r3, [r7, #0]
  14705. 8006940: 681a ldr r2, [r3, #0]
  14706. 8006942: 6f3b ldr r3, [r7, #112] @ 0x70
  14707. 8006944: f7ff faf4 bl 8005f30 <LL_ADC_SetOffset>
  14708. else
  14709. #endif /* ADC_VER_V5_V90 */
  14710. {
  14711. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  14712. /* Set ADC selected offset signed saturation */
  14713. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  14714. 8006948: 687b ldr r3, [r7, #4]
  14715. 800694a: 6818 ldr r0, [r3, #0]
  14716. 800694c: 683b ldr r3, [r7, #0]
  14717. 800694e: 6919 ldr r1, [r3, #16]
  14718. 8006950: 683b ldr r3, [r7, #0]
  14719. 8006952: 7e5b ldrb r3, [r3, #25]
  14720. 8006954: 2b01 cmp r3, #1
  14721. 8006956: d102 bne.n 800695e <HAL_ADC_ConfigChannel+0x186>
  14722. 8006958: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  14723. 800695c: e000 b.n 8006960 <HAL_ADC_ConfigChannel+0x188>
  14724. 800695e: 2300 movs r3, #0
  14725. 8006960: 461a mov r2, r3
  14726. 8006962: f7ff fb1e bl 8005fa2 <LL_ADC_SetOffsetSignedSaturation>
  14727. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  14728. /* Set ADC selected offset right shift */
  14729. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  14730. 8006966: 687b ldr r3, [r7, #4]
  14731. 8006968: 6818 ldr r0, [r3, #0]
  14732. 800696a: 683b ldr r3, [r7, #0]
  14733. 800696c: 6919 ldr r1, [r3, #16]
  14734. 800696e: 683b ldr r3, [r7, #0]
  14735. 8006970: 7e1b ldrb r3, [r3, #24]
  14736. 8006972: 2b01 cmp r3, #1
  14737. 8006974: d102 bne.n 800697c <HAL_ADC_ConfigChannel+0x1a4>
  14738. 8006976: f44f 6300 mov.w r3, #2048 @ 0x800
  14739. 800697a: e000 b.n 800697e <HAL_ADC_ConfigChannel+0x1a6>
  14740. 800697c: 2300 movs r3, #0
  14741. 800697e: 461a mov r2, r3
  14742. 8006980: f7ff faf6 bl 8005f70 <LL_ADC_SetDataRightShift>
  14743. 8006984: e04c b.n 8006a20 <HAL_ADC_ConfigChannel+0x248>
  14744. 8006986: bf00 nop
  14745. 8006988: 47ff0000 .word 0x47ff0000
  14746. 800698c: 5c001000 .word 0x5c001000
  14747. }
  14748. }
  14749. else
  14750. #endif /* ADC_VER_V5_V90 */
  14751. {
  14752. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14753. 8006990: 687b ldr r3, [r7, #4]
  14754. 8006992: 681b ldr r3, [r3, #0]
  14755. 8006994: 6e1b ldr r3, [r3, #96] @ 0x60
  14756. 8006996: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14757. 800699a: 683b ldr r3, [r7, #0]
  14758. 800699c: 681b ldr r3, [r3, #0]
  14759. 800699e: 069b lsls r3, r3, #26
  14760. 80069a0: 429a cmp r2, r3
  14761. 80069a2: d107 bne.n 80069b4 <HAL_ADC_ConfigChannel+0x1dc>
  14762. {
  14763. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  14764. 80069a4: 687b ldr r3, [r7, #4]
  14765. 80069a6: 681b ldr r3, [r3, #0]
  14766. 80069a8: 6e1a ldr r2, [r3, #96] @ 0x60
  14767. 80069aa: 687b ldr r3, [r7, #4]
  14768. 80069ac: 681b ldr r3, [r3, #0]
  14769. 80069ae: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14770. 80069b2: 661a str r2, [r3, #96] @ 0x60
  14771. }
  14772. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14773. 80069b4: 687b ldr r3, [r7, #4]
  14774. 80069b6: 681b ldr r3, [r3, #0]
  14775. 80069b8: 6e5b ldr r3, [r3, #100] @ 0x64
  14776. 80069ba: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14777. 80069be: 683b ldr r3, [r7, #0]
  14778. 80069c0: 681b ldr r3, [r3, #0]
  14779. 80069c2: 069b lsls r3, r3, #26
  14780. 80069c4: 429a cmp r2, r3
  14781. 80069c6: d107 bne.n 80069d8 <HAL_ADC_ConfigChannel+0x200>
  14782. {
  14783. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  14784. 80069c8: 687b ldr r3, [r7, #4]
  14785. 80069ca: 681b ldr r3, [r3, #0]
  14786. 80069cc: 6e5a ldr r2, [r3, #100] @ 0x64
  14787. 80069ce: 687b ldr r3, [r7, #4]
  14788. 80069d0: 681b ldr r3, [r3, #0]
  14789. 80069d2: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14790. 80069d6: 665a str r2, [r3, #100] @ 0x64
  14791. }
  14792. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14793. 80069d8: 687b ldr r3, [r7, #4]
  14794. 80069da: 681b ldr r3, [r3, #0]
  14795. 80069dc: 6e9b ldr r3, [r3, #104] @ 0x68
  14796. 80069de: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14797. 80069e2: 683b ldr r3, [r7, #0]
  14798. 80069e4: 681b ldr r3, [r3, #0]
  14799. 80069e6: 069b lsls r3, r3, #26
  14800. 80069e8: 429a cmp r2, r3
  14801. 80069ea: d107 bne.n 80069fc <HAL_ADC_ConfigChannel+0x224>
  14802. {
  14803. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  14804. 80069ec: 687b ldr r3, [r7, #4]
  14805. 80069ee: 681b ldr r3, [r3, #0]
  14806. 80069f0: 6e9a ldr r2, [r3, #104] @ 0x68
  14807. 80069f2: 687b ldr r3, [r7, #4]
  14808. 80069f4: 681b ldr r3, [r3, #0]
  14809. 80069f6: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14810. 80069fa: 669a str r2, [r3, #104] @ 0x68
  14811. }
  14812. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14813. 80069fc: 687b ldr r3, [r7, #4]
  14814. 80069fe: 681b ldr r3, [r3, #0]
  14815. 8006a00: 6edb ldr r3, [r3, #108] @ 0x6c
  14816. 8006a02: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14817. 8006a06: 683b ldr r3, [r7, #0]
  14818. 8006a08: 681b ldr r3, [r3, #0]
  14819. 8006a0a: 069b lsls r3, r3, #26
  14820. 8006a0c: 429a cmp r2, r3
  14821. 8006a0e: d107 bne.n 8006a20 <HAL_ADC_ConfigChannel+0x248>
  14822. {
  14823. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  14824. 8006a10: 687b ldr r3, [r7, #4]
  14825. 8006a12: 681b ldr r3, [r3, #0]
  14826. 8006a14: 6eda ldr r2, [r3, #108] @ 0x6c
  14827. 8006a16: 687b ldr r3, [r7, #4]
  14828. 8006a18: 681b ldr r3, [r3, #0]
  14829. 8006a1a: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14830. 8006a1e: 66da str r2, [r3, #108] @ 0x6c
  14831. /* Parameters update conditioned to ADC state: */
  14832. /* Parameters that can be updated only when ADC is disabled: */
  14833. /* - Single or differential mode */
  14834. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  14835. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14836. 8006a20: 687b ldr r3, [r7, #4]
  14837. 8006a22: 681b ldr r3, [r3, #0]
  14838. 8006a24: 4618 mov r0, r3
  14839. 8006a26: f7ff fbfd bl 8006224 <LL_ADC_IsEnabled>
  14840. 8006a2a: 4603 mov r3, r0
  14841. 8006a2c: 2b00 cmp r3, #0
  14842. 8006a2e: f040 8211 bne.w 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  14843. {
  14844. /* Set mode single-ended or differential input of the selected ADC channel */
  14845. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  14846. 8006a32: 687b ldr r3, [r7, #4]
  14847. 8006a34: 6818 ldr r0, [r3, #0]
  14848. 8006a36: 683b ldr r3, [r7, #0]
  14849. 8006a38: 6819 ldr r1, [r3, #0]
  14850. 8006a3a: 683b ldr r3, [r7, #0]
  14851. 8006a3c: 68db ldr r3, [r3, #12]
  14852. 8006a3e: 461a mov r2, r3
  14853. 8006a40: f7ff fb48 bl 80060d4 <LL_ADC_SetChannelSingleDiff>
  14854. /* Configuration of differential mode */
  14855. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  14856. 8006a44: 683b ldr r3, [r7, #0]
  14857. 8006a46: 68db ldr r3, [r3, #12]
  14858. 8006a48: 4aa1 ldr r2, [pc, #644] @ (8006cd0 <HAL_ADC_ConfigChannel+0x4f8>)
  14859. 8006a4a: 4293 cmp r3, r2
  14860. 8006a4c: f040 812e bne.w 8006cac <HAL_ADC_ConfigChannel+0x4d4>
  14861. {
  14862. /* Set sampling time of the selected ADC channel */
  14863. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  14864. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14865. 8006a50: 687b ldr r3, [r7, #4]
  14866. 8006a52: 6818 ldr r0, [r3, #0]
  14867. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14868. 8006a54: 683b ldr r3, [r7, #0]
  14869. 8006a56: 681b ldr r3, [r3, #0]
  14870. 8006a58: f3c3 0313 ubfx r3, r3, #0, #20
  14871. 8006a5c: 2b00 cmp r3, #0
  14872. 8006a5e: d10b bne.n 8006a78 <HAL_ADC_ConfigChannel+0x2a0>
  14873. 8006a60: 683b ldr r3, [r7, #0]
  14874. 8006a62: 681b ldr r3, [r3, #0]
  14875. 8006a64: 0e9b lsrs r3, r3, #26
  14876. 8006a66: 3301 adds r3, #1
  14877. 8006a68: f003 031f and.w r3, r3, #31
  14878. 8006a6c: 2b09 cmp r3, #9
  14879. 8006a6e: bf94 ite ls
  14880. 8006a70: 2301 movls r3, #1
  14881. 8006a72: 2300 movhi r3, #0
  14882. 8006a74: b2db uxtb r3, r3
  14883. 8006a76: e019 b.n 8006aac <HAL_ADC_ConfigChannel+0x2d4>
  14884. 8006a78: 683b ldr r3, [r7, #0]
  14885. 8006a7a: 681b ldr r3, [r3, #0]
  14886. 8006a7c: 65bb str r3, [r7, #88] @ 0x58
  14887. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14888. 8006a7e: 6dbb ldr r3, [r7, #88] @ 0x58
  14889. 8006a80: fa93 f3a3 rbit r3, r3
  14890. 8006a84: 657b str r3, [r7, #84] @ 0x54
  14891. return result;
  14892. 8006a86: 6d7b ldr r3, [r7, #84] @ 0x54
  14893. 8006a88: 65fb str r3, [r7, #92] @ 0x5c
  14894. if (value == 0U)
  14895. 8006a8a: 6dfb ldr r3, [r7, #92] @ 0x5c
  14896. 8006a8c: 2b00 cmp r3, #0
  14897. 8006a8e: d101 bne.n 8006a94 <HAL_ADC_ConfigChannel+0x2bc>
  14898. return 32U;
  14899. 8006a90: 2320 movs r3, #32
  14900. 8006a92: e003 b.n 8006a9c <HAL_ADC_ConfigChannel+0x2c4>
  14901. return __builtin_clz(value);
  14902. 8006a94: 6dfb ldr r3, [r7, #92] @ 0x5c
  14903. 8006a96: fab3 f383 clz r3, r3
  14904. 8006a9a: b2db uxtb r3, r3
  14905. 8006a9c: 3301 adds r3, #1
  14906. 8006a9e: f003 031f and.w r3, r3, #31
  14907. 8006aa2: 2b09 cmp r3, #9
  14908. 8006aa4: bf94 ite ls
  14909. 8006aa6: 2301 movls r3, #1
  14910. 8006aa8: 2300 movhi r3, #0
  14911. 8006aaa: b2db uxtb r3, r3
  14912. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14913. 8006aac: 2b00 cmp r3, #0
  14914. 8006aae: d079 beq.n 8006ba4 <HAL_ADC_ConfigChannel+0x3cc>
  14915. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14916. 8006ab0: 683b ldr r3, [r7, #0]
  14917. 8006ab2: 681b ldr r3, [r3, #0]
  14918. 8006ab4: f3c3 0313 ubfx r3, r3, #0, #20
  14919. 8006ab8: 2b00 cmp r3, #0
  14920. 8006aba: d107 bne.n 8006acc <HAL_ADC_ConfigChannel+0x2f4>
  14921. 8006abc: 683b ldr r3, [r7, #0]
  14922. 8006abe: 681b ldr r3, [r3, #0]
  14923. 8006ac0: 0e9b lsrs r3, r3, #26
  14924. 8006ac2: 3301 adds r3, #1
  14925. 8006ac4: 069b lsls r3, r3, #26
  14926. 8006ac6: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14927. 8006aca: e015 b.n 8006af8 <HAL_ADC_ConfigChannel+0x320>
  14928. 8006acc: 683b ldr r3, [r7, #0]
  14929. 8006ace: 681b ldr r3, [r3, #0]
  14930. 8006ad0: 64fb str r3, [r7, #76] @ 0x4c
  14931. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14932. 8006ad2: 6cfb ldr r3, [r7, #76] @ 0x4c
  14933. 8006ad4: fa93 f3a3 rbit r3, r3
  14934. 8006ad8: 64bb str r3, [r7, #72] @ 0x48
  14935. return result;
  14936. 8006ada: 6cbb ldr r3, [r7, #72] @ 0x48
  14937. 8006adc: 653b str r3, [r7, #80] @ 0x50
  14938. if (value == 0U)
  14939. 8006ade: 6d3b ldr r3, [r7, #80] @ 0x50
  14940. 8006ae0: 2b00 cmp r3, #0
  14941. 8006ae2: d101 bne.n 8006ae8 <HAL_ADC_ConfigChannel+0x310>
  14942. return 32U;
  14943. 8006ae4: 2320 movs r3, #32
  14944. 8006ae6: e003 b.n 8006af0 <HAL_ADC_ConfigChannel+0x318>
  14945. return __builtin_clz(value);
  14946. 8006ae8: 6d3b ldr r3, [r7, #80] @ 0x50
  14947. 8006aea: fab3 f383 clz r3, r3
  14948. 8006aee: b2db uxtb r3, r3
  14949. 8006af0: 3301 adds r3, #1
  14950. 8006af2: 069b lsls r3, r3, #26
  14951. 8006af4: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14952. 8006af8: 683b ldr r3, [r7, #0]
  14953. 8006afa: 681b ldr r3, [r3, #0]
  14954. 8006afc: f3c3 0313 ubfx r3, r3, #0, #20
  14955. 8006b00: 2b00 cmp r3, #0
  14956. 8006b02: d109 bne.n 8006b18 <HAL_ADC_ConfigChannel+0x340>
  14957. 8006b04: 683b ldr r3, [r7, #0]
  14958. 8006b06: 681b ldr r3, [r3, #0]
  14959. 8006b08: 0e9b lsrs r3, r3, #26
  14960. 8006b0a: 3301 adds r3, #1
  14961. 8006b0c: f003 031f and.w r3, r3, #31
  14962. 8006b10: 2101 movs r1, #1
  14963. 8006b12: fa01 f303 lsl.w r3, r1, r3
  14964. 8006b16: e017 b.n 8006b48 <HAL_ADC_ConfigChannel+0x370>
  14965. 8006b18: 683b ldr r3, [r7, #0]
  14966. 8006b1a: 681b ldr r3, [r3, #0]
  14967. 8006b1c: 643b str r3, [r7, #64] @ 0x40
  14968. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14969. 8006b1e: 6c3b ldr r3, [r7, #64] @ 0x40
  14970. 8006b20: fa93 f3a3 rbit r3, r3
  14971. 8006b24: 63fb str r3, [r7, #60] @ 0x3c
  14972. return result;
  14973. 8006b26: 6bfb ldr r3, [r7, #60] @ 0x3c
  14974. 8006b28: 647b str r3, [r7, #68] @ 0x44
  14975. if (value == 0U)
  14976. 8006b2a: 6c7b ldr r3, [r7, #68] @ 0x44
  14977. 8006b2c: 2b00 cmp r3, #0
  14978. 8006b2e: d101 bne.n 8006b34 <HAL_ADC_ConfigChannel+0x35c>
  14979. return 32U;
  14980. 8006b30: 2320 movs r3, #32
  14981. 8006b32: e003 b.n 8006b3c <HAL_ADC_ConfigChannel+0x364>
  14982. return __builtin_clz(value);
  14983. 8006b34: 6c7b ldr r3, [r7, #68] @ 0x44
  14984. 8006b36: fab3 f383 clz r3, r3
  14985. 8006b3a: b2db uxtb r3, r3
  14986. 8006b3c: 3301 adds r3, #1
  14987. 8006b3e: f003 031f and.w r3, r3, #31
  14988. 8006b42: 2101 movs r1, #1
  14989. 8006b44: fa01 f303 lsl.w r3, r1, r3
  14990. 8006b48: ea42 0103 orr.w r1, r2, r3
  14991. 8006b4c: 683b ldr r3, [r7, #0]
  14992. 8006b4e: 681b ldr r3, [r3, #0]
  14993. 8006b50: f3c3 0313 ubfx r3, r3, #0, #20
  14994. 8006b54: 2b00 cmp r3, #0
  14995. 8006b56: d10a bne.n 8006b6e <HAL_ADC_ConfigChannel+0x396>
  14996. 8006b58: 683b ldr r3, [r7, #0]
  14997. 8006b5a: 681b ldr r3, [r3, #0]
  14998. 8006b5c: 0e9b lsrs r3, r3, #26
  14999. 8006b5e: 3301 adds r3, #1
  15000. 8006b60: f003 021f and.w r2, r3, #31
  15001. 8006b64: 4613 mov r3, r2
  15002. 8006b66: 005b lsls r3, r3, #1
  15003. 8006b68: 4413 add r3, r2
  15004. 8006b6a: 051b lsls r3, r3, #20
  15005. 8006b6c: e018 b.n 8006ba0 <HAL_ADC_ConfigChannel+0x3c8>
  15006. 8006b6e: 683b ldr r3, [r7, #0]
  15007. 8006b70: 681b ldr r3, [r3, #0]
  15008. 8006b72: 637b str r3, [r7, #52] @ 0x34
  15009. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15010. 8006b74: 6b7b ldr r3, [r7, #52] @ 0x34
  15011. 8006b76: fa93 f3a3 rbit r3, r3
  15012. 8006b7a: 633b str r3, [r7, #48] @ 0x30
  15013. return result;
  15014. 8006b7c: 6b3b ldr r3, [r7, #48] @ 0x30
  15015. 8006b7e: 63bb str r3, [r7, #56] @ 0x38
  15016. if (value == 0U)
  15017. 8006b80: 6bbb ldr r3, [r7, #56] @ 0x38
  15018. 8006b82: 2b00 cmp r3, #0
  15019. 8006b84: d101 bne.n 8006b8a <HAL_ADC_ConfigChannel+0x3b2>
  15020. return 32U;
  15021. 8006b86: 2320 movs r3, #32
  15022. 8006b88: e003 b.n 8006b92 <HAL_ADC_ConfigChannel+0x3ba>
  15023. return __builtin_clz(value);
  15024. 8006b8a: 6bbb ldr r3, [r7, #56] @ 0x38
  15025. 8006b8c: fab3 f383 clz r3, r3
  15026. 8006b90: b2db uxtb r3, r3
  15027. 8006b92: 3301 adds r3, #1
  15028. 8006b94: f003 021f and.w r2, r3, #31
  15029. 8006b98: 4613 mov r3, r2
  15030. 8006b9a: 005b lsls r3, r3, #1
  15031. 8006b9c: 4413 add r3, r2
  15032. 8006b9e: 051b lsls r3, r3, #20
  15033. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15034. 8006ba0: 430b orrs r3, r1
  15035. 8006ba2: e07e b.n 8006ca2 <HAL_ADC_ConfigChannel+0x4ca>
  15036. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  15037. 8006ba4: 683b ldr r3, [r7, #0]
  15038. 8006ba6: 681b ldr r3, [r3, #0]
  15039. 8006ba8: f3c3 0313 ubfx r3, r3, #0, #20
  15040. 8006bac: 2b00 cmp r3, #0
  15041. 8006bae: d107 bne.n 8006bc0 <HAL_ADC_ConfigChannel+0x3e8>
  15042. 8006bb0: 683b ldr r3, [r7, #0]
  15043. 8006bb2: 681b ldr r3, [r3, #0]
  15044. 8006bb4: 0e9b lsrs r3, r3, #26
  15045. 8006bb6: 3301 adds r3, #1
  15046. 8006bb8: 069b lsls r3, r3, #26
  15047. 8006bba: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15048. 8006bbe: e015 b.n 8006bec <HAL_ADC_ConfigChannel+0x414>
  15049. 8006bc0: 683b ldr r3, [r7, #0]
  15050. 8006bc2: 681b ldr r3, [r3, #0]
  15051. 8006bc4: 62bb str r3, [r7, #40] @ 0x28
  15052. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15053. 8006bc6: 6abb ldr r3, [r7, #40] @ 0x28
  15054. 8006bc8: fa93 f3a3 rbit r3, r3
  15055. 8006bcc: 627b str r3, [r7, #36] @ 0x24
  15056. return result;
  15057. 8006bce: 6a7b ldr r3, [r7, #36] @ 0x24
  15058. 8006bd0: 62fb str r3, [r7, #44] @ 0x2c
  15059. if (value == 0U)
  15060. 8006bd2: 6afb ldr r3, [r7, #44] @ 0x2c
  15061. 8006bd4: 2b00 cmp r3, #0
  15062. 8006bd6: d101 bne.n 8006bdc <HAL_ADC_ConfigChannel+0x404>
  15063. return 32U;
  15064. 8006bd8: 2320 movs r3, #32
  15065. 8006bda: e003 b.n 8006be4 <HAL_ADC_ConfigChannel+0x40c>
  15066. return __builtin_clz(value);
  15067. 8006bdc: 6afb ldr r3, [r7, #44] @ 0x2c
  15068. 8006bde: fab3 f383 clz r3, r3
  15069. 8006be2: b2db uxtb r3, r3
  15070. 8006be4: 3301 adds r3, #1
  15071. 8006be6: 069b lsls r3, r3, #26
  15072. 8006be8: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  15073. 8006bec: 683b ldr r3, [r7, #0]
  15074. 8006bee: 681b ldr r3, [r3, #0]
  15075. 8006bf0: f3c3 0313 ubfx r3, r3, #0, #20
  15076. 8006bf4: 2b00 cmp r3, #0
  15077. 8006bf6: d109 bne.n 8006c0c <HAL_ADC_ConfigChannel+0x434>
  15078. 8006bf8: 683b ldr r3, [r7, #0]
  15079. 8006bfa: 681b ldr r3, [r3, #0]
  15080. 8006bfc: 0e9b lsrs r3, r3, #26
  15081. 8006bfe: 3301 adds r3, #1
  15082. 8006c00: f003 031f and.w r3, r3, #31
  15083. 8006c04: 2101 movs r1, #1
  15084. 8006c06: fa01 f303 lsl.w r3, r1, r3
  15085. 8006c0a: e017 b.n 8006c3c <HAL_ADC_ConfigChannel+0x464>
  15086. 8006c0c: 683b ldr r3, [r7, #0]
  15087. 8006c0e: 681b ldr r3, [r3, #0]
  15088. 8006c10: 61fb str r3, [r7, #28]
  15089. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15090. 8006c12: 69fb ldr r3, [r7, #28]
  15091. 8006c14: fa93 f3a3 rbit r3, r3
  15092. 8006c18: 61bb str r3, [r7, #24]
  15093. return result;
  15094. 8006c1a: 69bb ldr r3, [r7, #24]
  15095. 8006c1c: 623b str r3, [r7, #32]
  15096. if (value == 0U)
  15097. 8006c1e: 6a3b ldr r3, [r7, #32]
  15098. 8006c20: 2b00 cmp r3, #0
  15099. 8006c22: d101 bne.n 8006c28 <HAL_ADC_ConfigChannel+0x450>
  15100. return 32U;
  15101. 8006c24: 2320 movs r3, #32
  15102. 8006c26: e003 b.n 8006c30 <HAL_ADC_ConfigChannel+0x458>
  15103. return __builtin_clz(value);
  15104. 8006c28: 6a3b ldr r3, [r7, #32]
  15105. 8006c2a: fab3 f383 clz r3, r3
  15106. 8006c2e: b2db uxtb r3, r3
  15107. 8006c30: 3301 adds r3, #1
  15108. 8006c32: f003 031f and.w r3, r3, #31
  15109. 8006c36: 2101 movs r1, #1
  15110. 8006c38: fa01 f303 lsl.w r3, r1, r3
  15111. 8006c3c: ea42 0103 orr.w r1, r2, r3
  15112. 8006c40: 683b ldr r3, [r7, #0]
  15113. 8006c42: 681b ldr r3, [r3, #0]
  15114. 8006c44: f3c3 0313 ubfx r3, r3, #0, #20
  15115. 8006c48: 2b00 cmp r3, #0
  15116. 8006c4a: d10d bne.n 8006c68 <HAL_ADC_ConfigChannel+0x490>
  15117. 8006c4c: 683b ldr r3, [r7, #0]
  15118. 8006c4e: 681b ldr r3, [r3, #0]
  15119. 8006c50: 0e9b lsrs r3, r3, #26
  15120. 8006c52: 3301 adds r3, #1
  15121. 8006c54: f003 021f and.w r2, r3, #31
  15122. 8006c58: 4613 mov r3, r2
  15123. 8006c5a: 005b lsls r3, r3, #1
  15124. 8006c5c: 4413 add r3, r2
  15125. 8006c5e: 3b1e subs r3, #30
  15126. 8006c60: 051b lsls r3, r3, #20
  15127. 8006c62: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15128. 8006c66: e01b b.n 8006ca0 <HAL_ADC_ConfigChannel+0x4c8>
  15129. 8006c68: 683b ldr r3, [r7, #0]
  15130. 8006c6a: 681b ldr r3, [r3, #0]
  15131. 8006c6c: 613b str r3, [r7, #16]
  15132. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  15133. 8006c6e: 693b ldr r3, [r7, #16]
  15134. 8006c70: fa93 f3a3 rbit r3, r3
  15135. 8006c74: 60fb str r3, [r7, #12]
  15136. return result;
  15137. 8006c76: 68fb ldr r3, [r7, #12]
  15138. 8006c78: 617b str r3, [r7, #20]
  15139. if (value == 0U)
  15140. 8006c7a: 697b ldr r3, [r7, #20]
  15141. 8006c7c: 2b00 cmp r3, #0
  15142. 8006c7e: d101 bne.n 8006c84 <HAL_ADC_ConfigChannel+0x4ac>
  15143. return 32U;
  15144. 8006c80: 2320 movs r3, #32
  15145. 8006c82: e003 b.n 8006c8c <HAL_ADC_ConfigChannel+0x4b4>
  15146. return __builtin_clz(value);
  15147. 8006c84: 697b ldr r3, [r7, #20]
  15148. 8006c86: fab3 f383 clz r3, r3
  15149. 8006c8a: b2db uxtb r3, r3
  15150. 8006c8c: 3301 adds r3, #1
  15151. 8006c8e: f003 021f and.w r2, r3, #31
  15152. 8006c92: 4613 mov r3, r2
  15153. 8006c94: 005b lsls r3, r3, #1
  15154. 8006c96: 4413 add r3, r2
  15155. 8006c98: 3b1e subs r3, #30
  15156. 8006c9a: 051b lsls r3, r3, #20
  15157. 8006c9c: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  15158. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  15159. 8006ca0: 430b orrs r3, r1
  15160. 8006ca2: 683a ldr r2, [r7, #0]
  15161. 8006ca4: 6892 ldr r2, [r2, #8]
  15162. 8006ca6: 4619 mov r1, r3
  15163. 8006ca8: f7ff f9e8 bl 800607c <LL_ADC_SetChannelSamplingTime>
  15164. /* If internal channel selected, enable dedicated internal buffers and */
  15165. /* paths. */
  15166. /* Note: these internal measurement paths can be disabled using */
  15167. /* HAL_ADC_DeInit(). */
  15168. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  15169. 8006cac: 683b ldr r3, [r7, #0]
  15170. 8006cae: 681b ldr r3, [r3, #0]
  15171. 8006cb0: 2b00 cmp r3, #0
  15172. 8006cb2: f280 80cf bge.w 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15173. {
  15174. /* Configuration of common ADC parameters */
  15175. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15176. 8006cb6: 687b ldr r3, [r7, #4]
  15177. 8006cb8: 681b ldr r3, [r3, #0]
  15178. 8006cba: 4a06 ldr r2, [pc, #24] @ (8006cd4 <HAL_ADC_ConfigChannel+0x4fc>)
  15179. 8006cbc: 4293 cmp r3, r2
  15180. 8006cbe: d004 beq.n 8006cca <HAL_ADC_ConfigChannel+0x4f2>
  15181. 8006cc0: 687b ldr r3, [r7, #4]
  15182. 8006cc2: 681b ldr r3, [r3, #0]
  15183. 8006cc4: 4a04 ldr r2, [pc, #16] @ (8006cd8 <HAL_ADC_ConfigChannel+0x500>)
  15184. 8006cc6: 4293 cmp r3, r2
  15185. 8006cc8: d10a bne.n 8006ce0 <HAL_ADC_ConfigChannel+0x508>
  15186. 8006cca: 4b04 ldr r3, [pc, #16] @ (8006cdc <HAL_ADC_ConfigChannel+0x504>)
  15187. 8006ccc: e009 b.n 8006ce2 <HAL_ADC_ConfigChannel+0x50a>
  15188. 8006cce: bf00 nop
  15189. 8006cd0: 47ff0000 .word 0x47ff0000
  15190. 8006cd4: 40022000 .word 0x40022000
  15191. 8006cd8: 40022100 .word 0x40022100
  15192. 8006cdc: 40022300 .word 0x40022300
  15193. 8006ce0: 4b61 ldr r3, [pc, #388] @ (8006e68 <HAL_ADC_ConfigChannel+0x690>)
  15194. 8006ce2: 4618 mov r0, r3
  15195. 8006ce4: f7ff f916 bl 8005f14 <LL_ADC_GetCommonPathInternalCh>
  15196. 8006ce8: 66f8 str r0, [r7, #108] @ 0x6c
  15197. /* Software is allowed to change common parameters only when all ADCs */
  15198. /* of the common group are disabled. */
  15199. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  15200. 8006cea: 687b ldr r3, [r7, #4]
  15201. 8006cec: 681b ldr r3, [r3, #0]
  15202. 8006cee: 4a5f ldr r2, [pc, #380] @ (8006e6c <HAL_ADC_ConfigChannel+0x694>)
  15203. 8006cf0: 4293 cmp r3, r2
  15204. 8006cf2: d004 beq.n 8006cfe <HAL_ADC_ConfigChannel+0x526>
  15205. 8006cf4: 687b ldr r3, [r7, #4]
  15206. 8006cf6: 681b ldr r3, [r3, #0]
  15207. 8006cf8: 4a5d ldr r2, [pc, #372] @ (8006e70 <HAL_ADC_ConfigChannel+0x698>)
  15208. 8006cfa: 4293 cmp r3, r2
  15209. 8006cfc: d10e bne.n 8006d1c <HAL_ADC_ConfigChannel+0x544>
  15210. 8006cfe: 485b ldr r0, [pc, #364] @ (8006e6c <HAL_ADC_ConfigChannel+0x694>)
  15211. 8006d00: f7ff fa90 bl 8006224 <LL_ADC_IsEnabled>
  15212. 8006d04: 4604 mov r4, r0
  15213. 8006d06: 485a ldr r0, [pc, #360] @ (8006e70 <HAL_ADC_ConfigChannel+0x698>)
  15214. 8006d08: f7ff fa8c bl 8006224 <LL_ADC_IsEnabled>
  15215. 8006d0c: 4603 mov r3, r0
  15216. 8006d0e: 4323 orrs r3, r4
  15217. 8006d10: 2b00 cmp r3, #0
  15218. 8006d12: bf0c ite eq
  15219. 8006d14: 2301 moveq r3, #1
  15220. 8006d16: 2300 movne r3, #0
  15221. 8006d18: b2db uxtb r3, r3
  15222. 8006d1a: e008 b.n 8006d2e <HAL_ADC_ConfigChannel+0x556>
  15223. 8006d1c: 4855 ldr r0, [pc, #340] @ (8006e74 <HAL_ADC_ConfigChannel+0x69c>)
  15224. 8006d1e: f7ff fa81 bl 8006224 <LL_ADC_IsEnabled>
  15225. 8006d22: 4603 mov r3, r0
  15226. 8006d24: 2b00 cmp r3, #0
  15227. 8006d26: bf0c ite eq
  15228. 8006d28: 2301 moveq r3, #1
  15229. 8006d2a: 2300 movne r3, #0
  15230. 8006d2c: b2db uxtb r3, r3
  15231. 8006d2e: 2b00 cmp r3, #0
  15232. 8006d30: d07d beq.n 8006e2e <HAL_ADC_ConfigChannel+0x656>
  15233. {
  15234. /* If the requested internal measurement path has already been enabled, */
  15235. /* bypass the configuration processing. */
  15236. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  15237. 8006d32: 683b ldr r3, [r7, #0]
  15238. 8006d34: 681b ldr r3, [r3, #0]
  15239. 8006d36: 4a50 ldr r2, [pc, #320] @ (8006e78 <HAL_ADC_ConfigChannel+0x6a0>)
  15240. 8006d38: 4293 cmp r3, r2
  15241. 8006d3a: d130 bne.n 8006d9e <HAL_ADC_ConfigChannel+0x5c6>
  15242. 8006d3c: 6efb ldr r3, [r7, #108] @ 0x6c
  15243. 8006d3e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  15244. 8006d42: 2b00 cmp r3, #0
  15245. 8006d44: d12b bne.n 8006d9e <HAL_ADC_ConfigChannel+0x5c6>
  15246. {
  15247. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15248. 8006d46: 687b ldr r3, [r7, #4]
  15249. 8006d48: 681b ldr r3, [r3, #0]
  15250. 8006d4a: 4a4a ldr r2, [pc, #296] @ (8006e74 <HAL_ADC_ConfigChannel+0x69c>)
  15251. 8006d4c: 4293 cmp r3, r2
  15252. 8006d4e: f040 8081 bne.w 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15253. {
  15254. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  15255. 8006d52: 687b ldr r3, [r7, #4]
  15256. 8006d54: 681b ldr r3, [r3, #0]
  15257. 8006d56: 4a45 ldr r2, [pc, #276] @ (8006e6c <HAL_ADC_ConfigChannel+0x694>)
  15258. 8006d58: 4293 cmp r3, r2
  15259. 8006d5a: d004 beq.n 8006d66 <HAL_ADC_ConfigChannel+0x58e>
  15260. 8006d5c: 687b ldr r3, [r7, #4]
  15261. 8006d5e: 681b ldr r3, [r3, #0]
  15262. 8006d60: 4a43 ldr r2, [pc, #268] @ (8006e70 <HAL_ADC_ConfigChannel+0x698>)
  15263. 8006d62: 4293 cmp r3, r2
  15264. 8006d64: d101 bne.n 8006d6a <HAL_ADC_ConfigChannel+0x592>
  15265. 8006d66: 4a45 ldr r2, [pc, #276] @ (8006e7c <HAL_ADC_ConfigChannel+0x6a4>)
  15266. 8006d68: e000 b.n 8006d6c <HAL_ADC_ConfigChannel+0x594>
  15267. 8006d6a: 4a3f ldr r2, [pc, #252] @ (8006e68 <HAL_ADC_ConfigChannel+0x690>)
  15268. 8006d6c: 6efb ldr r3, [r7, #108] @ 0x6c
  15269. 8006d6e: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  15270. 8006d72: 4619 mov r1, r3
  15271. 8006d74: 4610 mov r0, r2
  15272. 8006d76: f7ff f8ba bl 8005eee <LL_ADC_SetCommonPathInternalCh>
  15273. /* Delay for temperature sensor stabilization time */
  15274. /* Wait loop initialization and execution */
  15275. /* Note: Variable divided by 2 to compensate partially */
  15276. /* CPU processing cycles, scaling in us split to not */
  15277. /* exceed 32 bits register capacity and handle low frequency. */
  15278. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  15279. 8006d7a: 4b41 ldr r3, [pc, #260] @ (8006e80 <HAL_ADC_ConfigChannel+0x6a8>)
  15280. 8006d7c: 681b ldr r3, [r3, #0]
  15281. 8006d7e: 099b lsrs r3, r3, #6
  15282. 8006d80: 4a40 ldr r2, [pc, #256] @ (8006e84 <HAL_ADC_ConfigChannel+0x6ac>)
  15283. 8006d82: fba2 2303 umull r2, r3, r2, r3
  15284. 8006d86: 099b lsrs r3, r3, #6
  15285. 8006d88: 3301 adds r3, #1
  15286. 8006d8a: 005b lsls r3, r3, #1
  15287. 8006d8c: 60bb str r3, [r7, #8]
  15288. while (wait_loop_index != 0UL)
  15289. 8006d8e: e002 b.n 8006d96 <HAL_ADC_ConfigChannel+0x5be>
  15290. {
  15291. wait_loop_index--;
  15292. 8006d90: 68bb ldr r3, [r7, #8]
  15293. 8006d92: 3b01 subs r3, #1
  15294. 8006d94: 60bb str r3, [r7, #8]
  15295. while (wait_loop_index != 0UL)
  15296. 8006d96: 68bb ldr r3, [r7, #8]
  15297. 8006d98: 2b00 cmp r3, #0
  15298. 8006d9a: d1f9 bne.n 8006d90 <HAL_ADC_ConfigChannel+0x5b8>
  15299. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  15300. 8006d9c: e05a b.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15301. }
  15302. }
  15303. }
  15304. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  15305. 8006d9e: 683b ldr r3, [r7, #0]
  15306. 8006da0: 681b ldr r3, [r3, #0]
  15307. 8006da2: 4a39 ldr r2, [pc, #228] @ (8006e88 <HAL_ADC_ConfigChannel+0x6b0>)
  15308. 8006da4: 4293 cmp r3, r2
  15309. 8006da6: d11e bne.n 8006de6 <HAL_ADC_ConfigChannel+0x60e>
  15310. 8006da8: 6efb ldr r3, [r7, #108] @ 0x6c
  15311. 8006daa: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  15312. 8006dae: 2b00 cmp r3, #0
  15313. 8006db0: d119 bne.n 8006de6 <HAL_ADC_ConfigChannel+0x60e>
  15314. {
  15315. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15316. 8006db2: 687b ldr r3, [r7, #4]
  15317. 8006db4: 681b ldr r3, [r3, #0]
  15318. 8006db6: 4a2f ldr r2, [pc, #188] @ (8006e74 <HAL_ADC_ConfigChannel+0x69c>)
  15319. 8006db8: 4293 cmp r3, r2
  15320. 8006dba: d14b bne.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15321. {
  15322. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  15323. 8006dbc: 687b ldr r3, [r7, #4]
  15324. 8006dbe: 681b ldr r3, [r3, #0]
  15325. 8006dc0: 4a2a ldr r2, [pc, #168] @ (8006e6c <HAL_ADC_ConfigChannel+0x694>)
  15326. 8006dc2: 4293 cmp r3, r2
  15327. 8006dc4: d004 beq.n 8006dd0 <HAL_ADC_ConfigChannel+0x5f8>
  15328. 8006dc6: 687b ldr r3, [r7, #4]
  15329. 8006dc8: 681b ldr r3, [r3, #0]
  15330. 8006dca: 4a29 ldr r2, [pc, #164] @ (8006e70 <HAL_ADC_ConfigChannel+0x698>)
  15331. 8006dcc: 4293 cmp r3, r2
  15332. 8006dce: d101 bne.n 8006dd4 <HAL_ADC_ConfigChannel+0x5fc>
  15333. 8006dd0: 4a2a ldr r2, [pc, #168] @ (8006e7c <HAL_ADC_ConfigChannel+0x6a4>)
  15334. 8006dd2: e000 b.n 8006dd6 <HAL_ADC_ConfigChannel+0x5fe>
  15335. 8006dd4: 4a24 ldr r2, [pc, #144] @ (8006e68 <HAL_ADC_ConfigChannel+0x690>)
  15336. 8006dd6: 6efb ldr r3, [r7, #108] @ 0x6c
  15337. 8006dd8: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  15338. 8006ddc: 4619 mov r1, r3
  15339. 8006dde: 4610 mov r0, r2
  15340. 8006de0: f7ff f885 bl 8005eee <LL_ADC_SetCommonPathInternalCh>
  15341. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  15342. 8006de4: e036 b.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15343. }
  15344. }
  15345. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  15346. 8006de6: 683b ldr r3, [r7, #0]
  15347. 8006de8: 681b ldr r3, [r3, #0]
  15348. 8006dea: 4a28 ldr r2, [pc, #160] @ (8006e8c <HAL_ADC_ConfigChannel+0x6b4>)
  15349. 8006dec: 4293 cmp r3, r2
  15350. 8006dee: d131 bne.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15351. 8006df0: 6efb ldr r3, [r7, #108] @ 0x6c
  15352. 8006df2: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  15353. 8006df6: 2b00 cmp r3, #0
  15354. 8006df8: d12c bne.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15355. {
  15356. if (ADC_VREFINT_INSTANCE(hadc))
  15357. 8006dfa: 687b ldr r3, [r7, #4]
  15358. 8006dfc: 681b ldr r3, [r3, #0]
  15359. 8006dfe: 4a1d ldr r2, [pc, #116] @ (8006e74 <HAL_ADC_ConfigChannel+0x69c>)
  15360. 8006e00: 4293 cmp r3, r2
  15361. 8006e02: d127 bne.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15362. {
  15363. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  15364. 8006e04: 687b ldr r3, [r7, #4]
  15365. 8006e06: 681b ldr r3, [r3, #0]
  15366. 8006e08: 4a18 ldr r2, [pc, #96] @ (8006e6c <HAL_ADC_ConfigChannel+0x694>)
  15367. 8006e0a: 4293 cmp r3, r2
  15368. 8006e0c: d004 beq.n 8006e18 <HAL_ADC_ConfigChannel+0x640>
  15369. 8006e0e: 687b ldr r3, [r7, #4]
  15370. 8006e10: 681b ldr r3, [r3, #0]
  15371. 8006e12: 4a17 ldr r2, [pc, #92] @ (8006e70 <HAL_ADC_ConfigChannel+0x698>)
  15372. 8006e14: 4293 cmp r3, r2
  15373. 8006e16: d101 bne.n 8006e1c <HAL_ADC_ConfigChannel+0x644>
  15374. 8006e18: 4a18 ldr r2, [pc, #96] @ (8006e7c <HAL_ADC_ConfigChannel+0x6a4>)
  15375. 8006e1a: e000 b.n 8006e1e <HAL_ADC_ConfigChannel+0x646>
  15376. 8006e1c: 4a12 ldr r2, [pc, #72] @ (8006e68 <HAL_ADC_ConfigChannel+0x690>)
  15377. 8006e1e: 6efb ldr r3, [r7, #108] @ 0x6c
  15378. 8006e20: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  15379. 8006e24: 4619 mov r1, r3
  15380. 8006e26: 4610 mov r0, r2
  15381. 8006e28: f7ff f861 bl 8005eee <LL_ADC_SetCommonPathInternalCh>
  15382. 8006e2c: e012 b.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15383. /* enabled and other ADC of the common group are enabled, internal */
  15384. /* measurement paths cannot be enabled. */
  15385. else
  15386. {
  15387. /* Update ADC state machine to error */
  15388. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15389. 8006e2e: 687b ldr r3, [r7, #4]
  15390. 8006e30: 6d5b ldr r3, [r3, #84] @ 0x54
  15391. 8006e32: f043 0220 orr.w r2, r3, #32
  15392. 8006e36: 687b ldr r3, [r7, #4]
  15393. 8006e38: 655a str r2, [r3, #84] @ 0x54
  15394. tmp_hal_status = HAL_ERROR;
  15395. 8006e3a: 2301 movs r3, #1
  15396. 8006e3c: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15397. 8006e40: e008 b.n 8006e54 <HAL_ADC_ConfigChannel+0x67c>
  15398. /* channel could be done on neither of the channel configuration structure */
  15399. /* parameters. */
  15400. else
  15401. {
  15402. /* Update ADC state machine to error */
  15403. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15404. 8006e42: 687b ldr r3, [r7, #4]
  15405. 8006e44: 6d5b ldr r3, [r3, #84] @ 0x54
  15406. 8006e46: f043 0220 orr.w r2, r3, #32
  15407. 8006e4a: 687b ldr r3, [r7, #4]
  15408. 8006e4c: 655a str r2, [r3, #84] @ 0x54
  15409. tmp_hal_status = HAL_ERROR;
  15410. 8006e4e: 2301 movs r3, #1
  15411. 8006e50: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15412. }
  15413. /* Process unlocked */
  15414. __HAL_UNLOCK(hadc);
  15415. 8006e54: 687b ldr r3, [r7, #4]
  15416. 8006e56: 2200 movs r2, #0
  15417. 8006e58: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15418. /* Return function status */
  15419. return tmp_hal_status;
  15420. 8006e5c: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15421. }
  15422. 8006e60: 4618 mov r0, r3
  15423. 8006e62: 3784 adds r7, #132 @ 0x84
  15424. 8006e64: 46bd mov sp, r7
  15425. 8006e66: bd90 pop {r4, r7, pc}
  15426. 8006e68: 58026300 .word 0x58026300
  15427. 8006e6c: 40022000 .word 0x40022000
  15428. 8006e70: 40022100 .word 0x40022100
  15429. 8006e74: 58026000 .word 0x58026000
  15430. 8006e78: cb840000 .word 0xcb840000
  15431. 8006e7c: 40022300 .word 0x40022300
  15432. 8006e80: 24000034 .word 0x24000034
  15433. 8006e84: 053e2d63 .word 0x053e2d63
  15434. 8006e88: c7520000 .word 0xc7520000
  15435. 8006e8c: cfb80000 .word 0xcfb80000
  15436. 08006e90 <ADC_Enable>:
  15437. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  15438. * @param hadc ADC handle
  15439. * @retval HAL status.
  15440. */
  15441. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  15442. {
  15443. 8006e90: b580 push {r7, lr}
  15444. 8006e92: b084 sub sp, #16
  15445. 8006e94: af00 add r7, sp, #0
  15446. 8006e96: 6078 str r0, [r7, #4]
  15447. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  15448. /* enabling phase not yet completed: flag ADC ready not yet set). */
  15449. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  15450. /* causes: ADC clock not running, ...). */
  15451. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15452. 8006e98: 687b ldr r3, [r7, #4]
  15453. 8006e9a: 681b ldr r3, [r3, #0]
  15454. 8006e9c: 4618 mov r0, r3
  15455. 8006e9e: f7ff f9c1 bl 8006224 <LL_ADC_IsEnabled>
  15456. 8006ea2: 4603 mov r3, r0
  15457. 8006ea4: 2b00 cmp r3, #0
  15458. 8006ea6: d16e bne.n 8006f86 <ADC_Enable+0xf6>
  15459. {
  15460. /* Check if conditions to enable the ADC are fulfilled */
  15461. 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)
  15462. 8006ea8: 687b ldr r3, [r7, #4]
  15463. 8006eaa: 681b ldr r3, [r3, #0]
  15464. 8006eac: 689a ldr r2, [r3, #8]
  15465. 8006eae: 4b38 ldr r3, [pc, #224] @ (8006f90 <ADC_Enable+0x100>)
  15466. 8006eb0: 4013 ands r3, r2
  15467. 8006eb2: 2b00 cmp r3, #0
  15468. 8006eb4: d00d beq.n 8006ed2 <ADC_Enable+0x42>
  15469. {
  15470. /* Update ADC state machine to error */
  15471. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15472. 8006eb6: 687b ldr r3, [r7, #4]
  15473. 8006eb8: 6d5b ldr r3, [r3, #84] @ 0x54
  15474. 8006eba: f043 0210 orr.w r2, r3, #16
  15475. 8006ebe: 687b ldr r3, [r7, #4]
  15476. 8006ec0: 655a str r2, [r3, #84] @ 0x54
  15477. /* Set ADC error code to ADC peripheral internal error */
  15478. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15479. 8006ec2: 687b ldr r3, [r7, #4]
  15480. 8006ec4: 6d9b ldr r3, [r3, #88] @ 0x58
  15481. 8006ec6: f043 0201 orr.w r2, r3, #1
  15482. 8006eca: 687b ldr r3, [r7, #4]
  15483. 8006ecc: 659a str r2, [r3, #88] @ 0x58
  15484. return HAL_ERROR;
  15485. 8006ece: 2301 movs r3, #1
  15486. 8006ed0: e05a b.n 8006f88 <ADC_Enable+0xf8>
  15487. }
  15488. /* Enable the ADC peripheral */
  15489. LL_ADC_Enable(hadc->Instance);
  15490. 8006ed2: 687b ldr r3, [r7, #4]
  15491. 8006ed4: 681b ldr r3, [r3, #0]
  15492. 8006ed6: 4618 mov r0, r3
  15493. 8006ed8: f7ff f97c bl 80061d4 <LL_ADC_Enable>
  15494. /* Wait for ADC effectively enabled */
  15495. tickstart = HAL_GetTick();
  15496. 8006edc: f7fe ffa2 bl 8005e24 <HAL_GetTick>
  15497. 8006ee0: 60f8 str r0, [r7, #12]
  15498. /* Poll for ADC ready flag raised except case of multimode enabled
  15499. and ADC slave selected. */
  15500. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  15501. 8006ee2: 687b ldr r3, [r7, #4]
  15502. 8006ee4: 681b ldr r3, [r3, #0]
  15503. 8006ee6: 4a2b ldr r2, [pc, #172] @ (8006f94 <ADC_Enable+0x104>)
  15504. 8006ee8: 4293 cmp r3, r2
  15505. 8006eea: d004 beq.n 8006ef6 <ADC_Enable+0x66>
  15506. 8006eec: 687b ldr r3, [r7, #4]
  15507. 8006eee: 681b ldr r3, [r3, #0]
  15508. 8006ef0: 4a29 ldr r2, [pc, #164] @ (8006f98 <ADC_Enable+0x108>)
  15509. 8006ef2: 4293 cmp r3, r2
  15510. 8006ef4: d101 bne.n 8006efa <ADC_Enable+0x6a>
  15511. 8006ef6: 4b29 ldr r3, [pc, #164] @ (8006f9c <ADC_Enable+0x10c>)
  15512. 8006ef8: e000 b.n 8006efc <ADC_Enable+0x6c>
  15513. 8006efa: 4b29 ldr r3, [pc, #164] @ (8006fa0 <ADC_Enable+0x110>)
  15514. 8006efc: 4618 mov r0, r3
  15515. 8006efe: f7ff f90d bl 800611c <LL_ADC_GetMultimode>
  15516. 8006f02: 60b8 str r0, [r7, #8]
  15517. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  15518. 8006f04: 687b ldr r3, [r7, #4]
  15519. 8006f06: 681b ldr r3, [r3, #0]
  15520. 8006f08: 4a23 ldr r2, [pc, #140] @ (8006f98 <ADC_Enable+0x108>)
  15521. 8006f0a: 4293 cmp r3, r2
  15522. 8006f0c: d002 beq.n 8006f14 <ADC_Enable+0x84>
  15523. 8006f0e: 687b ldr r3, [r7, #4]
  15524. 8006f10: 681b ldr r3, [r3, #0]
  15525. 8006f12: e000 b.n 8006f16 <ADC_Enable+0x86>
  15526. 8006f14: 4b1f ldr r3, [pc, #124] @ (8006f94 <ADC_Enable+0x104>)
  15527. 8006f16: 687a ldr r2, [r7, #4]
  15528. 8006f18: 6812 ldr r2, [r2, #0]
  15529. 8006f1a: 4293 cmp r3, r2
  15530. 8006f1c: d02c beq.n 8006f78 <ADC_Enable+0xe8>
  15531. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  15532. 8006f1e: 68bb ldr r3, [r7, #8]
  15533. 8006f20: 2b00 cmp r3, #0
  15534. 8006f22: d130 bne.n 8006f86 <ADC_Enable+0xf6>
  15535. )
  15536. {
  15537. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15538. 8006f24: e028 b.n 8006f78 <ADC_Enable+0xe8>
  15539. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  15540. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  15541. 4 ADC clock cycle duration */
  15542. /* Note: Test of ADC enabled required due to hardware constraint to */
  15543. /* not enable ADC if already enabled. */
  15544. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  15545. 8006f26: 687b ldr r3, [r7, #4]
  15546. 8006f28: 681b ldr r3, [r3, #0]
  15547. 8006f2a: 4618 mov r0, r3
  15548. 8006f2c: f7ff f97a bl 8006224 <LL_ADC_IsEnabled>
  15549. 8006f30: 4603 mov r3, r0
  15550. 8006f32: 2b00 cmp r3, #0
  15551. 8006f34: d104 bne.n 8006f40 <ADC_Enable+0xb0>
  15552. {
  15553. LL_ADC_Enable(hadc->Instance);
  15554. 8006f36: 687b ldr r3, [r7, #4]
  15555. 8006f38: 681b ldr r3, [r3, #0]
  15556. 8006f3a: 4618 mov r0, r3
  15557. 8006f3c: f7ff f94a bl 80061d4 <LL_ADC_Enable>
  15558. }
  15559. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  15560. 8006f40: f7fe ff70 bl 8005e24 <HAL_GetTick>
  15561. 8006f44: 4602 mov r2, r0
  15562. 8006f46: 68fb ldr r3, [r7, #12]
  15563. 8006f48: 1ad3 subs r3, r2, r3
  15564. 8006f4a: 2b02 cmp r3, #2
  15565. 8006f4c: d914 bls.n 8006f78 <ADC_Enable+0xe8>
  15566. {
  15567. /* New check to avoid false timeout detection in case of preemption */
  15568. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15569. 8006f4e: 687b ldr r3, [r7, #4]
  15570. 8006f50: 681b ldr r3, [r3, #0]
  15571. 8006f52: 681b ldr r3, [r3, #0]
  15572. 8006f54: f003 0301 and.w r3, r3, #1
  15573. 8006f58: 2b01 cmp r3, #1
  15574. 8006f5a: d00d beq.n 8006f78 <ADC_Enable+0xe8>
  15575. {
  15576. /* Update ADC state machine to error */
  15577. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15578. 8006f5c: 687b ldr r3, [r7, #4]
  15579. 8006f5e: 6d5b ldr r3, [r3, #84] @ 0x54
  15580. 8006f60: f043 0210 orr.w r2, r3, #16
  15581. 8006f64: 687b ldr r3, [r7, #4]
  15582. 8006f66: 655a str r2, [r3, #84] @ 0x54
  15583. /* Set ADC error code to ADC peripheral internal error */
  15584. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15585. 8006f68: 687b ldr r3, [r7, #4]
  15586. 8006f6a: 6d9b ldr r3, [r3, #88] @ 0x58
  15587. 8006f6c: f043 0201 orr.w r2, r3, #1
  15588. 8006f70: 687b ldr r3, [r7, #4]
  15589. 8006f72: 659a str r2, [r3, #88] @ 0x58
  15590. return HAL_ERROR;
  15591. 8006f74: 2301 movs r3, #1
  15592. 8006f76: e007 b.n 8006f88 <ADC_Enable+0xf8>
  15593. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  15594. 8006f78: 687b ldr r3, [r7, #4]
  15595. 8006f7a: 681b ldr r3, [r3, #0]
  15596. 8006f7c: 681b ldr r3, [r3, #0]
  15597. 8006f7e: f003 0301 and.w r3, r3, #1
  15598. 8006f82: 2b01 cmp r3, #1
  15599. 8006f84: d1cf bne.n 8006f26 <ADC_Enable+0x96>
  15600. }
  15601. }
  15602. }
  15603. /* Return HAL status */
  15604. return HAL_OK;
  15605. 8006f86: 2300 movs r3, #0
  15606. }
  15607. 8006f88: 4618 mov r0, r3
  15608. 8006f8a: 3710 adds r7, #16
  15609. 8006f8c: 46bd mov sp, r7
  15610. 8006f8e: bd80 pop {r7, pc}
  15611. 8006f90: 8000003f .word 0x8000003f
  15612. 8006f94: 40022000 .word 0x40022000
  15613. 8006f98: 40022100 .word 0x40022100
  15614. 8006f9c: 40022300 .word 0x40022300
  15615. 8006fa0: 58026300 .word 0x58026300
  15616. 08006fa4 <ADC_Disable>:
  15617. * stopped.
  15618. * @param hadc ADC handle
  15619. * @retval HAL status.
  15620. */
  15621. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  15622. {
  15623. 8006fa4: b580 push {r7, lr}
  15624. 8006fa6: b084 sub sp, #16
  15625. 8006fa8: af00 add r7, sp, #0
  15626. 8006faa: 6078 str r0, [r7, #4]
  15627. uint32_t tickstart;
  15628. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  15629. 8006fac: 687b ldr r3, [r7, #4]
  15630. 8006fae: 681b ldr r3, [r3, #0]
  15631. 8006fb0: 4618 mov r0, r3
  15632. 8006fb2: f7ff f94a bl 800624a <LL_ADC_IsDisableOngoing>
  15633. 8006fb6: 60f8 str r0, [r7, #12]
  15634. /* Verification if ADC is not already disabled: */
  15635. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  15636. /* disabled. */
  15637. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  15638. 8006fb8: 687b ldr r3, [r7, #4]
  15639. 8006fba: 681b ldr r3, [r3, #0]
  15640. 8006fbc: 4618 mov r0, r3
  15641. 8006fbe: f7ff f931 bl 8006224 <LL_ADC_IsEnabled>
  15642. 8006fc2: 4603 mov r3, r0
  15643. 8006fc4: 2b00 cmp r3, #0
  15644. 8006fc6: d047 beq.n 8007058 <ADC_Disable+0xb4>
  15645. && (tmp_adc_is_disable_on_going == 0UL)
  15646. 8006fc8: 68fb ldr r3, [r7, #12]
  15647. 8006fca: 2b00 cmp r3, #0
  15648. 8006fcc: d144 bne.n 8007058 <ADC_Disable+0xb4>
  15649. )
  15650. {
  15651. /* Check if conditions to disable the ADC are fulfilled */
  15652. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  15653. 8006fce: 687b ldr r3, [r7, #4]
  15654. 8006fd0: 681b ldr r3, [r3, #0]
  15655. 8006fd2: 689b ldr r3, [r3, #8]
  15656. 8006fd4: f003 030d and.w r3, r3, #13
  15657. 8006fd8: 2b01 cmp r3, #1
  15658. 8006fda: d10c bne.n 8006ff6 <ADC_Disable+0x52>
  15659. {
  15660. /* Disable the ADC peripheral */
  15661. LL_ADC_Disable(hadc->Instance);
  15662. 8006fdc: 687b ldr r3, [r7, #4]
  15663. 8006fde: 681b ldr r3, [r3, #0]
  15664. 8006fe0: 4618 mov r0, r3
  15665. 8006fe2: f7ff f90b bl 80061fc <LL_ADC_Disable>
  15666. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  15667. 8006fe6: 687b ldr r3, [r7, #4]
  15668. 8006fe8: 681b ldr r3, [r3, #0]
  15669. 8006fea: 2203 movs r2, #3
  15670. 8006fec: 601a str r2, [r3, #0]
  15671. return HAL_ERROR;
  15672. }
  15673. /* Wait for ADC effectively disabled */
  15674. /* Get tick count */
  15675. tickstart = HAL_GetTick();
  15676. 8006fee: f7fe ff19 bl 8005e24 <HAL_GetTick>
  15677. 8006ff2: 60b8 str r0, [r7, #8]
  15678. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15679. 8006ff4: e029 b.n 800704a <ADC_Disable+0xa6>
  15680. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15681. 8006ff6: 687b ldr r3, [r7, #4]
  15682. 8006ff8: 6d5b ldr r3, [r3, #84] @ 0x54
  15683. 8006ffa: f043 0210 orr.w r2, r3, #16
  15684. 8006ffe: 687b ldr r3, [r7, #4]
  15685. 8007000: 655a str r2, [r3, #84] @ 0x54
  15686. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15687. 8007002: 687b ldr r3, [r7, #4]
  15688. 8007004: 6d9b ldr r3, [r3, #88] @ 0x58
  15689. 8007006: f043 0201 orr.w r2, r3, #1
  15690. 800700a: 687b ldr r3, [r7, #4]
  15691. 800700c: 659a str r2, [r3, #88] @ 0x58
  15692. return HAL_ERROR;
  15693. 800700e: 2301 movs r3, #1
  15694. 8007010: e023 b.n 800705a <ADC_Disable+0xb6>
  15695. {
  15696. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  15697. 8007012: f7fe ff07 bl 8005e24 <HAL_GetTick>
  15698. 8007016: 4602 mov r2, r0
  15699. 8007018: 68bb ldr r3, [r7, #8]
  15700. 800701a: 1ad3 subs r3, r2, r3
  15701. 800701c: 2b02 cmp r3, #2
  15702. 800701e: d914 bls.n 800704a <ADC_Disable+0xa6>
  15703. {
  15704. /* New check to avoid false timeout detection in case of preemption */
  15705. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15706. 8007020: 687b ldr r3, [r7, #4]
  15707. 8007022: 681b ldr r3, [r3, #0]
  15708. 8007024: 689b ldr r3, [r3, #8]
  15709. 8007026: f003 0301 and.w r3, r3, #1
  15710. 800702a: 2b00 cmp r3, #0
  15711. 800702c: d00d beq.n 800704a <ADC_Disable+0xa6>
  15712. {
  15713. /* Update ADC state machine to error */
  15714. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15715. 800702e: 687b ldr r3, [r7, #4]
  15716. 8007030: 6d5b ldr r3, [r3, #84] @ 0x54
  15717. 8007032: f043 0210 orr.w r2, r3, #16
  15718. 8007036: 687b ldr r3, [r7, #4]
  15719. 8007038: 655a str r2, [r3, #84] @ 0x54
  15720. /* Set ADC error code to ADC peripheral internal error */
  15721. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15722. 800703a: 687b ldr r3, [r7, #4]
  15723. 800703c: 6d9b ldr r3, [r3, #88] @ 0x58
  15724. 800703e: f043 0201 orr.w r2, r3, #1
  15725. 8007042: 687b ldr r3, [r7, #4]
  15726. 8007044: 659a str r2, [r3, #88] @ 0x58
  15727. return HAL_ERROR;
  15728. 8007046: 2301 movs r3, #1
  15729. 8007048: e007 b.n 800705a <ADC_Disable+0xb6>
  15730. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15731. 800704a: 687b ldr r3, [r7, #4]
  15732. 800704c: 681b ldr r3, [r3, #0]
  15733. 800704e: 689b ldr r3, [r3, #8]
  15734. 8007050: f003 0301 and.w r3, r3, #1
  15735. 8007054: 2b00 cmp r3, #0
  15736. 8007056: d1dc bne.n 8007012 <ADC_Disable+0x6e>
  15737. }
  15738. }
  15739. }
  15740. /* Return HAL status */
  15741. return HAL_OK;
  15742. 8007058: 2300 movs r3, #0
  15743. }
  15744. 800705a: 4618 mov r0, r3
  15745. 800705c: 3710 adds r7, #16
  15746. 800705e: 46bd mov sp, r7
  15747. 8007060: bd80 pop {r7, pc}
  15748. 08007062 <ADC_DMAConvCplt>:
  15749. * @brief DMA transfer complete callback.
  15750. * @param hdma pointer to DMA handle.
  15751. * @retval None
  15752. */
  15753. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  15754. {
  15755. 8007062: b580 push {r7, lr}
  15756. 8007064: b084 sub sp, #16
  15757. 8007066: af00 add r7, sp, #0
  15758. 8007068: 6078 str r0, [r7, #4]
  15759. /* Retrieve ADC handle corresponding to current DMA handle */
  15760. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15761. 800706a: 687b ldr r3, [r7, #4]
  15762. 800706c: 6b9b ldr r3, [r3, #56] @ 0x38
  15763. 800706e: 60fb str r3, [r7, #12]
  15764. /* Update state machine on conversion status if not in error state */
  15765. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  15766. 8007070: 68fb ldr r3, [r7, #12]
  15767. 8007072: 6d5b ldr r3, [r3, #84] @ 0x54
  15768. 8007074: f003 0350 and.w r3, r3, #80 @ 0x50
  15769. 8007078: 2b00 cmp r3, #0
  15770. 800707a: d14b bne.n 8007114 <ADC_DMAConvCplt+0xb2>
  15771. {
  15772. /* Set ADC state */
  15773. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  15774. 800707c: 68fb ldr r3, [r7, #12]
  15775. 800707e: 6d5b ldr r3, [r3, #84] @ 0x54
  15776. 8007080: f443 7200 orr.w r2, r3, #512 @ 0x200
  15777. 8007084: 68fb ldr r3, [r7, #12]
  15778. 8007086: 655a str r2, [r3, #84] @ 0x54
  15779. /* Determine whether any further conversion upcoming on group regular */
  15780. /* by external trigger, continuous mode or scan sequence on going */
  15781. /* to disable interruption. */
  15782. /* Is it the end of the regular sequence ? */
  15783. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  15784. 8007088: 68fb ldr r3, [r7, #12]
  15785. 800708a: 681b ldr r3, [r3, #0]
  15786. 800708c: 681b ldr r3, [r3, #0]
  15787. 800708e: f003 0308 and.w r3, r3, #8
  15788. 8007092: 2b00 cmp r3, #0
  15789. 8007094: d021 beq.n 80070da <ADC_DMAConvCplt+0x78>
  15790. {
  15791. /* Are conversions software-triggered ? */
  15792. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  15793. 8007096: 68fb ldr r3, [r7, #12]
  15794. 8007098: 681b ldr r3, [r3, #0]
  15795. 800709a: 4618 mov r0, r3
  15796. 800709c: f7fe ff9c bl 8005fd8 <LL_ADC_REG_IsTriggerSourceSWStart>
  15797. 80070a0: 4603 mov r3, r0
  15798. 80070a2: 2b00 cmp r3, #0
  15799. 80070a4: d032 beq.n 800710c <ADC_DMAConvCplt+0xaa>
  15800. {
  15801. /* Is CONT bit set ? */
  15802. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  15803. 80070a6: 68fb ldr r3, [r7, #12]
  15804. 80070a8: 681b ldr r3, [r3, #0]
  15805. 80070aa: 68db ldr r3, [r3, #12]
  15806. 80070ac: f403 5300 and.w r3, r3, #8192 @ 0x2000
  15807. 80070b0: 2b00 cmp r3, #0
  15808. 80070b2: d12b bne.n 800710c <ADC_DMAConvCplt+0xaa>
  15809. {
  15810. /* CONT bit is not set, no more conversions expected */
  15811. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15812. 80070b4: 68fb ldr r3, [r7, #12]
  15813. 80070b6: 6d5b ldr r3, [r3, #84] @ 0x54
  15814. 80070b8: f423 7280 bic.w r2, r3, #256 @ 0x100
  15815. 80070bc: 68fb ldr r3, [r7, #12]
  15816. 80070be: 655a str r2, [r3, #84] @ 0x54
  15817. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15818. 80070c0: 68fb ldr r3, [r7, #12]
  15819. 80070c2: 6d5b ldr r3, [r3, #84] @ 0x54
  15820. 80070c4: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15821. 80070c8: 2b00 cmp r3, #0
  15822. 80070ca: d11f bne.n 800710c <ADC_DMAConvCplt+0xaa>
  15823. {
  15824. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15825. 80070cc: 68fb ldr r3, [r7, #12]
  15826. 80070ce: 6d5b ldr r3, [r3, #84] @ 0x54
  15827. 80070d0: f043 0201 orr.w r2, r3, #1
  15828. 80070d4: 68fb ldr r3, [r7, #12]
  15829. 80070d6: 655a str r2, [r3, #84] @ 0x54
  15830. 80070d8: e018 b.n 800710c <ADC_DMAConvCplt+0xaa>
  15831. }
  15832. else
  15833. {
  15834. /* DMA End of Transfer interrupt was triggered but conversions sequence
  15835. is not over. If DMACFG is set to 0, conversions are stopped. */
  15836. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  15837. 80070da: 68fb ldr r3, [r7, #12]
  15838. 80070dc: 681b ldr r3, [r3, #0]
  15839. 80070de: 68db ldr r3, [r3, #12]
  15840. 80070e0: f003 0303 and.w r3, r3, #3
  15841. 80070e4: 2b00 cmp r3, #0
  15842. 80070e6: d111 bne.n 800710c <ADC_DMAConvCplt+0xaa>
  15843. {
  15844. /* DMACFG bit is not set, conversions are stopped. */
  15845. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15846. 80070e8: 68fb ldr r3, [r7, #12]
  15847. 80070ea: 6d5b ldr r3, [r3, #84] @ 0x54
  15848. 80070ec: f423 7280 bic.w r2, r3, #256 @ 0x100
  15849. 80070f0: 68fb ldr r3, [r7, #12]
  15850. 80070f2: 655a str r2, [r3, #84] @ 0x54
  15851. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15852. 80070f4: 68fb ldr r3, [r7, #12]
  15853. 80070f6: 6d5b ldr r3, [r3, #84] @ 0x54
  15854. 80070f8: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15855. 80070fc: 2b00 cmp r3, #0
  15856. 80070fe: d105 bne.n 800710c <ADC_DMAConvCplt+0xaa>
  15857. {
  15858. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15859. 8007100: 68fb ldr r3, [r7, #12]
  15860. 8007102: 6d5b ldr r3, [r3, #84] @ 0x54
  15861. 8007104: f043 0201 orr.w r2, r3, #1
  15862. 8007108: 68fb ldr r3, [r7, #12]
  15863. 800710a: 655a str r2, [r3, #84] @ 0x54
  15864. /* Conversion complete callback */
  15865. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15866. hadc->ConvCpltCallback(hadc);
  15867. #else
  15868. HAL_ADC_ConvCpltCallback(hadc);
  15869. 800710c: 68f8 ldr r0, [r7, #12]
  15870. 800710e: f7fa fb5b bl 80017c8 <HAL_ADC_ConvCpltCallback>
  15871. {
  15872. /* Call ADC DMA error callback */
  15873. hadc->DMA_Handle->XferErrorCallback(hdma);
  15874. }
  15875. }
  15876. }
  15877. 8007112: e00e b.n 8007132 <ADC_DMAConvCplt+0xd0>
  15878. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  15879. 8007114: 68fb ldr r3, [r7, #12]
  15880. 8007116: 6d5b ldr r3, [r3, #84] @ 0x54
  15881. 8007118: f003 0310 and.w r3, r3, #16
  15882. 800711c: 2b00 cmp r3, #0
  15883. 800711e: d003 beq.n 8007128 <ADC_DMAConvCplt+0xc6>
  15884. HAL_ADC_ErrorCallback(hadc);
  15885. 8007120: 68f8 ldr r0, [r7, #12]
  15886. 8007122: f7ff fb4f bl 80067c4 <HAL_ADC_ErrorCallback>
  15887. }
  15888. 8007126: e004 b.n 8007132 <ADC_DMAConvCplt+0xd0>
  15889. hadc->DMA_Handle->XferErrorCallback(hdma);
  15890. 8007128: 68fb ldr r3, [r7, #12]
  15891. 800712a: 6cdb ldr r3, [r3, #76] @ 0x4c
  15892. 800712c: 6cdb ldr r3, [r3, #76] @ 0x4c
  15893. 800712e: 6878 ldr r0, [r7, #4]
  15894. 8007130: 4798 blx r3
  15895. }
  15896. 8007132: bf00 nop
  15897. 8007134: 3710 adds r7, #16
  15898. 8007136: 46bd mov sp, r7
  15899. 8007138: bd80 pop {r7, pc}
  15900. 0800713a <ADC_DMAHalfConvCplt>:
  15901. * @brief DMA half transfer complete callback.
  15902. * @param hdma pointer to DMA handle.
  15903. * @retval None
  15904. */
  15905. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  15906. {
  15907. 800713a: b580 push {r7, lr}
  15908. 800713c: b084 sub sp, #16
  15909. 800713e: af00 add r7, sp, #0
  15910. 8007140: 6078 str r0, [r7, #4]
  15911. /* Retrieve ADC handle corresponding to current DMA handle */
  15912. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15913. 8007142: 687b ldr r3, [r7, #4]
  15914. 8007144: 6b9b ldr r3, [r3, #56] @ 0x38
  15915. 8007146: 60fb str r3, [r7, #12]
  15916. /* Half conversion callback */
  15917. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15918. hadc->ConvHalfCpltCallback(hadc);
  15919. #else
  15920. HAL_ADC_ConvHalfCpltCallback(hadc);
  15921. 8007148: 68f8 ldr r0, [r7, #12]
  15922. 800714a: f7ff fb31 bl 80067b0 <HAL_ADC_ConvHalfCpltCallback>
  15923. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15924. }
  15925. 800714e: bf00 nop
  15926. 8007150: 3710 adds r7, #16
  15927. 8007152: 46bd mov sp, r7
  15928. 8007154: bd80 pop {r7, pc}
  15929. 08007156 <ADC_DMAError>:
  15930. * @brief DMA error callback.
  15931. * @param hdma pointer to DMA handle.
  15932. * @retval None
  15933. */
  15934. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  15935. {
  15936. 8007156: b580 push {r7, lr}
  15937. 8007158: b084 sub sp, #16
  15938. 800715a: af00 add r7, sp, #0
  15939. 800715c: 6078 str r0, [r7, #4]
  15940. /* Retrieve ADC handle corresponding to current DMA handle */
  15941. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15942. 800715e: 687b ldr r3, [r7, #4]
  15943. 8007160: 6b9b ldr r3, [r3, #56] @ 0x38
  15944. 8007162: 60fb str r3, [r7, #12]
  15945. /* Set ADC state */
  15946. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  15947. 8007164: 68fb ldr r3, [r7, #12]
  15948. 8007166: 6d5b ldr r3, [r3, #84] @ 0x54
  15949. 8007168: f043 0240 orr.w r2, r3, #64 @ 0x40
  15950. 800716c: 68fb ldr r3, [r7, #12]
  15951. 800716e: 655a str r2, [r3, #84] @ 0x54
  15952. /* Set ADC error code to DMA error */
  15953. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  15954. 8007170: 68fb ldr r3, [r7, #12]
  15955. 8007172: 6d9b ldr r3, [r3, #88] @ 0x58
  15956. 8007174: f043 0204 orr.w r2, r3, #4
  15957. 8007178: 68fb ldr r3, [r7, #12]
  15958. 800717a: 659a str r2, [r3, #88] @ 0x58
  15959. /* Error callback */
  15960. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15961. hadc->ErrorCallback(hadc);
  15962. #else
  15963. HAL_ADC_ErrorCallback(hadc);
  15964. 800717c: 68f8 ldr r0, [r7, #12]
  15965. 800717e: f7ff fb21 bl 80067c4 <HAL_ADC_ErrorCallback>
  15966. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15967. }
  15968. 8007182: bf00 nop
  15969. 8007184: 3710 adds r7, #16
  15970. 8007186: 46bd mov sp, r7
  15971. 8007188: bd80 pop {r7, pc}
  15972. ...
  15973. 0800718c <ADC_ConfigureBoostMode>:
  15974. * stopped.
  15975. * @param hadc ADC handle
  15976. * @retval None.
  15977. */
  15978. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  15979. {
  15980. 800718c: b580 push {r7, lr}
  15981. 800718e: b084 sub sp, #16
  15982. 8007190: af00 add r7, sp, #0
  15983. 8007192: 6078 str r0, [r7, #4]
  15984. uint32_t freq;
  15985. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  15986. 8007194: 687b ldr r3, [r7, #4]
  15987. 8007196: 681b ldr r3, [r3, #0]
  15988. 8007198: 4a7a ldr r2, [pc, #488] @ (8007384 <ADC_ConfigureBoostMode+0x1f8>)
  15989. 800719a: 4293 cmp r3, r2
  15990. 800719c: d004 beq.n 80071a8 <ADC_ConfigureBoostMode+0x1c>
  15991. 800719e: 687b ldr r3, [r7, #4]
  15992. 80071a0: 681b ldr r3, [r3, #0]
  15993. 80071a2: 4a79 ldr r2, [pc, #484] @ (8007388 <ADC_ConfigureBoostMode+0x1fc>)
  15994. 80071a4: 4293 cmp r3, r2
  15995. 80071a6: d109 bne.n 80071bc <ADC_ConfigureBoostMode+0x30>
  15996. 80071a8: 4b78 ldr r3, [pc, #480] @ (800738c <ADC_ConfigureBoostMode+0x200>)
  15997. 80071aa: 689b ldr r3, [r3, #8]
  15998. 80071ac: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15999. 80071b0: 2b00 cmp r3, #0
  16000. 80071b2: bf14 ite ne
  16001. 80071b4: 2301 movne r3, #1
  16002. 80071b6: 2300 moveq r3, #0
  16003. 80071b8: b2db uxtb r3, r3
  16004. 80071ba: e008 b.n 80071ce <ADC_ConfigureBoostMode+0x42>
  16005. 80071bc: 4b74 ldr r3, [pc, #464] @ (8007390 <ADC_ConfigureBoostMode+0x204>)
  16006. 80071be: 689b ldr r3, [r3, #8]
  16007. 80071c0: f403 3340 and.w r3, r3, #196608 @ 0x30000
  16008. 80071c4: 2b00 cmp r3, #0
  16009. 80071c6: bf14 ite ne
  16010. 80071c8: 2301 movne r3, #1
  16011. 80071ca: 2300 moveq r3, #0
  16012. 80071cc: b2db uxtb r3, r3
  16013. 80071ce: 2b00 cmp r3, #0
  16014. 80071d0: d01c beq.n 800720c <ADC_ConfigureBoostMode+0x80>
  16015. {
  16016. freq = HAL_RCC_GetHCLKFreq();
  16017. 80071d2: f005 fb47 bl 800c864 <HAL_RCC_GetHCLKFreq>
  16018. 80071d6: 60f8 str r0, [r7, #12]
  16019. switch (hadc->Init.ClockPrescaler)
  16020. 80071d8: 687b ldr r3, [r7, #4]
  16021. 80071da: 685b ldr r3, [r3, #4]
  16022. 80071dc: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16023. 80071e0: d010 beq.n 8007204 <ADC_ConfigureBoostMode+0x78>
  16024. 80071e2: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  16025. 80071e6: d873 bhi.n 80072d0 <ADC_ConfigureBoostMode+0x144>
  16026. 80071e8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  16027. 80071ec: d002 beq.n 80071f4 <ADC_ConfigureBoostMode+0x68>
  16028. 80071ee: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  16029. 80071f2: d16d bne.n 80072d0 <ADC_ConfigureBoostMode+0x144>
  16030. {
  16031. case ADC_CLOCK_SYNC_PCLK_DIV1:
  16032. case ADC_CLOCK_SYNC_PCLK_DIV2:
  16033. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  16034. 80071f4: 687b ldr r3, [r7, #4]
  16035. 80071f6: 685b ldr r3, [r3, #4]
  16036. 80071f8: 0c1b lsrs r3, r3, #16
  16037. 80071fa: 68fa ldr r2, [r7, #12]
  16038. 80071fc: fbb2 f3f3 udiv r3, r2, r3
  16039. 8007200: 60fb str r3, [r7, #12]
  16040. break;
  16041. 8007202: e068 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16042. case ADC_CLOCK_SYNC_PCLK_DIV4:
  16043. freq /= 4UL;
  16044. 8007204: 68fb ldr r3, [r7, #12]
  16045. 8007206: 089b lsrs r3, r3, #2
  16046. 8007208: 60fb str r3, [r7, #12]
  16047. break;
  16048. 800720a: e064 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16049. break;
  16050. }
  16051. }
  16052. else
  16053. {
  16054. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  16055. 800720c: f44f 2000 mov.w r0, #524288 @ 0x80000
  16056. 8007210: f04f 0100 mov.w r1, #0
  16057. 8007214: f006 fdb2 bl 800dd7c <HAL_RCCEx_GetPeriphCLKFreq>
  16058. 8007218: 60f8 str r0, [r7, #12]
  16059. switch (hadc->Init.ClockPrescaler)
  16060. 800721a: 687b ldr r3, [r7, #4]
  16061. 800721c: 685b ldr r3, [r3, #4]
  16062. 800721e: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16063. 8007222: d051 beq.n 80072c8 <ADC_ConfigureBoostMode+0x13c>
  16064. 8007224: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  16065. 8007228: d854 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16066. 800722a: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16067. 800722e: d047 beq.n 80072c0 <ADC_ConfigureBoostMode+0x134>
  16068. 8007230: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  16069. 8007234: d84e bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16070. 8007236: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16071. 800723a: d03d beq.n 80072b8 <ADC_ConfigureBoostMode+0x12c>
  16072. 800723c: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  16073. 8007240: d848 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16074. 8007242: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16075. 8007246: d033 beq.n 80072b0 <ADC_ConfigureBoostMode+0x124>
  16076. 8007248: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  16077. 800724c: d842 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16078. 800724e: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16079. 8007252: d029 beq.n 80072a8 <ADC_ConfigureBoostMode+0x11c>
  16080. 8007254: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  16081. 8007258: d83c bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16082. 800725a: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16083. 800725e: d01a beq.n 8007296 <ADC_ConfigureBoostMode+0x10a>
  16084. 8007260: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  16085. 8007264: d836 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16086. 8007266: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16087. 800726a: d014 beq.n 8007296 <ADC_ConfigureBoostMode+0x10a>
  16088. 800726c: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  16089. 8007270: d830 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16090. 8007272: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16091. 8007276: d00e beq.n 8007296 <ADC_ConfigureBoostMode+0x10a>
  16092. 8007278: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  16093. 800727c: d82a bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16094. 800727e: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16095. 8007282: d008 beq.n 8007296 <ADC_ConfigureBoostMode+0x10a>
  16096. 8007284: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  16097. 8007288: d824 bhi.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16098. 800728a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  16099. 800728e: d002 beq.n 8007296 <ADC_ConfigureBoostMode+0x10a>
  16100. 8007290: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  16101. 8007294: d11e bne.n 80072d4 <ADC_ConfigureBoostMode+0x148>
  16102. case ADC_CLOCK_ASYNC_DIV4:
  16103. case ADC_CLOCK_ASYNC_DIV6:
  16104. case ADC_CLOCK_ASYNC_DIV8:
  16105. case ADC_CLOCK_ASYNC_DIV10:
  16106. case ADC_CLOCK_ASYNC_DIV12:
  16107. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  16108. 8007296: 687b ldr r3, [r7, #4]
  16109. 8007298: 685b ldr r3, [r3, #4]
  16110. 800729a: 0c9b lsrs r3, r3, #18
  16111. 800729c: 005b lsls r3, r3, #1
  16112. 800729e: 68fa ldr r2, [r7, #12]
  16113. 80072a0: fbb2 f3f3 udiv r3, r2, r3
  16114. 80072a4: 60fb str r3, [r7, #12]
  16115. break;
  16116. 80072a6: e016 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16117. case ADC_CLOCK_ASYNC_DIV16:
  16118. freq /= 16UL;
  16119. 80072a8: 68fb ldr r3, [r7, #12]
  16120. 80072aa: 091b lsrs r3, r3, #4
  16121. 80072ac: 60fb str r3, [r7, #12]
  16122. break;
  16123. 80072ae: e012 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16124. case ADC_CLOCK_ASYNC_DIV32:
  16125. freq /= 32UL;
  16126. 80072b0: 68fb ldr r3, [r7, #12]
  16127. 80072b2: 095b lsrs r3, r3, #5
  16128. 80072b4: 60fb str r3, [r7, #12]
  16129. break;
  16130. 80072b6: e00e b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16131. case ADC_CLOCK_ASYNC_DIV64:
  16132. freq /= 64UL;
  16133. 80072b8: 68fb ldr r3, [r7, #12]
  16134. 80072ba: 099b lsrs r3, r3, #6
  16135. 80072bc: 60fb str r3, [r7, #12]
  16136. break;
  16137. 80072be: e00a b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16138. case ADC_CLOCK_ASYNC_DIV128:
  16139. freq /= 128UL;
  16140. 80072c0: 68fb ldr r3, [r7, #12]
  16141. 80072c2: 09db lsrs r3, r3, #7
  16142. 80072c4: 60fb str r3, [r7, #12]
  16143. break;
  16144. 80072c6: e006 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16145. case ADC_CLOCK_ASYNC_DIV256:
  16146. freq /= 256UL;
  16147. 80072c8: 68fb ldr r3, [r7, #12]
  16148. 80072ca: 0a1b lsrs r3, r3, #8
  16149. 80072cc: 60fb str r3, [r7, #12]
  16150. break;
  16151. 80072ce: e002 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16152. break;
  16153. 80072d0: bf00 nop
  16154. 80072d2: e000 b.n 80072d6 <ADC_ConfigureBoostMode+0x14a>
  16155. default:
  16156. break;
  16157. 80072d4: bf00 nop
  16158. else /* if(freq > 25000000UL) */
  16159. {
  16160. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16161. }
  16162. #else
  16163. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  16164. 80072d6: f7fe fdb1 bl 8005e3c <HAL_GetREVID>
  16165. 80072da: 4603 mov r3, r0
  16166. 80072dc: f241 0203 movw r2, #4099 @ 0x1003
  16167. 80072e0: 4293 cmp r3, r2
  16168. 80072e2: d815 bhi.n 8007310 <ADC_ConfigureBoostMode+0x184>
  16169. {
  16170. if (freq > 20000000UL)
  16171. 80072e4: 68fb ldr r3, [r7, #12]
  16172. 80072e6: 4a2b ldr r2, [pc, #172] @ (8007394 <ADC_ConfigureBoostMode+0x208>)
  16173. 80072e8: 4293 cmp r3, r2
  16174. 80072ea: d908 bls.n 80072fe <ADC_ConfigureBoostMode+0x172>
  16175. {
  16176. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16177. 80072ec: 687b ldr r3, [r7, #4]
  16178. 80072ee: 681b ldr r3, [r3, #0]
  16179. 80072f0: 689a ldr r2, [r3, #8]
  16180. 80072f2: 687b ldr r3, [r7, #4]
  16181. 80072f4: 681b ldr r3, [r3, #0]
  16182. 80072f6: f442 7280 orr.w r2, r2, #256 @ 0x100
  16183. 80072fa: 609a str r2, [r3, #8]
  16184. {
  16185. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16186. }
  16187. }
  16188. #endif /* ADC_VER_V5_3 */
  16189. }
  16190. 80072fc: e03e b.n 800737c <ADC_ConfigureBoostMode+0x1f0>
  16191. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  16192. 80072fe: 687b ldr r3, [r7, #4]
  16193. 8007300: 681b ldr r3, [r3, #0]
  16194. 8007302: 689a ldr r2, [r3, #8]
  16195. 8007304: 687b ldr r3, [r7, #4]
  16196. 8007306: 681b ldr r3, [r3, #0]
  16197. 8007308: f422 7280 bic.w r2, r2, #256 @ 0x100
  16198. 800730c: 609a str r2, [r3, #8]
  16199. }
  16200. 800730e: e035 b.n 800737c <ADC_ConfigureBoostMode+0x1f0>
  16201. freq /= 2U; /* divider by 2 for Rev.V */
  16202. 8007310: 68fb ldr r3, [r7, #12]
  16203. 8007312: 085b lsrs r3, r3, #1
  16204. 8007314: 60fb str r3, [r7, #12]
  16205. if (freq <= 6250000UL)
  16206. 8007316: 68fb ldr r3, [r7, #12]
  16207. 8007318: 4a1f ldr r2, [pc, #124] @ (8007398 <ADC_ConfigureBoostMode+0x20c>)
  16208. 800731a: 4293 cmp r3, r2
  16209. 800731c: d808 bhi.n 8007330 <ADC_ConfigureBoostMode+0x1a4>
  16210. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  16211. 800731e: 687b ldr r3, [r7, #4]
  16212. 8007320: 681b ldr r3, [r3, #0]
  16213. 8007322: 689a ldr r2, [r3, #8]
  16214. 8007324: 687b ldr r3, [r7, #4]
  16215. 8007326: 681b ldr r3, [r3, #0]
  16216. 8007328: f422 7240 bic.w r2, r2, #768 @ 0x300
  16217. 800732c: 609a str r2, [r3, #8]
  16218. }
  16219. 800732e: e025 b.n 800737c <ADC_ConfigureBoostMode+0x1f0>
  16220. else if (freq <= 12500000UL)
  16221. 8007330: 68fb ldr r3, [r7, #12]
  16222. 8007332: 4a1a ldr r2, [pc, #104] @ (800739c <ADC_ConfigureBoostMode+0x210>)
  16223. 8007334: 4293 cmp r3, r2
  16224. 8007336: d80a bhi.n 800734e <ADC_ConfigureBoostMode+0x1c2>
  16225. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  16226. 8007338: 687b ldr r3, [r7, #4]
  16227. 800733a: 681b ldr r3, [r3, #0]
  16228. 800733c: 689b ldr r3, [r3, #8]
  16229. 800733e: f423 7240 bic.w r2, r3, #768 @ 0x300
  16230. 8007342: 687b ldr r3, [r7, #4]
  16231. 8007344: 681b ldr r3, [r3, #0]
  16232. 8007346: f442 7280 orr.w r2, r2, #256 @ 0x100
  16233. 800734a: 609a str r2, [r3, #8]
  16234. }
  16235. 800734c: e016 b.n 800737c <ADC_ConfigureBoostMode+0x1f0>
  16236. else if (freq <= 25000000UL)
  16237. 800734e: 68fb ldr r3, [r7, #12]
  16238. 8007350: 4a13 ldr r2, [pc, #76] @ (80073a0 <ADC_ConfigureBoostMode+0x214>)
  16239. 8007352: 4293 cmp r3, r2
  16240. 8007354: d80a bhi.n 800736c <ADC_ConfigureBoostMode+0x1e0>
  16241. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  16242. 8007356: 687b ldr r3, [r7, #4]
  16243. 8007358: 681b ldr r3, [r3, #0]
  16244. 800735a: 689b ldr r3, [r3, #8]
  16245. 800735c: f423 7240 bic.w r2, r3, #768 @ 0x300
  16246. 8007360: 687b ldr r3, [r7, #4]
  16247. 8007362: 681b ldr r3, [r3, #0]
  16248. 8007364: f442 7200 orr.w r2, r2, #512 @ 0x200
  16249. 8007368: 609a str r2, [r3, #8]
  16250. }
  16251. 800736a: e007 b.n 800737c <ADC_ConfigureBoostMode+0x1f0>
  16252. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  16253. 800736c: 687b ldr r3, [r7, #4]
  16254. 800736e: 681b ldr r3, [r3, #0]
  16255. 8007370: 689a ldr r2, [r3, #8]
  16256. 8007372: 687b ldr r3, [r7, #4]
  16257. 8007374: 681b ldr r3, [r3, #0]
  16258. 8007376: f442 7240 orr.w r2, r2, #768 @ 0x300
  16259. 800737a: 609a str r2, [r3, #8]
  16260. }
  16261. 800737c: bf00 nop
  16262. 800737e: 3710 adds r7, #16
  16263. 8007380: 46bd mov sp, r7
  16264. 8007382: bd80 pop {r7, pc}
  16265. 8007384: 40022000 .word 0x40022000
  16266. 8007388: 40022100 .word 0x40022100
  16267. 800738c: 40022300 .word 0x40022300
  16268. 8007390: 58026300 .word 0x58026300
  16269. 8007394: 01312d00 .word 0x01312d00
  16270. 8007398: 005f5e10 .word 0x005f5e10
  16271. 800739c: 00bebc20 .word 0x00bebc20
  16272. 80073a0: 017d7840 .word 0x017d7840
  16273. 080073a4 <LL_ADC_IsEnabled>:
  16274. {
  16275. 80073a4: b480 push {r7}
  16276. 80073a6: b083 sub sp, #12
  16277. 80073a8: af00 add r7, sp, #0
  16278. 80073aa: 6078 str r0, [r7, #4]
  16279. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  16280. 80073ac: 687b ldr r3, [r7, #4]
  16281. 80073ae: 689b ldr r3, [r3, #8]
  16282. 80073b0: f003 0301 and.w r3, r3, #1
  16283. 80073b4: 2b01 cmp r3, #1
  16284. 80073b6: d101 bne.n 80073bc <LL_ADC_IsEnabled+0x18>
  16285. 80073b8: 2301 movs r3, #1
  16286. 80073ba: e000 b.n 80073be <LL_ADC_IsEnabled+0x1a>
  16287. 80073bc: 2300 movs r3, #0
  16288. }
  16289. 80073be: 4618 mov r0, r3
  16290. 80073c0: 370c adds r7, #12
  16291. 80073c2: 46bd mov sp, r7
  16292. 80073c4: f85d 7b04 ldr.w r7, [sp], #4
  16293. 80073c8: 4770 bx lr
  16294. ...
  16295. 080073cc <LL_ADC_StartCalibration>:
  16296. {
  16297. 80073cc: b480 push {r7}
  16298. 80073ce: b085 sub sp, #20
  16299. 80073d0: af00 add r7, sp, #0
  16300. 80073d2: 60f8 str r0, [r7, #12]
  16301. 80073d4: 60b9 str r1, [r7, #8]
  16302. 80073d6: 607a str r2, [r7, #4]
  16303. MODIFY_REG(ADCx->CR,
  16304. 80073d8: 68fb ldr r3, [r7, #12]
  16305. 80073da: 689a ldr r2, [r3, #8]
  16306. 80073dc: 4b09 ldr r3, [pc, #36] @ (8007404 <LL_ADC_StartCalibration+0x38>)
  16307. 80073de: 4013 ands r3, r2
  16308. 80073e0: 68ba ldr r2, [r7, #8]
  16309. 80073e2: f402 3180 and.w r1, r2, #65536 @ 0x10000
  16310. 80073e6: 687a ldr r2, [r7, #4]
  16311. 80073e8: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  16312. 80073ec: 430a orrs r2, r1
  16313. 80073ee: 4313 orrs r3, r2
  16314. 80073f0: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  16315. 80073f4: 68fb ldr r3, [r7, #12]
  16316. 80073f6: 609a str r2, [r3, #8]
  16317. }
  16318. 80073f8: bf00 nop
  16319. 80073fa: 3714 adds r7, #20
  16320. 80073fc: 46bd mov sp, r7
  16321. 80073fe: f85d 7b04 ldr.w r7, [sp], #4
  16322. 8007402: 4770 bx lr
  16323. 8007404: 3ffeffc0 .word 0x3ffeffc0
  16324. 08007408 <LL_ADC_IsCalibrationOnGoing>:
  16325. {
  16326. 8007408: b480 push {r7}
  16327. 800740a: b083 sub sp, #12
  16328. 800740c: af00 add r7, sp, #0
  16329. 800740e: 6078 str r0, [r7, #4]
  16330. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  16331. 8007410: 687b ldr r3, [r7, #4]
  16332. 8007412: 689b ldr r3, [r3, #8]
  16333. 8007414: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16334. 8007418: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16335. 800741c: d101 bne.n 8007422 <LL_ADC_IsCalibrationOnGoing+0x1a>
  16336. 800741e: 2301 movs r3, #1
  16337. 8007420: e000 b.n 8007424 <LL_ADC_IsCalibrationOnGoing+0x1c>
  16338. 8007422: 2300 movs r3, #0
  16339. }
  16340. 8007424: 4618 mov r0, r3
  16341. 8007426: 370c adds r7, #12
  16342. 8007428: 46bd mov sp, r7
  16343. 800742a: f85d 7b04 ldr.w r7, [sp], #4
  16344. 800742e: 4770 bx lr
  16345. 08007430 <LL_ADC_REG_IsConversionOngoing>:
  16346. {
  16347. 8007430: b480 push {r7}
  16348. 8007432: b083 sub sp, #12
  16349. 8007434: af00 add r7, sp, #0
  16350. 8007436: 6078 str r0, [r7, #4]
  16351. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  16352. 8007438: 687b ldr r3, [r7, #4]
  16353. 800743a: 689b ldr r3, [r3, #8]
  16354. 800743c: f003 0304 and.w r3, r3, #4
  16355. 8007440: 2b04 cmp r3, #4
  16356. 8007442: d101 bne.n 8007448 <LL_ADC_REG_IsConversionOngoing+0x18>
  16357. 8007444: 2301 movs r3, #1
  16358. 8007446: e000 b.n 800744a <LL_ADC_REG_IsConversionOngoing+0x1a>
  16359. 8007448: 2300 movs r3, #0
  16360. }
  16361. 800744a: 4618 mov r0, r3
  16362. 800744c: 370c adds r7, #12
  16363. 800744e: 46bd mov sp, r7
  16364. 8007450: f85d 7b04 ldr.w r7, [sp], #4
  16365. 8007454: 4770 bx lr
  16366. ...
  16367. 08007458 <HAL_ADCEx_Calibration_Start>:
  16368. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  16369. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  16370. * @retval HAL status
  16371. */
  16372. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  16373. {
  16374. 8007458: b580 push {r7, lr}
  16375. 800745a: b086 sub sp, #24
  16376. 800745c: af00 add r7, sp, #0
  16377. 800745e: 60f8 str r0, [r7, #12]
  16378. 8007460: 60b9 str r1, [r7, #8]
  16379. 8007462: 607a str r2, [r7, #4]
  16380. HAL_StatusTypeDef tmp_hal_status;
  16381. __IO uint32_t wait_loop_index = 0UL;
  16382. 8007464: 2300 movs r3, #0
  16383. 8007466: 613b str r3, [r7, #16]
  16384. /* Check the parameters */
  16385. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  16386. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  16387. /* Process locked */
  16388. __HAL_LOCK(hadc);
  16389. 8007468: 68fb ldr r3, [r7, #12]
  16390. 800746a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16391. 800746e: 2b01 cmp r3, #1
  16392. 8007470: d101 bne.n 8007476 <HAL_ADCEx_Calibration_Start+0x1e>
  16393. 8007472: 2302 movs r3, #2
  16394. 8007474: e04c b.n 8007510 <HAL_ADCEx_Calibration_Start+0xb8>
  16395. 8007476: 68fb ldr r3, [r7, #12]
  16396. 8007478: 2201 movs r2, #1
  16397. 800747a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16398. /* Calibration prerequisite: ADC must be disabled. */
  16399. /* Disable the ADC (if not already disabled) */
  16400. tmp_hal_status = ADC_Disable(hadc);
  16401. 800747e: 68f8 ldr r0, [r7, #12]
  16402. 8007480: f7ff fd90 bl 8006fa4 <ADC_Disable>
  16403. 8007484: 4603 mov r3, r0
  16404. 8007486: 75fb strb r3, [r7, #23]
  16405. /* Check if ADC is effectively disabled */
  16406. if (tmp_hal_status == HAL_OK)
  16407. 8007488: 7dfb ldrb r3, [r7, #23]
  16408. 800748a: 2b00 cmp r3, #0
  16409. 800748c: d135 bne.n 80074fa <HAL_ADCEx_Calibration_Start+0xa2>
  16410. {
  16411. /* Set ADC state */
  16412. ADC_STATE_CLR_SET(hadc->State,
  16413. 800748e: 68fb ldr r3, [r7, #12]
  16414. 8007490: 6d5a ldr r2, [r3, #84] @ 0x54
  16415. 8007492: 4b21 ldr r3, [pc, #132] @ (8007518 <HAL_ADCEx_Calibration_Start+0xc0>)
  16416. 8007494: 4013 ands r3, r2
  16417. 8007496: f043 0202 orr.w r2, r3, #2
  16418. 800749a: 68fb ldr r3, [r7, #12]
  16419. 800749c: 655a str r2, [r3, #84] @ 0x54
  16420. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  16421. HAL_ADC_STATE_BUSY_INTERNAL);
  16422. /* Start ADC calibration in mode single-ended or differential */
  16423. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  16424. 800749e: 68fb ldr r3, [r7, #12]
  16425. 80074a0: 681b ldr r3, [r3, #0]
  16426. 80074a2: 687a ldr r2, [r7, #4]
  16427. 80074a4: 68b9 ldr r1, [r7, #8]
  16428. 80074a6: 4618 mov r0, r3
  16429. 80074a8: f7ff ff90 bl 80073cc <LL_ADC_StartCalibration>
  16430. /* Wait for calibration completion */
  16431. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16432. 80074ac: e014 b.n 80074d8 <HAL_ADCEx_Calibration_Start+0x80>
  16433. {
  16434. wait_loop_index++;
  16435. 80074ae: 693b ldr r3, [r7, #16]
  16436. 80074b0: 3301 adds r3, #1
  16437. 80074b2: 613b str r3, [r7, #16]
  16438. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  16439. 80074b4: 693b ldr r3, [r7, #16]
  16440. 80074b6: 4a19 ldr r2, [pc, #100] @ (800751c <HAL_ADCEx_Calibration_Start+0xc4>)
  16441. 80074b8: 4293 cmp r3, r2
  16442. 80074ba: d30d bcc.n 80074d8 <HAL_ADCEx_Calibration_Start+0x80>
  16443. {
  16444. /* Update ADC state machine to error */
  16445. ADC_STATE_CLR_SET(hadc->State,
  16446. 80074bc: 68fb ldr r3, [r7, #12]
  16447. 80074be: 6d5b ldr r3, [r3, #84] @ 0x54
  16448. 80074c0: f023 0312 bic.w r3, r3, #18
  16449. 80074c4: f043 0210 orr.w r2, r3, #16
  16450. 80074c8: 68fb ldr r3, [r7, #12]
  16451. 80074ca: 655a str r2, [r3, #84] @ 0x54
  16452. HAL_ADC_STATE_BUSY_INTERNAL,
  16453. HAL_ADC_STATE_ERROR_INTERNAL);
  16454. /* Process unlocked */
  16455. __HAL_UNLOCK(hadc);
  16456. 80074cc: 68fb ldr r3, [r7, #12]
  16457. 80074ce: 2200 movs r2, #0
  16458. 80074d0: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16459. return HAL_ERROR;
  16460. 80074d4: 2301 movs r3, #1
  16461. 80074d6: e01b b.n 8007510 <HAL_ADCEx_Calibration_Start+0xb8>
  16462. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  16463. 80074d8: 68fb ldr r3, [r7, #12]
  16464. 80074da: 681b ldr r3, [r3, #0]
  16465. 80074dc: 4618 mov r0, r3
  16466. 80074de: f7ff ff93 bl 8007408 <LL_ADC_IsCalibrationOnGoing>
  16467. 80074e2: 4603 mov r3, r0
  16468. 80074e4: 2b00 cmp r3, #0
  16469. 80074e6: d1e2 bne.n 80074ae <HAL_ADCEx_Calibration_Start+0x56>
  16470. }
  16471. }
  16472. /* Set ADC state */
  16473. ADC_STATE_CLR_SET(hadc->State,
  16474. 80074e8: 68fb ldr r3, [r7, #12]
  16475. 80074ea: 6d5b ldr r3, [r3, #84] @ 0x54
  16476. 80074ec: f023 0303 bic.w r3, r3, #3
  16477. 80074f0: f043 0201 orr.w r2, r3, #1
  16478. 80074f4: 68fb ldr r3, [r7, #12]
  16479. 80074f6: 655a str r2, [r3, #84] @ 0x54
  16480. 80074f8: e005 b.n 8007506 <HAL_ADCEx_Calibration_Start+0xae>
  16481. HAL_ADC_STATE_BUSY_INTERNAL,
  16482. HAL_ADC_STATE_READY);
  16483. }
  16484. else
  16485. {
  16486. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  16487. 80074fa: 68fb ldr r3, [r7, #12]
  16488. 80074fc: 6d5b ldr r3, [r3, #84] @ 0x54
  16489. 80074fe: f043 0210 orr.w r2, r3, #16
  16490. 8007502: 68fb ldr r3, [r7, #12]
  16491. 8007504: 655a str r2, [r3, #84] @ 0x54
  16492. /* Note: No need to update variable "tmp_hal_status" here: already set */
  16493. /* to state "HAL_ERROR" by function disabling the ADC. */
  16494. }
  16495. /* Process unlocked */
  16496. __HAL_UNLOCK(hadc);
  16497. 8007506: 68fb ldr r3, [r7, #12]
  16498. 8007508: 2200 movs r2, #0
  16499. 800750a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16500. /* Return function status */
  16501. return tmp_hal_status;
  16502. 800750e: 7dfb ldrb r3, [r7, #23]
  16503. }
  16504. 8007510: 4618 mov r0, r3
  16505. 8007512: 3718 adds r7, #24
  16506. 8007514: 46bd mov sp, r7
  16507. 8007516: bd80 pop {r7, pc}
  16508. 8007518: ffffeefd .word 0xffffeefd
  16509. 800751c: 25c3f800 .word 0x25c3f800
  16510. 08007520 <HAL_ADCEx_MultiModeConfigChannel>:
  16511. * @param hadc Master ADC handle
  16512. * @param multimode Structure of ADC multimode configuration
  16513. * @retval HAL status
  16514. */
  16515. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  16516. {
  16517. 8007520: b590 push {r4, r7, lr}
  16518. 8007522: b09f sub sp, #124 @ 0x7c
  16519. 8007524: af00 add r7, sp, #0
  16520. 8007526: 6078 str r0, [r7, #4]
  16521. 8007528: 6039 str r1, [r7, #0]
  16522. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  16523. 800752a: 2300 movs r3, #0
  16524. 800752c: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16525. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  16526. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  16527. }
  16528. /* Process locked */
  16529. __HAL_LOCK(hadc);
  16530. 8007530: 687b ldr r3, [r7, #4]
  16531. 8007532: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16532. 8007536: 2b01 cmp r3, #1
  16533. 8007538: d101 bne.n 800753e <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  16534. 800753a: 2302 movs r3, #2
  16535. 800753c: e0be b.n 80076bc <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16536. 800753e: 687b ldr r3, [r7, #4]
  16537. 8007540: 2201 movs r2, #1
  16538. 8007542: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16539. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  16540. 8007546: 2300 movs r3, #0
  16541. 8007548: 65fb str r3, [r7, #92] @ 0x5c
  16542. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  16543. 800754a: 2300 movs r3, #0
  16544. 800754c: 663b str r3, [r7, #96] @ 0x60
  16545. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  16546. 800754e: 687b ldr r3, [r7, #4]
  16547. 8007550: 681b ldr r3, [r3, #0]
  16548. 8007552: 4a5c ldr r2, [pc, #368] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16549. 8007554: 4293 cmp r3, r2
  16550. 8007556: d102 bne.n 800755e <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  16551. 8007558: 4b5b ldr r3, [pc, #364] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16552. 800755a: 60bb str r3, [r7, #8]
  16553. 800755c: e001 b.n 8007562 <HAL_ADCEx_MultiModeConfigChannel+0x42>
  16554. 800755e: 2300 movs r3, #0
  16555. 8007560: 60bb str r3, [r7, #8]
  16556. if (tmphadcSlave.Instance == NULL)
  16557. 8007562: 68bb ldr r3, [r7, #8]
  16558. 8007564: 2b00 cmp r3, #0
  16559. 8007566: d10b bne.n 8007580 <HAL_ADCEx_MultiModeConfigChannel+0x60>
  16560. {
  16561. /* Update ADC state machine to error */
  16562. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16563. 8007568: 687b ldr r3, [r7, #4]
  16564. 800756a: 6d5b ldr r3, [r3, #84] @ 0x54
  16565. 800756c: f043 0220 orr.w r2, r3, #32
  16566. 8007570: 687b ldr r3, [r7, #4]
  16567. 8007572: 655a str r2, [r3, #84] @ 0x54
  16568. /* Process unlocked */
  16569. __HAL_UNLOCK(hadc);
  16570. 8007574: 687b ldr r3, [r7, #4]
  16571. 8007576: 2200 movs r2, #0
  16572. 8007578: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16573. return HAL_ERROR;
  16574. 800757c: 2301 movs r3, #1
  16575. 800757e: e09d b.n 80076bc <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16576. /* Parameters update conditioned to ADC state: */
  16577. /* Parameters that can be updated when ADC is disabled or enabled without */
  16578. /* conversion on going on regular group: */
  16579. /* - Multimode DATA Format configuration */
  16580. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  16581. 8007580: 68bb ldr r3, [r7, #8]
  16582. 8007582: 4618 mov r0, r3
  16583. 8007584: f7ff ff54 bl 8007430 <LL_ADC_REG_IsConversionOngoing>
  16584. 8007588: 6738 str r0, [r7, #112] @ 0x70
  16585. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  16586. 800758a: 687b ldr r3, [r7, #4]
  16587. 800758c: 681b ldr r3, [r3, #0]
  16588. 800758e: 4618 mov r0, r3
  16589. 8007590: f7ff ff4e bl 8007430 <LL_ADC_REG_IsConversionOngoing>
  16590. 8007594: 4603 mov r3, r0
  16591. 8007596: 2b00 cmp r3, #0
  16592. 8007598: d17f bne.n 800769a <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16593. && (tmphadcSlave_conversion_on_going == 0UL))
  16594. 800759a: 6f3b ldr r3, [r7, #112] @ 0x70
  16595. 800759c: 2b00 cmp r3, #0
  16596. 800759e: d17c bne.n 800769a <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16597. {
  16598. /* Pointer to the common control register */
  16599. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16600. 80075a0: 687b ldr r3, [r7, #4]
  16601. 80075a2: 681b ldr r3, [r3, #0]
  16602. 80075a4: 4a47 ldr r2, [pc, #284] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16603. 80075a6: 4293 cmp r3, r2
  16604. 80075a8: d004 beq.n 80075b4 <HAL_ADCEx_MultiModeConfigChannel+0x94>
  16605. 80075aa: 687b ldr r3, [r7, #4]
  16606. 80075ac: 681b ldr r3, [r3, #0]
  16607. 80075ae: 4a46 ldr r2, [pc, #280] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16608. 80075b0: 4293 cmp r3, r2
  16609. 80075b2: d101 bne.n 80075b8 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  16610. 80075b4: 4b45 ldr r3, [pc, #276] @ (80076cc <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  16611. 80075b6: e000 b.n 80075ba <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  16612. 80075b8: 4b45 ldr r3, [pc, #276] @ (80076d0 <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  16613. 80075ba: 66fb str r3, [r7, #108] @ 0x6c
  16614. /* If multimode is selected, configure all multimode parameters. */
  16615. /* Otherwise, reset multimode parameters (can be used in case of */
  16616. /* transition from multimode to independent mode). */
  16617. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16618. 80075bc: 683b ldr r3, [r7, #0]
  16619. 80075be: 681b ldr r3, [r3, #0]
  16620. 80075c0: 2b00 cmp r3, #0
  16621. 80075c2: d039 beq.n 8007638 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  16622. {
  16623. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  16624. 80075c4: 6efb ldr r3, [r7, #108] @ 0x6c
  16625. 80075c6: 689b ldr r3, [r3, #8]
  16626. 80075c8: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16627. 80075cc: 683b ldr r3, [r7, #0]
  16628. 80075ce: 685b ldr r3, [r3, #4]
  16629. 80075d0: 431a orrs r2, r3
  16630. 80075d2: 6efb ldr r3, [r7, #108] @ 0x6c
  16631. 80075d4: 609a str r2, [r3, #8]
  16632. /* from 1 to 8 clock cycles for 12 bits */
  16633. /* from 1 to 6 clock cycles for 10 and 8 bits */
  16634. /* If a higher delay is selected, it will be clipped to maximum delay */
  16635. /* range */
  16636. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16637. 80075d6: 687b ldr r3, [r7, #4]
  16638. 80075d8: 681b ldr r3, [r3, #0]
  16639. 80075da: 4a3a ldr r2, [pc, #232] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16640. 80075dc: 4293 cmp r3, r2
  16641. 80075de: d004 beq.n 80075ea <HAL_ADCEx_MultiModeConfigChannel+0xca>
  16642. 80075e0: 687b ldr r3, [r7, #4]
  16643. 80075e2: 681b ldr r3, [r3, #0]
  16644. 80075e4: 4a38 ldr r2, [pc, #224] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16645. 80075e6: 4293 cmp r3, r2
  16646. 80075e8: d10e bne.n 8007608 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  16647. 80075ea: 4836 ldr r0, [pc, #216] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16648. 80075ec: f7ff feda bl 80073a4 <LL_ADC_IsEnabled>
  16649. 80075f0: 4604 mov r4, r0
  16650. 80075f2: 4835 ldr r0, [pc, #212] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16651. 80075f4: f7ff fed6 bl 80073a4 <LL_ADC_IsEnabled>
  16652. 80075f8: 4603 mov r3, r0
  16653. 80075fa: 4323 orrs r3, r4
  16654. 80075fc: 2b00 cmp r3, #0
  16655. 80075fe: bf0c ite eq
  16656. 8007600: 2301 moveq r3, #1
  16657. 8007602: 2300 movne r3, #0
  16658. 8007604: b2db uxtb r3, r3
  16659. 8007606: e008 b.n 800761a <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  16660. 8007608: 4832 ldr r0, [pc, #200] @ (80076d4 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16661. 800760a: f7ff fecb bl 80073a4 <LL_ADC_IsEnabled>
  16662. 800760e: 4603 mov r3, r0
  16663. 8007610: 2b00 cmp r3, #0
  16664. 8007612: bf0c ite eq
  16665. 8007614: 2301 moveq r3, #1
  16666. 8007616: 2300 movne r3, #0
  16667. 8007618: b2db uxtb r3, r3
  16668. 800761a: 2b00 cmp r3, #0
  16669. 800761c: d047 beq.n 80076ae <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16670. {
  16671. MODIFY_REG(tmpADC_Common->CCR,
  16672. 800761e: 6efb ldr r3, [r7, #108] @ 0x6c
  16673. 8007620: 689a ldr r2, [r3, #8]
  16674. 8007622: 4b2d ldr r3, [pc, #180] @ (80076d8 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16675. 8007624: 4013 ands r3, r2
  16676. 8007626: 683a ldr r2, [r7, #0]
  16677. 8007628: 6811 ldr r1, [r2, #0]
  16678. 800762a: 683a ldr r2, [r7, #0]
  16679. 800762c: 6892 ldr r2, [r2, #8]
  16680. 800762e: 430a orrs r2, r1
  16681. 8007630: 431a orrs r2, r3
  16682. 8007632: 6efb ldr r3, [r7, #108] @ 0x6c
  16683. 8007634: 609a str r2, [r3, #8]
  16684. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16685. 8007636: e03a b.n 80076ae <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16686. );
  16687. }
  16688. }
  16689. else /* ADC_MODE_INDEPENDENT */
  16690. {
  16691. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  16692. 8007638: 6efb ldr r3, [r7, #108] @ 0x6c
  16693. 800763a: 689b ldr r3, [r3, #8]
  16694. 800763c: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16695. 8007640: 6efb ldr r3, [r7, #108] @ 0x6c
  16696. 8007642: 609a str r2, [r3, #8]
  16697. /* Parameters that can be updated only when ADC is disabled: */
  16698. /* - Multimode mode selection */
  16699. /* - Multimode delay */
  16700. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16701. 8007644: 687b ldr r3, [r7, #4]
  16702. 8007646: 681b ldr r3, [r3, #0]
  16703. 8007648: 4a1e ldr r2, [pc, #120] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16704. 800764a: 4293 cmp r3, r2
  16705. 800764c: d004 beq.n 8007658 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  16706. 800764e: 687b ldr r3, [r7, #4]
  16707. 8007650: 681b ldr r3, [r3, #0]
  16708. 8007652: 4a1d ldr r2, [pc, #116] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16709. 8007654: 4293 cmp r3, r2
  16710. 8007656: d10e bne.n 8007676 <HAL_ADCEx_MultiModeConfigChannel+0x156>
  16711. 8007658: 481a ldr r0, [pc, #104] @ (80076c4 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16712. 800765a: f7ff fea3 bl 80073a4 <LL_ADC_IsEnabled>
  16713. 800765e: 4604 mov r4, r0
  16714. 8007660: 4819 ldr r0, [pc, #100] @ (80076c8 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16715. 8007662: f7ff fe9f bl 80073a4 <LL_ADC_IsEnabled>
  16716. 8007666: 4603 mov r3, r0
  16717. 8007668: 4323 orrs r3, r4
  16718. 800766a: 2b00 cmp r3, #0
  16719. 800766c: bf0c ite eq
  16720. 800766e: 2301 moveq r3, #1
  16721. 8007670: 2300 movne r3, #0
  16722. 8007672: b2db uxtb r3, r3
  16723. 8007674: e008 b.n 8007688 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  16724. 8007676: 4817 ldr r0, [pc, #92] @ (80076d4 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16725. 8007678: f7ff fe94 bl 80073a4 <LL_ADC_IsEnabled>
  16726. 800767c: 4603 mov r3, r0
  16727. 800767e: 2b00 cmp r3, #0
  16728. 8007680: bf0c ite eq
  16729. 8007682: 2301 moveq r3, #1
  16730. 8007684: 2300 movne r3, #0
  16731. 8007686: b2db uxtb r3, r3
  16732. 8007688: 2b00 cmp r3, #0
  16733. 800768a: d010 beq.n 80076ae <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16734. {
  16735. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  16736. 800768c: 6efb ldr r3, [r7, #108] @ 0x6c
  16737. 800768e: 689a ldr r2, [r3, #8]
  16738. 8007690: 4b11 ldr r3, [pc, #68] @ (80076d8 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16739. 8007692: 4013 ands r3, r2
  16740. 8007694: 6efa ldr r2, [r7, #108] @ 0x6c
  16741. 8007696: 6093 str r3, [r2, #8]
  16742. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16743. 8007698: e009 b.n 80076ae <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16744. /* If one of the ADC sharing the same common group is enabled, no update */
  16745. /* could be done on neither of the multimode structure parameters. */
  16746. else
  16747. {
  16748. /* Update ADC state machine to error */
  16749. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16750. 800769a: 687b ldr r3, [r7, #4]
  16751. 800769c: 6d5b ldr r3, [r3, #84] @ 0x54
  16752. 800769e: f043 0220 orr.w r2, r3, #32
  16753. 80076a2: 687b ldr r3, [r7, #4]
  16754. 80076a4: 655a str r2, [r3, #84] @ 0x54
  16755. tmp_hal_status = HAL_ERROR;
  16756. 80076a6: 2301 movs r3, #1
  16757. 80076a8: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16758. 80076ac: e000 b.n 80076b0 <HAL_ADCEx_MultiModeConfigChannel+0x190>
  16759. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16760. 80076ae: bf00 nop
  16761. }
  16762. /* Process unlocked */
  16763. __HAL_UNLOCK(hadc);
  16764. 80076b0: 687b ldr r3, [r7, #4]
  16765. 80076b2: 2200 movs r2, #0
  16766. 80076b4: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16767. /* Return function status */
  16768. return tmp_hal_status;
  16769. 80076b8: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  16770. }
  16771. 80076bc: 4618 mov r0, r3
  16772. 80076be: 377c adds r7, #124 @ 0x7c
  16773. 80076c0: 46bd mov sp, r7
  16774. 80076c2: bd90 pop {r4, r7, pc}
  16775. 80076c4: 40022000 .word 0x40022000
  16776. 80076c8: 40022100 .word 0x40022100
  16777. 80076cc: 40022300 .word 0x40022300
  16778. 80076d0: 58026300 .word 0x58026300
  16779. 80076d4: 58026000 .word 0x58026000
  16780. 80076d8: fffff0e0 .word 0xfffff0e0
  16781. 080076dc <HAL_COMP_Init>:
  16782. * To unlock the configuration, perform a system reset.
  16783. * @param hcomp COMP handle
  16784. * @retval HAL status
  16785. */
  16786. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  16787. {
  16788. 80076dc: b580 push {r7, lr}
  16789. 80076de: b088 sub sp, #32
  16790. 80076e0: af00 add r7, sp, #0
  16791. 80076e2: 6078 str r0, [r7, #4]
  16792. uint32_t tmp_csr ;
  16793. uint32_t exti_line ;
  16794. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  16795. __IO uint32_t wait_loop_index = 0UL;
  16796. 80076e4: 2300 movs r3, #0
  16797. 80076e6: 60fb str r3, [r7, #12]
  16798. HAL_StatusTypeDef status = HAL_OK;
  16799. 80076e8: 2300 movs r3, #0
  16800. 80076ea: 77fb strb r3, [r7, #31]
  16801. /* Check the COMP handle allocation and lock status */
  16802. if(hcomp == NULL)
  16803. 80076ec: 687b ldr r3, [r7, #4]
  16804. 80076ee: 2b00 cmp r3, #0
  16805. 80076f0: d102 bne.n 80076f8 <HAL_COMP_Init+0x1c>
  16806. {
  16807. status = HAL_ERROR;
  16808. 80076f2: 2301 movs r3, #1
  16809. 80076f4: 77fb strb r3, [r7, #31]
  16810. 80076f6: e10e b.n 8007916 <HAL_COMP_Init+0x23a>
  16811. }
  16812. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16813. 80076f8: 687b ldr r3, [r7, #4]
  16814. 80076fa: 681b ldr r3, [r3, #0]
  16815. 80076fc: 681b ldr r3, [r3, #0]
  16816. 80076fe: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16817. 8007702: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16818. 8007706: d102 bne.n 800770e <HAL_COMP_Init+0x32>
  16819. {
  16820. status = HAL_ERROR;
  16821. 8007708: 2301 movs r3, #1
  16822. 800770a: 77fb strb r3, [r7, #31]
  16823. 800770c: e103 b.n 8007916 <HAL_COMP_Init+0x23a>
  16824. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  16825. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  16826. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  16827. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  16828. if(hcomp->State == HAL_COMP_STATE_RESET)
  16829. 800770e: 687b ldr r3, [r7, #4]
  16830. 8007710: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16831. 8007714: b2db uxtb r3, r3
  16832. 8007716: 2b00 cmp r3, #0
  16833. 8007718: d109 bne.n 800772e <HAL_COMP_Init+0x52>
  16834. {
  16835. /* Allocate lock resource and initialize it */
  16836. hcomp->Lock = HAL_UNLOCKED;
  16837. 800771a: 687b ldr r3, [r7, #4]
  16838. 800771c: 2200 movs r2, #0
  16839. 800771e: f883 2024 strb.w r2, [r3, #36] @ 0x24
  16840. /* Set COMP error code to none */
  16841. COMP_CLEAR_ERRORCODE(hcomp);
  16842. 8007722: 687b ldr r3, [r7, #4]
  16843. 8007724: 2200 movs r2, #0
  16844. 8007726: 629a str r2, [r3, #40] @ 0x28
  16845. /* Init the low level hardware */
  16846. hcomp->MspInitCallback(hcomp);
  16847. #else
  16848. /* Init the low level hardware */
  16849. HAL_COMP_MspInit(hcomp);
  16850. 8007728: 6878 ldr r0, [r7, #4]
  16851. 800772a: f7fc fca9 bl 8004080 <HAL_COMP_MspInit>
  16852. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  16853. }
  16854. /* Memorize voltage scaler state before initialization */
  16855. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  16856. 800772e: 687b ldr r3, [r7, #4]
  16857. 8007730: 681b ldr r3, [r3, #0]
  16858. 8007732: 681b ldr r3, [r3, #0]
  16859. 8007734: f003 0304 and.w r3, r3, #4
  16860. 8007738: 61bb str r3, [r7, #24]
  16861. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  16862. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  16863. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  16864. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  16865. tmp_csr = (hcomp->Init.InvertingInput | \
  16866. 800773a: 687b ldr r3, [r7, #4]
  16867. 800773c: 691a ldr r2, [r3, #16]
  16868. hcomp->Init.NonInvertingInput | \
  16869. 800773e: 687b ldr r3, [r7, #4]
  16870. 8007740: 68db ldr r3, [r3, #12]
  16871. tmp_csr = (hcomp->Init.InvertingInput | \
  16872. 8007742: 431a orrs r2, r3
  16873. hcomp->Init.BlankingSrce | \
  16874. 8007744: 687b ldr r3, [r7, #4]
  16875. 8007746: 69db ldr r3, [r3, #28]
  16876. hcomp->Init.NonInvertingInput | \
  16877. 8007748: 431a orrs r2, r3
  16878. hcomp->Init.Hysteresis | \
  16879. 800774a: 687b ldr r3, [r7, #4]
  16880. 800774c: 695b ldr r3, [r3, #20]
  16881. hcomp->Init.BlankingSrce | \
  16882. 800774e: 431a orrs r2, r3
  16883. hcomp->Init.OutputPol | \
  16884. 8007750: 687b ldr r3, [r7, #4]
  16885. 8007752: 699b ldr r3, [r3, #24]
  16886. hcomp->Init.Hysteresis | \
  16887. 8007754: 431a orrs r2, r3
  16888. hcomp->Init.Mode );
  16889. 8007756: 687b ldr r3, [r7, #4]
  16890. 8007758: 689b ldr r3, [r3, #8]
  16891. tmp_csr = (hcomp->Init.InvertingInput | \
  16892. 800775a: 4313 orrs r3, r2
  16893. 800775c: 617b str r3, [r7, #20]
  16894. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  16895. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  16896. tmp_csr
  16897. );
  16898. #else
  16899. MODIFY_REG(hcomp->Instance->CFGR,
  16900. 800775e: 687b ldr r3, [r7, #4]
  16901. 8007760: 681b ldr r3, [r3, #0]
  16902. 8007762: 681a ldr r2, [r3, #0]
  16903. 8007764: 4b6e ldr r3, [pc, #440] @ (8007920 <HAL_COMP_Init+0x244>)
  16904. 8007766: 4013 ands r3, r2
  16905. 8007768: 687a ldr r2, [r7, #4]
  16906. 800776a: 6812 ldr r2, [r2, #0]
  16907. 800776c: 6979 ldr r1, [r7, #20]
  16908. 800776e: 430b orrs r3, r1
  16909. 8007770: 6013 str r3, [r2, #0]
  16910. #endif
  16911. /* Set window mode */
  16912. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  16913. /* instances. Therefore, this function can update another COMP */
  16914. /* instance that the one currently selected. */
  16915. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  16916. 8007772: 687b ldr r3, [r7, #4]
  16917. 8007774: 685b ldr r3, [r3, #4]
  16918. 8007776: 2b10 cmp r3, #16
  16919. 8007778: d108 bne.n 800778c <HAL_COMP_Init+0xb0>
  16920. {
  16921. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16922. 800777a: 687b ldr r3, [r7, #4]
  16923. 800777c: 681b ldr r3, [r3, #0]
  16924. 800777e: 681a ldr r2, [r3, #0]
  16925. 8007780: 687b ldr r3, [r7, #4]
  16926. 8007782: 681b ldr r3, [r3, #0]
  16927. 8007784: f042 0210 orr.w r2, r2, #16
  16928. 8007788: 601a str r2, [r3, #0]
  16929. 800778a: e007 b.n 800779c <HAL_COMP_Init+0xc0>
  16930. }
  16931. else
  16932. {
  16933. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16934. 800778c: 687b ldr r3, [r7, #4]
  16935. 800778e: 681b ldr r3, [r3, #0]
  16936. 8007790: 681a ldr r2, [r3, #0]
  16937. 8007792: 687b ldr r3, [r7, #4]
  16938. 8007794: 681b ldr r3, [r3, #0]
  16939. 8007796: f022 0210 bic.w r2, r2, #16
  16940. 800779a: 601a str r2, [r3, #0]
  16941. }
  16942. /* Delay for COMP scaler bridge voltage stabilization */
  16943. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  16944. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  16945. 800779c: 687b ldr r3, [r7, #4]
  16946. 800779e: 681b ldr r3, [r3, #0]
  16947. 80077a0: 681b ldr r3, [r3, #0]
  16948. 80077a2: f003 0304 and.w r3, r3, #4
  16949. 80077a6: 2b00 cmp r3, #0
  16950. 80077a8: d016 beq.n 80077d8 <HAL_COMP_Init+0xfc>
  16951. 80077aa: 69bb ldr r3, [r7, #24]
  16952. 80077ac: 2b00 cmp r3, #0
  16953. 80077ae: d013 beq.n 80077d8 <HAL_COMP_Init+0xfc>
  16954. {
  16955. /* Wait loop initialization and execution */
  16956. /* Note: Variable divided by 2 to compensate partially */
  16957. /* CPU processing cycles.*/
  16958. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16959. 80077b0: 4b5c ldr r3, [pc, #368] @ (8007924 <HAL_COMP_Init+0x248>)
  16960. 80077b2: 681b ldr r3, [r3, #0]
  16961. 80077b4: 099b lsrs r3, r3, #6
  16962. 80077b6: 4a5c ldr r2, [pc, #368] @ (8007928 <HAL_COMP_Init+0x24c>)
  16963. 80077b8: fba2 2303 umull r2, r3, r2, r3
  16964. 80077bc: 099b lsrs r3, r3, #6
  16965. 80077be: 1c5a adds r2, r3, #1
  16966. 80077c0: 4613 mov r3, r2
  16967. 80077c2: 009b lsls r3, r3, #2
  16968. 80077c4: 4413 add r3, r2
  16969. 80077c6: 009b lsls r3, r3, #2
  16970. 80077c8: 60fb str r3, [r7, #12]
  16971. while(wait_loop_index != 0UL)
  16972. 80077ca: e002 b.n 80077d2 <HAL_COMP_Init+0xf6>
  16973. {
  16974. wait_loop_index --;
  16975. 80077cc: 68fb ldr r3, [r7, #12]
  16976. 80077ce: 3b01 subs r3, #1
  16977. 80077d0: 60fb str r3, [r7, #12]
  16978. while(wait_loop_index != 0UL)
  16979. 80077d2: 68fb ldr r3, [r7, #12]
  16980. 80077d4: 2b00 cmp r3, #0
  16981. 80077d6: d1f9 bne.n 80077cc <HAL_COMP_Init+0xf0>
  16982. }
  16983. }
  16984. /* Get the EXTI line corresponding to the selected COMP instance */
  16985. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  16986. 80077d8: 687b ldr r3, [r7, #4]
  16987. 80077da: 681b ldr r3, [r3, #0]
  16988. 80077dc: 4a53 ldr r2, [pc, #332] @ (800792c <HAL_COMP_Init+0x250>)
  16989. 80077de: 4293 cmp r3, r2
  16990. 80077e0: d102 bne.n 80077e8 <HAL_COMP_Init+0x10c>
  16991. 80077e2: f44f 1380 mov.w r3, #1048576 @ 0x100000
  16992. 80077e6: e001 b.n 80077ec <HAL_COMP_Init+0x110>
  16993. 80077e8: f44f 1300 mov.w r3, #2097152 @ 0x200000
  16994. 80077ec: 613b str r3, [r7, #16]
  16995. /* Manage EXTI settings */
  16996. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  16997. 80077ee: 687b ldr r3, [r7, #4]
  16998. 80077f0: 6a1b ldr r3, [r3, #32]
  16999. 80077f2: f003 0303 and.w r3, r3, #3
  17000. 80077f6: 2b00 cmp r3, #0
  17001. 80077f8: d06d beq.n 80078d6 <HAL_COMP_Init+0x1fa>
  17002. {
  17003. /* Configure EXTI rising edge */
  17004. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  17005. 80077fa: 687b ldr r3, [r7, #4]
  17006. 80077fc: 6a1b ldr r3, [r3, #32]
  17007. 80077fe: f003 0310 and.w r3, r3, #16
  17008. 8007802: 2b00 cmp r3, #0
  17009. 8007804: d008 beq.n 8007818 <HAL_COMP_Init+0x13c>
  17010. {
  17011. SET_BIT(EXTI->RTSR1, exti_line);
  17012. 8007806: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17013. 800780a: 681a ldr r2, [r3, #0]
  17014. 800780c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17015. 8007810: 693b ldr r3, [r7, #16]
  17016. 8007812: 4313 orrs r3, r2
  17017. 8007814: 600b str r3, [r1, #0]
  17018. 8007816: e008 b.n 800782a <HAL_COMP_Init+0x14e>
  17019. }
  17020. else
  17021. {
  17022. CLEAR_BIT(EXTI->RTSR1, exti_line);
  17023. 8007818: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17024. 800781c: 681a ldr r2, [r3, #0]
  17025. 800781e: 693b ldr r3, [r7, #16]
  17026. 8007820: 43db mvns r3, r3
  17027. 8007822: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17028. 8007826: 4013 ands r3, r2
  17029. 8007828: 600b str r3, [r1, #0]
  17030. }
  17031. /* Configure EXTI falling edge */
  17032. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  17033. 800782a: 687b ldr r3, [r7, #4]
  17034. 800782c: 6a1b ldr r3, [r3, #32]
  17035. 800782e: f003 0320 and.w r3, r3, #32
  17036. 8007832: 2b00 cmp r3, #0
  17037. 8007834: d008 beq.n 8007848 <HAL_COMP_Init+0x16c>
  17038. {
  17039. SET_BIT(EXTI->FTSR1, exti_line);
  17040. 8007836: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17041. 800783a: 685a ldr r2, [r3, #4]
  17042. 800783c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17043. 8007840: 693b ldr r3, [r7, #16]
  17044. 8007842: 4313 orrs r3, r2
  17045. 8007844: 604b str r3, [r1, #4]
  17046. 8007846: e008 b.n 800785a <HAL_COMP_Init+0x17e>
  17047. }
  17048. else
  17049. {
  17050. CLEAR_BIT(EXTI->FTSR1, exti_line);
  17051. 8007848: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17052. 800784c: 685a ldr r2, [r3, #4]
  17053. 800784e: 693b ldr r3, [r7, #16]
  17054. 8007850: 43db mvns r3, r3
  17055. 8007852: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17056. 8007856: 4013 ands r3, r2
  17057. 8007858: 604b str r3, [r1, #4]
  17058. }
  17059. #if !defined (CORE_CM4)
  17060. /* Clear COMP EXTI pending bit (if any) */
  17061. WRITE_REG(EXTI->PR1, exti_line);
  17062. 800785a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  17063. 800785e: 693b ldr r3, [r7, #16]
  17064. 8007860: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  17065. /* Configure EXTI event mode */
  17066. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  17067. 8007864: 687b ldr r3, [r7, #4]
  17068. 8007866: 6a1b ldr r3, [r3, #32]
  17069. 8007868: f003 0302 and.w r3, r3, #2
  17070. 800786c: 2b00 cmp r3, #0
  17071. 800786e: d00a beq.n 8007886 <HAL_COMP_Init+0x1aa>
  17072. {
  17073. SET_BIT(EXTI->EMR1, exti_line);
  17074. 8007870: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17075. 8007874: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17076. 8007878: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17077. 800787c: 693b ldr r3, [r7, #16]
  17078. 800787e: 4313 orrs r3, r2
  17079. 8007880: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17080. 8007884: e00a b.n 800789c <HAL_COMP_Init+0x1c0>
  17081. }
  17082. else
  17083. {
  17084. CLEAR_BIT(EXTI->EMR1, exti_line);
  17085. 8007886: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17086. 800788a: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17087. 800788e: 693b ldr r3, [r7, #16]
  17088. 8007890: 43db mvns r3, r3
  17089. 8007892: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17090. 8007896: 4013 ands r3, r2
  17091. 8007898: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17092. }
  17093. /* Configure EXTI interrupt mode */
  17094. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  17095. 800789c: 687b ldr r3, [r7, #4]
  17096. 800789e: 6a1b ldr r3, [r3, #32]
  17097. 80078a0: f003 0301 and.w r3, r3, #1
  17098. 80078a4: 2b00 cmp r3, #0
  17099. 80078a6: d00a beq.n 80078be <HAL_COMP_Init+0x1e2>
  17100. {
  17101. SET_BIT(EXTI->IMR1, exti_line);
  17102. 80078a8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17103. 80078ac: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17104. 80078b0: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17105. 80078b4: 693b ldr r3, [r7, #16]
  17106. 80078b6: 4313 orrs r3, r2
  17107. 80078b8: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17108. 80078bc: e021 b.n 8007902 <HAL_COMP_Init+0x226>
  17109. }
  17110. else
  17111. {
  17112. CLEAR_BIT(EXTI->IMR1, exti_line);
  17113. 80078be: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17114. 80078c2: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17115. 80078c6: 693b ldr r3, [r7, #16]
  17116. 80078c8: 43db mvns r3, r3
  17117. 80078ca: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17118. 80078ce: 4013 ands r3, r2
  17119. 80078d0: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17120. 80078d4: e015 b.n 8007902 <HAL_COMP_Init+0x226>
  17121. }
  17122. }
  17123. else
  17124. {
  17125. /* Disable EXTI event mode */
  17126. CLEAR_BIT(EXTI->EMR1, exti_line);
  17127. 80078d6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17128. 80078da: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  17129. 80078de: 693b ldr r3, [r7, #16]
  17130. 80078e0: 43db mvns r3, r3
  17131. 80078e2: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17132. 80078e6: 4013 ands r3, r2
  17133. 80078e8: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  17134. /* Disable EXTI interrupt mode */
  17135. CLEAR_BIT(EXTI->IMR1, exti_line);
  17136. 80078ec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  17137. 80078f0: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  17138. 80078f4: 693b ldr r3, [r7, #16]
  17139. 80078f6: 43db mvns r3, r3
  17140. 80078f8: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  17141. 80078fc: 4013 ands r3, r2
  17142. 80078fe: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  17143. }
  17144. #endif
  17145. /* Set HAL COMP handle state */
  17146. /* Note: Transition from state reset to state ready, */
  17147. /* otherwise (coming from state ready or busy) no state update. */
  17148. if (hcomp->State == HAL_COMP_STATE_RESET)
  17149. 8007902: 687b ldr r3, [r7, #4]
  17150. 8007904: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17151. 8007908: b2db uxtb r3, r3
  17152. 800790a: 2b00 cmp r3, #0
  17153. 800790c: d103 bne.n 8007916 <HAL_COMP_Init+0x23a>
  17154. {
  17155. hcomp->State = HAL_COMP_STATE_READY;
  17156. 800790e: 687b ldr r3, [r7, #4]
  17157. 8007910: 2201 movs r2, #1
  17158. 8007912: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17159. }
  17160. }
  17161. return status;
  17162. 8007916: 7ffb ldrb r3, [r7, #31]
  17163. }
  17164. 8007918: 4618 mov r0, r3
  17165. 800791a: 3720 adds r7, #32
  17166. 800791c: 46bd mov sp, r7
  17167. 800791e: bd80 pop {r7, pc}
  17168. 8007920: f0e8cce1 .word 0xf0e8cce1
  17169. 8007924: 24000034 .word 0x24000034
  17170. 8007928: 053e2d63 .word 0x053e2d63
  17171. 800792c: 5800380c .word 0x5800380c
  17172. 08007930 <HAL_COMP_Start>:
  17173. * @brief Start the comparator.
  17174. * @param hcomp COMP handle
  17175. * @retval HAL status
  17176. */
  17177. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  17178. {
  17179. 8007930: b480 push {r7}
  17180. 8007932: b085 sub sp, #20
  17181. 8007934: af00 add r7, sp, #0
  17182. 8007936: 6078 str r0, [r7, #4]
  17183. __IO uint32_t wait_loop_index = 0UL;
  17184. 8007938: 2300 movs r3, #0
  17185. 800793a: 60bb str r3, [r7, #8]
  17186. HAL_StatusTypeDef status = HAL_OK;
  17187. 800793c: 2300 movs r3, #0
  17188. 800793e: 73fb strb r3, [r7, #15]
  17189. /* Check the COMP handle allocation and lock status */
  17190. if(hcomp == NULL)
  17191. 8007940: 687b ldr r3, [r7, #4]
  17192. 8007942: 2b00 cmp r3, #0
  17193. 8007944: d102 bne.n 800794c <HAL_COMP_Start+0x1c>
  17194. {
  17195. status = HAL_ERROR;
  17196. 8007946: 2301 movs r3, #1
  17197. 8007948: 73fb strb r3, [r7, #15]
  17198. 800794a: e030 b.n 80079ae <HAL_COMP_Start+0x7e>
  17199. }
  17200. else if(__HAL_COMP_IS_LOCKED(hcomp))
  17201. 800794c: 687b ldr r3, [r7, #4]
  17202. 800794e: 681b ldr r3, [r3, #0]
  17203. 8007950: 681b ldr r3, [r3, #0]
  17204. 8007952: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  17205. 8007956: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  17206. 800795a: d102 bne.n 8007962 <HAL_COMP_Start+0x32>
  17207. {
  17208. status = HAL_ERROR;
  17209. 800795c: 2301 movs r3, #1
  17210. 800795e: 73fb strb r3, [r7, #15]
  17211. 8007960: e025 b.n 80079ae <HAL_COMP_Start+0x7e>
  17212. else
  17213. {
  17214. /* Check the parameter */
  17215. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17216. if(hcomp->State == HAL_COMP_STATE_READY)
  17217. 8007962: 687b ldr r3, [r7, #4]
  17218. 8007964: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  17219. 8007968: b2db uxtb r3, r3
  17220. 800796a: 2b01 cmp r3, #1
  17221. 800796c: d11d bne.n 80079aa <HAL_COMP_Start+0x7a>
  17222. {
  17223. /* Enable the selected comparator */
  17224. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  17225. 800796e: 687b ldr r3, [r7, #4]
  17226. 8007970: 681b ldr r3, [r3, #0]
  17227. 8007972: 681a ldr r2, [r3, #0]
  17228. 8007974: 687b ldr r3, [r7, #4]
  17229. 8007976: 681b ldr r3, [r3, #0]
  17230. 8007978: f042 0201 orr.w r2, r2, #1
  17231. 800797c: 601a str r2, [r3, #0]
  17232. /* Set HAL COMP handle state */
  17233. hcomp->State = HAL_COMP_STATE_BUSY;
  17234. 800797e: 687b ldr r3, [r7, #4]
  17235. 8007980: 2202 movs r2, #2
  17236. 8007982: f883 2025 strb.w r2, [r3, #37] @ 0x25
  17237. /* Delay for COMP startup time */
  17238. /* Wait loop initialization and execution */
  17239. /* Note: Variable divided by 2 to compensate partially */
  17240. /* CPU processing cycles. */
  17241. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  17242. 8007986: 4b0d ldr r3, [pc, #52] @ (80079bc <HAL_COMP_Start+0x8c>)
  17243. 8007988: 681b ldr r3, [r3, #0]
  17244. 800798a: 099b lsrs r3, r3, #6
  17245. 800798c: 4a0c ldr r2, [pc, #48] @ (80079c0 <HAL_COMP_Start+0x90>)
  17246. 800798e: fba2 2303 umull r2, r3, r2, r3
  17247. 8007992: 099b lsrs r3, r3, #6
  17248. 8007994: 3301 adds r3, #1
  17249. 8007996: 00db lsls r3, r3, #3
  17250. 8007998: 60bb str r3, [r7, #8]
  17251. while(wait_loop_index != 0UL)
  17252. 800799a: e002 b.n 80079a2 <HAL_COMP_Start+0x72>
  17253. {
  17254. wait_loop_index--;
  17255. 800799c: 68bb ldr r3, [r7, #8]
  17256. 800799e: 3b01 subs r3, #1
  17257. 80079a0: 60bb str r3, [r7, #8]
  17258. while(wait_loop_index != 0UL)
  17259. 80079a2: 68bb ldr r3, [r7, #8]
  17260. 80079a4: 2b00 cmp r3, #0
  17261. 80079a6: d1f9 bne.n 800799c <HAL_COMP_Start+0x6c>
  17262. 80079a8: e001 b.n 80079ae <HAL_COMP_Start+0x7e>
  17263. }
  17264. }
  17265. else
  17266. {
  17267. status = HAL_ERROR;
  17268. 80079aa: 2301 movs r3, #1
  17269. 80079ac: 73fb strb r3, [r7, #15]
  17270. }
  17271. }
  17272. return status;
  17273. 80079ae: 7bfb ldrb r3, [r7, #15]
  17274. }
  17275. 80079b0: 4618 mov r0, r3
  17276. 80079b2: 3714 adds r7, #20
  17277. 80079b4: 46bd mov sp, r7
  17278. 80079b6: f85d 7b04 ldr.w r7, [sp], #4
  17279. 80079ba: 4770 bx lr
  17280. 80079bc: 24000034 .word 0x24000034
  17281. 80079c0: 053e2d63 .word 0x053e2d63
  17282. 080079c4 <HAL_COMP_GetOutputLevel>:
  17283. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  17284. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  17285. *
  17286. */
  17287. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  17288. {
  17289. 80079c4: b480 push {r7}
  17290. 80079c6: b083 sub sp, #12
  17291. 80079c8: af00 add r7, sp, #0
  17292. 80079ca: 6078 str r0, [r7, #4]
  17293. /* Check the parameter */
  17294. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  17295. if (hcomp->Instance == COMP1)
  17296. 80079cc: 687b ldr r3, [r7, #4]
  17297. 80079ce: 681b ldr r3, [r3, #0]
  17298. 80079d0: 4a09 ldr r2, [pc, #36] @ (80079f8 <HAL_COMP_GetOutputLevel+0x34>)
  17299. 80079d2: 4293 cmp r3, r2
  17300. 80079d4: d104 bne.n 80079e0 <HAL_COMP_GetOutputLevel+0x1c>
  17301. {
  17302. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  17303. 80079d6: 4b09 ldr r3, [pc, #36] @ (80079fc <HAL_COMP_GetOutputLevel+0x38>)
  17304. 80079d8: 681b ldr r3, [r3, #0]
  17305. 80079da: f003 0301 and.w r3, r3, #1
  17306. 80079de: e004 b.n 80079ea <HAL_COMP_GetOutputLevel+0x26>
  17307. }
  17308. else
  17309. {
  17310. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  17311. 80079e0: 4b06 ldr r3, [pc, #24] @ (80079fc <HAL_COMP_GetOutputLevel+0x38>)
  17312. 80079e2: 681b ldr r3, [r3, #0]
  17313. 80079e4: 085b lsrs r3, r3, #1
  17314. 80079e6: f003 0301 and.w r3, r3, #1
  17315. }
  17316. }
  17317. 80079ea: 4618 mov r0, r3
  17318. 80079ec: 370c adds r7, #12
  17319. 80079ee: 46bd mov sp, r7
  17320. 80079f0: f85d 7b04 ldr.w r7, [sp], #4
  17321. 80079f4: 4770 bx lr
  17322. 80079f6: bf00 nop
  17323. 80079f8: 5800380c .word 0x5800380c
  17324. 80079fc: 58003800 .word 0x58003800
  17325. 08007a00 <__NVIC_SetPriorityGrouping>:
  17326. {
  17327. 8007a00: b480 push {r7}
  17328. 8007a02: b085 sub sp, #20
  17329. 8007a04: af00 add r7, sp, #0
  17330. 8007a06: 6078 str r0, [r7, #4]
  17331. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17332. 8007a08: 687b ldr r3, [r7, #4]
  17333. 8007a0a: f003 0307 and.w r3, r3, #7
  17334. 8007a0e: 60fb str r3, [r7, #12]
  17335. reg_value = SCB->AIRCR; /* read old register configuration */
  17336. 8007a10: 4b0b ldr r3, [pc, #44] @ (8007a40 <__NVIC_SetPriorityGrouping+0x40>)
  17337. 8007a12: 68db ldr r3, [r3, #12]
  17338. 8007a14: 60bb str r3, [r7, #8]
  17339. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  17340. 8007a16: 68ba ldr r2, [r7, #8]
  17341. 8007a18: f64f 03ff movw r3, #63743 @ 0xf8ff
  17342. 8007a1c: 4013 ands r3, r2
  17343. 8007a1e: 60bb str r3, [r7, #8]
  17344. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  17345. 8007a20: 68fb ldr r3, [r7, #12]
  17346. 8007a22: 021a lsls r2, r3, #8
  17347. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  17348. 8007a24: 68bb ldr r3, [r7, #8]
  17349. 8007a26: 431a orrs r2, r3
  17350. reg_value = (reg_value |
  17351. 8007a28: 4b06 ldr r3, [pc, #24] @ (8007a44 <__NVIC_SetPriorityGrouping+0x44>)
  17352. 8007a2a: 4313 orrs r3, r2
  17353. 8007a2c: 60bb str r3, [r7, #8]
  17354. SCB->AIRCR = reg_value;
  17355. 8007a2e: 4a04 ldr r2, [pc, #16] @ (8007a40 <__NVIC_SetPriorityGrouping+0x40>)
  17356. 8007a30: 68bb ldr r3, [r7, #8]
  17357. 8007a32: 60d3 str r3, [r2, #12]
  17358. }
  17359. 8007a34: bf00 nop
  17360. 8007a36: 3714 adds r7, #20
  17361. 8007a38: 46bd mov sp, r7
  17362. 8007a3a: f85d 7b04 ldr.w r7, [sp], #4
  17363. 8007a3e: 4770 bx lr
  17364. 8007a40: e000ed00 .word 0xe000ed00
  17365. 8007a44: 05fa0000 .word 0x05fa0000
  17366. 08007a48 <__NVIC_GetPriorityGrouping>:
  17367. {
  17368. 8007a48: b480 push {r7}
  17369. 8007a4a: af00 add r7, sp, #0
  17370. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  17371. 8007a4c: 4b04 ldr r3, [pc, #16] @ (8007a60 <__NVIC_GetPriorityGrouping+0x18>)
  17372. 8007a4e: 68db ldr r3, [r3, #12]
  17373. 8007a50: 0a1b lsrs r3, r3, #8
  17374. 8007a52: f003 0307 and.w r3, r3, #7
  17375. }
  17376. 8007a56: 4618 mov r0, r3
  17377. 8007a58: 46bd mov sp, r7
  17378. 8007a5a: f85d 7b04 ldr.w r7, [sp], #4
  17379. 8007a5e: 4770 bx lr
  17380. 8007a60: e000ed00 .word 0xe000ed00
  17381. 08007a64 <__NVIC_EnableIRQ>:
  17382. {
  17383. 8007a64: b480 push {r7}
  17384. 8007a66: b083 sub sp, #12
  17385. 8007a68: af00 add r7, sp, #0
  17386. 8007a6a: 4603 mov r3, r0
  17387. 8007a6c: 80fb strh r3, [r7, #6]
  17388. if ((int32_t)(IRQn) >= 0)
  17389. 8007a6e: f9b7 3006 ldrsh.w r3, [r7, #6]
  17390. 8007a72: 2b00 cmp r3, #0
  17391. 8007a74: db0b blt.n 8007a8e <__NVIC_EnableIRQ+0x2a>
  17392. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  17393. 8007a76: 88fb ldrh r3, [r7, #6]
  17394. 8007a78: f003 021f and.w r2, r3, #31
  17395. 8007a7c: 4907 ldr r1, [pc, #28] @ (8007a9c <__NVIC_EnableIRQ+0x38>)
  17396. 8007a7e: f9b7 3006 ldrsh.w r3, [r7, #6]
  17397. 8007a82: 095b lsrs r3, r3, #5
  17398. 8007a84: 2001 movs r0, #1
  17399. 8007a86: fa00 f202 lsl.w r2, r0, r2
  17400. 8007a8a: f841 2023 str.w r2, [r1, r3, lsl #2]
  17401. }
  17402. 8007a8e: bf00 nop
  17403. 8007a90: 370c adds r7, #12
  17404. 8007a92: 46bd mov sp, r7
  17405. 8007a94: f85d 7b04 ldr.w r7, [sp], #4
  17406. 8007a98: 4770 bx lr
  17407. 8007a9a: bf00 nop
  17408. 8007a9c: e000e100 .word 0xe000e100
  17409. 08007aa0 <__NVIC_SetPriority>:
  17410. {
  17411. 8007aa0: b480 push {r7}
  17412. 8007aa2: b083 sub sp, #12
  17413. 8007aa4: af00 add r7, sp, #0
  17414. 8007aa6: 4603 mov r3, r0
  17415. 8007aa8: 6039 str r1, [r7, #0]
  17416. 8007aaa: 80fb strh r3, [r7, #6]
  17417. if ((int32_t)(IRQn) >= 0)
  17418. 8007aac: f9b7 3006 ldrsh.w r3, [r7, #6]
  17419. 8007ab0: 2b00 cmp r3, #0
  17420. 8007ab2: db0a blt.n 8007aca <__NVIC_SetPriority+0x2a>
  17421. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17422. 8007ab4: 683b ldr r3, [r7, #0]
  17423. 8007ab6: b2da uxtb r2, r3
  17424. 8007ab8: 490c ldr r1, [pc, #48] @ (8007aec <__NVIC_SetPriority+0x4c>)
  17425. 8007aba: f9b7 3006 ldrsh.w r3, [r7, #6]
  17426. 8007abe: 0112 lsls r2, r2, #4
  17427. 8007ac0: b2d2 uxtb r2, r2
  17428. 8007ac2: 440b add r3, r1
  17429. 8007ac4: f883 2300 strb.w r2, [r3, #768] @ 0x300
  17430. }
  17431. 8007ac8: e00a b.n 8007ae0 <__NVIC_SetPriority+0x40>
  17432. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17433. 8007aca: 683b ldr r3, [r7, #0]
  17434. 8007acc: b2da uxtb r2, r3
  17435. 8007ace: 4908 ldr r1, [pc, #32] @ (8007af0 <__NVIC_SetPriority+0x50>)
  17436. 8007ad0: 88fb ldrh r3, [r7, #6]
  17437. 8007ad2: f003 030f and.w r3, r3, #15
  17438. 8007ad6: 3b04 subs r3, #4
  17439. 8007ad8: 0112 lsls r2, r2, #4
  17440. 8007ada: b2d2 uxtb r2, r2
  17441. 8007adc: 440b add r3, r1
  17442. 8007ade: 761a strb r2, [r3, #24]
  17443. }
  17444. 8007ae0: bf00 nop
  17445. 8007ae2: 370c adds r7, #12
  17446. 8007ae4: 46bd mov sp, r7
  17447. 8007ae6: f85d 7b04 ldr.w r7, [sp], #4
  17448. 8007aea: 4770 bx lr
  17449. 8007aec: e000e100 .word 0xe000e100
  17450. 8007af0: e000ed00 .word 0xe000ed00
  17451. 08007af4 <NVIC_EncodePriority>:
  17452. {
  17453. 8007af4: b480 push {r7}
  17454. 8007af6: b089 sub sp, #36 @ 0x24
  17455. 8007af8: af00 add r7, sp, #0
  17456. 8007afa: 60f8 str r0, [r7, #12]
  17457. 8007afc: 60b9 str r1, [r7, #8]
  17458. 8007afe: 607a str r2, [r7, #4]
  17459. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17460. 8007b00: 68fb ldr r3, [r7, #12]
  17461. 8007b02: f003 0307 and.w r3, r3, #7
  17462. 8007b06: 61fb str r3, [r7, #28]
  17463. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  17464. 8007b08: 69fb ldr r3, [r7, #28]
  17465. 8007b0a: f1c3 0307 rsb r3, r3, #7
  17466. 8007b0e: 2b04 cmp r3, #4
  17467. 8007b10: bf28 it cs
  17468. 8007b12: 2304 movcs r3, #4
  17469. 8007b14: 61bb str r3, [r7, #24]
  17470. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  17471. 8007b16: 69fb ldr r3, [r7, #28]
  17472. 8007b18: 3304 adds r3, #4
  17473. 8007b1a: 2b06 cmp r3, #6
  17474. 8007b1c: d902 bls.n 8007b24 <NVIC_EncodePriority+0x30>
  17475. 8007b1e: 69fb ldr r3, [r7, #28]
  17476. 8007b20: 3b03 subs r3, #3
  17477. 8007b22: e000 b.n 8007b26 <NVIC_EncodePriority+0x32>
  17478. 8007b24: 2300 movs r3, #0
  17479. 8007b26: 617b str r3, [r7, #20]
  17480. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17481. 8007b28: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17482. 8007b2c: 69bb ldr r3, [r7, #24]
  17483. 8007b2e: fa02 f303 lsl.w r3, r2, r3
  17484. 8007b32: 43da mvns r2, r3
  17485. 8007b34: 68bb ldr r3, [r7, #8]
  17486. 8007b36: 401a ands r2, r3
  17487. 8007b38: 697b ldr r3, [r7, #20]
  17488. 8007b3a: 409a lsls r2, r3
  17489. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  17490. 8007b3c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  17491. 8007b40: 697b ldr r3, [r7, #20]
  17492. 8007b42: fa01 f303 lsl.w r3, r1, r3
  17493. 8007b46: 43d9 mvns r1, r3
  17494. 8007b48: 687b ldr r3, [r7, #4]
  17495. 8007b4a: 400b ands r3, r1
  17496. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17497. 8007b4c: 4313 orrs r3, r2
  17498. }
  17499. 8007b4e: 4618 mov r0, r3
  17500. 8007b50: 3724 adds r7, #36 @ 0x24
  17501. 8007b52: 46bd mov sp, r7
  17502. 8007b54: f85d 7b04 ldr.w r7, [sp], #4
  17503. 8007b58: 4770 bx lr
  17504. 08007b5a <HAL_NVIC_SetPriorityGrouping>:
  17505. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  17506. * The pending IRQ priority will be managed only by the subpriority.
  17507. * @retval None
  17508. */
  17509. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  17510. {
  17511. 8007b5a: b580 push {r7, lr}
  17512. 8007b5c: b082 sub sp, #8
  17513. 8007b5e: af00 add r7, sp, #0
  17514. 8007b60: 6078 str r0, [r7, #4]
  17515. /* Check the parameters */
  17516. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  17517. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  17518. NVIC_SetPriorityGrouping(PriorityGroup);
  17519. 8007b62: 6878 ldr r0, [r7, #4]
  17520. 8007b64: f7ff ff4c bl 8007a00 <__NVIC_SetPriorityGrouping>
  17521. }
  17522. 8007b68: bf00 nop
  17523. 8007b6a: 3708 adds r7, #8
  17524. 8007b6c: 46bd mov sp, r7
  17525. 8007b6e: bd80 pop {r7, pc}
  17526. 08007b70 <HAL_NVIC_SetPriority>:
  17527. * This parameter can be a value between 0 and 15
  17528. * A lower priority value indicates a higher priority.
  17529. * @retval None
  17530. */
  17531. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  17532. {
  17533. 8007b70: b580 push {r7, lr}
  17534. 8007b72: b086 sub sp, #24
  17535. 8007b74: af00 add r7, sp, #0
  17536. 8007b76: 4603 mov r3, r0
  17537. 8007b78: 60b9 str r1, [r7, #8]
  17538. 8007b7a: 607a str r2, [r7, #4]
  17539. 8007b7c: 81fb strh r3, [r7, #14]
  17540. /* Check the parameters */
  17541. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  17542. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  17543. prioritygroup = NVIC_GetPriorityGrouping();
  17544. 8007b7e: f7ff ff63 bl 8007a48 <__NVIC_GetPriorityGrouping>
  17545. 8007b82: 6178 str r0, [r7, #20]
  17546. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  17547. 8007b84: 687a ldr r2, [r7, #4]
  17548. 8007b86: 68b9 ldr r1, [r7, #8]
  17549. 8007b88: 6978 ldr r0, [r7, #20]
  17550. 8007b8a: f7ff ffb3 bl 8007af4 <NVIC_EncodePriority>
  17551. 8007b8e: 4602 mov r2, r0
  17552. 8007b90: f9b7 300e ldrsh.w r3, [r7, #14]
  17553. 8007b94: 4611 mov r1, r2
  17554. 8007b96: 4618 mov r0, r3
  17555. 8007b98: f7ff ff82 bl 8007aa0 <__NVIC_SetPriority>
  17556. }
  17557. 8007b9c: bf00 nop
  17558. 8007b9e: 3718 adds r7, #24
  17559. 8007ba0: 46bd mov sp, r7
  17560. 8007ba2: bd80 pop {r7, pc}
  17561. 08007ba4 <HAL_NVIC_EnableIRQ>:
  17562. * This parameter can be an enumerator of IRQn_Type enumeration
  17563. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  17564. * @retval None
  17565. */
  17566. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  17567. {
  17568. 8007ba4: b580 push {r7, lr}
  17569. 8007ba6: b082 sub sp, #8
  17570. 8007ba8: af00 add r7, sp, #0
  17571. 8007baa: 4603 mov r3, r0
  17572. 8007bac: 80fb strh r3, [r7, #6]
  17573. /* Check the parameters */
  17574. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  17575. /* Enable interrupt */
  17576. NVIC_EnableIRQ(IRQn);
  17577. 8007bae: f9b7 3006 ldrsh.w r3, [r7, #6]
  17578. 8007bb2: 4618 mov r0, r3
  17579. 8007bb4: f7ff ff56 bl 8007a64 <__NVIC_EnableIRQ>
  17580. }
  17581. 8007bb8: bf00 nop
  17582. 8007bba: 3708 adds r7, #8
  17583. 8007bbc: 46bd mov sp, r7
  17584. 8007bbe: bd80 pop {r7, pc}
  17585. 08007bc0 <HAL_MPU_Disable>:
  17586. /**
  17587. * @brief Disables the MPU
  17588. * @retval None
  17589. */
  17590. void HAL_MPU_Disable(void)
  17591. {
  17592. 8007bc0: b480 push {r7}
  17593. 8007bc2: af00 add r7, sp, #0
  17594. __ASM volatile ("dmb 0xF":::"memory");
  17595. 8007bc4: f3bf 8f5f dmb sy
  17596. }
  17597. 8007bc8: bf00 nop
  17598. /* Make sure outstanding transfers are done */
  17599. __DMB();
  17600. /* Disable fault exceptions */
  17601. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  17602. 8007bca: 4b07 ldr r3, [pc, #28] @ (8007be8 <HAL_MPU_Disable+0x28>)
  17603. 8007bcc: 6a5b ldr r3, [r3, #36] @ 0x24
  17604. 8007bce: 4a06 ldr r2, [pc, #24] @ (8007be8 <HAL_MPU_Disable+0x28>)
  17605. 8007bd0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  17606. 8007bd4: 6253 str r3, [r2, #36] @ 0x24
  17607. /* Disable the MPU and clear the control register*/
  17608. MPU->CTRL = 0;
  17609. 8007bd6: 4b05 ldr r3, [pc, #20] @ (8007bec <HAL_MPU_Disable+0x2c>)
  17610. 8007bd8: 2200 movs r2, #0
  17611. 8007bda: 605a str r2, [r3, #4]
  17612. }
  17613. 8007bdc: bf00 nop
  17614. 8007bde: 46bd mov sp, r7
  17615. 8007be0: f85d 7b04 ldr.w r7, [sp], #4
  17616. 8007be4: 4770 bx lr
  17617. 8007be6: bf00 nop
  17618. 8007be8: e000ed00 .word 0xe000ed00
  17619. 8007bec: e000ed90 .word 0xe000ed90
  17620. 08007bf0 <HAL_MPU_Enable>:
  17621. * @arg MPU_PRIVILEGED_DEFAULT
  17622. * @arg MPU_HFNMI_PRIVDEF
  17623. * @retval None
  17624. */
  17625. void HAL_MPU_Enable(uint32_t MPU_Control)
  17626. {
  17627. 8007bf0: b480 push {r7}
  17628. 8007bf2: b083 sub sp, #12
  17629. 8007bf4: af00 add r7, sp, #0
  17630. 8007bf6: 6078 str r0, [r7, #4]
  17631. /* Enable the MPU */
  17632. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  17633. 8007bf8: 4a0b ldr r2, [pc, #44] @ (8007c28 <HAL_MPU_Enable+0x38>)
  17634. 8007bfa: 687b ldr r3, [r7, #4]
  17635. 8007bfc: f043 0301 orr.w r3, r3, #1
  17636. 8007c00: 6053 str r3, [r2, #4]
  17637. /* Enable fault exceptions */
  17638. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  17639. 8007c02: 4b0a ldr r3, [pc, #40] @ (8007c2c <HAL_MPU_Enable+0x3c>)
  17640. 8007c04: 6a5b ldr r3, [r3, #36] @ 0x24
  17641. 8007c06: 4a09 ldr r2, [pc, #36] @ (8007c2c <HAL_MPU_Enable+0x3c>)
  17642. 8007c08: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  17643. 8007c0c: 6253 str r3, [r2, #36] @ 0x24
  17644. __ASM volatile ("dsb 0xF":::"memory");
  17645. 8007c0e: f3bf 8f4f dsb sy
  17646. }
  17647. 8007c12: bf00 nop
  17648. __ASM volatile ("isb 0xF":::"memory");
  17649. 8007c14: f3bf 8f6f isb sy
  17650. }
  17651. 8007c18: bf00 nop
  17652. /* Ensure MPU setting take effects */
  17653. __DSB();
  17654. __ISB();
  17655. }
  17656. 8007c1a: bf00 nop
  17657. 8007c1c: 370c adds r7, #12
  17658. 8007c1e: 46bd mov sp, r7
  17659. 8007c20: f85d 7b04 ldr.w r7, [sp], #4
  17660. 8007c24: 4770 bx lr
  17661. 8007c26: bf00 nop
  17662. 8007c28: e000ed90 .word 0xe000ed90
  17663. 8007c2c: e000ed00 .word 0xe000ed00
  17664. 08007c30 <HAL_MPU_ConfigRegion>:
  17665. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  17666. * the initialization and configuration information.
  17667. * @retval None
  17668. */
  17669. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  17670. {
  17671. 8007c30: b480 push {r7}
  17672. 8007c32: b083 sub sp, #12
  17673. 8007c34: af00 add r7, sp, #0
  17674. 8007c36: 6078 str r0, [r7, #4]
  17675. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  17676. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  17677. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  17678. /* Set the Region number */
  17679. MPU->RNR = MPU_Init->Number;
  17680. 8007c38: 687b ldr r3, [r7, #4]
  17681. 8007c3a: 785a ldrb r2, [r3, #1]
  17682. 8007c3c: 4b1b ldr r3, [pc, #108] @ (8007cac <HAL_MPU_ConfigRegion+0x7c>)
  17683. 8007c3e: 609a str r2, [r3, #8]
  17684. /* Disable the Region */
  17685. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  17686. 8007c40: 4b1a ldr r3, [pc, #104] @ (8007cac <HAL_MPU_ConfigRegion+0x7c>)
  17687. 8007c42: 691b ldr r3, [r3, #16]
  17688. 8007c44: 4a19 ldr r2, [pc, #100] @ (8007cac <HAL_MPU_ConfigRegion+0x7c>)
  17689. 8007c46: f023 0301 bic.w r3, r3, #1
  17690. 8007c4a: 6113 str r3, [r2, #16]
  17691. /* Apply configuration */
  17692. MPU->RBAR = MPU_Init->BaseAddress;
  17693. 8007c4c: 4a17 ldr r2, [pc, #92] @ (8007cac <HAL_MPU_ConfigRegion+0x7c>)
  17694. 8007c4e: 687b ldr r3, [r7, #4]
  17695. 8007c50: 685b ldr r3, [r3, #4]
  17696. 8007c52: 60d3 str r3, [r2, #12]
  17697. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17698. 8007c54: 687b ldr r3, [r7, #4]
  17699. 8007c56: 7b1b ldrb r3, [r3, #12]
  17700. 8007c58: 071a lsls r2, r3, #28
  17701. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17702. 8007c5a: 687b ldr r3, [r7, #4]
  17703. 8007c5c: 7adb ldrb r3, [r3, #11]
  17704. 8007c5e: 061b lsls r3, r3, #24
  17705. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17706. 8007c60: 431a orrs r2, r3
  17707. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17708. 8007c62: 687b ldr r3, [r7, #4]
  17709. 8007c64: 7a9b ldrb r3, [r3, #10]
  17710. 8007c66: 04db lsls r3, r3, #19
  17711. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17712. 8007c68: 431a orrs r2, r3
  17713. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17714. 8007c6a: 687b ldr r3, [r7, #4]
  17715. 8007c6c: 7b5b ldrb r3, [r3, #13]
  17716. 8007c6e: 049b lsls r3, r3, #18
  17717. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17718. 8007c70: 431a orrs r2, r3
  17719. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17720. 8007c72: 687b ldr r3, [r7, #4]
  17721. 8007c74: 7b9b ldrb r3, [r3, #14]
  17722. 8007c76: 045b lsls r3, r3, #17
  17723. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17724. 8007c78: 431a orrs r2, r3
  17725. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17726. 8007c7a: 687b ldr r3, [r7, #4]
  17727. 8007c7c: 7bdb ldrb r3, [r3, #15]
  17728. 8007c7e: 041b lsls r3, r3, #16
  17729. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17730. 8007c80: 431a orrs r2, r3
  17731. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17732. 8007c82: 687b ldr r3, [r7, #4]
  17733. 8007c84: 7a5b ldrb r3, [r3, #9]
  17734. 8007c86: 021b lsls r3, r3, #8
  17735. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17736. 8007c88: 431a orrs r2, r3
  17737. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17738. 8007c8a: 687b ldr r3, [r7, #4]
  17739. 8007c8c: 7a1b ldrb r3, [r3, #8]
  17740. 8007c8e: 005b lsls r3, r3, #1
  17741. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17742. 8007c90: 4313 orrs r3, r2
  17743. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  17744. 8007c92: 687a ldr r2, [r7, #4]
  17745. 8007c94: 7812 ldrb r2, [r2, #0]
  17746. 8007c96: 4611 mov r1, r2
  17747. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17748. 8007c98: 4a04 ldr r2, [pc, #16] @ (8007cac <HAL_MPU_ConfigRegion+0x7c>)
  17749. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17750. 8007c9a: 430b orrs r3, r1
  17751. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17752. 8007c9c: 6113 str r3, [r2, #16]
  17753. }
  17754. 8007c9e: bf00 nop
  17755. 8007ca0: 370c adds r7, #12
  17756. 8007ca2: 46bd mov sp, r7
  17757. 8007ca4: f85d 7b04 ldr.w r7, [sp], #4
  17758. 8007ca8: 4770 bx lr
  17759. 8007caa: bf00 nop
  17760. 8007cac: e000ed90 .word 0xe000ed90
  17761. 08007cb0 <HAL_CRC_Init>:
  17762. * parameters in the CRC_InitTypeDef and create the associated handle.
  17763. * @param hcrc CRC handle
  17764. * @retval HAL status
  17765. */
  17766. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  17767. {
  17768. 8007cb0: b580 push {r7, lr}
  17769. 8007cb2: b082 sub sp, #8
  17770. 8007cb4: af00 add r7, sp, #0
  17771. 8007cb6: 6078 str r0, [r7, #4]
  17772. /* Check the CRC handle allocation */
  17773. if (hcrc == NULL)
  17774. 8007cb8: 687b ldr r3, [r7, #4]
  17775. 8007cba: 2b00 cmp r3, #0
  17776. 8007cbc: d101 bne.n 8007cc2 <HAL_CRC_Init+0x12>
  17777. {
  17778. return HAL_ERROR;
  17779. 8007cbe: 2301 movs r3, #1
  17780. 8007cc0: e054 b.n 8007d6c <HAL_CRC_Init+0xbc>
  17781. }
  17782. /* Check the parameters */
  17783. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  17784. if (hcrc->State == HAL_CRC_STATE_RESET)
  17785. 8007cc2: 687b ldr r3, [r7, #4]
  17786. 8007cc4: 7f5b ldrb r3, [r3, #29]
  17787. 8007cc6: b2db uxtb r3, r3
  17788. 8007cc8: 2b00 cmp r3, #0
  17789. 8007cca: d105 bne.n 8007cd8 <HAL_CRC_Init+0x28>
  17790. {
  17791. /* Allocate lock resource and initialize it */
  17792. hcrc->Lock = HAL_UNLOCKED;
  17793. 8007ccc: 687b ldr r3, [r7, #4]
  17794. 8007cce: 2200 movs r2, #0
  17795. 8007cd0: 771a strb r2, [r3, #28]
  17796. /* Init the low level hardware */
  17797. HAL_CRC_MspInit(hcrc);
  17798. 8007cd2: 6878 ldr r0, [r7, #4]
  17799. 8007cd4: f7fc fa1a bl 800410c <HAL_CRC_MspInit>
  17800. }
  17801. hcrc->State = HAL_CRC_STATE_BUSY;
  17802. 8007cd8: 687b ldr r3, [r7, #4]
  17803. 8007cda: 2202 movs r2, #2
  17804. 8007cdc: 775a strb r2, [r3, #29]
  17805. /* check whether or not non-default generating polynomial has been
  17806. * picked up by user */
  17807. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  17808. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  17809. 8007cde: 687b ldr r3, [r7, #4]
  17810. 8007ce0: 791b ldrb r3, [r3, #4]
  17811. 8007ce2: 2b00 cmp r3, #0
  17812. 8007ce4: d10c bne.n 8007d00 <HAL_CRC_Init+0x50>
  17813. {
  17814. /* initialize peripheral with default generating polynomial */
  17815. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  17816. 8007ce6: 687b ldr r3, [r7, #4]
  17817. 8007ce8: 681b ldr r3, [r3, #0]
  17818. 8007cea: 4a22 ldr r2, [pc, #136] @ (8007d74 <HAL_CRC_Init+0xc4>)
  17819. 8007cec: 615a str r2, [r3, #20]
  17820. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  17821. 8007cee: 687b ldr r3, [r7, #4]
  17822. 8007cf0: 681b ldr r3, [r3, #0]
  17823. 8007cf2: 689a ldr r2, [r3, #8]
  17824. 8007cf4: 687b ldr r3, [r7, #4]
  17825. 8007cf6: 681b ldr r3, [r3, #0]
  17826. 8007cf8: f022 0218 bic.w r2, r2, #24
  17827. 8007cfc: 609a str r2, [r3, #8]
  17828. 8007cfe: e00c b.n 8007d1a <HAL_CRC_Init+0x6a>
  17829. }
  17830. else
  17831. {
  17832. /* initialize CRC peripheral with generating polynomial defined by user */
  17833. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  17834. 8007d00: 687b ldr r3, [r7, #4]
  17835. 8007d02: 6899 ldr r1, [r3, #8]
  17836. 8007d04: 687b ldr r3, [r7, #4]
  17837. 8007d06: 68db ldr r3, [r3, #12]
  17838. 8007d08: 461a mov r2, r3
  17839. 8007d0a: 6878 ldr r0, [r7, #4]
  17840. 8007d0c: f000 f948 bl 8007fa0 <HAL_CRCEx_Polynomial_Set>
  17841. 8007d10: 4603 mov r3, r0
  17842. 8007d12: 2b00 cmp r3, #0
  17843. 8007d14: d001 beq.n 8007d1a <HAL_CRC_Init+0x6a>
  17844. {
  17845. return HAL_ERROR;
  17846. 8007d16: 2301 movs r3, #1
  17847. 8007d18: e028 b.n 8007d6c <HAL_CRC_Init+0xbc>
  17848. }
  17849. /* check whether or not non-default CRC initial value has been
  17850. * picked up by user */
  17851. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  17852. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  17853. 8007d1a: 687b ldr r3, [r7, #4]
  17854. 8007d1c: 795b ldrb r3, [r3, #5]
  17855. 8007d1e: 2b00 cmp r3, #0
  17856. 8007d20: d105 bne.n 8007d2e <HAL_CRC_Init+0x7e>
  17857. {
  17858. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  17859. 8007d22: 687b ldr r3, [r7, #4]
  17860. 8007d24: 681b ldr r3, [r3, #0]
  17861. 8007d26: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17862. 8007d2a: 611a str r2, [r3, #16]
  17863. 8007d2c: e004 b.n 8007d38 <HAL_CRC_Init+0x88>
  17864. }
  17865. else
  17866. {
  17867. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  17868. 8007d2e: 687b ldr r3, [r7, #4]
  17869. 8007d30: 681b ldr r3, [r3, #0]
  17870. 8007d32: 687a ldr r2, [r7, #4]
  17871. 8007d34: 6912 ldr r2, [r2, #16]
  17872. 8007d36: 611a str r2, [r3, #16]
  17873. }
  17874. /* set input data inversion mode */
  17875. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  17876. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  17877. 8007d38: 687b ldr r3, [r7, #4]
  17878. 8007d3a: 681b ldr r3, [r3, #0]
  17879. 8007d3c: 689b ldr r3, [r3, #8]
  17880. 8007d3e: f023 0160 bic.w r1, r3, #96 @ 0x60
  17881. 8007d42: 687b ldr r3, [r7, #4]
  17882. 8007d44: 695a ldr r2, [r3, #20]
  17883. 8007d46: 687b ldr r3, [r7, #4]
  17884. 8007d48: 681b ldr r3, [r3, #0]
  17885. 8007d4a: 430a orrs r2, r1
  17886. 8007d4c: 609a str r2, [r3, #8]
  17887. /* set output data inversion mode */
  17888. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  17889. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  17890. 8007d4e: 687b ldr r3, [r7, #4]
  17891. 8007d50: 681b ldr r3, [r3, #0]
  17892. 8007d52: 689b ldr r3, [r3, #8]
  17893. 8007d54: f023 0180 bic.w r1, r3, #128 @ 0x80
  17894. 8007d58: 687b ldr r3, [r7, #4]
  17895. 8007d5a: 699a ldr r2, [r3, #24]
  17896. 8007d5c: 687b ldr r3, [r7, #4]
  17897. 8007d5e: 681b ldr r3, [r3, #0]
  17898. 8007d60: 430a orrs r2, r1
  17899. 8007d62: 609a str r2, [r3, #8]
  17900. /* makes sure the input data format (bytes, halfwords or words stream)
  17901. * is properly specified by user */
  17902. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  17903. /* Change CRC peripheral state */
  17904. hcrc->State = HAL_CRC_STATE_READY;
  17905. 8007d64: 687b ldr r3, [r7, #4]
  17906. 8007d66: 2201 movs r2, #1
  17907. 8007d68: 775a strb r2, [r3, #29]
  17908. /* Return function status */
  17909. return HAL_OK;
  17910. 8007d6a: 2300 movs r3, #0
  17911. }
  17912. 8007d6c: 4618 mov r0, r3
  17913. 8007d6e: 3708 adds r7, #8
  17914. 8007d70: 46bd mov sp, r7
  17915. 8007d72: bd80 pop {r7, pc}
  17916. 8007d74: 04c11db7 .word 0x04c11db7
  17917. 08007d78 <HAL_CRC_Calculate>:
  17918. * and the API will internally adjust its input data processing based on the
  17919. * handle field hcrc->InputDataFormat.
  17920. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17921. */
  17922. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  17923. {
  17924. 8007d78: b580 push {r7, lr}
  17925. 8007d7a: b086 sub sp, #24
  17926. 8007d7c: af00 add r7, sp, #0
  17927. 8007d7e: 60f8 str r0, [r7, #12]
  17928. 8007d80: 60b9 str r1, [r7, #8]
  17929. 8007d82: 607a str r2, [r7, #4]
  17930. uint32_t index; /* CRC input data buffer index */
  17931. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  17932. 8007d84: 2300 movs r3, #0
  17933. 8007d86: 613b str r3, [r7, #16]
  17934. /* Change CRC peripheral state */
  17935. hcrc->State = HAL_CRC_STATE_BUSY;
  17936. 8007d88: 68fb ldr r3, [r7, #12]
  17937. 8007d8a: 2202 movs r2, #2
  17938. 8007d8c: 775a strb r2, [r3, #29]
  17939. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  17940. * written in hcrc->Instance->DR) */
  17941. __HAL_CRC_DR_RESET(hcrc);
  17942. 8007d8e: 68fb ldr r3, [r7, #12]
  17943. 8007d90: 681b ldr r3, [r3, #0]
  17944. 8007d92: 689a ldr r2, [r3, #8]
  17945. 8007d94: 68fb ldr r3, [r7, #12]
  17946. 8007d96: 681b ldr r3, [r3, #0]
  17947. 8007d98: f042 0201 orr.w r2, r2, #1
  17948. 8007d9c: 609a str r2, [r3, #8]
  17949. switch (hcrc->InputDataFormat)
  17950. 8007d9e: 68fb ldr r3, [r7, #12]
  17951. 8007da0: 6a1b ldr r3, [r3, #32]
  17952. 8007da2: 2b03 cmp r3, #3
  17953. 8007da4: d006 beq.n 8007db4 <HAL_CRC_Calculate+0x3c>
  17954. 8007da6: 2b03 cmp r3, #3
  17955. 8007da8: d829 bhi.n 8007dfe <HAL_CRC_Calculate+0x86>
  17956. 8007daa: 2b01 cmp r3, #1
  17957. 8007dac: d019 beq.n 8007de2 <HAL_CRC_Calculate+0x6a>
  17958. 8007dae: 2b02 cmp r3, #2
  17959. 8007db0: d01e beq.n 8007df0 <HAL_CRC_Calculate+0x78>
  17960. /* Specific 16-bit input data handling */
  17961. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17962. break;
  17963. default:
  17964. break;
  17965. 8007db2: e024 b.n 8007dfe <HAL_CRC_Calculate+0x86>
  17966. for (index = 0U; index < BufferLength; index++)
  17967. 8007db4: 2300 movs r3, #0
  17968. 8007db6: 617b str r3, [r7, #20]
  17969. 8007db8: e00a b.n 8007dd0 <HAL_CRC_Calculate+0x58>
  17970. hcrc->Instance->DR = pBuffer[index];
  17971. 8007dba: 697b ldr r3, [r7, #20]
  17972. 8007dbc: 009b lsls r3, r3, #2
  17973. 8007dbe: 68ba ldr r2, [r7, #8]
  17974. 8007dc0: 441a add r2, r3
  17975. 8007dc2: 68fb ldr r3, [r7, #12]
  17976. 8007dc4: 681b ldr r3, [r3, #0]
  17977. 8007dc6: 6812 ldr r2, [r2, #0]
  17978. 8007dc8: 601a str r2, [r3, #0]
  17979. for (index = 0U; index < BufferLength; index++)
  17980. 8007dca: 697b ldr r3, [r7, #20]
  17981. 8007dcc: 3301 adds r3, #1
  17982. 8007dce: 617b str r3, [r7, #20]
  17983. 8007dd0: 697a ldr r2, [r7, #20]
  17984. 8007dd2: 687b ldr r3, [r7, #4]
  17985. 8007dd4: 429a cmp r2, r3
  17986. 8007dd6: d3f0 bcc.n 8007dba <HAL_CRC_Calculate+0x42>
  17987. temp = hcrc->Instance->DR;
  17988. 8007dd8: 68fb ldr r3, [r7, #12]
  17989. 8007dda: 681b ldr r3, [r3, #0]
  17990. 8007ddc: 681b ldr r3, [r3, #0]
  17991. 8007dde: 613b str r3, [r7, #16]
  17992. break;
  17993. 8007de0: e00e b.n 8007e00 <HAL_CRC_Calculate+0x88>
  17994. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  17995. 8007de2: 687a ldr r2, [r7, #4]
  17996. 8007de4: 68b9 ldr r1, [r7, #8]
  17997. 8007de6: 68f8 ldr r0, [r7, #12]
  17998. 8007de8: f000 f812 bl 8007e10 <CRC_Handle_8>
  17999. 8007dec: 6138 str r0, [r7, #16]
  18000. break;
  18001. 8007dee: e007 b.n 8007e00 <HAL_CRC_Calculate+0x88>
  18002. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  18003. 8007df0: 687a ldr r2, [r7, #4]
  18004. 8007df2: 68b9 ldr r1, [r7, #8]
  18005. 8007df4: 68f8 ldr r0, [r7, #12]
  18006. 8007df6: f000 f899 bl 8007f2c <CRC_Handle_16>
  18007. 8007dfa: 6138 str r0, [r7, #16]
  18008. break;
  18009. 8007dfc: e000 b.n 8007e00 <HAL_CRC_Calculate+0x88>
  18010. break;
  18011. 8007dfe: bf00 nop
  18012. }
  18013. /* Change CRC peripheral state */
  18014. hcrc->State = HAL_CRC_STATE_READY;
  18015. 8007e00: 68fb ldr r3, [r7, #12]
  18016. 8007e02: 2201 movs r2, #1
  18017. 8007e04: 775a strb r2, [r3, #29]
  18018. /* Return the CRC computed value */
  18019. return temp;
  18020. 8007e06: 693b ldr r3, [r7, #16]
  18021. }
  18022. 8007e08: 4618 mov r0, r3
  18023. 8007e0a: 3718 adds r7, #24
  18024. 8007e0c: 46bd mov sp, r7
  18025. 8007e0e: bd80 pop {r7, pc}
  18026. 08007e10 <CRC_Handle_8>:
  18027. * @param pBuffer pointer to the input data buffer
  18028. * @param BufferLength input data buffer length
  18029. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18030. */
  18031. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  18032. {
  18033. 8007e10: b480 push {r7}
  18034. 8007e12: b089 sub sp, #36 @ 0x24
  18035. 8007e14: af00 add r7, sp, #0
  18036. 8007e16: 60f8 str r0, [r7, #12]
  18037. 8007e18: 60b9 str r1, [r7, #8]
  18038. 8007e1a: 607a str r2, [r7, #4]
  18039. __IO uint16_t *pReg;
  18040. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  18041. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  18042. * handling by the peripheral */
  18043. for (i = 0U; i < (BufferLength / 4U); i++)
  18044. 8007e1c: 2300 movs r3, #0
  18045. 8007e1e: 61fb str r3, [r7, #28]
  18046. 8007e20: e023 b.n 8007e6a <CRC_Handle_8+0x5a>
  18047. {
  18048. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18049. 8007e22: 69fb ldr r3, [r7, #28]
  18050. 8007e24: 009b lsls r3, r3, #2
  18051. 8007e26: 68ba ldr r2, [r7, #8]
  18052. 8007e28: 4413 add r3, r2
  18053. 8007e2a: 781b ldrb r3, [r3, #0]
  18054. 8007e2c: 061a lsls r2, r3, #24
  18055. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18056. 8007e2e: 69fb ldr r3, [r7, #28]
  18057. 8007e30: 009b lsls r3, r3, #2
  18058. 8007e32: 3301 adds r3, #1
  18059. 8007e34: 68b9 ldr r1, [r7, #8]
  18060. 8007e36: 440b add r3, r1
  18061. 8007e38: 781b ldrb r3, [r3, #0]
  18062. 8007e3a: 041b lsls r3, r3, #16
  18063. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18064. 8007e3c: 431a orrs r2, r3
  18065. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18066. 8007e3e: 69fb ldr r3, [r7, #28]
  18067. 8007e40: 009b lsls r3, r3, #2
  18068. 8007e42: 3302 adds r3, #2
  18069. 8007e44: 68b9 ldr r1, [r7, #8]
  18070. 8007e46: 440b add r3, r1
  18071. 8007e48: 781b ldrb r3, [r3, #0]
  18072. 8007e4a: 021b lsls r3, r3, #8
  18073. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  18074. 8007e4c: 431a orrs r2, r3
  18075. (uint32_t)pBuffer[(4U * i) + 3U];
  18076. 8007e4e: 69fb ldr r3, [r7, #28]
  18077. 8007e50: 009b lsls r3, r3, #2
  18078. 8007e52: 3303 adds r3, #3
  18079. 8007e54: 68b9 ldr r1, [r7, #8]
  18080. 8007e56: 440b add r3, r1
  18081. 8007e58: 781b ldrb r3, [r3, #0]
  18082. 8007e5a: 4619 mov r1, r3
  18083. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18084. 8007e5c: 68fb ldr r3, [r7, #12]
  18085. 8007e5e: 681b ldr r3, [r3, #0]
  18086. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  18087. 8007e60: 430a orrs r2, r1
  18088. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  18089. 8007e62: 601a str r2, [r3, #0]
  18090. for (i = 0U; i < (BufferLength / 4U); i++)
  18091. 8007e64: 69fb ldr r3, [r7, #28]
  18092. 8007e66: 3301 adds r3, #1
  18093. 8007e68: 61fb str r3, [r7, #28]
  18094. 8007e6a: 687b ldr r3, [r7, #4]
  18095. 8007e6c: 089b lsrs r3, r3, #2
  18096. 8007e6e: 69fa ldr r2, [r7, #28]
  18097. 8007e70: 429a cmp r2, r3
  18098. 8007e72: d3d6 bcc.n 8007e22 <CRC_Handle_8+0x12>
  18099. }
  18100. /* last bytes specific handling */
  18101. if ((BufferLength % 4U) != 0U)
  18102. 8007e74: 687b ldr r3, [r7, #4]
  18103. 8007e76: f003 0303 and.w r3, r3, #3
  18104. 8007e7a: 2b00 cmp r3, #0
  18105. 8007e7c: d04d beq.n 8007f1a <CRC_Handle_8+0x10a>
  18106. {
  18107. if ((BufferLength % 4U) == 1U)
  18108. 8007e7e: 687b ldr r3, [r7, #4]
  18109. 8007e80: f003 0303 and.w r3, r3, #3
  18110. 8007e84: 2b01 cmp r3, #1
  18111. 8007e86: d107 bne.n 8007e98 <CRC_Handle_8+0x88>
  18112. {
  18113. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  18114. 8007e88: 69fb ldr r3, [r7, #28]
  18115. 8007e8a: 009b lsls r3, r3, #2
  18116. 8007e8c: 68ba ldr r2, [r7, #8]
  18117. 8007e8e: 4413 add r3, r2
  18118. 8007e90: 68fa ldr r2, [r7, #12]
  18119. 8007e92: 6812 ldr r2, [r2, #0]
  18120. 8007e94: 781b ldrb r3, [r3, #0]
  18121. 8007e96: 7013 strb r3, [r2, #0]
  18122. }
  18123. if ((BufferLength % 4U) == 2U)
  18124. 8007e98: 687b ldr r3, [r7, #4]
  18125. 8007e9a: f003 0303 and.w r3, r3, #3
  18126. 8007e9e: 2b02 cmp r3, #2
  18127. 8007ea0: d116 bne.n 8007ed0 <CRC_Handle_8+0xc0>
  18128. {
  18129. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18130. 8007ea2: 69fb ldr r3, [r7, #28]
  18131. 8007ea4: 009b lsls r3, r3, #2
  18132. 8007ea6: 68ba ldr r2, [r7, #8]
  18133. 8007ea8: 4413 add r3, r2
  18134. 8007eaa: 781b ldrb r3, [r3, #0]
  18135. 8007eac: 021b lsls r3, r3, #8
  18136. 8007eae: b21a sxth r2, r3
  18137. 8007eb0: 69fb ldr r3, [r7, #28]
  18138. 8007eb2: 009b lsls r3, r3, #2
  18139. 8007eb4: 3301 adds r3, #1
  18140. 8007eb6: 68b9 ldr r1, [r7, #8]
  18141. 8007eb8: 440b add r3, r1
  18142. 8007eba: 781b ldrb r3, [r3, #0]
  18143. 8007ebc: b21b sxth r3, r3
  18144. 8007ebe: 4313 orrs r3, r2
  18145. 8007ec0: b21b sxth r3, r3
  18146. 8007ec2: 837b strh r3, [r7, #26]
  18147. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18148. 8007ec4: 68fb ldr r3, [r7, #12]
  18149. 8007ec6: 681b ldr r3, [r3, #0]
  18150. 8007ec8: 617b str r3, [r7, #20]
  18151. *pReg = data;
  18152. 8007eca: 697b ldr r3, [r7, #20]
  18153. 8007ecc: 8b7a ldrh r2, [r7, #26]
  18154. 8007ece: 801a strh r2, [r3, #0]
  18155. }
  18156. if ((BufferLength % 4U) == 3U)
  18157. 8007ed0: 687b ldr r3, [r7, #4]
  18158. 8007ed2: f003 0303 and.w r3, r3, #3
  18159. 8007ed6: 2b03 cmp r3, #3
  18160. 8007ed8: d11f bne.n 8007f1a <CRC_Handle_8+0x10a>
  18161. {
  18162. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  18163. 8007eda: 69fb ldr r3, [r7, #28]
  18164. 8007edc: 009b lsls r3, r3, #2
  18165. 8007ede: 68ba ldr r2, [r7, #8]
  18166. 8007ee0: 4413 add r3, r2
  18167. 8007ee2: 781b ldrb r3, [r3, #0]
  18168. 8007ee4: 021b lsls r3, r3, #8
  18169. 8007ee6: b21a sxth r2, r3
  18170. 8007ee8: 69fb ldr r3, [r7, #28]
  18171. 8007eea: 009b lsls r3, r3, #2
  18172. 8007eec: 3301 adds r3, #1
  18173. 8007eee: 68b9 ldr r1, [r7, #8]
  18174. 8007ef0: 440b add r3, r1
  18175. 8007ef2: 781b ldrb r3, [r3, #0]
  18176. 8007ef4: b21b sxth r3, r3
  18177. 8007ef6: 4313 orrs r3, r2
  18178. 8007ef8: b21b sxth r3, r3
  18179. 8007efa: 837b strh r3, [r7, #26]
  18180. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18181. 8007efc: 68fb ldr r3, [r7, #12]
  18182. 8007efe: 681b ldr r3, [r3, #0]
  18183. 8007f00: 617b str r3, [r7, #20]
  18184. *pReg = data;
  18185. 8007f02: 697b ldr r3, [r7, #20]
  18186. 8007f04: 8b7a ldrh r2, [r7, #26]
  18187. 8007f06: 801a strh r2, [r3, #0]
  18188. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  18189. 8007f08: 69fb ldr r3, [r7, #28]
  18190. 8007f0a: 009b lsls r3, r3, #2
  18191. 8007f0c: 3302 adds r3, #2
  18192. 8007f0e: 68ba ldr r2, [r7, #8]
  18193. 8007f10: 4413 add r3, r2
  18194. 8007f12: 68fa ldr r2, [r7, #12]
  18195. 8007f14: 6812 ldr r2, [r2, #0]
  18196. 8007f16: 781b ldrb r3, [r3, #0]
  18197. 8007f18: 7013 strb r3, [r2, #0]
  18198. }
  18199. }
  18200. /* Return the CRC computed value */
  18201. return hcrc->Instance->DR;
  18202. 8007f1a: 68fb ldr r3, [r7, #12]
  18203. 8007f1c: 681b ldr r3, [r3, #0]
  18204. 8007f1e: 681b ldr r3, [r3, #0]
  18205. }
  18206. 8007f20: 4618 mov r0, r3
  18207. 8007f22: 3724 adds r7, #36 @ 0x24
  18208. 8007f24: 46bd mov sp, r7
  18209. 8007f26: f85d 7b04 ldr.w r7, [sp], #4
  18210. 8007f2a: 4770 bx lr
  18211. 08007f2c <CRC_Handle_16>:
  18212. * @param pBuffer pointer to the input data buffer
  18213. * @param BufferLength input data buffer length
  18214. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  18215. */
  18216. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  18217. {
  18218. 8007f2c: b480 push {r7}
  18219. 8007f2e: b087 sub sp, #28
  18220. 8007f30: af00 add r7, sp, #0
  18221. 8007f32: 60f8 str r0, [r7, #12]
  18222. 8007f34: 60b9 str r1, [r7, #8]
  18223. 8007f36: 607a str r2, [r7, #4]
  18224. __IO uint16_t *pReg;
  18225. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  18226. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  18227. * a correct type handling by the peripheral */
  18228. for (i = 0U; i < (BufferLength / 2U); i++)
  18229. 8007f38: 2300 movs r3, #0
  18230. 8007f3a: 617b str r3, [r7, #20]
  18231. 8007f3c: e013 b.n 8007f66 <CRC_Handle_16+0x3a>
  18232. {
  18233. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  18234. 8007f3e: 697b ldr r3, [r7, #20]
  18235. 8007f40: 009b lsls r3, r3, #2
  18236. 8007f42: 68ba ldr r2, [r7, #8]
  18237. 8007f44: 4413 add r3, r2
  18238. 8007f46: 881b ldrh r3, [r3, #0]
  18239. 8007f48: 041a lsls r2, r3, #16
  18240. 8007f4a: 697b ldr r3, [r7, #20]
  18241. 8007f4c: 009b lsls r3, r3, #2
  18242. 8007f4e: 3302 adds r3, #2
  18243. 8007f50: 68b9 ldr r1, [r7, #8]
  18244. 8007f52: 440b add r3, r1
  18245. 8007f54: 881b ldrh r3, [r3, #0]
  18246. 8007f56: 4619 mov r1, r3
  18247. 8007f58: 68fb ldr r3, [r7, #12]
  18248. 8007f5a: 681b ldr r3, [r3, #0]
  18249. 8007f5c: 430a orrs r2, r1
  18250. 8007f5e: 601a str r2, [r3, #0]
  18251. for (i = 0U; i < (BufferLength / 2U); i++)
  18252. 8007f60: 697b ldr r3, [r7, #20]
  18253. 8007f62: 3301 adds r3, #1
  18254. 8007f64: 617b str r3, [r7, #20]
  18255. 8007f66: 687b ldr r3, [r7, #4]
  18256. 8007f68: 085b lsrs r3, r3, #1
  18257. 8007f6a: 697a ldr r2, [r7, #20]
  18258. 8007f6c: 429a cmp r2, r3
  18259. 8007f6e: d3e6 bcc.n 8007f3e <CRC_Handle_16+0x12>
  18260. }
  18261. if ((BufferLength % 2U) != 0U)
  18262. 8007f70: 687b ldr r3, [r7, #4]
  18263. 8007f72: f003 0301 and.w r3, r3, #1
  18264. 8007f76: 2b00 cmp r3, #0
  18265. 8007f78: d009 beq.n 8007f8e <CRC_Handle_16+0x62>
  18266. {
  18267. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  18268. 8007f7a: 68fb ldr r3, [r7, #12]
  18269. 8007f7c: 681b ldr r3, [r3, #0]
  18270. 8007f7e: 613b str r3, [r7, #16]
  18271. *pReg = pBuffer[2U * i];
  18272. 8007f80: 697b ldr r3, [r7, #20]
  18273. 8007f82: 009b lsls r3, r3, #2
  18274. 8007f84: 68ba ldr r2, [r7, #8]
  18275. 8007f86: 4413 add r3, r2
  18276. 8007f88: 881a ldrh r2, [r3, #0]
  18277. 8007f8a: 693b ldr r3, [r7, #16]
  18278. 8007f8c: 801a strh r2, [r3, #0]
  18279. }
  18280. /* Return the CRC computed value */
  18281. return hcrc->Instance->DR;
  18282. 8007f8e: 68fb ldr r3, [r7, #12]
  18283. 8007f90: 681b ldr r3, [r3, #0]
  18284. 8007f92: 681b ldr r3, [r3, #0]
  18285. }
  18286. 8007f94: 4618 mov r0, r3
  18287. 8007f96: 371c adds r7, #28
  18288. 8007f98: 46bd mov sp, r7
  18289. 8007f9a: f85d 7b04 ldr.w r7, [sp], #4
  18290. 8007f9e: 4770 bx lr
  18291. 08007fa0 <HAL_CRCEx_Polynomial_Set>:
  18292. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  18293. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  18294. * @retval HAL status
  18295. */
  18296. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  18297. {
  18298. 8007fa0: b480 push {r7}
  18299. 8007fa2: b087 sub sp, #28
  18300. 8007fa4: af00 add r7, sp, #0
  18301. 8007fa6: 60f8 str r0, [r7, #12]
  18302. 8007fa8: 60b9 str r1, [r7, #8]
  18303. 8007faa: 607a str r2, [r7, #4]
  18304. HAL_StatusTypeDef status = HAL_OK;
  18305. 8007fac: 2300 movs r3, #0
  18306. 8007fae: 75fb strb r3, [r7, #23]
  18307. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  18308. 8007fb0: 231f movs r3, #31
  18309. 8007fb2: 613b str r3, [r7, #16]
  18310. /* Check the parameters */
  18311. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  18312. /* Ensure that the generating polynomial is odd */
  18313. if ((Pol & (uint32_t)(0x1U)) == 0U)
  18314. 8007fb4: 68bb ldr r3, [r7, #8]
  18315. 8007fb6: f003 0301 and.w r3, r3, #1
  18316. 8007fba: 2b00 cmp r3, #0
  18317. 8007fbc: d102 bne.n 8007fc4 <HAL_CRCEx_Polynomial_Set+0x24>
  18318. {
  18319. status = HAL_ERROR;
  18320. 8007fbe: 2301 movs r3, #1
  18321. 8007fc0: 75fb strb r3, [r7, #23]
  18322. 8007fc2: e063 b.n 800808c <HAL_CRCEx_Polynomial_Set+0xec>
  18323. * definition. HAL_ERROR is reported if Pol degree is
  18324. * larger than that indicated by PolyLength.
  18325. * Look for MSB position: msb will contain the degree of
  18326. * the second to the largest polynomial member. E.g., for
  18327. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  18328. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  18329. 8007fc4: bf00 nop
  18330. 8007fc6: 693b ldr r3, [r7, #16]
  18331. 8007fc8: 1e5a subs r2, r3, #1
  18332. 8007fca: 613a str r2, [r7, #16]
  18333. 8007fcc: 2b00 cmp r3, #0
  18334. 8007fce: d009 beq.n 8007fe4 <HAL_CRCEx_Polynomial_Set+0x44>
  18335. 8007fd0: 693b ldr r3, [r7, #16]
  18336. 8007fd2: f003 031f and.w r3, r3, #31
  18337. 8007fd6: 68ba ldr r2, [r7, #8]
  18338. 8007fd8: fa22 f303 lsr.w r3, r2, r3
  18339. 8007fdc: f003 0301 and.w r3, r3, #1
  18340. 8007fe0: 2b00 cmp r3, #0
  18341. 8007fe2: d0f0 beq.n 8007fc6 <HAL_CRCEx_Polynomial_Set+0x26>
  18342. {
  18343. }
  18344. switch (PolyLength)
  18345. 8007fe4: 687b ldr r3, [r7, #4]
  18346. 8007fe6: 2b18 cmp r3, #24
  18347. 8007fe8: d846 bhi.n 8008078 <HAL_CRCEx_Polynomial_Set+0xd8>
  18348. 8007fea: a201 add r2, pc, #4 @ (adr r2, 8007ff0 <HAL_CRCEx_Polynomial_Set+0x50>)
  18349. 8007fec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  18350. 8007ff0: 0800807f .word 0x0800807f
  18351. 8007ff4: 08008079 .word 0x08008079
  18352. 8007ff8: 08008079 .word 0x08008079
  18353. 8007ffc: 08008079 .word 0x08008079
  18354. 8008000: 08008079 .word 0x08008079
  18355. 8008004: 08008079 .word 0x08008079
  18356. 8008008: 08008079 .word 0x08008079
  18357. 800800c: 08008079 .word 0x08008079
  18358. 8008010: 0800806d .word 0x0800806d
  18359. 8008014: 08008079 .word 0x08008079
  18360. 8008018: 08008079 .word 0x08008079
  18361. 800801c: 08008079 .word 0x08008079
  18362. 8008020: 08008079 .word 0x08008079
  18363. 8008024: 08008079 .word 0x08008079
  18364. 8008028: 08008079 .word 0x08008079
  18365. 800802c: 08008079 .word 0x08008079
  18366. 8008030: 08008061 .word 0x08008061
  18367. 8008034: 08008079 .word 0x08008079
  18368. 8008038: 08008079 .word 0x08008079
  18369. 800803c: 08008079 .word 0x08008079
  18370. 8008040: 08008079 .word 0x08008079
  18371. 8008044: 08008079 .word 0x08008079
  18372. 8008048: 08008079 .word 0x08008079
  18373. 800804c: 08008079 .word 0x08008079
  18374. 8008050: 08008055 .word 0x08008055
  18375. {
  18376. case CRC_POLYLENGTH_7B:
  18377. if (msb >= HAL_CRC_LENGTH_7B)
  18378. 8008054: 693b ldr r3, [r7, #16]
  18379. 8008056: 2b06 cmp r3, #6
  18380. 8008058: d913 bls.n 8008082 <HAL_CRCEx_Polynomial_Set+0xe2>
  18381. {
  18382. status = HAL_ERROR;
  18383. 800805a: 2301 movs r3, #1
  18384. 800805c: 75fb strb r3, [r7, #23]
  18385. }
  18386. break;
  18387. 800805e: e010 b.n 8008082 <HAL_CRCEx_Polynomial_Set+0xe2>
  18388. case CRC_POLYLENGTH_8B:
  18389. if (msb >= HAL_CRC_LENGTH_8B)
  18390. 8008060: 693b ldr r3, [r7, #16]
  18391. 8008062: 2b07 cmp r3, #7
  18392. 8008064: d90f bls.n 8008086 <HAL_CRCEx_Polynomial_Set+0xe6>
  18393. {
  18394. status = HAL_ERROR;
  18395. 8008066: 2301 movs r3, #1
  18396. 8008068: 75fb strb r3, [r7, #23]
  18397. }
  18398. break;
  18399. 800806a: e00c b.n 8008086 <HAL_CRCEx_Polynomial_Set+0xe6>
  18400. case CRC_POLYLENGTH_16B:
  18401. if (msb >= HAL_CRC_LENGTH_16B)
  18402. 800806c: 693b ldr r3, [r7, #16]
  18403. 800806e: 2b0f cmp r3, #15
  18404. 8008070: d90b bls.n 800808a <HAL_CRCEx_Polynomial_Set+0xea>
  18405. {
  18406. status = HAL_ERROR;
  18407. 8008072: 2301 movs r3, #1
  18408. 8008074: 75fb strb r3, [r7, #23]
  18409. }
  18410. break;
  18411. 8008076: e008 b.n 800808a <HAL_CRCEx_Polynomial_Set+0xea>
  18412. case CRC_POLYLENGTH_32B:
  18413. /* no polynomial definition vs. polynomial length issue possible */
  18414. break;
  18415. default:
  18416. status = HAL_ERROR;
  18417. 8008078: 2301 movs r3, #1
  18418. 800807a: 75fb strb r3, [r7, #23]
  18419. break;
  18420. 800807c: e006 b.n 800808c <HAL_CRCEx_Polynomial_Set+0xec>
  18421. break;
  18422. 800807e: bf00 nop
  18423. 8008080: e004 b.n 800808c <HAL_CRCEx_Polynomial_Set+0xec>
  18424. break;
  18425. 8008082: bf00 nop
  18426. 8008084: e002 b.n 800808c <HAL_CRCEx_Polynomial_Set+0xec>
  18427. break;
  18428. 8008086: bf00 nop
  18429. 8008088: e000 b.n 800808c <HAL_CRCEx_Polynomial_Set+0xec>
  18430. break;
  18431. 800808a: bf00 nop
  18432. }
  18433. }
  18434. if (status == HAL_OK)
  18435. 800808c: 7dfb ldrb r3, [r7, #23]
  18436. 800808e: 2b00 cmp r3, #0
  18437. 8008090: d10d bne.n 80080ae <HAL_CRCEx_Polynomial_Set+0x10e>
  18438. {
  18439. /* set generating polynomial */
  18440. WRITE_REG(hcrc->Instance->POL, Pol);
  18441. 8008092: 68fb ldr r3, [r7, #12]
  18442. 8008094: 681b ldr r3, [r3, #0]
  18443. 8008096: 68ba ldr r2, [r7, #8]
  18444. 8008098: 615a str r2, [r3, #20]
  18445. /* set generating polynomial size */
  18446. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  18447. 800809a: 68fb ldr r3, [r7, #12]
  18448. 800809c: 681b ldr r3, [r3, #0]
  18449. 800809e: 689b ldr r3, [r3, #8]
  18450. 80080a0: f023 0118 bic.w r1, r3, #24
  18451. 80080a4: 68fb ldr r3, [r7, #12]
  18452. 80080a6: 681b ldr r3, [r3, #0]
  18453. 80080a8: 687a ldr r2, [r7, #4]
  18454. 80080aa: 430a orrs r2, r1
  18455. 80080ac: 609a str r2, [r3, #8]
  18456. }
  18457. /* Return function status */
  18458. return status;
  18459. 80080ae: 7dfb ldrb r3, [r7, #23]
  18460. }
  18461. 80080b0: 4618 mov r0, r3
  18462. 80080b2: 371c adds r7, #28
  18463. 80080b4: 46bd mov sp, r7
  18464. 80080b6: f85d 7b04 ldr.w r7, [sp], #4
  18465. 80080ba: 4770 bx lr
  18466. 080080bc <HAL_DAC_Init>:
  18467. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18468. * the configuration information for the specified DAC.
  18469. * @retval HAL status
  18470. */
  18471. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  18472. {
  18473. 80080bc: b580 push {r7, lr}
  18474. 80080be: b082 sub sp, #8
  18475. 80080c0: af00 add r7, sp, #0
  18476. 80080c2: 6078 str r0, [r7, #4]
  18477. /* Check the DAC peripheral handle */
  18478. if (hdac == NULL)
  18479. 80080c4: 687b ldr r3, [r7, #4]
  18480. 80080c6: 2b00 cmp r3, #0
  18481. 80080c8: d101 bne.n 80080ce <HAL_DAC_Init+0x12>
  18482. {
  18483. return HAL_ERROR;
  18484. 80080ca: 2301 movs r3, #1
  18485. 80080cc: e014 b.n 80080f8 <HAL_DAC_Init+0x3c>
  18486. }
  18487. /* Check the parameters */
  18488. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  18489. if (hdac->State == HAL_DAC_STATE_RESET)
  18490. 80080ce: 687b ldr r3, [r7, #4]
  18491. 80080d0: 791b ldrb r3, [r3, #4]
  18492. 80080d2: b2db uxtb r3, r3
  18493. 80080d4: 2b00 cmp r3, #0
  18494. 80080d6: d105 bne.n 80080e4 <HAL_DAC_Init+0x28>
  18495. hdac->MspInitCallback = HAL_DAC_MspInit;
  18496. }
  18497. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18498. /* Allocate lock resource and initialize it */
  18499. hdac->Lock = HAL_UNLOCKED;
  18500. 80080d8: 687b ldr r3, [r7, #4]
  18501. 80080da: 2200 movs r2, #0
  18502. 80080dc: 715a strb r2, [r3, #5]
  18503. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18504. /* Init the low level hardware */
  18505. hdac->MspInitCallback(hdac);
  18506. #else
  18507. /* Init the low level hardware */
  18508. HAL_DAC_MspInit(hdac);
  18509. 80080de: 6878 ldr r0, [r7, #4]
  18510. 80080e0: f7fc f836 bl 8004150 <HAL_DAC_MspInit>
  18511. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18512. }
  18513. /* Initialize the DAC state*/
  18514. hdac->State = HAL_DAC_STATE_BUSY;
  18515. 80080e4: 687b ldr r3, [r7, #4]
  18516. 80080e6: 2202 movs r2, #2
  18517. 80080e8: 711a strb r2, [r3, #4]
  18518. /* Set DAC error code to none */
  18519. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  18520. 80080ea: 687b ldr r3, [r7, #4]
  18521. 80080ec: 2200 movs r2, #0
  18522. 80080ee: 611a str r2, [r3, #16]
  18523. /* Initialize the DAC state*/
  18524. hdac->State = HAL_DAC_STATE_READY;
  18525. 80080f0: 687b ldr r3, [r7, #4]
  18526. 80080f2: 2201 movs r2, #1
  18527. 80080f4: 711a strb r2, [r3, #4]
  18528. /* Return function status */
  18529. return HAL_OK;
  18530. 80080f6: 2300 movs r3, #0
  18531. }
  18532. 80080f8: 4618 mov r0, r3
  18533. 80080fa: 3708 adds r7, #8
  18534. 80080fc: 46bd mov sp, r7
  18535. 80080fe: bd80 pop {r7, pc}
  18536. 08008100 <HAL_DAC_Start>:
  18537. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  18538. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18539. * @retval HAL status
  18540. */
  18541. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  18542. {
  18543. 8008100: b480 push {r7}
  18544. 8008102: b083 sub sp, #12
  18545. 8008104: af00 add r7, sp, #0
  18546. 8008106: 6078 str r0, [r7, #4]
  18547. 8008108: 6039 str r1, [r7, #0]
  18548. /* Check the DAC peripheral handle */
  18549. if (hdac == NULL)
  18550. 800810a: 687b ldr r3, [r7, #4]
  18551. 800810c: 2b00 cmp r3, #0
  18552. 800810e: d101 bne.n 8008114 <HAL_DAC_Start+0x14>
  18553. {
  18554. return HAL_ERROR;
  18555. 8008110: 2301 movs r3, #1
  18556. 8008112: e046 b.n 80081a2 <HAL_DAC_Start+0xa2>
  18557. /* Check the parameters */
  18558. assert_param(IS_DAC_CHANNEL(Channel));
  18559. /* Process locked */
  18560. __HAL_LOCK(hdac);
  18561. 8008114: 687b ldr r3, [r7, #4]
  18562. 8008116: 795b ldrb r3, [r3, #5]
  18563. 8008118: 2b01 cmp r3, #1
  18564. 800811a: d101 bne.n 8008120 <HAL_DAC_Start+0x20>
  18565. 800811c: 2302 movs r3, #2
  18566. 800811e: e040 b.n 80081a2 <HAL_DAC_Start+0xa2>
  18567. 8008120: 687b ldr r3, [r7, #4]
  18568. 8008122: 2201 movs r2, #1
  18569. 8008124: 715a strb r2, [r3, #5]
  18570. /* Change DAC state */
  18571. hdac->State = HAL_DAC_STATE_BUSY;
  18572. 8008126: 687b ldr r3, [r7, #4]
  18573. 8008128: 2202 movs r2, #2
  18574. 800812a: 711a strb r2, [r3, #4]
  18575. /* Enable the Peripheral */
  18576. __HAL_DAC_ENABLE(hdac, Channel);
  18577. 800812c: 687b ldr r3, [r7, #4]
  18578. 800812e: 681b ldr r3, [r3, #0]
  18579. 8008130: 6819 ldr r1, [r3, #0]
  18580. 8008132: 683b ldr r3, [r7, #0]
  18581. 8008134: f003 0310 and.w r3, r3, #16
  18582. 8008138: 2201 movs r2, #1
  18583. 800813a: 409a lsls r2, r3
  18584. 800813c: 687b ldr r3, [r7, #4]
  18585. 800813e: 681b ldr r3, [r3, #0]
  18586. 8008140: 430a orrs r2, r1
  18587. 8008142: 601a str r2, [r3, #0]
  18588. if (Channel == DAC_CHANNEL_1)
  18589. 8008144: 683b ldr r3, [r7, #0]
  18590. 8008146: 2b00 cmp r3, #0
  18591. 8008148: d10f bne.n 800816a <HAL_DAC_Start+0x6a>
  18592. {
  18593. /* Check if software trigger enabled */
  18594. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  18595. 800814a: 687b ldr r3, [r7, #4]
  18596. 800814c: 681b ldr r3, [r3, #0]
  18597. 800814e: 681b ldr r3, [r3, #0]
  18598. 8008150: f003 033e and.w r3, r3, #62 @ 0x3e
  18599. 8008154: 2b02 cmp r3, #2
  18600. 8008156: d11d bne.n 8008194 <HAL_DAC_Start+0x94>
  18601. {
  18602. /* Enable the selected DAC software conversion */
  18603. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  18604. 8008158: 687b ldr r3, [r7, #4]
  18605. 800815a: 681b ldr r3, [r3, #0]
  18606. 800815c: 685a ldr r2, [r3, #4]
  18607. 800815e: 687b ldr r3, [r7, #4]
  18608. 8008160: 681b ldr r3, [r3, #0]
  18609. 8008162: f042 0201 orr.w r2, r2, #1
  18610. 8008166: 605a str r2, [r3, #4]
  18611. 8008168: e014 b.n 8008194 <HAL_DAC_Start+0x94>
  18612. }
  18613. else
  18614. {
  18615. /* Check if software trigger enabled */
  18616. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  18617. 800816a: 687b ldr r3, [r7, #4]
  18618. 800816c: 681b ldr r3, [r3, #0]
  18619. 800816e: 681b ldr r3, [r3, #0]
  18620. 8008170: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  18621. 8008174: 683b ldr r3, [r7, #0]
  18622. 8008176: f003 0310 and.w r3, r3, #16
  18623. 800817a: 2102 movs r1, #2
  18624. 800817c: fa01 f303 lsl.w r3, r1, r3
  18625. 8008180: 429a cmp r2, r3
  18626. 8008182: d107 bne.n 8008194 <HAL_DAC_Start+0x94>
  18627. {
  18628. /* Enable the selected DAC software conversion*/
  18629. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  18630. 8008184: 687b ldr r3, [r7, #4]
  18631. 8008186: 681b ldr r3, [r3, #0]
  18632. 8008188: 685a ldr r2, [r3, #4]
  18633. 800818a: 687b ldr r3, [r7, #4]
  18634. 800818c: 681b ldr r3, [r3, #0]
  18635. 800818e: f042 0202 orr.w r2, r2, #2
  18636. 8008192: 605a str r2, [r3, #4]
  18637. }
  18638. }
  18639. /* Change DAC state */
  18640. hdac->State = HAL_DAC_STATE_READY;
  18641. 8008194: 687b ldr r3, [r7, #4]
  18642. 8008196: 2201 movs r2, #1
  18643. 8008198: 711a strb r2, [r3, #4]
  18644. /* Process unlocked */
  18645. __HAL_UNLOCK(hdac);
  18646. 800819a: 687b ldr r3, [r7, #4]
  18647. 800819c: 2200 movs r2, #0
  18648. 800819e: 715a strb r2, [r3, #5]
  18649. /* Return function status */
  18650. return HAL_OK;
  18651. 80081a0: 2300 movs r3, #0
  18652. }
  18653. 80081a2: 4618 mov r0, r3
  18654. 80081a4: 370c adds r7, #12
  18655. 80081a6: 46bd mov sp, r7
  18656. 80081a8: f85d 7b04 ldr.w r7, [sp], #4
  18657. 80081ac: 4770 bx lr
  18658. 080081ae <HAL_DAC_IRQHandler>:
  18659. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18660. * the configuration information for the specified DAC.
  18661. * @retval None
  18662. */
  18663. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  18664. {
  18665. 80081ae: b580 push {r7, lr}
  18666. 80081b0: b084 sub sp, #16
  18667. 80081b2: af00 add r7, sp, #0
  18668. 80081b4: 6078 str r0, [r7, #4]
  18669. uint32_t itsource = hdac->Instance->CR;
  18670. 80081b6: 687b ldr r3, [r7, #4]
  18671. 80081b8: 681b ldr r3, [r3, #0]
  18672. 80081ba: 681b ldr r3, [r3, #0]
  18673. 80081bc: 60fb str r3, [r7, #12]
  18674. uint32_t itflag = hdac->Instance->SR;
  18675. 80081be: 687b ldr r3, [r7, #4]
  18676. 80081c0: 681b ldr r3, [r3, #0]
  18677. 80081c2: 6b5b ldr r3, [r3, #52] @ 0x34
  18678. 80081c4: 60bb str r3, [r7, #8]
  18679. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  18680. 80081c6: 68fb ldr r3, [r7, #12]
  18681. 80081c8: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18682. 80081cc: 2b00 cmp r3, #0
  18683. 80081ce: d01d beq.n 800820c <HAL_DAC_IRQHandler+0x5e>
  18684. {
  18685. /* Check underrun flag of DAC channel 1 */
  18686. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  18687. 80081d0: 68bb ldr r3, [r7, #8]
  18688. 80081d2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18689. 80081d6: 2b00 cmp r3, #0
  18690. 80081d8: d018 beq.n 800820c <HAL_DAC_IRQHandler+0x5e>
  18691. {
  18692. /* Change DAC state to error state */
  18693. hdac->State = HAL_DAC_STATE_ERROR;
  18694. 80081da: 687b ldr r3, [r7, #4]
  18695. 80081dc: 2204 movs r2, #4
  18696. 80081de: 711a strb r2, [r3, #4]
  18697. /* Set DAC error code to channel1 DMA underrun error */
  18698. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  18699. 80081e0: 687b ldr r3, [r7, #4]
  18700. 80081e2: 691b ldr r3, [r3, #16]
  18701. 80081e4: f043 0201 orr.w r2, r3, #1
  18702. 80081e8: 687b ldr r3, [r7, #4]
  18703. 80081ea: 611a str r2, [r3, #16]
  18704. /* Clear the underrun flag */
  18705. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  18706. 80081ec: 687b ldr r3, [r7, #4]
  18707. 80081ee: 681b ldr r3, [r3, #0]
  18708. 80081f0: f44f 5200 mov.w r2, #8192 @ 0x2000
  18709. 80081f4: 635a str r2, [r3, #52] @ 0x34
  18710. /* Disable the selected DAC channel1 DMA request */
  18711. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  18712. 80081f6: 687b ldr r3, [r7, #4]
  18713. 80081f8: 681b ldr r3, [r3, #0]
  18714. 80081fa: 681a ldr r2, [r3, #0]
  18715. 80081fc: 687b ldr r3, [r7, #4]
  18716. 80081fe: 681b ldr r3, [r3, #0]
  18717. 8008200: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  18718. 8008204: 601a str r2, [r3, #0]
  18719. /* Error callback */
  18720. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18721. hdac->DMAUnderrunCallbackCh1(hdac);
  18722. #else
  18723. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  18724. 8008206: 6878 ldr r0, [r7, #4]
  18725. 8008208: f000 f851 bl 80082ae <HAL_DAC_DMAUnderrunCallbackCh1>
  18726. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18727. }
  18728. }
  18729. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  18730. 800820c: 68fb ldr r3, [r7, #12]
  18731. 800820e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18732. 8008212: 2b00 cmp r3, #0
  18733. 8008214: d01d beq.n 8008252 <HAL_DAC_IRQHandler+0xa4>
  18734. {
  18735. /* Check underrun flag of DAC channel 2 */
  18736. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  18737. 8008216: 68bb ldr r3, [r7, #8]
  18738. 8008218: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18739. 800821c: 2b00 cmp r3, #0
  18740. 800821e: d018 beq.n 8008252 <HAL_DAC_IRQHandler+0xa4>
  18741. {
  18742. /* Change DAC state to error state */
  18743. hdac->State = HAL_DAC_STATE_ERROR;
  18744. 8008220: 687b ldr r3, [r7, #4]
  18745. 8008222: 2204 movs r2, #4
  18746. 8008224: 711a strb r2, [r3, #4]
  18747. /* Set DAC error code to channel2 DMA underrun error */
  18748. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  18749. 8008226: 687b ldr r3, [r7, #4]
  18750. 8008228: 691b ldr r3, [r3, #16]
  18751. 800822a: f043 0202 orr.w r2, r3, #2
  18752. 800822e: 687b ldr r3, [r7, #4]
  18753. 8008230: 611a str r2, [r3, #16]
  18754. /* Clear the underrun flag */
  18755. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  18756. 8008232: 687b ldr r3, [r7, #4]
  18757. 8008234: 681b ldr r3, [r3, #0]
  18758. 8008236: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  18759. 800823a: 635a str r2, [r3, #52] @ 0x34
  18760. /* Disable the selected DAC channel2 DMA request */
  18761. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  18762. 800823c: 687b ldr r3, [r7, #4]
  18763. 800823e: 681b ldr r3, [r3, #0]
  18764. 8008240: 681a ldr r2, [r3, #0]
  18765. 8008242: 687b ldr r3, [r7, #4]
  18766. 8008244: 681b ldr r3, [r3, #0]
  18767. 8008246: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  18768. 800824a: 601a str r2, [r3, #0]
  18769. /* Error callback */
  18770. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18771. hdac->DMAUnderrunCallbackCh2(hdac);
  18772. #else
  18773. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  18774. 800824c: 6878 ldr r0, [r7, #4]
  18775. 800824e: f000 f97b bl 8008548 <HAL_DACEx_DMAUnderrunCallbackCh2>
  18776. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18777. }
  18778. }
  18779. }
  18780. 8008252: bf00 nop
  18781. 8008254: 3710 adds r7, #16
  18782. 8008256: 46bd mov sp, r7
  18783. 8008258: bd80 pop {r7, pc}
  18784. 0800825a <HAL_DAC_SetValue>:
  18785. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  18786. * @param Data Data to be loaded in the selected data holding register.
  18787. * @retval HAL status
  18788. */
  18789. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  18790. {
  18791. 800825a: b480 push {r7}
  18792. 800825c: b087 sub sp, #28
  18793. 800825e: af00 add r7, sp, #0
  18794. 8008260: 60f8 str r0, [r7, #12]
  18795. 8008262: 60b9 str r1, [r7, #8]
  18796. 8008264: 607a str r2, [r7, #4]
  18797. 8008266: 603b str r3, [r7, #0]
  18798. __IO uint32_t tmp = 0UL;
  18799. 8008268: 2300 movs r3, #0
  18800. 800826a: 617b str r3, [r7, #20]
  18801. /* Check the DAC peripheral handle */
  18802. if (hdac == NULL)
  18803. 800826c: 68fb ldr r3, [r7, #12]
  18804. 800826e: 2b00 cmp r3, #0
  18805. 8008270: d101 bne.n 8008276 <HAL_DAC_SetValue+0x1c>
  18806. {
  18807. return HAL_ERROR;
  18808. 8008272: 2301 movs r3, #1
  18809. 8008274: e015 b.n 80082a2 <HAL_DAC_SetValue+0x48>
  18810. /* Check the parameters */
  18811. assert_param(IS_DAC_CHANNEL(Channel));
  18812. assert_param(IS_DAC_ALIGN(Alignment));
  18813. assert_param(IS_DAC_DATA(Data));
  18814. tmp = (uint32_t)hdac->Instance;
  18815. 8008276: 68fb ldr r3, [r7, #12]
  18816. 8008278: 681b ldr r3, [r3, #0]
  18817. 800827a: 617b str r3, [r7, #20]
  18818. if (Channel == DAC_CHANNEL_1)
  18819. 800827c: 68bb ldr r3, [r7, #8]
  18820. 800827e: 2b00 cmp r3, #0
  18821. 8008280: d105 bne.n 800828e <HAL_DAC_SetValue+0x34>
  18822. {
  18823. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  18824. 8008282: 697a ldr r2, [r7, #20]
  18825. 8008284: 687b ldr r3, [r7, #4]
  18826. 8008286: 4413 add r3, r2
  18827. 8008288: 3308 adds r3, #8
  18828. 800828a: 617b str r3, [r7, #20]
  18829. 800828c: e004 b.n 8008298 <HAL_DAC_SetValue+0x3e>
  18830. }
  18831. else
  18832. {
  18833. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  18834. 800828e: 697a ldr r2, [r7, #20]
  18835. 8008290: 687b ldr r3, [r7, #4]
  18836. 8008292: 4413 add r3, r2
  18837. 8008294: 3314 adds r3, #20
  18838. 8008296: 617b str r3, [r7, #20]
  18839. }
  18840. /* Set the DAC channel selected data holding register */
  18841. *(__IO uint32_t *) tmp = Data;
  18842. 8008298: 697b ldr r3, [r7, #20]
  18843. 800829a: 461a mov r2, r3
  18844. 800829c: 683b ldr r3, [r7, #0]
  18845. 800829e: 6013 str r3, [r2, #0]
  18846. /* Return function status */
  18847. return HAL_OK;
  18848. 80082a0: 2300 movs r3, #0
  18849. }
  18850. 80082a2: 4618 mov r0, r3
  18851. 80082a4: 371c adds r7, #28
  18852. 80082a6: 46bd mov sp, r7
  18853. 80082a8: f85d 7b04 ldr.w r7, [sp], #4
  18854. 80082ac: 4770 bx lr
  18855. 080082ae <HAL_DAC_DMAUnderrunCallbackCh1>:
  18856. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18857. * the configuration information for the specified DAC.
  18858. * @retval None
  18859. */
  18860. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  18861. {
  18862. 80082ae: b480 push {r7}
  18863. 80082b0: b083 sub sp, #12
  18864. 80082b2: af00 add r7, sp, #0
  18865. 80082b4: 6078 str r0, [r7, #4]
  18866. UNUSED(hdac);
  18867. /* NOTE : This function should not be modified, when the callback is needed,
  18868. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  18869. */
  18870. }
  18871. 80082b6: bf00 nop
  18872. 80082b8: 370c adds r7, #12
  18873. 80082ba: 46bd mov sp, r7
  18874. 80082bc: f85d 7b04 ldr.w r7, [sp], #4
  18875. 80082c0: 4770 bx lr
  18876. ...
  18877. 080082c4 <HAL_DAC_ConfigChannel>:
  18878. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18879. * @retval HAL status
  18880. */
  18881. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  18882. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  18883. {
  18884. 80082c4: b580 push {r7, lr}
  18885. 80082c6: b08a sub sp, #40 @ 0x28
  18886. 80082c8: af00 add r7, sp, #0
  18887. 80082ca: 60f8 str r0, [r7, #12]
  18888. 80082cc: 60b9 str r1, [r7, #8]
  18889. 80082ce: 607a str r2, [r7, #4]
  18890. HAL_StatusTypeDef status = HAL_OK;
  18891. 80082d0: 2300 movs r3, #0
  18892. 80082d2: f887 3023 strb.w r3, [r7, #35] @ 0x23
  18893. uint32_t tmpreg2;
  18894. uint32_t tickstart;
  18895. uint32_t connectOnChip;
  18896. /* Check the DAC peripheral handle and channel configuration struct */
  18897. if ((hdac == NULL) || (sConfig == NULL))
  18898. 80082d6: 68fb ldr r3, [r7, #12]
  18899. 80082d8: 2b00 cmp r3, #0
  18900. 80082da: d002 beq.n 80082e2 <HAL_DAC_ConfigChannel+0x1e>
  18901. 80082dc: 68bb ldr r3, [r7, #8]
  18902. 80082de: 2b00 cmp r3, #0
  18903. 80082e0: d101 bne.n 80082e6 <HAL_DAC_ConfigChannel+0x22>
  18904. {
  18905. return HAL_ERROR;
  18906. 80082e2: 2301 movs r3, #1
  18907. 80082e4: e12a b.n 800853c <HAL_DAC_ConfigChannel+0x278>
  18908. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  18909. }
  18910. assert_param(IS_DAC_CHANNEL(Channel));
  18911. /* Process locked */
  18912. __HAL_LOCK(hdac);
  18913. 80082e6: 68fb ldr r3, [r7, #12]
  18914. 80082e8: 795b ldrb r3, [r3, #5]
  18915. 80082ea: 2b01 cmp r3, #1
  18916. 80082ec: d101 bne.n 80082f2 <HAL_DAC_ConfigChannel+0x2e>
  18917. 80082ee: 2302 movs r3, #2
  18918. 80082f0: e124 b.n 800853c <HAL_DAC_ConfigChannel+0x278>
  18919. 80082f2: 68fb ldr r3, [r7, #12]
  18920. 80082f4: 2201 movs r2, #1
  18921. 80082f6: 715a strb r2, [r3, #5]
  18922. /* Change DAC state */
  18923. hdac->State = HAL_DAC_STATE_BUSY;
  18924. 80082f8: 68fb ldr r3, [r7, #12]
  18925. 80082fa: 2202 movs r2, #2
  18926. 80082fc: 711a strb r2, [r3, #4]
  18927. /* Sample and hold configuration */
  18928. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  18929. 80082fe: 68bb ldr r3, [r7, #8]
  18930. 8008300: 681b ldr r3, [r3, #0]
  18931. 8008302: 2b04 cmp r3, #4
  18932. 8008304: d17a bne.n 80083fc <HAL_DAC_ConfigChannel+0x138>
  18933. {
  18934. /* Get timeout */
  18935. tickstart = HAL_GetTick();
  18936. 8008306: f7fd fd8d bl 8005e24 <HAL_GetTick>
  18937. 800830a: 61f8 str r0, [r7, #28]
  18938. if (Channel == DAC_CHANNEL_1)
  18939. 800830c: 687b ldr r3, [r7, #4]
  18940. 800830e: 2b00 cmp r3, #0
  18941. 8008310: d13d bne.n 800838e <HAL_DAC_ConfigChannel+0xca>
  18942. {
  18943. /* SHSR1 can be written when BWST1 is cleared */
  18944. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18945. 8008312: e018 b.n 8008346 <HAL_DAC_ConfigChannel+0x82>
  18946. {
  18947. /* Check for the Timeout */
  18948. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18949. 8008314: f7fd fd86 bl 8005e24 <HAL_GetTick>
  18950. 8008318: 4602 mov r2, r0
  18951. 800831a: 69fb ldr r3, [r7, #28]
  18952. 800831c: 1ad3 subs r3, r2, r3
  18953. 800831e: 2b01 cmp r3, #1
  18954. 8008320: d911 bls.n 8008346 <HAL_DAC_ConfigChannel+0x82>
  18955. {
  18956. /* New check to avoid false timeout detection in case of preemption */
  18957. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18958. 8008322: 68fb ldr r3, [r7, #12]
  18959. 8008324: 681b ldr r3, [r3, #0]
  18960. 8008326: 6b5a ldr r2, [r3, #52] @ 0x34
  18961. 8008328: 4b86 ldr r3, [pc, #536] @ (8008544 <HAL_DAC_ConfigChannel+0x280>)
  18962. 800832a: 4013 ands r3, r2
  18963. 800832c: 2b00 cmp r3, #0
  18964. 800832e: d00a beq.n 8008346 <HAL_DAC_ConfigChannel+0x82>
  18965. {
  18966. /* Update error code */
  18967. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  18968. 8008330: 68fb ldr r3, [r7, #12]
  18969. 8008332: 691b ldr r3, [r3, #16]
  18970. 8008334: f043 0208 orr.w r2, r3, #8
  18971. 8008338: 68fb ldr r3, [r7, #12]
  18972. 800833a: 611a str r2, [r3, #16]
  18973. /* Change the DMA state */
  18974. hdac->State = HAL_DAC_STATE_TIMEOUT;
  18975. 800833c: 68fb ldr r3, [r7, #12]
  18976. 800833e: 2203 movs r2, #3
  18977. 8008340: 711a strb r2, [r3, #4]
  18978. return HAL_TIMEOUT;
  18979. 8008342: 2303 movs r3, #3
  18980. 8008344: e0fa b.n 800853c <HAL_DAC_ConfigChannel+0x278>
  18981. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18982. 8008346: 68fb ldr r3, [r7, #12]
  18983. 8008348: 681b ldr r3, [r3, #0]
  18984. 800834a: 6b5a ldr r2, [r3, #52] @ 0x34
  18985. 800834c: 4b7d ldr r3, [pc, #500] @ (8008544 <HAL_DAC_ConfigChannel+0x280>)
  18986. 800834e: 4013 ands r3, r2
  18987. 8008350: 2b00 cmp r3, #0
  18988. 8008352: d1df bne.n 8008314 <HAL_DAC_ConfigChannel+0x50>
  18989. }
  18990. }
  18991. }
  18992. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  18993. 8008354: 68fb ldr r3, [r7, #12]
  18994. 8008356: 681b ldr r3, [r3, #0]
  18995. 8008358: 68ba ldr r2, [r7, #8]
  18996. 800835a: 6992 ldr r2, [r2, #24]
  18997. 800835c: 641a str r2, [r3, #64] @ 0x40
  18998. 800835e: e020 b.n 80083a2 <HAL_DAC_ConfigChannel+0xde>
  18999. {
  19000. /* SHSR2 can be written when BWST2 is cleared */
  19001. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19002. {
  19003. /* Check for the Timeout */
  19004. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  19005. 8008360: f7fd fd60 bl 8005e24 <HAL_GetTick>
  19006. 8008364: 4602 mov r2, r0
  19007. 8008366: 69fb ldr r3, [r7, #28]
  19008. 8008368: 1ad3 subs r3, r2, r3
  19009. 800836a: 2b01 cmp r3, #1
  19010. 800836c: d90f bls.n 800838e <HAL_DAC_ConfigChannel+0xca>
  19011. {
  19012. /* New check to avoid false timeout detection in case of preemption */
  19013. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19014. 800836e: 68fb ldr r3, [r7, #12]
  19015. 8008370: 681b ldr r3, [r3, #0]
  19016. 8008372: 6b5b ldr r3, [r3, #52] @ 0x34
  19017. 8008374: 2b00 cmp r3, #0
  19018. 8008376: da0a bge.n 800838e <HAL_DAC_ConfigChannel+0xca>
  19019. {
  19020. /* Update error code */
  19021. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  19022. 8008378: 68fb ldr r3, [r7, #12]
  19023. 800837a: 691b ldr r3, [r3, #16]
  19024. 800837c: f043 0208 orr.w r2, r3, #8
  19025. 8008380: 68fb ldr r3, [r7, #12]
  19026. 8008382: 611a str r2, [r3, #16]
  19027. /* Change the DMA state */
  19028. hdac->State = HAL_DAC_STATE_TIMEOUT;
  19029. 8008384: 68fb ldr r3, [r7, #12]
  19030. 8008386: 2203 movs r2, #3
  19031. 8008388: 711a strb r2, [r3, #4]
  19032. return HAL_TIMEOUT;
  19033. 800838a: 2303 movs r3, #3
  19034. 800838c: e0d6 b.n 800853c <HAL_DAC_ConfigChannel+0x278>
  19035. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  19036. 800838e: 68fb ldr r3, [r7, #12]
  19037. 8008390: 681b ldr r3, [r3, #0]
  19038. 8008392: 6b5b ldr r3, [r3, #52] @ 0x34
  19039. 8008394: 2b00 cmp r3, #0
  19040. 8008396: dbe3 blt.n 8008360 <HAL_DAC_ConfigChannel+0x9c>
  19041. }
  19042. }
  19043. }
  19044. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  19045. 8008398: 68fb ldr r3, [r7, #12]
  19046. 800839a: 681b ldr r3, [r3, #0]
  19047. 800839c: 68ba ldr r2, [r7, #8]
  19048. 800839e: 6992 ldr r2, [r2, #24]
  19049. 80083a0: 645a str r2, [r3, #68] @ 0x44
  19050. }
  19051. /* HoldTime */
  19052. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  19053. 80083a2: 68fb ldr r3, [r7, #12]
  19054. 80083a4: 681b ldr r3, [r3, #0]
  19055. 80083a6: 6c9a ldr r2, [r3, #72] @ 0x48
  19056. 80083a8: 687b ldr r3, [r7, #4]
  19057. 80083aa: f003 0310 and.w r3, r3, #16
  19058. 80083ae: f240 31ff movw r1, #1023 @ 0x3ff
  19059. 80083b2: fa01 f303 lsl.w r3, r1, r3
  19060. 80083b6: 43db mvns r3, r3
  19061. 80083b8: ea02 0103 and.w r1, r2, r3
  19062. 80083bc: 68bb ldr r3, [r7, #8]
  19063. 80083be: 69da ldr r2, [r3, #28]
  19064. 80083c0: 687b ldr r3, [r7, #4]
  19065. 80083c2: f003 0310 and.w r3, r3, #16
  19066. 80083c6: 409a lsls r2, r3
  19067. 80083c8: 68fb ldr r3, [r7, #12]
  19068. 80083ca: 681b ldr r3, [r3, #0]
  19069. 80083cc: 430a orrs r2, r1
  19070. 80083ce: 649a str r2, [r3, #72] @ 0x48
  19071. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  19072. /* RefreshTime */
  19073. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  19074. 80083d0: 68fb ldr r3, [r7, #12]
  19075. 80083d2: 681b ldr r3, [r3, #0]
  19076. 80083d4: 6cda ldr r2, [r3, #76] @ 0x4c
  19077. 80083d6: 687b ldr r3, [r7, #4]
  19078. 80083d8: f003 0310 and.w r3, r3, #16
  19079. 80083dc: 21ff movs r1, #255 @ 0xff
  19080. 80083de: fa01 f303 lsl.w r3, r1, r3
  19081. 80083e2: 43db mvns r3, r3
  19082. 80083e4: ea02 0103 and.w r1, r2, r3
  19083. 80083e8: 68bb ldr r3, [r7, #8]
  19084. 80083ea: 6a1a ldr r2, [r3, #32]
  19085. 80083ec: 687b ldr r3, [r7, #4]
  19086. 80083ee: f003 0310 and.w r3, r3, #16
  19087. 80083f2: 409a lsls r2, r3
  19088. 80083f4: 68fb ldr r3, [r7, #12]
  19089. 80083f6: 681b ldr r3, [r3, #0]
  19090. 80083f8: 430a orrs r2, r1
  19091. 80083fa: 64da str r2, [r3, #76] @ 0x4c
  19092. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  19093. }
  19094. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  19095. 80083fc: 68bb ldr r3, [r7, #8]
  19096. 80083fe: 691b ldr r3, [r3, #16]
  19097. 8008400: 2b01 cmp r3, #1
  19098. 8008402: d11d bne.n 8008440 <HAL_DAC_ConfigChannel+0x17c>
  19099. /* USER TRIMMING */
  19100. {
  19101. /* Get the DAC CCR value */
  19102. tmpreg1 = hdac->Instance->CCR;
  19103. 8008404: 68fb ldr r3, [r7, #12]
  19104. 8008406: 681b ldr r3, [r3, #0]
  19105. 8008408: 6b9b ldr r3, [r3, #56] @ 0x38
  19106. 800840a: 61bb str r3, [r7, #24]
  19107. /* Clear trimming value */
  19108. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  19109. 800840c: 687b ldr r3, [r7, #4]
  19110. 800840e: f003 0310 and.w r3, r3, #16
  19111. 8008412: 221f movs r2, #31
  19112. 8008414: fa02 f303 lsl.w r3, r2, r3
  19113. 8008418: 43db mvns r3, r3
  19114. 800841a: 69ba ldr r2, [r7, #24]
  19115. 800841c: 4013 ands r3, r2
  19116. 800841e: 61bb str r3, [r7, #24]
  19117. /* Configure for the selected trimming offset */
  19118. tmpreg2 = sConfig->DAC_TrimmingValue;
  19119. 8008420: 68bb ldr r3, [r7, #8]
  19120. 8008422: 695b ldr r3, [r3, #20]
  19121. 8008424: 617b str r3, [r7, #20]
  19122. /* Calculate CCR register value depending on DAC_Channel */
  19123. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19124. 8008426: 687b ldr r3, [r7, #4]
  19125. 8008428: f003 0310 and.w r3, r3, #16
  19126. 800842c: 697a ldr r2, [r7, #20]
  19127. 800842e: fa02 f303 lsl.w r3, r2, r3
  19128. 8008432: 69ba ldr r2, [r7, #24]
  19129. 8008434: 4313 orrs r3, r2
  19130. 8008436: 61bb str r3, [r7, #24]
  19131. /* Write to DAC CCR */
  19132. hdac->Instance->CCR = tmpreg1;
  19133. 8008438: 68fb ldr r3, [r7, #12]
  19134. 800843a: 681b ldr r3, [r3, #0]
  19135. 800843c: 69ba ldr r2, [r7, #24]
  19136. 800843e: 639a str r2, [r3, #56] @ 0x38
  19137. }
  19138. /* else factory trimming is used (factory setting are available at reset)*/
  19139. /* SW Nothing has nothing to do */
  19140. /* Get the DAC MCR value */
  19141. tmpreg1 = hdac->Instance->MCR;
  19142. 8008440: 68fb ldr r3, [r7, #12]
  19143. 8008442: 681b ldr r3, [r3, #0]
  19144. 8008444: 6bdb ldr r3, [r3, #60] @ 0x3c
  19145. 8008446: 61bb str r3, [r7, #24]
  19146. /* Clear DAC_MCR_MODEx bits */
  19147. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  19148. 8008448: 687b ldr r3, [r7, #4]
  19149. 800844a: f003 0310 and.w r3, r3, #16
  19150. 800844e: 2207 movs r2, #7
  19151. 8008450: fa02 f303 lsl.w r3, r2, r3
  19152. 8008454: 43db mvns r3, r3
  19153. 8008456: 69ba ldr r2, [r7, #24]
  19154. 8008458: 4013 ands r3, r2
  19155. 800845a: 61bb str r3, [r7, #24]
  19156. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  19157. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  19158. 800845c: 68bb ldr r3, [r7, #8]
  19159. 800845e: 68db ldr r3, [r3, #12]
  19160. 8008460: 2b01 cmp r3, #1
  19161. 8008462: d102 bne.n 800846a <HAL_DAC_ConfigChannel+0x1a6>
  19162. {
  19163. connectOnChip = 0x00000000UL;
  19164. 8008464: 2300 movs r3, #0
  19165. 8008466: 627b str r3, [r7, #36] @ 0x24
  19166. 8008468: e00f b.n 800848a <HAL_DAC_ConfigChannel+0x1c6>
  19167. }
  19168. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  19169. 800846a: 68bb ldr r3, [r7, #8]
  19170. 800846c: 68db ldr r3, [r3, #12]
  19171. 800846e: 2b02 cmp r3, #2
  19172. 8008470: d102 bne.n 8008478 <HAL_DAC_ConfigChannel+0x1b4>
  19173. {
  19174. connectOnChip = DAC_MCR_MODE1_0;
  19175. 8008472: 2301 movs r3, #1
  19176. 8008474: 627b str r3, [r7, #36] @ 0x24
  19177. 8008476: e008 b.n 800848a <HAL_DAC_ConfigChannel+0x1c6>
  19178. }
  19179. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  19180. {
  19181. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  19182. 8008478: 68bb ldr r3, [r7, #8]
  19183. 800847a: 689b ldr r3, [r3, #8]
  19184. 800847c: 2b00 cmp r3, #0
  19185. 800847e: d102 bne.n 8008486 <HAL_DAC_ConfigChannel+0x1c2>
  19186. {
  19187. connectOnChip = DAC_MCR_MODE1_0;
  19188. 8008480: 2301 movs r3, #1
  19189. 8008482: 627b str r3, [r7, #36] @ 0x24
  19190. 8008484: e001 b.n 800848a <HAL_DAC_ConfigChannel+0x1c6>
  19191. }
  19192. else
  19193. {
  19194. connectOnChip = 0x00000000UL;
  19195. 8008486: 2300 movs r3, #0
  19196. 8008488: 627b str r3, [r7, #36] @ 0x24
  19197. }
  19198. }
  19199. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  19200. 800848a: 68bb ldr r3, [r7, #8]
  19201. 800848c: 681a ldr r2, [r3, #0]
  19202. 800848e: 68bb ldr r3, [r7, #8]
  19203. 8008490: 689b ldr r3, [r3, #8]
  19204. 8008492: 4313 orrs r3, r2
  19205. 8008494: 6a7a ldr r2, [r7, #36] @ 0x24
  19206. 8008496: 4313 orrs r3, r2
  19207. 8008498: 617b str r3, [r7, #20]
  19208. /* Calculate MCR register value depending on DAC_Channel */
  19209. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19210. 800849a: 687b ldr r3, [r7, #4]
  19211. 800849c: f003 0310 and.w r3, r3, #16
  19212. 80084a0: 697a ldr r2, [r7, #20]
  19213. 80084a2: fa02 f303 lsl.w r3, r2, r3
  19214. 80084a6: 69ba ldr r2, [r7, #24]
  19215. 80084a8: 4313 orrs r3, r2
  19216. 80084aa: 61bb str r3, [r7, #24]
  19217. /* Write to DAC MCR */
  19218. hdac->Instance->MCR = tmpreg1;
  19219. 80084ac: 68fb ldr r3, [r7, #12]
  19220. 80084ae: 681b ldr r3, [r3, #0]
  19221. 80084b0: 69ba ldr r2, [r7, #24]
  19222. 80084b2: 63da str r2, [r3, #60] @ 0x3c
  19223. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  19224. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  19225. 80084b4: 68fb ldr r3, [r7, #12]
  19226. 80084b6: 681b ldr r3, [r3, #0]
  19227. 80084b8: 6819 ldr r1, [r3, #0]
  19228. 80084ba: 687b ldr r3, [r7, #4]
  19229. 80084bc: f003 0310 and.w r3, r3, #16
  19230. 80084c0: f44f 4280 mov.w r2, #16384 @ 0x4000
  19231. 80084c4: fa02 f303 lsl.w r3, r2, r3
  19232. 80084c8: 43da mvns r2, r3
  19233. 80084ca: 68fb ldr r3, [r7, #12]
  19234. 80084cc: 681b ldr r3, [r3, #0]
  19235. 80084ce: 400a ands r2, r1
  19236. 80084d0: 601a str r2, [r3, #0]
  19237. /* Get the DAC CR value */
  19238. tmpreg1 = hdac->Instance->CR;
  19239. 80084d2: 68fb ldr r3, [r7, #12]
  19240. 80084d4: 681b ldr r3, [r3, #0]
  19241. 80084d6: 681b ldr r3, [r3, #0]
  19242. 80084d8: 61bb str r3, [r7, #24]
  19243. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  19244. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  19245. 80084da: 687b ldr r3, [r7, #4]
  19246. 80084dc: f003 0310 and.w r3, r3, #16
  19247. 80084e0: f640 72fe movw r2, #4094 @ 0xffe
  19248. 80084e4: fa02 f303 lsl.w r3, r2, r3
  19249. 80084e8: 43db mvns r3, r3
  19250. 80084ea: 69ba ldr r2, [r7, #24]
  19251. 80084ec: 4013 ands r3, r2
  19252. 80084ee: 61bb str r3, [r7, #24]
  19253. /* Configure for the selected DAC channel: trigger */
  19254. /* Set TSELx and TENx bits according to DAC_Trigger value */
  19255. tmpreg2 = sConfig->DAC_Trigger;
  19256. 80084f0: 68bb ldr r3, [r7, #8]
  19257. 80084f2: 685b ldr r3, [r3, #4]
  19258. 80084f4: 617b str r3, [r7, #20]
  19259. /* Calculate CR register value depending on DAC_Channel */
  19260. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  19261. 80084f6: 687b ldr r3, [r7, #4]
  19262. 80084f8: f003 0310 and.w r3, r3, #16
  19263. 80084fc: 697a ldr r2, [r7, #20]
  19264. 80084fe: fa02 f303 lsl.w r3, r2, r3
  19265. 8008502: 69ba ldr r2, [r7, #24]
  19266. 8008504: 4313 orrs r3, r2
  19267. 8008506: 61bb str r3, [r7, #24]
  19268. /* Write to DAC CR */
  19269. hdac->Instance->CR = tmpreg1;
  19270. 8008508: 68fb ldr r3, [r7, #12]
  19271. 800850a: 681b ldr r3, [r3, #0]
  19272. 800850c: 69ba ldr r2, [r7, #24]
  19273. 800850e: 601a str r2, [r3, #0]
  19274. /* Disable wave generation */
  19275. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  19276. 8008510: 68fb ldr r3, [r7, #12]
  19277. 8008512: 681b ldr r3, [r3, #0]
  19278. 8008514: 6819 ldr r1, [r3, #0]
  19279. 8008516: 687b ldr r3, [r7, #4]
  19280. 8008518: f003 0310 and.w r3, r3, #16
  19281. 800851c: 22c0 movs r2, #192 @ 0xc0
  19282. 800851e: fa02 f303 lsl.w r3, r2, r3
  19283. 8008522: 43da mvns r2, r3
  19284. 8008524: 68fb ldr r3, [r7, #12]
  19285. 8008526: 681b ldr r3, [r3, #0]
  19286. 8008528: 400a ands r2, r1
  19287. 800852a: 601a str r2, [r3, #0]
  19288. /* Change DAC state */
  19289. hdac->State = HAL_DAC_STATE_READY;
  19290. 800852c: 68fb ldr r3, [r7, #12]
  19291. 800852e: 2201 movs r2, #1
  19292. 8008530: 711a strb r2, [r3, #4]
  19293. /* Process unlocked */
  19294. __HAL_UNLOCK(hdac);
  19295. 8008532: 68fb ldr r3, [r7, #12]
  19296. 8008534: 2200 movs r2, #0
  19297. 8008536: 715a strb r2, [r3, #5]
  19298. /* Return function status */
  19299. return status;
  19300. 8008538: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  19301. }
  19302. 800853c: 4618 mov r0, r3
  19303. 800853e: 3728 adds r7, #40 @ 0x28
  19304. 8008540: 46bd mov sp, r7
  19305. 8008542: bd80 pop {r7, pc}
  19306. 8008544: 20008000 .word 0x20008000
  19307. 08008548 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  19308. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  19309. * the configuration information for the specified DAC.
  19310. * @retval None
  19311. */
  19312. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  19313. {
  19314. 8008548: b480 push {r7}
  19315. 800854a: b083 sub sp, #12
  19316. 800854c: af00 add r7, sp, #0
  19317. 800854e: 6078 str r0, [r7, #4]
  19318. UNUSED(hdac);
  19319. /* NOTE : This function should not be modified, when the callback is needed,
  19320. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  19321. */
  19322. }
  19323. 8008550: bf00 nop
  19324. 8008552: 370c adds r7, #12
  19325. 8008554: 46bd mov sp, r7
  19326. 8008556: f85d 7b04 ldr.w r7, [sp], #4
  19327. 800855a: 4770 bx lr
  19328. 0800855c <HAL_DMA_Init>:
  19329. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  19330. * the configuration information for the specified DMA Stream.
  19331. * @retval HAL status
  19332. */
  19333. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  19334. {
  19335. 800855c: b580 push {r7, lr}
  19336. 800855e: b086 sub sp, #24
  19337. 8008560: af00 add r7, sp, #0
  19338. 8008562: 6078 str r0, [r7, #4]
  19339. uint32_t registerValue;
  19340. uint32_t tickstart = HAL_GetTick();
  19341. 8008564: f7fd fc5e bl 8005e24 <HAL_GetTick>
  19342. 8008568: 6138 str r0, [r7, #16]
  19343. DMA_Base_Registers *regs_dma;
  19344. BDMA_Base_Registers *regs_bdma;
  19345. /* Check the DMA peripheral handle */
  19346. if(hdma == NULL)
  19347. 800856a: 687b ldr r3, [r7, #4]
  19348. 800856c: 2b00 cmp r3, #0
  19349. 800856e: d101 bne.n 8008574 <HAL_DMA_Init+0x18>
  19350. {
  19351. return HAL_ERROR;
  19352. 8008570: 2301 movs r3, #1
  19353. 8008572: e316 b.n 8008ba2 <HAL_DMA_Init+0x646>
  19354. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  19355. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  19356. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  19357. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  19358. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  19359. 8008574: 687b ldr r3, [r7, #4]
  19360. 8008576: 681b ldr r3, [r3, #0]
  19361. 8008578: 4a66 ldr r2, [pc, #408] @ (8008714 <HAL_DMA_Init+0x1b8>)
  19362. 800857a: 4293 cmp r3, r2
  19363. 800857c: d04a beq.n 8008614 <HAL_DMA_Init+0xb8>
  19364. 800857e: 687b ldr r3, [r7, #4]
  19365. 8008580: 681b ldr r3, [r3, #0]
  19366. 8008582: 4a65 ldr r2, [pc, #404] @ (8008718 <HAL_DMA_Init+0x1bc>)
  19367. 8008584: 4293 cmp r3, r2
  19368. 8008586: d045 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19369. 8008588: 687b ldr r3, [r7, #4]
  19370. 800858a: 681b ldr r3, [r3, #0]
  19371. 800858c: 4a63 ldr r2, [pc, #396] @ (800871c <HAL_DMA_Init+0x1c0>)
  19372. 800858e: 4293 cmp r3, r2
  19373. 8008590: d040 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19374. 8008592: 687b ldr r3, [r7, #4]
  19375. 8008594: 681b ldr r3, [r3, #0]
  19376. 8008596: 4a62 ldr r2, [pc, #392] @ (8008720 <HAL_DMA_Init+0x1c4>)
  19377. 8008598: 4293 cmp r3, r2
  19378. 800859a: d03b beq.n 8008614 <HAL_DMA_Init+0xb8>
  19379. 800859c: 687b ldr r3, [r7, #4]
  19380. 800859e: 681b ldr r3, [r3, #0]
  19381. 80085a0: 4a60 ldr r2, [pc, #384] @ (8008724 <HAL_DMA_Init+0x1c8>)
  19382. 80085a2: 4293 cmp r3, r2
  19383. 80085a4: d036 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19384. 80085a6: 687b ldr r3, [r7, #4]
  19385. 80085a8: 681b ldr r3, [r3, #0]
  19386. 80085aa: 4a5f ldr r2, [pc, #380] @ (8008728 <HAL_DMA_Init+0x1cc>)
  19387. 80085ac: 4293 cmp r3, r2
  19388. 80085ae: d031 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19389. 80085b0: 687b ldr r3, [r7, #4]
  19390. 80085b2: 681b ldr r3, [r3, #0]
  19391. 80085b4: 4a5d ldr r2, [pc, #372] @ (800872c <HAL_DMA_Init+0x1d0>)
  19392. 80085b6: 4293 cmp r3, r2
  19393. 80085b8: d02c beq.n 8008614 <HAL_DMA_Init+0xb8>
  19394. 80085ba: 687b ldr r3, [r7, #4]
  19395. 80085bc: 681b ldr r3, [r3, #0]
  19396. 80085be: 4a5c ldr r2, [pc, #368] @ (8008730 <HAL_DMA_Init+0x1d4>)
  19397. 80085c0: 4293 cmp r3, r2
  19398. 80085c2: d027 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19399. 80085c4: 687b ldr r3, [r7, #4]
  19400. 80085c6: 681b ldr r3, [r3, #0]
  19401. 80085c8: 4a5a ldr r2, [pc, #360] @ (8008734 <HAL_DMA_Init+0x1d8>)
  19402. 80085ca: 4293 cmp r3, r2
  19403. 80085cc: d022 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19404. 80085ce: 687b ldr r3, [r7, #4]
  19405. 80085d0: 681b ldr r3, [r3, #0]
  19406. 80085d2: 4a59 ldr r2, [pc, #356] @ (8008738 <HAL_DMA_Init+0x1dc>)
  19407. 80085d4: 4293 cmp r3, r2
  19408. 80085d6: d01d beq.n 8008614 <HAL_DMA_Init+0xb8>
  19409. 80085d8: 687b ldr r3, [r7, #4]
  19410. 80085da: 681b ldr r3, [r3, #0]
  19411. 80085dc: 4a57 ldr r2, [pc, #348] @ (800873c <HAL_DMA_Init+0x1e0>)
  19412. 80085de: 4293 cmp r3, r2
  19413. 80085e0: d018 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19414. 80085e2: 687b ldr r3, [r7, #4]
  19415. 80085e4: 681b ldr r3, [r3, #0]
  19416. 80085e6: 4a56 ldr r2, [pc, #344] @ (8008740 <HAL_DMA_Init+0x1e4>)
  19417. 80085e8: 4293 cmp r3, r2
  19418. 80085ea: d013 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19419. 80085ec: 687b ldr r3, [r7, #4]
  19420. 80085ee: 681b ldr r3, [r3, #0]
  19421. 80085f0: 4a54 ldr r2, [pc, #336] @ (8008744 <HAL_DMA_Init+0x1e8>)
  19422. 80085f2: 4293 cmp r3, r2
  19423. 80085f4: d00e beq.n 8008614 <HAL_DMA_Init+0xb8>
  19424. 80085f6: 687b ldr r3, [r7, #4]
  19425. 80085f8: 681b ldr r3, [r3, #0]
  19426. 80085fa: 4a53 ldr r2, [pc, #332] @ (8008748 <HAL_DMA_Init+0x1ec>)
  19427. 80085fc: 4293 cmp r3, r2
  19428. 80085fe: d009 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19429. 8008600: 687b ldr r3, [r7, #4]
  19430. 8008602: 681b ldr r3, [r3, #0]
  19431. 8008604: 4a51 ldr r2, [pc, #324] @ (800874c <HAL_DMA_Init+0x1f0>)
  19432. 8008606: 4293 cmp r3, r2
  19433. 8008608: d004 beq.n 8008614 <HAL_DMA_Init+0xb8>
  19434. 800860a: 687b ldr r3, [r7, #4]
  19435. 800860c: 681b ldr r3, [r3, #0]
  19436. 800860e: 4a50 ldr r2, [pc, #320] @ (8008750 <HAL_DMA_Init+0x1f4>)
  19437. 8008610: 4293 cmp r3, r2
  19438. 8008612: d101 bne.n 8008618 <HAL_DMA_Init+0xbc>
  19439. 8008614: 2301 movs r3, #1
  19440. 8008616: e000 b.n 800861a <HAL_DMA_Init+0xbe>
  19441. 8008618: 2300 movs r3, #0
  19442. 800861a: 2b00 cmp r3, #0
  19443. 800861c: f000 813b beq.w 8008896 <HAL_DMA_Init+0x33a>
  19444. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  19445. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  19446. }
  19447. /* Change DMA peripheral state */
  19448. hdma->State = HAL_DMA_STATE_BUSY;
  19449. 8008620: 687b ldr r3, [r7, #4]
  19450. 8008622: 2202 movs r2, #2
  19451. 8008624: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19452. /* Allocate lock resource */
  19453. __HAL_UNLOCK(hdma);
  19454. 8008628: 687b ldr r3, [r7, #4]
  19455. 800862a: 2200 movs r2, #0
  19456. 800862c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19457. /* Disable the peripheral */
  19458. __HAL_DMA_DISABLE(hdma);
  19459. 8008630: 687b ldr r3, [r7, #4]
  19460. 8008632: 681b ldr r3, [r3, #0]
  19461. 8008634: 4a37 ldr r2, [pc, #220] @ (8008714 <HAL_DMA_Init+0x1b8>)
  19462. 8008636: 4293 cmp r3, r2
  19463. 8008638: d04a beq.n 80086d0 <HAL_DMA_Init+0x174>
  19464. 800863a: 687b ldr r3, [r7, #4]
  19465. 800863c: 681b ldr r3, [r3, #0]
  19466. 800863e: 4a36 ldr r2, [pc, #216] @ (8008718 <HAL_DMA_Init+0x1bc>)
  19467. 8008640: 4293 cmp r3, r2
  19468. 8008642: d045 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19469. 8008644: 687b ldr r3, [r7, #4]
  19470. 8008646: 681b ldr r3, [r3, #0]
  19471. 8008648: 4a34 ldr r2, [pc, #208] @ (800871c <HAL_DMA_Init+0x1c0>)
  19472. 800864a: 4293 cmp r3, r2
  19473. 800864c: d040 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19474. 800864e: 687b ldr r3, [r7, #4]
  19475. 8008650: 681b ldr r3, [r3, #0]
  19476. 8008652: 4a33 ldr r2, [pc, #204] @ (8008720 <HAL_DMA_Init+0x1c4>)
  19477. 8008654: 4293 cmp r3, r2
  19478. 8008656: d03b beq.n 80086d0 <HAL_DMA_Init+0x174>
  19479. 8008658: 687b ldr r3, [r7, #4]
  19480. 800865a: 681b ldr r3, [r3, #0]
  19481. 800865c: 4a31 ldr r2, [pc, #196] @ (8008724 <HAL_DMA_Init+0x1c8>)
  19482. 800865e: 4293 cmp r3, r2
  19483. 8008660: d036 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19484. 8008662: 687b ldr r3, [r7, #4]
  19485. 8008664: 681b ldr r3, [r3, #0]
  19486. 8008666: 4a30 ldr r2, [pc, #192] @ (8008728 <HAL_DMA_Init+0x1cc>)
  19487. 8008668: 4293 cmp r3, r2
  19488. 800866a: d031 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19489. 800866c: 687b ldr r3, [r7, #4]
  19490. 800866e: 681b ldr r3, [r3, #0]
  19491. 8008670: 4a2e ldr r2, [pc, #184] @ (800872c <HAL_DMA_Init+0x1d0>)
  19492. 8008672: 4293 cmp r3, r2
  19493. 8008674: d02c beq.n 80086d0 <HAL_DMA_Init+0x174>
  19494. 8008676: 687b ldr r3, [r7, #4]
  19495. 8008678: 681b ldr r3, [r3, #0]
  19496. 800867a: 4a2d ldr r2, [pc, #180] @ (8008730 <HAL_DMA_Init+0x1d4>)
  19497. 800867c: 4293 cmp r3, r2
  19498. 800867e: d027 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19499. 8008680: 687b ldr r3, [r7, #4]
  19500. 8008682: 681b ldr r3, [r3, #0]
  19501. 8008684: 4a2b ldr r2, [pc, #172] @ (8008734 <HAL_DMA_Init+0x1d8>)
  19502. 8008686: 4293 cmp r3, r2
  19503. 8008688: d022 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19504. 800868a: 687b ldr r3, [r7, #4]
  19505. 800868c: 681b ldr r3, [r3, #0]
  19506. 800868e: 4a2a ldr r2, [pc, #168] @ (8008738 <HAL_DMA_Init+0x1dc>)
  19507. 8008690: 4293 cmp r3, r2
  19508. 8008692: d01d beq.n 80086d0 <HAL_DMA_Init+0x174>
  19509. 8008694: 687b ldr r3, [r7, #4]
  19510. 8008696: 681b ldr r3, [r3, #0]
  19511. 8008698: 4a28 ldr r2, [pc, #160] @ (800873c <HAL_DMA_Init+0x1e0>)
  19512. 800869a: 4293 cmp r3, r2
  19513. 800869c: d018 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19514. 800869e: 687b ldr r3, [r7, #4]
  19515. 80086a0: 681b ldr r3, [r3, #0]
  19516. 80086a2: 4a27 ldr r2, [pc, #156] @ (8008740 <HAL_DMA_Init+0x1e4>)
  19517. 80086a4: 4293 cmp r3, r2
  19518. 80086a6: d013 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19519. 80086a8: 687b ldr r3, [r7, #4]
  19520. 80086aa: 681b ldr r3, [r3, #0]
  19521. 80086ac: 4a25 ldr r2, [pc, #148] @ (8008744 <HAL_DMA_Init+0x1e8>)
  19522. 80086ae: 4293 cmp r3, r2
  19523. 80086b0: d00e beq.n 80086d0 <HAL_DMA_Init+0x174>
  19524. 80086b2: 687b ldr r3, [r7, #4]
  19525. 80086b4: 681b ldr r3, [r3, #0]
  19526. 80086b6: 4a24 ldr r2, [pc, #144] @ (8008748 <HAL_DMA_Init+0x1ec>)
  19527. 80086b8: 4293 cmp r3, r2
  19528. 80086ba: d009 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19529. 80086bc: 687b ldr r3, [r7, #4]
  19530. 80086be: 681b ldr r3, [r3, #0]
  19531. 80086c0: 4a22 ldr r2, [pc, #136] @ (800874c <HAL_DMA_Init+0x1f0>)
  19532. 80086c2: 4293 cmp r3, r2
  19533. 80086c4: d004 beq.n 80086d0 <HAL_DMA_Init+0x174>
  19534. 80086c6: 687b ldr r3, [r7, #4]
  19535. 80086c8: 681b ldr r3, [r3, #0]
  19536. 80086ca: 4a21 ldr r2, [pc, #132] @ (8008750 <HAL_DMA_Init+0x1f4>)
  19537. 80086cc: 4293 cmp r3, r2
  19538. 80086ce: d108 bne.n 80086e2 <HAL_DMA_Init+0x186>
  19539. 80086d0: 687b ldr r3, [r7, #4]
  19540. 80086d2: 681b ldr r3, [r3, #0]
  19541. 80086d4: 681a ldr r2, [r3, #0]
  19542. 80086d6: 687b ldr r3, [r7, #4]
  19543. 80086d8: 681b ldr r3, [r3, #0]
  19544. 80086da: f022 0201 bic.w r2, r2, #1
  19545. 80086de: 601a str r2, [r3, #0]
  19546. 80086e0: e007 b.n 80086f2 <HAL_DMA_Init+0x196>
  19547. 80086e2: 687b ldr r3, [r7, #4]
  19548. 80086e4: 681b ldr r3, [r3, #0]
  19549. 80086e6: 681a ldr r2, [r3, #0]
  19550. 80086e8: 687b ldr r3, [r7, #4]
  19551. 80086ea: 681b ldr r3, [r3, #0]
  19552. 80086ec: f022 0201 bic.w r2, r2, #1
  19553. 80086f0: 601a str r2, [r3, #0]
  19554. /* Check if the DMA Stream is effectively disabled */
  19555. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19556. 80086f2: e02f b.n 8008754 <HAL_DMA_Init+0x1f8>
  19557. {
  19558. /* Check for the Timeout */
  19559. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  19560. 80086f4: f7fd fb96 bl 8005e24 <HAL_GetTick>
  19561. 80086f8: 4602 mov r2, r0
  19562. 80086fa: 693b ldr r3, [r7, #16]
  19563. 80086fc: 1ad3 subs r3, r2, r3
  19564. 80086fe: 2b05 cmp r3, #5
  19565. 8008700: d928 bls.n 8008754 <HAL_DMA_Init+0x1f8>
  19566. {
  19567. /* Update error code */
  19568. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  19569. 8008702: 687b ldr r3, [r7, #4]
  19570. 8008704: 2220 movs r2, #32
  19571. 8008706: 655a str r2, [r3, #84] @ 0x54
  19572. /* Change the DMA state */
  19573. hdma->State = HAL_DMA_STATE_ERROR;
  19574. 8008708: 687b ldr r3, [r7, #4]
  19575. 800870a: 2203 movs r2, #3
  19576. 800870c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19577. return HAL_ERROR;
  19578. 8008710: 2301 movs r3, #1
  19579. 8008712: e246 b.n 8008ba2 <HAL_DMA_Init+0x646>
  19580. 8008714: 40020010 .word 0x40020010
  19581. 8008718: 40020028 .word 0x40020028
  19582. 800871c: 40020040 .word 0x40020040
  19583. 8008720: 40020058 .word 0x40020058
  19584. 8008724: 40020070 .word 0x40020070
  19585. 8008728: 40020088 .word 0x40020088
  19586. 800872c: 400200a0 .word 0x400200a0
  19587. 8008730: 400200b8 .word 0x400200b8
  19588. 8008734: 40020410 .word 0x40020410
  19589. 8008738: 40020428 .word 0x40020428
  19590. 800873c: 40020440 .word 0x40020440
  19591. 8008740: 40020458 .word 0x40020458
  19592. 8008744: 40020470 .word 0x40020470
  19593. 8008748: 40020488 .word 0x40020488
  19594. 800874c: 400204a0 .word 0x400204a0
  19595. 8008750: 400204b8 .word 0x400204b8
  19596. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19597. 8008754: 687b ldr r3, [r7, #4]
  19598. 8008756: 681b ldr r3, [r3, #0]
  19599. 8008758: 681b ldr r3, [r3, #0]
  19600. 800875a: f003 0301 and.w r3, r3, #1
  19601. 800875e: 2b00 cmp r3, #0
  19602. 8008760: d1c8 bne.n 80086f4 <HAL_DMA_Init+0x198>
  19603. }
  19604. }
  19605. /* Get the CR register value */
  19606. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  19607. 8008762: 687b ldr r3, [r7, #4]
  19608. 8008764: 681b ldr r3, [r3, #0]
  19609. 8008766: 681b ldr r3, [r3, #0]
  19610. 8008768: 617b str r3, [r7, #20]
  19611. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  19612. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  19613. 800876a: 697a ldr r2, [r7, #20]
  19614. 800876c: 4b83 ldr r3, [pc, #524] @ (800897c <HAL_DMA_Init+0x420>)
  19615. 800876e: 4013 ands r3, r2
  19616. 8008770: 617b str r3, [r7, #20]
  19617. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  19618. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  19619. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  19620. /* Prepare the DMA Stream configuration */
  19621. registerValue |= hdma->Init.Direction |
  19622. 8008772: 687b ldr r3, [r7, #4]
  19623. 8008774: 689a ldr r2, [r3, #8]
  19624. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19625. 8008776: 687b ldr r3, [r7, #4]
  19626. 8008778: 68db ldr r3, [r3, #12]
  19627. registerValue |= hdma->Init.Direction |
  19628. 800877a: 431a orrs r2, r3
  19629. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19630. 800877c: 687b ldr r3, [r7, #4]
  19631. 800877e: 691b ldr r3, [r3, #16]
  19632. 8008780: 431a orrs r2, r3
  19633. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19634. 8008782: 687b ldr r3, [r7, #4]
  19635. 8008784: 695b ldr r3, [r3, #20]
  19636. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19637. 8008786: 431a orrs r2, r3
  19638. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19639. 8008788: 687b ldr r3, [r7, #4]
  19640. 800878a: 699b ldr r3, [r3, #24]
  19641. 800878c: 431a orrs r2, r3
  19642. hdma->Init.Mode | hdma->Init.Priority;
  19643. 800878e: 687b ldr r3, [r7, #4]
  19644. 8008790: 69db ldr r3, [r3, #28]
  19645. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19646. 8008792: 431a orrs r2, r3
  19647. hdma->Init.Mode | hdma->Init.Priority;
  19648. 8008794: 687b ldr r3, [r7, #4]
  19649. 8008796: 6a1b ldr r3, [r3, #32]
  19650. 8008798: 4313 orrs r3, r2
  19651. registerValue |= hdma->Init.Direction |
  19652. 800879a: 697a ldr r2, [r7, #20]
  19653. 800879c: 4313 orrs r3, r2
  19654. 800879e: 617b str r3, [r7, #20]
  19655. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  19656. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19657. 80087a0: 687b ldr r3, [r7, #4]
  19658. 80087a2: 6a5b ldr r3, [r3, #36] @ 0x24
  19659. 80087a4: 2b04 cmp r3, #4
  19660. 80087a6: d107 bne.n 80087b8 <HAL_DMA_Init+0x25c>
  19661. {
  19662. /* Get memory burst and peripheral burst */
  19663. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  19664. 80087a8: 687b ldr r3, [r7, #4]
  19665. 80087aa: 6ada ldr r2, [r3, #44] @ 0x2c
  19666. 80087ac: 687b ldr r3, [r7, #4]
  19667. 80087ae: 6b1b ldr r3, [r3, #48] @ 0x30
  19668. 80087b0: 4313 orrs r3, r2
  19669. 80087b2: 697a ldr r2, [r7, #20]
  19670. 80087b4: 4313 orrs r3, r2
  19671. 80087b6: 617b str r3, [r7, #20]
  19672. }
  19673. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  19674. lock when transferring data to/from USART/UART */
  19675. #if (STM32H7_DEV_ID == 0x450UL)
  19676. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  19677. 80087b8: 4b71 ldr r3, [pc, #452] @ (8008980 <HAL_DMA_Init+0x424>)
  19678. 80087ba: 681a ldr r2, [r3, #0]
  19679. 80087bc: 4b71 ldr r3, [pc, #452] @ (8008984 <HAL_DMA_Init+0x428>)
  19680. 80087be: 4013 ands r3, r2
  19681. 80087c0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  19682. 80087c4: d328 bcc.n 8008818 <HAL_DMA_Init+0x2bc>
  19683. {
  19684. #endif /* STM32H7_DEV_ID == 0x450UL */
  19685. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  19686. 80087c6: 687b ldr r3, [r7, #4]
  19687. 80087c8: 685b ldr r3, [r3, #4]
  19688. 80087ca: 2b28 cmp r3, #40 @ 0x28
  19689. 80087cc: d903 bls.n 80087d6 <HAL_DMA_Init+0x27a>
  19690. 80087ce: 687b ldr r3, [r7, #4]
  19691. 80087d0: 685b ldr r3, [r3, #4]
  19692. 80087d2: 2b2e cmp r3, #46 @ 0x2e
  19693. 80087d4: d917 bls.n 8008806 <HAL_DMA_Init+0x2aa>
  19694. 80087d6: 687b ldr r3, [r7, #4]
  19695. 80087d8: 685b ldr r3, [r3, #4]
  19696. 80087da: 2b3e cmp r3, #62 @ 0x3e
  19697. 80087dc: d903 bls.n 80087e6 <HAL_DMA_Init+0x28a>
  19698. 80087de: 687b ldr r3, [r7, #4]
  19699. 80087e0: 685b ldr r3, [r3, #4]
  19700. 80087e2: 2b42 cmp r3, #66 @ 0x42
  19701. 80087e4: d90f bls.n 8008806 <HAL_DMA_Init+0x2aa>
  19702. 80087e6: 687b ldr r3, [r7, #4]
  19703. 80087e8: 685b ldr r3, [r3, #4]
  19704. 80087ea: 2b46 cmp r3, #70 @ 0x46
  19705. 80087ec: d903 bls.n 80087f6 <HAL_DMA_Init+0x29a>
  19706. 80087ee: 687b ldr r3, [r7, #4]
  19707. 80087f0: 685b ldr r3, [r3, #4]
  19708. 80087f2: 2b48 cmp r3, #72 @ 0x48
  19709. 80087f4: d907 bls.n 8008806 <HAL_DMA_Init+0x2aa>
  19710. 80087f6: 687b ldr r3, [r7, #4]
  19711. 80087f8: 685b ldr r3, [r3, #4]
  19712. 80087fa: 2b4e cmp r3, #78 @ 0x4e
  19713. 80087fc: d905 bls.n 800880a <HAL_DMA_Init+0x2ae>
  19714. 80087fe: 687b ldr r3, [r7, #4]
  19715. 8008800: 685b ldr r3, [r3, #4]
  19716. 8008802: 2b52 cmp r3, #82 @ 0x52
  19717. 8008804: d801 bhi.n 800880a <HAL_DMA_Init+0x2ae>
  19718. 8008806: 2301 movs r3, #1
  19719. 8008808: e000 b.n 800880c <HAL_DMA_Init+0x2b0>
  19720. 800880a: 2300 movs r3, #0
  19721. 800880c: 2b00 cmp r3, #0
  19722. 800880e: d003 beq.n 8008818 <HAL_DMA_Init+0x2bc>
  19723. {
  19724. registerValue |= DMA_SxCR_TRBUFF;
  19725. 8008810: 697b ldr r3, [r7, #20]
  19726. 8008812: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  19727. 8008816: 617b str r3, [r7, #20]
  19728. #if (STM32H7_DEV_ID == 0x450UL)
  19729. }
  19730. #endif /* STM32H7_DEV_ID == 0x450UL */
  19731. /* Write to DMA Stream CR register */
  19732. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  19733. 8008818: 687b ldr r3, [r7, #4]
  19734. 800881a: 681b ldr r3, [r3, #0]
  19735. 800881c: 697a ldr r2, [r7, #20]
  19736. 800881e: 601a str r2, [r3, #0]
  19737. /* Get the FCR register value */
  19738. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  19739. 8008820: 687b ldr r3, [r7, #4]
  19740. 8008822: 681b ldr r3, [r3, #0]
  19741. 8008824: 695b ldr r3, [r3, #20]
  19742. 8008826: 617b str r3, [r7, #20]
  19743. /* Clear Direct mode and FIFO threshold bits */
  19744. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  19745. 8008828: 697b ldr r3, [r7, #20]
  19746. 800882a: f023 0307 bic.w r3, r3, #7
  19747. 800882e: 617b str r3, [r7, #20]
  19748. /* Prepare the DMA Stream FIFO configuration */
  19749. registerValue |= hdma->Init.FIFOMode;
  19750. 8008830: 687b ldr r3, [r7, #4]
  19751. 8008832: 6a5b ldr r3, [r3, #36] @ 0x24
  19752. 8008834: 697a ldr r2, [r7, #20]
  19753. 8008836: 4313 orrs r3, r2
  19754. 8008838: 617b str r3, [r7, #20]
  19755. /* the FIFO threshold is not used when the FIFO mode is disabled */
  19756. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19757. 800883a: 687b ldr r3, [r7, #4]
  19758. 800883c: 6a5b ldr r3, [r3, #36] @ 0x24
  19759. 800883e: 2b04 cmp r3, #4
  19760. 8008840: d117 bne.n 8008872 <HAL_DMA_Init+0x316>
  19761. {
  19762. /* Get the FIFO threshold */
  19763. registerValue |= hdma->Init.FIFOThreshold;
  19764. 8008842: 687b ldr r3, [r7, #4]
  19765. 8008844: 6a9b ldr r3, [r3, #40] @ 0x28
  19766. 8008846: 697a ldr r2, [r7, #20]
  19767. 8008848: 4313 orrs r3, r2
  19768. 800884a: 617b str r3, [r7, #20]
  19769. /* Check compatibility between FIFO threshold level and size of the memory burst */
  19770. /* for INCR4, INCR8, INCR16 */
  19771. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  19772. 800884c: 687b ldr r3, [r7, #4]
  19773. 800884e: 6adb ldr r3, [r3, #44] @ 0x2c
  19774. 8008850: 2b00 cmp r3, #0
  19775. 8008852: d00e beq.n 8008872 <HAL_DMA_Init+0x316>
  19776. {
  19777. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  19778. 8008854: 6878 ldr r0, [r7, #4]
  19779. 8008856: f002 fb33 bl 800aec0 <DMA_CheckFifoParam>
  19780. 800885a: 4603 mov r3, r0
  19781. 800885c: 2b00 cmp r3, #0
  19782. 800885e: d008 beq.n 8008872 <HAL_DMA_Init+0x316>
  19783. {
  19784. /* Update error code */
  19785. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19786. 8008860: 687b ldr r3, [r7, #4]
  19787. 8008862: 2240 movs r2, #64 @ 0x40
  19788. 8008864: 655a str r2, [r3, #84] @ 0x54
  19789. /* Change the DMA state */
  19790. hdma->State = HAL_DMA_STATE_READY;
  19791. 8008866: 687b ldr r3, [r7, #4]
  19792. 8008868: 2201 movs r2, #1
  19793. 800886a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19794. return HAL_ERROR;
  19795. 800886e: 2301 movs r3, #1
  19796. 8008870: e197 b.n 8008ba2 <HAL_DMA_Init+0x646>
  19797. }
  19798. }
  19799. }
  19800. /* Write to DMA Stream FCR */
  19801. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  19802. 8008872: 687b ldr r3, [r7, #4]
  19803. 8008874: 681b ldr r3, [r3, #0]
  19804. 8008876: 697a ldr r2, [r7, #20]
  19805. 8008878: 615a str r2, [r3, #20]
  19806. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19807. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19808. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19809. 800887a: 6878 ldr r0, [r7, #4]
  19810. 800887c: f002 fa6e bl 800ad5c <DMA_CalcBaseAndBitshift>
  19811. 8008880: 4603 mov r3, r0
  19812. 8008882: 60bb str r3, [r7, #8]
  19813. /* Clear all interrupt flags */
  19814. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  19815. 8008884: 687b ldr r3, [r7, #4]
  19816. 8008886: 6ddb ldr r3, [r3, #92] @ 0x5c
  19817. 8008888: f003 031f and.w r3, r3, #31
  19818. 800888c: 223f movs r2, #63 @ 0x3f
  19819. 800888e: 409a lsls r2, r3
  19820. 8008890: 68bb ldr r3, [r7, #8]
  19821. 8008892: 609a str r2, [r3, #8]
  19822. 8008894: e0cd b.n 8008a32 <HAL_DMA_Init+0x4d6>
  19823. }
  19824. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  19825. 8008896: 687b ldr r3, [r7, #4]
  19826. 8008898: 681b ldr r3, [r3, #0]
  19827. 800889a: 4a3b ldr r2, [pc, #236] @ (8008988 <HAL_DMA_Init+0x42c>)
  19828. 800889c: 4293 cmp r3, r2
  19829. 800889e: d022 beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19830. 80088a0: 687b ldr r3, [r7, #4]
  19831. 80088a2: 681b ldr r3, [r3, #0]
  19832. 80088a4: 4a39 ldr r2, [pc, #228] @ (800898c <HAL_DMA_Init+0x430>)
  19833. 80088a6: 4293 cmp r3, r2
  19834. 80088a8: d01d beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19835. 80088aa: 687b ldr r3, [r7, #4]
  19836. 80088ac: 681b ldr r3, [r3, #0]
  19837. 80088ae: 4a38 ldr r2, [pc, #224] @ (8008990 <HAL_DMA_Init+0x434>)
  19838. 80088b0: 4293 cmp r3, r2
  19839. 80088b2: d018 beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19840. 80088b4: 687b ldr r3, [r7, #4]
  19841. 80088b6: 681b ldr r3, [r3, #0]
  19842. 80088b8: 4a36 ldr r2, [pc, #216] @ (8008994 <HAL_DMA_Init+0x438>)
  19843. 80088ba: 4293 cmp r3, r2
  19844. 80088bc: d013 beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19845. 80088be: 687b ldr r3, [r7, #4]
  19846. 80088c0: 681b ldr r3, [r3, #0]
  19847. 80088c2: 4a35 ldr r2, [pc, #212] @ (8008998 <HAL_DMA_Init+0x43c>)
  19848. 80088c4: 4293 cmp r3, r2
  19849. 80088c6: d00e beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19850. 80088c8: 687b ldr r3, [r7, #4]
  19851. 80088ca: 681b ldr r3, [r3, #0]
  19852. 80088cc: 4a33 ldr r2, [pc, #204] @ (800899c <HAL_DMA_Init+0x440>)
  19853. 80088ce: 4293 cmp r3, r2
  19854. 80088d0: d009 beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19855. 80088d2: 687b ldr r3, [r7, #4]
  19856. 80088d4: 681b ldr r3, [r3, #0]
  19857. 80088d6: 4a32 ldr r2, [pc, #200] @ (80089a0 <HAL_DMA_Init+0x444>)
  19858. 80088d8: 4293 cmp r3, r2
  19859. 80088da: d004 beq.n 80088e6 <HAL_DMA_Init+0x38a>
  19860. 80088dc: 687b ldr r3, [r7, #4]
  19861. 80088de: 681b ldr r3, [r3, #0]
  19862. 80088e0: 4a30 ldr r2, [pc, #192] @ (80089a4 <HAL_DMA_Init+0x448>)
  19863. 80088e2: 4293 cmp r3, r2
  19864. 80088e4: d101 bne.n 80088ea <HAL_DMA_Init+0x38e>
  19865. 80088e6: 2301 movs r3, #1
  19866. 80088e8: e000 b.n 80088ec <HAL_DMA_Init+0x390>
  19867. 80088ea: 2300 movs r3, #0
  19868. 80088ec: 2b00 cmp r3, #0
  19869. 80088ee: f000 8097 beq.w 8008a20 <HAL_DMA_Init+0x4c4>
  19870. {
  19871. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  19872. 80088f2: 687b ldr r3, [r7, #4]
  19873. 80088f4: 681b ldr r3, [r3, #0]
  19874. 80088f6: 4a24 ldr r2, [pc, #144] @ (8008988 <HAL_DMA_Init+0x42c>)
  19875. 80088f8: 4293 cmp r3, r2
  19876. 80088fa: d021 beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19877. 80088fc: 687b ldr r3, [r7, #4]
  19878. 80088fe: 681b ldr r3, [r3, #0]
  19879. 8008900: 4a22 ldr r2, [pc, #136] @ (800898c <HAL_DMA_Init+0x430>)
  19880. 8008902: 4293 cmp r3, r2
  19881. 8008904: d01c beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19882. 8008906: 687b ldr r3, [r7, #4]
  19883. 8008908: 681b ldr r3, [r3, #0]
  19884. 800890a: 4a21 ldr r2, [pc, #132] @ (8008990 <HAL_DMA_Init+0x434>)
  19885. 800890c: 4293 cmp r3, r2
  19886. 800890e: d017 beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19887. 8008910: 687b ldr r3, [r7, #4]
  19888. 8008912: 681b ldr r3, [r3, #0]
  19889. 8008914: 4a1f ldr r2, [pc, #124] @ (8008994 <HAL_DMA_Init+0x438>)
  19890. 8008916: 4293 cmp r3, r2
  19891. 8008918: d012 beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19892. 800891a: 687b ldr r3, [r7, #4]
  19893. 800891c: 681b ldr r3, [r3, #0]
  19894. 800891e: 4a1e ldr r2, [pc, #120] @ (8008998 <HAL_DMA_Init+0x43c>)
  19895. 8008920: 4293 cmp r3, r2
  19896. 8008922: d00d beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19897. 8008924: 687b ldr r3, [r7, #4]
  19898. 8008926: 681b ldr r3, [r3, #0]
  19899. 8008928: 4a1c ldr r2, [pc, #112] @ (800899c <HAL_DMA_Init+0x440>)
  19900. 800892a: 4293 cmp r3, r2
  19901. 800892c: d008 beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19902. 800892e: 687b ldr r3, [r7, #4]
  19903. 8008930: 681b ldr r3, [r3, #0]
  19904. 8008932: 4a1b ldr r2, [pc, #108] @ (80089a0 <HAL_DMA_Init+0x444>)
  19905. 8008934: 4293 cmp r3, r2
  19906. 8008936: d003 beq.n 8008940 <HAL_DMA_Init+0x3e4>
  19907. 8008938: 687b ldr r3, [r7, #4]
  19908. 800893a: 681b ldr r3, [r3, #0]
  19909. 800893c: 4a19 ldr r2, [pc, #100] @ (80089a4 <HAL_DMA_Init+0x448>)
  19910. 800893e: 4293 cmp r3, r2
  19911. /* Check the request parameter */
  19912. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  19913. }
  19914. /* Change DMA peripheral state */
  19915. hdma->State = HAL_DMA_STATE_BUSY;
  19916. 8008940: 687b ldr r3, [r7, #4]
  19917. 8008942: 2202 movs r2, #2
  19918. 8008944: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19919. /* Allocate lock resource */
  19920. __HAL_UNLOCK(hdma);
  19921. 8008948: 687b ldr r3, [r7, #4]
  19922. 800894a: 2200 movs r2, #0
  19923. 800894c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19924. /* Get the CR register value */
  19925. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  19926. 8008950: 687b ldr r3, [r7, #4]
  19927. 8008952: 681b ldr r3, [r3, #0]
  19928. 8008954: 681b ldr r3, [r3, #0]
  19929. 8008956: 617b str r3, [r7, #20]
  19930. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  19931. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  19932. 8008958: 697a ldr r2, [r7, #20]
  19933. 800895a: 4b13 ldr r3, [pc, #76] @ (80089a8 <HAL_DMA_Init+0x44c>)
  19934. 800895c: 4013 ands r3, r2
  19935. 800895e: 617b str r3, [r7, #20]
  19936. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  19937. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  19938. BDMA_CCR_CT));
  19939. /* Prepare the DMA Channel configuration */
  19940. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19941. 8008960: 687b ldr r3, [r7, #4]
  19942. 8008962: 689b ldr r3, [r3, #8]
  19943. 8008964: 2b40 cmp r3, #64 @ 0x40
  19944. 8008966: d021 beq.n 80089ac <HAL_DMA_Init+0x450>
  19945. 8008968: 687b ldr r3, [r7, #4]
  19946. 800896a: 689b ldr r3, [r3, #8]
  19947. 800896c: 2b80 cmp r3, #128 @ 0x80
  19948. 800896e: d102 bne.n 8008976 <HAL_DMA_Init+0x41a>
  19949. 8008970: f44f 4380 mov.w r3, #16384 @ 0x4000
  19950. 8008974: e01b b.n 80089ae <HAL_DMA_Init+0x452>
  19951. 8008976: 2300 movs r3, #0
  19952. 8008978: e019 b.n 80089ae <HAL_DMA_Init+0x452>
  19953. 800897a: bf00 nop
  19954. 800897c: fe10803f .word 0xfe10803f
  19955. 8008980: 5c001000 .word 0x5c001000
  19956. 8008984: ffff0000 .word 0xffff0000
  19957. 8008988: 58025408 .word 0x58025408
  19958. 800898c: 5802541c .word 0x5802541c
  19959. 8008990: 58025430 .word 0x58025430
  19960. 8008994: 58025444 .word 0x58025444
  19961. 8008998: 58025458 .word 0x58025458
  19962. 800899c: 5802546c .word 0x5802546c
  19963. 80089a0: 58025480 .word 0x58025480
  19964. 80089a4: 58025494 .word 0x58025494
  19965. 80089a8: fffe000f .word 0xfffe000f
  19966. 80089ac: 2310 movs r3, #16
  19967. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19968. 80089ae: 687a ldr r2, [r7, #4]
  19969. 80089b0: 68d2 ldr r2, [r2, #12]
  19970. 80089b2: 08d2 lsrs r2, r2, #3
  19971. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19972. 80089b4: 431a orrs r2, r3
  19973. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19974. 80089b6: 687b ldr r3, [r7, #4]
  19975. 80089b8: 691b ldr r3, [r3, #16]
  19976. 80089ba: 08db lsrs r3, r3, #3
  19977. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19978. 80089bc: 431a orrs r2, r3
  19979. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19980. 80089be: 687b ldr r3, [r7, #4]
  19981. 80089c0: 695b ldr r3, [r3, #20]
  19982. 80089c2: 08db lsrs r3, r3, #3
  19983. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19984. 80089c4: 431a orrs r2, r3
  19985. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19986. 80089c6: 687b ldr r3, [r7, #4]
  19987. 80089c8: 699b ldr r3, [r3, #24]
  19988. 80089ca: 08db lsrs r3, r3, #3
  19989. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19990. 80089cc: 431a orrs r2, r3
  19991. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19992. 80089ce: 687b ldr r3, [r7, #4]
  19993. 80089d0: 69db ldr r3, [r3, #28]
  19994. 80089d2: 08db lsrs r3, r3, #3
  19995. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19996. 80089d4: 431a orrs r2, r3
  19997. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  19998. 80089d6: 687b ldr r3, [r7, #4]
  19999. 80089d8: 6a1b ldr r3, [r3, #32]
  20000. 80089da: 091b lsrs r3, r3, #4
  20001. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  20002. 80089dc: 4313 orrs r3, r2
  20003. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  20004. 80089de: 697a ldr r2, [r7, #20]
  20005. 80089e0: 4313 orrs r3, r2
  20006. 80089e2: 617b str r3, [r7, #20]
  20007. /* Write to DMA Channel CR register */
  20008. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  20009. 80089e4: 687b ldr r3, [r7, #4]
  20010. 80089e6: 681b ldr r3, [r3, #0]
  20011. 80089e8: 697a ldr r2, [r7, #20]
  20012. 80089ea: 601a str r2, [r3, #0]
  20013. /* calculation of the channel index */
  20014. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  20015. 80089ec: 687b ldr r3, [r7, #4]
  20016. 80089ee: 681b ldr r3, [r3, #0]
  20017. 80089f0: 461a mov r2, r3
  20018. 80089f2: 4b6e ldr r3, [pc, #440] @ (8008bac <HAL_DMA_Init+0x650>)
  20019. 80089f4: 4413 add r3, r2
  20020. 80089f6: 4a6e ldr r2, [pc, #440] @ (8008bb0 <HAL_DMA_Init+0x654>)
  20021. 80089f8: fba2 2303 umull r2, r3, r2, r3
  20022. 80089fc: 091b lsrs r3, r3, #4
  20023. 80089fe: 009a lsls r2, r3, #2
  20024. 8008a00: 687b ldr r3, [r7, #4]
  20025. 8008a02: 65da str r2, [r3, #92] @ 0x5c
  20026. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  20027. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  20028. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  20029. 8008a04: 6878 ldr r0, [r7, #4]
  20030. 8008a06: f002 f9a9 bl 800ad5c <DMA_CalcBaseAndBitshift>
  20031. 8008a0a: 4603 mov r3, r0
  20032. 8008a0c: 60fb str r3, [r7, #12]
  20033. /* Clear all interrupt flags */
  20034. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  20035. 8008a0e: 687b ldr r3, [r7, #4]
  20036. 8008a10: 6ddb ldr r3, [r3, #92] @ 0x5c
  20037. 8008a12: f003 031f and.w r3, r3, #31
  20038. 8008a16: 2201 movs r2, #1
  20039. 8008a18: 409a lsls r2, r3
  20040. 8008a1a: 68fb ldr r3, [r7, #12]
  20041. 8008a1c: 605a str r2, [r3, #4]
  20042. 8008a1e: e008 b.n 8008a32 <HAL_DMA_Init+0x4d6>
  20043. }
  20044. else
  20045. {
  20046. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  20047. 8008a20: 687b ldr r3, [r7, #4]
  20048. 8008a22: 2240 movs r2, #64 @ 0x40
  20049. 8008a24: 655a str r2, [r3, #84] @ 0x54
  20050. hdma->State = HAL_DMA_STATE_ERROR;
  20051. 8008a26: 687b ldr r3, [r7, #4]
  20052. 8008a28: 2203 movs r2, #3
  20053. 8008a2a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20054. return HAL_ERROR;
  20055. 8008a2e: 2301 movs r3, #1
  20056. 8008a30: e0b7 b.n 8008ba2 <HAL_DMA_Init+0x646>
  20057. }
  20058. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20059. 8008a32: 687b ldr r3, [r7, #4]
  20060. 8008a34: 681b ldr r3, [r3, #0]
  20061. 8008a36: 4a5f ldr r2, [pc, #380] @ (8008bb4 <HAL_DMA_Init+0x658>)
  20062. 8008a38: 4293 cmp r3, r2
  20063. 8008a3a: d072 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20064. 8008a3c: 687b ldr r3, [r7, #4]
  20065. 8008a3e: 681b ldr r3, [r3, #0]
  20066. 8008a40: 4a5d ldr r2, [pc, #372] @ (8008bb8 <HAL_DMA_Init+0x65c>)
  20067. 8008a42: 4293 cmp r3, r2
  20068. 8008a44: d06d beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20069. 8008a46: 687b ldr r3, [r7, #4]
  20070. 8008a48: 681b ldr r3, [r3, #0]
  20071. 8008a4a: 4a5c ldr r2, [pc, #368] @ (8008bbc <HAL_DMA_Init+0x660>)
  20072. 8008a4c: 4293 cmp r3, r2
  20073. 8008a4e: d068 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20074. 8008a50: 687b ldr r3, [r7, #4]
  20075. 8008a52: 681b ldr r3, [r3, #0]
  20076. 8008a54: 4a5a ldr r2, [pc, #360] @ (8008bc0 <HAL_DMA_Init+0x664>)
  20077. 8008a56: 4293 cmp r3, r2
  20078. 8008a58: d063 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20079. 8008a5a: 687b ldr r3, [r7, #4]
  20080. 8008a5c: 681b ldr r3, [r3, #0]
  20081. 8008a5e: 4a59 ldr r2, [pc, #356] @ (8008bc4 <HAL_DMA_Init+0x668>)
  20082. 8008a60: 4293 cmp r3, r2
  20083. 8008a62: d05e beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20084. 8008a64: 687b ldr r3, [r7, #4]
  20085. 8008a66: 681b ldr r3, [r3, #0]
  20086. 8008a68: 4a57 ldr r2, [pc, #348] @ (8008bc8 <HAL_DMA_Init+0x66c>)
  20087. 8008a6a: 4293 cmp r3, r2
  20088. 8008a6c: d059 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20089. 8008a6e: 687b ldr r3, [r7, #4]
  20090. 8008a70: 681b ldr r3, [r3, #0]
  20091. 8008a72: 4a56 ldr r2, [pc, #344] @ (8008bcc <HAL_DMA_Init+0x670>)
  20092. 8008a74: 4293 cmp r3, r2
  20093. 8008a76: d054 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20094. 8008a78: 687b ldr r3, [r7, #4]
  20095. 8008a7a: 681b ldr r3, [r3, #0]
  20096. 8008a7c: 4a54 ldr r2, [pc, #336] @ (8008bd0 <HAL_DMA_Init+0x674>)
  20097. 8008a7e: 4293 cmp r3, r2
  20098. 8008a80: d04f beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20099. 8008a82: 687b ldr r3, [r7, #4]
  20100. 8008a84: 681b ldr r3, [r3, #0]
  20101. 8008a86: 4a53 ldr r2, [pc, #332] @ (8008bd4 <HAL_DMA_Init+0x678>)
  20102. 8008a88: 4293 cmp r3, r2
  20103. 8008a8a: d04a beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20104. 8008a8c: 687b ldr r3, [r7, #4]
  20105. 8008a8e: 681b ldr r3, [r3, #0]
  20106. 8008a90: 4a51 ldr r2, [pc, #324] @ (8008bd8 <HAL_DMA_Init+0x67c>)
  20107. 8008a92: 4293 cmp r3, r2
  20108. 8008a94: d045 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20109. 8008a96: 687b ldr r3, [r7, #4]
  20110. 8008a98: 681b ldr r3, [r3, #0]
  20111. 8008a9a: 4a50 ldr r2, [pc, #320] @ (8008bdc <HAL_DMA_Init+0x680>)
  20112. 8008a9c: 4293 cmp r3, r2
  20113. 8008a9e: d040 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20114. 8008aa0: 687b ldr r3, [r7, #4]
  20115. 8008aa2: 681b ldr r3, [r3, #0]
  20116. 8008aa4: 4a4e ldr r2, [pc, #312] @ (8008be0 <HAL_DMA_Init+0x684>)
  20117. 8008aa6: 4293 cmp r3, r2
  20118. 8008aa8: d03b beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20119. 8008aaa: 687b ldr r3, [r7, #4]
  20120. 8008aac: 681b ldr r3, [r3, #0]
  20121. 8008aae: 4a4d ldr r2, [pc, #308] @ (8008be4 <HAL_DMA_Init+0x688>)
  20122. 8008ab0: 4293 cmp r3, r2
  20123. 8008ab2: d036 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20124. 8008ab4: 687b ldr r3, [r7, #4]
  20125. 8008ab6: 681b ldr r3, [r3, #0]
  20126. 8008ab8: 4a4b ldr r2, [pc, #300] @ (8008be8 <HAL_DMA_Init+0x68c>)
  20127. 8008aba: 4293 cmp r3, r2
  20128. 8008abc: d031 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20129. 8008abe: 687b ldr r3, [r7, #4]
  20130. 8008ac0: 681b ldr r3, [r3, #0]
  20131. 8008ac2: 4a4a ldr r2, [pc, #296] @ (8008bec <HAL_DMA_Init+0x690>)
  20132. 8008ac4: 4293 cmp r3, r2
  20133. 8008ac6: d02c beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20134. 8008ac8: 687b ldr r3, [r7, #4]
  20135. 8008aca: 681b ldr r3, [r3, #0]
  20136. 8008acc: 4a48 ldr r2, [pc, #288] @ (8008bf0 <HAL_DMA_Init+0x694>)
  20137. 8008ace: 4293 cmp r3, r2
  20138. 8008ad0: d027 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20139. 8008ad2: 687b ldr r3, [r7, #4]
  20140. 8008ad4: 681b ldr r3, [r3, #0]
  20141. 8008ad6: 4a47 ldr r2, [pc, #284] @ (8008bf4 <HAL_DMA_Init+0x698>)
  20142. 8008ad8: 4293 cmp r3, r2
  20143. 8008ada: d022 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20144. 8008adc: 687b ldr r3, [r7, #4]
  20145. 8008ade: 681b ldr r3, [r3, #0]
  20146. 8008ae0: 4a45 ldr r2, [pc, #276] @ (8008bf8 <HAL_DMA_Init+0x69c>)
  20147. 8008ae2: 4293 cmp r3, r2
  20148. 8008ae4: d01d beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20149. 8008ae6: 687b ldr r3, [r7, #4]
  20150. 8008ae8: 681b ldr r3, [r3, #0]
  20151. 8008aea: 4a44 ldr r2, [pc, #272] @ (8008bfc <HAL_DMA_Init+0x6a0>)
  20152. 8008aec: 4293 cmp r3, r2
  20153. 8008aee: d018 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20154. 8008af0: 687b ldr r3, [r7, #4]
  20155. 8008af2: 681b ldr r3, [r3, #0]
  20156. 8008af4: 4a42 ldr r2, [pc, #264] @ (8008c00 <HAL_DMA_Init+0x6a4>)
  20157. 8008af6: 4293 cmp r3, r2
  20158. 8008af8: d013 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20159. 8008afa: 687b ldr r3, [r7, #4]
  20160. 8008afc: 681b ldr r3, [r3, #0]
  20161. 8008afe: 4a41 ldr r2, [pc, #260] @ (8008c04 <HAL_DMA_Init+0x6a8>)
  20162. 8008b00: 4293 cmp r3, r2
  20163. 8008b02: d00e beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20164. 8008b04: 687b ldr r3, [r7, #4]
  20165. 8008b06: 681b ldr r3, [r3, #0]
  20166. 8008b08: 4a3f ldr r2, [pc, #252] @ (8008c08 <HAL_DMA_Init+0x6ac>)
  20167. 8008b0a: 4293 cmp r3, r2
  20168. 8008b0c: d009 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20169. 8008b0e: 687b ldr r3, [r7, #4]
  20170. 8008b10: 681b ldr r3, [r3, #0]
  20171. 8008b12: 4a3e ldr r2, [pc, #248] @ (8008c0c <HAL_DMA_Init+0x6b0>)
  20172. 8008b14: 4293 cmp r3, r2
  20173. 8008b16: d004 beq.n 8008b22 <HAL_DMA_Init+0x5c6>
  20174. 8008b18: 687b ldr r3, [r7, #4]
  20175. 8008b1a: 681b ldr r3, [r3, #0]
  20176. 8008b1c: 4a3c ldr r2, [pc, #240] @ (8008c10 <HAL_DMA_Init+0x6b4>)
  20177. 8008b1e: 4293 cmp r3, r2
  20178. 8008b20: d101 bne.n 8008b26 <HAL_DMA_Init+0x5ca>
  20179. 8008b22: 2301 movs r3, #1
  20180. 8008b24: e000 b.n 8008b28 <HAL_DMA_Init+0x5cc>
  20181. 8008b26: 2300 movs r3, #0
  20182. 8008b28: 2b00 cmp r3, #0
  20183. 8008b2a: d032 beq.n 8008b92 <HAL_DMA_Init+0x636>
  20184. {
  20185. /* Initialize parameters for DMAMUX channel :
  20186. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  20187. */
  20188. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  20189. 8008b2c: 6878 ldr r0, [r7, #4]
  20190. 8008b2e: f002 fa43 bl 800afb8 <DMA_CalcDMAMUXChannelBaseAndMask>
  20191. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  20192. 8008b32: 687b ldr r3, [r7, #4]
  20193. 8008b34: 689b ldr r3, [r3, #8]
  20194. 8008b36: 2b80 cmp r3, #128 @ 0x80
  20195. 8008b38: d102 bne.n 8008b40 <HAL_DMA_Init+0x5e4>
  20196. {
  20197. /* if memory to memory force the request to 0*/
  20198. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  20199. 8008b3a: 687b ldr r3, [r7, #4]
  20200. 8008b3c: 2200 movs r2, #0
  20201. 8008b3e: 605a str r2, [r3, #4]
  20202. }
  20203. /* Set peripheral request to DMAMUX channel */
  20204. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  20205. 8008b40: 687b ldr r3, [r7, #4]
  20206. 8008b42: 685a ldr r2, [r3, #4]
  20207. 8008b44: 687b ldr r3, [r7, #4]
  20208. 8008b46: 6e1b ldr r3, [r3, #96] @ 0x60
  20209. 8008b48: b2d2 uxtb r2, r2
  20210. 8008b4a: 601a str r2, [r3, #0]
  20211. /* Clear the DMAMUX synchro overrun flag */
  20212. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  20213. 8008b4c: 687b ldr r3, [r7, #4]
  20214. 8008b4e: 6e5b ldr r3, [r3, #100] @ 0x64
  20215. 8008b50: 687a ldr r2, [r7, #4]
  20216. 8008b52: 6e92 ldr r2, [r2, #104] @ 0x68
  20217. 8008b54: 605a str r2, [r3, #4]
  20218. /* Initialize parameters for DMAMUX request generator :
  20219. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  20220. */
  20221. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  20222. 8008b56: 687b ldr r3, [r7, #4]
  20223. 8008b58: 685b ldr r3, [r3, #4]
  20224. 8008b5a: 2b00 cmp r3, #0
  20225. 8008b5c: d010 beq.n 8008b80 <HAL_DMA_Init+0x624>
  20226. 8008b5e: 687b ldr r3, [r7, #4]
  20227. 8008b60: 685b ldr r3, [r3, #4]
  20228. 8008b62: 2b08 cmp r3, #8
  20229. 8008b64: d80c bhi.n 8008b80 <HAL_DMA_Init+0x624>
  20230. {
  20231. /* Initialize parameters for DMAMUX request generator :
  20232. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  20233. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  20234. 8008b66: 6878 ldr r0, [r7, #4]
  20235. 8008b68: f002 fac0 bl 800b0ec <DMA_CalcDMAMUXRequestGenBaseAndMask>
  20236. /* Reset the DMAMUX request generator register */
  20237. hdma->DMAmuxRequestGen->RGCR = 0U;
  20238. 8008b6c: 687b ldr r3, [r7, #4]
  20239. 8008b6e: 6edb ldr r3, [r3, #108] @ 0x6c
  20240. 8008b70: 2200 movs r2, #0
  20241. 8008b72: 601a str r2, [r3, #0]
  20242. /* Clear the DMAMUX request generator overrun flag */
  20243. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  20244. 8008b74: 687b ldr r3, [r7, #4]
  20245. 8008b76: 6f1b ldr r3, [r3, #112] @ 0x70
  20246. 8008b78: 687a ldr r2, [r7, #4]
  20247. 8008b7a: 6f52 ldr r2, [r2, #116] @ 0x74
  20248. 8008b7c: 605a str r2, [r3, #4]
  20249. 8008b7e: e008 b.n 8008b92 <HAL_DMA_Init+0x636>
  20250. }
  20251. else
  20252. {
  20253. hdma->DMAmuxRequestGen = 0U;
  20254. 8008b80: 687b ldr r3, [r7, #4]
  20255. 8008b82: 2200 movs r2, #0
  20256. 8008b84: 66da str r2, [r3, #108] @ 0x6c
  20257. hdma->DMAmuxRequestGenStatus = 0U;
  20258. 8008b86: 687b ldr r3, [r7, #4]
  20259. 8008b88: 2200 movs r2, #0
  20260. 8008b8a: 671a str r2, [r3, #112] @ 0x70
  20261. hdma->DMAmuxRequestGenStatusMask = 0U;
  20262. 8008b8c: 687b ldr r3, [r7, #4]
  20263. 8008b8e: 2200 movs r2, #0
  20264. 8008b90: 675a str r2, [r3, #116] @ 0x74
  20265. }
  20266. }
  20267. /* Initialize the error code */
  20268. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20269. 8008b92: 687b ldr r3, [r7, #4]
  20270. 8008b94: 2200 movs r2, #0
  20271. 8008b96: 655a str r2, [r3, #84] @ 0x54
  20272. /* Initialize the DMA state */
  20273. hdma->State = HAL_DMA_STATE_READY;
  20274. 8008b98: 687b ldr r3, [r7, #4]
  20275. 8008b9a: 2201 movs r2, #1
  20276. 8008b9c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20277. return HAL_OK;
  20278. 8008ba0: 2300 movs r3, #0
  20279. }
  20280. 8008ba2: 4618 mov r0, r3
  20281. 8008ba4: 3718 adds r7, #24
  20282. 8008ba6: 46bd mov sp, r7
  20283. 8008ba8: bd80 pop {r7, pc}
  20284. 8008baa: bf00 nop
  20285. 8008bac: a7fdabf8 .word 0xa7fdabf8
  20286. 8008bb0: cccccccd .word 0xcccccccd
  20287. 8008bb4: 40020010 .word 0x40020010
  20288. 8008bb8: 40020028 .word 0x40020028
  20289. 8008bbc: 40020040 .word 0x40020040
  20290. 8008bc0: 40020058 .word 0x40020058
  20291. 8008bc4: 40020070 .word 0x40020070
  20292. 8008bc8: 40020088 .word 0x40020088
  20293. 8008bcc: 400200a0 .word 0x400200a0
  20294. 8008bd0: 400200b8 .word 0x400200b8
  20295. 8008bd4: 40020410 .word 0x40020410
  20296. 8008bd8: 40020428 .word 0x40020428
  20297. 8008bdc: 40020440 .word 0x40020440
  20298. 8008be0: 40020458 .word 0x40020458
  20299. 8008be4: 40020470 .word 0x40020470
  20300. 8008be8: 40020488 .word 0x40020488
  20301. 8008bec: 400204a0 .word 0x400204a0
  20302. 8008bf0: 400204b8 .word 0x400204b8
  20303. 8008bf4: 58025408 .word 0x58025408
  20304. 8008bf8: 5802541c .word 0x5802541c
  20305. 8008bfc: 58025430 .word 0x58025430
  20306. 8008c00: 58025444 .word 0x58025444
  20307. 8008c04: 58025458 .word 0x58025458
  20308. 8008c08: 5802546c .word 0x5802546c
  20309. 8008c0c: 58025480 .word 0x58025480
  20310. 8008c10: 58025494 .word 0x58025494
  20311. 08008c14 <HAL_DMA_Start_IT>:
  20312. * @param DstAddress: The destination memory Buffer address
  20313. * @param DataLength: The length of data to be transferred from source to destination
  20314. * @retval HAL status
  20315. */
  20316. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  20317. {
  20318. 8008c14: b580 push {r7, lr}
  20319. 8008c16: b086 sub sp, #24
  20320. 8008c18: af00 add r7, sp, #0
  20321. 8008c1a: 60f8 str r0, [r7, #12]
  20322. 8008c1c: 60b9 str r1, [r7, #8]
  20323. 8008c1e: 607a str r2, [r7, #4]
  20324. 8008c20: 603b str r3, [r7, #0]
  20325. HAL_StatusTypeDef status = HAL_OK;
  20326. 8008c22: 2300 movs r3, #0
  20327. 8008c24: 75fb strb r3, [r7, #23]
  20328. /* Check the parameters */
  20329. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  20330. /* Check the DMA peripheral handle */
  20331. if(hdma == NULL)
  20332. 8008c26: 68fb ldr r3, [r7, #12]
  20333. 8008c28: 2b00 cmp r3, #0
  20334. 8008c2a: d101 bne.n 8008c30 <HAL_DMA_Start_IT+0x1c>
  20335. {
  20336. return HAL_ERROR;
  20337. 8008c2c: 2301 movs r3, #1
  20338. 8008c2e: e226 b.n 800907e <HAL_DMA_Start_IT+0x46a>
  20339. }
  20340. /* Process locked */
  20341. __HAL_LOCK(hdma);
  20342. 8008c30: 68fb ldr r3, [r7, #12]
  20343. 8008c32: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  20344. 8008c36: 2b01 cmp r3, #1
  20345. 8008c38: d101 bne.n 8008c3e <HAL_DMA_Start_IT+0x2a>
  20346. 8008c3a: 2302 movs r3, #2
  20347. 8008c3c: e21f b.n 800907e <HAL_DMA_Start_IT+0x46a>
  20348. 8008c3e: 68fb ldr r3, [r7, #12]
  20349. 8008c40: 2201 movs r2, #1
  20350. 8008c42: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20351. if(HAL_DMA_STATE_READY == hdma->State)
  20352. 8008c46: 68fb ldr r3, [r7, #12]
  20353. 8008c48: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20354. 8008c4c: b2db uxtb r3, r3
  20355. 8008c4e: 2b01 cmp r3, #1
  20356. 8008c50: f040 820a bne.w 8009068 <HAL_DMA_Start_IT+0x454>
  20357. {
  20358. /* Change DMA peripheral state */
  20359. hdma->State = HAL_DMA_STATE_BUSY;
  20360. 8008c54: 68fb ldr r3, [r7, #12]
  20361. 8008c56: 2202 movs r2, #2
  20362. 8008c58: f883 2035 strb.w r2, [r3, #53] @ 0x35
  20363. /* Initialize the error code */
  20364. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  20365. 8008c5c: 68fb ldr r3, [r7, #12]
  20366. 8008c5e: 2200 movs r2, #0
  20367. 8008c60: 655a str r2, [r3, #84] @ 0x54
  20368. /* Disable the peripheral */
  20369. __HAL_DMA_DISABLE(hdma);
  20370. 8008c62: 68fb ldr r3, [r7, #12]
  20371. 8008c64: 681b ldr r3, [r3, #0]
  20372. 8008c66: 4a68 ldr r2, [pc, #416] @ (8008e08 <HAL_DMA_Start_IT+0x1f4>)
  20373. 8008c68: 4293 cmp r3, r2
  20374. 8008c6a: d04a beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20375. 8008c6c: 68fb ldr r3, [r7, #12]
  20376. 8008c6e: 681b ldr r3, [r3, #0]
  20377. 8008c70: 4a66 ldr r2, [pc, #408] @ (8008e0c <HAL_DMA_Start_IT+0x1f8>)
  20378. 8008c72: 4293 cmp r3, r2
  20379. 8008c74: d045 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20380. 8008c76: 68fb ldr r3, [r7, #12]
  20381. 8008c78: 681b ldr r3, [r3, #0]
  20382. 8008c7a: 4a65 ldr r2, [pc, #404] @ (8008e10 <HAL_DMA_Start_IT+0x1fc>)
  20383. 8008c7c: 4293 cmp r3, r2
  20384. 8008c7e: d040 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20385. 8008c80: 68fb ldr r3, [r7, #12]
  20386. 8008c82: 681b ldr r3, [r3, #0]
  20387. 8008c84: 4a63 ldr r2, [pc, #396] @ (8008e14 <HAL_DMA_Start_IT+0x200>)
  20388. 8008c86: 4293 cmp r3, r2
  20389. 8008c88: d03b beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20390. 8008c8a: 68fb ldr r3, [r7, #12]
  20391. 8008c8c: 681b ldr r3, [r3, #0]
  20392. 8008c8e: 4a62 ldr r2, [pc, #392] @ (8008e18 <HAL_DMA_Start_IT+0x204>)
  20393. 8008c90: 4293 cmp r3, r2
  20394. 8008c92: d036 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20395. 8008c94: 68fb ldr r3, [r7, #12]
  20396. 8008c96: 681b ldr r3, [r3, #0]
  20397. 8008c98: 4a60 ldr r2, [pc, #384] @ (8008e1c <HAL_DMA_Start_IT+0x208>)
  20398. 8008c9a: 4293 cmp r3, r2
  20399. 8008c9c: d031 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20400. 8008c9e: 68fb ldr r3, [r7, #12]
  20401. 8008ca0: 681b ldr r3, [r3, #0]
  20402. 8008ca2: 4a5f ldr r2, [pc, #380] @ (8008e20 <HAL_DMA_Start_IT+0x20c>)
  20403. 8008ca4: 4293 cmp r3, r2
  20404. 8008ca6: d02c beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20405. 8008ca8: 68fb ldr r3, [r7, #12]
  20406. 8008caa: 681b ldr r3, [r3, #0]
  20407. 8008cac: 4a5d ldr r2, [pc, #372] @ (8008e24 <HAL_DMA_Start_IT+0x210>)
  20408. 8008cae: 4293 cmp r3, r2
  20409. 8008cb0: d027 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20410. 8008cb2: 68fb ldr r3, [r7, #12]
  20411. 8008cb4: 681b ldr r3, [r3, #0]
  20412. 8008cb6: 4a5c ldr r2, [pc, #368] @ (8008e28 <HAL_DMA_Start_IT+0x214>)
  20413. 8008cb8: 4293 cmp r3, r2
  20414. 8008cba: d022 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20415. 8008cbc: 68fb ldr r3, [r7, #12]
  20416. 8008cbe: 681b ldr r3, [r3, #0]
  20417. 8008cc0: 4a5a ldr r2, [pc, #360] @ (8008e2c <HAL_DMA_Start_IT+0x218>)
  20418. 8008cc2: 4293 cmp r3, r2
  20419. 8008cc4: d01d beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20420. 8008cc6: 68fb ldr r3, [r7, #12]
  20421. 8008cc8: 681b ldr r3, [r3, #0]
  20422. 8008cca: 4a59 ldr r2, [pc, #356] @ (8008e30 <HAL_DMA_Start_IT+0x21c>)
  20423. 8008ccc: 4293 cmp r3, r2
  20424. 8008cce: d018 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20425. 8008cd0: 68fb ldr r3, [r7, #12]
  20426. 8008cd2: 681b ldr r3, [r3, #0]
  20427. 8008cd4: 4a57 ldr r2, [pc, #348] @ (8008e34 <HAL_DMA_Start_IT+0x220>)
  20428. 8008cd6: 4293 cmp r3, r2
  20429. 8008cd8: d013 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20430. 8008cda: 68fb ldr r3, [r7, #12]
  20431. 8008cdc: 681b ldr r3, [r3, #0]
  20432. 8008cde: 4a56 ldr r2, [pc, #344] @ (8008e38 <HAL_DMA_Start_IT+0x224>)
  20433. 8008ce0: 4293 cmp r3, r2
  20434. 8008ce2: d00e beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20435. 8008ce4: 68fb ldr r3, [r7, #12]
  20436. 8008ce6: 681b ldr r3, [r3, #0]
  20437. 8008ce8: 4a54 ldr r2, [pc, #336] @ (8008e3c <HAL_DMA_Start_IT+0x228>)
  20438. 8008cea: 4293 cmp r3, r2
  20439. 8008cec: d009 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20440. 8008cee: 68fb ldr r3, [r7, #12]
  20441. 8008cf0: 681b ldr r3, [r3, #0]
  20442. 8008cf2: 4a53 ldr r2, [pc, #332] @ (8008e40 <HAL_DMA_Start_IT+0x22c>)
  20443. 8008cf4: 4293 cmp r3, r2
  20444. 8008cf6: d004 beq.n 8008d02 <HAL_DMA_Start_IT+0xee>
  20445. 8008cf8: 68fb ldr r3, [r7, #12]
  20446. 8008cfa: 681b ldr r3, [r3, #0]
  20447. 8008cfc: 4a51 ldr r2, [pc, #324] @ (8008e44 <HAL_DMA_Start_IT+0x230>)
  20448. 8008cfe: 4293 cmp r3, r2
  20449. 8008d00: d108 bne.n 8008d14 <HAL_DMA_Start_IT+0x100>
  20450. 8008d02: 68fb ldr r3, [r7, #12]
  20451. 8008d04: 681b ldr r3, [r3, #0]
  20452. 8008d06: 681a ldr r2, [r3, #0]
  20453. 8008d08: 68fb ldr r3, [r7, #12]
  20454. 8008d0a: 681b ldr r3, [r3, #0]
  20455. 8008d0c: f022 0201 bic.w r2, r2, #1
  20456. 8008d10: 601a str r2, [r3, #0]
  20457. 8008d12: e007 b.n 8008d24 <HAL_DMA_Start_IT+0x110>
  20458. 8008d14: 68fb ldr r3, [r7, #12]
  20459. 8008d16: 681b ldr r3, [r3, #0]
  20460. 8008d18: 681a ldr r2, [r3, #0]
  20461. 8008d1a: 68fb ldr r3, [r7, #12]
  20462. 8008d1c: 681b ldr r3, [r3, #0]
  20463. 8008d1e: f022 0201 bic.w r2, r2, #1
  20464. 8008d22: 601a str r2, [r3, #0]
  20465. /* Configure the source, destination address and the data length */
  20466. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  20467. 8008d24: 683b ldr r3, [r7, #0]
  20468. 8008d26: 687a ldr r2, [r7, #4]
  20469. 8008d28: 68b9 ldr r1, [r7, #8]
  20470. 8008d2a: 68f8 ldr r0, [r7, #12]
  20471. 8008d2c: f001 fe6a bl 800aa04 <DMA_SetConfig>
  20472. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20473. 8008d30: 68fb ldr r3, [r7, #12]
  20474. 8008d32: 681b ldr r3, [r3, #0]
  20475. 8008d34: 4a34 ldr r2, [pc, #208] @ (8008e08 <HAL_DMA_Start_IT+0x1f4>)
  20476. 8008d36: 4293 cmp r3, r2
  20477. 8008d38: d04a beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20478. 8008d3a: 68fb ldr r3, [r7, #12]
  20479. 8008d3c: 681b ldr r3, [r3, #0]
  20480. 8008d3e: 4a33 ldr r2, [pc, #204] @ (8008e0c <HAL_DMA_Start_IT+0x1f8>)
  20481. 8008d40: 4293 cmp r3, r2
  20482. 8008d42: d045 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20483. 8008d44: 68fb ldr r3, [r7, #12]
  20484. 8008d46: 681b ldr r3, [r3, #0]
  20485. 8008d48: 4a31 ldr r2, [pc, #196] @ (8008e10 <HAL_DMA_Start_IT+0x1fc>)
  20486. 8008d4a: 4293 cmp r3, r2
  20487. 8008d4c: d040 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20488. 8008d4e: 68fb ldr r3, [r7, #12]
  20489. 8008d50: 681b ldr r3, [r3, #0]
  20490. 8008d52: 4a30 ldr r2, [pc, #192] @ (8008e14 <HAL_DMA_Start_IT+0x200>)
  20491. 8008d54: 4293 cmp r3, r2
  20492. 8008d56: d03b beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20493. 8008d58: 68fb ldr r3, [r7, #12]
  20494. 8008d5a: 681b ldr r3, [r3, #0]
  20495. 8008d5c: 4a2e ldr r2, [pc, #184] @ (8008e18 <HAL_DMA_Start_IT+0x204>)
  20496. 8008d5e: 4293 cmp r3, r2
  20497. 8008d60: d036 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20498. 8008d62: 68fb ldr r3, [r7, #12]
  20499. 8008d64: 681b ldr r3, [r3, #0]
  20500. 8008d66: 4a2d ldr r2, [pc, #180] @ (8008e1c <HAL_DMA_Start_IT+0x208>)
  20501. 8008d68: 4293 cmp r3, r2
  20502. 8008d6a: d031 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20503. 8008d6c: 68fb ldr r3, [r7, #12]
  20504. 8008d6e: 681b ldr r3, [r3, #0]
  20505. 8008d70: 4a2b ldr r2, [pc, #172] @ (8008e20 <HAL_DMA_Start_IT+0x20c>)
  20506. 8008d72: 4293 cmp r3, r2
  20507. 8008d74: d02c beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20508. 8008d76: 68fb ldr r3, [r7, #12]
  20509. 8008d78: 681b ldr r3, [r3, #0]
  20510. 8008d7a: 4a2a ldr r2, [pc, #168] @ (8008e24 <HAL_DMA_Start_IT+0x210>)
  20511. 8008d7c: 4293 cmp r3, r2
  20512. 8008d7e: d027 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20513. 8008d80: 68fb ldr r3, [r7, #12]
  20514. 8008d82: 681b ldr r3, [r3, #0]
  20515. 8008d84: 4a28 ldr r2, [pc, #160] @ (8008e28 <HAL_DMA_Start_IT+0x214>)
  20516. 8008d86: 4293 cmp r3, r2
  20517. 8008d88: d022 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20518. 8008d8a: 68fb ldr r3, [r7, #12]
  20519. 8008d8c: 681b ldr r3, [r3, #0]
  20520. 8008d8e: 4a27 ldr r2, [pc, #156] @ (8008e2c <HAL_DMA_Start_IT+0x218>)
  20521. 8008d90: 4293 cmp r3, r2
  20522. 8008d92: d01d beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20523. 8008d94: 68fb ldr r3, [r7, #12]
  20524. 8008d96: 681b ldr r3, [r3, #0]
  20525. 8008d98: 4a25 ldr r2, [pc, #148] @ (8008e30 <HAL_DMA_Start_IT+0x21c>)
  20526. 8008d9a: 4293 cmp r3, r2
  20527. 8008d9c: d018 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20528. 8008d9e: 68fb ldr r3, [r7, #12]
  20529. 8008da0: 681b ldr r3, [r3, #0]
  20530. 8008da2: 4a24 ldr r2, [pc, #144] @ (8008e34 <HAL_DMA_Start_IT+0x220>)
  20531. 8008da4: 4293 cmp r3, r2
  20532. 8008da6: d013 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20533. 8008da8: 68fb ldr r3, [r7, #12]
  20534. 8008daa: 681b ldr r3, [r3, #0]
  20535. 8008dac: 4a22 ldr r2, [pc, #136] @ (8008e38 <HAL_DMA_Start_IT+0x224>)
  20536. 8008dae: 4293 cmp r3, r2
  20537. 8008db0: d00e beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20538. 8008db2: 68fb ldr r3, [r7, #12]
  20539. 8008db4: 681b ldr r3, [r3, #0]
  20540. 8008db6: 4a21 ldr r2, [pc, #132] @ (8008e3c <HAL_DMA_Start_IT+0x228>)
  20541. 8008db8: 4293 cmp r3, r2
  20542. 8008dba: d009 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20543. 8008dbc: 68fb ldr r3, [r7, #12]
  20544. 8008dbe: 681b ldr r3, [r3, #0]
  20545. 8008dc0: 4a1f ldr r2, [pc, #124] @ (8008e40 <HAL_DMA_Start_IT+0x22c>)
  20546. 8008dc2: 4293 cmp r3, r2
  20547. 8008dc4: d004 beq.n 8008dd0 <HAL_DMA_Start_IT+0x1bc>
  20548. 8008dc6: 68fb ldr r3, [r7, #12]
  20549. 8008dc8: 681b ldr r3, [r3, #0]
  20550. 8008dca: 4a1e ldr r2, [pc, #120] @ (8008e44 <HAL_DMA_Start_IT+0x230>)
  20551. 8008dcc: 4293 cmp r3, r2
  20552. 8008dce: d101 bne.n 8008dd4 <HAL_DMA_Start_IT+0x1c0>
  20553. 8008dd0: 2301 movs r3, #1
  20554. 8008dd2: e000 b.n 8008dd6 <HAL_DMA_Start_IT+0x1c2>
  20555. 8008dd4: 2300 movs r3, #0
  20556. 8008dd6: 2b00 cmp r3, #0
  20557. 8008dd8: d036 beq.n 8008e48 <HAL_DMA_Start_IT+0x234>
  20558. {
  20559. /* Enable Common interrupts*/
  20560. 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));
  20561. 8008dda: 68fb ldr r3, [r7, #12]
  20562. 8008ddc: 681b ldr r3, [r3, #0]
  20563. 8008dde: 681b ldr r3, [r3, #0]
  20564. 8008de0: f023 021e bic.w r2, r3, #30
  20565. 8008de4: 68fb ldr r3, [r7, #12]
  20566. 8008de6: 681b ldr r3, [r3, #0]
  20567. 8008de8: f042 0216 orr.w r2, r2, #22
  20568. 8008dec: 601a str r2, [r3, #0]
  20569. if(hdma->XferHalfCpltCallback != NULL)
  20570. 8008dee: 68fb ldr r3, [r7, #12]
  20571. 8008df0: 6c1b ldr r3, [r3, #64] @ 0x40
  20572. 8008df2: 2b00 cmp r3, #0
  20573. 8008df4: d03e beq.n 8008e74 <HAL_DMA_Start_IT+0x260>
  20574. {
  20575. /* Enable Half Transfer IT if corresponding Callback is set */
  20576. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  20577. 8008df6: 68fb ldr r3, [r7, #12]
  20578. 8008df8: 681b ldr r3, [r3, #0]
  20579. 8008dfa: 681a ldr r2, [r3, #0]
  20580. 8008dfc: 68fb ldr r3, [r7, #12]
  20581. 8008dfe: 681b ldr r3, [r3, #0]
  20582. 8008e00: f042 0208 orr.w r2, r2, #8
  20583. 8008e04: 601a str r2, [r3, #0]
  20584. 8008e06: e035 b.n 8008e74 <HAL_DMA_Start_IT+0x260>
  20585. 8008e08: 40020010 .word 0x40020010
  20586. 8008e0c: 40020028 .word 0x40020028
  20587. 8008e10: 40020040 .word 0x40020040
  20588. 8008e14: 40020058 .word 0x40020058
  20589. 8008e18: 40020070 .word 0x40020070
  20590. 8008e1c: 40020088 .word 0x40020088
  20591. 8008e20: 400200a0 .word 0x400200a0
  20592. 8008e24: 400200b8 .word 0x400200b8
  20593. 8008e28: 40020410 .word 0x40020410
  20594. 8008e2c: 40020428 .word 0x40020428
  20595. 8008e30: 40020440 .word 0x40020440
  20596. 8008e34: 40020458 .word 0x40020458
  20597. 8008e38: 40020470 .word 0x40020470
  20598. 8008e3c: 40020488 .word 0x40020488
  20599. 8008e40: 400204a0 .word 0x400204a0
  20600. 8008e44: 400204b8 .word 0x400204b8
  20601. }
  20602. }
  20603. else /* BDMA channel */
  20604. {
  20605. /* Enable Common interrupts */
  20606. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  20607. 8008e48: 68fb ldr r3, [r7, #12]
  20608. 8008e4a: 681b ldr r3, [r3, #0]
  20609. 8008e4c: 681b ldr r3, [r3, #0]
  20610. 8008e4e: f023 020e bic.w r2, r3, #14
  20611. 8008e52: 68fb ldr r3, [r7, #12]
  20612. 8008e54: 681b ldr r3, [r3, #0]
  20613. 8008e56: f042 020a orr.w r2, r2, #10
  20614. 8008e5a: 601a str r2, [r3, #0]
  20615. if(hdma->XferHalfCpltCallback != NULL)
  20616. 8008e5c: 68fb ldr r3, [r7, #12]
  20617. 8008e5e: 6c1b ldr r3, [r3, #64] @ 0x40
  20618. 8008e60: 2b00 cmp r3, #0
  20619. 8008e62: d007 beq.n 8008e74 <HAL_DMA_Start_IT+0x260>
  20620. {
  20621. /*Enable Half Transfer IT if corresponding Callback is set */
  20622. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  20623. 8008e64: 68fb ldr r3, [r7, #12]
  20624. 8008e66: 681b ldr r3, [r3, #0]
  20625. 8008e68: 681a ldr r2, [r3, #0]
  20626. 8008e6a: 68fb ldr r3, [r7, #12]
  20627. 8008e6c: 681b ldr r3, [r3, #0]
  20628. 8008e6e: f042 0204 orr.w r2, r2, #4
  20629. 8008e72: 601a str r2, [r3, #0]
  20630. }
  20631. }
  20632. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20633. 8008e74: 68fb ldr r3, [r7, #12]
  20634. 8008e76: 681b ldr r3, [r3, #0]
  20635. 8008e78: 4a83 ldr r2, [pc, #524] @ (8009088 <HAL_DMA_Start_IT+0x474>)
  20636. 8008e7a: 4293 cmp r3, r2
  20637. 8008e7c: d072 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20638. 8008e7e: 68fb ldr r3, [r7, #12]
  20639. 8008e80: 681b ldr r3, [r3, #0]
  20640. 8008e82: 4a82 ldr r2, [pc, #520] @ (800908c <HAL_DMA_Start_IT+0x478>)
  20641. 8008e84: 4293 cmp r3, r2
  20642. 8008e86: d06d beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20643. 8008e88: 68fb ldr r3, [r7, #12]
  20644. 8008e8a: 681b ldr r3, [r3, #0]
  20645. 8008e8c: 4a80 ldr r2, [pc, #512] @ (8009090 <HAL_DMA_Start_IT+0x47c>)
  20646. 8008e8e: 4293 cmp r3, r2
  20647. 8008e90: d068 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20648. 8008e92: 68fb ldr r3, [r7, #12]
  20649. 8008e94: 681b ldr r3, [r3, #0]
  20650. 8008e96: 4a7f ldr r2, [pc, #508] @ (8009094 <HAL_DMA_Start_IT+0x480>)
  20651. 8008e98: 4293 cmp r3, r2
  20652. 8008e9a: d063 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20653. 8008e9c: 68fb ldr r3, [r7, #12]
  20654. 8008e9e: 681b ldr r3, [r3, #0]
  20655. 8008ea0: 4a7d ldr r2, [pc, #500] @ (8009098 <HAL_DMA_Start_IT+0x484>)
  20656. 8008ea2: 4293 cmp r3, r2
  20657. 8008ea4: d05e beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20658. 8008ea6: 68fb ldr r3, [r7, #12]
  20659. 8008ea8: 681b ldr r3, [r3, #0]
  20660. 8008eaa: 4a7c ldr r2, [pc, #496] @ (800909c <HAL_DMA_Start_IT+0x488>)
  20661. 8008eac: 4293 cmp r3, r2
  20662. 8008eae: d059 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20663. 8008eb0: 68fb ldr r3, [r7, #12]
  20664. 8008eb2: 681b ldr r3, [r3, #0]
  20665. 8008eb4: 4a7a ldr r2, [pc, #488] @ (80090a0 <HAL_DMA_Start_IT+0x48c>)
  20666. 8008eb6: 4293 cmp r3, r2
  20667. 8008eb8: d054 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20668. 8008eba: 68fb ldr r3, [r7, #12]
  20669. 8008ebc: 681b ldr r3, [r3, #0]
  20670. 8008ebe: 4a79 ldr r2, [pc, #484] @ (80090a4 <HAL_DMA_Start_IT+0x490>)
  20671. 8008ec0: 4293 cmp r3, r2
  20672. 8008ec2: d04f beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20673. 8008ec4: 68fb ldr r3, [r7, #12]
  20674. 8008ec6: 681b ldr r3, [r3, #0]
  20675. 8008ec8: 4a77 ldr r2, [pc, #476] @ (80090a8 <HAL_DMA_Start_IT+0x494>)
  20676. 8008eca: 4293 cmp r3, r2
  20677. 8008ecc: d04a beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20678. 8008ece: 68fb ldr r3, [r7, #12]
  20679. 8008ed0: 681b ldr r3, [r3, #0]
  20680. 8008ed2: 4a76 ldr r2, [pc, #472] @ (80090ac <HAL_DMA_Start_IT+0x498>)
  20681. 8008ed4: 4293 cmp r3, r2
  20682. 8008ed6: d045 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20683. 8008ed8: 68fb ldr r3, [r7, #12]
  20684. 8008eda: 681b ldr r3, [r3, #0]
  20685. 8008edc: 4a74 ldr r2, [pc, #464] @ (80090b0 <HAL_DMA_Start_IT+0x49c>)
  20686. 8008ede: 4293 cmp r3, r2
  20687. 8008ee0: d040 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20688. 8008ee2: 68fb ldr r3, [r7, #12]
  20689. 8008ee4: 681b ldr r3, [r3, #0]
  20690. 8008ee6: 4a73 ldr r2, [pc, #460] @ (80090b4 <HAL_DMA_Start_IT+0x4a0>)
  20691. 8008ee8: 4293 cmp r3, r2
  20692. 8008eea: d03b beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20693. 8008eec: 68fb ldr r3, [r7, #12]
  20694. 8008eee: 681b ldr r3, [r3, #0]
  20695. 8008ef0: 4a71 ldr r2, [pc, #452] @ (80090b8 <HAL_DMA_Start_IT+0x4a4>)
  20696. 8008ef2: 4293 cmp r3, r2
  20697. 8008ef4: d036 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20698. 8008ef6: 68fb ldr r3, [r7, #12]
  20699. 8008ef8: 681b ldr r3, [r3, #0]
  20700. 8008efa: 4a70 ldr r2, [pc, #448] @ (80090bc <HAL_DMA_Start_IT+0x4a8>)
  20701. 8008efc: 4293 cmp r3, r2
  20702. 8008efe: d031 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20703. 8008f00: 68fb ldr r3, [r7, #12]
  20704. 8008f02: 681b ldr r3, [r3, #0]
  20705. 8008f04: 4a6e ldr r2, [pc, #440] @ (80090c0 <HAL_DMA_Start_IT+0x4ac>)
  20706. 8008f06: 4293 cmp r3, r2
  20707. 8008f08: d02c beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20708. 8008f0a: 68fb ldr r3, [r7, #12]
  20709. 8008f0c: 681b ldr r3, [r3, #0]
  20710. 8008f0e: 4a6d ldr r2, [pc, #436] @ (80090c4 <HAL_DMA_Start_IT+0x4b0>)
  20711. 8008f10: 4293 cmp r3, r2
  20712. 8008f12: d027 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20713. 8008f14: 68fb ldr r3, [r7, #12]
  20714. 8008f16: 681b ldr r3, [r3, #0]
  20715. 8008f18: 4a6b ldr r2, [pc, #428] @ (80090c8 <HAL_DMA_Start_IT+0x4b4>)
  20716. 8008f1a: 4293 cmp r3, r2
  20717. 8008f1c: d022 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20718. 8008f1e: 68fb ldr r3, [r7, #12]
  20719. 8008f20: 681b ldr r3, [r3, #0]
  20720. 8008f22: 4a6a ldr r2, [pc, #424] @ (80090cc <HAL_DMA_Start_IT+0x4b8>)
  20721. 8008f24: 4293 cmp r3, r2
  20722. 8008f26: d01d beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20723. 8008f28: 68fb ldr r3, [r7, #12]
  20724. 8008f2a: 681b ldr r3, [r3, #0]
  20725. 8008f2c: 4a68 ldr r2, [pc, #416] @ (80090d0 <HAL_DMA_Start_IT+0x4bc>)
  20726. 8008f2e: 4293 cmp r3, r2
  20727. 8008f30: d018 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20728. 8008f32: 68fb ldr r3, [r7, #12]
  20729. 8008f34: 681b ldr r3, [r3, #0]
  20730. 8008f36: 4a67 ldr r2, [pc, #412] @ (80090d4 <HAL_DMA_Start_IT+0x4c0>)
  20731. 8008f38: 4293 cmp r3, r2
  20732. 8008f3a: d013 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20733. 8008f3c: 68fb ldr r3, [r7, #12]
  20734. 8008f3e: 681b ldr r3, [r3, #0]
  20735. 8008f40: 4a65 ldr r2, [pc, #404] @ (80090d8 <HAL_DMA_Start_IT+0x4c4>)
  20736. 8008f42: 4293 cmp r3, r2
  20737. 8008f44: d00e beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20738. 8008f46: 68fb ldr r3, [r7, #12]
  20739. 8008f48: 681b ldr r3, [r3, #0]
  20740. 8008f4a: 4a64 ldr r2, [pc, #400] @ (80090dc <HAL_DMA_Start_IT+0x4c8>)
  20741. 8008f4c: 4293 cmp r3, r2
  20742. 8008f4e: d009 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20743. 8008f50: 68fb ldr r3, [r7, #12]
  20744. 8008f52: 681b ldr r3, [r3, #0]
  20745. 8008f54: 4a62 ldr r2, [pc, #392] @ (80090e0 <HAL_DMA_Start_IT+0x4cc>)
  20746. 8008f56: 4293 cmp r3, r2
  20747. 8008f58: d004 beq.n 8008f64 <HAL_DMA_Start_IT+0x350>
  20748. 8008f5a: 68fb ldr r3, [r7, #12]
  20749. 8008f5c: 681b ldr r3, [r3, #0]
  20750. 8008f5e: 4a61 ldr r2, [pc, #388] @ (80090e4 <HAL_DMA_Start_IT+0x4d0>)
  20751. 8008f60: 4293 cmp r3, r2
  20752. 8008f62: d101 bne.n 8008f68 <HAL_DMA_Start_IT+0x354>
  20753. 8008f64: 2301 movs r3, #1
  20754. 8008f66: e000 b.n 8008f6a <HAL_DMA_Start_IT+0x356>
  20755. 8008f68: 2300 movs r3, #0
  20756. 8008f6a: 2b00 cmp r3, #0
  20757. 8008f6c: d01a beq.n 8008fa4 <HAL_DMA_Start_IT+0x390>
  20758. {
  20759. /* Check if DMAMUX Synchronization is enabled */
  20760. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  20761. 8008f6e: 68fb ldr r3, [r7, #12]
  20762. 8008f70: 6e1b ldr r3, [r3, #96] @ 0x60
  20763. 8008f72: 681b ldr r3, [r3, #0]
  20764. 8008f74: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20765. 8008f78: 2b00 cmp r3, #0
  20766. 8008f7a: d007 beq.n 8008f8c <HAL_DMA_Start_IT+0x378>
  20767. {
  20768. /* Enable DMAMUX sync overrun IT*/
  20769. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  20770. 8008f7c: 68fb ldr r3, [r7, #12]
  20771. 8008f7e: 6e1b ldr r3, [r3, #96] @ 0x60
  20772. 8008f80: 681a ldr r2, [r3, #0]
  20773. 8008f82: 68fb ldr r3, [r7, #12]
  20774. 8008f84: 6e1b ldr r3, [r3, #96] @ 0x60
  20775. 8008f86: f442 7280 orr.w r2, r2, #256 @ 0x100
  20776. 8008f8a: 601a str r2, [r3, #0]
  20777. }
  20778. if(hdma->DMAmuxRequestGen != 0U)
  20779. 8008f8c: 68fb ldr r3, [r7, #12]
  20780. 8008f8e: 6edb ldr r3, [r3, #108] @ 0x6c
  20781. 8008f90: 2b00 cmp r3, #0
  20782. 8008f92: d007 beq.n 8008fa4 <HAL_DMA_Start_IT+0x390>
  20783. {
  20784. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  20785. /* enable the request gen overrun IT */
  20786. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  20787. 8008f94: 68fb ldr r3, [r7, #12]
  20788. 8008f96: 6edb ldr r3, [r3, #108] @ 0x6c
  20789. 8008f98: 681a ldr r2, [r3, #0]
  20790. 8008f9a: 68fb ldr r3, [r7, #12]
  20791. 8008f9c: 6edb ldr r3, [r3, #108] @ 0x6c
  20792. 8008f9e: f442 7280 orr.w r2, r2, #256 @ 0x100
  20793. 8008fa2: 601a str r2, [r3, #0]
  20794. }
  20795. }
  20796. /* Enable the Peripheral */
  20797. __HAL_DMA_ENABLE(hdma);
  20798. 8008fa4: 68fb ldr r3, [r7, #12]
  20799. 8008fa6: 681b ldr r3, [r3, #0]
  20800. 8008fa8: 4a37 ldr r2, [pc, #220] @ (8009088 <HAL_DMA_Start_IT+0x474>)
  20801. 8008faa: 4293 cmp r3, r2
  20802. 8008fac: d04a beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20803. 8008fae: 68fb ldr r3, [r7, #12]
  20804. 8008fb0: 681b ldr r3, [r3, #0]
  20805. 8008fb2: 4a36 ldr r2, [pc, #216] @ (800908c <HAL_DMA_Start_IT+0x478>)
  20806. 8008fb4: 4293 cmp r3, r2
  20807. 8008fb6: d045 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20808. 8008fb8: 68fb ldr r3, [r7, #12]
  20809. 8008fba: 681b ldr r3, [r3, #0]
  20810. 8008fbc: 4a34 ldr r2, [pc, #208] @ (8009090 <HAL_DMA_Start_IT+0x47c>)
  20811. 8008fbe: 4293 cmp r3, r2
  20812. 8008fc0: d040 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20813. 8008fc2: 68fb ldr r3, [r7, #12]
  20814. 8008fc4: 681b ldr r3, [r3, #0]
  20815. 8008fc6: 4a33 ldr r2, [pc, #204] @ (8009094 <HAL_DMA_Start_IT+0x480>)
  20816. 8008fc8: 4293 cmp r3, r2
  20817. 8008fca: d03b beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20818. 8008fcc: 68fb ldr r3, [r7, #12]
  20819. 8008fce: 681b ldr r3, [r3, #0]
  20820. 8008fd0: 4a31 ldr r2, [pc, #196] @ (8009098 <HAL_DMA_Start_IT+0x484>)
  20821. 8008fd2: 4293 cmp r3, r2
  20822. 8008fd4: d036 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20823. 8008fd6: 68fb ldr r3, [r7, #12]
  20824. 8008fd8: 681b ldr r3, [r3, #0]
  20825. 8008fda: 4a30 ldr r2, [pc, #192] @ (800909c <HAL_DMA_Start_IT+0x488>)
  20826. 8008fdc: 4293 cmp r3, r2
  20827. 8008fde: d031 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20828. 8008fe0: 68fb ldr r3, [r7, #12]
  20829. 8008fe2: 681b ldr r3, [r3, #0]
  20830. 8008fe4: 4a2e ldr r2, [pc, #184] @ (80090a0 <HAL_DMA_Start_IT+0x48c>)
  20831. 8008fe6: 4293 cmp r3, r2
  20832. 8008fe8: d02c beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20833. 8008fea: 68fb ldr r3, [r7, #12]
  20834. 8008fec: 681b ldr r3, [r3, #0]
  20835. 8008fee: 4a2d ldr r2, [pc, #180] @ (80090a4 <HAL_DMA_Start_IT+0x490>)
  20836. 8008ff0: 4293 cmp r3, r2
  20837. 8008ff2: d027 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20838. 8008ff4: 68fb ldr r3, [r7, #12]
  20839. 8008ff6: 681b ldr r3, [r3, #0]
  20840. 8008ff8: 4a2b ldr r2, [pc, #172] @ (80090a8 <HAL_DMA_Start_IT+0x494>)
  20841. 8008ffa: 4293 cmp r3, r2
  20842. 8008ffc: d022 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20843. 8008ffe: 68fb ldr r3, [r7, #12]
  20844. 8009000: 681b ldr r3, [r3, #0]
  20845. 8009002: 4a2a ldr r2, [pc, #168] @ (80090ac <HAL_DMA_Start_IT+0x498>)
  20846. 8009004: 4293 cmp r3, r2
  20847. 8009006: d01d beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20848. 8009008: 68fb ldr r3, [r7, #12]
  20849. 800900a: 681b ldr r3, [r3, #0]
  20850. 800900c: 4a28 ldr r2, [pc, #160] @ (80090b0 <HAL_DMA_Start_IT+0x49c>)
  20851. 800900e: 4293 cmp r3, r2
  20852. 8009010: d018 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20853. 8009012: 68fb ldr r3, [r7, #12]
  20854. 8009014: 681b ldr r3, [r3, #0]
  20855. 8009016: 4a27 ldr r2, [pc, #156] @ (80090b4 <HAL_DMA_Start_IT+0x4a0>)
  20856. 8009018: 4293 cmp r3, r2
  20857. 800901a: d013 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20858. 800901c: 68fb ldr r3, [r7, #12]
  20859. 800901e: 681b ldr r3, [r3, #0]
  20860. 8009020: 4a25 ldr r2, [pc, #148] @ (80090b8 <HAL_DMA_Start_IT+0x4a4>)
  20861. 8009022: 4293 cmp r3, r2
  20862. 8009024: d00e beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20863. 8009026: 68fb ldr r3, [r7, #12]
  20864. 8009028: 681b ldr r3, [r3, #0]
  20865. 800902a: 4a24 ldr r2, [pc, #144] @ (80090bc <HAL_DMA_Start_IT+0x4a8>)
  20866. 800902c: 4293 cmp r3, r2
  20867. 800902e: d009 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20868. 8009030: 68fb ldr r3, [r7, #12]
  20869. 8009032: 681b ldr r3, [r3, #0]
  20870. 8009034: 4a22 ldr r2, [pc, #136] @ (80090c0 <HAL_DMA_Start_IT+0x4ac>)
  20871. 8009036: 4293 cmp r3, r2
  20872. 8009038: d004 beq.n 8009044 <HAL_DMA_Start_IT+0x430>
  20873. 800903a: 68fb ldr r3, [r7, #12]
  20874. 800903c: 681b ldr r3, [r3, #0]
  20875. 800903e: 4a21 ldr r2, [pc, #132] @ (80090c4 <HAL_DMA_Start_IT+0x4b0>)
  20876. 8009040: 4293 cmp r3, r2
  20877. 8009042: d108 bne.n 8009056 <HAL_DMA_Start_IT+0x442>
  20878. 8009044: 68fb ldr r3, [r7, #12]
  20879. 8009046: 681b ldr r3, [r3, #0]
  20880. 8009048: 681a ldr r2, [r3, #0]
  20881. 800904a: 68fb ldr r3, [r7, #12]
  20882. 800904c: 681b ldr r3, [r3, #0]
  20883. 800904e: f042 0201 orr.w r2, r2, #1
  20884. 8009052: 601a str r2, [r3, #0]
  20885. 8009054: e012 b.n 800907c <HAL_DMA_Start_IT+0x468>
  20886. 8009056: 68fb ldr r3, [r7, #12]
  20887. 8009058: 681b ldr r3, [r3, #0]
  20888. 800905a: 681a ldr r2, [r3, #0]
  20889. 800905c: 68fb ldr r3, [r7, #12]
  20890. 800905e: 681b ldr r3, [r3, #0]
  20891. 8009060: f042 0201 orr.w r2, r2, #1
  20892. 8009064: 601a str r2, [r3, #0]
  20893. 8009066: e009 b.n 800907c <HAL_DMA_Start_IT+0x468>
  20894. }
  20895. else
  20896. {
  20897. /* Set the error code to busy */
  20898. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  20899. 8009068: 68fb ldr r3, [r7, #12]
  20900. 800906a: f44f 6200 mov.w r2, #2048 @ 0x800
  20901. 800906e: 655a str r2, [r3, #84] @ 0x54
  20902. /* Process unlocked */
  20903. __HAL_UNLOCK(hdma);
  20904. 8009070: 68fb ldr r3, [r7, #12]
  20905. 8009072: 2200 movs r2, #0
  20906. 8009074: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20907. /* Return error status */
  20908. status = HAL_ERROR;
  20909. 8009078: 2301 movs r3, #1
  20910. 800907a: 75fb strb r3, [r7, #23]
  20911. }
  20912. return status;
  20913. 800907c: 7dfb ldrb r3, [r7, #23]
  20914. }
  20915. 800907e: 4618 mov r0, r3
  20916. 8009080: 3718 adds r7, #24
  20917. 8009082: 46bd mov sp, r7
  20918. 8009084: bd80 pop {r7, pc}
  20919. 8009086: bf00 nop
  20920. 8009088: 40020010 .word 0x40020010
  20921. 800908c: 40020028 .word 0x40020028
  20922. 8009090: 40020040 .word 0x40020040
  20923. 8009094: 40020058 .word 0x40020058
  20924. 8009098: 40020070 .word 0x40020070
  20925. 800909c: 40020088 .word 0x40020088
  20926. 80090a0: 400200a0 .word 0x400200a0
  20927. 80090a4: 400200b8 .word 0x400200b8
  20928. 80090a8: 40020410 .word 0x40020410
  20929. 80090ac: 40020428 .word 0x40020428
  20930. 80090b0: 40020440 .word 0x40020440
  20931. 80090b4: 40020458 .word 0x40020458
  20932. 80090b8: 40020470 .word 0x40020470
  20933. 80090bc: 40020488 .word 0x40020488
  20934. 80090c0: 400204a0 .word 0x400204a0
  20935. 80090c4: 400204b8 .word 0x400204b8
  20936. 80090c8: 58025408 .word 0x58025408
  20937. 80090cc: 5802541c .word 0x5802541c
  20938. 80090d0: 58025430 .word 0x58025430
  20939. 80090d4: 58025444 .word 0x58025444
  20940. 80090d8: 58025458 .word 0x58025458
  20941. 80090dc: 5802546c .word 0x5802546c
  20942. 80090e0: 58025480 .word 0x58025480
  20943. 80090e4: 58025494 .word 0x58025494
  20944. 080090e8 <HAL_DMA_Abort>:
  20945. * and the Stream will be effectively disabled only after the transfer of
  20946. * this single data is finished.
  20947. * @retval HAL status
  20948. */
  20949. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  20950. {
  20951. 80090e8: b580 push {r7, lr}
  20952. 80090ea: b086 sub sp, #24
  20953. 80090ec: af00 add r7, sp, #0
  20954. 80090ee: 6078 str r0, [r7, #4]
  20955. /* calculate DMA base and stream number */
  20956. DMA_Base_Registers *regs_dma;
  20957. BDMA_Base_Registers *regs_bdma;
  20958. const __IO uint32_t *enableRegister;
  20959. uint32_t tickstart = HAL_GetTick();
  20960. 80090f0: f7fc fe98 bl 8005e24 <HAL_GetTick>
  20961. 80090f4: 6138 str r0, [r7, #16]
  20962. /* Check the DMA peripheral handle */
  20963. if(hdma == NULL)
  20964. 80090f6: 687b ldr r3, [r7, #4]
  20965. 80090f8: 2b00 cmp r3, #0
  20966. 80090fa: d101 bne.n 8009100 <HAL_DMA_Abort+0x18>
  20967. {
  20968. return HAL_ERROR;
  20969. 80090fc: 2301 movs r3, #1
  20970. 80090fe: e2dc b.n 80096ba <HAL_DMA_Abort+0x5d2>
  20971. }
  20972. /* Check the DMA peripheral state */
  20973. if(hdma->State != HAL_DMA_STATE_BUSY)
  20974. 8009100: 687b ldr r3, [r7, #4]
  20975. 8009102: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20976. 8009106: b2db uxtb r3, r3
  20977. 8009108: 2b02 cmp r3, #2
  20978. 800910a: d008 beq.n 800911e <HAL_DMA_Abort+0x36>
  20979. {
  20980. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20981. 800910c: 687b ldr r3, [r7, #4]
  20982. 800910e: 2280 movs r2, #128 @ 0x80
  20983. 8009110: 655a str r2, [r3, #84] @ 0x54
  20984. /* Process Unlocked */
  20985. __HAL_UNLOCK(hdma);
  20986. 8009112: 687b ldr r3, [r7, #4]
  20987. 8009114: 2200 movs r2, #0
  20988. 8009116: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20989. return HAL_ERROR;
  20990. 800911a: 2301 movs r3, #1
  20991. 800911c: e2cd b.n 80096ba <HAL_DMA_Abort+0x5d2>
  20992. }
  20993. else
  20994. {
  20995. /* Disable all the transfer interrupts */
  20996. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20997. 800911e: 687b ldr r3, [r7, #4]
  20998. 8009120: 681b ldr r3, [r3, #0]
  20999. 8009122: 4a76 ldr r2, [pc, #472] @ (80092fc <HAL_DMA_Abort+0x214>)
  21000. 8009124: 4293 cmp r3, r2
  21001. 8009126: d04a beq.n 80091be <HAL_DMA_Abort+0xd6>
  21002. 8009128: 687b ldr r3, [r7, #4]
  21003. 800912a: 681b ldr r3, [r3, #0]
  21004. 800912c: 4a74 ldr r2, [pc, #464] @ (8009300 <HAL_DMA_Abort+0x218>)
  21005. 800912e: 4293 cmp r3, r2
  21006. 8009130: d045 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21007. 8009132: 687b ldr r3, [r7, #4]
  21008. 8009134: 681b ldr r3, [r3, #0]
  21009. 8009136: 4a73 ldr r2, [pc, #460] @ (8009304 <HAL_DMA_Abort+0x21c>)
  21010. 8009138: 4293 cmp r3, r2
  21011. 800913a: d040 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21012. 800913c: 687b ldr r3, [r7, #4]
  21013. 800913e: 681b ldr r3, [r3, #0]
  21014. 8009140: 4a71 ldr r2, [pc, #452] @ (8009308 <HAL_DMA_Abort+0x220>)
  21015. 8009142: 4293 cmp r3, r2
  21016. 8009144: d03b beq.n 80091be <HAL_DMA_Abort+0xd6>
  21017. 8009146: 687b ldr r3, [r7, #4]
  21018. 8009148: 681b ldr r3, [r3, #0]
  21019. 800914a: 4a70 ldr r2, [pc, #448] @ (800930c <HAL_DMA_Abort+0x224>)
  21020. 800914c: 4293 cmp r3, r2
  21021. 800914e: d036 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21022. 8009150: 687b ldr r3, [r7, #4]
  21023. 8009152: 681b ldr r3, [r3, #0]
  21024. 8009154: 4a6e ldr r2, [pc, #440] @ (8009310 <HAL_DMA_Abort+0x228>)
  21025. 8009156: 4293 cmp r3, r2
  21026. 8009158: d031 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21027. 800915a: 687b ldr r3, [r7, #4]
  21028. 800915c: 681b ldr r3, [r3, #0]
  21029. 800915e: 4a6d ldr r2, [pc, #436] @ (8009314 <HAL_DMA_Abort+0x22c>)
  21030. 8009160: 4293 cmp r3, r2
  21031. 8009162: d02c beq.n 80091be <HAL_DMA_Abort+0xd6>
  21032. 8009164: 687b ldr r3, [r7, #4]
  21033. 8009166: 681b ldr r3, [r3, #0]
  21034. 8009168: 4a6b ldr r2, [pc, #428] @ (8009318 <HAL_DMA_Abort+0x230>)
  21035. 800916a: 4293 cmp r3, r2
  21036. 800916c: d027 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21037. 800916e: 687b ldr r3, [r7, #4]
  21038. 8009170: 681b ldr r3, [r3, #0]
  21039. 8009172: 4a6a ldr r2, [pc, #424] @ (800931c <HAL_DMA_Abort+0x234>)
  21040. 8009174: 4293 cmp r3, r2
  21041. 8009176: d022 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21042. 8009178: 687b ldr r3, [r7, #4]
  21043. 800917a: 681b ldr r3, [r3, #0]
  21044. 800917c: 4a68 ldr r2, [pc, #416] @ (8009320 <HAL_DMA_Abort+0x238>)
  21045. 800917e: 4293 cmp r3, r2
  21046. 8009180: d01d beq.n 80091be <HAL_DMA_Abort+0xd6>
  21047. 8009182: 687b ldr r3, [r7, #4]
  21048. 8009184: 681b ldr r3, [r3, #0]
  21049. 8009186: 4a67 ldr r2, [pc, #412] @ (8009324 <HAL_DMA_Abort+0x23c>)
  21050. 8009188: 4293 cmp r3, r2
  21051. 800918a: d018 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21052. 800918c: 687b ldr r3, [r7, #4]
  21053. 800918e: 681b ldr r3, [r3, #0]
  21054. 8009190: 4a65 ldr r2, [pc, #404] @ (8009328 <HAL_DMA_Abort+0x240>)
  21055. 8009192: 4293 cmp r3, r2
  21056. 8009194: d013 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21057. 8009196: 687b ldr r3, [r7, #4]
  21058. 8009198: 681b ldr r3, [r3, #0]
  21059. 800919a: 4a64 ldr r2, [pc, #400] @ (800932c <HAL_DMA_Abort+0x244>)
  21060. 800919c: 4293 cmp r3, r2
  21061. 800919e: d00e beq.n 80091be <HAL_DMA_Abort+0xd6>
  21062. 80091a0: 687b ldr r3, [r7, #4]
  21063. 80091a2: 681b ldr r3, [r3, #0]
  21064. 80091a4: 4a62 ldr r2, [pc, #392] @ (8009330 <HAL_DMA_Abort+0x248>)
  21065. 80091a6: 4293 cmp r3, r2
  21066. 80091a8: d009 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21067. 80091aa: 687b ldr r3, [r7, #4]
  21068. 80091ac: 681b ldr r3, [r3, #0]
  21069. 80091ae: 4a61 ldr r2, [pc, #388] @ (8009334 <HAL_DMA_Abort+0x24c>)
  21070. 80091b0: 4293 cmp r3, r2
  21071. 80091b2: d004 beq.n 80091be <HAL_DMA_Abort+0xd6>
  21072. 80091b4: 687b ldr r3, [r7, #4]
  21073. 80091b6: 681b ldr r3, [r3, #0]
  21074. 80091b8: 4a5f ldr r2, [pc, #380] @ (8009338 <HAL_DMA_Abort+0x250>)
  21075. 80091ba: 4293 cmp r3, r2
  21076. 80091bc: d101 bne.n 80091c2 <HAL_DMA_Abort+0xda>
  21077. 80091be: 2301 movs r3, #1
  21078. 80091c0: e000 b.n 80091c4 <HAL_DMA_Abort+0xdc>
  21079. 80091c2: 2300 movs r3, #0
  21080. 80091c4: 2b00 cmp r3, #0
  21081. 80091c6: d013 beq.n 80091f0 <HAL_DMA_Abort+0x108>
  21082. {
  21083. /* Disable DMA All Interrupts */
  21084. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  21085. 80091c8: 687b ldr r3, [r7, #4]
  21086. 80091ca: 681b ldr r3, [r3, #0]
  21087. 80091cc: 681a ldr r2, [r3, #0]
  21088. 80091ce: 687b ldr r3, [r7, #4]
  21089. 80091d0: 681b ldr r3, [r3, #0]
  21090. 80091d2: f022 021e bic.w r2, r2, #30
  21091. 80091d6: 601a str r2, [r3, #0]
  21092. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  21093. 80091d8: 687b ldr r3, [r7, #4]
  21094. 80091da: 681b ldr r3, [r3, #0]
  21095. 80091dc: 695a ldr r2, [r3, #20]
  21096. 80091de: 687b ldr r3, [r7, #4]
  21097. 80091e0: 681b ldr r3, [r3, #0]
  21098. 80091e2: f022 0280 bic.w r2, r2, #128 @ 0x80
  21099. 80091e6: 615a str r2, [r3, #20]
  21100. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  21101. 80091e8: 687b ldr r3, [r7, #4]
  21102. 80091ea: 681b ldr r3, [r3, #0]
  21103. 80091ec: 617b str r3, [r7, #20]
  21104. 80091ee: e00a b.n 8009206 <HAL_DMA_Abort+0x11e>
  21105. }
  21106. else /* BDMA channel */
  21107. {
  21108. /* Disable DMA All Interrupts */
  21109. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21110. 80091f0: 687b ldr r3, [r7, #4]
  21111. 80091f2: 681b ldr r3, [r3, #0]
  21112. 80091f4: 681a ldr r2, [r3, #0]
  21113. 80091f6: 687b ldr r3, [r7, #4]
  21114. 80091f8: 681b ldr r3, [r3, #0]
  21115. 80091fa: f022 020e bic.w r2, r2, #14
  21116. 80091fe: 601a str r2, [r3, #0]
  21117. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  21118. 8009200: 687b ldr r3, [r7, #4]
  21119. 8009202: 681b ldr r3, [r3, #0]
  21120. 8009204: 617b str r3, [r7, #20]
  21121. }
  21122. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21123. 8009206: 687b ldr r3, [r7, #4]
  21124. 8009208: 681b ldr r3, [r3, #0]
  21125. 800920a: 4a3c ldr r2, [pc, #240] @ (80092fc <HAL_DMA_Abort+0x214>)
  21126. 800920c: 4293 cmp r3, r2
  21127. 800920e: d072 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21128. 8009210: 687b ldr r3, [r7, #4]
  21129. 8009212: 681b ldr r3, [r3, #0]
  21130. 8009214: 4a3a ldr r2, [pc, #232] @ (8009300 <HAL_DMA_Abort+0x218>)
  21131. 8009216: 4293 cmp r3, r2
  21132. 8009218: d06d beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21133. 800921a: 687b ldr r3, [r7, #4]
  21134. 800921c: 681b ldr r3, [r3, #0]
  21135. 800921e: 4a39 ldr r2, [pc, #228] @ (8009304 <HAL_DMA_Abort+0x21c>)
  21136. 8009220: 4293 cmp r3, r2
  21137. 8009222: d068 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21138. 8009224: 687b ldr r3, [r7, #4]
  21139. 8009226: 681b ldr r3, [r3, #0]
  21140. 8009228: 4a37 ldr r2, [pc, #220] @ (8009308 <HAL_DMA_Abort+0x220>)
  21141. 800922a: 4293 cmp r3, r2
  21142. 800922c: d063 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21143. 800922e: 687b ldr r3, [r7, #4]
  21144. 8009230: 681b ldr r3, [r3, #0]
  21145. 8009232: 4a36 ldr r2, [pc, #216] @ (800930c <HAL_DMA_Abort+0x224>)
  21146. 8009234: 4293 cmp r3, r2
  21147. 8009236: d05e beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21148. 8009238: 687b ldr r3, [r7, #4]
  21149. 800923a: 681b ldr r3, [r3, #0]
  21150. 800923c: 4a34 ldr r2, [pc, #208] @ (8009310 <HAL_DMA_Abort+0x228>)
  21151. 800923e: 4293 cmp r3, r2
  21152. 8009240: d059 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21153. 8009242: 687b ldr r3, [r7, #4]
  21154. 8009244: 681b ldr r3, [r3, #0]
  21155. 8009246: 4a33 ldr r2, [pc, #204] @ (8009314 <HAL_DMA_Abort+0x22c>)
  21156. 8009248: 4293 cmp r3, r2
  21157. 800924a: d054 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21158. 800924c: 687b ldr r3, [r7, #4]
  21159. 800924e: 681b ldr r3, [r3, #0]
  21160. 8009250: 4a31 ldr r2, [pc, #196] @ (8009318 <HAL_DMA_Abort+0x230>)
  21161. 8009252: 4293 cmp r3, r2
  21162. 8009254: d04f beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21163. 8009256: 687b ldr r3, [r7, #4]
  21164. 8009258: 681b ldr r3, [r3, #0]
  21165. 800925a: 4a30 ldr r2, [pc, #192] @ (800931c <HAL_DMA_Abort+0x234>)
  21166. 800925c: 4293 cmp r3, r2
  21167. 800925e: d04a beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21168. 8009260: 687b ldr r3, [r7, #4]
  21169. 8009262: 681b ldr r3, [r3, #0]
  21170. 8009264: 4a2e ldr r2, [pc, #184] @ (8009320 <HAL_DMA_Abort+0x238>)
  21171. 8009266: 4293 cmp r3, r2
  21172. 8009268: d045 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21173. 800926a: 687b ldr r3, [r7, #4]
  21174. 800926c: 681b ldr r3, [r3, #0]
  21175. 800926e: 4a2d ldr r2, [pc, #180] @ (8009324 <HAL_DMA_Abort+0x23c>)
  21176. 8009270: 4293 cmp r3, r2
  21177. 8009272: d040 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21178. 8009274: 687b ldr r3, [r7, #4]
  21179. 8009276: 681b ldr r3, [r3, #0]
  21180. 8009278: 4a2b ldr r2, [pc, #172] @ (8009328 <HAL_DMA_Abort+0x240>)
  21181. 800927a: 4293 cmp r3, r2
  21182. 800927c: d03b beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21183. 800927e: 687b ldr r3, [r7, #4]
  21184. 8009280: 681b ldr r3, [r3, #0]
  21185. 8009282: 4a2a ldr r2, [pc, #168] @ (800932c <HAL_DMA_Abort+0x244>)
  21186. 8009284: 4293 cmp r3, r2
  21187. 8009286: d036 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21188. 8009288: 687b ldr r3, [r7, #4]
  21189. 800928a: 681b ldr r3, [r3, #0]
  21190. 800928c: 4a28 ldr r2, [pc, #160] @ (8009330 <HAL_DMA_Abort+0x248>)
  21191. 800928e: 4293 cmp r3, r2
  21192. 8009290: d031 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21193. 8009292: 687b ldr r3, [r7, #4]
  21194. 8009294: 681b ldr r3, [r3, #0]
  21195. 8009296: 4a27 ldr r2, [pc, #156] @ (8009334 <HAL_DMA_Abort+0x24c>)
  21196. 8009298: 4293 cmp r3, r2
  21197. 800929a: d02c beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21198. 800929c: 687b ldr r3, [r7, #4]
  21199. 800929e: 681b ldr r3, [r3, #0]
  21200. 80092a0: 4a25 ldr r2, [pc, #148] @ (8009338 <HAL_DMA_Abort+0x250>)
  21201. 80092a2: 4293 cmp r3, r2
  21202. 80092a4: d027 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21203. 80092a6: 687b ldr r3, [r7, #4]
  21204. 80092a8: 681b ldr r3, [r3, #0]
  21205. 80092aa: 4a24 ldr r2, [pc, #144] @ (800933c <HAL_DMA_Abort+0x254>)
  21206. 80092ac: 4293 cmp r3, r2
  21207. 80092ae: d022 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21208. 80092b0: 687b ldr r3, [r7, #4]
  21209. 80092b2: 681b ldr r3, [r3, #0]
  21210. 80092b4: 4a22 ldr r2, [pc, #136] @ (8009340 <HAL_DMA_Abort+0x258>)
  21211. 80092b6: 4293 cmp r3, r2
  21212. 80092b8: d01d beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21213. 80092ba: 687b ldr r3, [r7, #4]
  21214. 80092bc: 681b ldr r3, [r3, #0]
  21215. 80092be: 4a21 ldr r2, [pc, #132] @ (8009344 <HAL_DMA_Abort+0x25c>)
  21216. 80092c0: 4293 cmp r3, r2
  21217. 80092c2: d018 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21218. 80092c4: 687b ldr r3, [r7, #4]
  21219. 80092c6: 681b ldr r3, [r3, #0]
  21220. 80092c8: 4a1f ldr r2, [pc, #124] @ (8009348 <HAL_DMA_Abort+0x260>)
  21221. 80092ca: 4293 cmp r3, r2
  21222. 80092cc: d013 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21223. 80092ce: 687b ldr r3, [r7, #4]
  21224. 80092d0: 681b ldr r3, [r3, #0]
  21225. 80092d2: 4a1e ldr r2, [pc, #120] @ (800934c <HAL_DMA_Abort+0x264>)
  21226. 80092d4: 4293 cmp r3, r2
  21227. 80092d6: d00e beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21228. 80092d8: 687b ldr r3, [r7, #4]
  21229. 80092da: 681b ldr r3, [r3, #0]
  21230. 80092dc: 4a1c ldr r2, [pc, #112] @ (8009350 <HAL_DMA_Abort+0x268>)
  21231. 80092de: 4293 cmp r3, r2
  21232. 80092e0: d009 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21233. 80092e2: 687b ldr r3, [r7, #4]
  21234. 80092e4: 681b ldr r3, [r3, #0]
  21235. 80092e6: 4a1b ldr r2, [pc, #108] @ (8009354 <HAL_DMA_Abort+0x26c>)
  21236. 80092e8: 4293 cmp r3, r2
  21237. 80092ea: d004 beq.n 80092f6 <HAL_DMA_Abort+0x20e>
  21238. 80092ec: 687b ldr r3, [r7, #4]
  21239. 80092ee: 681b ldr r3, [r3, #0]
  21240. 80092f0: 4a19 ldr r2, [pc, #100] @ (8009358 <HAL_DMA_Abort+0x270>)
  21241. 80092f2: 4293 cmp r3, r2
  21242. 80092f4: d132 bne.n 800935c <HAL_DMA_Abort+0x274>
  21243. 80092f6: 2301 movs r3, #1
  21244. 80092f8: e031 b.n 800935e <HAL_DMA_Abort+0x276>
  21245. 80092fa: bf00 nop
  21246. 80092fc: 40020010 .word 0x40020010
  21247. 8009300: 40020028 .word 0x40020028
  21248. 8009304: 40020040 .word 0x40020040
  21249. 8009308: 40020058 .word 0x40020058
  21250. 800930c: 40020070 .word 0x40020070
  21251. 8009310: 40020088 .word 0x40020088
  21252. 8009314: 400200a0 .word 0x400200a0
  21253. 8009318: 400200b8 .word 0x400200b8
  21254. 800931c: 40020410 .word 0x40020410
  21255. 8009320: 40020428 .word 0x40020428
  21256. 8009324: 40020440 .word 0x40020440
  21257. 8009328: 40020458 .word 0x40020458
  21258. 800932c: 40020470 .word 0x40020470
  21259. 8009330: 40020488 .word 0x40020488
  21260. 8009334: 400204a0 .word 0x400204a0
  21261. 8009338: 400204b8 .word 0x400204b8
  21262. 800933c: 58025408 .word 0x58025408
  21263. 8009340: 5802541c .word 0x5802541c
  21264. 8009344: 58025430 .word 0x58025430
  21265. 8009348: 58025444 .word 0x58025444
  21266. 800934c: 58025458 .word 0x58025458
  21267. 8009350: 5802546c .word 0x5802546c
  21268. 8009354: 58025480 .word 0x58025480
  21269. 8009358: 58025494 .word 0x58025494
  21270. 800935c: 2300 movs r3, #0
  21271. 800935e: 2b00 cmp r3, #0
  21272. 8009360: d007 beq.n 8009372 <HAL_DMA_Abort+0x28a>
  21273. {
  21274. /* disable the DMAMUX sync overrun IT */
  21275. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21276. 8009362: 687b ldr r3, [r7, #4]
  21277. 8009364: 6e1b ldr r3, [r3, #96] @ 0x60
  21278. 8009366: 681a ldr r2, [r3, #0]
  21279. 8009368: 687b ldr r3, [r7, #4]
  21280. 800936a: 6e1b ldr r3, [r3, #96] @ 0x60
  21281. 800936c: f422 7280 bic.w r2, r2, #256 @ 0x100
  21282. 8009370: 601a str r2, [r3, #0]
  21283. }
  21284. /* Disable the stream */
  21285. __HAL_DMA_DISABLE(hdma);
  21286. 8009372: 687b ldr r3, [r7, #4]
  21287. 8009374: 681b ldr r3, [r3, #0]
  21288. 8009376: 4a6d ldr r2, [pc, #436] @ (800952c <HAL_DMA_Abort+0x444>)
  21289. 8009378: 4293 cmp r3, r2
  21290. 800937a: d04a beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21291. 800937c: 687b ldr r3, [r7, #4]
  21292. 800937e: 681b ldr r3, [r3, #0]
  21293. 8009380: 4a6b ldr r2, [pc, #428] @ (8009530 <HAL_DMA_Abort+0x448>)
  21294. 8009382: 4293 cmp r3, r2
  21295. 8009384: d045 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21296. 8009386: 687b ldr r3, [r7, #4]
  21297. 8009388: 681b ldr r3, [r3, #0]
  21298. 800938a: 4a6a ldr r2, [pc, #424] @ (8009534 <HAL_DMA_Abort+0x44c>)
  21299. 800938c: 4293 cmp r3, r2
  21300. 800938e: d040 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21301. 8009390: 687b ldr r3, [r7, #4]
  21302. 8009392: 681b ldr r3, [r3, #0]
  21303. 8009394: 4a68 ldr r2, [pc, #416] @ (8009538 <HAL_DMA_Abort+0x450>)
  21304. 8009396: 4293 cmp r3, r2
  21305. 8009398: d03b beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21306. 800939a: 687b ldr r3, [r7, #4]
  21307. 800939c: 681b ldr r3, [r3, #0]
  21308. 800939e: 4a67 ldr r2, [pc, #412] @ (800953c <HAL_DMA_Abort+0x454>)
  21309. 80093a0: 4293 cmp r3, r2
  21310. 80093a2: d036 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21311. 80093a4: 687b ldr r3, [r7, #4]
  21312. 80093a6: 681b ldr r3, [r3, #0]
  21313. 80093a8: 4a65 ldr r2, [pc, #404] @ (8009540 <HAL_DMA_Abort+0x458>)
  21314. 80093aa: 4293 cmp r3, r2
  21315. 80093ac: d031 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21316. 80093ae: 687b ldr r3, [r7, #4]
  21317. 80093b0: 681b ldr r3, [r3, #0]
  21318. 80093b2: 4a64 ldr r2, [pc, #400] @ (8009544 <HAL_DMA_Abort+0x45c>)
  21319. 80093b4: 4293 cmp r3, r2
  21320. 80093b6: d02c beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21321. 80093b8: 687b ldr r3, [r7, #4]
  21322. 80093ba: 681b ldr r3, [r3, #0]
  21323. 80093bc: 4a62 ldr r2, [pc, #392] @ (8009548 <HAL_DMA_Abort+0x460>)
  21324. 80093be: 4293 cmp r3, r2
  21325. 80093c0: d027 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21326. 80093c2: 687b ldr r3, [r7, #4]
  21327. 80093c4: 681b ldr r3, [r3, #0]
  21328. 80093c6: 4a61 ldr r2, [pc, #388] @ (800954c <HAL_DMA_Abort+0x464>)
  21329. 80093c8: 4293 cmp r3, r2
  21330. 80093ca: d022 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21331. 80093cc: 687b ldr r3, [r7, #4]
  21332. 80093ce: 681b ldr r3, [r3, #0]
  21333. 80093d0: 4a5f ldr r2, [pc, #380] @ (8009550 <HAL_DMA_Abort+0x468>)
  21334. 80093d2: 4293 cmp r3, r2
  21335. 80093d4: d01d beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21336. 80093d6: 687b ldr r3, [r7, #4]
  21337. 80093d8: 681b ldr r3, [r3, #0]
  21338. 80093da: 4a5e ldr r2, [pc, #376] @ (8009554 <HAL_DMA_Abort+0x46c>)
  21339. 80093dc: 4293 cmp r3, r2
  21340. 80093de: d018 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21341. 80093e0: 687b ldr r3, [r7, #4]
  21342. 80093e2: 681b ldr r3, [r3, #0]
  21343. 80093e4: 4a5c ldr r2, [pc, #368] @ (8009558 <HAL_DMA_Abort+0x470>)
  21344. 80093e6: 4293 cmp r3, r2
  21345. 80093e8: d013 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21346. 80093ea: 687b ldr r3, [r7, #4]
  21347. 80093ec: 681b ldr r3, [r3, #0]
  21348. 80093ee: 4a5b ldr r2, [pc, #364] @ (800955c <HAL_DMA_Abort+0x474>)
  21349. 80093f0: 4293 cmp r3, r2
  21350. 80093f2: d00e beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21351. 80093f4: 687b ldr r3, [r7, #4]
  21352. 80093f6: 681b ldr r3, [r3, #0]
  21353. 80093f8: 4a59 ldr r2, [pc, #356] @ (8009560 <HAL_DMA_Abort+0x478>)
  21354. 80093fa: 4293 cmp r3, r2
  21355. 80093fc: d009 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21356. 80093fe: 687b ldr r3, [r7, #4]
  21357. 8009400: 681b ldr r3, [r3, #0]
  21358. 8009402: 4a58 ldr r2, [pc, #352] @ (8009564 <HAL_DMA_Abort+0x47c>)
  21359. 8009404: 4293 cmp r3, r2
  21360. 8009406: d004 beq.n 8009412 <HAL_DMA_Abort+0x32a>
  21361. 8009408: 687b ldr r3, [r7, #4]
  21362. 800940a: 681b ldr r3, [r3, #0]
  21363. 800940c: 4a56 ldr r2, [pc, #344] @ (8009568 <HAL_DMA_Abort+0x480>)
  21364. 800940e: 4293 cmp r3, r2
  21365. 8009410: d108 bne.n 8009424 <HAL_DMA_Abort+0x33c>
  21366. 8009412: 687b ldr r3, [r7, #4]
  21367. 8009414: 681b ldr r3, [r3, #0]
  21368. 8009416: 681a ldr r2, [r3, #0]
  21369. 8009418: 687b ldr r3, [r7, #4]
  21370. 800941a: 681b ldr r3, [r3, #0]
  21371. 800941c: f022 0201 bic.w r2, r2, #1
  21372. 8009420: 601a str r2, [r3, #0]
  21373. 8009422: e007 b.n 8009434 <HAL_DMA_Abort+0x34c>
  21374. 8009424: 687b ldr r3, [r7, #4]
  21375. 8009426: 681b ldr r3, [r3, #0]
  21376. 8009428: 681a ldr r2, [r3, #0]
  21377. 800942a: 687b ldr r3, [r7, #4]
  21378. 800942c: 681b ldr r3, [r3, #0]
  21379. 800942e: f022 0201 bic.w r2, r2, #1
  21380. 8009432: 601a str r2, [r3, #0]
  21381. /* Check if the DMA Stream is effectively disabled */
  21382. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21383. 8009434: e013 b.n 800945e <HAL_DMA_Abort+0x376>
  21384. {
  21385. /* Check for the Timeout */
  21386. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  21387. 8009436: f7fc fcf5 bl 8005e24 <HAL_GetTick>
  21388. 800943a: 4602 mov r2, r0
  21389. 800943c: 693b ldr r3, [r7, #16]
  21390. 800943e: 1ad3 subs r3, r2, r3
  21391. 8009440: 2b05 cmp r3, #5
  21392. 8009442: d90c bls.n 800945e <HAL_DMA_Abort+0x376>
  21393. {
  21394. /* Update error code */
  21395. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  21396. 8009444: 687b ldr r3, [r7, #4]
  21397. 8009446: 2220 movs r2, #32
  21398. 8009448: 655a str r2, [r3, #84] @ 0x54
  21399. /* Change the DMA state */
  21400. hdma->State = HAL_DMA_STATE_ERROR;
  21401. 800944a: 687b ldr r3, [r7, #4]
  21402. 800944c: 2203 movs r2, #3
  21403. 800944e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21404. /* Process Unlocked */
  21405. __HAL_UNLOCK(hdma);
  21406. 8009452: 687b ldr r3, [r7, #4]
  21407. 8009454: 2200 movs r2, #0
  21408. 8009456: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21409. return HAL_ERROR;
  21410. 800945a: 2301 movs r3, #1
  21411. 800945c: e12d b.n 80096ba <HAL_DMA_Abort+0x5d2>
  21412. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21413. 800945e: 697b ldr r3, [r7, #20]
  21414. 8009460: 681b ldr r3, [r3, #0]
  21415. 8009462: f003 0301 and.w r3, r3, #1
  21416. 8009466: 2b00 cmp r3, #0
  21417. 8009468: d1e5 bne.n 8009436 <HAL_DMA_Abort+0x34e>
  21418. }
  21419. }
  21420. /* Clear all interrupt flags at correct offset within the register */
  21421. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21422. 800946a: 687b ldr r3, [r7, #4]
  21423. 800946c: 681b ldr r3, [r3, #0]
  21424. 800946e: 4a2f ldr r2, [pc, #188] @ (800952c <HAL_DMA_Abort+0x444>)
  21425. 8009470: 4293 cmp r3, r2
  21426. 8009472: d04a beq.n 800950a <HAL_DMA_Abort+0x422>
  21427. 8009474: 687b ldr r3, [r7, #4]
  21428. 8009476: 681b ldr r3, [r3, #0]
  21429. 8009478: 4a2d ldr r2, [pc, #180] @ (8009530 <HAL_DMA_Abort+0x448>)
  21430. 800947a: 4293 cmp r3, r2
  21431. 800947c: d045 beq.n 800950a <HAL_DMA_Abort+0x422>
  21432. 800947e: 687b ldr r3, [r7, #4]
  21433. 8009480: 681b ldr r3, [r3, #0]
  21434. 8009482: 4a2c ldr r2, [pc, #176] @ (8009534 <HAL_DMA_Abort+0x44c>)
  21435. 8009484: 4293 cmp r3, r2
  21436. 8009486: d040 beq.n 800950a <HAL_DMA_Abort+0x422>
  21437. 8009488: 687b ldr r3, [r7, #4]
  21438. 800948a: 681b ldr r3, [r3, #0]
  21439. 800948c: 4a2a ldr r2, [pc, #168] @ (8009538 <HAL_DMA_Abort+0x450>)
  21440. 800948e: 4293 cmp r3, r2
  21441. 8009490: d03b beq.n 800950a <HAL_DMA_Abort+0x422>
  21442. 8009492: 687b ldr r3, [r7, #4]
  21443. 8009494: 681b ldr r3, [r3, #0]
  21444. 8009496: 4a29 ldr r2, [pc, #164] @ (800953c <HAL_DMA_Abort+0x454>)
  21445. 8009498: 4293 cmp r3, r2
  21446. 800949a: d036 beq.n 800950a <HAL_DMA_Abort+0x422>
  21447. 800949c: 687b ldr r3, [r7, #4]
  21448. 800949e: 681b ldr r3, [r3, #0]
  21449. 80094a0: 4a27 ldr r2, [pc, #156] @ (8009540 <HAL_DMA_Abort+0x458>)
  21450. 80094a2: 4293 cmp r3, r2
  21451. 80094a4: d031 beq.n 800950a <HAL_DMA_Abort+0x422>
  21452. 80094a6: 687b ldr r3, [r7, #4]
  21453. 80094a8: 681b ldr r3, [r3, #0]
  21454. 80094aa: 4a26 ldr r2, [pc, #152] @ (8009544 <HAL_DMA_Abort+0x45c>)
  21455. 80094ac: 4293 cmp r3, r2
  21456. 80094ae: d02c beq.n 800950a <HAL_DMA_Abort+0x422>
  21457. 80094b0: 687b ldr r3, [r7, #4]
  21458. 80094b2: 681b ldr r3, [r3, #0]
  21459. 80094b4: 4a24 ldr r2, [pc, #144] @ (8009548 <HAL_DMA_Abort+0x460>)
  21460. 80094b6: 4293 cmp r3, r2
  21461. 80094b8: d027 beq.n 800950a <HAL_DMA_Abort+0x422>
  21462. 80094ba: 687b ldr r3, [r7, #4]
  21463. 80094bc: 681b ldr r3, [r3, #0]
  21464. 80094be: 4a23 ldr r2, [pc, #140] @ (800954c <HAL_DMA_Abort+0x464>)
  21465. 80094c0: 4293 cmp r3, r2
  21466. 80094c2: d022 beq.n 800950a <HAL_DMA_Abort+0x422>
  21467. 80094c4: 687b ldr r3, [r7, #4]
  21468. 80094c6: 681b ldr r3, [r3, #0]
  21469. 80094c8: 4a21 ldr r2, [pc, #132] @ (8009550 <HAL_DMA_Abort+0x468>)
  21470. 80094ca: 4293 cmp r3, r2
  21471. 80094cc: d01d beq.n 800950a <HAL_DMA_Abort+0x422>
  21472. 80094ce: 687b ldr r3, [r7, #4]
  21473. 80094d0: 681b ldr r3, [r3, #0]
  21474. 80094d2: 4a20 ldr r2, [pc, #128] @ (8009554 <HAL_DMA_Abort+0x46c>)
  21475. 80094d4: 4293 cmp r3, r2
  21476. 80094d6: d018 beq.n 800950a <HAL_DMA_Abort+0x422>
  21477. 80094d8: 687b ldr r3, [r7, #4]
  21478. 80094da: 681b ldr r3, [r3, #0]
  21479. 80094dc: 4a1e ldr r2, [pc, #120] @ (8009558 <HAL_DMA_Abort+0x470>)
  21480. 80094de: 4293 cmp r3, r2
  21481. 80094e0: d013 beq.n 800950a <HAL_DMA_Abort+0x422>
  21482. 80094e2: 687b ldr r3, [r7, #4]
  21483. 80094e4: 681b ldr r3, [r3, #0]
  21484. 80094e6: 4a1d ldr r2, [pc, #116] @ (800955c <HAL_DMA_Abort+0x474>)
  21485. 80094e8: 4293 cmp r3, r2
  21486. 80094ea: d00e beq.n 800950a <HAL_DMA_Abort+0x422>
  21487. 80094ec: 687b ldr r3, [r7, #4]
  21488. 80094ee: 681b ldr r3, [r3, #0]
  21489. 80094f0: 4a1b ldr r2, [pc, #108] @ (8009560 <HAL_DMA_Abort+0x478>)
  21490. 80094f2: 4293 cmp r3, r2
  21491. 80094f4: d009 beq.n 800950a <HAL_DMA_Abort+0x422>
  21492. 80094f6: 687b ldr r3, [r7, #4]
  21493. 80094f8: 681b ldr r3, [r3, #0]
  21494. 80094fa: 4a1a ldr r2, [pc, #104] @ (8009564 <HAL_DMA_Abort+0x47c>)
  21495. 80094fc: 4293 cmp r3, r2
  21496. 80094fe: d004 beq.n 800950a <HAL_DMA_Abort+0x422>
  21497. 8009500: 687b ldr r3, [r7, #4]
  21498. 8009502: 681b ldr r3, [r3, #0]
  21499. 8009504: 4a18 ldr r2, [pc, #96] @ (8009568 <HAL_DMA_Abort+0x480>)
  21500. 8009506: 4293 cmp r3, r2
  21501. 8009508: d101 bne.n 800950e <HAL_DMA_Abort+0x426>
  21502. 800950a: 2301 movs r3, #1
  21503. 800950c: e000 b.n 8009510 <HAL_DMA_Abort+0x428>
  21504. 800950e: 2300 movs r3, #0
  21505. 8009510: 2b00 cmp r3, #0
  21506. 8009512: d02b beq.n 800956c <HAL_DMA_Abort+0x484>
  21507. {
  21508. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21509. 8009514: 687b ldr r3, [r7, #4]
  21510. 8009516: 6d9b ldr r3, [r3, #88] @ 0x58
  21511. 8009518: 60bb str r3, [r7, #8]
  21512. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  21513. 800951a: 687b ldr r3, [r7, #4]
  21514. 800951c: 6ddb ldr r3, [r3, #92] @ 0x5c
  21515. 800951e: f003 031f and.w r3, r3, #31
  21516. 8009522: 223f movs r2, #63 @ 0x3f
  21517. 8009524: 409a lsls r2, r3
  21518. 8009526: 68bb ldr r3, [r7, #8]
  21519. 8009528: 609a str r2, [r3, #8]
  21520. 800952a: e02a b.n 8009582 <HAL_DMA_Abort+0x49a>
  21521. 800952c: 40020010 .word 0x40020010
  21522. 8009530: 40020028 .word 0x40020028
  21523. 8009534: 40020040 .word 0x40020040
  21524. 8009538: 40020058 .word 0x40020058
  21525. 800953c: 40020070 .word 0x40020070
  21526. 8009540: 40020088 .word 0x40020088
  21527. 8009544: 400200a0 .word 0x400200a0
  21528. 8009548: 400200b8 .word 0x400200b8
  21529. 800954c: 40020410 .word 0x40020410
  21530. 8009550: 40020428 .word 0x40020428
  21531. 8009554: 40020440 .word 0x40020440
  21532. 8009558: 40020458 .word 0x40020458
  21533. 800955c: 40020470 .word 0x40020470
  21534. 8009560: 40020488 .word 0x40020488
  21535. 8009564: 400204a0 .word 0x400204a0
  21536. 8009568: 400204b8 .word 0x400204b8
  21537. }
  21538. else /* BDMA channel */
  21539. {
  21540. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21541. 800956c: 687b ldr r3, [r7, #4]
  21542. 800956e: 6d9b ldr r3, [r3, #88] @ 0x58
  21543. 8009570: 60fb str r3, [r7, #12]
  21544. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21545. 8009572: 687b ldr r3, [r7, #4]
  21546. 8009574: 6ddb ldr r3, [r3, #92] @ 0x5c
  21547. 8009576: f003 031f and.w r3, r3, #31
  21548. 800957a: 2201 movs r2, #1
  21549. 800957c: 409a lsls r2, r3
  21550. 800957e: 68fb ldr r3, [r7, #12]
  21551. 8009580: 605a str r2, [r3, #4]
  21552. }
  21553. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21554. 8009582: 687b ldr r3, [r7, #4]
  21555. 8009584: 681b ldr r3, [r3, #0]
  21556. 8009586: 4a4f ldr r2, [pc, #316] @ (80096c4 <HAL_DMA_Abort+0x5dc>)
  21557. 8009588: 4293 cmp r3, r2
  21558. 800958a: d072 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21559. 800958c: 687b ldr r3, [r7, #4]
  21560. 800958e: 681b ldr r3, [r3, #0]
  21561. 8009590: 4a4d ldr r2, [pc, #308] @ (80096c8 <HAL_DMA_Abort+0x5e0>)
  21562. 8009592: 4293 cmp r3, r2
  21563. 8009594: d06d beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21564. 8009596: 687b ldr r3, [r7, #4]
  21565. 8009598: 681b ldr r3, [r3, #0]
  21566. 800959a: 4a4c ldr r2, [pc, #304] @ (80096cc <HAL_DMA_Abort+0x5e4>)
  21567. 800959c: 4293 cmp r3, r2
  21568. 800959e: d068 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21569. 80095a0: 687b ldr r3, [r7, #4]
  21570. 80095a2: 681b ldr r3, [r3, #0]
  21571. 80095a4: 4a4a ldr r2, [pc, #296] @ (80096d0 <HAL_DMA_Abort+0x5e8>)
  21572. 80095a6: 4293 cmp r3, r2
  21573. 80095a8: d063 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21574. 80095aa: 687b ldr r3, [r7, #4]
  21575. 80095ac: 681b ldr r3, [r3, #0]
  21576. 80095ae: 4a49 ldr r2, [pc, #292] @ (80096d4 <HAL_DMA_Abort+0x5ec>)
  21577. 80095b0: 4293 cmp r3, r2
  21578. 80095b2: d05e beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21579. 80095b4: 687b ldr r3, [r7, #4]
  21580. 80095b6: 681b ldr r3, [r3, #0]
  21581. 80095b8: 4a47 ldr r2, [pc, #284] @ (80096d8 <HAL_DMA_Abort+0x5f0>)
  21582. 80095ba: 4293 cmp r3, r2
  21583. 80095bc: d059 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21584. 80095be: 687b ldr r3, [r7, #4]
  21585. 80095c0: 681b ldr r3, [r3, #0]
  21586. 80095c2: 4a46 ldr r2, [pc, #280] @ (80096dc <HAL_DMA_Abort+0x5f4>)
  21587. 80095c4: 4293 cmp r3, r2
  21588. 80095c6: d054 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21589. 80095c8: 687b ldr r3, [r7, #4]
  21590. 80095ca: 681b ldr r3, [r3, #0]
  21591. 80095cc: 4a44 ldr r2, [pc, #272] @ (80096e0 <HAL_DMA_Abort+0x5f8>)
  21592. 80095ce: 4293 cmp r3, r2
  21593. 80095d0: d04f beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21594. 80095d2: 687b ldr r3, [r7, #4]
  21595. 80095d4: 681b ldr r3, [r3, #0]
  21596. 80095d6: 4a43 ldr r2, [pc, #268] @ (80096e4 <HAL_DMA_Abort+0x5fc>)
  21597. 80095d8: 4293 cmp r3, r2
  21598. 80095da: d04a beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21599. 80095dc: 687b ldr r3, [r7, #4]
  21600. 80095de: 681b ldr r3, [r3, #0]
  21601. 80095e0: 4a41 ldr r2, [pc, #260] @ (80096e8 <HAL_DMA_Abort+0x600>)
  21602. 80095e2: 4293 cmp r3, r2
  21603. 80095e4: d045 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21604. 80095e6: 687b ldr r3, [r7, #4]
  21605. 80095e8: 681b ldr r3, [r3, #0]
  21606. 80095ea: 4a40 ldr r2, [pc, #256] @ (80096ec <HAL_DMA_Abort+0x604>)
  21607. 80095ec: 4293 cmp r3, r2
  21608. 80095ee: d040 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21609. 80095f0: 687b ldr r3, [r7, #4]
  21610. 80095f2: 681b ldr r3, [r3, #0]
  21611. 80095f4: 4a3e ldr r2, [pc, #248] @ (80096f0 <HAL_DMA_Abort+0x608>)
  21612. 80095f6: 4293 cmp r3, r2
  21613. 80095f8: d03b beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21614. 80095fa: 687b ldr r3, [r7, #4]
  21615. 80095fc: 681b ldr r3, [r3, #0]
  21616. 80095fe: 4a3d ldr r2, [pc, #244] @ (80096f4 <HAL_DMA_Abort+0x60c>)
  21617. 8009600: 4293 cmp r3, r2
  21618. 8009602: d036 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21619. 8009604: 687b ldr r3, [r7, #4]
  21620. 8009606: 681b ldr r3, [r3, #0]
  21621. 8009608: 4a3b ldr r2, [pc, #236] @ (80096f8 <HAL_DMA_Abort+0x610>)
  21622. 800960a: 4293 cmp r3, r2
  21623. 800960c: d031 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21624. 800960e: 687b ldr r3, [r7, #4]
  21625. 8009610: 681b ldr r3, [r3, #0]
  21626. 8009612: 4a3a ldr r2, [pc, #232] @ (80096fc <HAL_DMA_Abort+0x614>)
  21627. 8009614: 4293 cmp r3, r2
  21628. 8009616: d02c beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21629. 8009618: 687b ldr r3, [r7, #4]
  21630. 800961a: 681b ldr r3, [r3, #0]
  21631. 800961c: 4a38 ldr r2, [pc, #224] @ (8009700 <HAL_DMA_Abort+0x618>)
  21632. 800961e: 4293 cmp r3, r2
  21633. 8009620: d027 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21634. 8009622: 687b ldr r3, [r7, #4]
  21635. 8009624: 681b ldr r3, [r3, #0]
  21636. 8009626: 4a37 ldr r2, [pc, #220] @ (8009704 <HAL_DMA_Abort+0x61c>)
  21637. 8009628: 4293 cmp r3, r2
  21638. 800962a: d022 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21639. 800962c: 687b ldr r3, [r7, #4]
  21640. 800962e: 681b ldr r3, [r3, #0]
  21641. 8009630: 4a35 ldr r2, [pc, #212] @ (8009708 <HAL_DMA_Abort+0x620>)
  21642. 8009632: 4293 cmp r3, r2
  21643. 8009634: d01d beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21644. 8009636: 687b ldr r3, [r7, #4]
  21645. 8009638: 681b ldr r3, [r3, #0]
  21646. 800963a: 4a34 ldr r2, [pc, #208] @ (800970c <HAL_DMA_Abort+0x624>)
  21647. 800963c: 4293 cmp r3, r2
  21648. 800963e: d018 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21649. 8009640: 687b ldr r3, [r7, #4]
  21650. 8009642: 681b ldr r3, [r3, #0]
  21651. 8009644: 4a32 ldr r2, [pc, #200] @ (8009710 <HAL_DMA_Abort+0x628>)
  21652. 8009646: 4293 cmp r3, r2
  21653. 8009648: d013 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21654. 800964a: 687b ldr r3, [r7, #4]
  21655. 800964c: 681b ldr r3, [r3, #0]
  21656. 800964e: 4a31 ldr r2, [pc, #196] @ (8009714 <HAL_DMA_Abort+0x62c>)
  21657. 8009650: 4293 cmp r3, r2
  21658. 8009652: d00e beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21659. 8009654: 687b ldr r3, [r7, #4]
  21660. 8009656: 681b ldr r3, [r3, #0]
  21661. 8009658: 4a2f ldr r2, [pc, #188] @ (8009718 <HAL_DMA_Abort+0x630>)
  21662. 800965a: 4293 cmp r3, r2
  21663. 800965c: d009 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21664. 800965e: 687b ldr r3, [r7, #4]
  21665. 8009660: 681b ldr r3, [r3, #0]
  21666. 8009662: 4a2e ldr r2, [pc, #184] @ (800971c <HAL_DMA_Abort+0x634>)
  21667. 8009664: 4293 cmp r3, r2
  21668. 8009666: d004 beq.n 8009672 <HAL_DMA_Abort+0x58a>
  21669. 8009668: 687b ldr r3, [r7, #4]
  21670. 800966a: 681b ldr r3, [r3, #0]
  21671. 800966c: 4a2c ldr r2, [pc, #176] @ (8009720 <HAL_DMA_Abort+0x638>)
  21672. 800966e: 4293 cmp r3, r2
  21673. 8009670: d101 bne.n 8009676 <HAL_DMA_Abort+0x58e>
  21674. 8009672: 2301 movs r3, #1
  21675. 8009674: e000 b.n 8009678 <HAL_DMA_Abort+0x590>
  21676. 8009676: 2300 movs r3, #0
  21677. 8009678: 2b00 cmp r3, #0
  21678. 800967a: d015 beq.n 80096a8 <HAL_DMA_Abort+0x5c0>
  21679. {
  21680. /* Clear the DMAMUX synchro overrun flag */
  21681. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21682. 800967c: 687b ldr r3, [r7, #4]
  21683. 800967e: 6e5b ldr r3, [r3, #100] @ 0x64
  21684. 8009680: 687a ldr r2, [r7, #4]
  21685. 8009682: 6e92 ldr r2, [r2, #104] @ 0x68
  21686. 8009684: 605a str r2, [r3, #4]
  21687. if(hdma->DMAmuxRequestGen != 0U)
  21688. 8009686: 687b ldr r3, [r7, #4]
  21689. 8009688: 6edb ldr r3, [r3, #108] @ 0x6c
  21690. 800968a: 2b00 cmp r3, #0
  21691. 800968c: d00c beq.n 80096a8 <HAL_DMA_Abort+0x5c0>
  21692. {
  21693. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  21694. /* disable the request gen overrun IT */
  21695. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21696. 800968e: 687b ldr r3, [r7, #4]
  21697. 8009690: 6edb ldr r3, [r3, #108] @ 0x6c
  21698. 8009692: 681a ldr r2, [r3, #0]
  21699. 8009694: 687b ldr r3, [r7, #4]
  21700. 8009696: 6edb ldr r3, [r3, #108] @ 0x6c
  21701. 8009698: f422 7280 bic.w r2, r2, #256 @ 0x100
  21702. 800969c: 601a str r2, [r3, #0]
  21703. /* Clear the DMAMUX request generator overrun flag */
  21704. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21705. 800969e: 687b ldr r3, [r7, #4]
  21706. 80096a0: 6f1b ldr r3, [r3, #112] @ 0x70
  21707. 80096a2: 687a ldr r2, [r7, #4]
  21708. 80096a4: 6f52 ldr r2, [r2, #116] @ 0x74
  21709. 80096a6: 605a str r2, [r3, #4]
  21710. }
  21711. }
  21712. /* Change the DMA state */
  21713. hdma->State = HAL_DMA_STATE_READY;
  21714. 80096a8: 687b ldr r3, [r7, #4]
  21715. 80096aa: 2201 movs r2, #1
  21716. 80096ac: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21717. /* Process Unlocked */
  21718. __HAL_UNLOCK(hdma);
  21719. 80096b0: 687b ldr r3, [r7, #4]
  21720. 80096b2: 2200 movs r2, #0
  21721. 80096b4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21722. }
  21723. return HAL_OK;
  21724. 80096b8: 2300 movs r3, #0
  21725. }
  21726. 80096ba: 4618 mov r0, r3
  21727. 80096bc: 3718 adds r7, #24
  21728. 80096be: 46bd mov sp, r7
  21729. 80096c0: bd80 pop {r7, pc}
  21730. 80096c2: bf00 nop
  21731. 80096c4: 40020010 .word 0x40020010
  21732. 80096c8: 40020028 .word 0x40020028
  21733. 80096cc: 40020040 .word 0x40020040
  21734. 80096d0: 40020058 .word 0x40020058
  21735. 80096d4: 40020070 .word 0x40020070
  21736. 80096d8: 40020088 .word 0x40020088
  21737. 80096dc: 400200a0 .word 0x400200a0
  21738. 80096e0: 400200b8 .word 0x400200b8
  21739. 80096e4: 40020410 .word 0x40020410
  21740. 80096e8: 40020428 .word 0x40020428
  21741. 80096ec: 40020440 .word 0x40020440
  21742. 80096f0: 40020458 .word 0x40020458
  21743. 80096f4: 40020470 .word 0x40020470
  21744. 80096f8: 40020488 .word 0x40020488
  21745. 80096fc: 400204a0 .word 0x400204a0
  21746. 8009700: 400204b8 .word 0x400204b8
  21747. 8009704: 58025408 .word 0x58025408
  21748. 8009708: 5802541c .word 0x5802541c
  21749. 800970c: 58025430 .word 0x58025430
  21750. 8009710: 58025444 .word 0x58025444
  21751. 8009714: 58025458 .word 0x58025458
  21752. 8009718: 5802546c .word 0x5802546c
  21753. 800971c: 58025480 .word 0x58025480
  21754. 8009720: 58025494 .word 0x58025494
  21755. 08009724 <HAL_DMA_Abort_IT>:
  21756. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  21757. * the configuration information for the specified DMA Stream.
  21758. * @retval HAL status
  21759. */
  21760. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  21761. {
  21762. 8009724: b580 push {r7, lr}
  21763. 8009726: b084 sub sp, #16
  21764. 8009728: af00 add r7, sp, #0
  21765. 800972a: 6078 str r0, [r7, #4]
  21766. BDMA_Base_Registers *regs_bdma;
  21767. /* Check the DMA peripheral handle */
  21768. if(hdma == NULL)
  21769. 800972c: 687b ldr r3, [r7, #4]
  21770. 800972e: 2b00 cmp r3, #0
  21771. 8009730: d101 bne.n 8009736 <HAL_DMA_Abort_IT+0x12>
  21772. {
  21773. return HAL_ERROR;
  21774. 8009732: 2301 movs r3, #1
  21775. 8009734: e237 b.n 8009ba6 <HAL_DMA_Abort_IT+0x482>
  21776. }
  21777. if(hdma->State != HAL_DMA_STATE_BUSY)
  21778. 8009736: 687b ldr r3, [r7, #4]
  21779. 8009738: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21780. 800973c: b2db uxtb r3, r3
  21781. 800973e: 2b02 cmp r3, #2
  21782. 8009740: d004 beq.n 800974c <HAL_DMA_Abort_IT+0x28>
  21783. {
  21784. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21785. 8009742: 687b ldr r3, [r7, #4]
  21786. 8009744: 2280 movs r2, #128 @ 0x80
  21787. 8009746: 655a str r2, [r3, #84] @ 0x54
  21788. return HAL_ERROR;
  21789. 8009748: 2301 movs r3, #1
  21790. 800974a: e22c b.n 8009ba6 <HAL_DMA_Abort_IT+0x482>
  21791. }
  21792. else
  21793. {
  21794. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21795. 800974c: 687b ldr r3, [r7, #4]
  21796. 800974e: 681b ldr r3, [r3, #0]
  21797. 8009750: 4a5c ldr r2, [pc, #368] @ (80098c4 <HAL_DMA_Abort_IT+0x1a0>)
  21798. 8009752: 4293 cmp r3, r2
  21799. 8009754: d04a beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21800. 8009756: 687b ldr r3, [r7, #4]
  21801. 8009758: 681b ldr r3, [r3, #0]
  21802. 800975a: 4a5b ldr r2, [pc, #364] @ (80098c8 <HAL_DMA_Abort_IT+0x1a4>)
  21803. 800975c: 4293 cmp r3, r2
  21804. 800975e: d045 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21805. 8009760: 687b ldr r3, [r7, #4]
  21806. 8009762: 681b ldr r3, [r3, #0]
  21807. 8009764: 4a59 ldr r2, [pc, #356] @ (80098cc <HAL_DMA_Abort_IT+0x1a8>)
  21808. 8009766: 4293 cmp r3, r2
  21809. 8009768: d040 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21810. 800976a: 687b ldr r3, [r7, #4]
  21811. 800976c: 681b ldr r3, [r3, #0]
  21812. 800976e: 4a58 ldr r2, [pc, #352] @ (80098d0 <HAL_DMA_Abort_IT+0x1ac>)
  21813. 8009770: 4293 cmp r3, r2
  21814. 8009772: d03b beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21815. 8009774: 687b ldr r3, [r7, #4]
  21816. 8009776: 681b ldr r3, [r3, #0]
  21817. 8009778: 4a56 ldr r2, [pc, #344] @ (80098d4 <HAL_DMA_Abort_IT+0x1b0>)
  21818. 800977a: 4293 cmp r3, r2
  21819. 800977c: d036 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21820. 800977e: 687b ldr r3, [r7, #4]
  21821. 8009780: 681b ldr r3, [r3, #0]
  21822. 8009782: 4a55 ldr r2, [pc, #340] @ (80098d8 <HAL_DMA_Abort_IT+0x1b4>)
  21823. 8009784: 4293 cmp r3, r2
  21824. 8009786: d031 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21825. 8009788: 687b ldr r3, [r7, #4]
  21826. 800978a: 681b ldr r3, [r3, #0]
  21827. 800978c: 4a53 ldr r2, [pc, #332] @ (80098dc <HAL_DMA_Abort_IT+0x1b8>)
  21828. 800978e: 4293 cmp r3, r2
  21829. 8009790: d02c beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21830. 8009792: 687b ldr r3, [r7, #4]
  21831. 8009794: 681b ldr r3, [r3, #0]
  21832. 8009796: 4a52 ldr r2, [pc, #328] @ (80098e0 <HAL_DMA_Abort_IT+0x1bc>)
  21833. 8009798: 4293 cmp r3, r2
  21834. 800979a: d027 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21835. 800979c: 687b ldr r3, [r7, #4]
  21836. 800979e: 681b ldr r3, [r3, #0]
  21837. 80097a0: 4a50 ldr r2, [pc, #320] @ (80098e4 <HAL_DMA_Abort_IT+0x1c0>)
  21838. 80097a2: 4293 cmp r3, r2
  21839. 80097a4: d022 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21840. 80097a6: 687b ldr r3, [r7, #4]
  21841. 80097a8: 681b ldr r3, [r3, #0]
  21842. 80097aa: 4a4f ldr r2, [pc, #316] @ (80098e8 <HAL_DMA_Abort_IT+0x1c4>)
  21843. 80097ac: 4293 cmp r3, r2
  21844. 80097ae: d01d beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21845. 80097b0: 687b ldr r3, [r7, #4]
  21846. 80097b2: 681b ldr r3, [r3, #0]
  21847. 80097b4: 4a4d ldr r2, [pc, #308] @ (80098ec <HAL_DMA_Abort_IT+0x1c8>)
  21848. 80097b6: 4293 cmp r3, r2
  21849. 80097b8: d018 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21850. 80097ba: 687b ldr r3, [r7, #4]
  21851. 80097bc: 681b ldr r3, [r3, #0]
  21852. 80097be: 4a4c ldr r2, [pc, #304] @ (80098f0 <HAL_DMA_Abort_IT+0x1cc>)
  21853. 80097c0: 4293 cmp r3, r2
  21854. 80097c2: d013 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21855. 80097c4: 687b ldr r3, [r7, #4]
  21856. 80097c6: 681b ldr r3, [r3, #0]
  21857. 80097c8: 4a4a ldr r2, [pc, #296] @ (80098f4 <HAL_DMA_Abort_IT+0x1d0>)
  21858. 80097ca: 4293 cmp r3, r2
  21859. 80097cc: d00e beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21860. 80097ce: 687b ldr r3, [r7, #4]
  21861. 80097d0: 681b ldr r3, [r3, #0]
  21862. 80097d2: 4a49 ldr r2, [pc, #292] @ (80098f8 <HAL_DMA_Abort_IT+0x1d4>)
  21863. 80097d4: 4293 cmp r3, r2
  21864. 80097d6: d009 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21865. 80097d8: 687b ldr r3, [r7, #4]
  21866. 80097da: 681b ldr r3, [r3, #0]
  21867. 80097dc: 4a47 ldr r2, [pc, #284] @ (80098fc <HAL_DMA_Abort_IT+0x1d8>)
  21868. 80097de: 4293 cmp r3, r2
  21869. 80097e0: d004 beq.n 80097ec <HAL_DMA_Abort_IT+0xc8>
  21870. 80097e2: 687b ldr r3, [r7, #4]
  21871. 80097e4: 681b ldr r3, [r3, #0]
  21872. 80097e6: 4a46 ldr r2, [pc, #280] @ (8009900 <HAL_DMA_Abort_IT+0x1dc>)
  21873. 80097e8: 4293 cmp r3, r2
  21874. 80097ea: d101 bne.n 80097f0 <HAL_DMA_Abort_IT+0xcc>
  21875. 80097ec: 2301 movs r3, #1
  21876. 80097ee: e000 b.n 80097f2 <HAL_DMA_Abort_IT+0xce>
  21877. 80097f0: 2300 movs r3, #0
  21878. 80097f2: 2b00 cmp r3, #0
  21879. 80097f4: f000 8086 beq.w 8009904 <HAL_DMA_Abort_IT+0x1e0>
  21880. {
  21881. /* Set Abort State */
  21882. hdma->State = HAL_DMA_STATE_ABORT;
  21883. 80097f8: 687b ldr r3, [r7, #4]
  21884. 80097fa: 2204 movs r2, #4
  21885. 80097fc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21886. /* Disable the stream */
  21887. __HAL_DMA_DISABLE(hdma);
  21888. 8009800: 687b ldr r3, [r7, #4]
  21889. 8009802: 681b ldr r3, [r3, #0]
  21890. 8009804: 4a2f ldr r2, [pc, #188] @ (80098c4 <HAL_DMA_Abort_IT+0x1a0>)
  21891. 8009806: 4293 cmp r3, r2
  21892. 8009808: d04a beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21893. 800980a: 687b ldr r3, [r7, #4]
  21894. 800980c: 681b ldr r3, [r3, #0]
  21895. 800980e: 4a2e ldr r2, [pc, #184] @ (80098c8 <HAL_DMA_Abort_IT+0x1a4>)
  21896. 8009810: 4293 cmp r3, r2
  21897. 8009812: d045 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21898. 8009814: 687b ldr r3, [r7, #4]
  21899. 8009816: 681b ldr r3, [r3, #0]
  21900. 8009818: 4a2c ldr r2, [pc, #176] @ (80098cc <HAL_DMA_Abort_IT+0x1a8>)
  21901. 800981a: 4293 cmp r3, r2
  21902. 800981c: d040 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21903. 800981e: 687b ldr r3, [r7, #4]
  21904. 8009820: 681b ldr r3, [r3, #0]
  21905. 8009822: 4a2b ldr r2, [pc, #172] @ (80098d0 <HAL_DMA_Abort_IT+0x1ac>)
  21906. 8009824: 4293 cmp r3, r2
  21907. 8009826: d03b beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21908. 8009828: 687b ldr r3, [r7, #4]
  21909. 800982a: 681b ldr r3, [r3, #0]
  21910. 800982c: 4a29 ldr r2, [pc, #164] @ (80098d4 <HAL_DMA_Abort_IT+0x1b0>)
  21911. 800982e: 4293 cmp r3, r2
  21912. 8009830: d036 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21913. 8009832: 687b ldr r3, [r7, #4]
  21914. 8009834: 681b ldr r3, [r3, #0]
  21915. 8009836: 4a28 ldr r2, [pc, #160] @ (80098d8 <HAL_DMA_Abort_IT+0x1b4>)
  21916. 8009838: 4293 cmp r3, r2
  21917. 800983a: d031 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21918. 800983c: 687b ldr r3, [r7, #4]
  21919. 800983e: 681b ldr r3, [r3, #0]
  21920. 8009840: 4a26 ldr r2, [pc, #152] @ (80098dc <HAL_DMA_Abort_IT+0x1b8>)
  21921. 8009842: 4293 cmp r3, r2
  21922. 8009844: d02c beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21923. 8009846: 687b ldr r3, [r7, #4]
  21924. 8009848: 681b ldr r3, [r3, #0]
  21925. 800984a: 4a25 ldr r2, [pc, #148] @ (80098e0 <HAL_DMA_Abort_IT+0x1bc>)
  21926. 800984c: 4293 cmp r3, r2
  21927. 800984e: d027 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21928. 8009850: 687b ldr r3, [r7, #4]
  21929. 8009852: 681b ldr r3, [r3, #0]
  21930. 8009854: 4a23 ldr r2, [pc, #140] @ (80098e4 <HAL_DMA_Abort_IT+0x1c0>)
  21931. 8009856: 4293 cmp r3, r2
  21932. 8009858: d022 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21933. 800985a: 687b ldr r3, [r7, #4]
  21934. 800985c: 681b ldr r3, [r3, #0]
  21935. 800985e: 4a22 ldr r2, [pc, #136] @ (80098e8 <HAL_DMA_Abort_IT+0x1c4>)
  21936. 8009860: 4293 cmp r3, r2
  21937. 8009862: d01d beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21938. 8009864: 687b ldr r3, [r7, #4]
  21939. 8009866: 681b ldr r3, [r3, #0]
  21940. 8009868: 4a20 ldr r2, [pc, #128] @ (80098ec <HAL_DMA_Abort_IT+0x1c8>)
  21941. 800986a: 4293 cmp r3, r2
  21942. 800986c: d018 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21943. 800986e: 687b ldr r3, [r7, #4]
  21944. 8009870: 681b ldr r3, [r3, #0]
  21945. 8009872: 4a1f ldr r2, [pc, #124] @ (80098f0 <HAL_DMA_Abort_IT+0x1cc>)
  21946. 8009874: 4293 cmp r3, r2
  21947. 8009876: d013 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21948. 8009878: 687b ldr r3, [r7, #4]
  21949. 800987a: 681b ldr r3, [r3, #0]
  21950. 800987c: 4a1d ldr r2, [pc, #116] @ (80098f4 <HAL_DMA_Abort_IT+0x1d0>)
  21951. 800987e: 4293 cmp r3, r2
  21952. 8009880: d00e beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21953. 8009882: 687b ldr r3, [r7, #4]
  21954. 8009884: 681b ldr r3, [r3, #0]
  21955. 8009886: 4a1c ldr r2, [pc, #112] @ (80098f8 <HAL_DMA_Abort_IT+0x1d4>)
  21956. 8009888: 4293 cmp r3, r2
  21957. 800988a: d009 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21958. 800988c: 687b ldr r3, [r7, #4]
  21959. 800988e: 681b ldr r3, [r3, #0]
  21960. 8009890: 4a1a ldr r2, [pc, #104] @ (80098fc <HAL_DMA_Abort_IT+0x1d8>)
  21961. 8009892: 4293 cmp r3, r2
  21962. 8009894: d004 beq.n 80098a0 <HAL_DMA_Abort_IT+0x17c>
  21963. 8009896: 687b ldr r3, [r7, #4]
  21964. 8009898: 681b ldr r3, [r3, #0]
  21965. 800989a: 4a19 ldr r2, [pc, #100] @ (8009900 <HAL_DMA_Abort_IT+0x1dc>)
  21966. 800989c: 4293 cmp r3, r2
  21967. 800989e: d108 bne.n 80098b2 <HAL_DMA_Abort_IT+0x18e>
  21968. 80098a0: 687b ldr r3, [r7, #4]
  21969. 80098a2: 681b ldr r3, [r3, #0]
  21970. 80098a4: 681a ldr r2, [r3, #0]
  21971. 80098a6: 687b ldr r3, [r7, #4]
  21972. 80098a8: 681b ldr r3, [r3, #0]
  21973. 80098aa: f022 0201 bic.w r2, r2, #1
  21974. 80098ae: 601a str r2, [r3, #0]
  21975. 80098b0: e178 b.n 8009ba4 <HAL_DMA_Abort_IT+0x480>
  21976. 80098b2: 687b ldr r3, [r7, #4]
  21977. 80098b4: 681b ldr r3, [r3, #0]
  21978. 80098b6: 681a ldr r2, [r3, #0]
  21979. 80098b8: 687b ldr r3, [r7, #4]
  21980. 80098ba: 681b ldr r3, [r3, #0]
  21981. 80098bc: f022 0201 bic.w r2, r2, #1
  21982. 80098c0: 601a str r2, [r3, #0]
  21983. 80098c2: e16f b.n 8009ba4 <HAL_DMA_Abort_IT+0x480>
  21984. 80098c4: 40020010 .word 0x40020010
  21985. 80098c8: 40020028 .word 0x40020028
  21986. 80098cc: 40020040 .word 0x40020040
  21987. 80098d0: 40020058 .word 0x40020058
  21988. 80098d4: 40020070 .word 0x40020070
  21989. 80098d8: 40020088 .word 0x40020088
  21990. 80098dc: 400200a0 .word 0x400200a0
  21991. 80098e0: 400200b8 .word 0x400200b8
  21992. 80098e4: 40020410 .word 0x40020410
  21993. 80098e8: 40020428 .word 0x40020428
  21994. 80098ec: 40020440 .word 0x40020440
  21995. 80098f0: 40020458 .word 0x40020458
  21996. 80098f4: 40020470 .word 0x40020470
  21997. 80098f8: 40020488 .word 0x40020488
  21998. 80098fc: 400204a0 .word 0x400204a0
  21999. 8009900: 400204b8 .word 0x400204b8
  22000. }
  22001. else /* BDMA channel */
  22002. {
  22003. /* Disable DMA All Interrupts */
  22004. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  22005. 8009904: 687b ldr r3, [r7, #4]
  22006. 8009906: 681b ldr r3, [r3, #0]
  22007. 8009908: 681a ldr r2, [r3, #0]
  22008. 800990a: 687b ldr r3, [r7, #4]
  22009. 800990c: 681b ldr r3, [r3, #0]
  22010. 800990e: f022 020e bic.w r2, r2, #14
  22011. 8009912: 601a str r2, [r3, #0]
  22012. /* Disable the channel */
  22013. __HAL_DMA_DISABLE(hdma);
  22014. 8009914: 687b ldr r3, [r7, #4]
  22015. 8009916: 681b ldr r3, [r3, #0]
  22016. 8009918: 4a6c ldr r2, [pc, #432] @ (8009acc <HAL_DMA_Abort_IT+0x3a8>)
  22017. 800991a: 4293 cmp r3, r2
  22018. 800991c: d04a beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22019. 800991e: 687b ldr r3, [r7, #4]
  22020. 8009920: 681b ldr r3, [r3, #0]
  22021. 8009922: 4a6b ldr r2, [pc, #428] @ (8009ad0 <HAL_DMA_Abort_IT+0x3ac>)
  22022. 8009924: 4293 cmp r3, r2
  22023. 8009926: d045 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22024. 8009928: 687b ldr r3, [r7, #4]
  22025. 800992a: 681b ldr r3, [r3, #0]
  22026. 800992c: 4a69 ldr r2, [pc, #420] @ (8009ad4 <HAL_DMA_Abort_IT+0x3b0>)
  22027. 800992e: 4293 cmp r3, r2
  22028. 8009930: d040 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22029. 8009932: 687b ldr r3, [r7, #4]
  22030. 8009934: 681b ldr r3, [r3, #0]
  22031. 8009936: 4a68 ldr r2, [pc, #416] @ (8009ad8 <HAL_DMA_Abort_IT+0x3b4>)
  22032. 8009938: 4293 cmp r3, r2
  22033. 800993a: d03b beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22034. 800993c: 687b ldr r3, [r7, #4]
  22035. 800993e: 681b ldr r3, [r3, #0]
  22036. 8009940: 4a66 ldr r2, [pc, #408] @ (8009adc <HAL_DMA_Abort_IT+0x3b8>)
  22037. 8009942: 4293 cmp r3, r2
  22038. 8009944: d036 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22039. 8009946: 687b ldr r3, [r7, #4]
  22040. 8009948: 681b ldr r3, [r3, #0]
  22041. 800994a: 4a65 ldr r2, [pc, #404] @ (8009ae0 <HAL_DMA_Abort_IT+0x3bc>)
  22042. 800994c: 4293 cmp r3, r2
  22043. 800994e: d031 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22044. 8009950: 687b ldr r3, [r7, #4]
  22045. 8009952: 681b ldr r3, [r3, #0]
  22046. 8009954: 4a63 ldr r2, [pc, #396] @ (8009ae4 <HAL_DMA_Abort_IT+0x3c0>)
  22047. 8009956: 4293 cmp r3, r2
  22048. 8009958: d02c beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22049. 800995a: 687b ldr r3, [r7, #4]
  22050. 800995c: 681b ldr r3, [r3, #0]
  22051. 800995e: 4a62 ldr r2, [pc, #392] @ (8009ae8 <HAL_DMA_Abort_IT+0x3c4>)
  22052. 8009960: 4293 cmp r3, r2
  22053. 8009962: d027 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22054. 8009964: 687b ldr r3, [r7, #4]
  22055. 8009966: 681b ldr r3, [r3, #0]
  22056. 8009968: 4a60 ldr r2, [pc, #384] @ (8009aec <HAL_DMA_Abort_IT+0x3c8>)
  22057. 800996a: 4293 cmp r3, r2
  22058. 800996c: d022 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22059. 800996e: 687b ldr r3, [r7, #4]
  22060. 8009970: 681b ldr r3, [r3, #0]
  22061. 8009972: 4a5f ldr r2, [pc, #380] @ (8009af0 <HAL_DMA_Abort_IT+0x3cc>)
  22062. 8009974: 4293 cmp r3, r2
  22063. 8009976: d01d beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22064. 8009978: 687b ldr r3, [r7, #4]
  22065. 800997a: 681b ldr r3, [r3, #0]
  22066. 800997c: 4a5d ldr r2, [pc, #372] @ (8009af4 <HAL_DMA_Abort_IT+0x3d0>)
  22067. 800997e: 4293 cmp r3, r2
  22068. 8009980: d018 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22069. 8009982: 687b ldr r3, [r7, #4]
  22070. 8009984: 681b ldr r3, [r3, #0]
  22071. 8009986: 4a5c ldr r2, [pc, #368] @ (8009af8 <HAL_DMA_Abort_IT+0x3d4>)
  22072. 8009988: 4293 cmp r3, r2
  22073. 800998a: d013 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22074. 800998c: 687b ldr r3, [r7, #4]
  22075. 800998e: 681b ldr r3, [r3, #0]
  22076. 8009990: 4a5a ldr r2, [pc, #360] @ (8009afc <HAL_DMA_Abort_IT+0x3d8>)
  22077. 8009992: 4293 cmp r3, r2
  22078. 8009994: d00e beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22079. 8009996: 687b ldr r3, [r7, #4]
  22080. 8009998: 681b ldr r3, [r3, #0]
  22081. 800999a: 4a59 ldr r2, [pc, #356] @ (8009b00 <HAL_DMA_Abort_IT+0x3dc>)
  22082. 800999c: 4293 cmp r3, r2
  22083. 800999e: d009 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22084. 80099a0: 687b ldr r3, [r7, #4]
  22085. 80099a2: 681b ldr r3, [r3, #0]
  22086. 80099a4: 4a57 ldr r2, [pc, #348] @ (8009b04 <HAL_DMA_Abort_IT+0x3e0>)
  22087. 80099a6: 4293 cmp r3, r2
  22088. 80099a8: d004 beq.n 80099b4 <HAL_DMA_Abort_IT+0x290>
  22089. 80099aa: 687b ldr r3, [r7, #4]
  22090. 80099ac: 681b ldr r3, [r3, #0]
  22091. 80099ae: 4a56 ldr r2, [pc, #344] @ (8009b08 <HAL_DMA_Abort_IT+0x3e4>)
  22092. 80099b0: 4293 cmp r3, r2
  22093. 80099b2: d108 bne.n 80099c6 <HAL_DMA_Abort_IT+0x2a2>
  22094. 80099b4: 687b ldr r3, [r7, #4]
  22095. 80099b6: 681b ldr r3, [r3, #0]
  22096. 80099b8: 681a ldr r2, [r3, #0]
  22097. 80099ba: 687b ldr r3, [r7, #4]
  22098. 80099bc: 681b ldr r3, [r3, #0]
  22099. 80099be: f022 0201 bic.w r2, r2, #1
  22100. 80099c2: 601a str r2, [r3, #0]
  22101. 80099c4: e007 b.n 80099d6 <HAL_DMA_Abort_IT+0x2b2>
  22102. 80099c6: 687b ldr r3, [r7, #4]
  22103. 80099c8: 681b ldr r3, [r3, #0]
  22104. 80099ca: 681a ldr r2, [r3, #0]
  22105. 80099cc: 687b ldr r3, [r7, #4]
  22106. 80099ce: 681b ldr r3, [r3, #0]
  22107. 80099d0: f022 0201 bic.w r2, r2, #1
  22108. 80099d4: 601a str r2, [r3, #0]
  22109. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  22110. 80099d6: 687b ldr r3, [r7, #4]
  22111. 80099d8: 681b ldr r3, [r3, #0]
  22112. 80099da: 4a3c ldr r2, [pc, #240] @ (8009acc <HAL_DMA_Abort_IT+0x3a8>)
  22113. 80099dc: 4293 cmp r3, r2
  22114. 80099de: d072 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22115. 80099e0: 687b ldr r3, [r7, #4]
  22116. 80099e2: 681b ldr r3, [r3, #0]
  22117. 80099e4: 4a3a ldr r2, [pc, #232] @ (8009ad0 <HAL_DMA_Abort_IT+0x3ac>)
  22118. 80099e6: 4293 cmp r3, r2
  22119. 80099e8: d06d beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22120. 80099ea: 687b ldr r3, [r7, #4]
  22121. 80099ec: 681b ldr r3, [r3, #0]
  22122. 80099ee: 4a39 ldr r2, [pc, #228] @ (8009ad4 <HAL_DMA_Abort_IT+0x3b0>)
  22123. 80099f0: 4293 cmp r3, r2
  22124. 80099f2: d068 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22125. 80099f4: 687b ldr r3, [r7, #4]
  22126. 80099f6: 681b ldr r3, [r3, #0]
  22127. 80099f8: 4a37 ldr r2, [pc, #220] @ (8009ad8 <HAL_DMA_Abort_IT+0x3b4>)
  22128. 80099fa: 4293 cmp r3, r2
  22129. 80099fc: d063 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22130. 80099fe: 687b ldr r3, [r7, #4]
  22131. 8009a00: 681b ldr r3, [r3, #0]
  22132. 8009a02: 4a36 ldr r2, [pc, #216] @ (8009adc <HAL_DMA_Abort_IT+0x3b8>)
  22133. 8009a04: 4293 cmp r3, r2
  22134. 8009a06: d05e beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22135. 8009a08: 687b ldr r3, [r7, #4]
  22136. 8009a0a: 681b ldr r3, [r3, #0]
  22137. 8009a0c: 4a34 ldr r2, [pc, #208] @ (8009ae0 <HAL_DMA_Abort_IT+0x3bc>)
  22138. 8009a0e: 4293 cmp r3, r2
  22139. 8009a10: d059 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22140. 8009a12: 687b ldr r3, [r7, #4]
  22141. 8009a14: 681b ldr r3, [r3, #0]
  22142. 8009a16: 4a33 ldr r2, [pc, #204] @ (8009ae4 <HAL_DMA_Abort_IT+0x3c0>)
  22143. 8009a18: 4293 cmp r3, r2
  22144. 8009a1a: d054 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22145. 8009a1c: 687b ldr r3, [r7, #4]
  22146. 8009a1e: 681b ldr r3, [r3, #0]
  22147. 8009a20: 4a31 ldr r2, [pc, #196] @ (8009ae8 <HAL_DMA_Abort_IT+0x3c4>)
  22148. 8009a22: 4293 cmp r3, r2
  22149. 8009a24: d04f beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22150. 8009a26: 687b ldr r3, [r7, #4]
  22151. 8009a28: 681b ldr r3, [r3, #0]
  22152. 8009a2a: 4a30 ldr r2, [pc, #192] @ (8009aec <HAL_DMA_Abort_IT+0x3c8>)
  22153. 8009a2c: 4293 cmp r3, r2
  22154. 8009a2e: d04a beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22155. 8009a30: 687b ldr r3, [r7, #4]
  22156. 8009a32: 681b ldr r3, [r3, #0]
  22157. 8009a34: 4a2e ldr r2, [pc, #184] @ (8009af0 <HAL_DMA_Abort_IT+0x3cc>)
  22158. 8009a36: 4293 cmp r3, r2
  22159. 8009a38: d045 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22160. 8009a3a: 687b ldr r3, [r7, #4]
  22161. 8009a3c: 681b ldr r3, [r3, #0]
  22162. 8009a3e: 4a2d ldr r2, [pc, #180] @ (8009af4 <HAL_DMA_Abort_IT+0x3d0>)
  22163. 8009a40: 4293 cmp r3, r2
  22164. 8009a42: d040 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22165. 8009a44: 687b ldr r3, [r7, #4]
  22166. 8009a46: 681b ldr r3, [r3, #0]
  22167. 8009a48: 4a2b ldr r2, [pc, #172] @ (8009af8 <HAL_DMA_Abort_IT+0x3d4>)
  22168. 8009a4a: 4293 cmp r3, r2
  22169. 8009a4c: d03b beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22170. 8009a4e: 687b ldr r3, [r7, #4]
  22171. 8009a50: 681b ldr r3, [r3, #0]
  22172. 8009a52: 4a2a ldr r2, [pc, #168] @ (8009afc <HAL_DMA_Abort_IT+0x3d8>)
  22173. 8009a54: 4293 cmp r3, r2
  22174. 8009a56: d036 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22175. 8009a58: 687b ldr r3, [r7, #4]
  22176. 8009a5a: 681b ldr r3, [r3, #0]
  22177. 8009a5c: 4a28 ldr r2, [pc, #160] @ (8009b00 <HAL_DMA_Abort_IT+0x3dc>)
  22178. 8009a5e: 4293 cmp r3, r2
  22179. 8009a60: d031 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22180. 8009a62: 687b ldr r3, [r7, #4]
  22181. 8009a64: 681b ldr r3, [r3, #0]
  22182. 8009a66: 4a27 ldr r2, [pc, #156] @ (8009b04 <HAL_DMA_Abort_IT+0x3e0>)
  22183. 8009a68: 4293 cmp r3, r2
  22184. 8009a6a: d02c beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22185. 8009a6c: 687b ldr r3, [r7, #4]
  22186. 8009a6e: 681b ldr r3, [r3, #0]
  22187. 8009a70: 4a25 ldr r2, [pc, #148] @ (8009b08 <HAL_DMA_Abort_IT+0x3e4>)
  22188. 8009a72: 4293 cmp r3, r2
  22189. 8009a74: d027 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22190. 8009a76: 687b ldr r3, [r7, #4]
  22191. 8009a78: 681b ldr r3, [r3, #0]
  22192. 8009a7a: 4a24 ldr r2, [pc, #144] @ (8009b0c <HAL_DMA_Abort_IT+0x3e8>)
  22193. 8009a7c: 4293 cmp r3, r2
  22194. 8009a7e: d022 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22195. 8009a80: 687b ldr r3, [r7, #4]
  22196. 8009a82: 681b ldr r3, [r3, #0]
  22197. 8009a84: 4a22 ldr r2, [pc, #136] @ (8009b10 <HAL_DMA_Abort_IT+0x3ec>)
  22198. 8009a86: 4293 cmp r3, r2
  22199. 8009a88: d01d beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22200. 8009a8a: 687b ldr r3, [r7, #4]
  22201. 8009a8c: 681b ldr r3, [r3, #0]
  22202. 8009a8e: 4a21 ldr r2, [pc, #132] @ (8009b14 <HAL_DMA_Abort_IT+0x3f0>)
  22203. 8009a90: 4293 cmp r3, r2
  22204. 8009a92: d018 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22205. 8009a94: 687b ldr r3, [r7, #4]
  22206. 8009a96: 681b ldr r3, [r3, #0]
  22207. 8009a98: 4a1f ldr r2, [pc, #124] @ (8009b18 <HAL_DMA_Abort_IT+0x3f4>)
  22208. 8009a9a: 4293 cmp r3, r2
  22209. 8009a9c: d013 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22210. 8009a9e: 687b ldr r3, [r7, #4]
  22211. 8009aa0: 681b ldr r3, [r3, #0]
  22212. 8009aa2: 4a1e ldr r2, [pc, #120] @ (8009b1c <HAL_DMA_Abort_IT+0x3f8>)
  22213. 8009aa4: 4293 cmp r3, r2
  22214. 8009aa6: d00e beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22215. 8009aa8: 687b ldr r3, [r7, #4]
  22216. 8009aaa: 681b ldr r3, [r3, #0]
  22217. 8009aac: 4a1c ldr r2, [pc, #112] @ (8009b20 <HAL_DMA_Abort_IT+0x3fc>)
  22218. 8009aae: 4293 cmp r3, r2
  22219. 8009ab0: d009 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22220. 8009ab2: 687b ldr r3, [r7, #4]
  22221. 8009ab4: 681b ldr r3, [r3, #0]
  22222. 8009ab6: 4a1b ldr r2, [pc, #108] @ (8009b24 <HAL_DMA_Abort_IT+0x400>)
  22223. 8009ab8: 4293 cmp r3, r2
  22224. 8009aba: d004 beq.n 8009ac6 <HAL_DMA_Abort_IT+0x3a2>
  22225. 8009abc: 687b ldr r3, [r7, #4]
  22226. 8009abe: 681b ldr r3, [r3, #0]
  22227. 8009ac0: 4a19 ldr r2, [pc, #100] @ (8009b28 <HAL_DMA_Abort_IT+0x404>)
  22228. 8009ac2: 4293 cmp r3, r2
  22229. 8009ac4: d132 bne.n 8009b2c <HAL_DMA_Abort_IT+0x408>
  22230. 8009ac6: 2301 movs r3, #1
  22231. 8009ac8: e031 b.n 8009b2e <HAL_DMA_Abort_IT+0x40a>
  22232. 8009aca: bf00 nop
  22233. 8009acc: 40020010 .word 0x40020010
  22234. 8009ad0: 40020028 .word 0x40020028
  22235. 8009ad4: 40020040 .word 0x40020040
  22236. 8009ad8: 40020058 .word 0x40020058
  22237. 8009adc: 40020070 .word 0x40020070
  22238. 8009ae0: 40020088 .word 0x40020088
  22239. 8009ae4: 400200a0 .word 0x400200a0
  22240. 8009ae8: 400200b8 .word 0x400200b8
  22241. 8009aec: 40020410 .word 0x40020410
  22242. 8009af0: 40020428 .word 0x40020428
  22243. 8009af4: 40020440 .word 0x40020440
  22244. 8009af8: 40020458 .word 0x40020458
  22245. 8009afc: 40020470 .word 0x40020470
  22246. 8009b00: 40020488 .word 0x40020488
  22247. 8009b04: 400204a0 .word 0x400204a0
  22248. 8009b08: 400204b8 .word 0x400204b8
  22249. 8009b0c: 58025408 .word 0x58025408
  22250. 8009b10: 5802541c .word 0x5802541c
  22251. 8009b14: 58025430 .word 0x58025430
  22252. 8009b18: 58025444 .word 0x58025444
  22253. 8009b1c: 58025458 .word 0x58025458
  22254. 8009b20: 5802546c .word 0x5802546c
  22255. 8009b24: 58025480 .word 0x58025480
  22256. 8009b28: 58025494 .word 0x58025494
  22257. 8009b2c: 2300 movs r3, #0
  22258. 8009b2e: 2b00 cmp r3, #0
  22259. 8009b30: d028 beq.n 8009b84 <HAL_DMA_Abort_IT+0x460>
  22260. {
  22261. /* disable the DMAMUX sync overrun IT */
  22262. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  22263. 8009b32: 687b ldr r3, [r7, #4]
  22264. 8009b34: 6e1b ldr r3, [r3, #96] @ 0x60
  22265. 8009b36: 681a ldr r2, [r3, #0]
  22266. 8009b38: 687b ldr r3, [r7, #4]
  22267. 8009b3a: 6e1b ldr r3, [r3, #96] @ 0x60
  22268. 8009b3c: f422 7280 bic.w r2, r2, #256 @ 0x100
  22269. 8009b40: 601a str r2, [r3, #0]
  22270. /* Clear all flags */
  22271. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22272. 8009b42: 687b ldr r3, [r7, #4]
  22273. 8009b44: 6d9b ldr r3, [r3, #88] @ 0x58
  22274. 8009b46: 60fb str r3, [r7, #12]
  22275. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  22276. 8009b48: 687b ldr r3, [r7, #4]
  22277. 8009b4a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22278. 8009b4c: f003 031f and.w r3, r3, #31
  22279. 8009b50: 2201 movs r2, #1
  22280. 8009b52: 409a lsls r2, r3
  22281. 8009b54: 68fb ldr r3, [r7, #12]
  22282. 8009b56: 605a str r2, [r3, #4]
  22283. /* Clear the DMAMUX synchro overrun flag */
  22284. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  22285. 8009b58: 687b ldr r3, [r7, #4]
  22286. 8009b5a: 6e5b ldr r3, [r3, #100] @ 0x64
  22287. 8009b5c: 687a ldr r2, [r7, #4]
  22288. 8009b5e: 6e92 ldr r2, [r2, #104] @ 0x68
  22289. 8009b60: 605a str r2, [r3, #4]
  22290. if(hdma->DMAmuxRequestGen != 0U)
  22291. 8009b62: 687b ldr r3, [r7, #4]
  22292. 8009b64: 6edb ldr r3, [r3, #108] @ 0x6c
  22293. 8009b66: 2b00 cmp r3, #0
  22294. 8009b68: d00c beq.n 8009b84 <HAL_DMA_Abort_IT+0x460>
  22295. {
  22296. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  22297. /* disable the request gen overrun IT */
  22298. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  22299. 8009b6a: 687b ldr r3, [r7, #4]
  22300. 8009b6c: 6edb ldr r3, [r3, #108] @ 0x6c
  22301. 8009b6e: 681a ldr r2, [r3, #0]
  22302. 8009b70: 687b ldr r3, [r7, #4]
  22303. 8009b72: 6edb ldr r3, [r3, #108] @ 0x6c
  22304. 8009b74: f422 7280 bic.w r2, r2, #256 @ 0x100
  22305. 8009b78: 601a str r2, [r3, #0]
  22306. /* Clear the DMAMUX request generator overrun flag */
  22307. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  22308. 8009b7a: 687b ldr r3, [r7, #4]
  22309. 8009b7c: 6f1b ldr r3, [r3, #112] @ 0x70
  22310. 8009b7e: 687a ldr r2, [r7, #4]
  22311. 8009b80: 6f52 ldr r2, [r2, #116] @ 0x74
  22312. 8009b82: 605a str r2, [r3, #4]
  22313. }
  22314. }
  22315. /* Change the DMA state */
  22316. hdma->State = HAL_DMA_STATE_READY;
  22317. 8009b84: 687b ldr r3, [r7, #4]
  22318. 8009b86: 2201 movs r2, #1
  22319. 8009b88: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22320. /* Process Unlocked */
  22321. __HAL_UNLOCK(hdma);
  22322. 8009b8c: 687b ldr r3, [r7, #4]
  22323. 8009b8e: 2200 movs r2, #0
  22324. 8009b90: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22325. /* Call User Abort callback */
  22326. if(hdma->XferAbortCallback != NULL)
  22327. 8009b94: 687b ldr r3, [r7, #4]
  22328. 8009b96: 6d1b ldr r3, [r3, #80] @ 0x50
  22329. 8009b98: 2b00 cmp r3, #0
  22330. 8009b9a: d003 beq.n 8009ba4 <HAL_DMA_Abort_IT+0x480>
  22331. {
  22332. hdma->XferAbortCallback(hdma);
  22333. 8009b9c: 687b ldr r3, [r7, #4]
  22334. 8009b9e: 6d1b ldr r3, [r3, #80] @ 0x50
  22335. 8009ba0: 6878 ldr r0, [r7, #4]
  22336. 8009ba2: 4798 blx r3
  22337. }
  22338. }
  22339. }
  22340. return HAL_OK;
  22341. 8009ba4: 2300 movs r3, #0
  22342. }
  22343. 8009ba6: 4618 mov r0, r3
  22344. 8009ba8: 3710 adds r7, #16
  22345. 8009baa: 46bd mov sp, r7
  22346. 8009bac: bd80 pop {r7, pc}
  22347. 8009bae: bf00 nop
  22348. 08009bb0 <HAL_DMA_IRQHandler>:
  22349. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  22350. * the configuration information for the specified DMA Stream.
  22351. * @retval None
  22352. */
  22353. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  22354. {
  22355. 8009bb0: b580 push {r7, lr}
  22356. 8009bb2: b08a sub sp, #40 @ 0x28
  22357. 8009bb4: af00 add r7, sp, #0
  22358. 8009bb6: 6078 str r0, [r7, #4]
  22359. uint32_t tmpisr_dma, tmpisr_bdma;
  22360. uint32_t ccr_reg;
  22361. __IO uint32_t count = 0U;
  22362. 8009bb8: 2300 movs r3, #0
  22363. 8009bba: 60fb str r3, [r7, #12]
  22364. uint32_t timeout = SystemCoreClock / 9600U;
  22365. 8009bbc: 4b67 ldr r3, [pc, #412] @ (8009d5c <HAL_DMA_IRQHandler+0x1ac>)
  22366. 8009bbe: 681b ldr r3, [r3, #0]
  22367. 8009bc0: 4a67 ldr r2, [pc, #412] @ (8009d60 <HAL_DMA_IRQHandler+0x1b0>)
  22368. 8009bc2: fba2 2303 umull r2, r3, r2, r3
  22369. 8009bc6: 0a9b lsrs r3, r3, #10
  22370. 8009bc8: 627b str r3, [r7, #36] @ 0x24
  22371. /* calculate DMA base and stream number */
  22372. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  22373. 8009bca: 687b ldr r3, [r7, #4]
  22374. 8009bcc: 6d9b ldr r3, [r3, #88] @ 0x58
  22375. 8009bce: 623b str r3, [r7, #32]
  22376. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  22377. 8009bd0: 687b ldr r3, [r7, #4]
  22378. 8009bd2: 6d9b ldr r3, [r3, #88] @ 0x58
  22379. 8009bd4: 61fb str r3, [r7, #28]
  22380. tmpisr_dma = regs_dma->ISR;
  22381. 8009bd6: 6a3b ldr r3, [r7, #32]
  22382. 8009bd8: 681b ldr r3, [r3, #0]
  22383. 8009bda: 61bb str r3, [r7, #24]
  22384. tmpisr_bdma = regs_bdma->ISR;
  22385. 8009bdc: 69fb ldr r3, [r7, #28]
  22386. 8009bde: 681b ldr r3, [r3, #0]
  22387. 8009be0: 617b str r3, [r7, #20]
  22388. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  22389. 8009be2: 687b ldr r3, [r7, #4]
  22390. 8009be4: 681b ldr r3, [r3, #0]
  22391. 8009be6: 4a5f ldr r2, [pc, #380] @ (8009d64 <HAL_DMA_IRQHandler+0x1b4>)
  22392. 8009be8: 4293 cmp r3, r2
  22393. 8009bea: d04a beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22394. 8009bec: 687b ldr r3, [r7, #4]
  22395. 8009bee: 681b ldr r3, [r3, #0]
  22396. 8009bf0: 4a5d ldr r2, [pc, #372] @ (8009d68 <HAL_DMA_IRQHandler+0x1b8>)
  22397. 8009bf2: 4293 cmp r3, r2
  22398. 8009bf4: d045 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22399. 8009bf6: 687b ldr r3, [r7, #4]
  22400. 8009bf8: 681b ldr r3, [r3, #0]
  22401. 8009bfa: 4a5c ldr r2, [pc, #368] @ (8009d6c <HAL_DMA_IRQHandler+0x1bc>)
  22402. 8009bfc: 4293 cmp r3, r2
  22403. 8009bfe: d040 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22404. 8009c00: 687b ldr r3, [r7, #4]
  22405. 8009c02: 681b ldr r3, [r3, #0]
  22406. 8009c04: 4a5a ldr r2, [pc, #360] @ (8009d70 <HAL_DMA_IRQHandler+0x1c0>)
  22407. 8009c06: 4293 cmp r3, r2
  22408. 8009c08: d03b beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22409. 8009c0a: 687b ldr r3, [r7, #4]
  22410. 8009c0c: 681b ldr r3, [r3, #0]
  22411. 8009c0e: 4a59 ldr r2, [pc, #356] @ (8009d74 <HAL_DMA_IRQHandler+0x1c4>)
  22412. 8009c10: 4293 cmp r3, r2
  22413. 8009c12: d036 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22414. 8009c14: 687b ldr r3, [r7, #4]
  22415. 8009c16: 681b ldr r3, [r3, #0]
  22416. 8009c18: 4a57 ldr r2, [pc, #348] @ (8009d78 <HAL_DMA_IRQHandler+0x1c8>)
  22417. 8009c1a: 4293 cmp r3, r2
  22418. 8009c1c: d031 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22419. 8009c1e: 687b ldr r3, [r7, #4]
  22420. 8009c20: 681b ldr r3, [r3, #0]
  22421. 8009c22: 4a56 ldr r2, [pc, #344] @ (8009d7c <HAL_DMA_IRQHandler+0x1cc>)
  22422. 8009c24: 4293 cmp r3, r2
  22423. 8009c26: d02c beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22424. 8009c28: 687b ldr r3, [r7, #4]
  22425. 8009c2a: 681b ldr r3, [r3, #0]
  22426. 8009c2c: 4a54 ldr r2, [pc, #336] @ (8009d80 <HAL_DMA_IRQHandler+0x1d0>)
  22427. 8009c2e: 4293 cmp r3, r2
  22428. 8009c30: d027 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22429. 8009c32: 687b ldr r3, [r7, #4]
  22430. 8009c34: 681b ldr r3, [r3, #0]
  22431. 8009c36: 4a53 ldr r2, [pc, #332] @ (8009d84 <HAL_DMA_IRQHandler+0x1d4>)
  22432. 8009c38: 4293 cmp r3, r2
  22433. 8009c3a: d022 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22434. 8009c3c: 687b ldr r3, [r7, #4]
  22435. 8009c3e: 681b ldr r3, [r3, #0]
  22436. 8009c40: 4a51 ldr r2, [pc, #324] @ (8009d88 <HAL_DMA_IRQHandler+0x1d8>)
  22437. 8009c42: 4293 cmp r3, r2
  22438. 8009c44: d01d beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22439. 8009c46: 687b ldr r3, [r7, #4]
  22440. 8009c48: 681b ldr r3, [r3, #0]
  22441. 8009c4a: 4a50 ldr r2, [pc, #320] @ (8009d8c <HAL_DMA_IRQHandler+0x1dc>)
  22442. 8009c4c: 4293 cmp r3, r2
  22443. 8009c4e: d018 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22444. 8009c50: 687b ldr r3, [r7, #4]
  22445. 8009c52: 681b ldr r3, [r3, #0]
  22446. 8009c54: 4a4e ldr r2, [pc, #312] @ (8009d90 <HAL_DMA_IRQHandler+0x1e0>)
  22447. 8009c56: 4293 cmp r3, r2
  22448. 8009c58: d013 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22449. 8009c5a: 687b ldr r3, [r7, #4]
  22450. 8009c5c: 681b ldr r3, [r3, #0]
  22451. 8009c5e: 4a4d ldr r2, [pc, #308] @ (8009d94 <HAL_DMA_IRQHandler+0x1e4>)
  22452. 8009c60: 4293 cmp r3, r2
  22453. 8009c62: d00e beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22454. 8009c64: 687b ldr r3, [r7, #4]
  22455. 8009c66: 681b ldr r3, [r3, #0]
  22456. 8009c68: 4a4b ldr r2, [pc, #300] @ (8009d98 <HAL_DMA_IRQHandler+0x1e8>)
  22457. 8009c6a: 4293 cmp r3, r2
  22458. 8009c6c: d009 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22459. 8009c6e: 687b ldr r3, [r7, #4]
  22460. 8009c70: 681b ldr r3, [r3, #0]
  22461. 8009c72: 4a4a ldr r2, [pc, #296] @ (8009d9c <HAL_DMA_IRQHandler+0x1ec>)
  22462. 8009c74: 4293 cmp r3, r2
  22463. 8009c76: d004 beq.n 8009c82 <HAL_DMA_IRQHandler+0xd2>
  22464. 8009c78: 687b ldr r3, [r7, #4]
  22465. 8009c7a: 681b ldr r3, [r3, #0]
  22466. 8009c7c: 4a48 ldr r2, [pc, #288] @ (8009da0 <HAL_DMA_IRQHandler+0x1f0>)
  22467. 8009c7e: 4293 cmp r3, r2
  22468. 8009c80: d101 bne.n 8009c86 <HAL_DMA_IRQHandler+0xd6>
  22469. 8009c82: 2301 movs r3, #1
  22470. 8009c84: e000 b.n 8009c88 <HAL_DMA_IRQHandler+0xd8>
  22471. 8009c86: 2300 movs r3, #0
  22472. 8009c88: 2b00 cmp r3, #0
  22473. 8009c8a: f000 842b beq.w 800a4e4 <HAL_DMA_IRQHandler+0x934>
  22474. {
  22475. /* Transfer Error Interrupt management ***************************************/
  22476. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22477. 8009c8e: 687b ldr r3, [r7, #4]
  22478. 8009c90: 6ddb ldr r3, [r3, #92] @ 0x5c
  22479. 8009c92: f003 031f and.w r3, r3, #31
  22480. 8009c96: 2208 movs r2, #8
  22481. 8009c98: 409a lsls r2, r3
  22482. 8009c9a: 69bb ldr r3, [r7, #24]
  22483. 8009c9c: 4013 ands r3, r2
  22484. 8009c9e: 2b00 cmp r3, #0
  22485. 8009ca0: f000 80a2 beq.w 8009de8 <HAL_DMA_IRQHandler+0x238>
  22486. {
  22487. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  22488. 8009ca4: 687b ldr r3, [r7, #4]
  22489. 8009ca6: 681b ldr r3, [r3, #0]
  22490. 8009ca8: 4a2e ldr r2, [pc, #184] @ (8009d64 <HAL_DMA_IRQHandler+0x1b4>)
  22491. 8009caa: 4293 cmp r3, r2
  22492. 8009cac: d04a beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22493. 8009cae: 687b ldr r3, [r7, #4]
  22494. 8009cb0: 681b ldr r3, [r3, #0]
  22495. 8009cb2: 4a2d ldr r2, [pc, #180] @ (8009d68 <HAL_DMA_IRQHandler+0x1b8>)
  22496. 8009cb4: 4293 cmp r3, r2
  22497. 8009cb6: d045 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22498. 8009cb8: 687b ldr r3, [r7, #4]
  22499. 8009cba: 681b ldr r3, [r3, #0]
  22500. 8009cbc: 4a2b ldr r2, [pc, #172] @ (8009d6c <HAL_DMA_IRQHandler+0x1bc>)
  22501. 8009cbe: 4293 cmp r3, r2
  22502. 8009cc0: d040 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22503. 8009cc2: 687b ldr r3, [r7, #4]
  22504. 8009cc4: 681b ldr r3, [r3, #0]
  22505. 8009cc6: 4a2a ldr r2, [pc, #168] @ (8009d70 <HAL_DMA_IRQHandler+0x1c0>)
  22506. 8009cc8: 4293 cmp r3, r2
  22507. 8009cca: d03b beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22508. 8009ccc: 687b ldr r3, [r7, #4]
  22509. 8009cce: 681b ldr r3, [r3, #0]
  22510. 8009cd0: 4a28 ldr r2, [pc, #160] @ (8009d74 <HAL_DMA_IRQHandler+0x1c4>)
  22511. 8009cd2: 4293 cmp r3, r2
  22512. 8009cd4: d036 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22513. 8009cd6: 687b ldr r3, [r7, #4]
  22514. 8009cd8: 681b ldr r3, [r3, #0]
  22515. 8009cda: 4a27 ldr r2, [pc, #156] @ (8009d78 <HAL_DMA_IRQHandler+0x1c8>)
  22516. 8009cdc: 4293 cmp r3, r2
  22517. 8009cde: d031 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22518. 8009ce0: 687b ldr r3, [r7, #4]
  22519. 8009ce2: 681b ldr r3, [r3, #0]
  22520. 8009ce4: 4a25 ldr r2, [pc, #148] @ (8009d7c <HAL_DMA_IRQHandler+0x1cc>)
  22521. 8009ce6: 4293 cmp r3, r2
  22522. 8009ce8: d02c beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22523. 8009cea: 687b ldr r3, [r7, #4]
  22524. 8009cec: 681b ldr r3, [r3, #0]
  22525. 8009cee: 4a24 ldr r2, [pc, #144] @ (8009d80 <HAL_DMA_IRQHandler+0x1d0>)
  22526. 8009cf0: 4293 cmp r3, r2
  22527. 8009cf2: d027 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22528. 8009cf4: 687b ldr r3, [r7, #4]
  22529. 8009cf6: 681b ldr r3, [r3, #0]
  22530. 8009cf8: 4a22 ldr r2, [pc, #136] @ (8009d84 <HAL_DMA_IRQHandler+0x1d4>)
  22531. 8009cfa: 4293 cmp r3, r2
  22532. 8009cfc: d022 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22533. 8009cfe: 687b ldr r3, [r7, #4]
  22534. 8009d00: 681b ldr r3, [r3, #0]
  22535. 8009d02: 4a21 ldr r2, [pc, #132] @ (8009d88 <HAL_DMA_IRQHandler+0x1d8>)
  22536. 8009d04: 4293 cmp r3, r2
  22537. 8009d06: d01d beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22538. 8009d08: 687b ldr r3, [r7, #4]
  22539. 8009d0a: 681b ldr r3, [r3, #0]
  22540. 8009d0c: 4a1f ldr r2, [pc, #124] @ (8009d8c <HAL_DMA_IRQHandler+0x1dc>)
  22541. 8009d0e: 4293 cmp r3, r2
  22542. 8009d10: d018 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22543. 8009d12: 687b ldr r3, [r7, #4]
  22544. 8009d14: 681b ldr r3, [r3, #0]
  22545. 8009d16: 4a1e ldr r2, [pc, #120] @ (8009d90 <HAL_DMA_IRQHandler+0x1e0>)
  22546. 8009d18: 4293 cmp r3, r2
  22547. 8009d1a: d013 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22548. 8009d1c: 687b ldr r3, [r7, #4]
  22549. 8009d1e: 681b ldr r3, [r3, #0]
  22550. 8009d20: 4a1c ldr r2, [pc, #112] @ (8009d94 <HAL_DMA_IRQHandler+0x1e4>)
  22551. 8009d22: 4293 cmp r3, r2
  22552. 8009d24: d00e beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22553. 8009d26: 687b ldr r3, [r7, #4]
  22554. 8009d28: 681b ldr r3, [r3, #0]
  22555. 8009d2a: 4a1b ldr r2, [pc, #108] @ (8009d98 <HAL_DMA_IRQHandler+0x1e8>)
  22556. 8009d2c: 4293 cmp r3, r2
  22557. 8009d2e: d009 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22558. 8009d30: 687b ldr r3, [r7, #4]
  22559. 8009d32: 681b ldr r3, [r3, #0]
  22560. 8009d34: 4a19 ldr r2, [pc, #100] @ (8009d9c <HAL_DMA_IRQHandler+0x1ec>)
  22561. 8009d36: 4293 cmp r3, r2
  22562. 8009d38: d004 beq.n 8009d44 <HAL_DMA_IRQHandler+0x194>
  22563. 8009d3a: 687b ldr r3, [r7, #4]
  22564. 8009d3c: 681b ldr r3, [r3, #0]
  22565. 8009d3e: 4a18 ldr r2, [pc, #96] @ (8009da0 <HAL_DMA_IRQHandler+0x1f0>)
  22566. 8009d40: 4293 cmp r3, r2
  22567. 8009d42: d12f bne.n 8009da4 <HAL_DMA_IRQHandler+0x1f4>
  22568. 8009d44: 687b ldr r3, [r7, #4]
  22569. 8009d46: 681b ldr r3, [r3, #0]
  22570. 8009d48: 681b ldr r3, [r3, #0]
  22571. 8009d4a: f003 0304 and.w r3, r3, #4
  22572. 8009d4e: 2b00 cmp r3, #0
  22573. 8009d50: bf14 ite ne
  22574. 8009d52: 2301 movne r3, #1
  22575. 8009d54: 2300 moveq r3, #0
  22576. 8009d56: b2db uxtb r3, r3
  22577. 8009d58: e02e b.n 8009db8 <HAL_DMA_IRQHandler+0x208>
  22578. 8009d5a: bf00 nop
  22579. 8009d5c: 24000034 .word 0x24000034
  22580. 8009d60: 1b4e81b5 .word 0x1b4e81b5
  22581. 8009d64: 40020010 .word 0x40020010
  22582. 8009d68: 40020028 .word 0x40020028
  22583. 8009d6c: 40020040 .word 0x40020040
  22584. 8009d70: 40020058 .word 0x40020058
  22585. 8009d74: 40020070 .word 0x40020070
  22586. 8009d78: 40020088 .word 0x40020088
  22587. 8009d7c: 400200a0 .word 0x400200a0
  22588. 8009d80: 400200b8 .word 0x400200b8
  22589. 8009d84: 40020410 .word 0x40020410
  22590. 8009d88: 40020428 .word 0x40020428
  22591. 8009d8c: 40020440 .word 0x40020440
  22592. 8009d90: 40020458 .word 0x40020458
  22593. 8009d94: 40020470 .word 0x40020470
  22594. 8009d98: 40020488 .word 0x40020488
  22595. 8009d9c: 400204a0 .word 0x400204a0
  22596. 8009da0: 400204b8 .word 0x400204b8
  22597. 8009da4: 687b ldr r3, [r7, #4]
  22598. 8009da6: 681b ldr r3, [r3, #0]
  22599. 8009da8: 681b ldr r3, [r3, #0]
  22600. 8009daa: f003 0308 and.w r3, r3, #8
  22601. 8009dae: 2b00 cmp r3, #0
  22602. 8009db0: bf14 ite ne
  22603. 8009db2: 2301 movne r3, #1
  22604. 8009db4: 2300 moveq r3, #0
  22605. 8009db6: b2db uxtb r3, r3
  22606. 8009db8: 2b00 cmp r3, #0
  22607. 8009dba: d015 beq.n 8009de8 <HAL_DMA_IRQHandler+0x238>
  22608. {
  22609. /* Disable the transfer error interrupt */
  22610. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  22611. 8009dbc: 687b ldr r3, [r7, #4]
  22612. 8009dbe: 681b ldr r3, [r3, #0]
  22613. 8009dc0: 681a ldr r2, [r3, #0]
  22614. 8009dc2: 687b ldr r3, [r7, #4]
  22615. 8009dc4: 681b ldr r3, [r3, #0]
  22616. 8009dc6: f022 0204 bic.w r2, r2, #4
  22617. 8009dca: 601a str r2, [r3, #0]
  22618. /* Clear the transfer error flag */
  22619. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22620. 8009dcc: 687b ldr r3, [r7, #4]
  22621. 8009dce: 6ddb ldr r3, [r3, #92] @ 0x5c
  22622. 8009dd0: f003 031f and.w r3, r3, #31
  22623. 8009dd4: 2208 movs r2, #8
  22624. 8009dd6: 409a lsls r2, r3
  22625. 8009dd8: 6a3b ldr r3, [r7, #32]
  22626. 8009dda: 609a str r2, [r3, #8]
  22627. /* Update error code */
  22628. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  22629. 8009ddc: 687b ldr r3, [r7, #4]
  22630. 8009dde: 6d5b ldr r3, [r3, #84] @ 0x54
  22631. 8009de0: f043 0201 orr.w r2, r3, #1
  22632. 8009de4: 687b ldr r3, [r7, #4]
  22633. 8009de6: 655a str r2, [r3, #84] @ 0x54
  22634. }
  22635. }
  22636. /* FIFO Error Interrupt management ******************************************/
  22637. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22638. 8009de8: 687b ldr r3, [r7, #4]
  22639. 8009dea: 6ddb ldr r3, [r3, #92] @ 0x5c
  22640. 8009dec: f003 031f and.w r3, r3, #31
  22641. 8009df0: 69ba ldr r2, [r7, #24]
  22642. 8009df2: fa22 f303 lsr.w r3, r2, r3
  22643. 8009df6: f003 0301 and.w r3, r3, #1
  22644. 8009dfa: 2b00 cmp r3, #0
  22645. 8009dfc: d06e beq.n 8009edc <HAL_DMA_IRQHandler+0x32c>
  22646. {
  22647. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  22648. 8009dfe: 687b ldr r3, [r7, #4]
  22649. 8009e00: 681b ldr r3, [r3, #0]
  22650. 8009e02: 4a69 ldr r2, [pc, #420] @ (8009fa8 <HAL_DMA_IRQHandler+0x3f8>)
  22651. 8009e04: 4293 cmp r3, r2
  22652. 8009e06: d04a beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22653. 8009e08: 687b ldr r3, [r7, #4]
  22654. 8009e0a: 681b ldr r3, [r3, #0]
  22655. 8009e0c: 4a67 ldr r2, [pc, #412] @ (8009fac <HAL_DMA_IRQHandler+0x3fc>)
  22656. 8009e0e: 4293 cmp r3, r2
  22657. 8009e10: d045 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22658. 8009e12: 687b ldr r3, [r7, #4]
  22659. 8009e14: 681b ldr r3, [r3, #0]
  22660. 8009e16: 4a66 ldr r2, [pc, #408] @ (8009fb0 <HAL_DMA_IRQHandler+0x400>)
  22661. 8009e18: 4293 cmp r3, r2
  22662. 8009e1a: d040 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22663. 8009e1c: 687b ldr r3, [r7, #4]
  22664. 8009e1e: 681b ldr r3, [r3, #0]
  22665. 8009e20: 4a64 ldr r2, [pc, #400] @ (8009fb4 <HAL_DMA_IRQHandler+0x404>)
  22666. 8009e22: 4293 cmp r3, r2
  22667. 8009e24: d03b beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22668. 8009e26: 687b ldr r3, [r7, #4]
  22669. 8009e28: 681b ldr r3, [r3, #0]
  22670. 8009e2a: 4a63 ldr r2, [pc, #396] @ (8009fb8 <HAL_DMA_IRQHandler+0x408>)
  22671. 8009e2c: 4293 cmp r3, r2
  22672. 8009e2e: d036 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22673. 8009e30: 687b ldr r3, [r7, #4]
  22674. 8009e32: 681b ldr r3, [r3, #0]
  22675. 8009e34: 4a61 ldr r2, [pc, #388] @ (8009fbc <HAL_DMA_IRQHandler+0x40c>)
  22676. 8009e36: 4293 cmp r3, r2
  22677. 8009e38: d031 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22678. 8009e3a: 687b ldr r3, [r7, #4]
  22679. 8009e3c: 681b ldr r3, [r3, #0]
  22680. 8009e3e: 4a60 ldr r2, [pc, #384] @ (8009fc0 <HAL_DMA_IRQHandler+0x410>)
  22681. 8009e40: 4293 cmp r3, r2
  22682. 8009e42: d02c beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22683. 8009e44: 687b ldr r3, [r7, #4]
  22684. 8009e46: 681b ldr r3, [r3, #0]
  22685. 8009e48: 4a5e ldr r2, [pc, #376] @ (8009fc4 <HAL_DMA_IRQHandler+0x414>)
  22686. 8009e4a: 4293 cmp r3, r2
  22687. 8009e4c: d027 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22688. 8009e4e: 687b ldr r3, [r7, #4]
  22689. 8009e50: 681b ldr r3, [r3, #0]
  22690. 8009e52: 4a5d ldr r2, [pc, #372] @ (8009fc8 <HAL_DMA_IRQHandler+0x418>)
  22691. 8009e54: 4293 cmp r3, r2
  22692. 8009e56: d022 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22693. 8009e58: 687b ldr r3, [r7, #4]
  22694. 8009e5a: 681b ldr r3, [r3, #0]
  22695. 8009e5c: 4a5b ldr r2, [pc, #364] @ (8009fcc <HAL_DMA_IRQHandler+0x41c>)
  22696. 8009e5e: 4293 cmp r3, r2
  22697. 8009e60: d01d beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22698. 8009e62: 687b ldr r3, [r7, #4]
  22699. 8009e64: 681b ldr r3, [r3, #0]
  22700. 8009e66: 4a5a ldr r2, [pc, #360] @ (8009fd0 <HAL_DMA_IRQHandler+0x420>)
  22701. 8009e68: 4293 cmp r3, r2
  22702. 8009e6a: d018 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22703. 8009e6c: 687b ldr r3, [r7, #4]
  22704. 8009e6e: 681b ldr r3, [r3, #0]
  22705. 8009e70: 4a58 ldr r2, [pc, #352] @ (8009fd4 <HAL_DMA_IRQHandler+0x424>)
  22706. 8009e72: 4293 cmp r3, r2
  22707. 8009e74: d013 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22708. 8009e76: 687b ldr r3, [r7, #4]
  22709. 8009e78: 681b ldr r3, [r3, #0]
  22710. 8009e7a: 4a57 ldr r2, [pc, #348] @ (8009fd8 <HAL_DMA_IRQHandler+0x428>)
  22711. 8009e7c: 4293 cmp r3, r2
  22712. 8009e7e: d00e beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22713. 8009e80: 687b ldr r3, [r7, #4]
  22714. 8009e82: 681b ldr r3, [r3, #0]
  22715. 8009e84: 4a55 ldr r2, [pc, #340] @ (8009fdc <HAL_DMA_IRQHandler+0x42c>)
  22716. 8009e86: 4293 cmp r3, r2
  22717. 8009e88: d009 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22718. 8009e8a: 687b ldr r3, [r7, #4]
  22719. 8009e8c: 681b ldr r3, [r3, #0]
  22720. 8009e8e: 4a54 ldr r2, [pc, #336] @ (8009fe0 <HAL_DMA_IRQHandler+0x430>)
  22721. 8009e90: 4293 cmp r3, r2
  22722. 8009e92: d004 beq.n 8009e9e <HAL_DMA_IRQHandler+0x2ee>
  22723. 8009e94: 687b ldr r3, [r7, #4]
  22724. 8009e96: 681b ldr r3, [r3, #0]
  22725. 8009e98: 4a52 ldr r2, [pc, #328] @ (8009fe4 <HAL_DMA_IRQHandler+0x434>)
  22726. 8009e9a: 4293 cmp r3, r2
  22727. 8009e9c: d10a bne.n 8009eb4 <HAL_DMA_IRQHandler+0x304>
  22728. 8009e9e: 687b ldr r3, [r7, #4]
  22729. 8009ea0: 681b ldr r3, [r3, #0]
  22730. 8009ea2: 695b ldr r3, [r3, #20]
  22731. 8009ea4: f003 0380 and.w r3, r3, #128 @ 0x80
  22732. 8009ea8: 2b00 cmp r3, #0
  22733. 8009eaa: bf14 ite ne
  22734. 8009eac: 2301 movne r3, #1
  22735. 8009eae: 2300 moveq r3, #0
  22736. 8009eb0: b2db uxtb r3, r3
  22737. 8009eb2: e003 b.n 8009ebc <HAL_DMA_IRQHandler+0x30c>
  22738. 8009eb4: 687b ldr r3, [r7, #4]
  22739. 8009eb6: 681b ldr r3, [r3, #0]
  22740. 8009eb8: 681b ldr r3, [r3, #0]
  22741. 8009eba: 2300 movs r3, #0
  22742. 8009ebc: 2b00 cmp r3, #0
  22743. 8009ebe: d00d beq.n 8009edc <HAL_DMA_IRQHandler+0x32c>
  22744. {
  22745. /* Clear the FIFO error flag */
  22746. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22747. 8009ec0: 687b ldr r3, [r7, #4]
  22748. 8009ec2: 6ddb ldr r3, [r3, #92] @ 0x5c
  22749. 8009ec4: f003 031f and.w r3, r3, #31
  22750. 8009ec8: 2201 movs r2, #1
  22751. 8009eca: 409a lsls r2, r3
  22752. 8009ecc: 6a3b ldr r3, [r7, #32]
  22753. 8009ece: 609a str r2, [r3, #8]
  22754. /* Update error code */
  22755. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  22756. 8009ed0: 687b ldr r3, [r7, #4]
  22757. 8009ed2: 6d5b ldr r3, [r3, #84] @ 0x54
  22758. 8009ed4: f043 0202 orr.w r2, r3, #2
  22759. 8009ed8: 687b ldr r3, [r7, #4]
  22760. 8009eda: 655a str r2, [r3, #84] @ 0x54
  22761. }
  22762. }
  22763. /* Direct Mode Error Interrupt management ***********************************/
  22764. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22765. 8009edc: 687b ldr r3, [r7, #4]
  22766. 8009ede: 6ddb ldr r3, [r3, #92] @ 0x5c
  22767. 8009ee0: f003 031f and.w r3, r3, #31
  22768. 8009ee4: 2204 movs r2, #4
  22769. 8009ee6: 409a lsls r2, r3
  22770. 8009ee8: 69bb ldr r3, [r7, #24]
  22771. 8009eea: 4013 ands r3, r2
  22772. 8009eec: 2b00 cmp r3, #0
  22773. 8009eee: f000 808f beq.w 800a010 <HAL_DMA_IRQHandler+0x460>
  22774. {
  22775. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  22776. 8009ef2: 687b ldr r3, [r7, #4]
  22777. 8009ef4: 681b ldr r3, [r3, #0]
  22778. 8009ef6: 4a2c ldr r2, [pc, #176] @ (8009fa8 <HAL_DMA_IRQHandler+0x3f8>)
  22779. 8009ef8: 4293 cmp r3, r2
  22780. 8009efa: d04a beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22781. 8009efc: 687b ldr r3, [r7, #4]
  22782. 8009efe: 681b ldr r3, [r3, #0]
  22783. 8009f00: 4a2a ldr r2, [pc, #168] @ (8009fac <HAL_DMA_IRQHandler+0x3fc>)
  22784. 8009f02: 4293 cmp r3, r2
  22785. 8009f04: d045 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22786. 8009f06: 687b ldr r3, [r7, #4]
  22787. 8009f08: 681b ldr r3, [r3, #0]
  22788. 8009f0a: 4a29 ldr r2, [pc, #164] @ (8009fb0 <HAL_DMA_IRQHandler+0x400>)
  22789. 8009f0c: 4293 cmp r3, r2
  22790. 8009f0e: d040 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22791. 8009f10: 687b ldr r3, [r7, #4]
  22792. 8009f12: 681b ldr r3, [r3, #0]
  22793. 8009f14: 4a27 ldr r2, [pc, #156] @ (8009fb4 <HAL_DMA_IRQHandler+0x404>)
  22794. 8009f16: 4293 cmp r3, r2
  22795. 8009f18: d03b beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22796. 8009f1a: 687b ldr r3, [r7, #4]
  22797. 8009f1c: 681b ldr r3, [r3, #0]
  22798. 8009f1e: 4a26 ldr r2, [pc, #152] @ (8009fb8 <HAL_DMA_IRQHandler+0x408>)
  22799. 8009f20: 4293 cmp r3, r2
  22800. 8009f22: d036 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22801. 8009f24: 687b ldr r3, [r7, #4]
  22802. 8009f26: 681b ldr r3, [r3, #0]
  22803. 8009f28: 4a24 ldr r2, [pc, #144] @ (8009fbc <HAL_DMA_IRQHandler+0x40c>)
  22804. 8009f2a: 4293 cmp r3, r2
  22805. 8009f2c: d031 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22806. 8009f2e: 687b ldr r3, [r7, #4]
  22807. 8009f30: 681b ldr r3, [r3, #0]
  22808. 8009f32: 4a23 ldr r2, [pc, #140] @ (8009fc0 <HAL_DMA_IRQHandler+0x410>)
  22809. 8009f34: 4293 cmp r3, r2
  22810. 8009f36: d02c beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22811. 8009f38: 687b ldr r3, [r7, #4]
  22812. 8009f3a: 681b ldr r3, [r3, #0]
  22813. 8009f3c: 4a21 ldr r2, [pc, #132] @ (8009fc4 <HAL_DMA_IRQHandler+0x414>)
  22814. 8009f3e: 4293 cmp r3, r2
  22815. 8009f40: d027 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22816. 8009f42: 687b ldr r3, [r7, #4]
  22817. 8009f44: 681b ldr r3, [r3, #0]
  22818. 8009f46: 4a20 ldr r2, [pc, #128] @ (8009fc8 <HAL_DMA_IRQHandler+0x418>)
  22819. 8009f48: 4293 cmp r3, r2
  22820. 8009f4a: d022 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22821. 8009f4c: 687b ldr r3, [r7, #4]
  22822. 8009f4e: 681b ldr r3, [r3, #0]
  22823. 8009f50: 4a1e ldr r2, [pc, #120] @ (8009fcc <HAL_DMA_IRQHandler+0x41c>)
  22824. 8009f52: 4293 cmp r3, r2
  22825. 8009f54: d01d beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22826. 8009f56: 687b ldr r3, [r7, #4]
  22827. 8009f58: 681b ldr r3, [r3, #0]
  22828. 8009f5a: 4a1d ldr r2, [pc, #116] @ (8009fd0 <HAL_DMA_IRQHandler+0x420>)
  22829. 8009f5c: 4293 cmp r3, r2
  22830. 8009f5e: d018 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22831. 8009f60: 687b ldr r3, [r7, #4]
  22832. 8009f62: 681b ldr r3, [r3, #0]
  22833. 8009f64: 4a1b ldr r2, [pc, #108] @ (8009fd4 <HAL_DMA_IRQHandler+0x424>)
  22834. 8009f66: 4293 cmp r3, r2
  22835. 8009f68: d013 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22836. 8009f6a: 687b ldr r3, [r7, #4]
  22837. 8009f6c: 681b ldr r3, [r3, #0]
  22838. 8009f6e: 4a1a ldr r2, [pc, #104] @ (8009fd8 <HAL_DMA_IRQHandler+0x428>)
  22839. 8009f70: 4293 cmp r3, r2
  22840. 8009f72: d00e beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22841. 8009f74: 687b ldr r3, [r7, #4]
  22842. 8009f76: 681b ldr r3, [r3, #0]
  22843. 8009f78: 4a18 ldr r2, [pc, #96] @ (8009fdc <HAL_DMA_IRQHandler+0x42c>)
  22844. 8009f7a: 4293 cmp r3, r2
  22845. 8009f7c: d009 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22846. 8009f7e: 687b ldr r3, [r7, #4]
  22847. 8009f80: 681b ldr r3, [r3, #0]
  22848. 8009f82: 4a17 ldr r2, [pc, #92] @ (8009fe0 <HAL_DMA_IRQHandler+0x430>)
  22849. 8009f84: 4293 cmp r3, r2
  22850. 8009f86: d004 beq.n 8009f92 <HAL_DMA_IRQHandler+0x3e2>
  22851. 8009f88: 687b ldr r3, [r7, #4]
  22852. 8009f8a: 681b ldr r3, [r3, #0]
  22853. 8009f8c: 4a15 ldr r2, [pc, #84] @ (8009fe4 <HAL_DMA_IRQHandler+0x434>)
  22854. 8009f8e: 4293 cmp r3, r2
  22855. 8009f90: d12a bne.n 8009fe8 <HAL_DMA_IRQHandler+0x438>
  22856. 8009f92: 687b ldr r3, [r7, #4]
  22857. 8009f94: 681b ldr r3, [r3, #0]
  22858. 8009f96: 681b ldr r3, [r3, #0]
  22859. 8009f98: f003 0302 and.w r3, r3, #2
  22860. 8009f9c: 2b00 cmp r3, #0
  22861. 8009f9e: bf14 ite ne
  22862. 8009fa0: 2301 movne r3, #1
  22863. 8009fa2: 2300 moveq r3, #0
  22864. 8009fa4: b2db uxtb r3, r3
  22865. 8009fa6: e023 b.n 8009ff0 <HAL_DMA_IRQHandler+0x440>
  22866. 8009fa8: 40020010 .word 0x40020010
  22867. 8009fac: 40020028 .word 0x40020028
  22868. 8009fb0: 40020040 .word 0x40020040
  22869. 8009fb4: 40020058 .word 0x40020058
  22870. 8009fb8: 40020070 .word 0x40020070
  22871. 8009fbc: 40020088 .word 0x40020088
  22872. 8009fc0: 400200a0 .word 0x400200a0
  22873. 8009fc4: 400200b8 .word 0x400200b8
  22874. 8009fc8: 40020410 .word 0x40020410
  22875. 8009fcc: 40020428 .word 0x40020428
  22876. 8009fd0: 40020440 .word 0x40020440
  22877. 8009fd4: 40020458 .word 0x40020458
  22878. 8009fd8: 40020470 .word 0x40020470
  22879. 8009fdc: 40020488 .word 0x40020488
  22880. 8009fe0: 400204a0 .word 0x400204a0
  22881. 8009fe4: 400204b8 .word 0x400204b8
  22882. 8009fe8: 687b ldr r3, [r7, #4]
  22883. 8009fea: 681b ldr r3, [r3, #0]
  22884. 8009fec: 681b ldr r3, [r3, #0]
  22885. 8009fee: 2300 movs r3, #0
  22886. 8009ff0: 2b00 cmp r3, #0
  22887. 8009ff2: d00d beq.n 800a010 <HAL_DMA_IRQHandler+0x460>
  22888. {
  22889. /* Clear the direct mode error flag */
  22890. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22891. 8009ff4: 687b ldr r3, [r7, #4]
  22892. 8009ff6: 6ddb ldr r3, [r3, #92] @ 0x5c
  22893. 8009ff8: f003 031f and.w r3, r3, #31
  22894. 8009ffc: 2204 movs r2, #4
  22895. 8009ffe: 409a lsls r2, r3
  22896. 800a000: 6a3b ldr r3, [r7, #32]
  22897. 800a002: 609a str r2, [r3, #8]
  22898. /* Update error code */
  22899. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  22900. 800a004: 687b ldr r3, [r7, #4]
  22901. 800a006: 6d5b ldr r3, [r3, #84] @ 0x54
  22902. 800a008: f043 0204 orr.w r2, r3, #4
  22903. 800a00c: 687b ldr r3, [r7, #4]
  22904. 800a00e: 655a str r2, [r3, #84] @ 0x54
  22905. }
  22906. }
  22907. /* Half Transfer Complete Interrupt management ******************************/
  22908. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22909. 800a010: 687b ldr r3, [r7, #4]
  22910. 800a012: 6ddb ldr r3, [r3, #92] @ 0x5c
  22911. 800a014: f003 031f and.w r3, r3, #31
  22912. 800a018: 2210 movs r2, #16
  22913. 800a01a: 409a lsls r2, r3
  22914. 800a01c: 69bb ldr r3, [r7, #24]
  22915. 800a01e: 4013 ands r3, r2
  22916. 800a020: 2b00 cmp r3, #0
  22917. 800a022: f000 80a6 beq.w 800a172 <HAL_DMA_IRQHandler+0x5c2>
  22918. {
  22919. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  22920. 800a026: 687b ldr r3, [r7, #4]
  22921. 800a028: 681b ldr r3, [r3, #0]
  22922. 800a02a: 4a85 ldr r2, [pc, #532] @ (800a240 <HAL_DMA_IRQHandler+0x690>)
  22923. 800a02c: 4293 cmp r3, r2
  22924. 800a02e: d04a beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22925. 800a030: 687b ldr r3, [r7, #4]
  22926. 800a032: 681b ldr r3, [r3, #0]
  22927. 800a034: 4a83 ldr r2, [pc, #524] @ (800a244 <HAL_DMA_IRQHandler+0x694>)
  22928. 800a036: 4293 cmp r3, r2
  22929. 800a038: d045 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22930. 800a03a: 687b ldr r3, [r7, #4]
  22931. 800a03c: 681b ldr r3, [r3, #0]
  22932. 800a03e: 4a82 ldr r2, [pc, #520] @ (800a248 <HAL_DMA_IRQHandler+0x698>)
  22933. 800a040: 4293 cmp r3, r2
  22934. 800a042: d040 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22935. 800a044: 687b ldr r3, [r7, #4]
  22936. 800a046: 681b ldr r3, [r3, #0]
  22937. 800a048: 4a80 ldr r2, [pc, #512] @ (800a24c <HAL_DMA_IRQHandler+0x69c>)
  22938. 800a04a: 4293 cmp r3, r2
  22939. 800a04c: d03b beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22940. 800a04e: 687b ldr r3, [r7, #4]
  22941. 800a050: 681b ldr r3, [r3, #0]
  22942. 800a052: 4a7f ldr r2, [pc, #508] @ (800a250 <HAL_DMA_IRQHandler+0x6a0>)
  22943. 800a054: 4293 cmp r3, r2
  22944. 800a056: d036 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22945. 800a058: 687b ldr r3, [r7, #4]
  22946. 800a05a: 681b ldr r3, [r3, #0]
  22947. 800a05c: 4a7d ldr r2, [pc, #500] @ (800a254 <HAL_DMA_IRQHandler+0x6a4>)
  22948. 800a05e: 4293 cmp r3, r2
  22949. 800a060: d031 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22950. 800a062: 687b ldr r3, [r7, #4]
  22951. 800a064: 681b ldr r3, [r3, #0]
  22952. 800a066: 4a7c ldr r2, [pc, #496] @ (800a258 <HAL_DMA_IRQHandler+0x6a8>)
  22953. 800a068: 4293 cmp r3, r2
  22954. 800a06a: d02c beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22955. 800a06c: 687b ldr r3, [r7, #4]
  22956. 800a06e: 681b ldr r3, [r3, #0]
  22957. 800a070: 4a7a ldr r2, [pc, #488] @ (800a25c <HAL_DMA_IRQHandler+0x6ac>)
  22958. 800a072: 4293 cmp r3, r2
  22959. 800a074: d027 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22960. 800a076: 687b ldr r3, [r7, #4]
  22961. 800a078: 681b ldr r3, [r3, #0]
  22962. 800a07a: 4a79 ldr r2, [pc, #484] @ (800a260 <HAL_DMA_IRQHandler+0x6b0>)
  22963. 800a07c: 4293 cmp r3, r2
  22964. 800a07e: d022 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22965. 800a080: 687b ldr r3, [r7, #4]
  22966. 800a082: 681b ldr r3, [r3, #0]
  22967. 800a084: 4a77 ldr r2, [pc, #476] @ (800a264 <HAL_DMA_IRQHandler+0x6b4>)
  22968. 800a086: 4293 cmp r3, r2
  22969. 800a088: d01d beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22970. 800a08a: 687b ldr r3, [r7, #4]
  22971. 800a08c: 681b ldr r3, [r3, #0]
  22972. 800a08e: 4a76 ldr r2, [pc, #472] @ (800a268 <HAL_DMA_IRQHandler+0x6b8>)
  22973. 800a090: 4293 cmp r3, r2
  22974. 800a092: d018 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22975. 800a094: 687b ldr r3, [r7, #4]
  22976. 800a096: 681b ldr r3, [r3, #0]
  22977. 800a098: 4a74 ldr r2, [pc, #464] @ (800a26c <HAL_DMA_IRQHandler+0x6bc>)
  22978. 800a09a: 4293 cmp r3, r2
  22979. 800a09c: d013 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22980. 800a09e: 687b ldr r3, [r7, #4]
  22981. 800a0a0: 681b ldr r3, [r3, #0]
  22982. 800a0a2: 4a73 ldr r2, [pc, #460] @ (800a270 <HAL_DMA_IRQHandler+0x6c0>)
  22983. 800a0a4: 4293 cmp r3, r2
  22984. 800a0a6: d00e beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22985. 800a0a8: 687b ldr r3, [r7, #4]
  22986. 800a0aa: 681b ldr r3, [r3, #0]
  22987. 800a0ac: 4a71 ldr r2, [pc, #452] @ (800a274 <HAL_DMA_IRQHandler+0x6c4>)
  22988. 800a0ae: 4293 cmp r3, r2
  22989. 800a0b0: d009 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22990. 800a0b2: 687b ldr r3, [r7, #4]
  22991. 800a0b4: 681b ldr r3, [r3, #0]
  22992. 800a0b6: 4a70 ldr r2, [pc, #448] @ (800a278 <HAL_DMA_IRQHandler+0x6c8>)
  22993. 800a0b8: 4293 cmp r3, r2
  22994. 800a0ba: d004 beq.n 800a0c6 <HAL_DMA_IRQHandler+0x516>
  22995. 800a0bc: 687b ldr r3, [r7, #4]
  22996. 800a0be: 681b ldr r3, [r3, #0]
  22997. 800a0c0: 4a6e ldr r2, [pc, #440] @ (800a27c <HAL_DMA_IRQHandler+0x6cc>)
  22998. 800a0c2: 4293 cmp r3, r2
  22999. 800a0c4: d10a bne.n 800a0dc <HAL_DMA_IRQHandler+0x52c>
  23000. 800a0c6: 687b ldr r3, [r7, #4]
  23001. 800a0c8: 681b ldr r3, [r3, #0]
  23002. 800a0ca: 681b ldr r3, [r3, #0]
  23003. 800a0cc: f003 0308 and.w r3, r3, #8
  23004. 800a0d0: 2b00 cmp r3, #0
  23005. 800a0d2: bf14 ite ne
  23006. 800a0d4: 2301 movne r3, #1
  23007. 800a0d6: 2300 moveq r3, #0
  23008. 800a0d8: b2db uxtb r3, r3
  23009. 800a0da: e009 b.n 800a0f0 <HAL_DMA_IRQHandler+0x540>
  23010. 800a0dc: 687b ldr r3, [r7, #4]
  23011. 800a0de: 681b ldr r3, [r3, #0]
  23012. 800a0e0: 681b ldr r3, [r3, #0]
  23013. 800a0e2: f003 0304 and.w r3, r3, #4
  23014. 800a0e6: 2b00 cmp r3, #0
  23015. 800a0e8: bf14 ite ne
  23016. 800a0ea: 2301 movne r3, #1
  23017. 800a0ec: 2300 moveq r3, #0
  23018. 800a0ee: b2db uxtb r3, r3
  23019. 800a0f0: 2b00 cmp r3, #0
  23020. 800a0f2: d03e beq.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23021. {
  23022. /* Clear the half transfer complete flag */
  23023. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  23024. 800a0f4: 687b ldr r3, [r7, #4]
  23025. 800a0f6: 6ddb ldr r3, [r3, #92] @ 0x5c
  23026. 800a0f8: f003 031f and.w r3, r3, #31
  23027. 800a0fc: 2210 movs r2, #16
  23028. 800a0fe: 409a lsls r2, r3
  23029. 800a100: 6a3b ldr r3, [r7, #32]
  23030. 800a102: 609a str r2, [r3, #8]
  23031. /* Multi_Buffering mode enabled */
  23032. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23033. 800a104: 687b ldr r3, [r7, #4]
  23034. 800a106: 681b ldr r3, [r3, #0]
  23035. 800a108: 681b ldr r3, [r3, #0]
  23036. 800a10a: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23037. 800a10e: 2b00 cmp r3, #0
  23038. 800a110: d018 beq.n 800a144 <HAL_DMA_IRQHandler+0x594>
  23039. {
  23040. /* Current memory buffer used is Memory 0 */
  23041. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23042. 800a112: 687b ldr r3, [r7, #4]
  23043. 800a114: 681b ldr r3, [r3, #0]
  23044. 800a116: 681b ldr r3, [r3, #0]
  23045. 800a118: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23046. 800a11c: 2b00 cmp r3, #0
  23047. 800a11e: d108 bne.n 800a132 <HAL_DMA_IRQHandler+0x582>
  23048. {
  23049. if(hdma->XferHalfCpltCallback != NULL)
  23050. 800a120: 687b ldr r3, [r7, #4]
  23051. 800a122: 6c1b ldr r3, [r3, #64] @ 0x40
  23052. 800a124: 2b00 cmp r3, #0
  23053. 800a126: d024 beq.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23054. {
  23055. /* Half transfer callback */
  23056. hdma->XferHalfCpltCallback(hdma);
  23057. 800a128: 687b ldr r3, [r7, #4]
  23058. 800a12a: 6c1b ldr r3, [r3, #64] @ 0x40
  23059. 800a12c: 6878 ldr r0, [r7, #4]
  23060. 800a12e: 4798 blx r3
  23061. 800a130: e01f b.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23062. }
  23063. }
  23064. /* Current memory buffer used is Memory 1 */
  23065. else
  23066. {
  23067. if(hdma->XferM1HalfCpltCallback != NULL)
  23068. 800a132: 687b ldr r3, [r7, #4]
  23069. 800a134: 6c9b ldr r3, [r3, #72] @ 0x48
  23070. 800a136: 2b00 cmp r3, #0
  23071. 800a138: d01b beq.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23072. {
  23073. /* Half transfer callback */
  23074. hdma->XferM1HalfCpltCallback(hdma);
  23075. 800a13a: 687b ldr r3, [r7, #4]
  23076. 800a13c: 6c9b ldr r3, [r3, #72] @ 0x48
  23077. 800a13e: 6878 ldr r0, [r7, #4]
  23078. 800a140: 4798 blx r3
  23079. 800a142: e016 b.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23080. }
  23081. }
  23082. else
  23083. {
  23084. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  23085. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23086. 800a144: 687b ldr r3, [r7, #4]
  23087. 800a146: 681b ldr r3, [r3, #0]
  23088. 800a148: 681b ldr r3, [r3, #0]
  23089. 800a14a: f403 7380 and.w r3, r3, #256 @ 0x100
  23090. 800a14e: 2b00 cmp r3, #0
  23091. 800a150: d107 bne.n 800a162 <HAL_DMA_IRQHandler+0x5b2>
  23092. {
  23093. /* Disable the half transfer interrupt */
  23094. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23095. 800a152: 687b ldr r3, [r7, #4]
  23096. 800a154: 681b ldr r3, [r3, #0]
  23097. 800a156: 681a ldr r2, [r3, #0]
  23098. 800a158: 687b ldr r3, [r7, #4]
  23099. 800a15a: 681b ldr r3, [r3, #0]
  23100. 800a15c: f022 0208 bic.w r2, r2, #8
  23101. 800a160: 601a str r2, [r3, #0]
  23102. }
  23103. if(hdma->XferHalfCpltCallback != NULL)
  23104. 800a162: 687b ldr r3, [r7, #4]
  23105. 800a164: 6c1b ldr r3, [r3, #64] @ 0x40
  23106. 800a166: 2b00 cmp r3, #0
  23107. 800a168: d003 beq.n 800a172 <HAL_DMA_IRQHandler+0x5c2>
  23108. {
  23109. /* Half transfer callback */
  23110. hdma->XferHalfCpltCallback(hdma);
  23111. 800a16a: 687b ldr r3, [r7, #4]
  23112. 800a16c: 6c1b ldr r3, [r3, #64] @ 0x40
  23113. 800a16e: 6878 ldr r0, [r7, #4]
  23114. 800a170: 4798 blx r3
  23115. }
  23116. }
  23117. }
  23118. }
  23119. /* Transfer Complete Interrupt management ***********************************/
  23120. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  23121. 800a172: 687b ldr r3, [r7, #4]
  23122. 800a174: 6ddb ldr r3, [r3, #92] @ 0x5c
  23123. 800a176: f003 031f and.w r3, r3, #31
  23124. 800a17a: 2220 movs r2, #32
  23125. 800a17c: 409a lsls r2, r3
  23126. 800a17e: 69bb ldr r3, [r7, #24]
  23127. 800a180: 4013 ands r3, r2
  23128. 800a182: 2b00 cmp r3, #0
  23129. 800a184: f000 8110 beq.w 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23130. {
  23131. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  23132. 800a188: 687b ldr r3, [r7, #4]
  23133. 800a18a: 681b ldr r3, [r3, #0]
  23134. 800a18c: 4a2c ldr r2, [pc, #176] @ (800a240 <HAL_DMA_IRQHandler+0x690>)
  23135. 800a18e: 4293 cmp r3, r2
  23136. 800a190: d04a beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23137. 800a192: 687b ldr r3, [r7, #4]
  23138. 800a194: 681b ldr r3, [r3, #0]
  23139. 800a196: 4a2b ldr r2, [pc, #172] @ (800a244 <HAL_DMA_IRQHandler+0x694>)
  23140. 800a198: 4293 cmp r3, r2
  23141. 800a19a: d045 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23142. 800a19c: 687b ldr r3, [r7, #4]
  23143. 800a19e: 681b ldr r3, [r3, #0]
  23144. 800a1a0: 4a29 ldr r2, [pc, #164] @ (800a248 <HAL_DMA_IRQHandler+0x698>)
  23145. 800a1a2: 4293 cmp r3, r2
  23146. 800a1a4: d040 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23147. 800a1a6: 687b ldr r3, [r7, #4]
  23148. 800a1a8: 681b ldr r3, [r3, #0]
  23149. 800a1aa: 4a28 ldr r2, [pc, #160] @ (800a24c <HAL_DMA_IRQHandler+0x69c>)
  23150. 800a1ac: 4293 cmp r3, r2
  23151. 800a1ae: d03b beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23152. 800a1b0: 687b ldr r3, [r7, #4]
  23153. 800a1b2: 681b ldr r3, [r3, #0]
  23154. 800a1b4: 4a26 ldr r2, [pc, #152] @ (800a250 <HAL_DMA_IRQHandler+0x6a0>)
  23155. 800a1b6: 4293 cmp r3, r2
  23156. 800a1b8: d036 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23157. 800a1ba: 687b ldr r3, [r7, #4]
  23158. 800a1bc: 681b ldr r3, [r3, #0]
  23159. 800a1be: 4a25 ldr r2, [pc, #148] @ (800a254 <HAL_DMA_IRQHandler+0x6a4>)
  23160. 800a1c0: 4293 cmp r3, r2
  23161. 800a1c2: d031 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23162. 800a1c4: 687b ldr r3, [r7, #4]
  23163. 800a1c6: 681b ldr r3, [r3, #0]
  23164. 800a1c8: 4a23 ldr r2, [pc, #140] @ (800a258 <HAL_DMA_IRQHandler+0x6a8>)
  23165. 800a1ca: 4293 cmp r3, r2
  23166. 800a1cc: d02c beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23167. 800a1ce: 687b ldr r3, [r7, #4]
  23168. 800a1d0: 681b ldr r3, [r3, #0]
  23169. 800a1d2: 4a22 ldr r2, [pc, #136] @ (800a25c <HAL_DMA_IRQHandler+0x6ac>)
  23170. 800a1d4: 4293 cmp r3, r2
  23171. 800a1d6: d027 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23172. 800a1d8: 687b ldr r3, [r7, #4]
  23173. 800a1da: 681b ldr r3, [r3, #0]
  23174. 800a1dc: 4a20 ldr r2, [pc, #128] @ (800a260 <HAL_DMA_IRQHandler+0x6b0>)
  23175. 800a1de: 4293 cmp r3, r2
  23176. 800a1e0: d022 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23177. 800a1e2: 687b ldr r3, [r7, #4]
  23178. 800a1e4: 681b ldr r3, [r3, #0]
  23179. 800a1e6: 4a1f ldr r2, [pc, #124] @ (800a264 <HAL_DMA_IRQHandler+0x6b4>)
  23180. 800a1e8: 4293 cmp r3, r2
  23181. 800a1ea: d01d beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23182. 800a1ec: 687b ldr r3, [r7, #4]
  23183. 800a1ee: 681b ldr r3, [r3, #0]
  23184. 800a1f0: 4a1d ldr r2, [pc, #116] @ (800a268 <HAL_DMA_IRQHandler+0x6b8>)
  23185. 800a1f2: 4293 cmp r3, r2
  23186. 800a1f4: d018 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23187. 800a1f6: 687b ldr r3, [r7, #4]
  23188. 800a1f8: 681b ldr r3, [r3, #0]
  23189. 800a1fa: 4a1c ldr r2, [pc, #112] @ (800a26c <HAL_DMA_IRQHandler+0x6bc>)
  23190. 800a1fc: 4293 cmp r3, r2
  23191. 800a1fe: d013 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23192. 800a200: 687b ldr r3, [r7, #4]
  23193. 800a202: 681b ldr r3, [r3, #0]
  23194. 800a204: 4a1a ldr r2, [pc, #104] @ (800a270 <HAL_DMA_IRQHandler+0x6c0>)
  23195. 800a206: 4293 cmp r3, r2
  23196. 800a208: d00e beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23197. 800a20a: 687b ldr r3, [r7, #4]
  23198. 800a20c: 681b ldr r3, [r3, #0]
  23199. 800a20e: 4a19 ldr r2, [pc, #100] @ (800a274 <HAL_DMA_IRQHandler+0x6c4>)
  23200. 800a210: 4293 cmp r3, r2
  23201. 800a212: d009 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23202. 800a214: 687b ldr r3, [r7, #4]
  23203. 800a216: 681b ldr r3, [r3, #0]
  23204. 800a218: 4a17 ldr r2, [pc, #92] @ (800a278 <HAL_DMA_IRQHandler+0x6c8>)
  23205. 800a21a: 4293 cmp r3, r2
  23206. 800a21c: d004 beq.n 800a228 <HAL_DMA_IRQHandler+0x678>
  23207. 800a21e: 687b ldr r3, [r7, #4]
  23208. 800a220: 681b ldr r3, [r3, #0]
  23209. 800a222: 4a16 ldr r2, [pc, #88] @ (800a27c <HAL_DMA_IRQHandler+0x6cc>)
  23210. 800a224: 4293 cmp r3, r2
  23211. 800a226: d12b bne.n 800a280 <HAL_DMA_IRQHandler+0x6d0>
  23212. 800a228: 687b ldr r3, [r7, #4]
  23213. 800a22a: 681b ldr r3, [r3, #0]
  23214. 800a22c: 681b ldr r3, [r3, #0]
  23215. 800a22e: f003 0310 and.w r3, r3, #16
  23216. 800a232: 2b00 cmp r3, #0
  23217. 800a234: bf14 ite ne
  23218. 800a236: 2301 movne r3, #1
  23219. 800a238: 2300 moveq r3, #0
  23220. 800a23a: b2db uxtb r3, r3
  23221. 800a23c: e02a b.n 800a294 <HAL_DMA_IRQHandler+0x6e4>
  23222. 800a23e: bf00 nop
  23223. 800a240: 40020010 .word 0x40020010
  23224. 800a244: 40020028 .word 0x40020028
  23225. 800a248: 40020040 .word 0x40020040
  23226. 800a24c: 40020058 .word 0x40020058
  23227. 800a250: 40020070 .word 0x40020070
  23228. 800a254: 40020088 .word 0x40020088
  23229. 800a258: 400200a0 .word 0x400200a0
  23230. 800a25c: 400200b8 .word 0x400200b8
  23231. 800a260: 40020410 .word 0x40020410
  23232. 800a264: 40020428 .word 0x40020428
  23233. 800a268: 40020440 .word 0x40020440
  23234. 800a26c: 40020458 .word 0x40020458
  23235. 800a270: 40020470 .word 0x40020470
  23236. 800a274: 40020488 .word 0x40020488
  23237. 800a278: 400204a0 .word 0x400204a0
  23238. 800a27c: 400204b8 .word 0x400204b8
  23239. 800a280: 687b ldr r3, [r7, #4]
  23240. 800a282: 681b ldr r3, [r3, #0]
  23241. 800a284: 681b ldr r3, [r3, #0]
  23242. 800a286: f003 0302 and.w r3, r3, #2
  23243. 800a28a: 2b00 cmp r3, #0
  23244. 800a28c: bf14 ite ne
  23245. 800a28e: 2301 movne r3, #1
  23246. 800a290: 2300 moveq r3, #0
  23247. 800a292: b2db uxtb r3, r3
  23248. 800a294: 2b00 cmp r3, #0
  23249. 800a296: f000 8087 beq.w 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23250. {
  23251. /* Clear the transfer complete flag */
  23252. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  23253. 800a29a: 687b ldr r3, [r7, #4]
  23254. 800a29c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23255. 800a29e: f003 031f and.w r3, r3, #31
  23256. 800a2a2: 2220 movs r2, #32
  23257. 800a2a4: 409a lsls r2, r3
  23258. 800a2a6: 6a3b ldr r3, [r7, #32]
  23259. 800a2a8: 609a str r2, [r3, #8]
  23260. if(HAL_DMA_STATE_ABORT == hdma->State)
  23261. 800a2aa: 687b ldr r3, [r7, #4]
  23262. 800a2ac: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  23263. 800a2b0: b2db uxtb r3, r3
  23264. 800a2b2: 2b04 cmp r3, #4
  23265. 800a2b4: d139 bne.n 800a32a <HAL_DMA_IRQHandler+0x77a>
  23266. {
  23267. /* Disable all the transfer interrupts */
  23268. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  23269. 800a2b6: 687b ldr r3, [r7, #4]
  23270. 800a2b8: 681b ldr r3, [r3, #0]
  23271. 800a2ba: 681a ldr r2, [r3, #0]
  23272. 800a2bc: 687b ldr r3, [r7, #4]
  23273. 800a2be: 681b ldr r3, [r3, #0]
  23274. 800a2c0: f022 0216 bic.w r2, r2, #22
  23275. 800a2c4: 601a str r2, [r3, #0]
  23276. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  23277. 800a2c6: 687b ldr r3, [r7, #4]
  23278. 800a2c8: 681b ldr r3, [r3, #0]
  23279. 800a2ca: 695a ldr r2, [r3, #20]
  23280. 800a2cc: 687b ldr r3, [r7, #4]
  23281. 800a2ce: 681b ldr r3, [r3, #0]
  23282. 800a2d0: f022 0280 bic.w r2, r2, #128 @ 0x80
  23283. 800a2d4: 615a str r2, [r3, #20]
  23284. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  23285. 800a2d6: 687b ldr r3, [r7, #4]
  23286. 800a2d8: 6c1b ldr r3, [r3, #64] @ 0x40
  23287. 800a2da: 2b00 cmp r3, #0
  23288. 800a2dc: d103 bne.n 800a2e6 <HAL_DMA_IRQHandler+0x736>
  23289. 800a2de: 687b ldr r3, [r7, #4]
  23290. 800a2e0: 6c9b ldr r3, [r3, #72] @ 0x48
  23291. 800a2e2: 2b00 cmp r3, #0
  23292. 800a2e4: d007 beq.n 800a2f6 <HAL_DMA_IRQHandler+0x746>
  23293. {
  23294. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  23295. 800a2e6: 687b ldr r3, [r7, #4]
  23296. 800a2e8: 681b ldr r3, [r3, #0]
  23297. 800a2ea: 681a ldr r2, [r3, #0]
  23298. 800a2ec: 687b ldr r3, [r7, #4]
  23299. 800a2ee: 681b ldr r3, [r3, #0]
  23300. 800a2f0: f022 0208 bic.w r2, r2, #8
  23301. 800a2f4: 601a str r2, [r3, #0]
  23302. }
  23303. /* Clear all interrupt flags at correct offset within the register */
  23304. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  23305. 800a2f6: 687b ldr r3, [r7, #4]
  23306. 800a2f8: 6ddb ldr r3, [r3, #92] @ 0x5c
  23307. 800a2fa: f003 031f and.w r3, r3, #31
  23308. 800a2fe: 223f movs r2, #63 @ 0x3f
  23309. 800a300: 409a lsls r2, r3
  23310. 800a302: 6a3b ldr r3, [r7, #32]
  23311. 800a304: 609a str r2, [r3, #8]
  23312. /* Change the DMA state */
  23313. hdma->State = HAL_DMA_STATE_READY;
  23314. 800a306: 687b ldr r3, [r7, #4]
  23315. 800a308: 2201 movs r2, #1
  23316. 800a30a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23317. /* Process Unlocked */
  23318. __HAL_UNLOCK(hdma);
  23319. 800a30e: 687b ldr r3, [r7, #4]
  23320. 800a310: 2200 movs r2, #0
  23321. 800a312: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23322. if(hdma->XferAbortCallback != NULL)
  23323. 800a316: 687b ldr r3, [r7, #4]
  23324. 800a318: 6d1b ldr r3, [r3, #80] @ 0x50
  23325. 800a31a: 2b00 cmp r3, #0
  23326. 800a31c: f000 834a beq.w 800a9b4 <HAL_DMA_IRQHandler+0xe04>
  23327. {
  23328. hdma->XferAbortCallback(hdma);
  23329. 800a320: 687b ldr r3, [r7, #4]
  23330. 800a322: 6d1b ldr r3, [r3, #80] @ 0x50
  23331. 800a324: 6878 ldr r0, [r7, #4]
  23332. 800a326: 4798 blx r3
  23333. }
  23334. return;
  23335. 800a328: e344 b.n 800a9b4 <HAL_DMA_IRQHandler+0xe04>
  23336. }
  23337. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  23338. 800a32a: 687b ldr r3, [r7, #4]
  23339. 800a32c: 681b ldr r3, [r3, #0]
  23340. 800a32e: 681b ldr r3, [r3, #0]
  23341. 800a330: f403 2380 and.w r3, r3, #262144 @ 0x40000
  23342. 800a334: 2b00 cmp r3, #0
  23343. 800a336: d018 beq.n 800a36a <HAL_DMA_IRQHandler+0x7ba>
  23344. {
  23345. /* Current memory buffer used is Memory 0 */
  23346. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  23347. 800a338: 687b ldr r3, [r7, #4]
  23348. 800a33a: 681b ldr r3, [r3, #0]
  23349. 800a33c: 681b ldr r3, [r3, #0]
  23350. 800a33e: f403 2300 and.w r3, r3, #524288 @ 0x80000
  23351. 800a342: 2b00 cmp r3, #0
  23352. 800a344: d108 bne.n 800a358 <HAL_DMA_IRQHandler+0x7a8>
  23353. {
  23354. if(hdma->XferM1CpltCallback != NULL)
  23355. 800a346: 687b ldr r3, [r7, #4]
  23356. 800a348: 6c5b ldr r3, [r3, #68] @ 0x44
  23357. 800a34a: 2b00 cmp r3, #0
  23358. 800a34c: d02c beq.n 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23359. {
  23360. /* Transfer complete Callback for memory1 */
  23361. hdma->XferM1CpltCallback(hdma);
  23362. 800a34e: 687b ldr r3, [r7, #4]
  23363. 800a350: 6c5b ldr r3, [r3, #68] @ 0x44
  23364. 800a352: 6878 ldr r0, [r7, #4]
  23365. 800a354: 4798 blx r3
  23366. 800a356: e027 b.n 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23367. }
  23368. }
  23369. /* Current memory buffer used is Memory 1 */
  23370. else
  23371. {
  23372. if(hdma->XferCpltCallback != NULL)
  23373. 800a358: 687b ldr r3, [r7, #4]
  23374. 800a35a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23375. 800a35c: 2b00 cmp r3, #0
  23376. 800a35e: d023 beq.n 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23377. {
  23378. /* Transfer complete Callback for memory0 */
  23379. hdma->XferCpltCallback(hdma);
  23380. 800a360: 687b ldr r3, [r7, #4]
  23381. 800a362: 6bdb ldr r3, [r3, #60] @ 0x3c
  23382. 800a364: 6878 ldr r0, [r7, #4]
  23383. 800a366: 4798 blx r3
  23384. 800a368: e01e b.n 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23385. }
  23386. }
  23387. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  23388. else
  23389. {
  23390. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  23391. 800a36a: 687b ldr r3, [r7, #4]
  23392. 800a36c: 681b ldr r3, [r3, #0]
  23393. 800a36e: 681b ldr r3, [r3, #0]
  23394. 800a370: f403 7380 and.w r3, r3, #256 @ 0x100
  23395. 800a374: 2b00 cmp r3, #0
  23396. 800a376: d10f bne.n 800a398 <HAL_DMA_IRQHandler+0x7e8>
  23397. {
  23398. /* Disable the transfer complete interrupt */
  23399. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  23400. 800a378: 687b ldr r3, [r7, #4]
  23401. 800a37a: 681b ldr r3, [r3, #0]
  23402. 800a37c: 681a ldr r2, [r3, #0]
  23403. 800a37e: 687b ldr r3, [r7, #4]
  23404. 800a380: 681b ldr r3, [r3, #0]
  23405. 800a382: f022 0210 bic.w r2, r2, #16
  23406. 800a386: 601a str r2, [r3, #0]
  23407. /* Change the DMA state */
  23408. hdma->State = HAL_DMA_STATE_READY;
  23409. 800a388: 687b ldr r3, [r7, #4]
  23410. 800a38a: 2201 movs r2, #1
  23411. 800a38c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23412. /* Process Unlocked */
  23413. __HAL_UNLOCK(hdma);
  23414. 800a390: 687b ldr r3, [r7, #4]
  23415. 800a392: 2200 movs r2, #0
  23416. 800a394: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23417. }
  23418. if(hdma->XferCpltCallback != NULL)
  23419. 800a398: 687b ldr r3, [r7, #4]
  23420. 800a39a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23421. 800a39c: 2b00 cmp r3, #0
  23422. 800a39e: d003 beq.n 800a3a8 <HAL_DMA_IRQHandler+0x7f8>
  23423. {
  23424. /* Transfer complete callback */
  23425. hdma->XferCpltCallback(hdma);
  23426. 800a3a0: 687b ldr r3, [r7, #4]
  23427. 800a3a2: 6bdb ldr r3, [r3, #60] @ 0x3c
  23428. 800a3a4: 6878 ldr r0, [r7, #4]
  23429. 800a3a6: 4798 blx r3
  23430. }
  23431. }
  23432. }
  23433. /* manage error case */
  23434. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  23435. 800a3a8: 687b ldr r3, [r7, #4]
  23436. 800a3aa: 6d5b ldr r3, [r3, #84] @ 0x54
  23437. 800a3ac: 2b00 cmp r3, #0
  23438. 800a3ae: f000 8306 beq.w 800a9be <HAL_DMA_IRQHandler+0xe0e>
  23439. {
  23440. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  23441. 800a3b2: 687b ldr r3, [r7, #4]
  23442. 800a3b4: 6d5b ldr r3, [r3, #84] @ 0x54
  23443. 800a3b6: f003 0301 and.w r3, r3, #1
  23444. 800a3ba: 2b00 cmp r3, #0
  23445. 800a3bc: f000 8088 beq.w 800a4d0 <HAL_DMA_IRQHandler+0x920>
  23446. {
  23447. hdma->State = HAL_DMA_STATE_ABORT;
  23448. 800a3c0: 687b ldr r3, [r7, #4]
  23449. 800a3c2: 2204 movs r2, #4
  23450. 800a3c4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23451. /* Disable the stream */
  23452. __HAL_DMA_DISABLE(hdma);
  23453. 800a3c8: 687b ldr r3, [r7, #4]
  23454. 800a3ca: 681b ldr r3, [r3, #0]
  23455. 800a3cc: 4a7a ldr r2, [pc, #488] @ (800a5b8 <HAL_DMA_IRQHandler+0xa08>)
  23456. 800a3ce: 4293 cmp r3, r2
  23457. 800a3d0: d04a beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23458. 800a3d2: 687b ldr r3, [r7, #4]
  23459. 800a3d4: 681b ldr r3, [r3, #0]
  23460. 800a3d6: 4a79 ldr r2, [pc, #484] @ (800a5bc <HAL_DMA_IRQHandler+0xa0c>)
  23461. 800a3d8: 4293 cmp r3, r2
  23462. 800a3da: d045 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23463. 800a3dc: 687b ldr r3, [r7, #4]
  23464. 800a3de: 681b ldr r3, [r3, #0]
  23465. 800a3e0: 4a77 ldr r2, [pc, #476] @ (800a5c0 <HAL_DMA_IRQHandler+0xa10>)
  23466. 800a3e2: 4293 cmp r3, r2
  23467. 800a3e4: d040 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23468. 800a3e6: 687b ldr r3, [r7, #4]
  23469. 800a3e8: 681b ldr r3, [r3, #0]
  23470. 800a3ea: 4a76 ldr r2, [pc, #472] @ (800a5c4 <HAL_DMA_IRQHandler+0xa14>)
  23471. 800a3ec: 4293 cmp r3, r2
  23472. 800a3ee: d03b beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23473. 800a3f0: 687b ldr r3, [r7, #4]
  23474. 800a3f2: 681b ldr r3, [r3, #0]
  23475. 800a3f4: 4a74 ldr r2, [pc, #464] @ (800a5c8 <HAL_DMA_IRQHandler+0xa18>)
  23476. 800a3f6: 4293 cmp r3, r2
  23477. 800a3f8: d036 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23478. 800a3fa: 687b ldr r3, [r7, #4]
  23479. 800a3fc: 681b ldr r3, [r3, #0]
  23480. 800a3fe: 4a73 ldr r2, [pc, #460] @ (800a5cc <HAL_DMA_IRQHandler+0xa1c>)
  23481. 800a400: 4293 cmp r3, r2
  23482. 800a402: d031 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23483. 800a404: 687b ldr r3, [r7, #4]
  23484. 800a406: 681b ldr r3, [r3, #0]
  23485. 800a408: 4a71 ldr r2, [pc, #452] @ (800a5d0 <HAL_DMA_IRQHandler+0xa20>)
  23486. 800a40a: 4293 cmp r3, r2
  23487. 800a40c: d02c beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23488. 800a40e: 687b ldr r3, [r7, #4]
  23489. 800a410: 681b ldr r3, [r3, #0]
  23490. 800a412: 4a70 ldr r2, [pc, #448] @ (800a5d4 <HAL_DMA_IRQHandler+0xa24>)
  23491. 800a414: 4293 cmp r3, r2
  23492. 800a416: d027 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23493. 800a418: 687b ldr r3, [r7, #4]
  23494. 800a41a: 681b ldr r3, [r3, #0]
  23495. 800a41c: 4a6e ldr r2, [pc, #440] @ (800a5d8 <HAL_DMA_IRQHandler+0xa28>)
  23496. 800a41e: 4293 cmp r3, r2
  23497. 800a420: d022 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23498. 800a422: 687b ldr r3, [r7, #4]
  23499. 800a424: 681b ldr r3, [r3, #0]
  23500. 800a426: 4a6d ldr r2, [pc, #436] @ (800a5dc <HAL_DMA_IRQHandler+0xa2c>)
  23501. 800a428: 4293 cmp r3, r2
  23502. 800a42a: d01d beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23503. 800a42c: 687b ldr r3, [r7, #4]
  23504. 800a42e: 681b ldr r3, [r3, #0]
  23505. 800a430: 4a6b ldr r2, [pc, #428] @ (800a5e0 <HAL_DMA_IRQHandler+0xa30>)
  23506. 800a432: 4293 cmp r3, r2
  23507. 800a434: d018 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23508. 800a436: 687b ldr r3, [r7, #4]
  23509. 800a438: 681b ldr r3, [r3, #0]
  23510. 800a43a: 4a6a ldr r2, [pc, #424] @ (800a5e4 <HAL_DMA_IRQHandler+0xa34>)
  23511. 800a43c: 4293 cmp r3, r2
  23512. 800a43e: d013 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23513. 800a440: 687b ldr r3, [r7, #4]
  23514. 800a442: 681b ldr r3, [r3, #0]
  23515. 800a444: 4a68 ldr r2, [pc, #416] @ (800a5e8 <HAL_DMA_IRQHandler+0xa38>)
  23516. 800a446: 4293 cmp r3, r2
  23517. 800a448: d00e beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23518. 800a44a: 687b ldr r3, [r7, #4]
  23519. 800a44c: 681b ldr r3, [r3, #0]
  23520. 800a44e: 4a67 ldr r2, [pc, #412] @ (800a5ec <HAL_DMA_IRQHandler+0xa3c>)
  23521. 800a450: 4293 cmp r3, r2
  23522. 800a452: d009 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23523. 800a454: 687b ldr r3, [r7, #4]
  23524. 800a456: 681b ldr r3, [r3, #0]
  23525. 800a458: 4a65 ldr r2, [pc, #404] @ (800a5f0 <HAL_DMA_IRQHandler+0xa40>)
  23526. 800a45a: 4293 cmp r3, r2
  23527. 800a45c: d004 beq.n 800a468 <HAL_DMA_IRQHandler+0x8b8>
  23528. 800a45e: 687b ldr r3, [r7, #4]
  23529. 800a460: 681b ldr r3, [r3, #0]
  23530. 800a462: 4a64 ldr r2, [pc, #400] @ (800a5f4 <HAL_DMA_IRQHandler+0xa44>)
  23531. 800a464: 4293 cmp r3, r2
  23532. 800a466: d108 bne.n 800a47a <HAL_DMA_IRQHandler+0x8ca>
  23533. 800a468: 687b ldr r3, [r7, #4]
  23534. 800a46a: 681b ldr r3, [r3, #0]
  23535. 800a46c: 681a ldr r2, [r3, #0]
  23536. 800a46e: 687b ldr r3, [r7, #4]
  23537. 800a470: 681b ldr r3, [r3, #0]
  23538. 800a472: f022 0201 bic.w r2, r2, #1
  23539. 800a476: 601a str r2, [r3, #0]
  23540. 800a478: e007 b.n 800a48a <HAL_DMA_IRQHandler+0x8da>
  23541. 800a47a: 687b ldr r3, [r7, #4]
  23542. 800a47c: 681b ldr r3, [r3, #0]
  23543. 800a47e: 681a ldr r2, [r3, #0]
  23544. 800a480: 687b ldr r3, [r7, #4]
  23545. 800a482: 681b ldr r3, [r3, #0]
  23546. 800a484: f022 0201 bic.w r2, r2, #1
  23547. 800a488: 601a str r2, [r3, #0]
  23548. do
  23549. {
  23550. if (++count > timeout)
  23551. 800a48a: 68fb ldr r3, [r7, #12]
  23552. 800a48c: 3301 adds r3, #1
  23553. 800a48e: 60fb str r3, [r7, #12]
  23554. 800a490: 6a7a ldr r2, [r7, #36] @ 0x24
  23555. 800a492: 429a cmp r2, r3
  23556. 800a494: d307 bcc.n 800a4a6 <HAL_DMA_IRQHandler+0x8f6>
  23557. {
  23558. break;
  23559. }
  23560. }
  23561. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  23562. 800a496: 687b ldr r3, [r7, #4]
  23563. 800a498: 681b ldr r3, [r3, #0]
  23564. 800a49a: 681b ldr r3, [r3, #0]
  23565. 800a49c: f003 0301 and.w r3, r3, #1
  23566. 800a4a0: 2b00 cmp r3, #0
  23567. 800a4a2: d1f2 bne.n 800a48a <HAL_DMA_IRQHandler+0x8da>
  23568. 800a4a4: e000 b.n 800a4a8 <HAL_DMA_IRQHandler+0x8f8>
  23569. break;
  23570. 800a4a6: bf00 nop
  23571. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  23572. 800a4a8: 687b ldr r3, [r7, #4]
  23573. 800a4aa: 681b ldr r3, [r3, #0]
  23574. 800a4ac: 681b ldr r3, [r3, #0]
  23575. 800a4ae: f003 0301 and.w r3, r3, #1
  23576. 800a4b2: 2b00 cmp r3, #0
  23577. 800a4b4: d004 beq.n 800a4c0 <HAL_DMA_IRQHandler+0x910>
  23578. {
  23579. /* Change the DMA state to error if DMA disable fails */
  23580. hdma->State = HAL_DMA_STATE_ERROR;
  23581. 800a4b6: 687b ldr r3, [r7, #4]
  23582. 800a4b8: 2203 movs r2, #3
  23583. 800a4ba: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23584. 800a4be: e003 b.n 800a4c8 <HAL_DMA_IRQHandler+0x918>
  23585. }
  23586. else
  23587. {
  23588. /* Change the DMA state to Ready if DMA disable success */
  23589. hdma->State = HAL_DMA_STATE_READY;
  23590. 800a4c0: 687b ldr r3, [r7, #4]
  23591. 800a4c2: 2201 movs r2, #1
  23592. 800a4c4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23593. }
  23594. /* Process Unlocked */
  23595. __HAL_UNLOCK(hdma);
  23596. 800a4c8: 687b ldr r3, [r7, #4]
  23597. 800a4ca: 2200 movs r2, #0
  23598. 800a4cc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23599. }
  23600. if(hdma->XferErrorCallback != NULL)
  23601. 800a4d0: 687b ldr r3, [r7, #4]
  23602. 800a4d2: 6cdb ldr r3, [r3, #76] @ 0x4c
  23603. 800a4d4: 2b00 cmp r3, #0
  23604. 800a4d6: f000 8272 beq.w 800a9be <HAL_DMA_IRQHandler+0xe0e>
  23605. {
  23606. /* Transfer error callback */
  23607. hdma->XferErrorCallback(hdma);
  23608. 800a4da: 687b ldr r3, [r7, #4]
  23609. 800a4dc: 6cdb ldr r3, [r3, #76] @ 0x4c
  23610. 800a4de: 6878 ldr r0, [r7, #4]
  23611. 800a4e0: 4798 blx r3
  23612. 800a4e2: e26c b.n 800a9be <HAL_DMA_IRQHandler+0xe0e>
  23613. }
  23614. }
  23615. }
  23616. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23617. 800a4e4: 687b ldr r3, [r7, #4]
  23618. 800a4e6: 681b ldr r3, [r3, #0]
  23619. 800a4e8: 4a43 ldr r2, [pc, #268] @ (800a5f8 <HAL_DMA_IRQHandler+0xa48>)
  23620. 800a4ea: 4293 cmp r3, r2
  23621. 800a4ec: d022 beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23622. 800a4ee: 687b ldr r3, [r7, #4]
  23623. 800a4f0: 681b ldr r3, [r3, #0]
  23624. 800a4f2: 4a42 ldr r2, [pc, #264] @ (800a5fc <HAL_DMA_IRQHandler+0xa4c>)
  23625. 800a4f4: 4293 cmp r3, r2
  23626. 800a4f6: d01d beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23627. 800a4f8: 687b ldr r3, [r7, #4]
  23628. 800a4fa: 681b ldr r3, [r3, #0]
  23629. 800a4fc: 4a40 ldr r2, [pc, #256] @ (800a600 <HAL_DMA_IRQHandler+0xa50>)
  23630. 800a4fe: 4293 cmp r3, r2
  23631. 800a500: d018 beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23632. 800a502: 687b ldr r3, [r7, #4]
  23633. 800a504: 681b ldr r3, [r3, #0]
  23634. 800a506: 4a3f ldr r2, [pc, #252] @ (800a604 <HAL_DMA_IRQHandler+0xa54>)
  23635. 800a508: 4293 cmp r3, r2
  23636. 800a50a: d013 beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23637. 800a50c: 687b ldr r3, [r7, #4]
  23638. 800a50e: 681b ldr r3, [r3, #0]
  23639. 800a510: 4a3d ldr r2, [pc, #244] @ (800a608 <HAL_DMA_IRQHandler+0xa58>)
  23640. 800a512: 4293 cmp r3, r2
  23641. 800a514: d00e beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23642. 800a516: 687b ldr r3, [r7, #4]
  23643. 800a518: 681b ldr r3, [r3, #0]
  23644. 800a51a: 4a3c ldr r2, [pc, #240] @ (800a60c <HAL_DMA_IRQHandler+0xa5c>)
  23645. 800a51c: 4293 cmp r3, r2
  23646. 800a51e: d009 beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23647. 800a520: 687b ldr r3, [r7, #4]
  23648. 800a522: 681b ldr r3, [r3, #0]
  23649. 800a524: 4a3a ldr r2, [pc, #232] @ (800a610 <HAL_DMA_IRQHandler+0xa60>)
  23650. 800a526: 4293 cmp r3, r2
  23651. 800a528: d004 beq.n 800a534 <HAL_DMA_IRQHandler+0x984>
  23652. 800a52a: 687b ldr r3, [r7, #4]
  23653. 800a52c: 681b ldr r3, [r3, #0]
  23654. 800a52e: 4a39 ldr r2, [pc, #228] @ (800a614 <HAL_DMA_IRQHandler+0xa64>)
  23655. 800a530: 4293 cmp r3, r2
  23656. 800a532: d101 bne.n 800a538 <HAL_DMA_IRQHandler+0x988>
  23657. 800a534: 2301 movs r3, #1
  23658. 800a536: e000 b.n 800a53a <HAL_DMA_IRQHandler+0x98a>
  23659. 800a538: 2300 movs r3, #0
  23660. 800a53a: 2b00 cmp r3, #0
  23661. 800a53c: f000 823f beq.w 800a9be <HAL_DMA_IRQHandler+0xe0e>
  23662. {
  23663. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  23664. 800a540: 687b ldr r3, [r7, #4]
  23665. 800a542: 681b ldr r3, [r3, #0]
  23666. 800a544: 681b ldr r3, [r3, #0]
  23667. 800a546: 613b str r3, [r7, #16]
  23668. /* Half Transfer Complete Interrupt management ******************************/
  23669. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  23670. 800a548: 687b ldr r3, [r7, #4]
  23671. 800a54a: 6ddb ldr r3, [r3, #92] @ 0x5c
  23672. 800a54c: f003 031f and.w r3, r3, #31
  23673. 800a550: 2204 movs r2, #4
  23674. 800a552: 409a lsls r2, r3
  23675. 800a554: 697b ldr r3, [r7, #20]
  23676. 800a556: 4013 ands r3, r2
  23677. 800a558: 2b00 cmp r3, #0
  23678. 800a55a: f000 80cd beq.w 800a6f8 <HAL_DMA_IRQHandler+0xb48>
  23679. 800a55e: 693b ldr r3, [r7, #16]
  23680. 800a560: f003 0304 and.w r3, r3, #4
  23681. 800a564: 2b00 cmp r3, #0
  23682. 800a566: f000 80c7 beq.w 800a6f8 <HAL_DMA_IRQHandler+0xb48>
  23683. {
  23684. /* Clear the half transfer complete flag */
  23685. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  23686. 800a56a: 687b ldr r3, [r7, #4]
  23687. 800a56c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23688. 800a56e: f003 031f and.w r3, r3, #31
  23689. 800a572: 2204 movs r2, #4
  23690. 800a574: 409a lsls r2, r3
  23691. 800a576: 69fb ldr r3, [r7, #28]
  23692. 800a578: 605a str r2, [r3, #4]
  23693. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23694. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23695. 800a57a: 693b ldr r3, [r7, #16]
  23696. 800a57c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23697. 800a580: 2b00 cmp r3, #0
  23698. 800a582: d049 beq.n 800a618 <HAL_DMA_IRQHandler+0xa68>
  23699. {
  23700. /* Current memory buffer used is Memory 0 */
  23701. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23702. 800a584: 693b ldr r3, [r7, #16]
  23703. 800a586: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23704. 800a58a: 2b00 cmp r3, #0
  23705. 800a58c: d109 bne.n 800a5a2 <HAL_DMA_IRQHandler+0x9f2>
  23706. {
  23707. if(hdma->XferM1HalfCpltCallback != NULL)
  23708. 800a58e: 687b ldr r3, [r7, #4]
  23709. 800a590: 6c9b ldr r3, [r3, #72] @ 0x48
  23710. 800a592: 2b00 cmp r3, #0
  23711. 800a594: f000 8210 beq.w 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23712. {
  23713. /* Half transfer Callback for Memory 1 */
  23714. hdma->XferM1HalfCpltCallback(hdma);
  23715. 800a598: 687b ldr r3, [r7, #4]
  23716. 800a59a: 6c9b ldr r3, [r3, #72] @ 0x48
  23717. 800a59c: 6878 ldr r0, [r7, #4]
  23718. 800a59e: 4798 blx r3
  23719. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23720. 800a5a0: e20a b.n 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23721. }
  23722. }
  23723. /* Current memory buffer used is Memory 1 */
  23724. else
  23725. {
  23726. if(hdma->XferHalfCpltCallback != NULL)
  23727. 800a5a2: 687b ldr r3, [r7, #4]
  23728. 800a5a4: 6c1b ldr r3, [r3, #64] @ 0x40
  23729. 800a5a6: 2b00 cmp r3, #0
  23730. 800a5a8: f000 8206 beq.w 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23731. {
  23732. /* Half transfer Callback for Memory 0 */
  23733. hdma->XferHalfCpltCallback(hdma);
  23734. 800a5ac: 687b ldr r3, [r7, #4]
  23735. 800a5ae: 6c1b ldr r3, [r3, #64] @ 0x40
  23736. 800a5b0: 6878 ldr r0, [r7, #4]
  23737. 800a5b2: 4798 blx r3
  23738. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23739. 800a5b4: e200 b.n 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23740. 800a5b6: bf00 nop
  23741. 800a5b8: 40020010 .word 0x40020010
  23742. 800a5bc: 40020028 .word 0x40020028
  23743. 800a5c0: 40020040 .word 0x40020040
  23744. 800a5c4: 40020058 .word 0x40020058
  23745. 800a5c8: 40020070 .word 0x40020070
  23746. 800a5cc: 40020088 .word 0x40020088
  23747. 800a5d0: 400200a0 .word 0x400200a0
  23748. 800a5d4: 400200b8 .word 0x400200b8
  23749. 800a5d8: 40020410 .word 0x40020410
  23750. 800a5dc: 40020428 .word 0x40020428
  23751. 800a5e0: 40020440 .word 0x40020440
  23752. 800a5e4: 40020458 .word 0x40020458
  23753. 800a5e8: 40020470 .word 0x40020470
  23754. 800a5ec: 40020488 .word 0x40020488
  23755. 800a5f0: 400204a0 .word 0x400204a0
  23756. 800a5f4: 400204b8 .word 0x400204b8
  23757. 800a5f8: 58025408 .word 0x58025408
  23758. 800a5fc: 5802541c .word 0x5802541c
  23759. 800a600: 58025430 .word 0x58025430
  23760. 800a604: 58025444 .word 0x58025444
  23761. 800a608: 58025458 .word 0x58025458
  23762. 800a60c: 5802546c .word 0x5802546c
  23763. 800a610: 58025480 .word 0x58025480
  23764. 800a614: 58025494 .word 0x58025494
  23765. }
  23766. }
  23767. }
  23768. else
  23769. {
  23770. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23771. 800a618: 693b ldr r3, [r7, #16]
  23772. 800a61a: f003 0320 and.w r3, r3, #32
  23773. 800a61e: 2b00 cmp r3, #0
  23774. 800a620: d160 bne.n 800a6e4 <HAL_DMA_IRQHandler+0xb34>
  23775. {
  23776. /* Disable the half transfer interrupt */
  23777. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  23778. 800a622: 687b ldr r3, [r7, #4]
  23779. 800a624: 681b ldr r3, [r3, #0]
  23780. 800a626: 4a7f ldr r2, [pc, #508] @ (800a824 <HAL_DMA_IRQHandler+0xc74>)
  23781. 800a628: 4293 cmp r3, r2
  23782. 800a62a: d04a beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23783. 800a62c: 687b ldr r3, [r7, #4]
  23784. 800a62e: 681b ldr r3, [r3, #0]
  23785. 800a630: 4a7d ldr r2, [pc, #500] @ (800a828 <HAL_DMA_IRQHandler+0xc78>)
  23786. 800a632: 4293 cmp r3, r2
  23787. 800a634: d045 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23788. 800a636: 687b ldr r3, [r7, #4]
  23789. 800a638: 681b ldr r3, [r3, #0]
  23790. 800a63a: 4a7c ldr r2, [pc, #496] @ (800a82c <HAL_DMA_IRQHandler+0xc7c>)
  23791. 800a63c: 4293 cmp r3, r2
  23792. 800a63e: d040 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23793. 800a640: 687b ldr r3, [r7, #4]
  23794. 800a642: 681b ldr r3, [r3, #0]
  23795. 800a644: 4a7a ldr r2, [pc, #488] @ (800a830 <HAL_DMA_IRQHandler+0xc80>)
  23796. 800a646: 4293 cmp r3, r2
  23797. 800a648: d03b beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23798. 800a64a: 687b ldr r3, [r7, #4]
  23799. 800a64c: 681b ldr r3, [r3, #0]
  23800. 800a64e: 4a79 ldr r2, [pc, #484] @ (800a834 <HAL_DMA_IRQHandler+0xc84>)
  23801. 800a650: 4293 cmp r3, r2
  23802. 800a652: d036 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23803. 800a654: 687b ldr r3, [r7, #4]
  23804. 800a656: 681b ldr r3, [r3, #0]
  23805. 800a658: 4a77 ldr r2, [pc, #476] @ (800a838 <HAL_DMA_IRQHandler+0xc88>)
  23806. 800a65a: 4293 cmp r3, r2
  23807. 800a65c: d031 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23808. 800a65e: 687b ldr r3, [r7, #4]
  23809. 800a660: 681b ldr r3, [r3, #0]
  23810. 800a662: 4a76 ldr r2, [pc, #472] @ (800a83c <HAL_DMA_IRQHandler+0xc8c>)
  23811. 800a664: 4293 cmp r3, r2
  23812. 800a666: d02c beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23813. 800a668: 687b ldr r3, [r7, #4]
  23814. 800a66a: 681b ldr r3, [r3, #0]
  23815. 800a66c: 4a74 ldr r2, [pc, #464] @ (800a840 <HAL_DMA_IRQHandler+0xc90>)
  23816. 800a66e: 4293 cmp r3, r2
  23817. 800a670: d027 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23818. 800a672: 687b ldr r3, [r7, #4]
  23819. 800a674: 681b ldr r3, [r3, #0]
  23820. 800a676: 4a73 ldr r2, [pc, #460] @ (800a844 <HAL_DMA_IRQHandler+0xc94>)
  23821. 800a678: 4293 cmp r3, r2
  23822. 800a67a: d022 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23823. 800a67c: 687b ldr r3, [r7, #4]
  23824. 800a67e: 681b ldr r3, [r3, #0]
  23825. 800a680: 4a71 ldr r2, [pc, #452] @ (800a848 <HAL_DMA_IRQHandler+0xc98>)
  23826. 800a682: 4293 cmp r3, r2
  23827. 800a684: d01d beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23828. 800a686: 687b ldr r3, [r7, #4]
  23829. 800a688: 681b ldr r3, [r3, #0]
  23830. 800a68a: 4a70 ldr r2, [pc, #448] @ (800a84c <HAL_DMA_IRQHandler+0xc9c>)
  23831. 800a68c: 4293 cmp r3, r2
  23832. 800a68e: d018 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23833. 800a690: 687b ldr r3, [r7, #4]
  23834. 800a692: 681b ldr r3, [r3, #0]
  23835. 800a694: 4a6e ldr r2, [pc, #440] @ (800a850 <HAL_DMA_IRQHandler+0xca0>)
  23836. 800a696: 4293 cmp r3, r2
  23837. 800a698: d013 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23838. 800a69a: 687b ldr r3, [r7, #4]
  23839. 800a69c: 681b ldr r3, [r3, #0]
  23840. 800a69e: 4a6d ldr r2, [pc, #436] @ (800a854 <HAL_DMA_IRQHandler+0xca4>)
  23841. 800a6a0: 4293 cmp r3, r2
  23842. 800a6a2: d00e beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23843. 800a6a4: 687b ldr r3, [r7, #4]
  23844. 800a6a6: 681b ldr r3, [r3, #0]
  23845. 800a6a8: 4a6b ldr r2, [pc, #428] @ (800a858 <HAL_DMA_IRQHandler+0xca8>)
  23846. 800a6aa: 4293 cmp r3, r2
  23847. 800a6ac: d009 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23848. 800a6ae: 687b ldr r3, [r7, #4]
  23849. 800a6b0: 681b ldr r3, [r3, #0]
  23850. 800a6b2: 4a6a ldr r2, [pc, #424] @ (800a85c <HAL_DMA_IRQHandler+0xcac>)
  23851. 800a6b4: 4293 cmp r3, r2
  23852. 800a6b6: d004 beq.n 800a6c2 <HAL_DMA_IRQHandler+0xb12>
  23853. 800a6b8: 687b ldr r3, [r7, #4]
  23854. 800a6ba: 681b ldr r3, [r3, #0]
  23855. 800a6bc: 4a68 ldr r2, [pc, #416] @ (800a860 <HAL_DMA_IRQHandler+0xcb0>)
  23856. 800a6be: 4293 cmp r3, r2
  23857. 800a6c0: d108 bne.n 800a6d4 <HAL_DMA_IRQHandler+0xb24>
  23858. 800a6c2: 687b ldr r3, [r7, #4]
  23859. 800a6c4: 681b ldr r3, [r3, #0]
  23860. 800a6c6: 681a ldr r2, [r3, #0]
  23861. 800a6c8: 687b ldr r3, [r7, #4]
  23862. 800a6ca: 681b ldr r3, [r3, #0]
  23863. 800a6cc: f022 0208 bic.w r2, r2, #8
  23864. 800a6d0: 601a str r2, [r3, #0]
  23865. 800a6d2: e007 b.n 800a6e4 <HAL_DMA_IRQHandler+0xb34>
  23866. 800a6d4: 687b ldr r3, [r7, #4]
  23867. 800a6d6: 681b ldr r3, [r3, #0]
  23868. 800a6d8: 681a ldr r2, [r3, #0]
  23869. 800a6da: 687b ldr r3, [r7, #4]
  23870. 800a6dc: 681b ldr r3, [r3, #0]
  23871. 800a6de: f022 0204 bic.w r2, r2, #4
  23872. 800a6e2: 601a str r2, [r3, #0]
  23873. }
  23874. /* DMA peripheral state is not updated in Half Transfer */
  23875. /* but in Transfer Complete case */
  23876. if(hdma->XferHalfCpltCallback != NULL)
  23877. 800a6e4: 687b ldr r3, [r7, #4]
  23878. 800a6e6: 6c1b ldr r3, [r3, #64] @ 0x40
  23879. 800a6e8: 2b00 cmp r3, #0
  23880. 800a6ea: f000 8165 beq.w 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23881. {
  23882. /* Half transfer callback */
  23883. hdma->XferHalfCpltCallback(hdma);
  23884. 800a6ee: 687b ldr r3, [r7, #4]
  23885. 800a6f0: 6c1b ldr r3, [r3, #64] @ 0x40
  23886. 800a6f2: 6878 ldr r0, [r7, #4]
  23887. 800a6f4: 4798 blx r3
  23888. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23889. 800a6f6: e15f b.n 800a9b8 <HAL_DMA_IRQHandler+0xe08>
  23890. }
  23891. }
  23892. }
  23893. /* Transfer Complete Interrupt management ***********************************/
  23894. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  23895. 800a6f8: 687b ldr r3, [r7, #4]
  23896. 800a6fa: 6ddb ldr r3, [r3, #92] @ 0x5c
  23897. 800a6fc: f003 031f and.w r3, r3, #31
  23898. 800a700: 2202 movs r2, #2
  23899. 800a702: 409a lsls r2, r3
  23900. 800a704: 697b ldr r3, [r7, #20]
  23901. 800a706: 4013 ands r3, r2
  23902. 800a708: 2b00 cmp r3, #0
  23903. 800a70a: f000 80c5 beq.w 800a898 <HAL_DMA_IRQHandler+0xce8>
  23904. 800a70e: 693b ldr r3, [r7, #16]
  23905. 800a710: f003 0302 and.w r3, r3, #2
  23906. 800a714: 2b00 cmp r3, #0
  23907. 800a716: f000 80bf beq.w 800a898 <HAL_DMA_IRQHandler+0xce8>
  23908. {
  23909. /* Clear the transfer complete flag */
  23910. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  23911. 800a71a: 687b ldr r3, [r7, #4]
  23912. 800a71c: 6ddb ldr r3, [r3, #92] @ 0x5c
  23913. 800a71e: f003 031f and.w r3, r3, #31
  23914. 800a722: 2202 movs r2, #2
  23915. 800a724: 409a lsls r2, r3
  23916. 800a726: 69fb ldr r3, [r7, #28]
  23917. 800a728: 605a str r2, [r3, #4]
  23918. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23919. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23920. 800a72a: 693b ldr r3, [r7, #16]
  23921. 800a72c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23922. 800a730: 2b00 cmp r3, #0
  23923. 800a732: d018 beq.n 800a766 <HAL_DMA_IRQHandler+0xbb6>
  23924. {
  23925. /* Current memory buffer used is Memory 0 */
  23926. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23927. 800a734: 693b ldr r3, [r7, #16]
  23928. 800a736: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23929. 800a73a: 2b00 cmp r3, #0
  23930. 800a73c: d109 bne.n 800a752 <HAL_DMA_IRQHandler+0xba2>
  23931. {
  23932. if(hdma->XferM1CpltCallback != NULL)
  23933. 800a73e: 687b ldr r3, [r7, #4]
  23934. 800a740: 6c5b ldr r3, [r3, #68] @ 0x44
  23935. 800a742: 2b00 cmp r3, #0
  23936. 800a744: f000 813a beq.w 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  23937. {
  23938. /* Transfer complete Callback for Memory 1 */
  23939. hdma->XferM1CpltCallback(hdma);
  23940. 800a748: 687b ldr r3, [r7, #4]
  23941. 800a74a: 6c5b ldr r3, [r3, #68] @ 0x44
  23942. 800a74c: 6878 ldr r0, [r7, #4]
  23943. 800a74e: 4798 blx r3
  23944. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23945. 800a750: e134 b.n 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  23946. }
  23947. }
  23948. /* Current memory buffer used is Memory 1 */
  23949. else
  23950. {
  23951. if(hdma->XferCpltCallback != NULL)
  23952. 800a752: 687b ldr r3, [r7, #4]
  23953. 800a754: 6bdb ldr r3, [r3, #60] @ 0x3c
  23954. 800a756: 2b00 cmp r3, #0
  23955. 800a758: f000 8130 beq.w 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  23956. {
  23957. /* Transfer complete Callback for Memory 0 */
  23958. hdma->XferCpltCallback(hdma);
  23959. 800a75c: 687b ldr r3, [r7, #4]
  23960. 800a75e: 6bdb ldr r3, [r3, #60] @ 0x3c
  23961. 800a760: 6878 ldr r0, [r7, #4]
  23962. 800a762: 4798 blx r3
  23963. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23964. 800a764: e12a b.n 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  23965. }
  23966. }
  23967. }
  23968. else
  23969. {
  23970. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23971. 800a766: 693b ldr r3, [r7, #16]
  23972. 800a768: f003 0320 and.w r3, r3, #32
  23973. 800a76c: 2b00 cmp r3, #0
  23974. 800a76e: f040 8089 bne.w 800a884 <HAL_DMA_IRQHandler+0xcd4>
  23975. {
  23976. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  23977. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  23978. 800a772: 687b ldr r3, [r7, #4]
  23979. 800a774: 681b ldr r3, [r3, #0]
  23980. 800a776: 4a2b ldr r2, [pc, #172] @ (800a824 <HAL_DMA_IRQHandler+0xc74>)
  23981. 800a778: 4293 cmp r3, r2
  23982. 800a77a: d04a beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  23983. 800a77c: 687b ldr r3, [r7, #4]
  23984. 800a77e: 681b ldr r3, [r3, #0]
  23985. 800a780: 4a29 ldr r2, [pc, #164] @ (800a828 <HAL_DMA_IRQHandler+0xc78>)
  23986. 800a782: 4293 cmp r3, r2
  23987. 800a784: d045 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  23988. 800a786: 687b ldr r3, [r7, #4]
  23989. 800a788: 681b ldr r3, [r3, #0]
  23990. 800a78a: 4a28 ldr r2, [pc, #160] @ (800a82c <HAL_DMA_IRQHandler+0xc7c>)
  23991. 800a78c: 4293 cmp r3, r2
  23992. 800a78e: d040 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  23993. 800a790: 687b ldr r3, [r7, #4]
  23994. 800a792: 681b ldr r3, [r3, #0]
  23995. 800a794: 4a26 ldr r2, [pc, #152] @ (800a830 <HAL_DMA_IRQHandler+0xc80>)
  23996. 800a796: 4293 cmp r3, r2
  23997. 800a798: d03b beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  23998. 800a79a: 687b ldr r3, [r7, #4]
  23999. 800a79c: 681b ldr r3, [r3, #0]
  24000. 800a79e: 4a25 ldr r2, [pc, #148] @ (800a834 <HAL_DMA_IRQHandler+0xc84>)
  24001. 800a7a0: 4293 cmp r3, r2
  24002. 800a7a2: d036 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24003. 800a7a4: 687b ldr r3, [r7, #4]
  24004. 800a7a6: 681b ldr r3, [r3, #0]
  24005. 800a7a8: 4a23 ldr r2, [pc, #140] @ (800a838 <HAL_DMA_IRQHandler+0xc88>)
  24006. 800a7aa: 4293 cmp r3, r2
  24007. 800a7ac: d031 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24008. 800a7ae: 687b ldr r3, [r7, #4]
  24009. 800a7b0: 681b ldr r3, [r3, #0]
  24010. 800a7b2: 4a22 ldr r2, [pc, #136] @ (800a83c <HAL_DMA_IRQHandler+0xc8c>)
  24011. 800a7b4: 4293 cmp r3, r2
  24012. 800a7b6: d02c beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24013. 800a7b8: 687b ldr r3, [r7, #4]
  24014. 800a7ba: 681b ldr r3, [r3, #0]
  24015. 800a7bc: 4a20 ldr r2, [pc, #128] @ (800a840 <HAL_DMA_IRQHandler+0xc90>)
  24016. 800a7be: 4293 cmp r3, r2
  24017. 800a7c0: d027 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24018. 800a7c2: 687b ldr r3, [r7, #4]
  24019. 800a7c4: 681b ldr r3, [r3, #0]
  24020. 800a7c6: 4a1f ldr r2, [pc, #124] @ (800a844 <HAL_DMA_IRQHandler+0xc94>)
  24021. 800a7c8: 4293 cmp r3, r2
  24022. 800a7ca: d022 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24023. 800a7cc: 687b ldr r3, [r7, #4]
  24024. 800a7ce: 681b ldr r3, [r3, #0]
  24025. 800a7d0: 4a1d ldr r2, [pc, #116] @ (800a848 <HAL_DMA_IRQHandler+0xc98>)
  24026. 800a7d2: 4293 cmp r3, r2
  24027. 800a7d4: d01d beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24028. 800a7d6: 687b ldr r3, [r7, #4]
  24029. 800a7d8: 681b ldr r3, [r3, #0]
  24030. 800a7da: 4a1c ldr r2, [pc, #112] @ (800a84c <HAL_DMA_IRQHandler+0xc9c>)
  24031. 800a7dc: 4293 cmp r3, r2
  24032. 800a7de: d018 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24033. 800a7e0: 687b ldr r3, [r7, #4]
  24034. 800a7e2: 681b ldr r3, [r3, #0]
  24035. 800a7e4: 4a1a ldr r2, [pc, #104] @ (800a850 <HAL_DMA_IRQHandler+0xca0>)
  24036. 800a7e6: 4293 cmp r3, r2
  24037. 800a7e8: d013 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24038. 800a7ea: 687b ldr r3, [r7, #4]
  24039. 800a7ec: 681b ldr r3, [r3, #0]
  24040. 800a7ee: 4a19 ldr r2, [pc, #100] @ (800a854 <HAL_DMA_IRQHandler+0xca4>)
  24041. 800a7f0: 4293 cmp r3, r2
  24042. 800a7f2: d00e beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24043. 800a7f4: 687b ldr r3, [r7, #4]
  24044. 800a7f6: 681b ldr r3, [r3, #0]
  24045. 800a7f8: 4a17 ldr r2, [pc, #92] @ (800a858 <HAL_DMA_IRQHandler+0xca8>)
  24046. 800a7fa: 4293 cmp r3, r2
  24047. 800a7fc: d009 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24048. 800a7fe: 687b ldr r3, [r7, #4]
  24049. 800a800: 681b ldr r3, [r3, #0]
  24050. 800a802: 4a16 ldr r2, [pc, #88] @ (800a85c <HAL_DMA_IRQHandler+0xcac>)
  24051. 800a804: 4293 cmp r3, r2
  24052. 800a806: d004 beq.n 800a812 <HAL_DMA_IRQHandler+0xc62>
  24053. 800a808: 687b ldr r3, [r7, #4]
  24054. 800a80a: 681b ldr r3, [r3, #0]
  24055. 800a80c: 4a14 ldr r2, [pc, #80] @ (800a860 <HAL_DMA_IRQHandler+0xcb0>)
  24056. 800a80e: 4293 cmp r3, r2
  24057. 800a810: d128 bne.n 800a864 <HAL_DMA_IRQHandler+0xcb4>
  24058. 800a812: 687b ldr r3, [r7, #4]
  24059. 800a814: 681b ldr r3, [r3, #0]
  24060. 800a816: 681a ldr r2, [r3, #0]
  24061. 800a818: 687b ldr r3, [r7, #4]
  24062. 800a81a: 681b ldr r3, [r3, #0]
  24063. 800a81c: f022 0214 bic.w r2, r2, #20
  24064. 800a820: 601a str r2, [r3, #0]
  24065. 800a822: e027 b.n 800a874 <HAL_DMA_IRQHandler+0xcc4>
  24066. 800a824: 40020010 .word 0x40020010
  24067. 800a828: 40020028 .word 0x40020028
  24068. 800a82c: 40020040 .word 0x40020040
  24069. 800a830: 40020058 .word 0x40020058
  24070. 800a834: 40020070 .word 0x40020070
  24071. 800a838: 40020088 .word 0x40020088
  24072. 800a83c: 400200a0 .word 0x400200a0
  24073. 800a840: 400200b8 .word 0x400200b8
  24074. 800a844: 40020410 .word 0x40020410
  24075. 800a848: 40020428 .word 0x40020428
  24076. 800a84c: 40020440 .word 0x40020440
  24077. 800a850: 40020458 .word 0x40020458
  24078. 800a854: 40020470 .word 0x40020470
  24079. 800a858: 40020488 .word 0x40020488
  24080. 800a85c: 400204a0 .word 0x400204a0
  24081. 800a860: 400204b8 .word 0x400204b8
  24082. 800a864: 687b ldr r3, [r7, #4]
  24083. 800a866: 681b ldr r3, [r3, #0]
  24084. 800a868: 681a ldr r2, [r3, #0]
  24085. 800a86a: 687b ldr r3, [r7, #4]
  24086. 800a86c: 681b ldr r3, [r3, #0]
  24087. 800a86e: f022 020a bic.w r2, r2, #10
  24088. 800a872: 601a str r2, [r3, #0]
  24089. /* Change the DMA state */
  24090. hdma->State = HAL_DMA_STATE_READY;
  24091. 800a874: 687b ldr r3, [r7, #4]
  24092. 800a876: 2201 movs r2, #1
  24093. 800a878: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24094. /* Process Unlocked */
  24095. __HAL_UNLOCK(hdma);
  24096. 800a87c: 687b ldr r3, [r7, #4]
  24097. 800a87e: 2200 movs r2, #0
  24098. 800a880: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24099. }
  24100. if(hdma->XferCpltCallback != NULL)
  24101. 800a884: 687b ldr r3, [r7, #4]
  24102. 800a886: 6bdb ldr r3, [r3, #60] @ 0x3c
  24103. 800a888: 2b00 cmp r3, #0
  24104. 800a88a: f000 8097 beq.w 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  24105. {
  24106. /* Transfer complete callback */
  24107. hdma->XferCpltCallback(hdma);
  24108. 800a88e: 687b ldr r3, [r7, #4]
  24109. 800a890: 6bdb ldr r3, [r3, #60] @ 0x3c
  24110. 800a892: 6878 ldr r0, [r7, #4]
  24111. 800a894: 4798 blx r3
  24112. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24113. 800a896: e091 b.n 800a9bc <HAL_DMA_IRQHandler+0xe0c>
  24114. }
  24115. }
  24116. }
  24117. /* Transfer Error Interrupt management **************************************/
  24118. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  24119. 800a898: 687b ldr r3, [r7, #4]
  24120. 800a89a: 6ddb ldr r3, [r3, #92] @ 0x5c
  24121. 800a89c: f003 031f and.w r3, r3, #31
  24122. 800a8a0: 2208 movs r2, #8
  24123. 800a8a2: 409a lsls r2, r3
  24124. 800a8a4: 697b ldr r3, [r7, #20]
  24125. 800a8a6: 4013 ands r3, r2
  24126. 800a8a8: 2b00 cmp r3, #0
  24127. 800a8aa: f000 8088 beq.w 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24128. 800a8ae: 693b ldr r3, [r7, #16]
  24129. 800a8b0: f003 0308 and.w r3, r3, #8
  24130. 800a8b4: 2b00 cmp r3, #0
  24131. 800a8b6: f000 8082 beq.w 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24132. {
  24133. /* When a DMA transfer error occurs */
  24134. /* A hardware clear of its EN bits is performed */
  24135. /* Disable ALL DMA IT */
  24136. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  24137. 800a8ba: 687b ldr r3, [r7, #4]
  24138. 800a8bc: 681b ldr r3, [r3, #0]
  24139. 800a8be: 4a41 ldr r2, [pc, #260] @ (800a9c4 <HAL_DMA_IRQHandler+0xe14>)
  24140. 800a8c0: 4293 cmp r3, r2
  24141. 800a8c2: d04a beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24142. 800a8c4: 687b ldr r3, [r7, #4]
  24143. 800a8c6: 681b ldr r3, [r3, #0]
  24144. 800a8c8: 4a3f ldr r2, [pc, #252] @ (800a9c8 <HAL_DMA_IRQHandler+0xe18>)
  24145. 800a8ca: 4293 cmp r3, r2
  24146. 800a8cc: d045 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24147. 800a8ce: 687b ldr r3, [r7, #4]
  24148. 800a8d0: 681b ldr r3, [r3, #0]
  24149. 800a8d2: 4a3e ldr r2, [pc, #248] @ (800a9cc <HAL_DMA_IRQHandler+0xe1c>)
  24150. 800a8d4: 4293 cmp r3, r2
  24151. 800a8d6: d040 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24152. 800a8d8: 687b ldr r3, [r7, #4]
  24153. 800a8da: 681b ldr r3, [r3, #0]
  24154. 800a8dc: 4a3c ldr r2, [pc, #240] @ (800a9d0 <HAL_DMA_IRQHandler+0xe20>)
  24155. 800a8de: 4293 cmp r3, r2
  24156. 800a8e0: d03b beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24157. 800a8e2: 687b ldr r3, [r7, #4]
  24158. 800a8e4: 681b ldr r3, [r3, #0]
  24159. 800a8e6: 4a3b ldr r2, [pc, #236] @ (800a9d4 <HAL_DMA_IRQHandler+0xe24>)
  24160. 800a8e8: 4293 cmp r3, r2
  24161. 800a8ea: d036 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24162. 800a8ec: 687b ldr r3, [r7, #4]
  24163. 800a8ee: 681b ldr r3, [r3, #0]
  24164. 800a8f0: 4a39 ldr r2, [pc, #228] @ (800a9d8 <HAL_DMA_IRQHandler+0xe28>)
  24165. 800a8f2: 4293 cmp r3, r2
  24166. 800a8f4: d031 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24167. 800a8f6: 687b ldr r3, [r7, #4]
  24168. 800a8f8: 681b ldr r3, [r3, #0]
  24169. 800a8fa: 4a38 ldr r2, [pc, #224] @ (800a9dc <HAL_DMA_IRQHandler+0xe2c>)
  24170. 800a8fc: 4293 cmp r3, r2
  24171. 800a8fe: d02c beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24172. 800a900: 687b ldr r3, [r7, #4]
  24173. 800a902: 681b ldr r3, [r3, #0]
  24174. 800a904: 4a36 ldr r2, [pc, #216] @ (800a9e0 <HAL_DMA_IRQHandler+0xe30>)
  24175. 800a906: 4293 cmp r3, r2
  24176. 800a908: d027 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24177. 800a90a: 687b ldr r3, [r7, #4]
  24178. 800a90c: 681b ldr r3, [r3, #0]
  24179. 800a90e: 4a35 ldr r2, [pc, #212] @ (800a9e4 <HAL_DMA_IRQHandler+0xe34>)
  24180. 800a910: 4293 cmp r3, r2
  24181. 800a912: d022 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24182. 800a914: 687b ldr r3, [r7, #4]
  24183. 800a916: 681b ldr r3, [r3, #0]
  24184. 800a918: 4a33 ldr r2, [pc, #204] @ (800a9e8 <HAL_DMA_IRQHandler+0xe38>)
  24185. 800a91a: 4293 cmp r3, r2
  24186. 800a91c: d01d beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24187. 800a91e: 687b ldr r3, [r7, #4]
  24188. 800a920: 681b ldr r3, [r3, #0]
  24189. 800a922: 4a32 ldr r2, [pc, #200] @ (800a9ec <HAL_DMA_IRQHandler+0xe3c>)
  24190. 800a924: 4293 cmp r3, r2
  24191. 800a926: d018 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24192. 800a928: 687b ldr r3, [r7, #4]
  24193. 800a92a: 681b ldr r3, [r3, #0]
  24194. 800a92c: 4a30 ldr r2, [pc, #192] @ (800a9f0 <HAL_DMA_IRQHandler+0xe40>)
  24195. 800a92e: 4293 cmp r3, r2
  24196. 800a930: d013 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24197. 800a932: 687b ldr r3, [r7, #4]
  24198. 800a934: 681b ldr r3, [r3, #0]
  24199. 800a936: 4a2f ldr r2, [pc, #188] @ (800a9f4 <HAL_DMA_IRQHandler+0xe44>)
  24200. 800a938: 4293 cmp r3, r2
  24201. 800a93a: d00e beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24202. 800a93c: 687b ldr r3, [r7, #4]
  24203. 800a93e: 681b ldr r3, [r3, #0]
  24204. 800a940: 4a2d ldr r2, [pc, #180] @ (800a9f8 <HAL_DMA_IRQHandler+0xe48>)
  24205. 800a942: 4293 cmp r3, r2
  24206. 800a944: d009 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24207. 800a946: 687b ldr r3, [r7, #4]
  24208. 800a948: 681b ldr r3, [r3, #0]
  24209. 800a94a: 4a2c ldr r2, [pc, #176] @ (800a9fc <HAL_DMA_IRQHandler+0xe4c>)
  24210. 800a94c: 4293 cmp r3, r2
  24211. 800a94e: d004 beq.n 800a95a <HAL_DMA_IRQHandler+0xdaa>
  24212. 800a950: 687b ldr r3, [r7, #4]
  24213. 800a952: 681b ldr r3, [r3, #0]
  24214. 800a954: 4a2a ldr r2, [pc, #168] @ (800aa00 <HAL_DMA_IRQHandler+0xe50>)
  24215. 800a956: 4293 cmp r3, r2
  24216. 800a958: d108 bne.n 800a96c <HAL_DMA_IRQHandler+0xdbc>
  24217. 800a95a: 687b ldr r3, [r7, #4]
  24218. 800a95c: 681b ldr r3, [r3, #0]
  24219. 800a95e: 681a ldr r2, [r3, #0]
  24220. 800a960: 687b ldr r3, [r7, #4]
  24221. 800a962: 681b ldr r3, [r3, #0]
  24222. 800a964: f022 021c bic.w r2, r2, #28
  24223. 800a968: 601a str r2, [r3, #0]
  24224. 800a96a: e007 b.n 800a97c <HAL_DMA_IRQHandler+0xdcc>
  24225. 800a96c: 687b ldr r3, [r7, #4]
  24226. 800a96e: 681b ldr r3, [r3, #0]
  24227. 800a970: 681a ldr r2, [r3, #0]
  24228. 800a972: 687b ldr r3, [r7, #4]
  24229. 800a974: 681b ldr r3, [r3, #0]
  24230. 800a976: f022 020e bic.w r2, r2, #14
  24231. 800a97a: 601a str r2, [r3, #0]
  24232. /* Clear all flags */
  24233. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24234. 800a97c: 687b ldr r3, [r7, #4]
  24235. 800a97e: 6ddb ldr r3, [r3, #92] @ 0x5c
  24236. 800a980: f003 031f and.w r3, r3, #31
  24237. 800a984: 2201 movs r2, #1
  24238. 800a986: 409a lsls r2, r3
  24239. 800a988: 69fb ldr r3, [r7, #28]
  24240. 800a98a: 605a str r2, [r3, #4]
  24241. /* Update error code */
  24242. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  24243. 800a98c: 687b ldr r3, [r7, #4]
  24244. 800a98e: 2201 movs r2, #1
  24245. 800a990: 655a str r2, [r3, #84] @ 0x54
  24246. /* Change the DMA state */
  24247. hdma->State = HAL_DMA_STATE_READY;
  24248. 800a992: 687b ldr r3, [r7, #4]
  24249. 800a994: 2201 movs r2, #1
  24250. 800a996: f883 2035 strb.w r2, [r3, #53] @ 0x35
  24251. /* Process Unlocked */
  24252. __HAL_UNLOCK(hdma);
  24253. 800a99a: 687b ldr r3, [r7, #4]
  24254. 800a99c: 2200 movs r2, #0
  24255. 800a99e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  24256. if (hdma->XferErrorCallback != NULL)
  24257. 800a9a2: 687b ldr r3, [r7, #4]
  24258. 800a9a4: 6cdb ldr r3, [r3, #76] @ 0x4c
  24259. 800a9a6: 2b00 cmp r3, #0
  24260. 800a9a8: d009 beq.n 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24261. {
  24262. /* Transfer error callback */
  24263. hdma->XferErrorCallback(hdma);
  24264. 800a9aa: 687b ldr r3, [r7, #4]
  24265. 800a9ac: 6cdb ldr r3, [r3, #76] @ 0x4c
  24266. 800a9ae: 6878 ldr r0, [r7, #4]
  24267. 800a9b0: 4798 blx r3
  24268. 800a9b2: e004 b.n 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24269. return;
  24270. 800a9b4: bf00 nop
  24271. 800a9b6: e002 b.n 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24272. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24273. 800a9b8: bf00 nop
  24274. 800a9ba: e000 b.n 800a9be <HAL_DMA_IRQHandler+0xe0e>
  24275. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  24276. 800a9bc: bf00 nop
  24277. }
  24278. else
  24279. {
  24280. /* Nothing To Do */
  24281. }
  24282. }
  24283. 800a9be: 3728 adds r7, #40 @ 0x28
  24284. 800a9c0: 46bd mov sp, r7
  24285. 800a9c2: bd80 pop {r7, pc}
  24286. 800a9c4: 40020010 .word 0x40020010
  24287. 800a9c8: 40020028 .word 0x40020028
  24288. 800a9cc: 40020040 .word 0x40020040
  24289. 800a9d0: 40020058 .word 0x40020058
  24290. 800a9d4: 40020070 .word 0x40020070
  24291. 800a9d8: 40020088 .word 0x40020088
  24292. 800a9dc: 400200a0 .word 0x400200a0
  24293. 800a9e0: 400200b8 .word 0x400200b8
  24294. 800a9e4: 40020410 .word 0x40020410
  24295. 800a9e8: 40020428 .word 0x40020428
  24296. 800a9ec: 40020440 .word 0x40020440
  24297. 800a9f0: 40020458 .word 0x40020458
  24298. 800a9f4: 40020470 .word 0x40020470
  24299. 800a9f8: 40020488 .word 0x40020488
  24300. 800a9fc: 400204a0 .word 0x400204a0
  24301. 800aa00: 400204b8 .word 0x400204b8
  24302. 0800aa04 <DMA_SetConfig>:
  24303. * @param DstAddress: The destination memory Buffer address
  24304. * @param DataLength: The length of data to be transferred from source to destination
  24305. * @retval None
  24306. */
  24307. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  24308. {
  24309. 800aa04: b480 push {r7}
  24310. 800aa06: b087 sub sp, #28
  24311. 800aa08: af00 add r7, sp, #0
  24312. 800aa0a: 60f8 str r0, [r7, #12]
  24313. 800aa0c: 60b9 str r1, [r7, #8]
  24314. 800aa0e: 607a str r2, [r7, #4]
  24315. 800aa10: 603b str r3, [r7, #0]
  24316. /* calculate DMA base and stream number */
  24317. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  24318. 800aa12: 68fb ldr r3, [r7, #12]
  24319. 800aa14: 6d9b ldr r3, [r3, #88] @ 0x58
  24320. 800aa16: 617b str r3, [r7, #20]
  24321. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  24322. 800aa18: 68fb ldr r3, [r7, #12]
  24323. 800aa1a: 6d9b ldr r3, [r3, #88] @ 0x58
  24324. 800aa1c: 613b str r3, [r7, #16]
  24325. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  24326. 800aa1e: 68fb ldr r3, [r7, #12]
  24327. 800aa20: 681b ldr r3, [r3, #0]
  24328. 800aa22: 4a7f ldr r2, [pc, #508] @ (800ac20 <DMA_SetConfig+0x21c>)
  24329. 800aa24: 4293 cmp r3, r2
  24330. 800aa26: d072 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24331. 800aa28: 68fb ldr r3, [r7, #12]
  24332. 800aa2a: 681b ldr r3, [r3, #0]
  24333. 800aa2c: 4a7d ldr r2, [pc, #500] @ (800ac24 <DMA_SetConfig+0x220>)
  24334. 800aa2e: 4293 cmp r3, r2
  24335. 800aa30: d06d beq.n 800ab0e <DMA_SetConfig+0x10a>
  24336. 800aa32: 68fb ldr r3, [r7, #12]
  24337. 800aa34: 681b ldr r3, [r3, #0]
  24338. 800aa36: 4a7c ldr r2, [pc, #496] @ (800ac28 <DMA_SetConfig+0x224>)
  24339. 800aa38: 4293 cmp r3, r2
  24340. 800aa3a: d068 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24341. 800aa3c: 68fb ldr r3, [r7, #12]
  24342. 800aa3e: 681b ldr r3, [r3, #0]
  24343. 800aa40: 4a7a ldr r2, [pc, #488] @ (800ac2c <DMA_SetConfig+0x228>)
  24344. 800aa42: 4293 cmp r3, r2
  24345. 800aa44: d063 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24346. 800aa46: 68fb ldr r3, [r7, #12]
  24347. 800aa48: 681b ldr r3, [r3, #0]
  24348. 800aa4a: 4a79 ldr r2, [pc, #484] @ (800ac30 <DMA_SetConfig+0x22c>)
  24349. 800aa4c: 4293 cmp r3, r2
  24350. 800aa4e: d05e beq.n 800ab0e <DMA_SetConfig+0x10a>
  24351. 800aa50: 68fb ldr r3, [r7, #12]
  24352. 800aa52: 681b ldr r3, [r3, #0]
  24353. 800aa54: 4a77 ldr r2, [pc, #476] @ (800ac34 <DMA_SetConfig+0x230>)
  24354. 800aa56: 4293 cmp r3, r2
  24355. 800aa58: d059 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24356. 800aa5a: 68fb ldr r3, [r7, #12]
  24357. 800aa5c: 681b ldr r3, [r3, #0]
  24358. 800aa5e: 4a76 ldr r2, [pc, #472] @ (800ac38 <DMA_SetConfig+0x234>)
  24359. 800aa60: 4293 cmp r3, r2
  24360. 800aa62: d054 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24361. 800aa64: 68fb ldr r3, [r7, #12]
  24362. 800aa66: 681b ldr r3, [r3, #0]
  24363. 800aa68: 4a74 ldr r2, [pc, #464] @ (800ac3c <DMA_SetConfig+0x238>)
  24364. 800aa6a: 4293 cmp r3, r2
  24365. 800aa6c: d04f beq.n 800ab0e <DMA_SetConfig+0x10a>
  24366. 800aa6e: 68fb ldr r3, [r7, #12]
  24367. 800aa70: 681b ldr r3, [r3, #0]
  24368. 800aa72: 4a73 ldr r2, [pc, #460] @ (800ac40 <DMA_SetConfig+0x23c>)
  24369. 800aa74: 4293 cmp r3, r2
  24370. 800aa76: d04a beq.n 800ab0e <DMA_SetConfig+0x10a>
  24371. 800aa78: 68fb ldr r3, [r7, #12]
  24372. 800aa7a: 681b ldr r3, [r3, #0]
  24373. 800aa7c: 4a71 ldr r2, [pc, #452] @ (800ac44 <DMA_SetConfig+0x240>)
  24374. 800aa7e: 4293 cmp r3, r2
  24375. 800aa80: d045 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24376. 800aa82: 68fb ldr r3, [r7, #12]
  24377. 800aa84: 681b ldr r3, [r3, #0]
  24378. 800aa86: 4a70 ldr r2, [pc, #448] @ (800ac48 <DMA_SetConfig+0x244>)
  24379. 800aa88: 4293 cmp r3, r2
  24380. 800aa8a: d040 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24381. 800aa8c: 68fb ldr r3, [r7, #12]
  24382. 800aa8e: 681b ldr r3, [r3, #0]
  24383. 800aa90: 4a6e ldr r2, [pc, #440] @ (800ac4c <DMA_SetConfig+0x248>)
  24384. 800aa92: 4293 cmp r3, r2
  24385. 800aa94: d03b beq.n 800ab0e <DMA_SetConfig+0x10a>
  24386. 800aa96: 68fb ldr r3, [r7, #12]
  24387. 800aa98: 681b ldr r3, [r3, #0]
  24388. 800aa9a: 4a6d ldr r2, [pc, #436] @ (800ac50 <DMA_SetConfig+0x24c>)
  24389. 800aa9c: 4293 cmp r3, r2
  24390. 800aa9e: d036 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24391. 800aaa0: 68fb ldr r3, [r7, #12]
  24392. 800aaa2: 681b ldr r3, [r3, #0]
  24393. 800aaa4: 4a6b ldr r2, [pc, #428] @ (800ac54 <DMA_SetConfig+0x250>)
  24394. 800aaa6: 4293 cmp r3, r2
  24395. 800aaa8: d031 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24396. 800aaaa: 68fb ldr r3, [r7, #12]
  24397. 800aaac: 681b ldr r3, [r3, #0]
  24398. 800aaae: 4a6a ldr r2, [pc, #424] @ (800ac58 <DMA_SetConfig+0x254>)
  24399. 800aab0: 4293 cmp r3, r2
  24400. 800aab2: d02c beq.n 800ab0e <DMA_SetConfig+0x10a>
  24401. 800aab4: 68fb ldr r3, [r7, #12]
  24402. 800aab6: 681b ldr r3, [r3, #0]
  24403. 800aab8: 4a68 ldr r2, [pc, #416] @ (800ac5c <DMA_SetConfig+0x258>)
  24404. 800aaba: 4293 cmp r3, r2
  24405. 800aabc: d027 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24406. 800aabe: 68fb ldr r3, [r7, #12]
  24407. 800aac0: 681b ldr r3, [r3, #0]
  24408. 800aac2: 4a67 ldr r2, [pc, #412] @ (800ac60 <DMA_SetConfig+0x25c>)
  24409. 800aac4: 4293 cmp r3, r2
  24410. 800aac6: d022 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24411. 800aac8: 68fb ldr r3, [r7, #12]
  24412. 800aaca: 681b ldr r3, [r3, #0]
  24413. 800aacc: 4a65 ldr r2, [pc, #404] @ (800ac64 <DMA_SetConfig+0x260>)
  24414. 800aace: 4293 cmp r3, r2
  24415. 800aad0: d01d beq.n 800ab0e <DMA_SetConfig+0x10a>
  24416. 800aad2: 68fb ldr r3, [r7, #12]
  24417. 800aad4: 681b ldr r3, [r3, #0]
  24418. 800aad6: 4a64 ldr r2, [pc, #400] @ (800ac68 <DMA_SetConfig+0x264>)
  24419. 800aad8: 4293 cmp r3, r2
  24420. 800aada: d018 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24421. 800aadc: 68fb ldr r3, [r7, #12]
  24422. 800aade: 681b ldr r3, [r3, #0]
  24423. 800aae0: 4a62 ldr r2, [pc, #392] @ (800ac6c <DMA_SetConfig+0x268>)
  24424. 800aae2: 4293 cmp r3, r2
  24425. 800aae4: d013 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24426. 800aae6: 68fb ldr r3, [r7, #12]
  24427. 800aae8: 681b ldr r3, [r3, #0]
  24428. 800aaea: 4a61 ldr r2, [pc, #388] @ (800ac70 <DMA_SetConfig+0x26c>)
  24429. 800aaec: 4293 cmp r3, r2
  24430. 800aaee: d00e beq.n 800ab0e <DMA_SetConfig+0x10a>
  24431. 800aaf0: 68fb ldr r3, [r7, #12]
  24432. 800aaf2: 681b ldr r3, [r3, #0]
  24433. 800aaf4: 4a5f ldr r2, [pc, #380] @ (800ac74 <DMA_SetConfig+0x270>)
  24434. 800aaf6: 4293 cmp r3, r2
  24435. 800aaf8: d009 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24436. 800aafa: 68fb ldr r3, [r7, #12]
  24437. 800aafc: 681b ldr r3, [r3, #0]
  24438. 800aafe: 4a5e ldr r2, [pc, #376] @ (800ac78 <DMA_SetConfig+0x274>)
  24439. 800ab00: 4293 cmp r3, r2
  24440. 800ab02: d004 beq.n 800ab0e <DMA_SetConfig+0x10a>
  24441. 800ab04: 68fb ldr r3, [r7, #12]
  24442. 800ab06: 681b ldr r3, [r3, #0]
  24443. 800ab08: 4a5c ldr r2, [pc, #368] @ (800ac7c <DMA_SetConfig+0x278>)
  24444. 800ab0a: 4293 cmp r3, r2
  24445. 800ab0c: d101 bne.n 800ab12 <DMA_SetConfig+0x10e>
  24446. 800ab0e: 2301 movs r3, #1
  24447. 800ab10: e000 b.n 800ab14 <DMA_SetConfig+0x110>
  24448. 800ab12: 2300 movs r3, #0
  24449. 800ab14: 2b00 cmp r3, #0
  24450. 800ab16: d00d beq.n 800ab34 <DMA_SetConfig+0x130>
  24451. {
  24452. /* Clear the DMAMUX synchro overrun flag */
  24453. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  24454. 800ab18: 68fb ldr r3, [r7, #12]
  24455. 800ab1a: 6e5b ldr r3, [r3, #100] @ 0x64
  24456. 800ab1c: 68fa ldr r2, [r7, #12]
  24457. 800ab1e: 6e92 ldr r2, [r2, #104] @ 0x68
  24458. 800ab20: 605a str r2, [r3, #4]
  24459. if(hdma->DMAmuxRequestGen != 0U)
  24460. 800ab22: 68fb ldr r3, [r7, #12]
  24461. 800ab24: 6edb ldr r3, [r3, #108] @ 0x6c
  24462. 800ab26: 2b00 cmp r3, #0
  24463. 800ab28: d004 beq.n 800ab34 <DMA_SetConfig+0x130>
  24464. {
  24465. /* Clear the DMAMUX request generator overrun flag */
  24466. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  24467. 800ab2a: 68fb ldr r3, [r7, #12]
  24468. 800ab2c: 6f1b ldr r3, [r3, #112] @ 0x70
  24469. 800ab2e: 68fa ldr r2, [r7, #12]
  24470. 800ab30: 6f52 ldr r2, [r2, #116] @ 0x74
  24471. 800ab32: 605a str r2, [r3, #4]
  24472. }
  24473. }
  24474. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24475. 800ab34: 68fb ldr r3, [r7, #12]
  24476. 800ab36: 681b ldr r3, [r3, #0]
  24477. 800ab38: 4a39 ldr r2, [pc, #228] @ (800ac20 <DMA_SetConfig+0x21c>)
  24478. 800ab3a: 4293 cmp r3, r2
  24479. 800ab3c: d04a beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24480. 800ab3e: 68fb ldr r3, [r7, #12]
  24481. 800ab40: 681b ldr r3, [r3, #0]
  24482. 800ab42: 4a38 ldr r2, [pc, #224] @ (800ac24 <DMA_SetConfig+0x220>)
  24483. 800ab44: 4293 cmp r3, r2
  24484. 800ab46: d045 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24485. 800ab48: 68fb ldr r3, [r7, #12]
  24486. 800ab4a: 681b ldr r3, [r3, #0]
  24487. 800ab4c: 4a36 ldr r2, [pc, #216] @ (800ac28 <DMA_SetConfig+0x224>)
  24488. 800ab4e: 4293 cmp r3, r2
  24489. 800ab50: d040 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24490. 800ab52: 68fb ldr r3, [r7, #12]
  24491. 800ab54: 681b ldr r3, [r3, #0]
  24492. 800ab56: 4a35 ldr r2, [pc, #212] @ (800ac2c <DMA_SetConfig+0x228>)
  24493. 800ab58: 4293 cmp r3, r2
  24494. 800ab5a: d03b beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24495. 800ab5c: 68fb ldr r3, [r7, #12]
  24496. 800ab5e: 681b ldr r3, [r3, #0]
  24497. 800ab60: 4a33 ldr r2, [pc, #204] @ (800ac30 <DMA_SetConfig+0x22c>)
  24498. 800ab62: 4293 cmp r3, r2
  24499. 800ab64: d036 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24500. 800ab66: 68fb ldr r3, [r7, #12]
  24501. 800ab68: 681b ldr r3, [r3, #0]
  24502. 800ab6a: 4a32 ldr r2, [pc, #200] @ (800ac34 <DMA_SetConfig+0x230>)
  24503. 800ab6c: 4293 cmp r3, r2
  24504. 800ab6e: d031 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24505. 800ab70: 68fb ldr r3, [r7, #12]
  24506. 800ab72: 681b ldr r3, [r3, #0]
  24507. 800ab74: 4a30 ldr r2, [pc, #192] @ (800ac38 <DMA_SetConfig+0x234>)
  24508. 800ab76: 4293 cmp r3, r2
  24509. 800ab78: d02c beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24510. 800ab7a: 68fb ldr r3, [r7, #12]
  24511. 800ab7c: 681b ldr r3, [r3, #0]
  24512. 800ab7e: 4a2f ldr r2, [pc, #188] @ (800ac3c <DMA_SetConfig+0x238>)
  24513. 800ab80: 4293 cmp r3, r2
  24514. 800ab82: d027 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24515. 800ab84: 68fb ldr r3, [r7, #12]
  24516. 800ab86: 681b ldr r3, [r3, #0]
  24517. 800ab88: 4a2d ldr r2, [pc, #180] @ (800ac40 <DMA_SetConfig+0x23c>)
  24518. 800ab8a: 4293 cmp r3, r2
  24519. 800ab8c: d022 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24520. 800ab8e: 68fb ldr r3, [r7, #12]
  24521. 800ab90: 681b ldr r3, [r3, #0]
  24522. 800ab92: 4a2c ldr r2, [pc, #176] @ (800ac44 <DMA_SetConfig+0x240>)
  24523. 800ab94: 4293 cmp r3, r2
  24524. 800ab96: d01d beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24525. 800ab98: 68fb ldr r3, [r7, #12]
  24526. 800ab9a: 681b ldr r3, [r3, #0]
  24527. 800ab9c: 4a2a ldr r2, [pc, #168] @ (800ac48 <DMA_SetConfig+0x244>)
  24528. 800ab9e: 4293 cmp r3, r2
  24529. 800aba0: d018 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24530. 800aba2: 68fb ldr r3, [r7, #12]
  24531. 800aba4: 681b ldr r3, [r3, #0]
  24532. 800aba6: 4a29 ldr r2, [pc, #164] @ (800ac4c <DMA_SetConfig+0x248>)
  24533. 800aba8: 4293 cmp r3, r2
  24534. 800abaa: d013 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24535. 800abac: 68fb ldr r3, [r7, #12]
  24536. 800abae: 681b ldr r3, [r3, #0]
  24537. 800abb0: 4a27 ldr r2, [pc, #156] @ (800ac50 <DMA_SetConfig+0x24c>)
  24538. 800abb2: 4293 cmp r3, r2
  24539. 800abb4: d00e beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24540. 800abb6: 68fb ldr r3, [r7, #12]
  24541. 800abb8: 681b ldr r3, [r3, #0]
  24542. 800abba: 4a26 ldr r2, [pc, #152] @ (800ac54 <DMA_SetConfig+0x250>)
  24543. 800abbc: 4293 cmp r3, r2
  24544. 800abbe: d009 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24545. 800abc0: 68fb ldr r3, [r7, #12]
  24546. 800abc2: 681b ldr r3, [r3, #0]
  24547. 800abc4: 4a24 ldr r2, [pc, #144] @ (800ac58 <DMA_SetConfig+0x254>)
  24548. 800abc6: 4293 cmp r3, r2
  24549. 800abc8: d004 beq.n 800abd4 <DMA_SetConfig+0x1d0>
  24550. 800abca: 68fb ldr r3, [r7, #12]
  24551. 800abcc: 681b ldr r3, [r3, #0]
  24552. 800abce: 4a23 ldr r2, [pc, #140] @ (800ac5c <DMA_SetConfig+0x258>)
  24553. 800abd0: 4293 cmp r3, r2
  24554. 800abd2: d101 bne.n 800abd8 <DMA_SetConfig+0x1d4>
  24555. 800abd4: 2301 movs r3, #1
  24556. 800abd6: e000 b.n 800abda <DMA_SetConfig+0x1d6>
  24557. 800abd8: 2300 movs r3, #0
  24558. 800abda: 2b00 cmp r3, #0
  24559. 800abdc: d059 beq.n 800ac92 <DMA_SetConfig+0x28e>
  24560. {
  24561. /* Clear all interrupt flags at correct offset within the register */
  24562. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  24563. 800abde: 68fb ldr r3, [r7, #12]
  24564. 800abe0: 6ddb ldr r3, [r3, #92] @ 0x5c
  24565. 800abe2: f003 031f and.w r3, r3, #31
  24566. 800abe6: 223f movs r2, #63 @ 0x3f
  24567. 800abe8: 409a lsls r2, r3
  24568. 800abea: 697b ldr r3, [r7, #20]
  24569. 800abec: 609a str r2, [r3, #8]
  24570. /* Clear DBM bit */
  24571. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  24572. 800abee: 68fb ldr r3, [r7, #12]
  24573. 800abf0: 681b ldr r3, [r3, #0]
  24574. 800abf2: 681a ldr r2, [r3, #0]
  24575. 800abf4: 68fb ldr r3, [r7, #12]
  24576. 800abf6: 681b ldr r3, [r3, #0]
  24577. 800abf8: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  24578. 800abfc: 601a str r2, [r3, #0]
  24579. /* Configure DMA Stream data length */
  24580. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  24581. 800abfe: 68fb ldr r3, [r7, #12]
  24582. 800ac00: 681b ldr r3, [r3, #0]
  24583. 800ac02: 683a ldr r2, [r7, #0]
  24584. 800ac04: 605a str r2, [r3, #4]
  24585. /* Peripheral to Memory */
  24586. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24587. 800ac06: 68fb ldr r3, [r7, #12]
  24588. 800ac08: 689b ldr r3, [r3, #8]
  24589. 800ac0a: 2b40 cmp r3, #64 @ 0x40
  24590. 800ac0c: d138 bne.n 800ac80 <DMA_SetConfig+0x27c>
  24591. {
  24592. /* Configure DMA Stream destination address */
  24593. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  24594. 800ac0e: 68fb ldr r3, [r7, #12]
  24595. 800ac10: 681b ldr r3, [r3, #0]
  24596. 800ac12: 687a ldr r2, [r7, #4]
  24597. 800ac14: 609a str r2, [r3, #8]
  24598. /* Configure DMA Stream source address */
  24599. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  24600. 800ac16: 68fb ldr r3, [r7, #12]
  24601. 800ac18: 681b ldr r3, [r3, #0]
  24602. 800ac1a: 68ba ldr r2, [r7, #8]
  24603. 800ac1c: 60da str r2, [r3, #12]
  24604. }
  24605. else
  24606. {
  24607. /* Nothing To Do */
  24608. }
  24609. }
  24610. 800ac1e: e086 b.n 800ad2e <DMA_SetConfig+0x32a>
  24611. 800ac20: 40020010 .word 0x40020010
  24612. 800ac24: 40020028 .word 0x40020028
  24613. 800ac28: 40020040 .word 0x40020040
  24614. 800ac2c: 40020058 .word 0x40020058
  24615. 800ac30: 40020070 .word 0x40020070
  24616. 800ac34: 40020088 .word 0x40020088
  24617. 800ac38: 400200a0 .word 0x400200a0
  24618. 800ac3c: 400200b8 .word 0x400200b8
  24619. 800ac40: 40020410 .word 0x40020410
  24620. 800ac44: 40020428 .word 0x40020428
  24621. 800ac48: 40020440 .word 0x40020440
  24622. 800ac4c: 40020458 .word 0x40020458
  24623. 800ac50: 40020470 .word 0x40020470
  24624. 800ac54: 40020488 .word 0x40020488
  24625. 800ac58: 400204a0 .word 0x400204a0
  24626. 800ac5c: 400204b8 .word 0x400204b8
  24627. 800ac60: 58025408 .word 0x58025408
  24628. 800ac64: 5802541c .word 0x5802541c
  24629. 800ac68: 58025430 .word 0x58025430
  24630. 800ac6c: 58025444 .word 0x58025444
  24631. 800ac70: 58025458 .word 0x58025458
  24632. 800ac74: 5802546c .word 0x5802546c
  24633. 800ac78: 58025480 .word 0x58025480
  24634. 800ac7c: 58025494 .word 0x58025494
  24635. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  24636. 800ac80: 68fb ldr r3, [r7, #12]
  24637. 800ac82: 681b ldr r3, [r3, #0]
  24638. 800ac84: 68ba ldr r2, [r7, #8]
  24639. 800ac86: 609a str r2, [r3, #8]
  24640. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  24641. 800ac88: 68fb ldr r3, [r7, #12]
  24642. 800ac8a: 681b ldr r3, [r3, #0]
  24643. 800ac8c: 687a ldr r2, [r7, #4]
  24644. 800ac8e: 60da str r2, [r3, #12]
  24645. }
  24646. 800ac90: e04d b.n 800ad2e <DMA_SetConfig+0x32a>
  24647. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  24648. 800ac92: 68fb ldr r3, [r7, #12]
  24649. 800ac94: 681b ldr r3, [r3, #0]
  24650. 800ac96: 4a29 ldr r2, [pc, #164] @ (800ad3c <DMA_SetConfig+0x338>)
  24651. 800ac98: 4293 cmp r3, r2
  24652. 800ac9a: d022 beq.n 800ace2 <DMA_SetConfig+0x2de>
  24653. 800ac9c: 68fb ldr r3, [r7, #12]
  24654. 800ac9e: 681b ldr r3, [r3, #0]
  24655. 800aca0: 4a27 ldr r2, [pc, #156] @ (800ad40 <DMA_SetConfig+0x33c>)
  24656. 800aca2: 4293 cmp r3, r2
  24657. 800aca4: d01d beq.n 800ace2 <DMA_SetConfig+0x2de>
  24658. 800aca6: 68fb ldr r3, [r7, #12]
  24659. 800aca8: 681b ldr r3, [r3, #0]
  24660. 800acaa: 4a26 ldr r2, [pc, #152] @ (800ad44 <DMA_SetConfig+0x340>)
  24661. 800acac: 4293 cmp r3, r2
  24662. 800acae: d018 beq.n 800ace2 <DMA_SetConfig+0x2de>
  24663. 800acb0: 68fb ldr r3, [r7, #12]
  24664. 800acb2: 681b ldr r3, [r3, #0]
  24665. 800acb4: 4a24 ldr r2, [pc, #144] @ (800ad48 <DMA_SetConfig+0x344>)
  24666. 800acb6: 4293 cmp r3, r2
  24667. 800acb8: d013 beq.n 800ace2 <DMA_SetConfig+0x2de>
  24668. 800acba: 68fb ldr r3, [r7, #12]
  24669. 800acbc: 681b ldr r3, [r3, #0]
  24670. 800acbe: 4a23 ldr r2, [pc, #140] @ (800ad4c <DMA_SetConfig+0x348>)
  24671. 800acc0: 4293 cmp r3, r2
  24672. 800acc2: d00e beq.n 800ace2 <DMA_SetConfig+0x2de>
  24673. 800acc4: 68fb ldr r3, [r7, #12]
  24674. 800acc6: 681b ldr r3, [r3, #0]
  24675. 800acc8: 4a21 ldr r2, [pc, #132] @ (800ad50 <DMA_SetConfig+0x34c>)
  24676. 800acca: 4293 cmp r3, r2
  24677. 800accc: d009 beq.n 800ace2 <DMA_SetConfig+0x2de>
  24678. 800acce: 68fb ldr r3, [r7, #12]
  24679. 800acd0: 681b ldr r3, [r3, #0]
  24680. 800acd2: 4a20 ldr r2, [pc, #128] @ (800ad54 <DMA_SetConfig+0x350>)
  24681. 800acd4: 4293 cmp r3, r2
  24682. 800acd6: d004 beq.n 800ace2 <DMA_SetConfig+0x2de>
  24683. 800acd8: 68fb ldr r3, [r7, #12]
  24684. 800acda: 681b ldr r3, [r3, #0]
  24685. 800acdc: 4a1e ldr r2, [pc, #120] @ (800ad58 <DMA_SetConfig+0x354>)
  24686. 800acde: 4293 cmp r3, r2
  24687. 800ace0: d101 bne.n 800ace6 <DMA_SetConfig+0x2e2>
  24688. 800ace2: 2301 movs r3, #1
  24689. 800ace4: e000 b.n 800ace8 <DMA_SetConfig+0x2e4>
  24690. 800ace6: 2300 movs r3, #0
  24691. 800ace8: 2b00 cmp r3, #0
  24692. 800acea: d020 beq.n 800ad2e <DMA_SetConfig+0x32a>
  24693. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24694. 800acec: 68fb ldr r3, [r7, #12]
  24695. 800acee: 6ddb ldr r3, [r3, #92] @ 0x5c
  24696. 800acf0: f003 031f and.w r3, r3, #31
  24697. 800acf4: 2201 movs r2, #1
  24698. 800acf6: 409a lsls r2, r3
  24699. 800acf8: 693b ldr r3, [r7, #16]
  24700. 800acfa: 605a str r2, [r3, #4]
  24701. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  24702. 800acfc: 68fb ldr r3, [r7, #12]
  24703. 800acfe: 681b ldr r3, [r3, #0]
  24704. 800ad00: 683a ldr r2, [r7, #0]
  24705. 800ad02: 605a str r2, [r3, #4]
  24706. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24707. 800ad04: 68fb ldr r3, [r7, #12]
  24708. 800ad06: 689b ldr r3, [r3, #8]
  24709. 800ad08: 2b40 cmp r3, #64 @ 0x40
  24710. 800ad0a: d108 bne.n 800ad1e <DMA_SetConfig+0x31a>
  24711. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  24712. 800ad0c: 68fb ldr r3, [r7, #12]
  24713. 800ad0e: 681b ldr r3, [r3, #0]
  24714. 800ad10: 687a ldr r2, [r7, #4]
  24715. 800ad12: 609a str r2, [r3, #8]
  24716. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  24717. 800ad14: 68fb ldr r3, [r7, #12]
  24718. 800ad16: 681b ldr r3, [r3, #0]
  24719. 800ad18: 68ba ldr r2, [r7, #8]
  24720. 800ad1a: 60da str r2, [r3, #12]
  24721. }
  24722. 800ad1c: e007 b.n 800ad2e <DMA_SetConfig+0x32a>
  24723. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  24724. 800ad1e: 68fb ldr r3, [r7, #12]
  24725. 800ad20: 681b ldr r3, [r3, #0]
  24726. 800ad22: 68ba ldr r2, [r7, #8]
  24727. 800ad24: 609a str r2, [r3, #8]
  24728. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  24729. 800ad26: 68fb ldr r3, [r7, #12]
  24730. 800ad28: 681b ldr r3, [r3, #0]
  24731. 800ad2a: 687a ldr r2, [r7, #4]
  24732. 800ad2c: 60da str r2, [r3, #12]
  24733. }
  24734. 800ad2e: bf00 nop
  24735. 800ad30: 371c adds r7, #28
  24736. 800ad32: 46bd mov sp, r7
  24737. 800ad34: f85d 7b04 ldr.w r7, [sp], #4
  24738. 800ad38: 4770 bx lr
  24739. 800ad3a: bf00 nop
  24740. 800ad3c: 58025408 .word 0x58025408
  24741. 800ad40: 5802541c .word 0x5802541c
  24742. 800ad44: 58025430 .word 0x58025430
  24743. 800ad48: 58025444 .word 0x58025444
  24744. 800ad4c: 58025458 .word 0x58025458
  24745. 800ad50: 5802546c .word 0x5802546c
  24746. 800ad54: 58025480 .word 0x58025480
  24747. 800ad58: 58025494 .word 0x58025494
  24748. 0800ad5c <DMA_CalcBaseAndBitshift>:
  24749. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24750. * the configuration information for the specified DMA Stream.
  24751. * @retval Stream base address
  24752. */
  24753. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  24754. {
  24755. 800ad5c: b480 push {r7}
  24756. 800ad5e: b085 sub sp, #20
  24757. 800ad60: af00 add r7, sp, #0
  24758. 800ad62: 6078 str r0, [r7, #4]
  24759. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24760. 800ad64: 687b ldr r3, [r7, #4]
  24761. 800ad66: 681b ldr r3, [r3, #0]
  24762. 800ad68: 4a42 ldr r2, [pc, #264] @ (800ae74 <DMA_CalcBaseAndBitshift+0x118>)
  24763. 800ad6a: 4293 cmp r3, r2
  24764. 800ad6c: d04a beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24765. 800ad6e: 687b ldr r3, [r7, #4]
  24766. 800ad70: 681b ldr r3, [r3, #0]
  24767. 800ad72: 4a41 ldr r2, [pc, #260] @ (800ae78 <DMA_CalcBaseAndBitshift+0x11c>)
  24768. 800ad74: 4293 cmp r3, r2
  24769. 800ad76: d045 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24770. 800ad78: 687b ldr r3, [r7, #4]
  24771. 800ad7a: 681b ldr r3, [r3, #0]
  24772. 800ad7c: 4a3f ldr r2, [pc, #252] @ (800ae7c <DMA_CalcBaseAndBitshift+0x120>)
  24773. 800ad7e: 4293 cmp r3, r2
  24774. 800ad80: d040 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24775. 800ad82: 687b ldr r3, [r7, #4]
  24776. 800ad84: 681b ldr r3, [r3, #0]
  24777. 800ad86: 4a3e ldr r2, [pc, #248] @ (800ae80 <DMA_CalcBaseAndBitshift+0x124>)
  24778. 800ad88: 4293 cmp r3, r2
  24779. 800ad8a: d03b beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24780. 800ad8c: 687b ldr r3, [r7, #4]
  24781. 800ad8e: 681b ldr r3, [r3, #0]
  24782. 800ad90: 4a3c ldr r2, [pc, #240] @ (800ae84 <DMA_CalcBaseAndBitshift+0x128>)
  24783. 800ad92: 4293 cmp r3, r2
  24784. 800ad94: d036 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24785. 800ad96: 687b ldr r3, [r7, #4]
  24786. 800ad98: 681b ldr r3, [r3, #0]
  24787. 800ad9a: 4a3b ldr r2, [pc, #236] @ (800ae88 <DMA_CalcBaseAndBitshift+0x12c>)
  24788. 800ad9c: 4293 cmp r3, r2
  24789. 800ad9e: d031 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24790. 800ada0: 687b ldr r3, [r7, #4]
  24791. 800ada2: 681b ldr r3, [r3, #0]
  24792. 800ada4: 4a39 ldr r2, [pc, #228] @ (800ae8c <DMA_CalcBaseAndBitshift+0x130>)
  24793. 800ada6: 4293 cmp r3, r2
  24794. 800ada8: d02c beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24795. 800adaa: 687b ldr r3, [r7, #4]
  24796. 800adac: 681b ldr r3, [r3, #0]
  24797. 800adae: 4a38 ldr r2, [pc, #224] @ (800ae90 <DMA_CalcBaseAndBitshift+0x134>)
  24798. 800adb0: 4293 cmp r3, r2
  24799. 800adb2: d027 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24800. 800adb4: 687b ldr r3, [r7, #4]
  24801. 800adb6: 681b ldr r3, [r3, #0]
  24802. 800adb8: 4a36 ldr r2, [pc, #216] @ (800ae94 <DMA_CalcBaseAndBitshift+0x138>)
  24803. 800adba: 4293 cmp r3, r2
  24804. 800adbc: d022 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24805. 800adbe: 687b ldr r3, [r7, #4]
  24806. 800adc0: 681b ldr r3, [r3, #0]
  24807. 800adc2: 4a35 ldr r2, [pc, #212] @ (800ae98 <DMA_CalcBaseAndBitshift+0x13c>)
  24808. 800adc4: 4293 cmp r3, r2
  24809. 800adc6: d01d beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24810. 800adc8: 687b ldr r3, [r7, #4]
  24811. 800adca: 681b ldr r3, [r3, #0]
  24812. 800adcc: 4a33 ldr r2, [pc, #204] @ (800ae9c <DMA_CalcBaseAndBitshift+0x140>)
  24813. 800adce: 4293 cmp r3, r2
  24814. 800add0: d018 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24815. 800add2: 687b ldr r3, [r7, #4]
  24816. 800add4: 681b ldr r3, [r3, #0]
  24817. 800add6: 4a32 ldr r2, [pc, #200] @ (800aea0 <DMA_CalcBaseAndBitshift+0x144>)
  24818. 800add8: 4293 cmp r3, r2
  24819. 800adda: d013 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24820. 800addc: 687b ldr r3, [r7, #4]
  24821. 800adde: 681b ldr r3, [r3, #0]
  24822. 800ade0: 4a30 ldr r2, [pc, #192] @ (800aea4 <DMA_CalcBaseAndBitshift+0x148>)
  24823. 800ade2: 4293 cmp r3, r2
  24824. 800ade4: d00e beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24825. 800ade6: 687b ldr r3, [r7, #4]
  24826. 800ade8: 681b ldr r3, [r3, #0]
  24827. 800adea: 4a2f ldr r2, [pc, #188] @ (800aea8 <DMA_CalcBaseAndBitshift+0x14c>)
  24828. 800adec: 4293 cmp r3, r2
  24829. 800adee: d009 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24830. 800adf0: 687b ldr r3, [r7, #4]
  24831. 800adf2: 681b ldr r3, [r3, #0]
  24832. 800adf4: 4a2d ldr r2, [pc, #180] @ (800aeac <DMA_CalcBaseAndBitshift+0x150>)
  24833. 800adf6: 4293 cmp r3, r2
  24834. 800adf8: d004 beq.n 800ae04 <DMA_CalcBaseAndBitshift+0xa8>
  24835. 800adfa: 687b ldr r3, [r7, #4]
  24836. 800adfc: 681b ldr r3, [r3, #0]
  24837. 800adfe: 4a2c ldr r2, [pc, #176] @ (800aeb0 <DMA_CalcBaseAndBitshift+0x154>)
  24838. 800ae00: 4293 cmp r3, r2
  24839. 800ae02: d101 bne.n 800ae08 <DMA_CalcBaseAndBitshift+0xac>
  24840. 800ae04: 2301 movs r3, #1
  24841. 800ae06: e000 b.n 800ae0a <DMA_CalcBaseAndBitshift+0xae>
  24842. 800ae08: 2300 movs r3, #0
  24843. 800ae0a: 2b00 cmp r3, #0
  24844. 800ae0c: d024 beq.n 800ae58 <DMA_CalcBaseAndBitshift+0xfc>
  24845. {
  24846. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24847. 800ae0e: 687b ldr r3, [r7, #4]
  24848. 800ae10: 681b ldr r3, [r3, #0]
  24849. 800ae12: b2db uxtb r3, r3
  24850. 800ae14: 3b10 subs r3, #16
  24851. 800ae16: 4a27 ldr r2, [pc, #156] @ (800aeb4 <DMA_CalcBaseAndBitshift+0x158>)
  24852. 800ae18: fba2 2303 umull r2, r3, r2, r3
  24853. 800ae1c: 091b lsrs r3, r3, #4
  24854. 800ae1e: 60fb str r3, [r7, #12]
  24855. /* lookup table for necessary bitshift of flags within status registers */
  24856. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  24857. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  24858. 800ae20: 68fb ldr r3, [r7, #12]
  24859. 800ae22: f003 0307 and.w r3, r3, #7
  24860. 800ae26: 4a24 ldr r2, [pc, #144] @ (800aeb8 <DMA_CalcBaseAndBitshift+0x15c>)
  24861. 800ae28: 5cd3 ldrb r3, [r2, r3]
  24862. 800ae2a: 461a mov r2, r3
  24863. 800ae2c: 687b ldr r3, [r7, #4]
  24864. 800ae2e: 65da str r2, [r3, #92] @ 0x5c
  24865. if (stream_number > 3U)
  24866. 800ae30: 68fb ldr r3, [r7, #12]
  24867. 800ae32: 2b03 cmp r3, #3
  24868. 800ae34: d908 bls.n 800ae48 <DMA_CalcBaseAndBitshift+0xec>
  24869. {
  24870. /* return pointer to HISR and HIFCR */
  24871. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  24872. 800ae36: 687b ldr r3, [r7, #4]
  24873. 800ae38: 681b ldr r3, [r3, #0]
  24874. 800ae3a: 461a mov r2, r3
  24875. 800ae3c: 4b1f ldr r3, [pc, #124] @ (800aebc <DMA_CalcBaseAndBitshift+0x160>)
  24876. 800ae3e: 4013 ands r3, r2
  24877. 800ae40: 1d1a adds r2, r3, #4
  24878. 800ae42: 687b ldr r3, [r7, #4]
  24879. 800ae44: 659a str r2, [r3, #88] @ 0x58
  24880. 800ae46: e00d b.n 800ae64 <DMA_CalcBaseAndBitshift+0x108>
  24881. }
  24882. else
  24883. {
  24884. /* return pointer to LISR and LIFCR */
  24885. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  24886. 800ae48: 687b ldr r3, [r7, #4]
  24887. 800ae4a: 681b ldr r3, [r3, #0]
  24888. 800ae4c: 461a mov r2, r3
  24889. 800ae4e: 4b1b ldr r3, [pc, #108] @ (800aebc <DMA_CalcBaseAndBitshift+0x160>)
  24890. 800ae50: 4013 ands r3, r2
  24891. 800ae52: 687a ldr r2, [r7, #4]
  24892. 800ae54: 6593 str r3, [r2, #88] @ 0x58
  24893. 800ae56: e005 b.n 800ae64 <DMA_CalcBaseAndBitshift+0x108>
  24894. }
  24895. }
  24896. else /* BDMA instance(s) */
  24897. {
  24898. /* return pointer to ISR and IFCR */
  24899. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  24900. 800ae58: 687b ldr r3, [r7, #4]
  24901. 800ae5a: 681b ldr r3, [r3, #0]
  24902. 800ae5c: f023 02ff bic.w r2, r3, #255 @ 0xff
  24903. 800ae60: 687b ldr r3, [r7, #4]
  24904. 800ae62: 659a str r2, [r3, #88] @ 0x58
  24905. }
  24906. return hdma->StreamBaseAddress;
  24907. 800ae64: 687b ldr r3, [r7, #4]
  24908. 800ae66: 6d9b ldr r3, [r3, #88] @ 0x58
  24909. }
  24910. 800ae68: 4618 mov r0, r3
  24911. 800ae6a: 3714 adds r7, #20
  24912. 800ae6c: 46bd mov sp, r7
  24913. 800ae6e: f85d 7b04 ldr.w r7, [sp], #4
  24914. 800ae72: 4770 bx lr
  24915. 800ae74: 40020010 .word 0x40020010
  24916. 800ae78: 40020028 .word 0x40020028
  24917. 800ae7c: 40020040 .word 0x40020040
  24918. 800ae80: 40020058 .word 0x40020058
  24919. 800ae84: 40020070 .word 0x40020070
  24920. 800ae88: 40020088 .word 0x40020088
  24921. 800ae8c: 400200a0 .word 0x400200a0
  24922. 800ae90: 400200b8 .word 0x400200b8
  24923. 800ae94: 40020410 .word 0x40020410
  24924. 800ae98: 40020428 .word 0x40020428
  24925. 800ae9c: 40020440 .word 0x40020440
  24926. 800aea0: 40020458 .word 0x40020458
  24927. 800aea4: 40020470 .word 0x40020470
  24928. 800aea8: 40020488 .word 0x40020488
  24929. 800aeac: 400204a0 .word 0x400204a0
  24930. 800aeb0: 400204b8 .word 0x400204b8
  24931. 800aeb4: aaaaaaab .word 0xaaaaaaab
  24932. 800aeb8: 0801871c .word 0x0801871c
  24933. 800aebc: fffffc00 .word 0xfffffc00
  24934. 0800aec0 <DMA_CheckFifoParam>:
  24935. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24936. * the configuration information for the specified DMA Stream.
  24937. * @retval HAL status
  24938. */
  24939. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  24940. {
  24941. 800aec0: b480 push {r7}
  24942. 800aec2: b085 sub sp, #20
  24943. 800aec4: af00 add r7, sp, #0
  24944. 800aec6: 6078 str r0, [r7, #4]
  24945. HAL_StatusTypeDef status = HAL_OK;
  24946. 800aec8: 2300 movs r3, #0
  24947. 800aeca: 73fb strb r3, [r7, #15]
  24948. /* Memory Data size equal to Byte */
  24949. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  24950. 800aecc: 687b ldr r3, [r7, #4]
  24951. 800aece: 699b ldr r3, [r3, #24]
  24952. 800aed0: 2b00 cmp r3, #0
  24953. 800aed2: d120 bne.n 800af16 <DMA_CheckFifoParam+0x56>
  24954. {
  24955. switch (hdma->Init.FIFOThreshold)
  24956. 800aed4: 687b ldr r3, [r7, #4]
  24957. 800aed6: 6a9b ldr r3, [r3, #40] @ 0x28
  24958. 800aed8: 2b03 cmp r3, #3
  24959. 800aeda: d858 bhi.n 800af8e <DMA_CheckFifoParam+0xce>
  24960. 800aedc: a201 add r2, pc, #4 @ (adr r2, 800aee4 <DMA_CheckFifoParam+0x24>)
  24961. 800aede: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24962. 800aee2: bf00 nop
  24963. 800aee4: 0800aef5 .word 0x0800aef5
  24964. 800aee8: 0800af07 .word 0x0800af07
  24965. 800aeec: 0800aef5 .word 0x0800aef5
  24966. 800aef0: 0800af8f .word 0x0800af8f
  24967. {
  24968. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  24969. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  24970. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24971. 800aef4: 687b ldr r3, [r7, #4]
  24972. 800aef6: 6adb ldr r3, [r3, #44] @ 0x2c
  24973. 800aef8: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24974. 800aefc: 2b00 cmp r3, #0
  24975. 800aefe: d048 beq.n 800af92 <DMA_CheckFifoParam+0xd2>
  24976. {
  24977. status = HAL_ERROR;
  24978. 800af00: 2301 movs r3, #1
  24979. 800af02: 73fb strb r3, [r7, #15]
  24980. }
  24981. break;
  24982. 800af04: e045 b.n 800af92 <DMA_CheckFifoParam+0xd2>
  24983. case DMA_FIFO_THRESHOLD_HALFFULL:
  24984. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  24985. 800af06: 687b ldr r3, [r7, #4]
  24986. 800af08: 6adb ldr r3, [r3, #44] @ 0x2c
  24987. 800af0a: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  24988. 800af0e: d142 bne.n 800af96 <DMA_CheckFifoParam+0xd6>
  24989. {
  24990. status = HAL_ERROR;
  24991. 800af10: 2301 movs r3, #1
  24992. 800af12: 73fb strb r3, [r7, #15]
  24993. }
  24994. break;
  24995. 800af14: e03f b.n 800af96 <DMA_CheckFifoParam+0xd6>
  24996. break;
  24997. }
  24998. }
  24999. /* Memory Data size equal to Half-Word */
  25000. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  25001. 800af16: 687b ldr r3, [r7, #4]
  25002. 800af18: 699b ldr r3, [r3, #24]
  25003. 800af1a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25004. 800af1e: d123 bne.n 800af68 <DMA_CheckFifoParam+0xa8>
  25005. {
  25006. switch (hdma->Init.FIFOThreshold)
  25007. 800af20: 687b ldr r3, [r7, #4]
  25008. 800af22: 6a9b ldr r3, [r3, #40] @ 0x28
  25009. 800af24: 2b03 cmp r3, #3
  25010. 800af26: d838 bhi.n 800af9a <DMA_CheckFifoParam+0xda>
  25011. 800af28: a201 add r2, pc, #4 @ (adr r2, 800af30 <DMA_CheckFifoParam+0x70>)
  25012. 800af2a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25013. 800af2e: bf00 nop
  25014. 800af30: 0800af41 .word 0x0800af41
  25015. 800af34: 0800af47 .word 0x0800af47
  25016. 800af38: 0800af41 .word 0x0800af41
  25017. 800af3c: 0800af59 .word 0x0800af59
  25018. {
  25019. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  25020. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  25021. status = HAL_ERROR;
  25022. 800af40: 2301 movs r3, #1
  25023. 800af42: 73fb strb r3, [r7, #15]
  25024. break;
  25025. 800af44: e030 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25026. case DMA_FIFO_THRESHOLD_HALFFULL:
  25027. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25028. 800af46: 687b ldr r3, [r7, #4]
  25029. 800af48: 6adb ldr r3, [r3, #44] @ 0x2c
  25030. 800af4a: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25031. 800af4e: 2b00 cmp r3, #0
  25032. 800af50: d025 beq.n 800af9e <DMA_CheckFifoParam+0xde>
  25033. {
  25034. status = HAL_ERROR;
  25035. 800af52: 2301 movs r3, #1
  25036. 800af54: 73fb strb r3, [r7, #15]
  25037. }
  25038. break;
  25039. 800af56: e022 b.n 800af9e <DMA_CheckFifoParam+0xde>
  25040. case DMA_FIFO_THRESHOLD_FULL:
  25041. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  25042. 800af58: 687b ldr r3, [r7, #4]
  25043. 800af5a: 6adb ldr r3, [r3, #44] @ 0x2c
  25044. 800af5c: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  25045. 800af60: d11f bne.n 800afa2 <DMA_CheckFifoParam+0xe2>
  25046. {
  25047. status = HAL_ERROR;
  25048. 800af62: 2301 movs r3, #1
  25049. 800af64: 73fb strb r3, [r7, #15]
  25050. }
  25051. break;
  25052. 800af66: e01c b.n 800afa2 <DMA_CheckFifoParam+0xe2>
  25053. }
  25054. /* Memory Data size equal to Word */
  25055. else
  25056. {
  25057. switch (hdma->Init.FIFOThreshold)
  25058. 800af68: 687b ldr r3, [r7, #4]
  25059. 800af6a: 6a9b ldr r3, [r3, #40] @ 0x28
  25060. 800af6c: 2b02 cmp r3, #2
  25061. 800af6e: d902 bls.n 800af76 <DMA_CheckFifoParam+0xb6>
  25062. 800af70: 2b03 cmp r3, #3
  25063. 800af72: d003 beq.n 800af7c <DMA_CheckFifoParam+0xbc>
  25064. status = HAL_ERROR;
  25065. }
  25066. break;
  25067. default:
  25068. break;
  25069. 800af74: e018 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25070. status = HAL_ERROR;
  25071. 800af76: 2301 movs r3, #1
  25072. 800af78: 73fb strb r3, [r7, #15]
  25073. break;
  25074. 800af7a: e015 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25075. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  25076. 800af7c: 687b ldr r3, [r7, #4]
  25077. 800af7e: 6adb ldr r3, [r3, #44] @ 0x2c
  25078. 800af80: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  25079. 800af84: 2b00 cmp r3, #0
  25080. 800af86: d00e beq.n 800afa6 <DMA_CheckFifoParam+0xe6>
  25081. status = HAL_ERROR;
  25082. 800af88: 2301 movs r3, #1
  25083. 800af8a: 73fb strb r3, [r7, #15]
  25084. break;
  25085. 800af8c: e00b b.n 800afa6 <DMA_CheckFifoParam+0xe6>
  25086. break;
  25087. 800af8e: bf00 nop
  25088. 800af90: e00a b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25089. break;
  25090. 800af92: bf00 nop
  25091. 800af94: e008 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25092. break;
  25093. 800af96: bf00 nop
  25094. 800af98: e006 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25095. break;
  25096. 800af9a: bf00 nop
  25097. 800af9c: e004 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25098. break;
  25099. 800af9e: bf00 nop
  25100. 800afa0: e002 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25101. break;
  25102. 800afa2: bf00 nop
  25103. 800afa4: e000 b.n 800afa8 <DMA_CheckFifoParam+0xe8>
  25104. break;
  25105. 800afa6: bf00 nop
  25106. }
  25107. }
  25108. return status;
  25109. 800afa8: 7bfb ldrb r3, [r7, #15]
  25110. }
  25111. 800afaa: 4618 mov r0, r3
  25112. 800afac: 3714 adds r7, #20
  25113. 800afae: 46bd mov sp, r7
  25114. 800afb0: f85d 7b04 ldr.w r7, [sp], #4
  25115. 800afb4: 4770 bx lr
  25116. 800afb6: bf00 nop
  25117. 0800afb8 <DMA_CalcDMAMUXChannelBaseAndMask>:
  25118. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25119. * the configuration information for the specified DMA Stream.
  25120. * @retval HAL status
  25121. */
  25122. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  25123. {
  25124. 800afb8: b480 push {r7}
  25125. 800afba: b085 sub sp, #20
  25126. 800afbc: af00 add r7, sp, #0
  25127. 800afbe: 6078 str r0, [r7, #4]
  25128. uint32_t stream_number;
  25129. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  25130. 800afc0: 687b ldr r3, [r7, #4]
  25131. 800afc2: 681b ldr r3, [r3, #0]
  25132. 800afc4: 60bb str r3, [r7, #8]
  25133. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25134. 800afc6: 687b ldr r3, [r7, #4]
  25135. 800afc8: 681b ldr r3, [r3, #0]
  25136. 800afca: 4a38 ldr r2, [pc, #224] @ (800b0ac <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  25137. 800afcc: 4293 cmp r3, r2
  25138. 800afce: d022 beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25139. 800afd0: 687b ldr r3, [r7, #4]
  25140. 800afd2: 681b ldr r3, [r3, #0]
  25141. 800afd4: 4a36 ldr r2, [pc, #216] @ (800b0b0 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  25142. 800afd6: 4293 cmp r3, r2
  25143. 800afd8: d01d beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25144. 800afda: 687b ldr r3, [r7, #4]
  25145. 800afdc: 681b ldr r3, [r3, #0]
  25146. 800afde: 4a35 ldr r2, [pc, #212] @ (800b0b4 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  25147. 800afe0: 4293 cmp r3, r2
  25148. 800afe2: d018 beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25149. 800afe4: 687b ldr r3, [r7, #4]
  25150. 800afe6: 681b ldr r3, [r3, #0]
  25151. 800afe8: 4a33 ldr r2, [pc, #204] @ (800b0b8 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  25152. 800afea: 4293 cmp r3, r2
  25153. 800afec: d013 beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25154. 800afee: 687b ldr r3, [r7, #4]
  25155. 800aff0: 681b ldr r3, [r3, #0]
  25156. 800aff2: 4a32 ldr r2, [pc, #200] @ (800b0bc <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  25157. 800aff4: 4293 cmp r3, r2
  25158. 800aff6: d00e beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25159. 800aff8: 687b ldr r3, [r7, #4]
  25160. 800affa: 681b ldr r3, [r3, #0]
  25161. 800affc: 4a30 ldr r2, [pc, #192] @ (800b0c0 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  25162. 800affe: 4293 cmp r3, r2
  25163. 800b000: d009 beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25164. 800b002: 687b ldr r3, [r7, #4]
  25165. 800b004: 681b ldr r3, [r3, #0]
  25166. 800b006: 4a2f ldr r2, [pc, #188] @ (800b0c4 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  25167. 800b008: 4293 cmp r3, r2
  25168. 800b00a: d004 beq.n 800b016 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  25169. 800b00c: 687b ldr r3, [r7, #4]
  25170. 800b00e: 681b ldr r3, [r3, #0]
  25171. 800b010: 4a2d ldr r2, [pc, #180] @ (800b0c8 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  25172. 800b012: 4293 cmp r3, r2
  25173. 800b014: d101 bne.n 800b01a <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  25174. 800b016: 2301 movs r3, #1
  25175. 800b018: e000 b.n 800b01c <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  25176. 800b01a: 2300 movs r3, #0
  25177. 800b01c: 2b00 cmp r3, #0
  25178. 800b01e: d01a beq.n 800b056 <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  25179. {
  25180. /* BDMA Channels are connected to DMAMUX2 channels */
  25181. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  25182. 800b020: 687b ldr r3, [r7, #4]
  25183. 800b022: 681b ldr r3, [r3, #0]
  25184. 800b024: b2db uxtb r3, r3
  25185. 800b026: 3b08 subs r3, #8
  25186. 800b028: 4a28 ldr r2, [pc, #160] @ (800b0cc <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  25187. 800b02a: fba2 2303 umull r2, r3, r2, r3
  25188. 800b02e: 091b lsrs r3, r3, #4
  25189. 800b030: 60fb str r3, [r7, #12]
  25190. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  25191. 800b032: 68fa ldr r2, [r7, #12]
  25192. 800b034: 4b26 ldr r3, [pc, #152] @ (800b0d0 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  25193. 800b036: 4413 add r3, r2
  25194. 800b038: 009b lsls r3, r3, #2
  25195. 800b03a: 461a mov r2, r3
  25196. 800b03c: 687b ldr r3, [r7, #4]
  25197. 800b03e: 661a str r2, [r3, #96] @ 0x60
  25198. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  25199. 800b040: 687b ldr r3, [r7, #4]
  25200. 800b042: 4a24 ldr r2, [pc, #144] @ (800b0d4 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  25201. 800b044: 665a str r2, [r3, #100] @ 0x64
  25202. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25203. 800b046: 68fb ldr r3, [r7, #12]
  25204. 800b048: f003 031f and.w r3, r3, #31
  25205. 800b04c: 2201 movs r2, #1
  25206. 800b04e: 409a lsls r2, r3
  25207. 800b050: 687b ldr r3, [r7, #4]
  25208. 800b052: 669a str r2, [r3, #104] @ 0x68
  25209. }
  25210. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25211. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25212. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25213. }
  25214. }
  25215. 800b054: e024 b.n 800b0a0 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  25216. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  25217. 800b056: 687b ldr r3, [r7, #4]
  25218. 800b058: 681b ldr r3, [r3, #0]
  25219. 800b05a: b2db uxtb r3, r3
  25220. 800b05c: 3b10 subs r3, #16
  25221. 800b05e: 4a1e ldr r2, [pc, #120] @ (800b0d8 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  25222. 800b060: fba2 2303 umull r2, r3, r2, r3
  25223. 800b064: 091b lsrs r3, r3, #4
  25224. 800b066: 60fb str r3, [r7, #12]
  25225. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  25226. 800b068: 68bb ldr r3, [r7, #8]
  25227. 800b06a: 4a1c ldr r2, [pc, #112] @ (800b0dc <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  25228. 800b06c: 4293 cmp r3, r2
  25229. 800b06e: d806 bhi.n 800b07e <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25230. 800b070: 68bb ldr r3, [r7, #8]
  25231. 800b072: 4a1b ldr r2, [pc, #108] @ (800b0e0 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  25232. 800b074: 4293 cmp r3, r2
  25233. 800b076: d902 bls.n 800b07e <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  25234. stream_number += 8U;
  25235. 800b078: 68fb ldr r3, [r7, #12]
  25236. 800b07a: 3308 adds r3, #8
  25237. 800b07c: 60fb str r3, [r7, #12]
  25238. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  25239. 800b07e: 68fa ldr r2, [r7, #12]
  25240. 800b080: 4b18 ldr r3, [pc, #96] @ (800b0e4 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  25241. 800b082: 4413 add r3, r2
  25242. 800b084: 009b lsls r3, r3, #2
  25243. 800b086: 461a mov r2, r3
  25244. 800b088: 687b ldr r3, [r7, #4]
  25245. 800b08a: 661a str r2, [r3, #96] @ 0x60
  25246. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  25247. 800b08c: 687b ldr r3, [r7, #4]
  25248. 800b08e: 4a16 ldr r2, [pc, #88] @ (800b0e8 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  25249. 800b090: 665a str r2, [r3, #100] @ 0x64
  25250. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  25251. 800b092: 68fb ldr r3, [r7, #12]
  25252. 800b094: f003 031f and.w r3, r3, #31
  25253. 800b098: 2201 movs r2, #1
  25254. 800b09a: 409a lsls r2, r3
  25255. 800b09c: 687b ldr r3, [r7, #4]
  25256. 800b09e: 669a str r2, [r3, #104] @ 0x68
  25257. }
  25258. 800b0a0: bf00 nop
  25259. 800b0a2: 3714 adds r7, #20
  25260. 800b0a4: 46bd mov sp, r7
  25261. 800b0a6: f85d 7b04 ldr.w r7, [sp], #4
  25262. 800b0aa: 4770 bx lr
  25263. 800b0ac: 58025408 .word 0x58025408
  25264. 800b0b0: 5802541c .word 0x5802541c
  25265. 800b0b4: 58025430 .word 0x58025430
  25266. 800b0b8: 58025444 .word 0x58025444
  25267. 800b0bc: 58025458 .word 0x58025458
  25268. 800b0c0: 5802546c .word 0x5802546c
  25269. 800b0c4: 58025480 .word 0x58025480
  25270. 800b0c8: 58025494 .word 0x58025494
  25271. 800b0cc: cccccccd .word 0xcccccccd
  25272. 800b0d0: 16009600 .word 0x16009600
  25273. 800b0d4: 58025880 .word 0x58025880
  25274. 800b0d8: aaaaaaab .word 0xaaaaaaab
  25275. 800b0dc: 400204b8 .word 0x400204b8
  25276. 800b0e0: 4002040f .word 0x4002040f
  25277. 800b0e4: 10008200 .word 0x10008200
  25278. 800b0e8: 40020880 .word 0x40020880
  25279. 0800b0ec <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  25280. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  25281. * the configuration information for the specified DMA Stream.
  25282. * @retval HAL status
  25283. */
  25284. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  25285. {
  25286. 800b0ec: b480 push {r7}
  25287. 800b0ee: b085 sub sp, #20
  25288. 800b0f0: af00 add r7, sp, #0
  25289. 800b0f2: 6078 str r0, [r7, #4]
  25290. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  25291. 800b0f4: 687b ldr r3, [r7, #4]
  25292. 800b0f6: 685b ldr r3, [r3, #4]
  25293. 800b0f8: b2db uxtb r3, r3
  25294. 800b0fa: 60fb str r3, [r7, #12]
  25295. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  25296. 800b0fc: 68fb ldr r3, [r7, #12]
  25297. 800b0fe: 2b00 cmp r3, #0
  25298. 800b100: d04a beq.n 800b198 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25299. 800b102: 68fb ldr r3, [r7, #12]
  25300. 800b104: 2b08 cmp r3, #8
  25301. 800b106: d847 bhi.n 800b198 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  25302. {
  25303. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  25304. 800b108: 687b ldr r3, [r7, #4]
  25305. 800b10a: 681b ldr r3, [r3, #0]
  25306. 800b10c: 4a25 ldr r2, [pc, #148] @ (800b1a4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  25307. 800b10e: 4293 cmp r3, r2
  25308. 800b110: d022 beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25309. 800b112: 687b ldr r3, [r7, #4]
  25310. 800b114: 681b ldr r3, [r3, #0]
  25311. 800b116: 4a24 ldr r2, [pc, #144] @ (800b1a8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  25312. 800b118: 4293 cmp r3, r2
  25313. 800b11a: d01d beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25314. 800b11c: 687b ldr r3, [r7, #4]
  25315. 800b11e: 681b ldr r3, [r3, #0]
  25316. 800b120: 4a22 ldr r2, [pc, #136] @ (800b1ac <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  25317. 800b122: 4293 cmp r3, r2
  25318. 800b124: d018 beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25319. 800b126: 687b ldr r3, [r7, #4]
  25320. 800b128: 681b ldr r3, [r3, #0]
  25321. 800b12a: 4a21 ldr r2, [pc, #132] @ (800b1b0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  25322. 800b12c: 4293 cmp r3, r2
  25323. 800b12e: d013 beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25324. 800b130: 687b ldr r3, [r7, #4]
  25325. 800b132: 681b ldr r3, [r3, #0]
  25326. 800b134: 4a1f ldr r2, [pc, #124] @ (800b1b4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  25327. 800b136: 4293 cmp r3, r2
  25328. 800b138: d00e beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25329. 800b13a: 687b ldr r3, [r7, #4]
  25330. 800b13c: 681b ldr r3, [r3, #0]
  25331. 800b13e: 4a1e ldr r2, [pc, #120] @ (800b1b8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  25332. 800b140: 4293 cmp r3, r2
  25333. 800b142: d009 beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25334. 800b144: 687b ldr r3, [r7, #4]
  25335. 800b146: 681b ldr r3, [r3, #0]
  25336. 800b148: 4a1c ldr r2, [pc, #112] @ (800b1bc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  25337. 800b14a: 4293 cmp r3, r2
  25338. 800b14c: d004 beq.n 800b158 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  25339. 800b14e: 687b ldr r3, [r7, #4]
  25340. 800b150: 681b ldr r3, [r3, #0]
  25341. 800b152: 4a1b ldr r2, [pc, #108] @ (800b1c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  25342. 800b154: 4293 cmp r3, r2
  25343. 800b156: d101 bne.n 800b15c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  25344. 800b158: 2301 movs r3, #1
  25345. 800b15a: e000 b.n 800b15e <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  25346. 800b15c: 2300 movs r3, #0
  25347. 800b15e: 2b00 cmp r3, #0
  25348. 800b160: d00a beq.n 800b178 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  25349. {
  25350. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  25351. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  25352. 800b162: 68fa ldr r2, [r7, #12]
  25353. 800b164: 4b17 ldr r3, [pc, #92] @ (800b1c4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  25354. 800b166: 4413 add r3, r2
  25355. 800b168: 009b lsls r3, r3, #2
  25356. 800b16a: 461a mov r2, r3
  25357. 800b16c: 687b ldr r3, [r7, #4]
  25358. 800b16e: 66da str r2, [r3, #108] @ 0x6c
  25359. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  25360. 800b170: 687b ldr r3, [r7, #4]
  25361. 800b172: 4a15 ldr r2, [pc, #84] @ (800b1c8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  25362. 800b174: 671a str r2, [r3, #112] @ 0x70
  25363. 800b176: e009 b.n 800b18c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  25364. }
  25365. else
  25366. {
  25367. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  25368. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  25369. 800b178: 68fa ldr r2, [r7, #12]
  25370. 800b17a: 4b14 ldr r3, [pc, #80] @ (800b1cc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  25371. 800b17c: 4413 add r3, r2
  25372. 800b17e: 009b lsls r3, r3, #2
  25373. 800b180: 461a mov r2, r3
  25374. 800b182: 687b ldr r3, [r7, #4]
  25375. 800b184: 66da str r2, [r3, #108] @ 0x6c
  25376. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  25377. 800b186: 687b ldr r3, [r7, #4]
  25378. 800b188: 4a11 ldr r2, [pc, #68] @ (800b1d0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  25379. 800b18a: 671a str r2, [r3, #112] @ 0x70
  25380. }
  25381. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  25382. 800b18c: 68fb ldr r3, [r7, #12]
  25383. 800b18e: 3b01 subs r3, #1
  25384. 800b190: 2201 movs r2, #1
  25385. 800b192: 409a lsls r2, r3
  25386. 800b194: 687b ldr r3, [r7, #4]
  25387. 800b196: 675a str r2, [r3, #116] @ 0x74
  25388. }
  25389. }
  25390. 800b198: bf00 nop
  25391. 800b19a: 3714 adds r7, #20
  25392. 800b19c: 46bd mov sp, r7
  25393. 800b19e: f85d 7b04 ldr.w r7, [sp], #4
  25394. 800b1a2: 4770 bx lr
  25395. 800b1a4: 58025408 .word 0x58025408
  25396. 800b1a8: 5802541c .word 0x5802541c
  25397. 800b1ac: 58025430 .word 0x58025430
  25398. 800b1b0: 58025444 .word 0x58025444
  25399. 800b1b4: 58025458 .word 0x58025458
  25400. 800b1b8: 5802546c .word 0x5802546c
  25401. 800b1bc: 58025480 .word 0x58025480
  25402. 800b1c0: 58025494 .word 0x58025494
  25403. 800b1c4: 1600963f .word 0x1600963f
  25404. 800b1c8: 58025940 .word 0x58025940
  25405. 800b1cc: 1000823f .word 0x1000823f
  25406. 800b1d0: 40020940 .word 0x40020940
  25407. 0800b1d4 <HAL_GPIO_Init>:
  25408. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  25409. * the configuration information for the specified GPIO peripheral.
  25410. * @retval None
  25411. */
  25412. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  25413. {
  25414. 800b1d4: b480 push {r7}
  25415. 800b1d6: b089 sub sp, #36 @ 0x24
  25416. 800b1d8: af00 add r7, sp, #0
  25417. 800b1da: 6078 str r0, [r7, #4]
  25418. 800b1dc: 6039 str r1, [r7, #0]
  25419. uint32_t position = 0x00U;
  25420. 800b1de: 2300 movs r3, #0
  25421. 800b1e0: 61fb str r3, [r7, #28]
  25422. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  25423. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25424. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  25425. #else
  25426. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  25427. 800b1e2: 4b89 ldr r3, [pc, #548] @ (800b408 <HAL_GPIO_Init+0x234>)
  25428. 800b1e4: 617b str r3, [r7, #20]
  25429. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  25430. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  25431. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  25432. /* Configure the port pins */
  25433. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25434. 800b1e6: e194 b.n 800b512 <HAL_GPIO_Init+0x33e>
  25435. {
  25436. /* Get current io position */
  25437. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  25438. 800b1e8: 683b ldr r3, [r7, #0]
  25439. 800b1ea: 681a ldr r2, [r3, #0]
  25440. 800b1ec: 2101 movs r1, #1
  25441. 800b1ee: 69fb ldr r3, [r7, #28]
  25442. 800b1f0: fa01 f303 lsl.w r3, r1, r3
  25443. 800b1f4: 4013 ands r3, r2
  25444. 800b1f6: 613b str r3, [r7, #16]
  25445. if (iocurrent != 0x00U)
  25446. 800b1f8: 693b ldr r3, [r7, #16]
  25447. 800b1fa: 2b00 cmp r3, #0
  25448. 800b1fc: f000 8186 beq.w 800b50c <HAL_GPIO_Init+0x338>
  25449. {
  25450. /*--------------------- GPIO Mode Configuration ------------------------*/
  25451. /* In case of Output or Alternate function mode selection */
  25452. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  25453. 800b200: 683b ldr r3, [r7, #0]
  25454. 800b202: 685b ldr r3, [r3, #4]
  25455. 800b204: f003 0303 and.w r3, r3, #3
  25456. 800b208: 2b01 cmp r3, #1
  25457. 800b20a: d005 beq.n 800b218 <HAL_GPIO_Init+0x44>
  25458. 800b20c: 683b ldr r3, [r7, #0]
  25459. 800b20e: 685b ldr r3, [r3, #4]
  25460. 800b210: f003 0303 and.w r3, r3, #3
  25461. 800b214: 2b02 cmp r3, #2
  25462. 800b216: d130 bne.n 800b27a <HAL_GPIO_Init+0xa6>
  25463. {
  25464. /* Check the Speed parameter */
  25465. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  25466. /* Configure the IO Speed */
  25467. temp = GPIOx->OSPEEDR;
  25468. 800b218: 687b ldr r3, [r7, #4]
  25469. 800b21a: 689b ldr r3, [r3, #8]
  25470. 800b21c: 61bb str r3, [r7, #24]
  25471. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  25472. 800b21e: 69fb ldr r3, [r7, #28]
  25473. 800b220: 005b lsls r3, r3, #1
  25474. 800b222: 2203 movs r2, #3
  25475. 800b224: fa02 f303 lsl.w r3, r2, r3
  25476. 800b228: 43db mvns r3, r3
  25477. 800b22a: 69ba ldr r2, [r7, #24]
  25478. 800b22c: 4013 ands r3, r2
  25479. 800b22e: 61bb str r3, [r7, #24]
  25480. temp |= (GPIO_Init->Speed << (position * 2U));
  25481. 800b230: 683b ldr r3, [r7, #0]
  25482. 800b232: 68da ldr r2, [r3, #12]
  25483. 800b234: 69fb ldr r3, [r7, #28]
  25484. 800b236: 005b lsls r3, r3, #1
  25485. 800b238: fa02 f303 lsl.w r3, r2, r3
  25486. 800b23c: 69ba ldr r2, [r7, #24]
  25487. 800b23e: 4313 orrs r3, r2
  25488. 800b240: 61bb str r3, [r7, #24]
  25489. GPIOx->OSPEEDR = temp;
  25490. 800b242: 687b ldr r3, [r7, #4]
  25491. 800b244: 69ba ldr r2, [r7, #24]
  25492. 800b246: 609a str r2, [r3, #8]
  25493. /* Configure the IO Output Type */
  25494. temp = GPIOx->OTYPER;
  25495. 800b248: 687b ldr r3, [r7, #4]
  25496. 800b24a: 685b ldr r3, [r3, #4]
  25497. 800b24c: 61bb str r3, [r7, #24]
  25498. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  25499. 800b24e: 2201 movs r2, #1
  25500. 800b250: 69fb ldr r3, [r7, #28]
  25501. 800b252: fa02 f303 lsl.w r3, r2, r3
  25502. 800b256: 43db mvns r3, r3
  25503. 800b258: 69ba ldr r2, [r7, #24]
  25504. 800b25a: 4013 ands r3, r2
  25505. 800b25c: 61bb str r3, [r7, #24]
  25506. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  25507. 800b25e: 683b ldr r3, [r7, #0]
  25508. 800b260: 685b ldr r3, [r3, #4]
  25509. 800b262: 091b lsrs r3, r3, #4
  25510. 800b264: f003 0201 and.w r2, r3, #1
  25511. 800b268: 69fb ldr r3, [r7, #28]
  25512. 800b26a: fa02 f303 lsl.w r3, r2, r3
  25513. 800b26e: 69ba ldr r2, [r7, #24]
  25514. 800b270: 4313 orrs r3, r2
  25515. 800b272: 61bb str r3, [r7, #24]
  25516. GPIOx->OTYPER = temp;
  25517. 800b274: 687b ldr r3, [r7, #4]
  25518. 800b276: 69ba ldr r2, [r7, #24]
  25519. 800b278: 605a str r2, [r3, #4]
  25520. }
  25521. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  25522. 800b27a: 683b ldr r3, [r7, #0]
  25523. 800b27c: 685b ldr r3, [r3, #4]
  25524. 800b27e: f003 0303 and.w r3, r3, #3
  25525. 800b282: 2b03 cmp r3, #3
  25526. 800b284: d017 beq.n 800b2b6 <HAL_GPIO_Init+0xe2>
  25527. {
  25528. /* Check the Pull parameter */
  25529. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  25530. /* Activate the Pull-up or Pull down resistor for the current IO */
  25531. temp = GPIOx->PUPDR;
  25532. 800b286: 687b ldr r3, [r7, #4]
  25533. 800b288: 68db ldr r3, [r3, #12]
  25534. 800b28a: 61bb str r3, [r7, #24]
  25535. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  25536. 800b28c: 69fb ldr r3, [r7, #28]
  25537. 800b28e: 005b lsls r3, r3, #1
  25538. 800b290: 2203 movs r2, #3
  25539. 800b292: fa02 f303 lsl.w r3, r2, r3
  25540. 800b296: 43db mvns r3, r3
  25541. 800b298: 69ba ldr r2, [r7, #24]
  25542. 800b29a: 4013 ands r3, r2
  25543. 800b29c: 61bb str r3, [r7, #24]
  25544. temp |= ((GPIO_Init->Pull) << (position * 2U));
  25545. 800b29e: 683b ldr r3, [r7, #0]
  25546. 800b2a0: 689a ldr r2, [r3, #8]
  25547. 800b2a2: 69fb ldr r3, [r7, #28]
  25548. 800b2a4: 005b lsls r3, r3, #1
  25549. 800b2a6: fa02 f303 lsl.w r3, r2, r3
  25550. 800b2aa: 69ba ldr r2, [r7, #24]
  25551. 800b2ac: 4313 orrs r3, r2
  25552. 800b2ae: 61bb str r3, [r7, #24]
  25553. GPIOx->PUPDR = temp;
  25554. 800b2b0: 687b ldr r3, [r7, #4]
  25555. 800b2b2: 69ba ldr r2, [r7, #24]
  25556. 800b2b4: 60da str r2, [r3, #12]
  25557. }
  25558. /* In case of Alternate function mode selection */
  25559. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  25560. 800b2b6: 683b ldr r3, [r7, #0]
  25561. 800b2b8: 685b ldr r3, [r3, #4]
  25562. 800b2ba: f003 0303 and.w r3, r3, #3
  25563. 800b2be: 2b02 cmp r3, #2
  25564. 800b2c0: d123 bne.n 800b30a <HAL_GPIO_Init+0x136>
  25565. /* Check the Alternate function parameters */
  25566. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  25567. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  25568. /* Configure Alternate function mapped with the current IO */
  25569. temp = GPIOx->AFR[position >> 3U];
  25570. 800b2c2: 69fb ldr r3, [r7, #28]
  25571. 800b2c4: 08da lsrs r2, r3, #3
  25572. 800b2c6: 687b ldr r3, [r7, #4]
  25573. 800b2c8: 3208 adds r2, #8
  25574. 800b2ca: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  25575. 800b2ce: 61bb str r3, [r7, #24]
  25576. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  25577. 800b2d0: 69fb ldr r3, [r7, #28]
  25578. 800b2d2: f003 0307 and.w r3, r3, #7
  25579. 800b2d6: 009b lsls r3, r3, #2
  25580. 800b2d8: 220f movs r2, #15
  25581. 800b2da: fa02 f303 lsl.w r3, r2, r3
  25582. 800b2de: 43db mvns r3, r3
  25583. 800b2e0: 69ba ldr r2, [r7, #24]
  25584. 800b2e2: 4013 ands r3, r2
  25585. 800b2e4: 61bb str r3, [r7, #24]
  25586. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  25587. 800b2e6: 683b ldr r3, [r7, #0]
  25588. 800b2e8: 691a ldr r2, [r3, #16]
  25589. 800b2ea: 69fb ldr r3, [r7, #28]
  25590. 800b2ec: f003 0307 and.w r3, r3, #7
  25591. 800b2f0: 009b lsls r3, r3, #2
  25592. 800b2f2: fa02 f303 lsl.w r3, r2, r3
  25593. 800b2f6: 69ba ldr r2, [r7, #24]
  25594. 800b2f8: 4313 orrs r3, r2
  25595. 800b2fa: 61bb str r3, [r7, #24]
  25596. GPIOx->AFR[position >> 3U] = temp;
  25597. 800b2fc: 69fb ldr r3, [r7, #28]
  25598. 800b2fe: 08da lsrs r2, r3, #3
  25599. 800b300: 687b ldr r3, [r7, #4]
  25600. 800b302: 3208 adds r2, #8
  25601. 800b304: 69b9 ldr r1, [r7, #24]
  25602. 800b306: f843 1022 str.w r1, [r3, r2, lsl #2]
  25603. }
  25604. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  25605. temp = GPIOx->MODER;
  25606. 800b30a: 687b ldr r3, [r7, #4]
  25607. 800b30c: 681b ldr r3, [r3, #0]
  25608. 800b30e: 61bb str r3, [r7, #24]
  25609. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  25610. 800b310: 69fb ldr r3, [r7, #28]
  25611. 800b312: 005b lsls r3, r3, #1
  25612. 800b314: 2203 movs r2, #3
  25613. 800b316: fa02 f303 lsl.w r3, r2, r3
  25614. 800b31a: 43db mvns r3, r3
  25615. 800b31c: 69ba ldr r2, [r7, #24]
  25616. 800b31e: 4013 ands r3, r2
  25617. 800b320: 61bb str r3, [r7, #24]
  25618. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  25619. 800b322: 683b ldr r3, [r7, #0]
  25620. 800b324: 685b ldr r3, [r3, #4]
  25621. 800b326: f003 0203 and.w r2, r3, #3
  25622. 800b32a: 69fb ldr r3, [r7, #28]
  25623. 800b32c: 005b lsls r3, r3, #1
  25624. 800b32e: fa02 f303 lsl.w r3, r2, r3
  25625. 800b332: 69ba ldr r2, [r7, #24]
  25626. 800b334: 4313 orrs r3, r2
  25627. 800b336: 61bb str r3, [r7, #24]
  25628. GPIOx->MODER = temp;
  25629. 800b338: 687b ldr r3, [r7, #4]
  25630. 800b33a: 69ba ldr r2, [r7, #24]
  25631. 800b33c: 601a str r2, [r3, #0]
  25632. /*--------------------- EXTI Mode Configuration ------------------------*/
  25633. /* Configure the External Interrupt or event for the current IO */
  25634. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  25635. 800b33e: 683b ldr r3, [r7, #0]
  25636. 800b340: 685b ldr r3, [r3, #4]
  25637. 800b342: f403 3340 and.w r3, r3, #196608 @ 0x30000
  25638. 800b346: 2b00 cmp r3, #0
  25639. 800b348: f000 80e0 beq.w 800b50c <HAL_GPIO_Init+0x338>
  25640. {
  25641. /* Enable SYSCFG Clock */
  25642. __HAL_RCC_SYSCFG_CLK_ENABLE();
  25643. 800b34c: 4b2f ldr r3, [pc, #188] @ (800b40c <HAL_GPIO_Init+0x238>)
  25644. 800b34e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25645. 800b352: 4a2e ldr r2, [pc, #184] @ (800b40c <HAL_GPIO_Init+0x238>)
  25646. 800b354: f043 0302 orr.w r3, r3, #2
  25647. 800b358: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  25648. 800b35c: 4b2b ldr r3, [pc, #172] @ (800b40c <HAL_GPIO_Init+0x238>)
  25649. 800b35e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25650. 800b362: f003 0302 and.w r3, r3, #2
  25651. 800b366: 60fb str r3, [r7, #12]
  25652. 800b368: 68fb ldr r3, [r7, #12]
  25653. temp = SYSCFG->EXTICR[position >> 2U];
  25654. 800b36a: 4a29 ldr r2, [pc, #164] @ (800b410 <HAL_GPIO_Init+0x23c>)
  25655. 800b36c: 69fb ldr r3, [r7, #28]
  25656. 800b36e: 089b lsrs r3, r3, #2
  25657. 800b370: 3302 adds r3, #2
  25658. 800b372: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  25659. 800b376: 61bb str r3, [r7, #24]
  25660. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  25661. 800b378: 69fb ldr r3, [r7, #28]
  25662. 800b37a: f003 0303 and.w r3, r3, #3
  25663. 800b37e: 009b lsls r3, r3, #2
  25664. 800b380: 220f movs r2, #15
  25665. 800b382: fa02 f303 lsl.w r3, r2, r3
  25666. 800b386: 43db mvns r3, r3
  25667. 800b388: 69ba ldr r2, [r7, #24]
  25668. 800b38a: 4013 ands r3, r2
  25669. 800b38c: 61bb str r3, [r7, #24]
  25670. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  25671. 800b38e: 687b ldr r3, [r7, #4]
  25672. 800b390: 4a20 ldr r2, [pc, #128] @ (800b414 <HAL_GPIO_Init+0x240>)
  25673. 800b392: 4293 cmp r3, r2
  25674. 800b394: d052 beq.n 800b43c <HAL_GPIO_Init+0x268>
  25675. 800b396: 687b ldr r3, [r7, #4]
  25676. 800b398: 4a1f ldr r2, [pc, #124] @ (800b418 <HAL_GPIO_Init+0x244>)
  25677. 800b39a: 4293 cmp r3, r2
  25678. 800b39c: d031 beq.n 800b402 <HAL_GPIO_Init+0x22e>
  25679. 800b39e: 687b ldr r3, [r7, #4]
  25680. 800b3a0: 4a1e ldr r2, [pc, #120] @ (800b41c <HAL_GPIO_Init+0x248>)
  25681. 800b3a2: 4293 cmp r3, r2
  25682. 800b3a4: d02b beq.n 800b3fe <HAL_GPIO_Init+0x22a>
  25683. 800b3a6: 687b ldr r3, [r7, #4]
  25684. 800b3a8: 4a1d ldr r2, [pc, #116] @ (800b420 <HAL_GPIO_Init+0x24c>)
  25685. 800b3aa: 4293 cmp r3, r2
  25686. 800b3ac: d025 beq.n 800b3fa <HAL_GPIO_Init+0x226>
  25687. 800b3ae: 687b ldr r3, [r7, #4]
  25688. 800b3b0: 4a1c ldr r2, [pc, #112] @ (800b424 <HAL_GPIO_Init+0x250>)
  25689. 800b3b2: 4293 cmp r3, r2
  25690. 800b3b4: d01f beq.n 800b3f6 <HAL_GPIO_Init+0x222>
  25691. 800b3b6: 687b ldr r3, [r7, #4]
  25692. 800b3b8: 4a1b ldr r2, [pc, #108] @ (800b428 <HAL_GPIO_Init+0x254>)
  25693. 800b3ba: 4293 cmp r3, r2
  25694. 800b3bc: d019 beq.n 800b3f2 <HAL_GPIO_Init+0x21e>
  25695. 800b3be: 687b ldr r3, [r7, #4]
  25696. 800b3c0: 4a1a ldr r2, [pc, #104] @ (800b42c <HAL_GPIO_Init+0x258>)
  25697. 800b3c2: 4293 cmp r3, r2
  25698. 800b3c4: d013 beq.n 800b3ee <HAL_GPIO_Init+0x21a>
  25699. 800b3c6: 687b ldr r3, [r7, #4]
  25700. 800b3c8: 4a19 ldr r2, [pc, #100] @ (800b430 <HAL_GPIO_Init+0x25c>)
  25701. 800b3ca: 4293 cmp r3, r2
  25702. 800b3cc: d00d beq.n 800b3ea <HAL_GPIO_Init+0x216>
  25703. 800b3ce: 687b ldr r3, [r7, #4]
  25704. 800b3d0: 4a18 ldr r2, [pc, #96] @ (800b434 <HAL_GPIO_Init+0x260>)
  25705. 800b3d2: 4293 cmp r3, r2
  25706. 800b3d4: d007 beq.n 800b3e6 <HAL_GPIO_Init+0x212>
  25707. 800b3d6: 687b ldr r3, [r7, #4]
  25708. 800b3d8: 4a17 ldr r2, [pc, #92] @ (800b438 <HAL_GPIO_Init+0x264>)
  25709. 800b3da: 4293 cmp r3, r2
  25710. 800b3dc: d101 bne.n 800b3e2 <HAL_GPIO_Init+0x20e>
  25711. 800b3de: 2309 movs r3, #9
  25712. 800b3e0: e02d b.n 800b43e <HAL_GPIO_Init+0x26a>
  25713. 800b3e2: 230a movs r3, #10
  25714. 800b3e4: e02b b.n 800b43e <HAL_GPIO_Init+0x26a>
  25715. 800b3e6: 2308 movs r3, #8
  25716. 800b3e8: e029 b.n 800b43e <HAL_GPIO_Init+0x26a>
  25717. 800b3ea: 2307 movs r3, #7
  25718. 800b3ec: e027 b.n 800b43e <HAL_GPIO_Init+0x26a>
  25719. 800b3ee: 2306 movs r3, #6
  25720. 800b3f0: e025 b.n 800b43e <HAL_GPIO_Init+0x26a>
  25721. 800b3f2: 2305 movs r3, #5
  25722. 800b3f4: e023 b.n 800b43e <HAL_GPIO_Init+0x26a>
  25723. 800b3f6: 2304 movs r3, #4
  25724. 800b3f8: e021 b.n 800b43e <HAL_GPIO_Init+0x26a>
  25725. 800b3fa: 2303 movs r3, #3
  25726. 800b3fc: e01f b.n 800b43e <HAL_GPIO_Init+0x26a>
  25727. 800b3fe: 2302 movs r3, #2
  25728. 800b400: e01d b.n 800b43e <HAL_GPIO_Init+0x26a>
  25729. 800b402: 2301 movs r3, #1
  25730. 800b404: e01b b.n 800b43e <HAL_GPIO_Init+0x26a>
  25731. 800b406: bf00 nop
  25732. 800b408: 58000080 .word 0x58000080
  25733. 800b40c: 58024400 .word 0x58024400
  25734. 800b410: 58000400 .word 0x58000400
  25735. 800b414: 58020000 .word 0x58020000
  25736. 800b418: 58020400 .word 0x58020400
  25737. 800b41c: 58020800 .word 0x58020800
  25738. 800b420: 58020c00 .word 0x58020c00
  25739. 800b424: 58021000 .word 0x58021000
  25740. 800b428: 58021400 .word 0x58021400
  25741. 800b42c: 58021800 .word 0x58021800
  25742. 800b430: 58021c00 .word 0x58021c00
  25743. 800b434: 58022000 .word 0x58022000
  25744. 800b438: 58022400 .word 0x58022400
  25745. 800b43c: 2300 movs r3, #0
  25746. 800b43e: 69fa ldr r2, [r7, #28]
  25747. 800b440: f002 0203 and.w r2, r2, #3
  25748. 800b444: 0092 lsls r2, r2, #2
  25749. 800b446: 4093 lsls r3, r2
  25750. 800b448: 69ba ldr r2, [r7, #24]
  25751. 800b44a: 4313 orrs r3, r2
  25752. 800b44c: 61bb str r3, [r7, #24]
  25753. SYSCFG->EXTICR[position >> 2U] = temp;
  25754. 800b44e: 4938 ldr r1, [pc, #224] @ (800b530 <HAL_GPIO_Init+0x35c>)
  25755. 800b450: 69fb ldr r3, [r7, #28]
  25756. 800b452: 089b lsrs r3, r3, #2
  25757. 800b454: 3302 adds r3, #2
  25758. 800b456: 69ba ldr r2, [r7, #24]
  25759. 800b458: f841 2023 str.w r2, [r1, r3, lsl #2]
  25760. /* Clear Rising Falling edge configuration */
  25761. temp = EXTI->RTSR1;
  25762. 800b45c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25763. 800b460: 681b ldr r3, [r3, #0]
  25764. 800b462: 61bb str r3, [r7, #24]
  25765. temp &= ~(iocurrent);
  25766. 800b464: 693b ldr r3, [r7, #16]
  25767. 800b466: 43db mvns r3, r3
  25768. 800b468: 69ba ldr r2, [r7, #24]
  25769. 800b46a: 4013 ands r3, r2
  25770. 800b46c: 61bb str r3, [r7, #24]
  25771. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  25772. 800b46e: 683b ldr r3, [r7, #0]
  25773. 800b470: 685b ldr r3, [r3, #4]
  25774. 800b472: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  25775. 800b476: 2b00 cmp r3, #0
  25776. 800b478: d003 beq.n 800b482 <HAL_GPIO_Init+0x2ae>
  25777. {
  25778. temp |= iocurrent;
  25779. 800b47a: 69ba ldr r2, [r7, #24]
  25780. 800b47c: 693b ldr r3, [r7, #16]
  25781. 800b47e: 4313 orrs r3, r2
  25782. 800b480: 61bb str r3, [r7, #24]
  25783. }
  25784. EXTI->RTSR1 = temp;
  25785. 800b482: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25786. 800b486: 69bb ldr r3, [r7, #24]
  25787. 800b488: 6013 str r3, [r2, #0]
  25788. temp = EXTI->FTSR1;
  25789. 800b48a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25790. 800b48e: 685b ldr r3, [r3, #4]
  25791. 800b490: 61bb str r3, [r7, #24]
  25792. temp &= ~(iocurrent);
  25793. 800b492: 693b ldr r3, [r7, #16]
  25794. 800b494: 43db mvns r3, r3
  25795. 800b496: 69ba ldr r2, [r7, #24]
  25796. 800b498: 4013 ands r3, r2
  25797. 800b49a: 61bb str r3, [r7, #24]
  25798. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  25799. 800b49c: 683b ldr r3, [r7, #0]
  25800. 800b49e: 685b ldr r3, [r3, #4]
  25801. 800b4a0: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  25802. 800b4a4: 2b00 cmp r3, #0
  25803. 800b4a6: d003 beq.n 800b4b0 <HAL_GPIO_Init+0x2dc>
  25804. {
  25805. temp |= iocurrent;
  25806. 800b4a8: 69ba ldr r2, [r7, #24]
  25807. 800b4aa: 693b ldr r3, [r7, #16]
  25808. 800b4ac: 4313 orrs r3, r2
  25809. 800b4ae: 61bb str r3, [r7, #24]
  25810. }
  25811. EXTI->FTSR1 = temp;
  25812. 800b4b0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25813. 800b4b4: 69bb ldr r3, [r7, #24]
  25814. 800b4b6: 6053 str r3, [r2, #4]
  25815. temp = EXTI_CurrentCPU->EMR1;
  25816. 800b4b8: 697b ldr r3, [r7, #20]
  25817. 800b4ba: 685b ldr r3, [r3, #4]
  25818. 800b4bc: 61bb str r3, [r7, #24]
  25819. temp &= ~(iocurrent);
  25820. 800b4be: 693b ldr r3, [r7, #16]
  25821. 800b4c0: 43db mvns r3, r3
  25822. 800b4c2: 69ba ldr r2, [r7, #24]
  25823. 800b4c4: 4013 ands r3, r2
  25824. 800b4c6: 61bb str r3, [r7, #24]
  25825. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  25826. 800b4c8: 683b ldr r3, [r7, #0]
  25827. 800b4ca: 685b ldr r3, [r3, #4]
  25828. 800b4cc: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25829. 800b4d0: 2b00 cmp r3, #0
  25830. 800b4d2: d003 beq.n 800b4dc <HAL_GPIO_Init+0x308>
  25831. {
  25832. temp |= iocurrent;
  25833. 800b4d4: 69ba ldr r2, [r7, #24]
  25834. 800b4d6: 693b ldr r3, [r7, #16]
  25835. 800b4d8: 4313 orrs r3, r2
  25836. 800b4da: 61bb str r3, [r7, #24]
  25837. }
  25838. EXTI_CurrentCPU->EMR1 = temp;
  25839. 800b4dc: 697b ldr r3, [r7, #20]
  25840. 800b4de: 69ba ldr r2, [r7, #24]
  25841. 800b4e0: 605a str r2, [r3, #4]
  25842. /* Clear EXTI line configuration */
  25843. temp = EXTI_CurrentCPU->IMR1;
  25844. 800b4e2: 697b ldr r3, [r7, #20]
  25845. 800b4e4: 681b ldr r3, [r3, #0]
  25846. 800b4e6: 61bb str r3, [r7, #24]
  25847. temp &= ~(iocurrent);
  25848. 800b4e8: 693b ldr r3, [r7, #16]
  25849. 800b4ea: 43db mvns r3, r3
  25850. 800b4ec: 69ba ldr r2, [r7, #24]
  25851. 800b4ee: 4013 ands r3, r2
  25852. 800b4f0: 61bb str r3, [r7, #24]
  25853. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  25854. 800b4f2: 683b ldr r3, [r7, #0]
  25855. 800b4f4: 685b ldr r3, [r3, #4]
  25856. 800b4f6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25857. 800b4fa: 2b00 cmp r3, #0
  25858. 800b4fc: d003 beq.n 800b506 <HAL_GPIO_Init+0x332>
  25859. {
  25860. temp |= iocurrent;
  25861. 800b4fe: 69ba ldr r2, [r7, #24]
  25862. 800b500: 693b ldr r3, [r7, #16]
  25863. 800b502: 4313 orrs r3, r2
  25864. 800b504: 61bb str r3, [r7, #24]
  25865. }
  25866. EXTI_CurrentCPU->IMR1 = temp;
  25867. 800b506: 697b ldr r3, [r7, #20]
  25868. 800b508: 69ba ldr r2, [r7, #24]
  25869. 800b50a: 601a str r2, [r3, #0]
  25870. }
  25871. }
  25872. position++;
  25873. 800b50c: 69fb ldr r3, [r7, #28]
  25874. 800b50e: 3301 adds r3, #1
  25875. 800b510: 61fb str r3, [r7, #28]
  25876. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25877. 800b512: 683b ldr r3, [r7, #0]
  25878. 800b514: 681a ldr r2, [r3, #0]
  25879. 800b516: 69fb ldr r3, [r7, #28]
  25880. 800b518: fa22 f303 lsr.w r3, r2, r3
  25881. 800b51c: 2b00 cmp r3, #0
  25882. 800b51e: f47f ae63 bne.w 800b1e8 <HAL_GPIO_Init+0x14>
  25883. }
  25884. }
  25885. 800b522: bf00 nop
  25886. 800b524: bf00 nop
  25887. 800b526: 3724 adds r7, #36 @ 0x24
  25888. 800b528: 46bd mov sp, r7
  25889. 800b52a: f85d 7b04 ldr.w r7, [sp], #4
  25890. 800b52e: 4770 bx lr
  25891. 800b530: 58000400 .word 0x58000400
  25892. 0800b534 <HAL_GPIO_ReadPin>:
  25893. * @param GPIO_Pin: specifies the port bit to read.
  25894. * This parameter can be GPIO_PIN_x where x can be (0..15).
  25895. * @retval The input port pin value.
  25896. */
  25897. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25898. {
  25899. 800b534: b480 push {r7}
  25900. 800b536: b085 sub sp, #20
  25901. 800b538: af00 add r7, sp, #0
  25902. 800b53a: 6078 str r0, [r7, #4]
  25903. 800b53c: 460b mov r3, r1
  25904. 800b53e: 807b strh r3, [r7, #2]
  25905. GPIO_PinState bitstatus;
  25906. /* Check the parameters */
  25907. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25908. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  25909. 800b540: 687b ldr r3, [r7, #4]
  25910. 800b542: 691a ldr r2, [r3, #16]
  25911. 800b544: 887b ldrh r3, [r7, #2]
  25912. 800b546: 4013 ands r3, r2
  25913. 800b548: 2b00 cmp r3, #0
  25914. 800b54a: d002 beq.n 800b552 <HAL_GPIO_ReadPin+0x1e>
  25915. {
  25916. bitstatus = GPIO_PIN_SET;
  25917. 800b54c: 2301 movs r3, #1
  25918. 800b54e: 73fb strb r3, [r7, #15]
  25919. 800b550: e001 b.n 800b556 <HAL_GPIO_ReadPin+0x22>
  25920. }
  25921. else
  25922. {
  25923. bitstatus = GPIO_PIN_RESET;
  25924. 800b552: 2300 movs r3, #0
  25925. 800b554: 73fb strb r3, [r7, #15]
  25926. }
  25927. return bitstatus;
  25928. 800b556: 7bfb ldrb r3, [r7, #15]
  25929. }
  25930. 800b558: 4618 mov r0, r3
  25931. 800b55a: 3714 adds r7, #20
  25932. 800b55c: 46bd mov sp, r7
  25933. 800b55e: f85d 7b04 ldr.w r7, [sp], #4
  25934. 800b562: 4770 bx lr
  25935. 0800b564 <HAL_GPIO_WritePin>:
  25936. * @arg GPIO_PIN_RESET: to clear the port pin
  25937. * @arg GPIO_PIN_SET: to set the port pin
  25938. * @retval None
  25939. */
  25940. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  25941. {
  25942. 800b564: b480 push {r7}
  25943. 800b566: b083 sub sp, #12
  25944. 800b568: af00 add r7, sp, #0
  25945. 800b56a: 6078 str r0, [r7, #4]
  25946. 800b56c: 460b mov r3, r1
  25947. 800b56e: 807b strh r3, [r7, #2]
  25948. 800b570: 4613 mov r3, r2
  25949. 800b572: 707b strb r3, [r7, #1]
  25950. /* Check the parameters */
  25951. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25952. assert_param(IS_GPIO_PIN_ACTION(PinState));
  25953. if (PinState != GPIO_PIN_RESET)
  25954. 800b574: 787b ldrb r3, [r7, #1]
  25955. 800b576: 2b00 cmp r3, #0
  25956. 800b578: d003 beq.n 800b582 <HAL_GPIO_WritePin+0x1e>
  25957. {
  25958. GPIOx->BSRR = GPIO_Pin;
  25959. 800b57a: 887a ldrh r2, [r7, #2]
  25960. 800b57c: 687b ldr r3, [r7, #4]
  25961. 800b57e: 619a str r2, [r3, #24]
  25962. }
  25963. else
  25964. {
  25965. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25966. }
  25967. }
  25968. 800b580: e003 b.n 800b58a <HAL_GPIO_WritePin+0x26>
  25969. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25970. 800b582: 887b ldrh r3, [r7, #2]
  25971. 800b584: 041a lsls r2, r3, #16
  25972. 800b586: 687b ldr r3, [r7, #4]
  25973. 800b588: 619a str r2, [r3, #24]
  25974. }
  25975. 800b58a: bf00 nop
  25976. 800b58c: 370c adds r7, #12
  25977. 800b58e: 46bd mov sp, r7
  25978. 800b590: f85d 7b04 ldr.w r7, [sp], #4
  25979. 800b594: 4770 bx lr
  25980. 0800b596 <HAL_GPIO_TogglePin>:
  25981. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  25982. * @param GPIO_Pin: Specifies the pins to be toggled.
  25983. * @retval None
  25984. */
  25985. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25986. {
  25987. 800b596: b480 push {r7}
  25988. 800b598: b085 sub sp, #20
  25989. 800b59a: af00 add r7, sp, #0
  25990. 800b59c: 6078 str r0, [r7, #4]
  25991. 800b59e: 460b mov r3, r1
  25992. 800b5a0: 807b strh r3, [r7, #2]
  25993. /* Check the parameters */
  25994. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25995. /* get current Output Data Register value */
  25996. odr = GPIOx->ODR;
  25997. 800b5a2: 687b ldr r3, [r7, #4]
  25998. 800b5a4: 695b ldr r3, [r3, #20]
  25999. 800b5a6: 60fb str r3, [r7, #12]
  26000. /* Set selected pins that were at low level, and reset ones that were high */
  26001. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  26002. 800b5a8: 887a ldrh r2, [r7, #2]
  26003. 800b5aa: 68fb ldr r3, [r7, #12]
  26004. 800b5ac: 4013 ands r3, r2
  26005. 800b5ae: 041a lsls r2, r3, #16
  26006. 800b5b0: 68fb ldr r3, [r7, #12]
  26007. 800b5b2: 43d9 mvns r1, r3
  26008. 800b5b4: 887b ldrh r3, [r7, #2]
  26009. 800b5b6: 400b ands r3, r1
  26010. 800b5b8: 431a orrs r2, r3
  26011. 800b5ba: 687b ldr r3, [r7, #4]
  26012. 800b5bc: 619a str r2, [r3, #24]
  26013. }
  26014. 800b5be: bf00 nop
  26015. 800b5c0: 3714 adds r7, #20
  26016. 800b5c2: 46bd mov sp, r7
  26017. 800b5c4: f85d 7b04 ldr.w r7, [sp], #4
  26018. 800b5c8: 4770 bx lr
  26019. 0800b5ca <HAL_GPIO_EXTI_IRQHandler>:
  26020. * @brief Handle EXTI interrupt request.
  26021. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  26022. * @retval None
  26023. */
  26024. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  26025. {
  26026. 800b5ca: b580 push {r7, lr}
  26027. 800b5cc: b082 sub sp, #8
  26028. 800b5ce: af00 add r7, sp, #0
  26029. 800b5d0: 4603 mov r3, r0
  26030. 800b5d2: 80fb strh r3, [r7, #6]
  26031. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  26032. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26033. }
  26034. #else
  26035. /* EXTI line interrupt detected */
  26036. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  26037. 800b5d4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26038. 800b5d8: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  26039. 800b5dc: 88fb ldrh r3, [r7, #6]
  26040. 800b5de: 4013 ands r3, r2
  26041. 800b5e0: 2b00 cmp r3, #0
  26042. 800b5e2: d008 beq.n 800b5f6 <HAL_GPIO_EXTI_IRQHandler+0x2c>
  26043. {
  26044. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  26045. 800b5e4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26046. 800b5e8: 88fb ldrh r3, [r7, #6]
  26047. 800b5ea: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  26048. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  26049. 800b5ee: 88fb ldrh r3, [r7, #6]
  26050. 800b5f0: 4618 mov r0, r3
  26051. 800b5f2: f7f5 f80f bl 8000614 <HAL_GPIO_EXTI_Callback>
  26052. }
  26053. #endif
  26054. }
  26055. 800b5f6: bf00 nop
  26056. 800b5f8: 3708 adds r7, #8
  26057. 800b5fa: 46bd mov sp, r7
  26058. 800b5fc: bd80 pop {r7, pc}
  26059. 0800b5fe <HAL_IWDG_Init>:
  26060. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26061. * the configuration information for the specified IWDG module.
  26062. * @retval HAL status
  26063. */
  26064. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  26065. {
  26066. 800b5fe: b580 push {r7, lr}
  26067. 800b600: b084 sub sp, #16
  26068. 800b602: af00 add r7, sp, #0
  26069. 800b604: 6078 str r0, [r7, #4]
  26070. uint32_t tickstart;
  26071. /* Check the IWDG handle allocation */
  26072. if (hiwdg == NULL)
  26073. 800b606: 687b ldr r3, [r7, #4]
  26074. 800b608: 2b00 cmp r3, #0
  26075. 800b60a: d101 bne.n 800b610 <HAL_IWDG_Init+0x12>
  26076. {
  26077. return HAL_ERROR;
  26078. 800b60c: 2301 movs r3, #1
  26079. 800b60e: e041 b.n 800b694 <HAL_IWDG_Init+0x96>
  26080. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  26081. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  26082. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  26083. /* Enable IWDG. LSI is turned on automatically */
  26084. __HAL_IWDG_START(hiwdg);
  26085. 800b610: 687b ldr r3, [r7, #4]
  26086. 800b612: 681b ldr r3, [r3, #0]
  26087. 800b614: f64c 42cc movw r2, #52428 @ 0xcccc
  26088. 800b618: 601a str r2, [r3, #0]
  26089. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  26090. 0x5555 in KR */
  26091. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  26092. 800b61a: 687b ldr r3, [r7, #4]
  26093. 800b61c: 681b ldr r3, [r3, #0]
  26094. 800b61e: f245 5255 movw r2, #21845 @ 0x5555
  26095. 800b622: 601a str r2, [r3, #0]
  26096. /* Write to IWDG registers the Prescaler & Reload values to work with */
  26097. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  26098. 800b624: 687b ldr r3, [r7, #4]
  26099. 800b626: 681b ldr r3, [r3, #0]
  26100. 800b628: 687a ldr r2, [r7, #4]
  26101. 800b62a: 6852 ldr r2, [r2, #4]
  26102. 800b62c: 605a str r2, [r3, #4]
  26103. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  26104. 800b62e: 687b ldr r3, [r7, #4]
  26105. 800b630: 681b ldr r3, [r3, #0]
  26106. 800b632: 687a ldr r2, [r7, #4]
  26107. 800b634: 6892 ldr r2, [r2, #8]
  26108. 800b636: 609a str r2, [r3, #8]
  26109. /* Check pending flag, if previous update not done, return timeout */
  26110. tickstart = HAL_GetTick();
  26111. 800b638: f7fa fbf4 bl 8005e24 <HAL_GetTick>
  26112. 800b63c: 60f8 str r0, [r7, #12]
  26113. /* Wait for register to be updated */
  26114. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26115. 800b63e: e00f b.n 800b660 <HAL_IWDG_Init+0x62>
  26116. {
  26117. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  26118. 800b640: f7fa fbf0 bl 8005e24 <HAL_GetTick>
  26119. 800b644: 4602 mov r2, r0
  26120. 800b646: 68fb ldr r3, [r7, #12]
  26121. 800b648: 1ad3 subs r3, r2, r3
  26122. 800b64a: 2b31 cmp r3, #49 @ 0x31
  26123. 800b64c: d908 bls.n 800b660 <HAL_IWDG_Init+0x62>
  26124. {
  26125. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26126. 800b64e: 687b ldr r3, [r7, #4]
  26127. 800b650: 681b ldr r3, [r3, #0]
  26128. 800b652: 68db ldr r3, [r3, #12]
  26129. 800b654: f003 0307 and.w r3, r3, #7
  26130. 800b658: 2b00 cmp r3, #0
  26131. 800b65a: d001 beq.n 800b660 <HAL_IWDG_Init+0x62>
  26132. {
  26133. return HAL_TIMEOUT;
  26134. 800b65c: 2303 movs r3, #3
  26135. 800b65e: e019 b.n 800b694 <HAL_IWDG_Init+0x96>
  26136. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  26137. 800b660: 687b ldr r3, [r7, #4]
  26138. 800b662: 681b ldr r3, [r3, #0]
  26139. 800b664: 68db ldr r3, [r3, #12]
  26140. 800b666: f003 0307 and.w r3, r3, #7
  26141. 800b66a: 2b00 cmp r3, #0
  26142. 800b66c: d1e8 bne.n 800b640 <HAL_IWDG_Init+0x42>
  26143. }
  26144. }
  26145. /* If window parameter is different than current value, modify window
  26146. register */
  26147. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  26148. 800b66e: 687b ldr r3, [r7, #4]
  26149. 800b670: 681b ldr r3, [r3, #0]
  26150. 800b672: 691a ldr r2, [r3, #16]
  26151. 800b674: 687b ldr r3, [r7, #4]
  26152. 800b676: 68db ldr r3, [r3, #12]
  26153. 800b678: 429a cmp r2, r3
  26154. 800b67a: d005 beq.n 800b688 <HAL_IWDG_Init+0x8a>
  26155. {
  26156. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  26157. even if window feature is disabled, Watchdog will be reloaded by writing
  26158. windows register */
  26159. hiwdg->Instance->WINR = hiwdg->Init.Window;
  26160. 800b67c: 687b ldr r3, [r7, #4]
  26161. 800b67e: 681b ldr r3, [r3, #0]
  26162. 800b680: 687a ldr r2, [r7, #4]
  26163. 800b682: 68d2 ldr r2, [r2, #12]
  26164. 800b684: 611a str r2, [r3, #16]
  26165. 800b686: e004 b.n 800b692 <HAL_IWDG_Init+0x94>
  26166. }
  26167. else
  26168. {
  26169. /* Reload IWDG counter with value defined in the reload register */
  26170. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26171. 800b688: 687b ldr r3, [r7, #4]
  26172. 800b68a: 681b ldr r3, [r3, #0]
  26173. 800b68c: f64a 22aa movw r2, #43690 @ 0xaaaa
  26174. 800b690: 601a str r2, [r3, #0]
  26175. }
  26176. /* Return function status */
  26177. return HAL_OK;
  26178. 800b692: 2300 movs r3, #0
  26179. }
  26180. 800b694: 4618 mov r0, r3
  26181. 800b696: 3710 adds r7, #16
  26182. 800b698: 46bd mov sp, r7
  26183. 800b69a: bd80 pop {r7, pc}
  26184. 0800b69c <HAL_IWDG_Refresh>:
  26185. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  26186. * the configuration information for the specified IWDG module.
  26187. * @retval HAL status
  26188. */
  26189. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  26190. {
  26191. 800b69c: b480 push {r7}
  26192. 800b69e: b083 sub sp, #12
  26193. 800b6a0: af00 add r7, sp, #0
  26194. 800b6a2: 6078 str r0, [r7, #4]
  26195. /* Reload IWDG counter with value defined in the reload register */
  26196. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  26197. 800b6a4: 687b ldr r3, [r7, #4]
  26198. 800b6a6: 681b ldr r3, [r3, #0]
  26199. 800b6a8: f64a 22aa movw r2, #43690 @ 0xaaaa
  26200. 800b6ac: 601a str r2, [r3, #0]
  26201. /* Return function status */
  26202. return HAL_OK;
  26203. 800b6ae: 2300 movs r3, #0
  26204. }
  26205. 800b6b0: 4618 mov r0, r3
  26206. 800b6b2: 370c adds r7, #12
  26207. 800b6b4: 46bd mov sp, r7
  26208. 800b6b6: f85d 7b04 ldr.w r7, [sp], #4
  26209. 800b6ba: 4770 bx lr
  26210. 0800b6bc <HAL_PWR_ConfigPVD>:
  26211. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26212. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  26213. * @retval None.
  26214. */
  26215. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  26216. {
  26217. 800b6bc: b480 push {r7}
  26218. 800b6be: b083 sub sp, #12
  26219. 800b6c0: af00 add r7, sp, #0
  26220. 800b6c2: 6078 str r0, [r7, #4]
  26221. /* Check the PVD configuration parameter */
  26222. if (sConfigPVD == NULL)
  26223. 800b6c4: 687b ldr r3, [r7, #4]
  26224. 800b6c6: 2b00 cmp r3, #0
  26225. 800b6c8: d069 beq.n 800b79e <HAL_PWR_ConfigPVD+0xe2>
  26226. /* Check the parameters */
  26227. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  26228. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  26229. /* Set PLS[7:5] bits according to PVDLevel value */
  26230. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  26231. 800b6ca: 4b38 ldr r3, [pc, #224] @ (800b7ac <HAL_PWR_ConfigPVD+0xf0>)
  26232. 800b6cc: 681b ldr r3, [r3, #0]
  26233. 800b6ce: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  26234. 800b6d2: 687b ldr r3, [r7, #4]
  26235. 800b6d4: 681b ldr r3, [r3, #0]
  26236. 800b6d6: 4935 ldr r1, [pc, #212] @ (800b7ac <HAL_PWR_ConfigPVD+0xf0>)
  26237. 800b6d8: 4313 orrs r3, r2
  26238. 800b6da: 600b str r3, [r1, #0]
  26239. /* Clear previous config */
  26240. #if !defined (DUAL_CORE)
  26241. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  26242. 800b6dc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26243. 800b6e0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26244. 800b6e4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26245. 800b6e8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26246. 800b6ec: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26247. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  26248. 800b6f0: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26249. 800b6f4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26250. 800b6f8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26251. 800b6fc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26252. 800b700: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26253. #endif /* !defined (DUAL_CORE) */
  26254. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  26255. 800b704: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26256. 800b708: 681b ldr r3, [r3, #0]
  26257. 800b70a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26258. 800b70e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26259. 800b712: 6013 str r3, [r2, #0]
  26260. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  26261. 800b714: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26262. 800b718: 685b ldr r3, [r3, #4]
  26263. 800b71a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26264. 800b71e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26265. 800b722: 6053 str r3, [r2, #4]
  26266. #if !defined (DUAL_CORE)
  26267. /* Interrupt mode configuration */
  26268. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  26269. 800b724: 687b ldr r3, [r7, #4]
  26270. 800b726: 685b ldr r3, [r3, #4]
  26271. 800b728: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26272. 800b72c: 2b00 cmp r3, #0
  26273. 800b72e: d009 beq.n 800b744 <HAL_PWR_ConfigPVD+0x88>
  26274. {
  26275. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  26276. 800b730: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26277. 800b734: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26278. 800b738: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26279. 800b73c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26280. 800b740: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26281. }
  26282. /* Event mode configuration */
  26283. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  26284. 800b744: 687b ldr r3, [r7, #4]
  26285. 800b746: 685b ldr r3, [r3, #4]
  26286. 800b748: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26287. 800b74c: 2b00 cmp r3, #0
  26288. 800b74e: d009 beq.n 800b764 <HAL_PWR_ConfigPVD+0xa8>
  26289. {
  26290. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  26291. 800b750: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26292. 800b754: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26293. 800b758: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26294. 800b75c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26295. 800b760: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26296. }
  26297. #endif /* !defined (DUAL_CORE) */
  26298. /* Rising edge configuration */
  26299. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  26300. 800b764: 687b ldr r3, [r7, #4]
  26301. 800b766: 685b ldr r3, [r3, #4]
  26302. 800b768: f003 0301 and.w r3, r3, #1
  26303. 800b76c: 2b00 cmp r3, #0
  26304. 800b76e: d007 beq.n 800b780 <HAL_PWR_ConfigPVD+0xc4>
  26305. {
  26306. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  26307. 800b770: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26308. 800b774: 681b ldr r3, [r3, #0]
  26309. 800b776: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26310. 800b77a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26311. 800b77e: 6013 str r3, [r2, #0]
  26312. }
  26313. /* Falling edge configuration */
  26314. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  26315. 800b780: 687b ldr r3, [r7, #4]
  26316. 800b782: 685b ldr r3, [r3, #4]
  26317. 800b784: f003 0302 and.w r3, r3, #2
  26318. 800b788: 2b00 cmp r3, #0
  26319. 800b78a: d009 beq.n 800b7a0 <HAL_PWR_ConfigPVD+0xe4>
  26320. {
  26321. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  26322. 800b78c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26323. 800b790: 685b ldr r3, [r3, #4]
  26324. 800b792: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26325. 800b796: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26326. 800b79a: 6053 str r3, [r2, #4]
  26327. 800b79c: e000 b.n 800b7a0 <HAL_PWR_ConfigPVD+0xe4>
  26328. return;
  26329. 800b79e: bf00 nop
  26330. }
  26331. }
  26332. 800b7a0: 370c adds r7, #12
  26333. 800b7a2: 46bd mov sp, r7
  26334. 800b7a4: f85d 7b04 ldr.w r7, [sp], #4
  26335. 800b7a8: 4770 bx lr
  26336. 800b7aa: bf00 nop
  26337. 800b7ac: 58024800 .word 0x58024800
  26338. 0800b7b0 <HAL_PWR_EnablePVD>:
  26339. /**
  26340. * @brief Enable the Programmable Voltage Detector (PVD).
  26341. * @retval None.
  26342. */
  26343. void HAL_PWR_EnablePVD (void)
  26344. {
  26345. 800b7b0: b480 push {r7}
  26346. 800b7b2: af00 add r7, sp, #0
  26347. /* Enable the power voltage detector */
  26348. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  26349. 800b7b4: 4b05 ldr r3, [pc, #20] @ (800b7cc <HAL_PWR_EnablePVD+0x1c>)
  26350. 800b7b6: 681b ldr r3, [r3, #0]
  26351. 800b7b8: 4a04 ldr r2, [pc, #16] @ (800b7cc <HAL_PWR_EnablePVD+0x1c>)
  26352. 800b7ba: f043 0310 orr.w r3, r3, #16
  26353. 800b7be: 6013 str r3, [r2, #0]
  26354. }
  26355. 800b7c0: bf00 nop
  26356. 800b7c2: 46bd mov sp, r7
  26357. 800b7c4: f85d 7b04 ldr.w r7, [sp], #4
  26358. 800b7c8: 4770 bx lr
  26359. 800b7ca: bf00 nop
  26360. 800b7cc: 58024800 .word 0x58024800
  26361. 0800b7d0 <HAL_PWREx_ConfigSupply>:
  26362. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  26363. * regulator.
  26364. * @retval HAL status.
  26365. */
  26366. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  26367. {
  26368. 800b7d0: b580 push {r7, lr}
  26369. 800b7d2: b084 sub sp, #16
  26370. 800b7d4: af00 add r7, sp, #0
  26371. 800b7d6: 6078 str r0, [r7, #4]
  26372. /* Check the parameters */
  26373. assert_param (IS_PWR_SUPPLY (SupplySource));
  26374. /* Check if supply source was configured */
  26375. #if defined (PWR_FLAG_SCUEN)
  26376. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  26377. 800b7d8: 4b19 ldr r3, [pc, #100] @ (800b840 <HAL_PWREx_ConfigSupply+0x70>)
  26378. 800b7da: 68db ldr r3, [r3, #12]
  26379. 800b7dc: f003 0304 and.w r3, r3, #4
  26380. 800b7e0: 2b04 cmp r3, #4
  26381. 800b7e2: d00a beq.n 800b7fa <HAL_PWREx_ConfigSupply+0x2a>
  26382. #else
  26383. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  26384. #endif /* defined (PWR_FLAG_SCUEN) */
  26385. {
  26386. /* Check supply configuration */
  26387. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  26388. 800b7e4: 4b16 ldr r3, [pc, #88] @ (800b840 <HAL_PWREx_ConfigSupply+0x70>)
  26389. 800b7e6: 68db ldr r3, [r3, #12]
  26390. 800b7e8: f003 0307 and.w r3, r3, #7
  26391. 800b7ec: 687a ldr r2, [r7, #4]
  26392. 800b7ee: 429a cmp r2, r3
  26393. 800b7f0: d001 beq.n 800b7f6 <HAL_PWREx_ConfigSupply+0x26>
  26394. {
  26395. /* Supply configuration update locked, can't apply a new supply config */
  26396. return HAL_ERROR;
  26397. 800b7f2: 2301 movs r3, #1
  26398. 800b7f4: e01f b.n 800b836 <HAL_PWREx_ConfigSupply+0x66>
  26399. else
  26400. {
  26401. /* Supply configuration update locked, but new supply configuration
  26402. matches with old supply configuration : nothing to do
  26403. */
  26404. return HAL_OK;
  26405. 800b7f6: 2300 movs r3, #0
  26406. 800b7f8: e01d b.n 800b836 <HAL_PWREx_ConfigSupply+0x66>
  26407. }
  26408. }
  26409. /* Set the power supply configuration */
  26410. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  26411. 800b7fa: 4b11 ldr r3, [pc, #68] @ (800b840 <HAL_PWREx_ConfigSupply+0x70>)
  26412. 800b7fc: 68db ldr r3, [r3, #12]
  26413. 800b7fe: f023 0207 bic.w r2, r3, #7
  26414. 800b802: 490f ldr r1, [pc, #60] @ (800b840 <HAL_PWREx_ConfigSupply+0x70>)
  26415. 800b804: 687b ldr r3, [r7, #4]
  26416. 800b806: 4313 orrs r3, r2
  26417. 800b808: 60cb str r3, [r1, #12]
  26418. /* Get tick */
  26419. tickstart = HAL_GetTick ();
  26420. 800b80a: f7fa fb0b bl 8005e24 <HAL_GetTick>
  26421. 800b80e: 60f8 str r0, [r7, #12]
  26422. /* Wait till voltage level flag is set */
  26423. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26424. 800b810: e009 b.n 800b826 <HAL_PWREx_ConfigSupply+0x56>
  26425. {
  26426. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  26427. 800b812: f7fa fb07 bl 8005e24 <HAL_GetTick>
  26428. 800b816: 4602 mov r2, r0
  26429. 800b818: 68fb ldr r3, [r7, #12]
  26430. 800b81a: 1ad3 subs r3, r2, r3
  26431. 800b81c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  26432. 800b820: d901 bls.n 800b826 <HAL_PWREx_ConfigSupply+0x56>
  26433. {
  26434. return HAL_ERROR;
  26435. 800b822: 2301 movs r3, #1
  26436. 800b824: e007 b.n 800b836 <HAL_PWREx_ConfigSupply+0x66>
  26437. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26438. 800b826: 4b06 ldr r3, [pc, #24] @ (800b840 <HAL_PWREx_ConfigSupply+0x70>)
  26439. 800b828: 685b ldr r3, [r3, #4]
  26440. 800b82a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26441. 800b82e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26442. 800b832: d1ee bne.n 800b812 <HAL_PWREx_ConfigSupply+0x42>
  26443. }
  26444. }
  26445. }
  26446. #endif /* defined (SMPS) */
  26447. return HAL_OK;
  26448. 800b834: 2300 movs r3, #0
  26449. }
  26450. 800b836: 4618 mov r0, r3
  26451. 800b838: 3710 adds r7, #16
  26452. 800b83a: 46bd mov sp, r7
  26453. 800b83c: bd80 pop {r7, pc}
  26454. 800b83e: bf00 nop
  26455. 800b840: 58024800 .word 0x58024800
  26456. 0800b844 <HAL_PWREx_ConfigAVD>:
  26457. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26458. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  26459. * @retval None.
  26460. */
  26461. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  26462. {
  26463. 800b844: b480 push {r7}
  26464. 800b846: b083 sub sp, #12
  26465. 800b848: af00 add r7, sp, #0
  26466. 800b84a: 6078 str r0, [r7, #4]
  26467. /* Check the parameters */
  26468. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  26469. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  26470. /* Set the ALS[18:17] bits according to AVDLevel value */
  26471. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  26472. 800b84c: 4b37 ldr r3, [pc, #220] @ (800b92c <HAL_PWREx_ConfigAVD+0xe8>)
  26473. 800b84e: 681b ldr r3, [r3, #0]
  26474. 800b850: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  26475. 800b854: 687b ldr r3, [r7, #4]
  26476. 800b856: 681b ldr r3, [r3, #0]
  26477. 800b858: 4934 ldr r1, [pc, #208] @ (800b92c <HAL_PWREx_ConfigAVD+0xe8>)
  26478. 800b85a: 4313 orrs r3, r2
  26479. 800b85c: 600b str r3, [r1, #0]
  26480. /* Clear any previous config */
  26481. #if !defined (DUAL_CORE)
  26482. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  26483. 800b85e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26484. 800b862: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26485. 800b866: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26486. 800b86a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26487. 800b86e: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26488. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  26489. 800b872: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26490. 800b876: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26491. 800b87a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26492. 800b87e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26493. 800b882: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26494. #endif /* !defined (DUAL_CORE) */
  26495. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  26496. 800b886: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26497. 800b88a: 681b ldr r3, [r3, #0]
  26498. 800b88c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26499. 800b890: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26500. 800b894: 6013 str r3, [r2, #0]
  26501. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  26502. 800b896: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26503. 800b89a: 685b ldr r3, [r3, #4]
  26504. 800b89c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26505. 800b8a0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26506. 800b8a4: 6053 str r3, [r2, #4]
  26507. #if !defined (DUAL_CORE)
  26508. /* Configure the interrupt mode */
  26509. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  26510. 800b8a6: 687b ldr r3, [r7, #4]
  26511. 800b8a8: 685b ldr r3, [r3, #4]
  26512. 800b8aa: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26513. 800b8ae: 2b00 cmp r3, #0
  26514. 800b8b0: d009 beq.n 800b8c6 <HAL_PWREx_ConfigAVD+0x82>
  26515. {
  26516. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  26517. 800b8b2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26518. 800b8b6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26519. 800b8ba: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26520. 800b8be: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26521. 800b8c2: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26522. }
  26523. /* Configure the event mode */
  26524. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  26525. 800b8c6: 687b ldr r3, [r7, #4]
  26526. 800b8c8: 685b ldr r3, [r3, #4]
  26527. 800b8ca: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26528. 800b8ce: 2b00 cmp r3, #0
  26529. 800b8d0: d009 beq.n 800b8e6 <HAL_PWREx_ConfigAVD+0xa2>
  26530. {
  26531. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  26532. 800b8d2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26533. 800b8d6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26534. 800b8da: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26535. 800b8de: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26536. 800b8e2: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26537. }
  26538. #endif /* !defined (DUAL_CORE) */
  26539. /* Rising edge configuration */
  26540. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  26541. 800b8e6: 687b ldr r3, [r7, #4]
  26542. 800b8e8: 685b ldr r3, [r3, #4]
  26543. 800b8ea: f003 0301 and.w r3, r3, #1
  26544. 800b8ee: 2b00 cmp r3, #0
  26545. 800b8f0: d007 beq.n 800b902 <HAL_PWREx_ConfigAVD+0xbe>
  26546. {
  26547. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  26548. 800b8f2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26549. 800b8f6: 681b ldr r3, [r3, #0]
  26550. 800b8f8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26551. 800b8fc: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26552. 800b900: 6013 str r3, [r2, #0]
  26553. }
  26554. /* Falling edge configuration */
  26555. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  26556. 800b902: 687b ldr r3, [r7, #4]
  26557. 800b904: 685b ldr r3, [r3, #4]
  26558. 800b906: f003 0302 and.w r3, r3, #2
  26559. 800b90a: 2b00 cmp r3, #0
  26560. 800b90c: d007 beq.n 800b91e <HAL_PWREx_ConfigAVD+0xda>
  26561. {
  26562. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  26563. 800b90e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26564. 800b912: 685b ldr r3, [r3, #4]
  26565. 800b914: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26566. 800b918: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26567. 800b91c: 6053 str r3, [r2, #4]
  26568. }
  26569. }
  26570. 800b91e: bf00 nop
  26571. 800b920: 370c adds r7, #12
  26572. 800b922: 46bd mov sp, r7
  26573. 800b924: f85d 7b04 ldr.w r7, [sp], #4
  26574. 800b928: 4770 bx lr
  26575. 800b92a: bf00 nop
  26576. 800b92c: 58024800 .word 0x58024800
  26577. 0800b930 <HAL_PWREx_EnableAVD>:
  26578. /**
  26579. * @brief Enable the Analog Voltage Detector (AVD).
  26580. * @retval None.
  26581. */
  26582. void HAL_PWREx_EnableAVD (void)
  26583. {
  26584. 800b930: b480 push {r7}
  26585. 800b932: af00 add r7, sp, #0
  26586. /* Enable the Analog Voltage Detector */
  26587. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  26588. 800b934: 4b05 ldr r3, [pc, #20] @ (800b94c <HAL_PWREx_EnableAVD+0x1c>)
  26589. 800b936: 681b ldr r3, [r3, #0]
  26590. 800b938: 4a04 ldr r2, [pc, #16] @ (800b94c <HAL_PWREx_EnableAVD+0x1c>)
  26591. 800b93a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26592. 800b93e: 6013 str r3, [r2, #0]
  26593. }
  26594. 800b940: bf00 nop
  26595. 800b942: 46bd mov sp, r7
  26596. 800b944: f85d 7b04 ldr.w r7, [sp], #4
  26597. 800b948: 4770 bx lr
  26598. 800b94a: bf00 nop
  26599. 800b94c: 58024800 .word 0x58024800
  26600. 0800b950 <HAL_RCC_OscConfig>:
  26601. * supported by this function. User should request a transition to HSE Off
  26602. * first and then HSE On or HSE Bypass.
  26603. * @retval HAL status
  26604. */
  26605. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  26606. {
  26607. 800b950: b580 push {r7, lr}
  26608. 800b952: b08c sub sp, #48 @ 0x30
  26609. 800b954: af00 add r7, sp, #0
  26610. 800b956: 6078 str r0, [r7, #4]
  26611. uint32_t tickstart;
  26612. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  26613. /* Check Null pointer */
  26614. if (RCC_OscInitStruct == NULL)
  26615. 800b958: 687b ldr r3, [r7, #4]
  26616. 800b95a: 2b00 cmp r3, #0
  26617. 800b95c: d102 bne.n 800b964 <HAL_RCC_OscConfig+0x14>
  26618. {
  26619. return HAL_ERROR;
  26620. 800b95e: 2301 movs r3, #1
  26621. 800b960: f000 bc48 b.w 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26622. }
  26623. /* Check the parameters */
  26624. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  26625. /*------------------------------- HSE Configuration ------------------------*/
  26626. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  26627. 800b964: 687b ldr r3, [r7, #4]
  26628. 800b966: 681b ldr r3, [r3, #0]
  26629. 800b968: f003 0301 and.w r3, r3, #1
  26630. 800b96c: 2b00 cmp r3, #0
  26631. 800b96e: f000 8088 beq.w 800ba82 <HAL_RCC_OscConfig+0x132>
  26632. {
  26633. /* Check the parameters */
  26634. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  26635. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26636. 800b972: 4b99 ldr r3, [pc, #612] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26637. 800b974: 691b ldr r3, [r3, #16]
  26638. 800b976: f003 0338 and.w r3, r3, #56 @ 0x38
  26639. 800b97a: 62fb str r3, [r7, #44] @ 0x2c
  26640. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26641. 800b97c: 4b96 ldr r3, [pc, #600] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26642. 800b97e: 6a9b ldr r3, [r3, #40] @ 0x28
  26643. 800b980: 62bb str r3, [r7, #40] @ 0x28
  26644. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  26645. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  26646. 800b982: 6afb ldr r3, [r7, #44] @ 0x2c
  26647. 800b984: 2b10 cmp r3, #16
  26648. 800b986: d007 beq.n 800b998 <HAL_RCC_OscConfig+0x48>
  26649. 800b988: 6afb ldr r3, [r7, #44] @ 0x2c
  26650. 800b98a: 2b18 cmp r3, #24
  26651. 800b98c: d111 bne.n 800b9b2 <HAL_RCC_OscConfig+0x62>
  26652. 800b98e: 6abb ldr r3, [r7, #40] @ 0x28
  26653. 800b990: f003 0303 and.w r3, r3, #3
  26654. 800b994: 2b02 cmp r3, #2
  26655. 800b996: d10c bne.n 800b9b2 <HAL_RCC_OscConfig+0x62>
  26656. {
  26657. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26658. 800b998: 4b8f ldr r3, [pc, #572] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26659. 800b99a: 681b ldr r3, [r3, #0]
  26660. 800b99c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26661. 800b9a0: 2b00 cmp r3, #0
  26662. 800b9a2: d06d beq.n 800ba80 <HAL_RCC_OscConfig+0x130>
  26663. 800b9a4: 687b ldr r3, [r7, #4]
  26664. 800b9a6: 685b ldr r3, [r3, #4]
  26665. 800b9a8: 2b00 cmp r3, #0
  26666. 800b9aa: d169 bne.n 800ba80 <HAL_RCC_OscConfig+0x130>
  26667. {
  26668. return HAL_ERROR;
  26669. 800b9ac: 2301 movs r3, #1
  26670. 800b9ae: f000 bc21 b.w 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26671. }
  26672. }
  26673. else
  26674. {
  26675. /* Set the new HSE configuration ---------------------------------------*/
  26676. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  26677. 800b9b2: 687b ldr r3, [r7, #4]
  26678. 800b9b4: 685b ldr r3, [r3, #4]
  26679. 800b9b6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26680. 800b9ba: d106 bne.n 800b9ca <HAL_RCC_OscConfig+0x7a>
  26681. 800b9bc: 4b86 ldr r3, [pc, #536] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26682. 800b9be: 681b ldr r3, [r3, #0]
  26683. 800b9c0: 4a85 ldr r2, [pc, #532] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26684. 800b9c2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26685. 800b9c6: 6013 str r3, [r2, #0]
  26686. 800b9c8: e02e b.n 800ba28 <HAL_RCC_OscConfig+0xd8>
  26687. 800b9ca: 687b ldr r3, [r7, #4]
  26688. 800b9cc: 685b ldr r3, [r3, #4]
  26689. 800b9ce: 2b00 cmp r3, #0
  26690. 800b9d0: d10c bne.n 800b9ec <HAL_RCC_OscConfig+0x9c>
  26691. 800b9d2: 4b81 ldr r3, [pc, #516] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26692. 800b9d4: 681b ldr r3, [r3, #0]
  26693. 800b9d6: 4a80 ldr r2, [pc, #512] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26694. 800b9d8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26695. 800b9dc: 6013 str r3, [r2, #0]
  26696. 800b9de: 4b7e ldr r3, [pc, #504] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26697. 800b9e0: 681b ldr r3, [r3, #0]
  26698. 800b9e2: 4a7d ldr r2, [pc, #500] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26699. 800b9e4: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26700. 800b9e8: 6013 str r3, [r2, #0]
  26701. 800b9ea: e01d b.n 800ba28 <HAL_RCC_OscConfig+0xd8>
  26702. 800b9ec: 687b ldr r3, [r7, #4]
  26703. 800b9ee: 685b ldr r3, [r3, #4]
  26704. 800b9f0: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26705. 800b9f4: d10c bne.n 800ba10 <HAL_RCC_OscConfig+0xc0>
  26706. 800b9f6: 4b78 ldr r3, [pc, #480] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26707. 800b9f8: 681b ldr r3, [r3, #0]
  26708. 800b9fa: 4a77 ldr r2, [pc, #476] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26709. 800b9fc: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26710. 800ba00: 6013 str r3, [r2, #0]
  26711. 800ba02: 4b75 ldr r3, [pc, #468] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26712. 800ba04: 681b ldr r3, [r3, #0]
  26713. 800ba06: 4a74 ldr r2, [pc, #464] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26714. 800ba08: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26715. 800ba0c: 6013 str r3, [r2, #0]
  26716. 800ba0e: e00b b.n 800ba28 <HAL_RCC_OscConfig+0xd8>
  26717. 800ba10: 4b71 ldr r3, [pc, #452] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26718. 800ba12: 681b ldr r3, [r3, #0]
  26719. 800ba14: 4a70 ldr r2, [pc, #448] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26720. 800ba16: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26721. 800ba1a: 6013 str r3, [r2, #0]
  26722. 800ba1c: 4b6e ldr r3, [pc, #440] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26723. 800ba1e: 681b ldr r3, [r3, #0]
  26724. 800ba20: 4a6d ldr r2, [pc, #436] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26725. 800ba22: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26726. 800ba26: 6013 str r3, [r2, #0]
  26727. /* Check the HSE State */
  26728. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  26729. 800ba28: 687b ldr r3, [r7, #4]
  26730. 800ba2a: 685b ldr r3, [r3, #4]
  26731. 800ba2c: 2b00 cmp r3, #0
  26732. 800ba2e: d013 beq.n 800ba58 <HAL_RCC_OscConfig+0x108>
  26733. {
  26734. /* Get Start Tick*/
  26735. tickstart = HAL_GetTick();
  26736. 800ba30: f7fa f9f8 bl 8005e24 <HAL_GetTick>
  26737. 800ba34: 6278 str r0, [r7, #36] @ 0x24
  26738. /* Wait till HSE is ready */
  26739. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26740. 800ba36: e008 b.n 800ba4a <HAL_RCC_OscConfig+0xfa>
  26741. {
  26742. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26743. 800ba38: f7fa f9f4 bl 8005e24 <HAL_GetTick>
  26744. 800ba3c: 4602 mov r2, r0
  26745. 800ba3e: 6a7b ldr r3, [r7, #36] @ 0x24
  26746. 800ba40: 1ad3 subs r3, r2, r3
  26747. 800ba42: 2b64 cmp r3, #100 @ 0x64
  26748. 800ba44: d901 bls.n 800ba4a <HAL_RCC_OscConfig+0xfa>
  26749. {
  26750. return HAL_TIMEOUT;
  26751. 800ba46: 2303 movs r3, #3
  26752. 800ba48: e3d4 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26753. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26754. 800ba4a: 4b63 ldr r3, [pc, #396] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26755. 800ba4c: 681b ldr r3, [r3, #0]
  26756. 800ba4e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26757. 800ba52: 2b00 cmp r3, #0
  26758. 800ba54: d0f0 beq.n 800ba38 <HAL_RCC_OscConfig+0xe8>
  26759. 800ba56: e014 b.n 800ba82 <HAL_RCC_OscConfig+0x132>
  26760. }
  26761. }
  26762. else
  26763. {
  26764. /* Get Start Tick*/
  26765. tickstart = HAL_GetTick();
  26766. 800ba58: f7fa f9e4 bl 8005e24 <HAL_GetTick>
  26767. 800ba5c: 6278 str r0, [r7, #36] @ 0x24
  26768. /* Wait till HSE is disabled */
  26769. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26770. 800ba5e: e008 b.n 800ba72 <HAL_RCC_OscConfig+0x122>
  26771. {
  26772. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26773. 800ba60: f7fa f9e0 bl 8005e24 <HAL_GetTick>
  26774. 800ba64: 4602 mov r2, r0
  26775. 800ba66: 6a7b ldr r3, [r7, #36] @ 0x24
  26776. 800ba68: 1ad3 subs r3, r2, r3
  26777. 800ba6a: 2b64 cmp r3, #100 @ 0x64
  26778. 800ba6c: d901 bls.n 800ba72 <HAL_RCC_OscConfig+0x122>
  26779. {
  26780. return HAL_TIMEOUT;
  26781. 800ba6e: 2303 movs r3, #3
  26782. 800ba70: e3c0 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26783. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26784. 800ba72: 4b59 ldr r3, [pc, #356] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26785. 800ba74: 681b ldr r3, [r3, #0]
  26786. 800ba76: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26787. 800ba7a: 2b00 cmp r3, #0
  26788. 800ba7c: d1f0 bne.n 800ba60 <HAL_RCC_OscConfig+0x110>
  26789. 800ba7e: e000 b.n 800ba82 <HAL_RCC_OscConfig+0x132>
  26790. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26791. 800ba80: bf00 nop
  26792. }
  26793. }
  26794. }
  26795. }
  26796. /*----------------------------- HSI Configuration --------------------------*/
  26797. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  26798. 800ba82: 687b ldr r3, [r7, #4]
  26799. 800ba84: 681b ldr r3, [r3, #0]
  26800. 800ba86: f003 0302 and.w r3, r3, #2
  26801. 800ba8a: 2b00 cmp r3, #0
  26802. 800ba8c: f000 80ca beq.w 800bc24 <HAL_RCC_OscConfig+0x2d4>
  26803. /* Check the parameters */
  26804. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  26805. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  26806. /* When the HSI is used as system clock it will not be disabled */
  26807. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26808. 800ba90: 4b51 ldr r3, [pc, #324] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26809. 800ba92: 691b ldr r3, [r3, #16]
  26810. 800ba94: f003 0338 and.w r3, r3, #56 @ 0x38
  26811. 800ba98: 623b str r3, [r7, #32]
  26812. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26813. 800ba9a: 4b4f ldr r3, [pc, #316] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26814. 800ba9c: 6a9b ldr r3, [r3, #40] @ 0x28
  26815. 800ba9e: 61fb str r3, [r7, #28]
  26816. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  26817. 800baa0: 6a3b ldr r3, [r7, #32]
  26818. 800baa2: 2b00 cmp r3, #0
  26819. 800baa4: d007 beq.n 800bab6 <HAL_RCC_OscConfig+0x166>
  26820. 800baa6: 6a3b ldr r3, [r7, #32]
  26821. 800baa8: 2b18 cmp r3, #24
  26822. 800baaa: d156 bne.n 800bb5a <HAL_RCC_OscConfig+0x20a>
  26823. 800baac: 69fb ldr r3, [r7, #28]
  26824. 800baae: f003 0303 and.w r3, r3, #3
  26825. 800bab2: 2b00 cmp r3, #0
  26826. 800bab4: d151 bne.n 800bb5a <HAL_RCC_OscConfig+0x20a>
  26827. {
  26828. /* When HSI is used as system clock it will not be disabled */
  26829. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26830. 800bab6: 4b48 ldr r3, [pc, #288] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26831. 800bab8: 681b ldr r3, [r3, #0]
  26832. 800baba: f003 0304 and.w r3, r3, #4
  26833. 800babe: 2b00 cmp r3, #0
  26834. 800bac0: d005 beq.n 800bace <HAL_RCC_OscConfig+0x17e>
  26835. 800bac2: 687b ldr r3, [r7, #4]
  26836. 800bac4: 68db ldr r3, [r3, #12]
  26837. 800bac6: 2b00 cmp r3, #0
  26838. 800bac8: d101 bne.n 800bace <HAL_RCC_OscConfig+0x17e>
  26839. {
  26840. return HAL_ERROR;
  26841. 800baca: 2301 movs r3, #1
  26842. 800bacc: e392 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26843. }
  26844. /* Otherwise, only HSI division and calibration are allowed */
  26845. else
  26846. {
  26847. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  26848. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26849. 800bace: 4b42 ldr r3, [pc, #264] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26850. 800bad0: 681b ldr r3, [r3, #0]
  26851. 800bad2: f023 0219 bic.w r2, r3, #25
  26852. 800bad6: 687b ldr r3, [r7, #4]
  26853. 800bad8: 68db ldr r3, [r3, #12]
  26854. 800bada: 493f ldr r1, [pc, #252] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26855. 800badc: 4313 orrs r3, r2
  26856. 800bade: 600b str r3, [r1, #0]
  26857. /* Get Start Tick*/
  26858. tickstart = HAL_GetTick();
  26859. 800bae0: f7fa f9a0 bl 8005e24 <HAL_GetTick>
  26860. 800bae4: 6278 str r0, [r7, #36] @ 0x24
  26861. /* Wait till HSI is ready */
  26862. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26863. 800bae6: e008 b.n 800bafa <HAL_RCC_OscConfig+0x1aa>
  26864. {
  26865. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26866. 800bae8: f7fa f99c bl 8005e24 <HAL_GetTick>
  26867. 800baec: 4602 mov r2, r0
  26868. 800baee: 6a7b ldr r3, [r7, #36] @ 0x24
  26869. 800baf0: 1ad3 subs r3, r2, r3
  26870. 800baf2: 2b02 cmp r3, #2
  26871. 800baf4: d901 bls.n 800bafa <HAL_RCC_OscConfig+0x1aa>
  26872. {
  26873. return HAL_TIMEOUT;
  26874. 800baf6: 2303 movs r3, #3
  26875. 800baf8: e37c b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26876. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26877. 800bafa: 4b37 ldr r3, [pc, #220] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26878. 800bafc: 681b ldr r3, [r3, #0]
  26879. 800bafe: f003 0304 and.w r3, r3, #4
  26880. 800bb02: 2b00 cmp r3, #0
  26881. 800bb04: d0f0 beq.n 800bae8 <HAL_RCC_OscConfig+0x198>
  26882. }
  26883. }
  26884. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26885. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26886. 800bb06: f7fa f999 bl 8005e3c <HAL_GetREVID>
  26887. 800bb0a: 4603 mov r3, r0
  26888. 800bb0c: f241 0203 movw r2, #4099 @ 0x1003
  26889. 800bb10: 4293 cmp r3, r2
  26890. 800bb12: d817 bhi.n 800bb44 <HAL_RCC_OscConfig+0x1f4>
  26891. 800bb14: 687b ldr r3, [r7, #4]
  26892. 800bb16: 691b ldr r3, [r3, #16]
  26893. 800bb18: 2b40 cmp r3, #64 @ 0x40
  26894. 800bb1a: d108 bne.n 800bb2e <HAL_RCC_OscConfig+0x1de>
  26895. 800bb1c: 4b2e ldr r3, [pc, #184] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26896. 800bb1e: 685b ldr r3, [r3, #4]
  26897. 800bb20: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26898. 800bb24: 4a2c ldr r2, [pc, #176] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26899. 800bb26: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26900. 800bb2a: 6053 str r3, [r2, #4]
  26901. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26902. 800bb2c: e07a b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  26903. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26904. 800bb2e: 4b2a ldr r3, [pc, #168] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26905. 800bb30: 685b ldr r3, [r3, #4]
  26906. 800bb32: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26907. 800bb36: 687b ldr r3, [r7, #4]
  26908. 800bb38: 691b ldr r3, [r3, #16]
  26909. 800bb3a: 031b lsls r3, r3, #12
  26910. 800bb3c: 4926 ldr r1, [pc, #152] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26911. 800bb3e: 4313 orrs r3, r2
  26912. 800bb40: 604b str r3, [r1, #4]
  26913. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26914. 800bb42: e06f b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  26915. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26916. 800bb44: 4b24 ldr r3, [pc, #144] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26917. 800bb46: 685b ldr r3, [r3, #4]
  26918. 800bb48: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26919. 800bb4c: 687b ldr r3, [r7, #4]
  26920. 800bb4e: 691b ldr r3, [r3, #16]
  26921. 800bb50: 061b lsls r3, r3, #24
  26922. 800bb52: 4921 ldr r1, [pc, #132] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26923. 800bb54: 4313 orrs r3, r2
  26924. 800bb56: 604b str r3, [r1, #4]
  26925. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26926. 800bb58: e064 b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  26927. }
  26928. else
  26929. {
  26930. /* Check the HSI State */
  26931. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  26932. 800bb5a: 687b ldr r3, [r7, #4]
  26933. 800bb5c: 68db ldr r3, [r3, #12]
  26934. 800bb5e: 2b00 cmp r3, #0
  26935. 800bb60: d047 beq.n 800bbf2 <HAL_RCC_OscConfig+0x2a2>
  26936. {
  26937. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  26938. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26939. 800bb62: 4b1d ldr r3, [pc, #116] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26940. 800bb64: 681b ldr r3, [r3, #0]
  26941. 800bb66: f023 0219 bic.w r2, r3, #25
  26942. 800bb6a: 687b ldr r3, [r7, #4]
  26943. 800bb6c: 68db ldr r3, [r3, #12]
  26944. 800bb6e: 491a ldr r1, [pc, #104] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26945. 800bb70: 4313 orrs r3, r2
  26946. 800bb72: 600b str r3, [r1, #0]
  26947. /* Get Start Tick*/
  26948. tickstart = HAL_GetTick();
  26949. 800bb74: f7fa f956 bl 8005e24 <HAL_GetTick>
  26950. 800bb78: 6278 str r0, [r7, #36] @ 0x24
  26951. /* Wait till HSI is ready */
  26952. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26953. 800bb7a: e008 b.n 800bb8e <HAL_RCC_OscConfig+0x23e>
  26954. {
  26955. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26956. 800bb7c: f7fa f952 bl 8005e24 <HAL_GetTick>
  26957. 800bb80: 4602 mov r2, r0
  26958. 800bb82: 6a7b ldr r3, [r7, #36] @ 0x24
  26959. 800bb84: 1ad3 subs r3, r2, r3
  26960. 800bb86: 2b02 cmp r3, #2
  26961. 800bb88: d901 bls.n 800bb8e <HAL_RCC_OscConfig+0x23e>
  26962. {
  26963. return HAL_TIMEOUT;
  26964. 800bb8a: 2303 movs r3, #3
  26965. 800bb8c: e332 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  26966. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26967. 800bb8e: 4b12 ldr r3, [pc, #72] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26968. 800bb90: 681b ldr r3, [r3, #0]
  26969. 800bb92: f003 0304 and.w r3, r3, #4
  26970. 800bb96: 2b00 cmp r3, #0
  26971. 800bb98: d0f0 beq.n 800bb7c <HAL_RCC_OscConfig+0x22c>
  26972. }
  26973. }
  26974. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26975. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26976. 800bb9a: f7fa f94f bl 8005e3c <HAL_GetREVID>
  26977. 800bb9e: 4603 mov r3, r0
  26978. 800bba0: f241 0203 movw r2, #4099 @ 0x1003
  26979. 800bba4: 4293 cmp r3, r2
  26980. 800bba6: d819 bhi.n 800bbdc <HAL_RCC_OscConfig+0x28c>
  26981. 800bba8: 687b ldr r3, [r7, #4]
  26982. 800bbaa: 691b ldr r3, [r3, #16]
  26983. 800bbac: 2b40 cmp r3, #64 @ 0x40
  26984. 800bbae: d108 bne.n 800bbc2 <HAL_RCC_OscConfig+0x272>
  26985. 800bbb0: 4b09 ldr r3, [pc, #36] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26986. 800bbb2: 685b ldr r3, [r3, #4]
  26987. 800bbb4: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26988. 800bbb8: 4a07 ldr r2, [pc, #28] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26989. 800bbba: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26990. 800bbbe: 6053 str r3, [r2, #4]
  26991. 800bbc0: e030 b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  26992. 800bbc2: 4b05 ldr r3, [pc, #20] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26993. 800bbc4: 685b ldr r3, [r3, #4]
  26994. 800bbc6: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26995. 800bbca: 687b ldr r3, [r7, #4]
  26996. 800bbcc: 691b ldr r3, [r3, #16]
  26997. 800bbce: 031b lsls r3, r3, #12
  26998. 800bbd0: 4901 ldr r1, [pc, #4] @ (800bbd8 <HAL_RCC_OscConfig+0x288>)
  26999. 800bbd2: 4313 orrs r3, r2
  27000. 800bbd4: 604b str r3, [r1, #4]
  27001. 800bbd6: e025 b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  27002. 800bbd8: 58024400 .word 0x58024400
  27003. 800bbdc: 4b9a ldr r3, [pc, #616] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27004. 800bbde: 685b ldr r3, [r3, #4]
  27005. 800bbe0: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  27006. 800bbe4: 687b ldr r3, [r7, #4]
  27007. 800bbe6: 691b ldr r3, [r3, #16]
  27008. 800bbe8: 061b lsls r3, r3, #24
  27009. 800bbea: 4997 ldr r1, [pc, #604] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27010. 800bbec: 4313 orrs r3, r2
  27011. 800bbee: 604b str r3, [r1, #4]
  27012. 800bbf0: e018 b.n 800bc24 <HAL_RCC_OscConfig+0x2d4>
  27013. }
  27014. else
  27015. {
  27016. /* Disable the Internal High Speed oscillator (HSI). */
  27017. __HAL_RCC_HSI_DISABLE();
  27018. 800bbf2: 4b95 ldr r3, [pc, #596] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27019. 800bbf4: 681b ldr r3, [r3, #0]
  27020. 800bbf6: 4a94 ldr r2, [pc, #592] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27021. 800bbf8: f023 0301 bic.w r3, r3, #1
  27022. 800bbfc: 6013 str r3, [r2, #0]
  27023. /* Get Start Tick*/
  27024. tickstart = HAL_GetTick();
  27025. 800bbfe: f7fa f911 bl 8005e24 <HAL_GetTick>
  27026. 800bc02: 6278 str r0, [r7, #36] @ 0x24
  27027. /* Wait till HSI is disabled */
  27028. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27029. 800bc04: e008 b.n 800bc18 <HAL_RCC_OscConfig+0x2c8>
  27030. {
  27031. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  27032. 800bc06: f7fa f90d bl 8005e24 <HAL_GetTick>
  27033. 800bc0a: 4602 mov r2, r0
  27034. 800bc0c: 6a7b ldr r3, [r7, #36] @ 0x24
  27035. 800bc0e: 1ad3 subs r3, r2, r3
  27036. 800bc10: 2b02 cmp r3, #2
  27037. 800bc12: d901 bls.n 800bc18 <HAL_RCC_OscConfig+0x2c8>
  27038. {
  27039. return HAL_TIMEOUT;
  27040. 800bc14: 2303 movs r3, #3
  27041. 800bc16: e2ed b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27042. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  27043. 800bc18: 4b8b ldr r3, [pc, #556] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27044. 800bc1a: 681b ldr r3, [r3, #0]
  27045. 800bc1c: f003 0304 and.w r3, r3, #4
  27046. 800bc20: 2b00 cmp r3, #0
  27047. 800bc22: d1f0 bne.n 800bc06 <HAL_RCC_OscConfig+0x2b6>
  27048. }
  27049. }
  27050. }
  27051. }
  27052. /*----------------------------- CSI Configuration --------------------------*/
  27053. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  27054. 800bc24: 687b ldr r3, [r7, #4]
  27055. 800bc26: 681b ldr r3, [r3, #0]
  27056. 800bc28: f003 0310 and.w r3, r3, #16
  27057. 800bc2c: 2b00 cmp r3, #0
  27058. 800bc2e: f000 80a9 beq.w 800bd84 <HAL_RCC_OscConfig+0x434>
  27059. /* Check the parameters */
  27060. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  27061. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  27062. /* When the CSI is used as system clock it will not disabled */
  27063. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  27064. 800bc32: 4b85 ldr r3, [pc, #532] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27065. 800bc34: 691b ldr r3, [r3, #16]
  27066. 800bc36: f003 0338 and.w r3, r3, #56 @ 0x38
  27067. 800bc3a: 61bb str r3, [r7, #24]
  27068. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  27069. 800bc3c: 4b82 ldr r3, [pc, #520] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27070. 800bc3e: 6a9b ldr r3, [r3, #40] @ 0x28
  27071. 800bc40: 617b str r3, [r7, #20]
  27072. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  27073. 800bc42: 69bb ldr r3, [r7, #24]
  27074. 800bc44: 2b08 cmp r3, #8
  27075. 800bc46: d007 beq.n 800bc58 <HAL_RCC_OscConfig+0x308>
  27076. 800bc48: 69bb ldr r3, [r7, #24]
  27077. 800bc4a: 2b18 cmp r3, #24
  27078. 800bc4c: d13a bne.n 800bcc4 <HAL_RCC_OscConfig+0x374>
  27079. 800bc4e: 697b ldr r3, [r7, #20]
  27080. 800bc50: f003 0303 and.w r3, r3, #3
  27081. 800bc54: 2b01 cmp r3, #1
  27082. 800bc56: d135 bne.n 800bcc4 <HAL_RCC_OscConfig+0x374>
  27083. {
  27084. /* When CSI is used as system clock it will not disabled */
  27085. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27086. 800bc58: 4b7b ldr r3, [pc, #492] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27087. 800bc5a: 681b ldr r3, [r3, #0]
  27088. 800bc5c: f403 7380 and.w r3, r3, #256 @ 0x100
  27089. 800bc60: 2b00 cmp r3, #0
  27090. 800bc62: d005 beq.n 800bc70 <HAL_RCC_OscConfig+0x320>
  27091. 800bc64: 687b ldr r3, [r7, #4]
  27092. 800bc66: 69db ldr r3, [r3, #28]
  27093. 800bc68: 2b80 cmp r3, #128 @ 0x80
  27094. 800bc6a: d001 beq.n 800bc70 <HAL_RCC_OscConfig+0x320>
  27095. {
  27096. return HAL_ERROR;
  27097. 800bc6c: 2301 movs r3, #1
  27098. 800bc6e: e2c1 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27099. }
  27100. /* Otherwise, just the calibration is allowed */
  27101. else
  27102. {
  27103. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27104. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27105. 800bc70: f7fa f8e4 bl 8005e3c <HAL_GetREVID>
  27106. 800bc74: 4603 mov r3, r0
  27107. 800bc76: f241 0203 movw r2, #4099 @ 0x1003
  27108. 800bc7a: 4293 cmp r3, r2
  27109. 800bc7c: d817 bhi.n 800bcae <HAL_RCC_OscConfig+0x35e>
  27110. 800bc7e: 687b ldr r3, [r7, #4]
  27111. 800bc80: 6a1b ldr r3, [r3, #32]
  27112. 800bc82: 2b20 cmp r3, #32
  27113. 800bc84: d108 bne.n 800bc98 <HAL_RCC_OscConfig+0x348>
  27114. 800bc86: 4b70 ldr r3, [pc, #448] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27115. 800bc88: 685b ldr r3, [r3, #4]
  27116. 800bc8a: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27117. 800bc8e: 4a6e ldr r2, [pc, #440] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27118. 800bc90: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27119. 800bc94: 6053 str r3, [r2, #4]
  27120. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27121. 800bc96: e075 b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27122. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27123. 800bc98: 4b6b ldr r3, [pc, #428] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27124. 800bc9a: 685b ldr r3, [r3, #4]
  27125. 800bc9c: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27126. 800bca0: 687b ldr r3, [r7, #4]
  27127. 800bca2: 6a1b ldr r3, [r3, #32]
  27128. 800bca4: 069b lsls r3, r3, #26
  27129. 800bca6: 4968 ldr r1, [pc, #416] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27130. 800bca8: 4313 orrs r3, r2
  27131. 800bcaa: 604b str r3, [r1, #4]
  27132. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27133. 800bcac: e06a b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27134. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27135. 800bcae: 4b66 ldr r3, [pc, #408] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27136. 800bcb0: 68db ldr r3, [r3, #12]
  27137. 800bcb2: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27138. 800bcb6: 687b ldr r3, [r7, #4]
  27139. 800bcb8: 6a1b ldr r3, [r3, #32]
  27140. 800bcba: 061b lsls r3, r3, #24
  27141. 800bcbc: 4962 ldr r1, [pc, #392] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27142. 800bcbe: 4313 orrs r3, r2
  27143. 800bcc0: 60cb str r3, [r1, #12]
  27144. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  27145. 800bcc2: e05f b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27146. }
  27147. }
  27148. else
  27149. {
  27150. /* Check the CSI State */
  27151. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  27152. 800bcc4: 687b ldr r3, [r7, #4]
  27153. 800bcc6: 69db ldr r3, [r3, #28]
  27154. 800bcc8: 2b00 cmp r3, #0
  27155. 800bcca: d042 beq.n 800bd52 <HAL_RCC_OscConfig+0x402>
  27156. {
  27157. /* Enable the Internal High Speed oscillator (CSI). */
  27158. __HAL_RCC_CSI_ENABLE();
  27159. 800bccc: 4b5e ldr r3, [pc, #376] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27160. 800bcce: 681b ldr r3, [r3, #0]
  27161. 800bcd0: 4a5d ldr r2, [pc, #372] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27162. 800bcd2: f043 0380 orr.w r3, r3, #128 @ 0x80
  27163. 800bcd6: 6013 str r3, [r2, #0]
  27164. /* Get Start Tick*/
  27165. tickstart = HAL_GetTick();
  27166. 800bcd8: f7fa f8a4 bl 8005e24 <HAL_GetTick>
  27167. 800bcdc: 6278 str r0, [r7, #36] @ 0x24
  27168. /* Wait till CSI is ready */
  27169. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27170. 800bcde: e008 b.n 800bcf2 <HAL_RCC_OscConfig+0x3a2>
  27171. {
  27172. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27173. 800bce0: f7fa f8a0 bl 8005e24 <HAL_GetTick>
  27174. 800bce4: 4602 mov r2, r0
  27175. 800bce6: 6a7b ldr r3, [r7, #36] @ 0x24
  27176. 800bce8: 1ad3 subs r3, r2, r3
  27177. 800bcea: 2b02 cmp r3, #2
  27178. 800bcec: d901 bls.n 800bcf2 <HAL_RCC_OscConfig+0x3a2>
  27179. {
  27180. return HAL_TIMEOUT;
  27181. 800bcee: 2303 movs r3, #3
  27182. 800bcf0: e280 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27183. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27184. 800bcf2: 4b55 ldr r3, [pc, #340] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27185. 800bcf4: 681b ldr r3, [r3, #0]
  27186. 800bcf6: f403 7380 and.w r3, r3, #256 @ 0x100
  27187. 800bcfa: 2b00 cmp r3, #0
  27188. 800bcfc: d0f0 beq.n 800bce0 <HAL_RCC_OscConfig+0x390>
  27189. }
  27190. }
  27191. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  27192. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  27193. 800bcfe: f7fa f89d bl 8005e3c <HAL_GetREVID>
  27194. 800bd02: 4603 mov r3, r0
  27195. 800bd04: f241 0203 movw r2, #4099 @ 0x1003
  27196. 800bd08: 4293 cmp r3, r2
  27197. 800bd0a: d817 bhi.n 800bd3c <HAL_RCC_OscConfig+0x3ec>
  27198. 800bd0c: 687b ldr r3, [r7, #4]
  27199. 800bd0e: 6a1b ldr r3, [r3, #32]
  27200. 800bd10: 2b20 cmp r3, #32
  27201. 800bd12: d108 bne.n 800bd26 <HAL_RCC_OscConfig+0x3d6>
  27202. 800bd14: 4b4c ldr r3, [pc, #304] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27203. 800bd16: 685b ldr r3, [r3, #4]
  27204. 800bd18: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  27205. 800bd1c: 4a4a ldr r2, [pc, #296] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27206. 800bd1e: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  27207. 800bd22: 6053 str r3, [r2, #4]
  27208. 800bd24: e02e b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27209. 800bd26: 4b48 ldr r3, [pc, #288] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27210. 800bd28: 685b ldr r3, [r3, #4]
  27211. 800bd2a: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  27212. 800bd2e: 687b ldr r3, [r7, #4]
  27213. 800bd30: 6a1b ldr r3, [r3, #32]
  27214. 800bd32: 069b lsls r3, r3, #26
  27215. 800bd34: 4944 ldr r1, [pc, #272] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27216. 800bd36: 4313 orrs r3, r2
  27217. 800bd38: 604b str r3, [r1, #4]
  27218. 800bd3a: e023 b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27219. 800bd3c: 4b42 ldr r3, [pc, #264] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27220. 800bd3e: 68db ldr r3, [r3, #12]
  27221. 800bd40: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  27222. 800bd44: 687b ldr r3, [r7, #4]
  27223. 800bd46: 6a1b ldr r3, [r3, #32]
  27224. 800bd48: 061b lsls r3, r3, #24
  27225. 800bd4a: 493f ldr r1, [pc, #252] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27226. 800bd4c: 4313 orrs r3, r2
  27227. 800bd4e: 60cb str r3, [r1, #12]
  27228. 800bd50: e018 b.n 800bd84 <HAL_RCC_OscConfig+0x434>
  27229. }
  27230. else
  27231. {
  27232. /* Disable the Internal High Speed oscillator (CSI). */
  27233. __HAL_RCC_CSI_DISABLE();
  27234. 800bd52: 4b3d ldr r3, [pc, #244] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27235. 800bd54: 681b ldr r3, [r3, #0]
  27236. 800bd56: 4a3c ldr r2, [pc, #240] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27237. 800bd58: f023 0380 bic.w r3, r3, #128 @ 0x80
  27238. 800bd5c: 6013 str r3, [r2, #0]
  27239. /* Get Start Tick*/
  27240. tickstart = HAL_GetTick();
  27241. 800bd5e: f7fa f861 bl 8005e24 <HAL_GetTick>
  27242. 800bd62: 6278 str r0, [r7, #36] @ 0x24
  27243. /* Wait till CSI is disabled */
  27244. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27245. 800bd64: e008 b.n 800bd78 <HAL_RCC_OscConfig+0x428>
  27246. {
  27247. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  27248. 800bd66: f7fa f85d bl 8005e24 <HAL_GetTick>
  27249. 800bd6a: 4602 mov r2, r0
  27250. 800bd6c: 6a7b ldr r3, [r7, #36] @ 0x24
  27251. 800bd6e: 1ad3 subs r3, r2, r3
  27252. 800bd70: 2b02 cmp r3, #2
  27253. 800bd72: d901 bls.n 800bd78 <HAL_RCC_OscConfig+0x428>
  27254. {
  27255. return HAL_TIMEOUT;
  27256. 800bd74: 2303 movs r3, #3
  27257. 800bd76: e23d b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27258. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  27259. 800bd78: 4b33 ldr r3, [pc, #204] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27260. 800bd7a: 681b ldr r3, [r3, #0]
  27261. 800bd7c: f403 7380 and.w r3, r3, #256 @ 0x100
  27262. 800bd80: 2b00 cmp r3, #0
  27263. 800bd82: d1f0 bne.n 800bd66 <HAL_RCC_OscConfig+0x416>
  27264. }
  27265. }
  27266. }
  27267. }
  27268. /*------------------------------ LSI Configuration -------------------------*/
  27269. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  27270. 800bd84: 687b ldr r3, [r7, #4]
  27271. 800bd86: 681b ldr r3, [r3, #0]
  27272. 800bd88: f003 0308 and.w r3, r3, #8
  27273. 800bd8c: 2b00 cmp r3, #0
  27274. 800bd8e: d036 beq.n 800bdfe <HAL_RCC_OscConfig+0x4ae>
  27275. {
  27276. /* Check the parameters */
  27277. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  27278. /* Check the LSI State */
  27279. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  27280. 800bd90: 687b ldr r3, [r7, #4]
  27281. 800bd92: 695b ldr r3, [r3, #20]
  27282. 800bd94: 2b00 cmp r3, #0
  27283. 800bd96: d019 beq.n 800bdcc <HAL_RCC_OscConfig+0x47c>
  27284. {
  27285. /* Enable the Internal Low Speed oscillator (LSI). */
  27286. __HAL_RCC_LSI_ENABLE();
  27287. 800bd98: 4b2b ldr r3, [pc, #172] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27288. 800bd9a: 6f5b ldr r3, [r3, #116] @ 0x74
  27289. 800bd9c: 4a2a ldr r2, [pc, #168] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27290. 800bd9e: f043 0301 orr.w r3, r3, #1
  27291. 800bda2: 6753 str r3, [r2, #116] @ 0x74
  27292. /* Get Start Tick*/
  27293. tickstart = HAL_GetTick();
  27294. 800bda4: f7fa f83e bl 8005e24 <HAL_GetTick>
  27295. 800bda8: 6278 str r0, [r7, #36] @ 0x24
  27296. /* Wait till LSI is ready */
  27297. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27298. 800bdaa: e008 b.n 800bdbe <HAL_RCC_OscConfig+0x46e>
  27299. {
  27300. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27301. 800bdac: f7fa f83a bl 8005e24 <HAL_GetTick>
  27302. 800bdb0: 4602 mov r2, r0
  27303. 800bdb2: 6a7b ldr r3, [r7, #36] @ 0x24
  27304. 800bdb4: 1ad3 subs r3, r2, r3
  27305. 800bdb6: 2b02 cmp r3, #2
  27306. 800bdb8: d901 bls.n 800bdbe <HAL_RCC_OscConfig+0x46e>
  27307. {
  27308. return HAL_TIMEOUT;
  27309. 800bdba: 2303 movs r3, #3
  27310. 800bdbc: e21a b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27311. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  27312. 800bdbe: 4b22 ldr r3, [pc, #136] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27313. 800bdc0: 6f5b ldr r3, [r3, #116] @ 0x74
  27314. 800bdc2: f003 0302 and.w r3, r3, #2
  27315. 800bdc6: 2b00 cmp r3, #0
  27316. 800bdc8: d0f0 beq.n 800bdac <HAL_RCC_OscConfig+0x45c>
  27317. 800bdca: e018 b.n 800bdfe <HAL_RCC_OscConfig+0x4ae>
  27318. }
  27319. }
  27320. else
  27321. {
  27322. /* Disable the Internal Low Speed oscillator (LSI). */
  27323. __HAL_RCC_LSI_DISABLE();
  27324. 800bdcc: 4b1e ldr r3, [pc, #120] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27325. 800bdce: 6f5b ldr r3, [r3, #116] @ 0x74
  27326. 800bdd0: 4a1d ldr r2, [pc, #116] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27327. 800bdd2: f023 0301 bic.w r3, r3, #1
  27328. 800bdd6: 6753 str r3, [r2, #116] @ 0x74
  27329. /* Get Start Tick*/
  27330. tickstart = HAL_GetTick();
  27331. 800bdd8: f7fa f824 bl 8005e24 <HAL_GetTick>
  27332. 800bddc: 6278 str r0, [r7, #36] @ 0x24
  27333. /* Wait till LSI is ready */
  27334. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27335. 800bdde: e008 b.n 800bdf2 <HAL_RCC_OscConfig+0x4a2>
  27336. {
  27337. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  27338. 800bde0: f7fa f820 bl 8005e24 <HAL_GetTick>
  27339. 800bde4: 4602 mov r2, r0
  27340. 800bde6: 6a7b ldr r3, [r7, #36] @ 0x24
  27341. 800bde8: 1ad3 subs r3, r2, r3
  27342. 800bdea: 2b02 cmp r3, #2
  27343. 800bdec: d901 bls.n 800bdf2 <HAL_RCC_OscConfig+0x4a2>
  27344. {
  27345. return HAL_TIMEOUT;
  27346. 800bdee: 2303 movs r3, #3
  27347. 800bdf0: e200 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27348. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  27349. 800bdf2: 4b15 ldr r3, [pc, #84] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27350. 800bdf4: 6f5b ldr r3, [r3, #116] @ 0x74
  27351. 800bdf6: f003 0302 and.w r3, r3, #2
  27352. 800bdfa: 2b00 cmp r3, #0
  27353. 800bdfc: d1f0 bne.n 800bde0 <HAL_RCC_OscConfig+0x490>
  27354. }
  27355. }
  27356. }
  27357. /*------------------------------ HSI48 Configuration -------------------------*/
  27358. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  27359. 800bdfe: 687b ldr r3, [r7, #4]
  27360. 800be00: 681b ldr r3, [r3, #0]
  27361. 800be02: f003 0320 and.w r3, r3, #32
  27362. 800be06: 2b00 cmp r3, #0
  27363. 800be08: d039 beq.n 800be7e <HAL_RCC_OscConfig+0x52e>
  27364. {
  27365. /* Check the parameters */
  27366. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  27367. /* Check the HSI48 State */
  27368. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  27369. 800be0a: 687b ldr r3, [r7, #4]
  27370. 800be0c: 699b ldr r3, [r3, #24]
  27371. 800be0e: 2b00 cmp r3, #0
  27372. 800be10: d01c beq.n 800be4c <HAL_RCC_OscConfig+0x4fc>
  27373. {
  27374. /* Enable the Internal Low Speed oscillator (HSI48). */
  27375. __HAL_RCC_HSI48_ENABLE();
  27376. 800be12: 4b0d ldr r3, [pc, #52] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27377. 800be14: 681b ldr r3, [r3, #0]
  27378. 800be16: 4a0c ldr r2, [pc, #48] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27379. 800be18: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  27380. 800be1c: 6013 str r3, [r2, #0]
  27381. /* Get time-out */
  27382. tickstart = HAL_GetTick();
  27383. 800be1e: f7fa f801 bl 8005e24 <HAL_GetTick>
  27384. 800be22: 6278 str r0, [r7, #36] @ 0x24
  27385. /* Wait till HSI48 is ready */
  27386. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27387. 800be24: e008 b.n 800be38 <HAL_RCC_OscConfig+0x4e8>
  27388. {
  27389. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27390. 800be26: f7f9 fffd bl 8005e24 <HAL_GetTick>
  27391. 800be2a: 4602 mov r2, r0
  27392. 800be2c: 6a7b ldr r3, [r7, #36] @ 0x24
  27393. 800be2e: 1ad3 subs r3, r2, r3
  27394. 800be30: 2b02 cmp r3, #2
  27395. 800be32: d901 bls.n 800be38 <HAL_RCC_OscConfig+0x4e8>
  27396. {
  27397. return HAL_TIMEOUT;
  27398. 800be34: 2303 movs r3, #3
  27399. 800be36: e1dd b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27400. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  27401. 800be38: 4b03 ldr r3, [pc, #12] @ (800be48 <HAL_RCC_OscConfig+0x4f8>)
  27402. 800be3a: 681b ldr r3, [r3, #0]
  27403. 800be3c: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27404. 800be40: 2b00 cmp r3, #0
  27405. 800be42: d0f0 beq.n 800be26 <HAL_RCC_OscConfig+0x4d6>
  27406. 800be44: e01b b.n 800be7e <HAL_RCC_OscConfig+0x52e>
  27407. 800be46: bf00 nop
  27408. 800be48: 58024400 .word 0x58024400
  27409. }
  27410. }
  27411. else
  27412. {
  27413. /* Disable the Internal Low Speed oscillator (HSI48). */
  27414. __HAL_RCC_HSI48_DISABLE();
  27415. 800be4c: 4b9b ldr r3, [pc, #620] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27416. 800be4e: 681b ldr r3, [r3, #0]
  27417. 800be50: 4a9a ldr r2, [pc, #616] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27418. 800be52: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  27419. 800be56: 6013 str r3, [r2, #0]
  27420. /* Get time-out */
  27421. tickstart = HAL_GetTick();
  27422. 800be58: f7f9 ffe4 bl 8005e24 <HAL_GetTick>
  27423. 800be5c: 6278 str r0, [r7, #36] @ 0x24
  27424. /* Wait till HSI48 is ready */
  27425. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27426. 800be5e: e008 b.n 800be72 <HAL_RCC_OscConfig+0x522>
  27427. {
  27428. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27429. 800be60: f7f9 ffe0 bl 8005e24 <HAL_GetTick>
  27430. 800be64: 4602 mov r2, r0
  27431. 800be66: 6a7b ldr r3, [r7, #36] @ 0x24
  27432. 800be68: 1ad3 subs r3, r2, r3
  27433. 800be6a: 2b02 cmp r3, #2
  27434. 800be6c: d901 bls.n 800be72 <HAL_RCC_OscConfig+0x522>
  27435. {
  27436. return HAL_TIMEOUT;
  27437. 800be6e: 2303 movs r3, #3
  27438. 800be70: e1c0 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27439. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27440. 800be72: 4b92 ldr r3, [pc, #584] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27441. 800be74: 681b ldr r3, [r3, #0]
  27442. 800be76: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27443. 800be7a: 2b00 cmp r3, #0
  27444. 800be7c: d1f0 bne.n 800be60 <HAL_RCC_OscConfig+0x510>
  27445. }
  27446. }
  27447. }
  27448. }
  27449. /*------------------------------ LSE Configuration -------------------------*/
  27450. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  27451. 800be7e: 687b ldr r3, [r7, #4]
  27452. 800be80: 681b ldr r3, [r3, #0]
  27453. 800be82: f003 0304 and.w r3, r3, #4
  27454. 800be86: 2b00 cmp r3, #0
  27455. 800be88: f000 8081 beq.w 800bf8e <HAL_RCC_OscConfig+0x63e>
  27456. {
  27457. /* Check the parameters */
  27458. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  27459. /* Enable write access to Backup domain */
  27460. PWR->CR1 |= PWR_CR1_DBP;
  27461. 800be8c: 4b8c ldr r3, [pc, #560] @ (800c0c0 <HAL_RCC_OscConfig+0x770>)
  27462. 800be8e: 681b ldr r3, [r3, #0]
  27463. 800be90: 4a8b ldr r2, [pc, #556] @ (800c0c0 <HAL_RCC_OscConfig+0x770>)
  27464. 800be92: f443 7380 orr.w r3, r3, #256 @ 0x100
  27465. 800be96: 6013 str r3, [r2, #0]
  27466. /* Wait for Backup domain Write protection disable */
  27467. tickstart = HAL_GetTick();
  27468. 800be98: f7f9 ffc4 bl 8005e24 <HAL_GetTick>
  27469. 800be9c: 6278 str r0, [r7, #36] @ 0x24
  27470. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27471. 800be9e: e008 b.n 800beb2 <HAL_RCC_OscConfig+0x562>
  27472. {
  27473. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  27474. 800bea0: f7f9 ffc0 bl 8005e24 <HAL_GetTick>
  27475. 800bea4: 4602 mov r2, r0
  27476. 800bea6: 6a7b ldr r3, [r7, #36] @ 0x24
  27477. 800bea8: 1ad3 subs r3, r2, r3
  27478. 800beaa: 2b64 cmp r3, #100 @ 0x64
  27479. 800beac: d901 bls.n 800beb2 <HAL_RCC_OscConfig+0x562>
  27480. {
  27481. return HAL_TIMEOUT;
  27482. 800beae: 2303 movs r3, #3
  27483. 800beb0: e1a0 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27484. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27485. 800beb2: 4b83 ldr r3, [pc, #524] @ (800c0c0 <HAL_RCC_OscConfig+0x770>)
  27486. 800beb4: 681b ldr r3, [r3, #0]
  27487. 800beb6: f403 7380 and.w r3, r3, #256 @ 0x100
  27488. 800beba: 2b00 cmp r3, #0
  27489. 800bebc: d0f0 beq.n 800bea0 <HAL_RCC_OscConfig+0x550>
  27490. }
  27491. }
  27492. /* Set the new LSE configuration -----------------------------------------*/
  27493. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  27494. 800bebe: 687b ldr r3, [r7, #4]
  27495. 800bec0: 689b ldr r3, [r3, #8]
  27496. 800bec2: 2b01 cmp r3, #1
  27497. 800bec4: d106 bne.n 800bed4 <HAL_RCC_OscConfig+0x584>
  27498. 800bec6: 4b7d ldr r3, [pc, #500] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27499. 800bec8: 6f1b ldr r3, [r3, #112] @ 0x70
  27500. 800beca: 4a7c ldr r2, [pc, #496] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27501. 800becc: f043 0301 orr.w r3, r3, #1
  27502. 800bed0: 6713 str r3, [r2, #112] @ 0x70
  27503. 800bed2: e02d b.n 800bf30 <HAL_RCC_OscConfig+0x5e0>
  27504. 800bed4: 687b ldr r3, [r7, #4]
  27505. 800bed6: 689b ldr r3, [r3, #8]
  27506. 800bed8: 2b00 cmp r3, #0
  27507. 800beda: d10c bne.n 800bef6 <HAL_RCC_OscConfig+0x5a6>
  27508. 800bedc: 4b77 ldr r3, [pc, #476] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27509. 800bede: 6f1b ldr r3, [r3, #112] @ 0x70
  27510. 800bee0: 4a76 ldr r2, [pc, #472] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27511. 800bee2: f023 0301 bic.w r3, r3, #1
  27512. 800bee6: 6713 str r3, [r2, #112] @ 0x70
  27513. 800bee8: 4b74 ldr r3, [pc, #464] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27514. 800beea: 6f1b ldr r3, [r3, #112] @ 0x70
  27515. 800beec: 4a73 ldr r2, [pc, #460] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27516. 800beee: f023 0304 bic.w r3, r3, #4
  27517. 800bef2: 6713 str r3, [r2, #112] @ 0x70
  27518. 800bef4: e01c b.n 800bf30 <HAL_RCC_OscConfig+0x5e0>
  27519. 800bef6: 687b ldr r3, [r7, #4]
  27520. 800bef8: 689b ldr r3, [r3, #8]
  27521. 800befa: 2b05 cmp r3, #5
  27522. 800befc: d10c bne.n 800bf18 <HAL_RCC_OscConfig+0x5c8>
  27523. 800befe: 4b6f ldr r3, [pc, #444] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27524. 800bf00: 6f1b ldr r3, [r3, #112] @ 0x70
  27525. 800bf02: 4a6e ldr r2, [pc, #440] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27526. 800bf04: f043 0304 orr.w r3, r3, #4
  27527. 800bf08: 6713 str r3, [r2, #112] @ 0x70
  27528. 800bf0a: 4b6c ldr r3, [pc, #432] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27529. 800bf0c: 6f1b ldr r3, [r3, #112] @ 0x70
  27530. 800bf0e: 4a6b ldr r2, [pc, #428] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27531. 800bf10: f043 0301 orr.w r3, r3, #1
  27532. 800bf14: 6713 str r3, [r2, #112] @ 0x70
  27533. 800bf16: e00b b.n 800bf30 <HAL_RCC_OscConfig+0x5e0>
  27534. 800bf18: 4b68 ldr r3, [pc, #416] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27535. 800bf1a: 6f1b ldr r3, [r3, #112] @ 0x70
  27536. 800bf1c: 4a67 ldr r2, [pc, #412] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27537. 800bf1e: f023 0301 bic.w r3, r3, #1
  27538. 800bf22: 6713 str r3, [r2, #112] @ 0x70
  27539. 800bf24: 4b65 ldr r3, [pc, #404] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27540. 800bf26: 6f1b ldr r3, [r3, #112] @ 0x70
  27541. 800bf28: 4a64 ldr r2, [pc, #400] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27542. 800bf2a: f023 0304 bic.w r3, r3, #4
  27543. 800bf2e: 6713 str r3, [r2, #112] @ 0x70
  27544. /* Check the LSE State */
  27545. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  27546. 800bf30: 687b ldr r3, [r7, #4]
  27547. 800bf32: 689b ldr r3, [r3, #8]
  27548. 800bf34: 2b00 cmp r3, #0
  27549. 800bf36: d015 beq.n 800bf64 <HAL_RCC_OscConfig+0x614>
  27550. {
  27551. /* Get Start Tick*/
  27552. tickstart = HAL_GetTick();
  27553. 800bf38: f7f9 ff74 bl 8005e24 <HAL_GetTick>
  27554. 800bf3c: 6278 str r0, [r7, #36] @ 0x24
  27555. /* Wait till LSE is ready */
  27556. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27557. 800bf3e: e00a b.n 800bf56 <HAL_RCC_OscConfig+0x606>
  27558. {
  27559. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27560. 800bf40: f7f9 ff70 bl 8005e24 <HAL_GetTick>
  27561. 800bf44: 4602 mov r2, r0
  27562. 800bf46: 6a7b ldr r3, [r7, #36] @ 0x24
  27563. 800bf48: 1ad3 subs r3, r2, r3
  27564. 800bf4a: f241 3288 movw r2, #5000 @ 0x1388
  27565. 800bf4e: 4293 cmp r3, r2
  27566. 800bf50: d901 bls.n 800bf56 <HAL_RCC_OscConfig+0x606>
  27567. {
  27568. return HAL_TIMEOUT;
  27569. 800bf52: 2303 movs r3, #3
  27570. 800bf54: e14e b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27571. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27572. 800bf56: 4b59 ldr r3, [pc, #356] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27573. 800bf58: 6f1b ldr r3, [r3, #112] @ 0x70
  27574. 800bf5a: f003 0302 and.w r3, r3, #2
  27575. 800bf5e: 2b00 cmp r3, #0
  27576. 800bf60: d0ee beq.n 800bf40 <HAL_RCC_OscConfig+0x5f0>
  27577. 800bf62: e014 b.n 800bf8e <HAL_RCC_OscConfig+0x63e>
  27578. }
  27579. }
  27580. else
  27581. {
  27582. /* Get Start Tick*/
  27583. tickstart = HAL_GetTick();
  27584. 800bf64: f7f9 ff5e bl 8005e24 <HAL_GetTick>
  27585. 800bf68: 6278 str r0, [r7, #36] @ 0x24
  27586. /* Wait till LSE is disabled */
  27587. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27588. 800bf6a: e00a b.n 800bf82 <HAL_RCC_OscConfig+0x632>
  27589. {
  27590. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27591. 800bf6c: f7f9 ff5a bl 8005e24 <HAL_GetTick>
  27592. 800bf70: 4602 mov r2, r0
  27593. 800bf72: 6a7b ldr r3, [r7, #36] @ 0x24
  27594. 800bf74: 1ad3 subs r3, r2, r3
  27595. 800bf76: f241 3288 movw r2, #5000 @ 0x1388
  27596. 800bf7a: 4293 cmp r3, r2
  27597. 800bf7c: d901 bls.n 800bf82 <HAL_RCC_OscConfig+0x632>
  27598. {
  27599. return HAL_TIMEOUT;
  27600. 800bf7e: 2303 movs r3, #3
  27601. 800bf80: e138 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27602. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27603. 800bf82: 4b4e ldr r3, [pc, #312] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27604. 800bf84: 6f1b ldr r3, [r3, #112] @ 0x70
  27605. 800bf86: f003 0302 and.w r3, r3, #2
  27606. 800bf8a: 2b00 cmp r3, #0
  27607. 800bf8c: d1ee bne.n 800bf6c <HAL_RCC_OscConfig+0x61c>
  27608. }
  27609. }
  27610. /*-------------------------------- PLL Configuration -----------------------*/
  27611. /* Check the parameters */
  27612. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  27613. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  27614. 800bf8e: 687b ldr r3, [r7, #4]
  27615. 800bf90: 6a5b ldr r3, [r3, #36] @ 0x24
  27616. 800bf92: 2b00 cmp r3, #0
  27617. 800bf94: f000 812d beq.w 800c1f2 <HAL_RCC_OscConfig+0x8a2>
  27618. {
  27619. /* Check if the PLL is used as system clock or not */
  27620. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  27621. 800bf98: 4b48 ldr r3, [pc, #288] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27622. 800bf9a: 691b ldr r3, [r3, #16]
  27623. 800bf9c: f003 0338 and.w r3, r3, #56 @ 0x38
  27624. 800bfa0: 2b18 cmp r3, #24
  27625. 800bfa2: f000 80bd beq.w 800c120 <HAL_RCC_OscConfig+0x7d0>
  27626. {
  27627. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  27628. 800bfa6: 687b ldr r3, [r7, #4]
  27629. 800bfa8: 6a5b ldr r3, [r3, #36] @ 0x24
  27630. 800bfaa: 2b02 cmp r3, #2
  27631. 800bfac: f040 809e bne.w 800c0ec <HAL_RCC_OscConfig+0x79c>
  27632. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  27633. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  27634. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27635. /* Disable the main PLL. */
  27636. __HAL_RCC_PLL_DISABLE();
  27637. 800bfb0: 4b42 ldr r3, [pc, #264] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27638. 800bfb2: 681b ldr r3, [r3, #0]
  27639. 800bfb4: 4a41 ldr r2, [pc, #260] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27640. 800bfb6: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27641. 800bfba: 6013 str r3, [r2, #0]
  27642. /* Get Start Tick*/
  27643. tickstart = HAL_GetTick();
  27644. 800bfbc: f7f9 ff32 bl 8005e24 <HAL_GetTick>
  27645. 800bfc0: 6278 str r0, [r7, #36] @ 0x24
  27646. /* Wait till PLL is disabled */
  27647. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27648. 800bfc2: e008 b.n 800bfd6 <HAL_RCC_OscConfig+0x686>
  27649. {
  27650. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27651. 800bfc4: f7f9 ff2e bl 8005e24 <HAL_GetTick>
  27652. 800bfc8: 4602 mov r2, r0
  27653. 800bfca: 6a7b ldr r3, [r7, #36] @ 0x24
  27654. 800bfcc: 1ad3 subs r3, r2, r3
  27655. 800bfce: 2b02 cmp r3, #2
  27656. 800bfd0: d901 bls.n 800bfd6 <HAL_RCC_OscConfig+0x686>
  27657. {
  27658. return HAL_TIMEOUT;
  27659. 800bfd2: 2303 movs r3, #3
  27660. 800bfd4: e10e b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27661. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27662. 800bfd6: 4b39 ldr r3, [pc, #228] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27663. 800bfd8: 681b ldr r3, [r3, #0]
  27664. 800bfda: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27665. 800bfde: 2b00 cmp r3, #0
  27666. 800bfe0: d1f0 bne.n 800bfc4 <HAL_RCC_OscConfig+0x674>
  27667. }
  27668. }
  27669. /* Configure the main PLL clock source, multiplication and division factors. */
  27670. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  27671. 800bfe2: 4b36 ldr r3, [pc, #216] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27672. 800bfe4: 6a9a ldr r2, [r3, #40] @ 0x28
  27673. 800bfe6: 4b37 ldr r3, [pc, #220] @ (800c0c4 <HAL_RCC_OscConfig+0x774>)
  27674. 800bfe8: 4013 ands r3, r2
  27675. 800bfea: 687a ldr r2, [r7, #4]
  27676. 800bfec: 6a91 ldr r1, [r2, #40] @ 0x28
  27677. 800bfee: 687a ldr r2, [r7, #4]
  27678. 800bff0: 6ad2 ldr r2, [r2, #44] @ 0x2c
  27679. 800bff2: 0112 lsls r2, r2, #4
  27680. 800bff4: 430a orrs r2, r1
  27681. 800bff6: 4931 ldr r1, [pc, #196] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27682. 800bff8: 4313 orrs r3, r2
  27683. 800bffa: 628b str r3, [r1, #40] @ 0x28
  27684. 800bffc: 687b ldr r3, [r7, #4]
  27685. 800bffe: 6b1b ldr r3, [r3, #48] @ 0x30
  27686. 800c000: 3b01 subs r3, #1
  27687. 800c002: f3c3 0208 ubfx r2, r3, #0, #9
  27688. 800c006: 687b ldr r3, [r7, #4]
  27689. 800c008: 6b5b ldr r3, [r3, #52] @ 0x34
  27690. 800c00a: 3b01 subs r3, #1
  27691. 800c00c: 025b lsls r3, r3, #9
  27692. 800c00e: b29b uxth r3, r3
  27693. 800c010: 431a orrs r2, r3
  27694. 800c012: 687b ldr r3, [r7, #4]
  27695. 800c014: 6b9b ldr r3, [r3, #56] @ 0x38
  27696. 800c016: 3b01 subs r3, #1
  27697. 800c018: 041b lsls r3, r3, #16
  27698. 800c01a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27699. 800c01e: 431a orrs r2, r3
  27700. 800c020: 687b ldr r3, [r7, #4]
  27701. 800c022: 6bdb ldr r3, [r3, #60] @ 0x3c
  27702. 800c024: 3b01 subs r3, #1
  27703. 800c026: 061b lsls r3, r3, #24
  27704. 800c028: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27705. 800c02c: 4923 ldr r1, [pc, #140] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27706. 800c02e: 4313 orrs r3, r2
  27707. 800c030: 630b str r3, [r1, #48] @ 0x30
  27708. RCC_OscInitStruct->PLL.PLLP,
  27709. RCC_OscInitStruct->PLL.PLLQ,
  27710. RCC_OscInitStruct->PLL.PLLR);
  27711. /* Disable PLLFRACN . */
  27712. __HAL_RCC_PLLFRACN_DISABLE();
  27713. 800c032: 4b22 ldr r3, [pc, #136] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27714. 800c034: 6adb ldr r3, [r3, #44] @ 0x2c
  27715. 800c036: 4a21 ldr r2, [pc, #132] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27716. 800c038: f023 0301 bic.w r3, r3, #1
  27717. 800c03c: 62d3 str r3, [r2, #44] @ 0x2c
  27718. /* Configure PLL PLL1FRACN */
  27719. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27720. 800c03e: 4b1f ldr r3, [pc, #124] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27721. 800c040: 6b5a ldr r2, [r3, #52] @ 0x34
  27722. 800c042: 4b21 ldr r3, [pc, #132] @ (800c0c8 <HAL_RCC_OscConfig+0x778>)
  27723. 800c044: 4013 ands r3, r2
  27724. 800c046: 687a ldr r2, [r7, #4]
  27725. 800c048: 6c92 ldr r2, [r2, #72] @ 0x48
  27726. 800c04a: 00d2 lsls r2, r2, #3
  27727. 800c04c: 491b ldr r1, [pc, #108] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27728. 800c04e: 4313 orrs r3, r2
  27729. 800c050: 634b str r3, [r1, #52] @ 0x34
  27730. /* Select PLL1 input reference frequency range: VCI */
  27731. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  27732. 800c052: 4b1a ldr r3, [pc, #104] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27733. 800c054: 6adb ldr r3, [r3, #44] @ 0x2c
  27734. 800c056: f023 020c bic.w r2, r3, #12
  27735. 800c05a: 687b ldr r3, [r7, #4]
  27736. 800c05c: 6c1b ldr r3, [r3, #64] @ 0x40
  27737. 800c05e: 4917 ldr r1, [pc, #92] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27738. 800c060: 4313 orrs r3, r2
  27739. 800c062: 62cb str r3, [r1, #44] @ 0x2c
  27740. /* Select PLL1 output frequency range : VCO */
  27741. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  27742. 800c064: 4b15 ldr r3, [pc, #84] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27743. 800c066: 6adb ldr r3, [r3, #44] @ 0x2c
  27744. 800c068: f023 0202 bic.w r2, r3, #2
  27745. 800c06c: 687b ldr r3, [r7, #4]
  27746. 800c06e: 6c5b ldr r3, [r3, #68] @ 0x44
  27747. 800c070: 4912 ldr r1, [pc, #72] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27748. 800c072: 4313 orrs r3, r2
  27749. 800c074: 62cb str r3, [r1, #44] @ 0x2c
  27750. /* Enable PLL System Clock output. */
  27751. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  27752. 800c076: 4b11 ldr r3, [pc, #68] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27753. 800c078: 6adb ldr r3, [r3, #44] @ 0x2c
  27754. 800c07a: 4a10 ldr r2, [pc, #64] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27755. 800c07c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  27756. 800c080: 62d3 str r3, [r2, #44] @ 0x2c
  27757. /* Enable PLL1Q Clock output. */
  27758. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27759. 800c082: 4b0e ldr r3, [pc, #56] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27760. 800c084: 6adb ldr r3, [r3, #44] @ 0x2c
  27761. 800c086: 4a0d ldr r2, [pc, #52] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27762. 800c088: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27763. 800c08c: 62d3 str r3, [r2, #44] @ 0x2c
  27764. /* Enable PLL1R Clock output. */
  27765. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  27766. 800c08e: 4b0b ldr r3, [pc, #44] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27767. 800c090: 6adb ldr r3, [r3, #44] @ 0x2c
  27768. 800c092: 4a0a ldr r2, [pc, #40] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27769. 800c094: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  27770. 800c098: 62d3 str r3, [r2, #44] @ 0x2c
  27771. /* Enable PLL1FRACN . */
  27772. __HAL_RCC_PLLFRACN_ENABLE();
  27773. 800c09a: 4b08 ldr r3, [pc, #32] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27774. 800c09c: 6adb ldr r3, [r3, #44] @ 0x2c
  27775. 800c09e: 4a07 ldr r2, [pc, #28] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27776. 800c0a0: f043 0301 orr.w r3, r3, #1
  27777. 800c0a4: 62d3 str r3, [r2, #44] @ 0x2c
  27778. /* Enable the main PLL. */
  27779. __HAL_RCC_PLL_ENABLE();
  27780. 800c0a6: 4b05 ldr r3, [pc, #20] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27781. 800c0a8: 681b ldr r3, [r3, #0]
  27782. 800c0aa: 4a04 ldr r2, [pc, #16] @ (800c0bc <HAL_RCC_OscConfig+0x76c>)
  27783. 800c0ac: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27784. 800c0b0: 6013 str r3, [r2, #0]
  27785. /* Get Start Tick*/
  27786. tickstart = HAL_GetTick();
  27787. 800c0b2: f7f9 feb7 bl 8005e24 <HAL_GetTick>
  27788. 800c0b6: 6278 str r0, [r7, #36] @ 0x24
  27789. /* Wait till PLL is ready */
  27790. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27791. 800c0b8: e011 b.n 800c0de <HAL_RCC_OscConfig+0x78e>
  27792. 800c0ba: bf00 nop
  27793. 800c0bc: 58024400 .word 0x58024400
  27794. 800c0c0: 58024800 .word 0x58024800
  27795. 800c0c4: fffffc0c .word 0xfffffc0c
  27796. 800c0c8: ffff0007 .word 0xffff0007
  27797. {
  27798. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27799. 800c0cc: f7f9 feaa bl 8005e24 <HAL_GetTick>
  27800. 800c0d0: 4602 mov r2, r0
  27801. 800c0d2: 6a7b ldr r3, [r7, #36] @ 0x24
  27802. 800c0d4: 1ad3 subs r3, r2, r3
  27803. 800c0d6: 2b02 cmp r3, #2
  27804. 800c0d8: d901 bls.n 800c0de <HAL_RCC_OscConfig+0x78e>
  27805. {
  27806. return HAL_TIMEOUT;
  27807. 800c0da: 2303 movs r3, #3
  27808. 800c0dc: e08a b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27809. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27810. 800c0de: 4b47 ldr r3, [pc, #284] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27811. 800c0e0: 681b ldr r3, [r3, #0]
  27812. 800c0e2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27813. 800c0e6: 2b00 cmp r3, #0
  27814. 800c0e8: d0f0 beq.n 800c0cc <HAL_RCC_OscConfig+0x77c>
  27815. 800c0ea: e082 b.n 800c1f2 <HAL_RCC_OscConfig+0x8a2>
  27816. }
  27817. }
  27818. else
  27819. {
  27820. /* Disable the main PLL. */
  27821. __HAL_RCC_PLL_DISABLE();
  27822. 800c0ec: 4b43 ldr r3, [pc, #268] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27823. 800c0ee: 681b ldr r3, [r3, #0]
  27824. 800c0f0: 4a42 ldr r2, [pc, #264] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27825. 800c0f2: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27826. 800c0f6: 6013 str r3, [r2, #0]
  27827. /* Get Start Tick*/
  27828. tickstart = HAL_GetTick();
  27829. 800c0f8: f7f9 fe94 bl 8005e24 <HAL_GetTick>
  27830. 800c0fc: 6278 str r0, [r7, #36] @ 0x24
  27831. /* Wait till PLL is disabled */
  27832. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27833. 800c0fe: e008 b.n 800c112 <HAL_RCC_OscConfig+0x7c2>
  27834. {
  27835. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27836. 800c100: f7f9 fe90 bl 8005e24 <HAL_GetTick>
  27837. 800c104: 4602 mov r2, r0
  27838. 800c106: 6a7b ldr r3, [r7, #36] @ 0x24
  27839. 800c108: 1ad3 subs r3, r2, r3
  27840. 800c10a: 2b02 cmp r3, #2
  27841. 800c10c: d901 bls.n 800c112 <HAL_RCC_OscConfig+0x7c2>
  27842. {
  27843. return HAL_TIMEOUT;
  27844. 800c10e: 2303 movs r3, #3
  27845. 800c110: e070 b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27846. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27847. 800c112: 4b3a ldr r3, [pc, #232] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27848. 800c114: 681b ldr r3, [r3, #0]
  27849. 800c116: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27850. 800c11a: 2b00 cmp r3, #0
  27851. 800c11c: d1f0 bne.n 800c100 <HAL_RCC_OscConfig+0x7b0>
  27852. 800c11e: e068 b.n 800c1f2 <HAL_RCC_OscConfig+0x8a2>
  27853. }
  27854. }
  27855. else
  27856. {
  27857. /* Do not return HAL_ERROR if request repeats the current configuration */
  27858. temp1_pllckcfg = RCC->PLLCKSELR;
  27859. 800c120: 4b36 ldr r3, [pc, #216] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27860. 800c122: 6a9b ldr r3, [r3, #40] @ 0x28
  27861. 800c124: 613b str r3, [r7, #16]
  27862. temp2_pllckcfg = RCC->PLL1DIVR;
  27863. 800c126: 4b35 ldr r3, [pc, #212] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27864. 800c128: 6b1b ldr r3, [r3, #48] @ 0x30
  27865. 800c12a: 60fb str r3, [r7, #12]
  27866. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27867. 800c12c: 687b ldr r3, [r7, #4]
  27868. 800c12e: 6a5b ldr r3, [r3, #36] @ 0x24
  27869. 800c130: 2b01 cmp r3, #1
  27870. 800c132: d031 beq.n 800c198 <HAL_RCC_OscConfig+0x848>
  27871. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27872. 800c134: 693b ldr r3, [r7, #16]
  27873. 800c136: f003 0203 and.w r2, r3, #3
  27874. 800c13a: 687b ldr r3, [r7, #4]
  27875. 800c13c: 6a9b ldr r3, [r3, #40] @ 0x28
  27876. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27877. 800c13e: 429a cmp r2, r3
  27878. 800c140: d12a bne.n 800c198 <HAL_RCC_OscConfig+0x848>
  27879. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27880. 800c142: 693b ldr r3, [r7, #16]
  27881. 800c144: 091b lsrs r3, r3, #4
  27882. 800c146: f003 023f and.w r2, r3, #63 @ 0x3f
  27883. 800c14a: 687b ldr r3, [r7, #4]
  27884. 800c14c: 6adb ldr r3, [r3, #44] @ 0x2c
  27885. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27886. 800c14e: 429a cmp r2, r3
  27887. 800c150: d122 bne.n 800c198 <HAL_RCC_OscConfig+0x848>
  27888. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27889. 800c152: 68fb ldr r3, [r7, #12]
  27890. 800c154: f3c3 0208 ubfx r2, r3, #0, #9
  27891. 800c158: 687b ldr r3, [r7, #4]
  27892. 800c15a: 6b1b ldr r3, [r3, #48] @ 0x30
  27893. 800c15c: 3b01 subs r3, #1
  27894. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27895. 800c15e: 429a cmp r2, r3
  27896. 800c160: d11a bne.n 800c198 <HAL_RCC_OscConfig+0x848>
  27897. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27898. 800c162: 68fb ldr r3, [r7, #12]
  27899. 800c164: 0a5b lsrs r3, r3, #9
  27900. 800c166: f003 027f and.w r2, r3, #127 @ 0x7f
  27901. 800c16a: 687b ldr r3, [r7, #4]
  27902. 800c16c: 6b5b ldr r3, [r3, #52] @ 0x34
  27903. 800c16e: 3b01 subs r3, #1
  27904. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27905. 800c170: 429a cmp r2, r3
  27906. 800c172: d111 bne.n 800c198 <HAL_RCC_OscConfig+0x848>
  27907. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27908. 800c174: 68fb ldr r3, [r7, #12]
  27909. 800c176: 0c1b lsrs r3, r3, #16
  27910. 800c178: f003 027f and.w r2, r3, #127 @ 0x7f
  27911. 800c17c: 687b ldr r3, [r7, #4]
  27912. 800c17e: 6b9b ldr r3, [r3, #56] @ 0x38
  27913. 800c180: 3b01 subs r3, #1
  27914. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27915. 800c182: 429a cmp r2, r3
  27916. 800c184: d108 bne.n 800c198 <HAL_RCC_OscConfig+0x848>
  27917. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  27918. 800c186: 68fb ldr r3, [r7, #12]
  27919. 800c188: 0e1b lsrs r3, r3, #24
  27920. 800c18a: f003 027f and.w r2, r3, #127 @ 0x7f
  27921. 800c18e: 687b ldr r3, [r7, #4]
  27922. 800c190: 6bdb ldr r3, [r3, #60] @ 0x3c
  27923. 800c192: 3b01 subs r3, #1
  27924. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27925. 800c194: 429a cmp r2, r3
  27926. 800c196: d001 beq.n 800c19c <HAL_RCC_OscConfig+0x84c>
  27927. {
  27928. return HAL_ERROR;
  27929. 800c198: 2301 movs r3, #1
  27930. 800c19a: e02b b.n 800c1f4 <HAL_RCC_OscConfig+0x8a4>
  27931. }
  27932. else
  27933. {
  27934. /* Check if only fractional part needs to be updated */
  27935. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  27936. 800c19c: 4b17 ldr r3, [pc, #92] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27937. 800c19e: 6b5b ldr r3, [r3, #52] @ 0x34
  27938. 800c1a0: 08db lsrs r3, r3, #3
  27939. 800c1a2: f3c3 030c ubfx r3, r3, #0, #13
  27940. 800c1a6: 613b str r3, [r7, #16]
  27941. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  27942. 800c1a8: 687b ldr r3, [r7, #4]
  27943. 800c1aa: 6c9b ldr r3, [r3, #72] @ 0x48
  27944. 800c1ac: 693a ldr r2, [r7, #16]
  27945. 800c1ae: 429a cmp r2, r3
  27946. 800c1b0: d01f beq.n 800c1f2 <HAL_RCC_OscConfig+0x8a2>
  27947. {
  27948. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27949. /* Disable PLL1FRACEN */
  27950. __HAL_RCC_PLLFRACN_DISABLE();
  27951. 800c1b2: 4b12 ldr r3, [pc, #72] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27952. 800c1b4: 6adb ldr r3, [r3, #44] @ 0x2c
  27953. 800c1b6: 4a11 ldr r2, [pc, #68] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27954. 800c1b8: f023 0301 bic.w r3, r3, #1
  27955. 800c1bc: 62d3 str r3, [r2, #44] @ 0x2c
  27956. /* Get Start Tick*/
  27957. tickstart = HAL_GetTick();
  27958. 800c1be: f7f9 fe31 bl 8005e24 <HAL_GetTick>
  27959. 800c1c2: 6278 str r0, [r7, #36] @ 0x24
  27960. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  27961. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  27962. 800c1c4: bf00 nop
  27963. 800c1c6: f7f9 fe2d bl 8005e24 <HAL_GetTick>
  27964. 800c1ca: 4602 mov r2, r0
  27965. 800c1cc: 6a7b ldr r3, [r7, #36] @ 0x24
  27966. 800c1ce: 4293 cmp r3, r2
  27967. 800c1d0: d0f9 beq.n 800c1c6 <HAL_RCC_OscConfig+0x876>
  27968. {
  27969. }
  27970. /* Configure PLL1 PLL1FRACN */
  27971. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27972. 800c1d2: 4b0a ldr r3, [pc, #40] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27973. 800c1d4: 6b5a ldr r2, [r3, #52] @ 0x34
  27974. 800c1d6: 4b0a ldr r3, [pc, #40] @ (800c200 <HAL_RCC_OscConfig+0x8b0>)
  27975. 800c1d8: 4013 ands r3, r2
  27976. 800c1da: 687a ldr r2, [r7, #4]
  27977. 800c1dc: 6c92 ldr r2, [r2, #72] @ 0x48
  27978. 800c1de: 00d2 lsls r2, r2, #3
  27979. 800c1e0: 4906 ldr r1, [pc, #24] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27980. 800c1e2: 4313 orrs r3, r2
  27981. 800c1e4: 634b str r3, [r1, #52] @ 0x34
  27982. /* Enable PLL1FRACEN to latch new value. */
  27983. __HAL_RCC_PLLFRACN_ENABLE();
  27984. 800c1e6: 4b05 ldr r3, [pc, #20] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27985. 800c1e8: 6adb ldr r3, [r3, #44] @ 0x2c
  27986. 800c1ea: 4a04 ldr r2, [pc, #16] @ (800c1fc <HAL_RCC_OscConfig+0x8ac>)
  27987. 800c1ec: f043 0301 orr.w r3, r3, #1
  27988. 800c1f0: 62d3 str r3, [r2, #44] @ 0x2c
  27989. }
  27990. }
  27991. }
  27992. }
  27993. return HAL_OK;
  27994. 800c1f2: 2300 movs r3, #0
  27995. }
  27996. 800c1f4: 4618 mov r0, r3
  27997. 800c1f6: 3730 adds r7, #48 @ 0x30
  27998. 800c1f8: 46bd mov sp, r7
  27999. 800c1fa: bd80 pop {r7, pc}
  28000. 800c1fc: 58024400 .word 0x58024400
  28001. 800c200: ffff0007 .word 0xffff0007
  28002. 0800c204 <HAL_RCC_ClockConfig>:
  28003. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  28004. * (for more details refer to section above "Initialization/de-initialization functions")
  28005. * @retval None
  28006. */
  28007. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  28008. {
  28009. 800c204: b580 push {r7, lr}
  28010. 800c206: b086 sub sp, #24
  28011. 800c208: af00 add r7, sp, #0
  28012. 800c20a: 6078 str r0, [r7, #4]
  28013. 800c20c: 6039 str r1, [r7, #0]
  28014. HAL_StatusTypeDef halstatus;
  28015. uint32_t tickstart;
  28016. uint32_t common_system_clock;
  28017. /* Check Null pointer */
  28018. if (RCC_ClkInitStruct == NULL)
  28019. 800c20e: 687b ldr r3, [r7, #4]
  28020. 800c210: 2b00 cmp r3, #0
  28021. 800c212: d101 bne.n 800c218 <HAL_RCC_ClockConfig+0x14>
  28022. {
  28023. return HAL_ERROR;
  28024. 800c214: 2301 movs r3, #1
  28025. 800c216: e19c b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28026. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  28027. must be correctly programmed according to the frequency of the CPU clock
  28028. (HCLK) and the supply voltage of the device. */
  28029. /* Increasing the CPU frequency */
  28030. if (FLatency > __HAL_FLASH_GET_LATENCY())
  28031. 800c218: 4b8a ldr r3, [pc, #552] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28032. 800c21a: 681b ldr r3, [r3, #0]
  28033. 800c21c: f003 030f and.w r3, r3, #15
  28034. 800c220: 683a ldr r2, [r7, #0]
  28035. 800c222: 429a cmp r2, r3
  28036. 800c224: d910 bls.n 800c248 <HAL_RCC_ClockConfig+0x44>
  28037. {
  28038. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28039. __HAL_FLASH_SET_LATENCY(FLatency);
  28040. 800c226: 4b87 ldr r3, [pc, #540] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28041. 800c228: 681b ldr r3, [r3, #0]
  28042. 800c22a: f023 020f bic.w r2, r3, #15
  28043. 800c22e: 4985 ldr r1, [pc, #532] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28044. 800c230: 683b ldr r3, [r7, #0]
  28045. 800c232: 4313 orrs r3, r2
  28046. 800c234: 600b str r3, [r1, #0]
  28047. /* Check that the new number of wait states is taken into account to access the Flash
  28048. memory by reading the FLASH_ACR register */
  28049. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28050. 800c236: 4b83 ldr r3, [pc, #524] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28051. 800c238: 681b ldr r3, [r3, #0]
  28052. 800c23a: f003 030f and.w r3, r3, #15
  28053. 800c23e: 683a ldr r2, [r7, #0]
  28054. 800c240: 429a cmp r2, r3
  28055. 800c242: d001 beq.n 800c248 <HAL_RCC_ClockConfig+0x44>
  28056. {
  28057. return HAL_ERROR;
  28058. 800c244: 2301 movs r3, #1
  28059. 800c246: e184 b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28060. }
  28061. /* Increasing the BUS frequency divider */
  28062. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  28063. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28064. 800c248: 687b ldr r3, [r7, #4]
  28065. 800c24a: 681b ldr r3, [r3, #0]
  28066. 800c24c: f003 0304 and.w r3, r3, #4
  28067. 800c250: 2b00 cmp r3, #0
  28068. 800c252: d010 beq.n 800c276 <HAL_RCC_ClockConfig+0x72>
  28069. {
  28070. #if defined (RCC_D1CFGR_D1PPRE)
  28071. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28072. 800c254: 687b ldr r3, [r7, #4]
  28073. 800c256: 691a ldr r2, [r3, #16]
  28074. 800c258: 4b7b ldr r3, [pc, #492] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28075. 800c25a: 699b ldr r3, [r3, #24]
  28076. 800c25c: f003 0370 and.w r3, r3, #112 @ 0x70
  28077. 800c260: 429a cmp r2, r3
  28078. 800c262: d908 bls.n 800c276 <HAL_RCC_ClockConfig+0x72>
  28079. {
  28080. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28081. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28082. 800c264: 4b78 ldr r3, [pc, #480] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28083. 800c266: 699b ldr r3, [r3, #24]
  28084. 800c268: f023 0270 bic.w r2, r3, #112 @ 0x70
  28085. 800c26c: 687b ldr r3, [r7, #4]
  28086. 800c26e: 691b ldr r3, [r3, #16]
  28087. 800c270: 4975 ldr r1, [pc, #468] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28088. 800c272: 4313 orrs r3, r2
  28089. 800c274: 618b str r3, [r1, #24]
  28090. }
  28091. #endif
  28092. }
  28093. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28094. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28095. 800c276: 687b ldr r3, [r7, #4]
  28096. 800c278: 681b ldr r3, [r3, #0]
  28097. 800c27a: f003 0308 and.w r3, r3, #8
  28098. 800c27e: 2b00 cmp r3, #0
  28099. 800c280: d010 beq.n 800c2a4 <HAL_RCC_ClockConfig+0xa0>
  28100. {
  28101. #if defined (RCC_D2CFGR_D2PPRE1)
  28102. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28103. 800c282: 687b ldr r3, [r7, #4]
  28104. 800c284: 695a ldr r2, [r3, #20]
  28105. 800c286: 4b70 ldr r3, [pc, #448] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28106. 800c288: 69db ldr r3, [r3, #28]
  28107. 800c28a: f003 0370 and.w r3, r3, #112 @ 0x70
  28108. 800c28e: 429a cmp r2, r3
  28109. 800c290: d908 bls.n 800c2a4 <HAL_RCC_ClockConfig+0xa0>
  28110. {
  28111. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28112. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28113. 800c292: 4b6d ldr r3, [pc, #436] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28114. 800c294: 69db ldr r3, [r3, #28]
  28115. 800c296: f023 0270 bic.w r2, r3, #112 @ 0x70
  28116. 800c29a: 687b ldr r3, [r7, #4]
  28117. 800c29c: 695b ldr r3, [r3, #20]
  28118. 800c29e: 496a ldr r1, [pc, #424] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28119. 800c2a0: 4313 orrs r3, r2
  28120. 800c2a2: 61cb str r3, [r1, #28]
  28121. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28122. }
  28123. #endif
  28124. }
  28125. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28126. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28127. 800c2a4: 687b ldr r3, [r7, #4]
  28128. 800c2a6: 681b ldr r3, [r3, #0]
  28129. 800c2a8: f003 0310 and.w r3, r3, #16
  28130. 800c2ac: 2b00 cmp r3, #0
  28131. 800c2ae: d010 beq.n 800c2d2 <HAL_RCC_ClockConfig+0xce>
  28132. {
  28133. #if defined(RCC_D2CFGR_D2PPRE2)
  28134. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28135. 800c2b0: 687b ldr r3, [r7, #4]
  28136. 800c2b2: 699a ldr r2, [r3, #24]
  28137. 800c2b4: 4b64 ldr r3, [pc, #400] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28138. 800c2b6: 69db ldr r3, [r3, #28]
  28139. 800c2b8: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28140. 800c2bc: 429a cmp r2, r3
  28141. 800c2be: d908 bls.n 800c2d2 <HAL_RCC_ClockConfig+0xce>
  28142. {
  28143. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28144. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28145. 800c2c0: 4b61 ldr r3, [pc, #388] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28146. 800c2c2: 69db ldr r3, [r3, #28]
  28147. 800c2c4: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28148. 800c2c8: 687b ldr r3, [r7, #4]
  28149. 800c2ca: 699b ldr r3, [r3, #24]
  28150. 800c2cc: 495e ldr r1, [pc, #376] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28151. 800c2ce: 4313 orrs r3, r2
  28152. 800c2d0: 61cb str r3, [r1, #28]
  28153. }
  28154. #endif
  28155. }
  28156. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  28157. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28158. 800c2d2: 687b ldr r3, [r7, #4]
  28159. 800c2d4: 681b ldr r3, [r3, #0]
  28160. 800c2d6: f003 0320 and.w r3, r3, #32
  28161. 800c2da: 2b00 cmp r3, #0
  28162. 800c2dc: d010 beq.n 800c300 <HAL_RCC_ClockConfig+0xfc>
  28163. {
  28164. #if defined(RCC_D3CFGR_D3PPRE)
  28165. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28166. 800c2de: 687b ldr r3, [r7, #4]
  28167. 800c2e0: 69da ldr r2, [r3, #28]
  28168. 800c2e2: 4b59 ldr r3, [pc, #356] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28169. 800c2e4: 6a1b ldr r3, [r3, #32]
  28170. 800c2e6: f003 0370 and.w r3, r3, #112 @ 0x70
  28171. 800c2ea: 429a cmp r2, r3
  28172. 800c2ec: d908 bls.n 800c300 <HAL_RCC_ClockConfig+0xfc>
  28173. {
  28174. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28175. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28176. 800c2ee: 4b56 ldr r3, [pc, #344] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28177. 800c2f0: 6a1b ldr r3, [r3, #32]
  28178. 800c2f2: f023 0270 bic.w r2, r3, #112 @ 0x70
  28179. 800c2f6: 687b ldr r3, [r7, #4]
  28180. 800c2f8: 69db ldr r3, [r3, #28]
  28181. 800c2fa: 4953 ldr r1, [pc, #332] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28182. 800c2fc: 4313 orrs r3, r2
  28183. 800c2fe: 620b str r3, [r1, #32]
  28184. }
  28185. #endif
  28186. }
  28187. /*-------------------------- HCLK Configuration --------------------------*/
  28188. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28189. 800c300: 687b ldr r3, [r7, #4]
  28190. 800c302: 681b ldr r3, [r3, #0]
  28191. 800c304: f003 0302 and.w r3, r3, #2
  28192. 800c308: 2b00 cmp r3, #0
  28193. 800c30a: d010 beq.n 800c32e <HAL_RCC_ClockConfig+0x12a>
  28194. {
  28195. #if defined (RCC_D1CFGR_HPRE)
  28196. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28197. 800c30c: 687b ldr r3, [r7, #4]
  28198. 800c30e: 68da ldr r2, [r3, #12]
  28199. 800c310: 4b4d ldr r3, [pc, #308] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28200. 800c312: 699b ldr r3, [r3, #24]
  28201. 800c314: f003 030f and.w r3, r3, #15
  28202. 800c318: 429a cmp r2, r3
  28203. 800c31a: d908 bls.n 800c32e <HAL_RCC_ClockConfig+0x12a>
  28204. {
  28205. /* Set the new HCLK clock divider */
  28206. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28207. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28208. 800c31c: 4b4a ldr r3, [pc, #296] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28209. 800c31e: 699b ldr r3, [r3, #24]
  28210. 800c320: f023 020f bic.w r2, r3, #15
  28211. 800c324: 687b ldr r3, [r7, #4]
  28212. 800c326: 68db ldr r3, [r3, #12]
  28213. 800c328: 4947 ldr r1, [pc, #284] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28214. 800c32a: 4313 orrs r3, r2
  28215. 800c32c: 618b str r3, [r1, #24]
  28216. }
  28217. #endif
  28218. }
  28219. /*------------------------- SYSCLK Configuration -------------------------*/
  28220. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  28221. 800c32e: 687b ldr r3, [r7, #4]
  28222. 800c330: 681b ldr r3, [r3, #0]
  28223. 800c332: f003 0301 and.w r3, r3, #1
  28224. 800c336: 2b00 cmp r3, #0
  28225. 800c338: d055 beq.n 800c3e6 <HAL_RCC_ClockConfig+0x1e2>
  28226. {
  28227. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  28228. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  28229. #if defined(RCC_D1CFGR_D1CPRE)
  28230. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28231. 800c33a: 4b43 ldr r3, [pc, #268] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28232. 800c33c: 699b ldr r3, [r3, #24]
  28233. 800c33e: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  28234. 800c342: 687b ldr r3, [r7, #4]
  28235. 800c344: 689b ldr r3, [r3, #8]
  28236. 800c346: 4940 ldr r1, [pc, #256] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28237. 800c348: 4313 orrs r3, r2
  28238. 800c34a: 618b str r3, [r1, #24]
  28239. #else
  28240. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  28241. #endif
  28242. /* HSE is selected as System Clock Source */
  28243. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  28244. 800c34c: 687b ldr r3, [r7, #4]
  28245. 800c34e: 685b ldr r3, [r3, #4]
  28246. 800c350: 2b02 cmp r3, #2
  28247. 800c352: d107 bne.n 800c364 <HAL_RCC_ClockConfig+0x160>
  28248. {
  28249. /* Check the HSE ready flag */
  28250. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  28251. 800c354: 4b3c ldr r3, [pc, #240] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28252. 800c356: 681b ldr r3, [r3, #0]
  28253. 800c358: f403 3300 and.w r3, r3, #131072 @ 0x20000
  28254. 800c35c: 2b00 cmp r3, #0
  28255. 800c35e: d121 bne.n 800c3a4 <HAL_RCC_ClockConfig+0x1a0>
  28256. {
  28257. return HAL_ERROR;
  28258. 800c360: 2301 movs r3, #1
  28259. 800c362: e0f6 b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28260. }
  28261. }
  28262. /* PLL is selected as System Clock Source */
  28263. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  28264. 800c364: 687b ldr r3, [r7, #4]
  28265. 800c366: 685b ldr r3, [r3, #4]
  28266. 800c368: 2b03 cmp r3, #3
  28267. 800c36a: d107 bne.n 800c37c <HAL_RCC_ClockConfig+0x178>
  28268. {
  28269. /* Check the PLL ready flag */
  28270. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  28271. 800c36c: 4b36 ldr r3, [pc, #216] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28272. 800c36e: 681b ldr r3, [r3, #0]
  28273. 800c370: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  28274. 800c374: 2b00 cmp r3, #0
  28275. 800c376: d115 bne.n 800c3a4 <HAL_RCC_ClockConfig+0x1a0>
  28276. {
  28277. return HAL_ERROR;
  28278. 800c378: 2301 movs r3, #1
  28279. 800c37a: e0ea b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28280. }
  28281. }
  28282. /* CSI is selected as System Clock Source */
  28283. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  28284. 800c37c: 687b ldr r3, [r7, #4]
  28285. 800c37e: 685b ldr r3, [r3, #4]
  28286. 800c380: 2b01 cmp r3, #1
  28287. 800c382: d107 bne.n 800c394 <HAL_RCC_ClockConfig+0x190>
  28288. {
  28289. /* Check the PLL ready flag */
  28290. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  28291. 800c384: 4b30 ldr r3, [pc, #192] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28292. 800c386: 681b ldr r3, [r3, #0]
  28293. 800c388: f403 7380 and.w r3, r3, #256 @ 0x100
  28294. 800c38c: 2b00 cmp r3, #0
  28295. 800c38e: d109 bne.n 800c3a4 <HAL_RCC_ClockConfig+0x1a0>
  28296. {
  28297. return HAL_ERROR;
  28298. 800c390: 2301 movs r3, #1
  28299. 800c392: e0de b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28300. }
  28301. /* HSI is selected as System Clock Source */
  28302. else
  28303. {
  28304. /* Check the HSI ready flag */
  28305. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  28306. 800c394: 4b2c ldr r3, [pc, #176] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28307. 800c396: 681b ldr r3, [r3, #0]
  28308. 800c398: f003 0304 and.w r3, r3, #4
  28309. 800c39c: 2b00 cmp r3, #0
  28310. 800c39e: d101 bne.n 800c3a4 <HAL_RCC_ClockConfig+0x1a0>
  28311. {
  28312. return HAL_ERROR;
  28313. 800c3a0: 2301 movs r3, #1
  28314. 800c3a2: e0d6 b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28315. }
  28316. }
  28317. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  28318. 800c3a4: 4b28 ldr r3, [pc, #160] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28319. 800c3a6: 691b ldr r3, [r3, #16]
  28320. 800c3a8: f023 0207 bic.w r2, r3, #7
  28321. 800c3ac: 687b ldr r3, [r7, #4]
  28322. 800c3ae: 685b ldr r3, [r3, #4]
  28323. 800c3b0: 4925 ldr r1, [pc, #148] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28324. 800c3b2: 4313 orrs r3, r2
  28325. 800c3b4: 610b str r3, [r1, #16]
  28326. /* Get Start Tick*/
  28327. tickstart = HAL_GetTick();
  28328. 800c3b6: f7f9 fd35 bl 8005e24 <HAL_GetTick>
  28329. 800c3ba: 6178 str r0, [r7, #20]
  28330. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28331. 800c3bc: e00a b.n 800c3d4 <HAL_RCC_ClockConfig+0x1d0>
  28332. {
  28333. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  28334. 800c3be: f7f9 fd31 bl 8005e24 <HAL_GetTick>
  28335. 800c3c2: 4602 mov r2, r0
  28336. 800c3c4: 697b ldr r3, [r7, #20]
  28337. 800c3c6: 1ad3 subs r3, r2, r3
  28338. 800c3c8: f241 3288 movw r2, #5000 @ 0x1388
  28339. 800c3cc: 4293 cmp r3, r2
  28340. 800c3ce: d901 bls.n 800c3d4 <HAL_RCC_ClockConfig+0x1d0>
  28341. {
  28342. return HAL_TIMEOUT;
  28343. 800c3d0: 2303 movs r3, #3
  28344. 800c3d2: e0be b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28345. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  28346. 800c3d4: 4b1c ldr r3, [pc, #112] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28347. 800c3d6: 691b ldr r3, [r3, #16]
  28348. 800c3d8: f003 0238 and.w r2, r3, #56 @ 0x38
  28349. 800c3dc: 687b ldr r3, [r7, #4]
  28350. 800c3de: 685b ldr r3, [r3, #4]
  28351. 800c3e0: 00db lsls r3, r3, #3
  28352. 800c3e2: 429a cmp r2, r3
  28353. 800c3e4: d1eb bne.n 800c3be <HAL_RCC_ClockConfig+0x1ba>
  28354. }
  28355. /* Decreasing the BUS frequency divider */
  28356. /*-------------------------- HCLK Configuration --------------------------*/
  28357. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  28358. 800c3e6: 687b ldr r3, [r7, #4]
  28359. 800c3e8: 681b ldr r3, [r3, #0]
  28360. 800c3ea: f003 0302 and.w r3, r3, #2
  28361. 800c3ee: 2b00 cmp r3, #0
  28362. 800c3f0: d010 beq.n 800c414 <HAL_RCC_ClockConfig+0x210>
  28363. {
  28364. #if defined(RCC_D1CFGR_HPRE)
  28365. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  28366. 800c3f2: 687b ldr r3, [r7, #4]
  28367. 800c3f4: 68da ldr r2, [r3, #12]
  28368. 800c3f6: 4b14 ldr r3, [pc, #80] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28369. 800c3f8: 699b ldr r3, [r3, #24]
  28370. 800c3fa: f003 030f and.w r3, r3, #15
  28371. 800c3fe: 429a cmp r2, r3
  28372. 800c400: d208 bcs.n 800c414 <HAL_RCC_ClockConfig+0x210>
  28373. {
  28374. /* Set the new HCLK clock divider */
  28375. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  28376. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  28377. 800c402: 4b11 ldr r3, [pc, #68] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28378. 800c404: 699b ldr r3, [r3, #24]
  28379. 800c406: f023 020f bic.w r2, r3, #15
  28380. 800c40a: 687b ldr r3, [r7, #4]
  28381. 800c40c: 68db ldr r3, [r3, #12]
  28382. 800c40e: 490e ldr r1, [pc, #56] @ (800c448 <HAL_RCC_ClockConfig+0x244>)
  28383. 800c410: 4313 orrs r3, r2
  28384. 800c412: 618b str r3, [r1, #24]
  28385. }
  28386. #endif
  28387. }
  28388. /* Decreasing the number of wait states because of lower CPU frequency */
  28389. if (FLatency < __HAL_FLASH_GET_LATENCY())
  28390. 800c414: 4b0b ldr r3, [pc, #44] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28391. 800c416: 681b ldr r3, [r3, #0]
  28392. 800c418: f003 030f and.w r3, r3, #15
  28393. 800c41c: 683a ldr r2, [r7, #0]
  28394. 800c41e: 429a cmp r2, r3
  28395. 800c420: d214 bcs.n 800c44c <HAL_RCC_ClockConfig+0x248>
  28396. {
  28397. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  28398. __HAL_FLASH_SET_LATENCY(FLatency);
  28399. 800c422: 4b08 ldr r3, [pc, #32] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28400. 800c424: 681b ldr r3, [r3, #0]
  28401. 800c426: f023 020f bic.w r2, r3, #15
  28402. 800c42a: 4906 ldr r1, [pc, #24] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28403. 800c42c: 683b ldr r3, [r7, #0]
  28404. 800c42e: 4313 orrs r3, r2
  28405. 800c430: 600b str r3, [r1, #0]
  28406. /* Check that the new number of wait states is taken into account to access the Flash
  28407. memory by reading the FLASH_ACR register */
  28408. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28409. 800c432: 4b04 ldr r3, [pc, #16] @ (800c444 <HAL_RCC_ClockConfig+0x240>)
  28410. 800c434: 681b ldr r3, [r3, #0]
  28411. 800c436: f003 030f and.w r3, r3, #15
  28412. 800c43a: 683a ldr r2, [r7, #0]
  28413. 800c43c: 429a cmp r2, r3
  28414. 800c43e: d005 beq.n 800c44c <HAL_RCC_ClockConfig+0x248>
  28415. {
  28416. return HAL_ERROR;
  28417. 800c440: 2301 movs r3, #1
  28418. 800c442: e086 b.n 800c552 <HAL_RCC_ClockConfig+0x34e>
  28419. 800c444: 52002000 .word 0x52002000
  28420. 800c448: 58024400 .word 0x58024400
  28421. }
  28422. }
  28423. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  28424. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28425. 800c44c: 687b ldr r3, [r7, #4]
  28426. 800c44e: 681b ldr r3, [r3, #0]
  28427. 800c450: f003 0304 and.w r3, r3, #4
  28428. 800c454: 2b00 cmp r3, #0
  28429. 800c456: d010 beq.n 800c47a <HAL_RCC_ClockConfig+0x276>
  28430. {
  28431. #if defined(RCC_D1CFGR_D1PPRE)
  28432. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28433. 800c458: 687b ldr r3, [r7, #4]
  28434. 800c45a: 691a ldr r2, [r3, #16]
  28435. 800c45c: 4b3f ldr r3, [pc, #252] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28436. 800c45e: 699b ldr r3, [r3, #24]
  28437. 800c460: f003 0370 and.w r3, r3, #112 @ 0x70
  28438. 800c464: 429a cmp r2, r3
  28439. 800c466: d208 bcs.n 800c47a <HAL_RCC_ClockConfig+0x276>
  28440. {
  28441. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28442. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28443. 800c468: 4b3c ldr r3, [pc, #240] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28444. 800c46a: 699b ldr r3, [r3, #24]
  28445. 800c46c: f023 0270 bic.w r2, r3, #112 @ 0x70
  28446. 800c470: 687b ldr r3, [r7, #4]
  28447. 800c472: 691b ldr r3, [r3, #16]
  28448. 800c474: 4939 ldr r1, [pc, #228] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28449. 800c476: 4313 orrs r3, r2
  28450. 800c478: 618b str r3, [r1, #24]
  28451. }
  28452. #endif
  28453. }
  28454. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28455. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28456. 800c47a: 687b ldr r3, [r7, #4]
  28457. 800c47c: 681b ldr r3, [r3, #0]
  28458. 800c47e: f003 0308 and.w r3, r3, #8
  28459. 800c482: 2b00 cmp r3, #0
  28460. 800c484: d010 beq.n 800c4a8 <HAL_RCC_ClockConfig+0x2a4>
  28461. {
  28462. #if defined(RCC_D2CFGR_D2PPRE1)
  28463. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28464. 800c486: 687b ldr r3, [r7, #4]
  28465. 800c488: 695a ldr r2, [r3, #20]
  28466. 800c48a: 4b34 ldr r3, [pc, #208] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28467. 800c48c: 69db ldr r3, [r3, #28]
  28468. 800c48e: f003 0370 and.w r3, r3, #112 @ 0x70
  28469. 800c492: 429a cmp r2, r3
  28470. 800c494: d208 bcs.n 800c4a8 <HAL_RCC_ClockConfig+0x2a4>
  28471. {
  28472. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28473. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28474. 800c496: 4b31 ldr r3, [pc, #196] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28475. 800c498: 69db ldr r3, [r3, #28]
  28476. 800c49a: f023 0270 bic.w r2, r3, #112 @ 0x70
  28477. 800c49e: 687b ldr r3, [r7, #4]
  28478. 800c4a0: 695b ldr r3, [r3, #20]
  28479. 800c4a2: 492e ldr r1, [pc, #184] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28480. 800c4a4: 4313 orrs r3, r2
  28481. 800c4a6: 61cb str r3, [r1, #28]
  28482. }
  28483. #endif
  28484. }
  28485. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28486. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28487. 800c4a8: 687b ldr r3, [r7, #4]
  28488. 800c4aa: 681b ldr r3, [r3, #0]
  28489. 800c4ac: f003 0310 and.w r3, r3, #16
  28490. 800c4b0: 2b00 cmp r3, #0
  28491. 800c4b2: d010 beq.n 800c4d6 <HAL_RCC_ClockConfig+0x2d2>
  28492. {
  28493. #if defined (RCC_D2CFGR_D2PPRE2)
  28494. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28495. 800c4b4: 687b ldr r3, [r7, #4]
  28496. 800c4b6: 699a ldr r2, [r3, #24]
  28497. 800c4b8: 4b28 ldr r3, [pc, #160] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28498. 800c4ba: 69db ldr r3, [r3, #28]
  28499. 800c4bc: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28500. 800c4c0: 429a cmp r2, r3
  28501. 800c4c2: d208 bcs.n 800c4d6 <HAL_RCC_ClockConfig+0x2d2>
  28502. {
  28503. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28504. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28505. 800c4c4: 4b25 ldr r3, [pc, #148] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28506. 800c4c6: 69db ldr r3, [r3, #28]
  28507. 800c4c8: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28508. 800c4cc: 687b ldr r3, [r7, #4]
  28509. 800c4ce: 699b ldr r3, [r3, #24]
  28510. 800c4d0: 4922 ldr r1, [pc, #136] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28511. 800c4d2: 4313 orrs r3, r2
  28512. 800c4d4: 61cb str r3, [r1, #28]
  28513. }
  28514. #endif
  28515. }
  28516. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  28517. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28518. 800c4d6: 687b ldr r3, [r7, #4]
  28519. 800c4d8: 681b ldr r3, [r3, #0]
  28520. 800c4da: f003 0320 and.w r3, r3, #32
  28521. 800c4de: 2b00 cmp r3, #0
  28522. 800c4e0: d010 beq.n 800c504 <HAL_RCC_ClockConfig+0x300>
  28523. {
  28524. #if defined(RCC_D3CFGR_D3PPRE)
  28525. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28526. 800c4e2: 687b ldr r3, [r7, #4]
  28527. 800c4e4: 69da ldr r2, [r3, #28]
  28528. 800c4e6: 4b1d ldr r3, [pc, #116] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28529. 800c4e8: 6a1b ldr r3, [r3, #32]
  28530. 800c4ea: f003 0370 and.w r3, r3, #112 @ 0x70
  28531. 800c4ee: 429a cmp r2, r3
  28532. 800c4f0: d208 bcs.n 800c504 <HAL_RCC_ClockConfig+0x300>
  28533. {
  28534. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28535. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28536. 800c4f2: 4b1a ldr r3, [pc, #104] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28537. 800c4f4: 6a1b ldr r3, [r3, #32]
  28538. 800c4f6: f023 0270 bic.w r2, r3, #112 @ 0x70
  28539. 800c4fa: 687b ldr r3, [r7, #4]
  28540. 800c4fc: 69db ldr r3, [r3, #28]
  28541. 800c4fe: 4917 ldr r1, [pc, #92] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28542. 800c500: 4313 orrs r3, r2
  28543. 800c502: 620b str r3, [r1, #32]
  28544. #endif
  28545. }
  28546. /* Update the SystemCoreClock global variable */
  28547. #if defined(RCC_D1CFGR_D1CPRE)
  28548. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  28549. 800c504: f000 f834 bl 800c570 <HAL_RCC_GetSysClockFreq>
  28550. 800c508: 4602 mov r2, r0
  28551. 800c50a: 4b14 ldr r3, [pc, #80] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28552. 800c50c: 699b ldr r3, [r3, #24]
  28553. 800c50e: 0a1b lsrs r3, r3, #8
  28554. 800c510: f003 030f and.w r3, r3, #15
  28555. 800c514: 4912 ldr r1, [pc, #72] @ (800c560 <HAL_RCC_ClockConfig+0x35c>)
  28556. 800c516: 5ccb ldrb r3, [r1, r3]
  28557. 800c518: f003 031f and.w r3, r3, #31
  28558. 800c51c: fa22 f303 lsr.w r3, r2, r3
  28559. 800c520: 613b str r3, [r7, #16]
  28560. #else
  28561. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  28562. #endif
  28563. #if defined(RCC_D1CFGR_HPRE)
  28564. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28565. 800c522: 4b0e ldr r3, [pc, #56] @ (800c55c <HAL_RCC_ClockConfig+0x358>)
  28566. 800c524: 699b ldr r3, [r3, #24]
  28567. 800c526: f003 030f and.w r3, r3, #15
  28568. 800c52a: 4a0d ldr r2, [pc, #52] @ (800c560 <HAL_RCC_ClockConfig+0x35c>)
  28569. 800c52c: 5cd3 ldrb r3, [r2, r3]
  28570. 800c52e: f003 031f and.w r3, r3, #31
  28571. 800c532: 693a ldr r2, [r7, #16]
  28572. 800c534: fa22 f303 lsr.w r3, r2, r3
  28573. 800c538: 4a0a ldr r2, [pc, #40] @ (800c564 <HAL_RCC_ClockConfig+0x360>)
  28574. 800c53a: 6013 str r3, [r2, #0]
  28575. #endif
  28576. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28577. SystemCoreClock = SystemD2Clock;
  28578. #else
  28579. SystemCoreClock = common_system_clock;
  28580. 800c53c: 4a0a ldr r2, [pc, #40] @ (800c568 <HAL_RCC_ClockConfig+0x364>)
  28581. 800c53e: 693b ldr r3, [r7, #16]
  28582. 800c540: 6013 str r3, [r2, #0]
  28583. #endif /* DUAL_CORE && CORE_CM4 */
  28584. /* Configure the source of time base considering new system clocks settings*/
  28585. halstatus = HAL_InitTick(uwTickPrio);
  28586. 800c542: 4b0a ldr r3, [pc, #40] @ (800c56c <HAL_RCC_ClockConfig+0x368>)
  28587. 800c544: 681b ldr r3, [r3, #0]
  28588. 800c546: 4618 mov r0, r3
  28589. 800c548: f7f8 f89c bl 8004684 <HAL_InitTick>
  28590. 800c54c: 4603 mov r3, r0
  28591. 800c54e: 73fb strb r3, [r7, #15]
  28592. return halstatus;
  28593. 800c550: 7bfb ldrb r3, [r7, #15]
  28594. }
  28595. 800c552: 4618 mov r0, r3
  28596. 800c554: 3718 adds r7, #24
  28597. 800c556: 46bd mov sp, r7
  28598. 800c558: bd80 pop {r7, pc}
  28599. 800c55a: bf00 nop
  28600. 800c55c: 58024400 .word 0x58024400
  28601. 800c560: 0801870c .word 0x0801870c
  28602. 800c564: 24000038 .word 0x24000038
  28603. 800c568: 24000034 .word 0x24000034
  28604. 800c56c: 2400003c .word 0x2400003c
  28605. 0800c570 <HAL_RCC_GetSysClockFreq>:
  28606. *
  28607. *
  28608. * @retval SYSCLK frequency
  28609. */
  28610. uint32_t HAL_RCC_GetSysClockFreq(void)
  28611. {
  28612. 800c570: b480 push {r7}
  28613. 800c572: b089 sub sp, #36 @ 0x24
  28614. 800c574: af00 add r7, sp, #0
  28615. float_t fracn1, pllvco;
  28616. uint32_t sysclockfreq;
  28617. /* Get SYSCLK source -------------------------------------------------------*/
  28618. switch (RCC->CFGR & RCC_CFGR_SWS)
  28619. 800c576: 4bb3 ldr r3, [pc, #716] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28620. 800c578: 691b ldr r3, [r3, #16]
  28621. 800c57a: f003 0338 and.w r3, r3, #56 @ 0x38
  28622. 800c57e: 2b18 cmp r3, #24
  28623. 800c580: f200 8155 bhi.w 800c82e <HAL_RCC_GetSysClockFreq+0x2be>
  28624. 800c584: a201 add r2, pc, #4 @ (adr r2, 800c58c <HAL_RCC_GetSysClockFreq+0x1c>)
  28625. 800c586: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28626. 800c58a: bf00 nop
  28627. 800c58c: 0800c5f1 .word 0x0800c5f1
  28628. 800c590: 0800c82f .word 0x0800c82f
  28629. 800c594: 0800c82f .word 0x0800c82f
  28630. 800c598: 0800c82f .word 0x0800c82f
  28631. 800c59c: 0800c82f .word 0x0800c82f
  28632. 800c5a0: 0800c82f .word 0x0800c82f
  28633. 800c5a4: 0800c82f .word 0x0800c82f
  28634. 800c5a8: 0800c82f .word 0x0800c82f
  28635. 800c5ac: 0800c617 .word 0x0800c617
  28636. 800c5b0: 0800c82f .word 0x0800c82f
  28637. 800c5b4: 0800c82f .word 0x0800c82f
  28638. 800c5b8: 0800c82f .word 0x0800c82f
  28639. 800c5bc: 0800c82f .word 0x0800c82f
  28640. 800c5c0: 0800c82f .word 0x0800c82f
  28641. 800c5c4: 0800c82f .word 0x0800c82f
  28642. 800c5c8: 0800c82f .word 0x0800c82f
  28643. 800c5cc: 0800c61d .word 0x0800c61d
  28644. 800c5d0: 0800c82f .word 0x0800c82f
  28645. 800c5d4: 0800c82f .word 0x0800c82f
  28646. 800c5d8: 0800c82f .word 0x0800c82f
  28647. 800c5dc: 0800c82f .word 0x0800c82f
  28648. 800c5e0: 0800c82f .word 0x0800c82f
  28649. 800c5e4: 0800c82f .word 0x0800c82f
  28650. 800c5e8: 0800c82f .word 0x0800c82f
  28651. 800c5ec: 0800c623 .word 0x0800c623
  28652. {
  28653. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  28654. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28655. 800c5f0: 4b94 ldr r3, [pc, #592] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28656. 800c5f2: 681b ldr r3, [r3, #0]
  28657. 800c5f4: f003 0320 and.w r3, r3, #32
  28658. 800c5f8: 2b00 cmp r3, #0
  28659. 800c5fa: d009 beq.n 800c610 <HAL_RCC_GetSysClockFreq+0xa0>
  28660. {
  28661. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28662. 800c5fc: 4b91 ldr r3, [pc, #580] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28663. 800c5fe: 681b ldr r3, [r3, #0]
  28664. 800c600: 08db lsrs r3, r3, #3
  28665. 800c602: f003 0303 and.w r3, r3, #3
  28666. 800c606: 4a90 ldr r2, [pc, #576] @ (800c848 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28667. 800c608: fa22 f303 lsr.w r3, r2, r3
  28668. 800c60c: 61bb str r3, [r7, #24]
  28669. else
  28670. {
  28671. sysclockfreq = (uint32_t) HSI_VALUE;
  28672. }
  28673. break;
  28674. 800c60e: e111 b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28675. sysclockfreq = (uint32_t) HSI_VALUE;
  28676. 800c610: 4b8d ldr r3, [pc, #564] @ (800c848 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28677. 800c612: 61bb str r3, [r7, #24]
  28678. break;
  28679. 800c614: e10e b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28680. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  28681. sysclockfreq = CSI_VALUE;
  28682. 800c616: 4b8d ldr r3, [pc, #564] @ (800c84c <HAL_RCC_GetSysClockFreq+0x2dc>)
  28683. 800c618: 61bb str r3, [r7, #24]
  28684. break;
  28685. 800c61a: e10b b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28686. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  28687. sysclockfreq = HSE_VALUE;
  28688. 800c61c: 4b8c ldr r3, [pc, #560] @ (800c850 <HAL_RCC_GetSysClockFreq+0x2e0>)
  28689. 800c61e: 61bb str r3, [r7, #24]
  28690. break;
  28691. 800c620: e108 b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28692. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  28693. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  28694. SYSCLK = PLL_VCO / PLLR
  28695. */
  28696. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28697. 800c622: 4b88 ldr r3, [pc, #544] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28698. 800c624: 6a9b ldr r3, [r3, #40] @ 0x28
  28699. 800c626: f003 0303 and.w r3, r3, #3
  28700. 800c62a: 617b str r3, [r7, #20]
  28701. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  28702. 800c62c: 4b85 ldr r3, [pc, #532] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28703. 800c62e: 6a9b ldr r3, [r3, #40] @ 0x28
  28704. 800c630: 091b lsrs r3, r3, #4
  28705. 800c632: f003 033f and.w r3, r3, #63 @ 0x3f
  28706. 800c636: 613b str r3, [r7, #16]
  28707. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  28708. 800c638: 4b82 ldr r3, [pc, #520] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28709. 800c63a: 6adb ldr r3, [r3, #44] @ 0x2c
  28710. 800c63c: f003 0301 and.w r3, r3, #1
  28711. 800c640: 60fb str r3, [r7, #12]
  28712. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  28713. 800c642: 4b80 ldr r3, [pc, #512] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28714. 800c644: 6b5b ldr r3, [r3, #52] @ 0x34
  28715. 800c646: 08db lsrs r3, r3, #3
  28716. 800c648: f3c3 030c ubfx r3, r3, #0, #13
  28717. 800c64c: 68fa ldr r2, [r7, #12]
  28718. 800c64e: fb02 f303 mul.w r3, r2, r3
  28719. 800c652: ee07 3a90 vmov s15, r3
  28720. 800c656: eef8 7a67 vcvt.f32.u32 s15, s15
  28721. 800c65a: edc7 7a02 vstr s15, [r7, #8]
  28722. if (pllm != 0U)
  28723. 800c65e: 693b ldr r3, [r7, #16]
  28724. 800c660: 2b00 cmp r3, #0
  28725. 800c662: f000 80e1 beq.w 800c828 <HAL_RCC_GetSysClockFreq+0x2b8>
  28726. 800c666: 697b ldr r3, [r7, #20]
  28727. 800c668: 2b02 cmp r3, #2
  28728. 800c66a: f000 8083 beq.w 800c774 <HAL_RCC_GetSysClockFreq+0x204>
  28729. 800c66e: 697b ldr r3, [r7, #20]
  28730. 800c670: 2b02 cmp r3, #2
  28731. 800c672: f200 80a1 bhi.w 800c7b8 <HAL_RCC_GetSysClockFreq+0x248>
  28732. 800c676: 697b ldr r3, [r7, #20]
  28733. 800c678: 2b00 cmp r3, #0
  28734. 800c67a: d003 beq.n 800c684 <HAL_RCC_GetSysClockFreq+0x114>
  28735. 800c67c: 697b ldr r3, [r7, #20]
  28736. 800c67e: 2b01 cmp r3, #1
  28737. 800c680: d056 beq.n 800c730 <HAL_RCC_GetSysClockFreq+0x1c0>
  28738. 800c682: e099 b.n 800c7b8 <HAL_RCC_GetSysClockFreq+0x248>
  28739. {
  28740. switch (pllsource)
  28741. {
  28742. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28743. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28744. 800c684: 4b6f ldr r3, [pc, #444] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28745. 800c686: 681b ldr r3, [r3, #0]
  28746. 800c688: f003 0320 and.w r3, r3, #32
  28747. 800c68c: 2b00 cmp r3, #0
  28748. 800c68e: d02d beq.n 800c6ec <HAL_RCC_GetSysClockFreq+0x17c>
  28749. {
  28750. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28751. 800c690: 4b6c ldr r3, [pc, #432] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28752. 800c692: 681b ldr r3, [r3, #0]
  28753. 800c694: 08db lsrs r3, r3, #3
  28754. 800c696: f003 0303 and.w r3, r3, #3
  28755. 800c69a: 4a6b ldr r2, [pc, #428] @ (800c848 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28756. 800c69c: fa22 f303 lsr.w r3, r2, r3
  28757. 800c6a0: 607b str r3, [r7, #4]
  28758. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28759. 800c6a2: 687b ldr r3, [r7, #4]
  28760. 800c6a4: ee07 3a90 vmov s15, r3
  28761. 800c6a8: eef8 6a67 vcvt.f32.u32 s13, s15
  28762. 800c6ac: 693b ldr r3, [r7, #16]
  28763. 800c6ae: ee07 3a90 vmov s15, r3
  28764. 800c6b2: eef8 7a67 vcvt.f32.u32 s15, s15
  28765. 800c6b6: ee86 7aa7 vdiv.f32 s14, s13, s15
  28766. 800c6ba: 4b62 ldr r3, [pc, #392] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28767. 800c6bc: 6b1b ldr r3, [r3, #48] @ 0x30
  28768. 800c6be: f3c3 0308 ubfx r3, r3, #0, #9
  28769. 800c6c2: ee07 3a90 vmov s15, r3
  28770. 800c6c6: eef8 6a67 vcvt.f32.u32 s13, s15
  28771. 800c6ca: ed97 6a02 vldr s12, [r7, #8]
  28772. 800c6ce: eddf 5a61 vldr s11, [pc, #388] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2e4>
  28773. 800c6d2: eec6 7a25 vdiv.f32 s15, s12, s11
  28774. 800c6d6: ee76 7aa7 vadd.f32 s15, s13, s15
  28775. 800c6da: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28776. 800c6de: ee77 7aa6 vadd.f32 s15, s15, s13
  28777. 800c6e2: ee67 7a27 vmul.f32 s15, s14, s15
  28778. 800c6e6: edc7 7a07 vstr s15, [r7, #28]
  28779. }
  28780. else
  28781. {
  28782. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28783. }
  28784. break;
  28785. 800c6ea: e087 b.n 800c7fc <HAL_RCC_GetSysClockFreq+0x28c>
  28786. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28787. 800c6ec: 693b ldr r3, [r7, #16]
  28788. 800c6ee: ee07 3a90 vmov s15, r3
  28789. 800c6f2: eef8 7a67 vcvt.f32.u32 s15, s15
  28790. 800c6f6: eddf 6a58 vldr s13, [pc, #352] @ 800c858 <HAL_RCC_GetSysClockFreq+0x2e8>
  28791. 800c6fa: ee86 7aa7 vdiv.f32 s14, s13, s15
  28792. 800c6fe: 4b51 ldr r3, [pc, #324] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28793. 800c700: 6b1b ldr r3, [r3, #48] @ 0x30
  28794. 800c702: f3c3 0308 ubfx r3, r3, #0, #9
  28795. 800c706: ee07 3a90 vmov s15, r3
  28796. 800c70a: eef8 6a67 vcvt.f32.u32 s13, s15
  28797. 800c70e: ed97 6a02 vldr s12, [r7, #8]
  28798. 800c712: eddf 5a50 vldr s11, [pc, #320] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2e4>
  28799. 800c716: eec6 7a25 vdiv.f32 s15, s12, s11
  28800. 800c71a: ee76 7aa7 vadd.f32 s15, s13, s15
  28801. 800c71e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28802. 800c722: ee77 7aa6 vadd.f32 s15, s15, s13
  28803. 800c726: ee67 7a27 vmul.f32 s15, s14, s15
  28804. 800c72a: edc7 7a07 vstr s15, [r7, #28]
  28805. break;
  28806. 800c72e: e065 b.n 800c7fc <HAL_RCC_GetSysClockFreq+0x28c>
  28807. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28808. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28809. 800c730: 693b ldr r3, [r7, #16]
  28810. 800c732: ee07 3a90 vmov s15, r3
  28811. 800c736: eef8 7a67 vcvt.f32.u32 s15, s15
  28812. 800c73a: eddf 6a48 vldr s13, [pc, #288] @ 800c85c <HAL_RCC_GetSysClockFreq+0x2ec>
  28813. 800c73e: ee86 7aa7 vdiv.f32 s14, s13, s15
  28814. 800c742: 4b40 ldr r3, [pc, #256] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28815. 800c744: 6b1b ldr r3, [r3, #48] @ 0x30
  28816. 800c746: f3c3 0308 ubfx r3, r3, #0, #9
  28817. 800c74a: ee07 3a90 vmov s15, r3
  28818. 800c74e: eef8 6a67 vcvt.f32.u32 s13, s15
  28819. 800c752: ed97 6a02 vldr s12, [r7, #8]
  28820. 800c756: eddf 5a3f vldr s11, [pc, #252] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2e4>
  28821. 800c75a: eec6 7a25 vdiv.f32 s15, s12, s11
  28822. 800c75e: ee76 7aa7 vadd.f32 s15, s13, s15
  28823. 800c762: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28824. 800c766: ee77 7aa6 vadd.f32 s15, s15, s13
  28825. 800c76a: ee67 7a27 vmul.f32 s15, s14, s15
  28826. 800c76e: edc7 7a07 vstr s15, [r7, #28]
  28827. break;
  28828. 800c772: e043 b.n 800c7fc <HAL_RCC_GetSysClockFreq+0x28c>
  28829. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28830. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28831. 800c774: 693b ldr r3, [r7, #16]
  28832. 800c776: ee07 3a90 vmov s15, r3
  28833. 800c77a: eef8 7a67 vcvt.f32.u32 s15, s15
  28834. 800c77e: eddf 6a38 vldr s13, [pc, #224] @ 800c860 <HAL_RCC_GetSysClockFreq+0x2f0>
  28835. 800c782: ee86 7aa7 vdiv.f32 s14, s13, s15
  28836. 800c786: 4b2f ldr r3, [pc, #188] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28837. 800c788: 6b1b ldr r3, [r3, #48] @ 0x30
  28838. 800c78a: f3c3 0308 ubfx r3, r3, #0, #9
  28839. 800c78e: ee07 3a90 vmov s15, r3
  28840. 800c792: eef8 6a67 vcvt.f32.u32 s13, s15
  28841. 800c796: ed97 6a02 vldr s12, [r7, #8]
  28842. 800c79a: eddf 5a2e vldr s11, [pc, #184] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2e4>
  28843. 800c79e: eec6 7a25 vdiv.f32 s15, s12, s11
  28844. 800c7a2: ee76 7aa7 vadd.f32 s15, s13, s15
  28845. 800c7a6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28846. 800c7aa: ee77 7aa6 vadd.f32 s15, s15, s13
  28847. 800c7ae: ee67 7a27 vmul.f32 s15, s14, s15
  28848. 800c7b2: edc7 7a07 vstr s15, [r7, #28]
  28849. break;
  28850. 800c7b6: e021 b.n 800c7fc <HAL_RCC_GetSysClockFreq+0x28c>
  28851. default:
  28852. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28853. 800c7b8: 693b ldr r3, [r7, #16]
  28854. 800c7ba: ee07 3a90 vmov s15, r3
  28855. 800c7be: eef8 7a67 vcvt.f32.u32 s15, s15
  28856. 800c7c2: eddf 6a26 vldr s13, [pc, #152] @ 800c85c <HAL_RCC_GetSysClockFreq+0x2ec>
  28857. 800c7c6: ee86 7aa7 vdiv.f32 s14, s13, s15
  28858. 800c7ca: 4b1e ldr r3, [pc, #120] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28859. 800c7cc: 6b1b ldr r3, [r3, #48] @ 0x30
  28860. 800c7ce: f3c3 0308 ubfx r3, r3, #0, #9
  28861. 800c7d2: ee07 3a90 vmov s15, r3
  28862. 800c7d6: eef8 6a67 vcvt.f32.u32 s13, s15
  28863. 800c7da: ed97 6a02 vldr s12, [r7, #8]
  28864. 800c7de: eddf 5a1d vldr s11, [pc, #116] @ 800c854 <HAL_RCC_GetSysClockFreq+0x2e4>
  28865. 800c7e2: eec6 7a25 vdiv.f32 s15, s12, s11
  28866. 800c7e6: ee76 7aa7 vadd.f32 s15, s13, s15
  28867. 800c7ea: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28868. 800c7ee: ee77 7aa6 vadd.f32 s15, s15, s13
  28869. 800c7f2: ee67 7a27 vmul.f32 s15, s14, s15
  28870. 800c7f6: edc7 7a07 vstr s15, [r7, #28]
  28871. break;
  28872. 800c7fa: bf00 nop
  28873. }
  28874. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  28875. 800c7fc: 4b11 ldr r3, [pc, #68] @ (800c844 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28876. 800c7fe: 6b1b ldr r3, [r3, #48] @ 0x30
  28877. 800c800: 0a5b lsrs r3, r3, #9
  28878. 800c802: f003 037f and.w r3, r3, #127 @ 0x7f
  28879. 800c806: 3301 adds r3, #1
  28880. 800c808: 603b str r3, [r7, #0]
  28881. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  28882. 800c80a: 683b ldr r3, [r7, #0]
  28883. 800c80c: ee07 3a90 vmov s15, r3
  28884. 800c810: eeb8 7a67 vcvt.f32.u32 s14, s15
  28885. 800c814: edd7 6a07 vldr s13, [r7, #28]
  28886. 800c818: eec6 7a87 vdiv.f32 s15, s13, s14
  28887. 800c81c: eefc 7ae7 vcvt.u32.f32 s15, s15
  28888. 800c820: ee17 3a90 vmov r3, s15
  28889. 800c824: 61bb str r3, [r7, #24]
  28890. }
  28891. else
  28892. {
  28893. sysclockfreq = 0U;
  28894. }
  28895. break;
  28896. 800c826: e005 b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28897. sysclockfreq = 0U;
  28898. 800c828: 2300 movs r3, #0
  28899. 800c82a: 61bb str r3, [r7, #24]
  28900. break;
  28901. 800c82c: e002 b.n 800c834 <HAL_RCC_GetSysClockFreq+0x2c4>
  28902. default:
  28903. sysclockfreq = CSI_VALUE;
  28904. 800c82e: 4b07 ldr r3, [pc, #28] @ (800c84c <HAL_RCC_GetSysClockFreq+0x2dc>)
  28905. 800c830: 61bb str r3, [r7, #24]
  28906. break;
  28907. 800c832: bf00 nop
  28908. }
  28909. return sysclockfreq;
  28910. 800c834: 69bb ldr r3, [r7, #24]
  28911. }
  28912. 800c836: 4618 mov r0, r3
  28913. 800c838: 3724 adds r7, #36 @ 0x24
  28914. 800c83a: 46bd mov sp, r7
  28915. 800c83c: f85d 7b04 ldr.w r7, [sp], #4
  28916. 800c840: 4770 bx lr
  28917. 800c842: bf00 nop
  28918. 800c844: 58024400 .word 0x58024400
  28919. 800c848: 03d09000 .word 0x03d09000
  28920. 800c84c: 003d0900 .word 0x003d0900
  28921. 800c850: 017d7840 .word 0x017d7840
  28922. 800c854: 46000000 .word 0x46000000
  28923. 800c858: 4c742400 .word 0x4c742400
  28924. 800c85c: 4a742400 .word 0x4a742400
  28925. 800c860: 4bbebc20 .word 0x4bbebc20
  28926. 0800c864 <HAL_RCC_GetHCLKFreq>:
  28927. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  28928. * and updated within this function
  28929. * @retval HCLK frequency
  28930. */
  28931. uint32_t HAL_RCC_GetHCLKFreq(void)
  28932. {
  28933. 800c864: b580 push {r7, lr}
  28934. 800c866: b082 sub sp, #8
  28935. 800c868: af00 add r7, sp, #0
  28936. uint32_t common_system_clock;
  28937. #if defined(RCC_D1CFGR_D1CPRE)
  28938. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  28939. 800c86a: f7ff fe81 bl 800c570 <HAL_RCC_GetSysClockFreq>
  28940. 800c86e: 4602 mov r2, r0
  28941. 800c870: 4b10 ldr r3, [pc, #64] @ (800c8b4 <HAL_RCC_GetHCLKFreq+0x50>)
  28942. 800c872: 699b ldr r3, [r3, #24]
  28943. 800c874: 0a1b lsrs r3, r3, #8
  28944. 800c876: f003 030f and.w r3, r3, #15
  28945. 800c87a: 490f ldr r1, [pc, #60] @ (800c8b8 <HAL_RCC_GetHCLKFreq+0x54>)
  28946. 800c87c: 5ccb ldrb r3, [r1, r3]
  28947. 800c87e: f003 031f and.w r3, r3, #31
  28948. 800c882: fa22 f303 lsr.w r3, r2, r3
  28949. 800c886: 607b str r3, [r7, #4]
  28950. #else
  28951. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  28952. #endif
  28953. #if defined(RCC_D1CFGR_HPRE)
  28954. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28955. 800c888: 4b0a ldr r3, [pc, #40] @ (800c8b4 <HAL_RCC_GetHCLKFreq+0x50>)
  28956. 800c88a: 699b ldr r3, [r3, #24]
  28957. 800c88c: f003 030f and.w r3, r3, #15
  28958. 800c890: 4a09 ldr r2, [pc, #36] @ (800c8b8 <HAL_RCC_GetHCLKFreq+0x54>)
  28959. 800c892: 5cd3 ldrb r3, [r2, r3]
  28960. 800c894: f003 031f and.w r3, r3, #31
  28961. 800c898: 687a ldr r2, [r7, #4]
  28962. 800c89a: fa22 f303 lsr.w r3, r2, r3
  28963. 800c89e: 4a07 ldr r2, [pc, #28] @ (800c8bc <HAL_RCC_GetHCLKFreq+0x58>)
  28964. 800c8a0: 6013 str r3, [r2, #0]
  28965. #endif
  28966. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28967. SystemCoreClock = SystemD2Clock;
  28968. #else
  28969. SystemCoreClock = common_system_clock;
  28970. 800c8a2: 4a07 ldr r2, [pc, #28] @ (800c8c0 <HAL_RCC_GetHCLKFreq+0x5c>)
  28971. 800c8a4: 687b ldr r3, [r7, #4]
  28972. 800c8a6: 6013 str r3, [r2, #0]
  28973. #endif /* DUAL_CORE && CORE_CM4 */
  28974. return SystemD2Clock;
  28975. 800c8a8: 4b04 ldr r3, [pc, #16] @ (800c8bc <HAL_RCC_GetHCLKFreq+0x58>)
  28976. 800c8aa: 681b ldr r3, [r3, #0]
  28977. }
  28978. 800c8ac: 4618 mov r0, r3
  28979. 800c8ae: 3708 adds r7, #8
  28980. 800c8b0: 46bd mov sp, r7
  28981. 800c8b2: bd80 pop {r7, pc}
  28982. 800c8b4: 58024400 .word 0x58024400
  28983. 800c8b8: 0801870c .word 0x0801870c
  28984. 800c8bc: 24000038 .word 0x24000038
  28985. 800c8c0: 24000034 .word 0x24000034
  28986. 0800c8c4 <HAL_RCC_GetPCLK1Freq>:
  28987. * @note Each time PCLK1 changes, this function must be called to update the
  28988. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  28989. * @retval PCLK1 frequency
  28990. */
  28991. uint32_t HAL_RCC_GetPCLK1Freq(void)
  28992. {
  28993. 800c8c4: b580 push {r7, lr}
  28994. 800c8c6: af00 add r7, sp, #0
  28995. #if defined (RCC_D2CFGR_D2PPRE1)
  28996. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28997. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  28998. 800c8c8: f7ff ffcc bl 800c864 <HAL_RCC_GetHCLKFreq>
  28999. 800c8cc: 4602 mov r2, r0
  29000. 800c8ce: 4b06 ldr r3, [pc, #24] @ (800c8e8 <HAL_RCC_GetPCLK1Freq+0x24>)
  29001. 800c8d0: 69db ldr r3, [r3, #28]
  29002. 800c8d2: 091b lsrs r3, r3, #4
  29003. 800c8d4: f003 0307 and.w r3, r3, #7
  29004. 800c8d8: 4904 ldr r1, [pc, #16] @ (800c8ec <HAL_RCC_GetPCLK1Freq+0x28>)
  29005. 800c8da: 5ccb ldrb r3, [r1, r3]
  29006. 800c8dc: f003 031f and.w r3, r3, #31
  29007. 800c8e0: fa22 f303 lsr.w r3, r2, r3
  29008. #else
  29009. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29010. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  29011. #endif
  29012. }
  29013. 800c8e4: 4618 mov r0, r3
  29014. 800c8e6: bd80 pop {r7, pc}
  29015. 800c8e8: 58024400 .word 0x58024400
  29016. 800c8ec: 0801870c .word 0x0801870c
  29017. 0800c8f0 <HAL_RCC_GetPCLK2Freq>:
  29018. * @note Each time PCLK2 changes, this function must be called to update the
  29019. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  29020. * @retval PCLK1 frequency
  29021. */
  29022. uint32_t HAL_RCC_GetPCLK2Freq(void)
  29023. {
  29024. 800c8f0: b580 push {r7, lr}
  29025. 800c8f2: af00 add r7, sp, #0
  29026. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  29027. #if defined(RCC_D2CFGR_D2PPRE2)
  29028. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  29029. 800c8f4: f7ff ffb6 bl 800c864 <HAL_RCC_GetHCLKFreq>
  29030. 800c8f8: 4602 mov r2, r0
  29031. 800c8fa: 4b06 ldr r3, [pc, #24] @ (800c914 <HAL_RCC_GetPCLK2Freq+0x24>)
  29032. 800c8fc: 69db ldr r3, [r3, #28]
  29033. 800c8fe: 0a1b lsrs r3, r3, #8
  29034. 800c900: f003 0307 and.w r3, r3, #7
  29035. 800c904: 4904 ldr r1, [pc, #16] @ (800c918 <HAL_RCC_GetPCLK2Freq+0x28>)
  29036. 800c906: 5ccb ldrb r3, [r1, r3]
  29037. 800c908: f003 031f and.w r3, r3, #31
  29038. 800c90c: fa22 f303 lsr.w r3, r2, r3
  29039. #else
  29040. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  29041. #endif
  29042. }
  29043. 800c910: 4618 mov r0, r3
  29044. 800c912: bd80 pop {r7, pc}
  29045. 800c914: 58024400 .word 0x58024400
  29046. 800c918: 0801870c .word 0x0801870c
  29047. 0800c91c <HAL_RCC_GetClockConfig>:
  29048. * will be configured.
  29049. * @param pFLatency: Pointer on the Flash Latency.
  29050. * @retval None
  29051. */
  29052. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  29053. {
  29054. 800c91c: b480 push {r7}
  29055. 800c91e: b083 sub sp, #12
  29056. 800c920: af00 add r7, sp, #0
  29057. 800c922: 6078 str r0, [r7, #4]
  29058. 800c924: 6039 str r1, [r7, #0]
  29059. /* Set all possible values for the Clock type parameter --------------------*/
  29060. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  29061. 800c926: 687b ldr r3, [r7, #4]
  29062. 800c928: 223f movs r2, #63 @ 0x3f
  29063. 800c92a: 601a str r2, [r3, #0]
  29064. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  29065. /* Get the SYSCLK configuration --------------------------------------------*/
  29066. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  29067. 800c92c: 4b1a ldr r3, [pc, #104] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29068. 800c92e: 691b ldr r3, [r3, #16]
  29069. 800c930: f003 0207 and.w r2, r3, #7
  29070. 800c934: 687b ldr r3, [r7, #4]
  29071. 800c936: 605a str r2, [r3, #4]
  29072. #if defined(RCC_D1CFGR_D1CPRE)
  29073. /* Get the SYSCLK configuration ----------------------------------------------*/
  29074. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  29075. 800c938: 4b17 ldr r3, [pc, #92] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29076. 800c93a: 699b ldr r3, [r3, #24]
  29077. 800c93c: f403 6270 and.w r2, r3, #3840 @ 0xf00
  29078. 800c940: 687b ldr r3, [r7, #4]
  29079. 800c942: 609a str r2, [r3, #8]
  29080. /* Get the D1HCLK configuration ----------------------------------------------*/
  29081. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  29082. 800c944: 4b14 ldr r3, [pc, #80] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29083. 800c946: 699b ldr r3, [r3, #24]
  29084. 800c948: f003 020f and.w r2, r3, #15
  29085. 800c94c: 687b ldr r3, [r7, #4]
  29086. 800c94e: 60da str r2, [r3, #12]
  29087. /* Get the APB3 configuration ----------------------------------------------*/
  29088. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  29089. 800c950: 4b11 ldr r3, [pc, #68] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29090. 800c952: 699b ldr r3, [r3, #24]
  29091. 800c954: f003 0270 and.w r2, r3, #112 @ 0x70
  29092. 800c958: 687b ldr r3, [r7, #4]
  29093. 800c95a: 611a str r2, [r3, #16]
  29094. /* Get the APB1 configuration ----------------------------------------------*/
  29095. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  29096. 800c95c: 4b0e ldr r3, [pc, #56] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29097. 800c95e: 69db ldr r3, [r3, #28]
  29098. 800c960: f003 0270 and.w r2, r3, #112 @ 0x70
  29099. 800c964: 687b ldr r3, [r7, #4]
  29100. 800c966: 615a str r2, [r3, #20]
  29101. /* Get the APB2 configuration ----------------------------------------------*/
  29102. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  29103. 800c968: 4b0b ldr r3, [pc, #44] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29104. 800c96a: 69db ldr r3, [r3, #28]
  29105. 800c96c: f403 62e0 and.w r2, r3, #1792 @ 0x700
  29106. 800c970: 687b ldr r3, [r7, #4]
  29107. 800c972: 619a str r2, [r3, #24]
  29108. /* Get the APB4 configuration ----------------------------------------------*/
  29109. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  29110. 800c974: 4b08 ldr r3, [pc, #32] @ (800c998 <HAL_RCC_GetClockConfig+0x7c>)
  29111. 800c976: 6a1b ldr r3, [r3, #32]
  29112. 800c978: f003 0270 and.w r2, r3, #112 @ 0x70
  29113. 800c97c: 687b ldr r3, [r7, #4]
  29114. 800c97e: 61da str r2, [r3, #28]
  29115. /* Get the APB4 configuration ----------------------------------------------*/
  29116. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  29117. #endif
  29118. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  29119. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  29120. 800c980: 4b06 ldr r3, [pc, #24] @ (800c99c <HAL_RCC_GetClockConfig+0x80>)
  29121. 800c982: 681b ldr r3, [r3, #0]
  29122. 800c984: f003 020f and.w r2, r3, #15
  29123. 800c988: 683b ldr r3, [r7, #0]
  29124. 800c98a: 601a str r2, [r3, #0]
  29125. }
  29126. 800c98c: bf00 nop
  29127. 800c98e: 370c adds r7, #12
  29128. 800c990: 46bd mov sp, r7
  29129. 800c992: f85d 7b04 ldr.w r7, [sp], #4
  29130. 800c996: 4770 bx lr
  29131. 800c998: 58024400 .word 0x58024400
  29132. 800c99c: 52002000 .word 0x52002000
  29133. 0800c9a0 <HAL_RCCEx_PeriphCLKConfig>:
  29134. * (*) : Available on some STM32H7 lines only.
  29135. *
  29136. * @retval HAL status
  29137. */
  29138. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  29139. {
  29140. 800c9a0: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  29141. 800c9a4: b0c8 sub sp, #288 @ 0x120
  29142. 800c9a6: af00 add r7, sp, #0
  29143. 800c9a8: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  29144. uint32_t tmpreg;
  29145. uint32_t tickstart;
  29146. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  29147. 800c9ac: 2300 movs r3, #0
  29148. 800c9ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29149. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  29150. 800c9b2: 2300 movs r3, #0
  29151. 800c9b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29152. /*---------------------------- SPDIFRX configuration -------------------------------*/
  29153. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  29154. 800c9b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29155. 800c9bc: e9d3 2300 ldrd r2, r3, [r3]
  29156. 800c9c0: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  29157. 800c9c4: 2500 movs r5, #0
  29158. 800c9c6: ea54 0305 orrs.w r3, r4, r5
  29159. 800c9ca: d049 beq.n 800ca60 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29160. {
  29161. switch (PeriphClkInit->SpdifrxClockSelection)
  29162. 800c9cc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29163. 800c9d0: 6e9b ldr r3, [r3, #104] @ 0x68
  29164. 800c9d2: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29165. 800c9d6: d02f beq.n 800ca38 <HAL_RCCEx_PeriphCLKConfig+0x98>
  29166. 800c9d8: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  29167. 800c9dc: d828 bhi.n 800ca30 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29168. 800c9de: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29169. 800c9e2: d01a beq.n 800ca1a <HAL_RCCEx_PeriphCLKConfig+0x7a>
  29170. 800c9e4: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29171. 800c9e8: d822 bhi.n 800ca30 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29172. 800c9ea: 2b00 cmp r3, #0
  29173. 800c9ec: d003 beq.n 800c9f6 <HAL_RCCEx_PeriphCLKConfig+0x56>
  29174. 800c9ee: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  29175. 800c9f2: d007 beq.n 800ca04 <HAL_RCCEx_PeriphCLKConfig+0x64>
  29176. 800c9f4: e01c b.n 800ca30 <HAL_RCCEx_PeriphCLKConfig+0x90>
  29177. {
  29178. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  29179. /* Enable PLL1Q Clock output generated form System PLL . */
  29180. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29181. 800c9f6: 4bb8 ldr r3, [pc, #736] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29182. 800c9f8: 6adb ldr r3, [r3, #44] @ 0x2c
  29183. 800c9fa: 4ab7 ldr r2, [pc, #732] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29184. 800c9fc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29185. 800ca00: 62d3 str r3, [r2, #44] @ 0x2c
  29186. /* SPDIFRX clock source configuration done later after clock selection check */
  29187. break;
  29188. 800ca02: e01a b.n 800ca3a <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29189. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  29190. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29191. 800ca04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29192. 800ca08: 3308 adds r3, #8
  29193. 800ca0a: 2102 movs r1, #2
  29194. 800ca0c: 4618 mov r0, r3
  29195. 800ca0e: f002 fb45 bl 800f09c <RCCEx_PLL2_Config>
  29196. 800ca12: 4603 mov r3, r0
  29197. 800ca14: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29198. /* SPDIFRX clock source configuration done later after clock selection check */
  29199. break;
  29200. 800ca18: e00f b.n 800ca3a <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29201. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  29202. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  29203. 800ca1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29204. 800ca1e: 3328 adds r3, #40 @ 0x28
  29205. 800ca20: 2102 movs r1, #2
  29206. 800ca22: 4618 mov r0, r3
  29207. 800ca24: f002 fbec bl 800f200 <RCCEx_PLL3_Config>
  29208. 800ca28: 4603 mov r3, r0
  29209. 800ca2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29210. /* SPDIFRX clock source configuration done later after clock selection check */
  29211. break;
  29212. 800ca2e: e004 b.n 800ca3a <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29213. /* Internal OSC clock is used as source of SPDIFRX clock*/
  29214. /* SPDIFRX clock source configuration done later after clock selection check */
  29215. break;
  29216. default:
  29217. ret = HAL_ERROR;
  29218. 800ca30: 2301 movs r3, #1
  29219. 800ca32: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29220. break;
  29221. 800ca36: e000 b.n 800ca3a <HAL_RCCEx_PeriphCLKConfig+0x9a>
  29222. break;
  29223. 800ca38: bf00 nop
  29224. }
  29225. if (ret == HAL_OK)
  29226. 800ca3a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29227. 800ca3e: 2b00 cmp r3, #0
  29228. 800ca40: d10a bne.n 800ca58 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  29229. {
  29230. /* Set the source of SPDIFRX clock*/
  29231. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  29232. 800ca42: 4ba5 ldr r3, [pc, #660] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29233. 800ca44: 6d1b ldr r3, [r3, #80] @ 0x50
  29234. 800ca46: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  29235. 800ca4a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29236. 800ca4e: 6e9b ldr r3, [r3, #104] @ 0x68
  29237. 800ca50: 4aa1 ldr r2, [pc, #644] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29238. 800ca52: 430b orrs r3, r1
  29239. 800ca54: 6513 str r3, [r2, #80] @ 0x50
  29240. 800ca56: e003 b.n 800ca60 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  29241. }
  29242. else
  29243. {
  29244. /* set overall return value */
  29245. status = ret;
  29246. 800ca58: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29247. 800ca5c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29248. }
  29249. }
  29250. /*---------------------------- SAI1 configuration -------------------------------*/
  29251. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  29252. 800ca60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29253. 800ca64: e9d3 2300 ldrd r2, r3, [r3]
  29254. 800ca68: f402 7880 and.w r8, r2, #256 @ 0x100
  29255. 800ca6c: f04f 0900 mov.w r9, #0
  29256. 800ca70: ea58 0309 orrs.w r3, r8, r9
  29257. 800ca74: d047 beq.n 800cb06 <HAL_RCCEx_PeriphCLKConfig+0x166>
  29258. {
  29259. switch (PeriphClkInit->Sai1ClockSelection)
  29260. 800ca76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29261. 800ca7a: 6d9b ldr r3, [r3, #88] @ 0x58
  29262. 800ca7c: 2b04 cmp r3, #4
  29263. 800ca7e: d82a bhi.n 800cad6 <HAL_RCCEx_PeriphCLKConfig+0x136>
  29264. 800ca80: a201 add r2, pc, #4 @ (adr r2, 800ca88 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  29265. 800ca82: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29266. 800ca86: bf00 nop
  29267. 800ca88: 0800ca9d .word 0x0800ca9d
  29268. 800ca8c: 0800caab .word 0x0800caab
  29269. 800ca90: 0800cac1 .word 0x0800cac1
  29270. 800ca94: 0800cadf .word 0x0800cadf
  29271. 800ca98: 0800cadf .word 0x0800cadf
  29272. {
  29273. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  29274. /* Enable SAI Clock output generated form System PLL . */
  29275. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29276. 800ca9c: 4b8e ldr r3, [pc, #568] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29277. 800ca9e: 6adb ldr r3, [r3, #44] @ 0x2c
  29278. 800caa0: 4a8d ldr r2, [pc, #564] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29279. 800caa2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29280. 800caa6: 62d3 str r3, [r2, #44] @ 0x2c
  29281. /* SAI1 clock source configuration done later after clock selection check */
  29282. break;
  29283. 800caa8: e01a b.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29284. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  29285. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29286. 800caaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29287. 800caae: 3308 adds r3, #8
  29288. 800cab0: 2100 movs r1, #0
  29289. 800cab2: 4618 mov r0, r3
  29290. 800cab4: f002 faf2 bl 800f09c <RCCEx_PLL2_Config>
  29291. 800cab8: 4603 mov r3, r0
  29292. 800caba: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29293. /* SAI1 clock source configuration done later after clock selection check */
  29294. break;
  29295. 800cabe: e00f b.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29296. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  29297. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29298. 800cac0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29299. 800cac4: 3328 adds r3, #40 @ 0x28
  29300. 800cac6: 2100 movs r1, #0
  29301. 800cac8: 4618 mov r0, r3
  29302. 800caca: f002 fb99 bl 800f200 <RCCEx_PLL3_Config>
  29303. 800cace: 4603 mov r3, r0
  29304. 800cad0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29305. /* SAI1 clock source configuration done later after clock selection check */
  29306. break;
  29307. 800cad4: e004 b.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29308. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  29309. /* SAI1 clock source configuration done later after clock selection check */
  29310. break;
  29311. default:
  29312. ret = HAL_ERROR;
  29313. 800cad6: 2301 movs r3, #1
  29314. 800cad8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29315. break;
  29316. 800cadc: e000 b.n 800cae0 <HAL_RCCEx_PeriphCLKConfig+0x140>
  29317. break;
  29318. 800cade: bf00 nop
  29319. }
  29320. if (ret == HAL_OK)
  29321. 800cae0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29322. 800cae4: 2b00 cmp r3, #0
  29323. 800cae6: d10a bne.n 800cafe <HAL_RCCEx_PeriphCLKConfig+0x15e>
  29324. {
  29325. /* Set the source of SAI1 clock*/
  29326. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  29327. 800cae8: 4b7b ldr r3, [pc, #492] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29328. 800caea: 6d1b ldr r3, [r3, #80] @ 0x50
  29329. 800caec: f023 0107 bic.w r1, r3, #7
  29330. 800caf0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29331. 800caf4: 6d9b ldr r3, [r3, #88] @ 0x58
  29332. 800caf6: 4a78 ldr r2, [pc, #480] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29333. 800caf8: 430b orrs r3, r1
  29334. 800cafa: 6513 str r3, [r2, #80] @ 0x50
  29335. 800cafc: e003 b.n 800cb06 <HAL_RCCEx_PeriphCLKConfig+0x166>
  29336. }
  29337. else
  29338. {
  29339. /* set overall return value */
  29340. status = ret;
  29341. 800cafe: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29342. 800cb02: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29343. }
  29344. }
  29345. #if defined(SAI3)
  29346. /*---------------------------- SAI2/3 configuration -------------------------------*/
  29347. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  29348. 800cb06: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29349. 800cb0a: e9d3 2300 ldrd r2, r3, [r3]
  29350. 800cb0e: f402 7a00 and.w sl, r2, #512 @ 0x200
  29351. 800cb12: f04f 0b00 mov.w fp, #0
  29352. 800cb16: ea5a 030b orrs.w r3, sl, fp
  29353. 800cb1a: d04c beq.n 800cbb6 <HAL_RCCEx_PeriphCLKConfig+0x216>
  29354. {
  29355. switch (PeriphClkInit->Sai23ClockSelection)
  29356. 800cb1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29357. 800cb20: 6ddb ldr r3, [r3, #92] @ 0x5c
  29358. 800cb22: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29359. 800cb26: d030 beq.n 800cb8a <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  29360. 800cb28: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29361. 800cb2c: d829 bhi.n 800cb82 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29362. 800cb2e: 2bc0 cmp r3, #192 @ 0xc0
  29363. 800cb30: d02d beq.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  29364. 800cb32: 2bc0 cmp r3, #192 @ 0xc0
  29365. 800cb34: d825 bhi.n 800cb82 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29366. 800cb36: 2b80 cmp r3, #128 @ 0x80
  29367. 800cb38: d018 beq.n 800cb6c <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  29368. 800cb3a: 2b80 cmp r3, #128 @ 0x80
  29369. 800cb3c: d821 bhi.n 800cb82 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29370. 800cb3e: 2b00 cmp r3, #0
  29371. 800cb40: d002 beq.n 800cb48 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  29372. 800cb42: 2b40 cmp r3, #64 @ 0x40
  29373. 800cb44: d007 beq.n 800cb56 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  29374. 800cb46: e01c b.n 800cb82 <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  29375. {
  29376. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  29377. /* Enable SAI Clock output generated form System PLL . */
  29378. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29379. 800cb48: 4b63 ldr r3, [pc, #396] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29380. 800cb4a: 6adb ldr r3, [r3, #44] @ 0x2c
  29381. 800cb4c: 4a62 ldr r2, [pc, #392] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29382. 800cb4e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29383. 800cb52: 62d3 str r3, [r2, #44] @ 0x2c
  29384. /* SAI2/3 clock source configuration done later after clock selection check */
  29385. break;
  29386. 800cb54: e01c b.n 800cb90 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29387. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  29388. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29389. 800cb56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29390. 800cb5a: 3308 adds r3, #8
  29391. 800cb5c: 2100 movs r1, #0
  29392. 800cb5e: 4618 mov r0, r3
  29393. 800cb60: f002 fa9c bl 800f09c <RCCEx_PLL2_Config>
  29394. 800cb64: 4603 mov r3, r0
  29395. 800cb66: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29396. /* SAI2/3 clock source configuration done later after clock selection check */
  29397. break;
  29398. 800cb6a: e011 b.n 800cb90 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29399. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  29400. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29401. 800cb6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29402. 800cb70: 3328 adds r3, #40 @ 0x28
  29403. 800cb72: 2100 movs r1, #0
  29404. 800cb74: 4618 mov r0, r3
  29405. 800cb76: f002 fb43 bl 800f200 <RCCEx_PLL3_Config>
  29406. 800cb7a: 4603 mov r3, r0
  29407. 800cb7c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29408. /* SAI2/3 clock source configuration done later after clock selection check */
  29409. break;
  29410. 800cb80: e006 b.n 800cb90 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29411. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  29412. /* SAI2/3 clock source configuration done later after clock selection check */
  29413. break;
  29414. default:
  29415. ret = HAL_ERROR;
  29416. 800cb82: 2301 movs r3, #1
  29417. 800cb84: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29418. break;
  29419. 800cb88: e002 b.n 800cb90 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29420. break;
  29421. 800cb8a: bf00 nop
  29422. 800cb8c: e000 b.n 800cb90 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29423. break;
  29424. 800cb8e: bf00 nop
  29425. }
  29426. if (ret == HAL_OK)
  29427. 800cb90: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29428. 800cb94: 2b00 cmp r3, #0
  29429. 800cb96: d10a bne.n 800cbae <HAL_RCCEx_PeriphCLKConfig+0x20e>
  29430. {
  29431. /* Set the source of SAI2/3 clock*/
  29432. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  29433. 800cb98: 4b4f ldr r3, [pc, #316] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29434. 800cb9a: 6d1b ldr r3, [r3, #80] @ 0x50
  29435. 800cb9c: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  29436. 800cba0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29437. 800cba4: 6ddb ldr r3, [r3, #92] @ 0x5c
  29438. 800cba6: 4a4c ldr r2, [pc, #304] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29439. 800cba8: 430b orrs r3, r1
  29440. 800cbaa: 6513 str r3, [r2, #80] @ 0x50
  29441. 800cbac: e003 b.n 800cbb6 <HAL_RCCEx_PeriphCLKConfig+0x216>
  29442. }
  29443. else
  29444. {
  29445. /* set overall return value */
  29446. status = ret;
  29447. 800cbae: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29448. 800cbb2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29449. }
  29450. #endif /*SAI2B*/
  29451. #if defined(SAI4)
  29452. /*---------------------------- SAI4A configuration -------------------------------*/
  29453. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  29454. 800cbb6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29455. 800cbba: e9d3 2300 ldrd r2, r3, [r3]
  29456. 800cbbe: f402 6380 and.w r3, r2, #1024 @ 0x400
  29457. 800cbc2: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  29458. 800cbc6: 2300 movs r3, #0
  29459. 800cbc8: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  29460. 800cbcc: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  29461. 800cbd0: 460b mov r3, r1
  29462. 800cbd2: 4313 orrs r3, r2
  29463. 800cbd4: d053 beq.n 800cc7e <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29464. {
  29465. switch (PeriphClkInit->Sai4AClockSelection)
  29466. 800cbd6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29467. 800cbda: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29468. 800cbde: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29469. 800cbe2: d035 beq.n 800cc50 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  29470. 800cbe4: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29471. 800cbe8: d82e bhi.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29472. 800cbea: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29473. 800cbee: d031 beq.n 800cc54 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  29474. 800cbf0: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29475. 800cbf4: d828 bhi.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29476. 800cbf6: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29477. 800cbfa: d01a beq.n 800cc32 <HAL_RCCEx_PeriphCLKConfig+0x292>
  29478. 800cbfc: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29479. 800cc00: d822 bhi.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29480. 800cc02: 2b00 cmp r3, #0
  29481. 800cc04: d003 beq.n 800cc0e <HAL_RCCEx_PeriphCLKConfig+0x26e>
  29482. 800cc06: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29483. 800cc0a: d007 beq.n 800cc1c <HAL_RCCEx_PeriphCLKConfig+0x27c>
  29484. 800cc0c: e01c b.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29485. {
  29486. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29487. /* Enable SAI Clock output generated form System PLL . */
  29488. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29489. 800cc0e: 4b32 ldr r3, [pc, #200] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29490. 800cc10: 6adb ldr r3, [r3, #44] @ 0x2c
  29491. 800cc12: 4a31 ldr r2, [pc, #196] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29492. 800cc14: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29493. 800cc18: 62d3 str r3, [r2, #44] @ 0x2c
  29494. /* SAI1 clock source configuration done later after clock selection check */
  29495. break;
  29496. 800cc1a: e01c b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29497. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29498. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29499. 800cc1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29500. 800cc20: 3308 adds r3, #8
  29501. 800cc22: 2100 movs r1, #0
  29502. 800cc24: 4618 mov r0, r3
  29503. 800cc26: f002 fa39 bl 800f09c <RCCEx_PLL2_Config>
  29504. 800cc2a: 4603 mov r3, r0
  29505. 800cc2c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29506. /* SAI2 clock source configuration done later after clock selection check */
  29507. break;
  29508. 800cc30: e011 b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29509. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29510. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29511. 800cc32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29512. 800cc36: 3328 adds r3, #40 @ 0x28
  29513. 800cc38: 2100 movs r1, #0
  29514. 800cc3a: 4618 mov r0, r3
  29515. 800cc3c: f002 fae0 bl 800f200 <RCCEx_PLL3_Config>
  29516. 800cc40: 4603 mov r3, r0
  29517. 800cc42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29518. /* SAI1 clock source configuration done later after clock selection check */
  29519. break;
  29520. 800cc46: e006 b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29521. /* SAI4A clock source configuration done later after clock selection check */
  29522. break;
  29523. #endif /* RCC_VER_3_0 */
  29524. default:
  29525. ret = HAL_ERROR;
  29526. 800cc48: 2301 movs r3, #1
  29527. 800cc4a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29528. break;
  29529. 800cc4e: e002 b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29530. break;
  29531. 800cc50: bf00 nop
  29532. 800cc52: e000 b.n 800cc56 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29533. break;
  29534. 800cc54: bf00 nop
  29535. }
  29536. if (ret == HAL_OK)
  29537. 800cc56: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29538. 800cc5a: 2b00 cmp r3, #0
  29539. 800cc5c: d10b bne.n 800cc76 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  29540. {
  29541. /* Set the source of SAI4A clock*/
  29542. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  29543. 800cc5e: 4b1e ldr r3, [pc, #120] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29544. 800cc60: 6d9b ldr r3, [r3, #88] @ 0x58
  29545. 800cc62: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  29546. 800cc66: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29547. 800cc6a: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29548. 800cc6e: 4a1a ldr r2, [pc, #104] @ (800ccd8 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29549. 800cc70: 430b orrs r3, r1
  29550. 800cc72: 6593 str r3, [r2, #88] @ 0x58
  29551. 800cc74: e003 b.n 800cc7e <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29552. }
  29553. else
  29554. {
  29555. /* set overall return value */
  29556. status = ret;
  29557. 800cc76: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29558. 800cc7a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29559. }
  29560. }
  29561. /*---------------------------- SAI4B configuration -------------------------------*/
  29562. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  29563. 800cc7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29564. 800cc82: e9d3 2300 ldrd r2, r3, [r3]
  29565. 800cc86: f402 6300 and.w r3, r2, #2048 @ 0x800
  29566. 800cc8a: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  29567. 800cc8e: 2300 movs r3, #0
  29568. 800cc90: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  29569. 800cc94: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  29570. 800cc98: 460b mov r3, r1
  29571. 800cc9a: 4313 orrs r3, r2
  29572. 800cc9c: d056 beq.n 800cd4c <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29573. {
  29574. switch (PeriphClkInit->Sai4BClockSelection)
  29575. 800cc9e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29576. 800cca2: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29577. 800cca6: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29578. 800ccaa: d038 beq.n 800cd1e <HAL_RCCEx_PeriphCLKConfig+0x37e>
  29579. 800ccac: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29580. 800ccb0: d831 bhi.n 800cd16 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29581. 800ccb2: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29582. 800ccb6: d034 beq.n 800cd22 <HAL_RCCEx_PeriphCLKConfig+0x382>
  29583. 800ccb8: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29584. 800ccbc: d82b bhi.n 800cd16 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29585. 800ccbe: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29586. 800ccc2: d01d beq.n 800cd00 <HAL_RCCEx_PeriphCLKConfig+0x360>
  29587. 800ccc4: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29588. 800ccc8: d825 bhi.n 800cd16 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29589. 800ccca: 2b00 cmp r3, #0
  29590. 800cccc: d006 beq.n 800ccdc <HAL_RCCEx_PeriphCLKConfig+0x33c>
  29591. 800ccce: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  29592. 800ccd2: d00a beq.n 800ccea <HAL_RCCEx_PeriphCLKConfig+0x34a>
  29593. 800ccd4: e01f b.n 800cd16 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29594. 800ccd6: bf00 nop
  29595. 800ccd8: 58024400 .word 0x58024400
  29596. {
  29597. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29598. /* Enable SAI Clock output generated form System PLL . */
  29599. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29600. 800ccdc: 4ba2 ldr r3, [pc, #648] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29601. 800ccde: 6adb ldr r3, [r3, #44] @ 0x2c
  29602. 800cce0: 4aa1 ldr r2, [pc, #644] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29603. 800cce2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29604. 800cce6: 62d3 str r3, [r2, #44] @ 0x2c
  29605. /* SAI1 clock source configuration done later after clock selection check */
  29606. break;
  29607. 800cce8: e01c b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29608. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29609. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29610. 800ccea: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29611. 800ccee: 3308 adds r3, #8
  29612. 800ccf0: 2100 movs r1, #0
  29613. 800ccf2: 4618 mov r0, r3
  29614. 800ccf4: f002 f9d2 bl 800f09c <RCCEx_PLL2_Config>
  29615. 800ccf8: 4603 mov r3, r0
  29616. 800ccfa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29617. /* SAI2 clock source configuration done later after clock selection check */
  29618. break;
  29619. 800ccfe: e011 b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29620. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29621. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29622. 800cd00: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29623. 800cd04: 3328 adds r3, #40 @ 0x28
  29624. 800cd06: 2100 movs r1, #0
  29625. 800cd08: 4618 mov r0, r3
  29626. 800cd0a: f002 fa79 bl 800f200 <RCCEx_PLL3_Config>
  29627. 800cd0e: 4603 mov r3, r0
  29628. 800cd10: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29629. /* SAI1 clock source configuration done later after clock selection check */
  29630. break;
  29631. 800cd14: e006 b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29632. /* SAI4B clock source configuration done later after clock selection check */
  29633. break;
  29634. #endif /* RCC_VER_3_0 */
  29635. default:
  29636. ret = HAL_ERROR;
  29637. 800cd16: 2301 movs r3, #1
  29638. 800cd18: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29639. break;
  29640. 800cd1c: e002 b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29641. break;
  29642. 800cd1e: bf00 nop
  29643. 800cd20: e000 b.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29644. break;
  29645. 800cd22: bf00 nop
  29646. }
  29647. if (ret == HAL_OK)
  29648. 800cd24: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29649. 800cd28: 2b00 cmp r3, #0
  29650. 800cd2a: d10b bne.n 800cd44 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  29651. {
  29652. /* Set the source of SAI4B clock*/
  29653. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  29654. 800cd2c: 4b8e ldr r3, [pc, #568] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29655. 800cd2e: 6d9b ldr r3, [r3, #88] @ 0x58
  29656. 800cd30: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  29657. 800cd34: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29658. 800cd38: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29659. 800cd3c: 4a8a ldr r2, [pc, #552] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29660. 800cd3e: 430b orrs r3, r1
  29661. 800cd40: 6593 str r3, [r2, #88] @ 0x58
  29662. 800cd42: e003 b.n 800cd4c <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29663. }
  29664. else
  29665. {
  29666. /* set overall return value */
  29667. status = ret;
  29668. 800cd44: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29669. 800cd48: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29670. }
  29671. #endif /*SAI4*/
  29672. #if defined(QUADSPI)
  29673. /*---------------------------- QSPI configuration -------------------------------*/
  29674. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  29675. 800cd4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29676. 800cd50: e9d3 2300 ldrd r2, r3, [r3]
  29677. 800cd54: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  29678. 800cd58: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  29679. 800cd5c: 2300 movs r3, #0
  29680. 800cd5e: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  29681. 800cd62: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  29682. 800cd66: 460b mov r3, r1
  29683. 800cd68: 4313 orrs r3, r2
  29684. 800cd6a: d03a beq.n 800cde2 <HAL_RCCEx_PeriphCLKConfig+0x442>
  29685. {
  29686. switch (PeriphClkInit->QspiClockSelection)
  29687. 800cd6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29688. 800cd70: 6cdb ldr r3, [r3, #76] @ 0x4c
  29689. 800cd72: 2b30 cmp r3, #48 @ 0x30
  29690. 800cd74: d01f beq.n 800cdb6 <HAL_RCCEx_PeriphCLKConfig+0x416>
  29691. 800cd76: 2b30 cmp r3, #48 @ 0x30
  29692. 800cd78: d819 bhi.n 800cdae <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29693. 800cd7a: 2b20 cmp r3, #32
  29694. 800cd7c: d00c beq.n 800cd98 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  29695. 800cd7e: 2b20 cmp r3, #32
  29696. 800cd80: d815 bhi.n 800cdae <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29697. 800cd82: 2b00 cmp r3, #0
  29698. 800cd84: d019 beq.n 800cdba <HAL_RCCEx_PeriphCLKConfig+0x41a>
  29699. 800cd86: 2b10 cmp r3, #16
  29700. 800cd88: d111 bne.n 800cdae <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29701. {
  29702. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  29703. /* Enable QSPI Clock output generated form System PLL . */
  29704. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29705. 800cd8a: 4b77 ldr r3, [pc, #476] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29706. 800cd8c: 6adb ldr r3, [r3, #44] @ 0x2c
  29707. 800cd8e: 4a76 ldr r2, [pc, #472] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29708. 800cd90: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29709. 800cd94: 62d3 str r3, [r2, #44] @ 0x2c
  29710. /* QSPI clock source configuration done later after clock selection check */
  29711. break;
  29712. 800cd96: e011 b.n 800cdbc <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29713. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  29714. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29715. 800cd98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29716. 800cd9c: 3308 adds r3, #8
  29717. 800cd9e: 2102 movs r1, #2
  29718. 800cda0: 4618 mov r0, r3
  29719. 800cda2: f002 f97b bl 800f09c <RCCEx_PLL2_Config>
  29720. 800cda6: 4603 mov r3, r0
  29721. 800cda8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29722. /* QSPI clock source configuration done later after clock selection check */
  29723. break;
  29724. 800cdac: e006 b.n 800cdbc <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29725. case RCC_QSPICLKSOURCE_D1HCLK:
  29726. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  29727. break;
  29728. default:
  29729. ret = HAL_ERROR;
  29730. 800cdae: 2301 movs r3, #1
  29731. 800cdb0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29732. break;
  29733. 800cdb4: e002 b.n 800cdbc <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29734. break;
  29735. 800cdb6: bf00 nop
  29736. 800cdb8: e000 b.n 800cdbc <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29737. break;
  29738. 800cdba: bf00 nop
  29739. }
  29740. if (ret == HAL_OK)
  29741. 800cdbc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29742. 800cdc0: 2b00 cmp r3, #0
  29743. 800cdc2: d10a bne.n 800cdda <HAL_RCCEx_PeriphCLKConfig+0x43a>
  29744. {
  29745. /* Set the source of QSPI clock*/
  29746. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  29747. 800cdc4: 4b68 ldr r3, [pc, #416] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29748. 800cdc6: 6cdb ldr r3, [r3, #76] @ 0x4c
  29749. 800cdc8: f023 0130 bic.w r1, r3, #48 @ 0x30
  29750. 800cdcc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29751. 800cdd0: 6cdb ldr r3, [r3, #76] @ 0x4c
  29752. 800cdd2: 4a65 ldr r2, [pc, #404] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29753. 800cdd4: 430b orrs r3, r1
  29754. 800cdd6: 64d3 str r3, [r2, #76] @ 0x4c
  29755. 800cdd8: e003 b.n 800cde2 <HAL_RCCEx_PeriphCLKConfig+0x442>
  29756. }
  29757. else
  29758. {
  29759. /* set overall return value */
  29760. status = ret;
  29761. 800cdda: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29762. 800cdde: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29763. }
  29764. }
  29765. #endif /*OCTOSPI*/
  29766. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  29767. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  29768. 800cde2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29769. 800cde6: e9d3 2300 ldrd r2, r3, [r3]
  29770. 800cdea: f402 5380 and.w r3, r2, #4096 @ 0x1000
  29771. 800cdee: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  29772. 800cdf2: 2300 movs r3, #0
  29773. 800cdf4: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  29774. 800cdf8: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  29775. 800cdfc: 460b mov r3, r1
  29776. 800cdfe: 4313 orrs r3, r2
  29777. 800ce00: d051 beq.n 800cea6 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29778. {
  29779. switch (PeriphClkInit->Spi123ClockSelection)
  29780. 800ce02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29781. 800ce06: 6e1b ldr r3, [r3, #96] @ 0x60
  29782. 800ce08: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29783. 800ce0c: d035 beq.n 800ce7a <HAL_RCCEx_PeriphCLKConfig+0x4da>
  29784. 800ce0e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29785. 800ce12: d82e bhi.n 800ce72 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29786. 800ce14: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29787. 800ce18: d031 beq.n 800ce7e <HAL_RCCEx_PeriphCLKConfig+0x4de>
  29788. 800ce1a: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29789. 800ce1e: d828 bhi.n 800ce72 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29790. 800ce20: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29791. 800ce24: d01a beq.n 800ce5c <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  29792. 800ce26: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29793. 800ce2a: d822 bhi.n 800ce72 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29794. 800ce2c: 2b00 cmp r3, #0
  29795. 800ce2e: d003 beq.n 800ce38 <HAL_RCCEx_PeriphCLKConfig+0x498>
  29796. 800ce30: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29797. 800ce34: d007 beq.n 800ce46 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  29798. 800ce36: e01c b.n 800ce72 <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29799. {
  29800. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  29801. /* Enable SPI Clock output generated form System PLL . */
  29802. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29803. 800ce38: 4b4b ldr r3, [pc, #300] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29804. 800ce3a: 6adb ldr r3, [r3, #44] @ 0x2c
  29805. 800ce3c: 4a4a ldr r2, [pc, #296] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29806. 800ce3e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29807. 800ce42: 62d3 str r3, [r2, #44] @ 0x2c
  29808. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29809. break;
  29810. 800ce44: e01c b.n 800ce80 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29811. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  29812. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29813. 800ce46: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29814. 800ce4a: 3308 adds r3, #8
  29815. 800ce4c: 2100 movs r1, #0
  29816. 800ce4e: 4618 mov r0, r3
  29817. 800ce50: f002 f924 bl 800f09c <RCCEx_PLL2_Config>
  29818. 800ce54: 4603 mov r3, r0
  29819. 800ce56: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29820. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29821. break;
  29822. 800ce5a: e011 b.n 800ce80 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29823. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  29824. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29825. 800ce5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29826. 800ce60: 3328 adds r3, #40 @ 0x28
  29827. 800ce62: 2100 movs r1, #0
  29828. 800ce64: 4618 mov r0, r3
  29829. 800ce66: f002 f9cb bl 800f200 <RCCEx_PLL3_Config>
  29830. 800ce6a: 4603 mov r3, r0
  29831. 800ce6c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29832. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29833. break;
  29834. 800ce70: e006 b.n 800ce80 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29835. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  29836. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29837. break;
  29838. default:
  29839. ret = HAL_ERROR;
  29840. 800ce72: 2301 movs r3, #1
  29841. 800ce74: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29842. break;
  29843. 800ce78: e002 b.n 800ce80 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29844. break;
  29845. 800ce7a: bf00 nop
  29846. 800ce7c: e000 b.n 800ce80 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29847. break;
  29848. 800ce7e: bf00 nop
  29849. }
  29850. if (ret == HAL_OK)
  29851. 800ce80: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29852. 800ce84: 2b00 cmp r3, #0
  29853. 800ce86: d10a bne.n 800ce9e <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  29854. {
  29855. /* Set the source of SPI1/2/3 clock*/
  29856. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  29857. 800ce88: 4b37 ldr r3, [pc, #220] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29858. 800ce8a: 6d1b ldr r3, [r3, #80] @ 0x50
  29859. 800ce8c: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  29860. 800ce90: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29861. 800ce94: 6e1b ldr r3, [r3, #96] @ 0x60
  29862. 800ce96: 4a34 ldr r2, [pc, #208] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29863. 800ce98: 430b orrs r3, r1
  29864. 800ce9a: 6513 str r3, [r2, #80] @ 0x50
  29865. 800ce9c: e003 b.n 800cea6 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29866. }
  29867. else
  29868. {
  29869. /* set overall return value */
  29870. status = ret;
  29871. 800ce9e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29872. 800cea2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29873. }
  29874. }
  29875. /*---------------------------- SPI4/5 configuration -------------------------------*/
  29876. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  29877. 800cea6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29878. 800ceaa: e9d3 2300 ldrd r2, r3, [r3]
  29879. 800ceae: f402 5300 and.w r3, r2, #8192 @ 0x2000
  29880. 800ceb2: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29881. 800ceb6: 2300 movs r3, #0
  29882. 800ceb8: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29883. 800cebc: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  29884. 800cec0: 460b mov r3, r1
  29885. 800cec2: 4313 orrs r3, r2
  29886. 800cec4: d056 beq.n 800cf74 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29887. {
  29888. switch (PeriphClkInit->Spi45ClockSelection)
  29889. 800cec6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29890. 800ceca: 6e5b ldr r3, [r3, #100] @ 0x64
  29891. 800cecc: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29892. 800ced0: d033 beq.n 800cf3a <HAL_RCCEx_PeriphCLKConfig+0x59a>
  29893. 800ced2: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29894. 800ced6: d82c bhi.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29895. 800ced8: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29896. 800cedc: d02f beq.n 800cf3e <HAL_RCCEx_PeriphCLKConfig+0x59e>
  29897. 800cede: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29898. 800cee2: d826 bhi.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29899. 800cee4: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29900. 800cee8: d02b beq.n 800cf42 <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  29901. 800ceea: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29902. 800ceee: d820 bhi.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29903. 800cef0: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29904. 800cef4: d012 beq.n 800cf1c <HAL_RCCEx_PeriphCLKConfig+0x57c>
  29905. 800cef6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29906. 800cefa: d81a bhi.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29907. 800cefc: 2b00 cmp r3, #0
  29908. 800cefe: d022 beq.n 800cf46 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  29909. 800cf00: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29910. 800cf04: d115 bne.n 800cf32 <HAL_RCCEx_PeriphCLKConfig+0x592>
  29911. /* SPI4/5 clock source configuration done later after clock selection check */
  29912. break;
  29913. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  29914. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29915. 800cf06: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29916. 800cf0a: 3308 adds r3, #8
  29917. 800cf0c: 2101 movs r1, #1
  29918. 800cf0e: 4618 mov r0, r3
  29919. 800cf10: f002 f8c4 bl 800f09c <RCCEx_PLL2_Config>
  29920. 800cf14: 4603 mov r3, r0
  29921. 800cf16: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29922. /* SPI4/5 clock source configuration done later after clock selection check */
  29923. break;
  29924. 800cf1a: e015 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29925. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  29926. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29927. 800cf1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29928. 800cf20: 3328 adds r3, #40 @ 0x28
  29929. 800cf22: 2101 movs r1, #1
  29930. 800cf24: 4618 mov r0, r3
  29931. 800cf26: f002 f96b bl 800f200 <RCCEx_PLL3_Config>
  29932. 800cf2a: 4603 mov r3, r0
  29933. 800cf2c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29934. /* SPI4/5 clock source configuration done later after clock selection check */
  29935. break;
  29936. 800cf30: e00a b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29937. /* HSE, oscillator is used as source of SPI4/5 clock */
  29938. /* SPI4/5 clock source configuration done later after clock selection check */
  29939. break;
  29940. default:
  29941. ret = HAL_ERROR;
  29942. 800cf32: 2301 movs r3, #1
  29943. 800cf34: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29944. break;
  29945. 800cf38: e006 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29946. break;
  29947. 800cf3a: bf00 nop
  29948. 800cf3c: e004 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29949. break;
  29950. 800cf3e: bf00 nop
  29951. 800cf40: e002 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29952. break;
  29953. 800cf42: bf00 nop
  29954. 800cf44: e000 b.n 800cf48 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29955. break;
  29956. 800cf46: bf00 nop
  29957. }
  29958. if (ret == HAL_OK)
  29959. 800cf48: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29960. 800cf4c: 2b00 cmp r3, #0
  29961. 800cf4e: d10d bne.n 800cf6c <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  29962. {
  29963. /* Set the source of SPI4/5 clock*/
  29964. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  29965. 800cf50: 4b05 ldr r3, [pc, #20] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29966. 800cf52: 6d1b ldr r3, [r3, #80] @ 0x50
  29967. 800cf54: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  29968. 800cf58: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29969. 800cf5c: 6e5b ldr r3, [r3, #100] @ 0x64
  29970. 800cf5e: 4a02 ldr r2, [pc, #8] @ (800cf68 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29971. 800cf60: 430b orrs r3, r1
  29972. 800cf62: 6513 str r3, [r2, #80] @ 0x50
  29973. 800cf64: e006 b.n 800cf74 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29974. 800cf66: bf00 nop
  29975. 800cf68: 58024400 .word 0x58024400
  29976. }
  29977. else
  29978. {
  29979. /* set overall return value */
  29980. status = ret;
  29981. 800cf6c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29982. 800cf70: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29983. }
  29984. }
  29985. /*---------------------------- SPI6 configuration -------------------------------*/
  29986. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  29987. 800cf74: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29988. 800cf78: e9d3 2300 ldrd r2, r3, [r3]
  29989. 800cf7c: f402 4380 and.w r3, r2, #16384 @ 0x4000
  29990. 800cf80: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  29991. 800cf84: 2300 movs r3, #0
  29992. 800cf86: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  29993. 800cf8a: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  29994. 800cf8e: 460b mov r3, r1
  29995. 800cf90: 4313 orrs r3, r2
  29996. 800cf92: d055 beq.n 800d040 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29997. {
  29998. switch (PeriphClkInit->Spi6ClockSelection)
  29999. 800cf94: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30000. 800cf98: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30001. 800cf9c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30002. 800cfa0: d033 beq.n 800d00a <HAL_RCCEx_PeriphCLKConfig+0x66a>
  30003. 800cfa2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30004. 800cfa6: d82c bhi.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30005. 800cfa8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30006. 800cfac: d02f beq.n 800d00e <HAL_RCCEx_PeriphCLKConfig+0x66e>
  30007. 800cfae: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30008. 800cfb2: d826 bhi.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30009. 800cfb4: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30010. 800cfb8: d02b beq.n 800d012 <HAL_RCCEx_PeriphCLKConfig+0x672>
  30011. 800cfba: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30012. 800cfbe: d820 bhi.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30013. 800cfc0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30014. 800cfc4: d012 beq.n 800cfec <HAL_RCCEx_PeriphCLKConfig+0x64c>
  30015. 800cfc6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30016. 800cfca: d81a bhi.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30017. 800cfcc: 2b00 cmp r3, #0
  30018. 800cfce: d022 beq.n 800d016 <HAL_RCCEx_PeriphCLKConfig+0x676>
  30019. 800cfd0: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30020. 800cfd4: d115 bne.n 800d002 <HAL_RCCEx_PeriphCLKConfig+0x662>
  30021. /* SPI6 clock source configuration done later after clock selection check */
  30022. break;
  30023. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  30024. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30025. 800cfd6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30026. 800cfda: 3308 adds r3, #8
  30027. 800cfdc: 2101 movs r1, #1
  30028. 800cfde: 4618 mov r0, r3
  30029. 800cfe0: f002 f85c bl 800f09c <RCCEx_PLL2_Config>
  30030. 800cfe4: 4603 mov r3, r0
  30031. 800cfe6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30032. /* SPI6 clock source configuration done later after clock selection check */
  30033. break;
  30034. 800cfea: e015 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30035. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  30036. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30037. 800cfec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30038. 800cff0: 3328 adds r3, #40 @ 0x28
  30039. 800cff2: 2101 movs r1, #1
  30040. 800cff4: 4618 mov r0, r3
  30041. 800cff6: f002 f903 bl 800f200 <RCCEx_PLL3_Config>
  30042. 800cffa: 4603 mov r3, r0
  30043. 800cffc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30044. /* SPI6 clock source configuration done later after clock selection check */
  30045. break;
  30046. 800d000: e00a b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30047. /* SPI6 clock source configuration done later after clock selection check */
  30048. break;
  30049. #endif
  30050. default:
  30051. ret = HAL_ERROR;
  30052. 800d002: 2301 movs r3, #1
  30053. 800d004: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30054. break;
  30055. 800d008: e006 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30056. break;
  30057. 800d00a: bf00 nop
  30058. 800d00c: e004 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30059. break;
  30060. 800d00e: bf00 nop
  30061. 800d010: e002 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30062. break;
  30063. 800d012: bf00 nop
  30064. 800d014: e000 b.n 800d018 <HAL_RCCEx_PeriphCLKConfig+0x678>
  30065. break;
  30066. 800d016: bf00 nop
  30067. }
  30068. if (ret == HAL_OK)
  30069. 800d018: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30070. 800d01c: 2b00 cmp r3, #0
  30071. 800d01e: d10b bne.n 800d038 <HAL_RCCEx_PeriphCLKConfig+0x698>
  30072. {
  30073. /* Set the source of SPI6 clock*/
  30074. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  30075. 800d020: 4ba3 ldr r3, [pc, #652] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30076. 800d022: 6d9b ldr r3, [r3, #88] @ 0x58
  30077. 800d024: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30078. 800d028: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30079. 800d02c: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  30080. 800d030: 4a9f ldr r2, [pc, #636] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30081. 800d032: 430b orrs r3, r1
  30082. 800d034: 6593 str r3, [r2, #88] @ 0x58
  30083. 800d036: e003 b.n 800d040 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  30084. }
  30085. else
  30086. {
  30087. /* set overall return value */
  30088. status = ret;
  30089. 800d038: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30090. 800d03c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30091. }
  30092. #endif /*DSI*/
  30093. #if defined(FDCAN1) || defined(FDCAN2)
  30094. /*---------------------------- FDCAN configuration -------------------------------*/
  30095. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  30096. 800d040: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30097. 800d044: e9d3 2300 ldrd r2, r3, [r3]
  30098. 800d048: f402 4300 and.w r3, r2, #32768 @ 0x8000
  30099. 800d04c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  30100. 800d050: 2300 movs r3, #0
  30101. 800d052: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  30102. 800d056: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  30103. 800d05a: 460b mov r3, r1
  30104. 800d05c: 4313 orrs r3, r2
  30105. 800d05e: d037 beq.n 800d0d0 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30106. {
  30107. switch (PeriphClkInit->FdcanClockSelection)
  30108. 800d060: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30109. 800d064: 6f1b ldr r3, [r3, #112] @ 0x70
  30110. 800d066: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30111. 800d06a: d00e beq.n 800d08a <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  30112. 800d06c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30113. 800d070: d816 bhi.n 800d0a0 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30114. 800d072: 2b00 cmp r3, #0
  30115. 800d074: d018 beq.n 800d0a8 <HAL_RCCEx_PeriphCLKConfig+0x708>
  30116. 800d076: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30117. 800d07a: d111 bne.n 800d0a0 <HAL_RCCEx_PeriphCLKConfig+0x700>
  30118. {
  30119. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  30120. /* Enable FDCAN Clock output generated form System PLL . */
  30121. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30122. 800d07c: 4b8c ldr r3, [pc, #560] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30123. 800d07e: 6adb ldr r3, [r3, #44] @ 0x2c
  30124. 800d080: 4a8b ldr r2, [pc, #556] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30125. 800d082: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30126. 800d086: 62d3 str r3, [r2, #44] @ 0x2c
  30127. /* FDCAN clock source configuration done later after clock selection check */
  30128. break;
  30129. 800d088: e00f b.n 800d0aa <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30130. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  30131. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30132. 800d08a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30133. 800d08e: 3308 adds r3, #8
  30134. 800d090: 2101 movs r1, #1
  30135. 800d092: 4618 mov r0, r3
  30136. 800d094: f002 f802 bl 800f09c <RCCEx_PLL2_Config>
  30137. 800d098: 4603 mov r3, r0
  30138. 800d09a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30139. /* FDCAN clock source configuration done later after clock selection check */
  30140. break;
  30141. 800d09e: e004 b.n 800d0aa <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30142. /* HSE is used as clock source for FDCAN*/
  30143. /* FDCAN clock source configuration done later after clock selection check */
  30144. break;
  30145. default:
  30146. ret = HAL_ERROR;
  30147. 800d0a0: 2301 movs r3, #1
  30148. 800d0a2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30149. break;
  30150. 800d0a6: e000 b.n 800d0aa <HAL_RCCEx_PeriphCLKConfig+0x70a>
  30151. break;
  30152. 800d0a8: bf00 nop
  30153. }
  30154. if (ret == HAL_OK)
  30155. 800d0aa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30156. 800d0ae: 2b00 cmp r3, #0
  30157. 800d0b0: d10a bne.n 800d0c8 <HAL_RCCEx_PeriphCLKConfig+0x728>
  30158. {
  30159. /* Set the source of FDCAN clock*/
  30160. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  30161. 800d0b2: 4b7f ldr r3, [pc, #508] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30162. 800d0b4: 6d1b ldr r3, [r3, #80] @ 0x50
  30163. 800d0b6: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  30164. 800d0ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30165. 800d0be: 6f1b ldr r3, [r3, #112] @ 0x70
  30166. 800d0c0: 4a7b ldr r2, [pc, #492] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30167. 800d0c2: 430b orrs r3, r1
  30168. 800d0c4: 6513 str r3, [r2, #80] @ 0x50
  30169. 800d0c6: e003 b.n 800d0d0 <HAL_RCCEx_PeriphCLKConfig+0x730>
  30170. }
  30171. else
  30172. {
  30173. /* set overall return value */
  30174. status = ret;
  30175. 800d0c8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30176. 800d0cc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30177. }
  30178. }
  30179. #endif /*FDCAN1 || FDCAN2*/
  30180. /*---------------------------- FMC configuration -------------------------------*/
  30181. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  30182. 800d0d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30183. 800d0d4: e9d3 2300 ldrd r2, r3, [r3]
  30184. 800d0d8: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  30185. 800d0dc: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  30186. 800d0e0: 2300 movs r3, #0
  30187. 800d0e2: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  30188. 800d0e6: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  30189. 800d0ea: 460b mov r3, r1
  30190. 800d0ec: 4313 orrs r3, r2
  30191. 800d0ee: d039 beq.n 800d164 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30192. {
  30193. switch (PeriphClkInit->FmcClockSelection)
  30194. 800d0f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30195. 800d0f4: 6c9b ldr r3, [r3, #72] @ 0x48
  30196. 800d0f6: 2b03 cmp r3, #3
  30197. 800d0f8: d81c bhi.n 800d134 <HAL_RCCEx_PeriphCLKConfig+0x794>
  30198. 800d0fa: a201 add r2, pc, #4 @ (adr r2, 800d100 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  30199. 800d0fc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30200. 800d100: 0800d13d .word 0x0800d13d
  30201. 800d104: 0800d111 .word 0x0800d111
  30202. 800d108: 0800d11f .word 0x0800d11f
  30203. 800d10c: 0800d13d .word 0x0800d13d
  30204. {
  30205. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  30206. /* Enable FMC Clock output generated form System PLL . */
  30207. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30208. 800d110: 4b67 ldr r3, [pc, #412] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30209. 800d112: 6adb ldr r3, [r3, #44] @ 0x2c
  30210. 800d114: 4a66 ldr r2, [pc, #408] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30211. 800d116: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30212. 800d11a: 62d3 str r3, [r2, #44] @ 0x2c
  30213. /* FMC clock source configuration done later after clock selection check */
  30214. break;
  30215. 800d11c: e00f b.n 800d13e <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30216. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  30217. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30218. 800d11e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30219. 800d122: 3308 adds r3, #8
  30220. 800d124: 2102 movs r1, #2
  30221. 800d126: 4618 mov r0, r3
  30222. 800d128: f001 ffb8 bl 800f09c <RCCEx_PLL2_Config>
  30223. 800d12c: 4603 mov r3, r0
  30224. 800d12e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30225. /* FMC clock source configuration done later after clock selection check */
  30226. break;
  30227. 800d132: e004 b.n 800d13e <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30228. case RCC_FMCCLKSOURCE_HCLK:
  30229. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  30230. break;
  30231. default:
  30232. ret = HAL_ERROR;
  30233. 800d134: 2301 movs r3, #1
  30234. 800d136: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30235. break;
  30236. 800d13a: e000 b.n 800d13e <HAL_RCCEx_PeriphCLKConfig+0x79e>
  30237. break;
  30238. 800d13c: bf00 nop
  30239. }
  30240. if (ret == HAL_OK)
  30241. 800d13e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30242. 800d142: 2b00 cmp r3, #0
  30243. 800d144: d10a bne.n 800d15c <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  30244. {
  30245. /* Set the source of FMC clock*/
  30246. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  30247. 800d146: 4b5a ldr r3, [pc, #360] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30248. 800d148: 6cdb ldr r3, [r3, #76] @ 0x4c
  30249. 800d14a: f023 0103 bic.w r1, r3, #3
  30250. 800d14e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30251. 800d152: 6c9b ldr r3, [r3, #72] @ 0x48
  30252. 800d154: 4a56 ldr r2, [pc, #344] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30253. 800d156: 430b orrs r3, r1
  30254. 800d158: 64d3 str r3, [r2, #76] @ 0x4c
  30255. 800d15a: e003 b.n 800d164 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  30256. }
  30257. else
  30258. {
  30259. /* set overall return value */
  30260. status = ret;
  30261. 800d15c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30262. 800d160: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30263. }
  30264. }
  30265. /*---------------------------- RTC configuration -------------------------------*/
  30266. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  30267. 800d164: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30268. 800d168: e9d3 2300 ldrd r2, r3, [r3]
  30269. 800d16c: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  30270. 800d170: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  30271. 800d174: 2300 movs r3, #0
  30272. 800d176: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  30273. 800d17a: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  30274. 800d17e: 460b mov r3, r1
  30275. 800d180: 4313 orrs r3, r2
  30276. 800d182: f000 809f beq.w 800d2c4 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30277. {
  30278. /* check for RTC Parameters used to output RTCCLK */
  30279. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  30280. /* Enable write access to Backup domain */
  30281. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  30282. 800d186: 4b4b ldr r3, [pc, #300] @ (800d2b4 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30283. 800d188: 681b ldr r3, [r3, #0]
  30284. 800d18a: 4a4a ldr r2, [pc, #296] @ (800d2b4 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30285. 800d18c: f443 7380 orr.w r3, r3, #256 @ 0x100
  30286. 800d190: 6013 str r3, [r2, #0]
  30287. /* Wait for Backup domain Write protection disable */
  30288. tickstart = HAL_GetTick();
  30289. 800d192: f7f8 fe47 bl 8005e24 <HAL_GetTick>
  30290. 800d196: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30291. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30292. 800d19a: e00b b.n 800d1b4 <HAL_RCCEx_PeriphCLKConfig+0x814>
  30293. {
  30294. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  30295. 800d19c: f7f8 fe42 bl 8005e24 <HAL_GetTick>
  30296. 800d1a0: 4602 mov r2, r0
  30297. 800d1a2: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30298. 800d1a6: 1ad3 subs r3, r2, r3
  30299. 800d1a8: 2b64 cmp r3, #100 @ 0x64
  30300. 800d1aa: d903 bls.n 800d1b4 <HAL_RCCEx_PeriphCLKConfig+0x814>
  30301. {
  30302. ret = HAL_TIMEOUT;
  30303. 800d1ac: 2303 movs r3, #3
  30304. 800d1ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30305. break;
  30306. 800d1b2: e005 b.n 800d1c0 <HAL_RCCEx_PeriphCLKConfig+0x820>
  30307. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  30308. 800d1b4: 4b3f ldr r3, [pc, #252] @ (800d2b4 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  30309. 800d1b6: 681b ldr r3, [r3, #0]
  30310. 800d1b8: f403 7380 and.w r3, r3, #256 @ 0x100
  30311. 800d1bc: 2b00 cmp r3, #0
  30312. 800d1be: d0ed beq.n 800d19c <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  30313. }
  30314. }
  30315. if (ret == HAL_OK)
  30316. 800d1c0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30317. 800d1c4: 2b00 cmp r3, #0
  30318. 800d1c6: d179 bne.n 800d2bc <HAL_RCCEx_PeriphCLKConfig+0x91c>
  30319. {
  30320. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  30321. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  30322. 800d1c8: 4b39 ldr r3, [pc, #228] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30323. 800d1ca: 6f1a ldr r2, [r3, #112] @ 0x70
  30324. 800d1cc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30325. 800d1d0: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30326. 800d1d4: 4053 eors r3, r2
  30327. 800d1d6: f403 7340 and.w r3, r3, #768 @ 0x300
  30328. 800d1da: 2b00 cmp r3, #0
  30329. 800d1dc: d015 beq.n 800d20a <HAL_RCCEx_PeriphCLKConfig+0x86a>
  30330. {
  30331. /* Store the content of BDCR register before the reset of Backup Domain */
  30332. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  30333. 800d1de: 4b34 ldr r3, [pc, #208] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30334. 800d1e0: 6f1b ldr r3, [r3, #112] @ 0x70
  30335. 800d1e2: f423 7340 bic.w r3, r3, #768 @ 0x300
  30336. 800d1e6: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  30337. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  30338. __HAL_RCC_BACKUPRESET_FORCE();
  30339. 800d1ea: 4b31 ldr r3, [pc, #196] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30340. 800d1ec: 6f1b ldr r3, [r3, #112] @ 0x70
  30341. 800d1ee: 4a30 ldr r2, [pc, #192] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30342. 800d1f0: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  30343. 800d1f4: 6713 str r3, [r2, #112] @ 0x70
  30344. __HAL_RCC_BACKUPRESET_RELEASE();
  30345. 800d1f6: 4b2e ldr r3, [pc, #184] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30346. 800d1f8: 6f1b ldr r3, [r3, #112] @ 0x70
  30347. 800d1fa: 4a2d ldr r2, [pc, #180] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30348. 800d1fc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  30349. 800d200: 6713 str r3, [r2, #112] @ 0x70
  30350. /* Restore the Content of BDCR register */
  30351. RCC->BDCR = tmpreg;
  30352. 800d202: 4a2b ldr r2, [pc, #172] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30353. 800d204: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  30354. 800d208: 6713 str r3, [r2, #112] @ 0x70
  30355. }
  30356. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  30357. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  30358. 800d20a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30359. 800d20e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30360. 800d212: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30361. 800d216: d118 bne.n 800d24a <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30362. {
  30363. /* Get Start Tick*/
  30364. tickstart = HAL_GetTick();
  30365. 800d218: f7f8 fe04 bl 8005e24 <HAL_GetTick>
  30366. 800d21c: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  30367. /* Wait till LSE is ready */
  30368. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30369. 800d220: e00d b.n 800d23e <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30370. {
  30371. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  30372. 800d222: f7f8 fdff bl 8005e24 <HAL_GetTick>
  30373. 800d226: 4602 mov r2, r0
  30374. 800d228: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  30375. 800d22c: 1ad2 subs r2, r2, r3
  30376. 800d22e: f241 3388 movw r3, #5000 @ 0x1388
  30377. 800d232: 429a cmp r2, r3
  30378. 800d234: d903 bls.n 800d23e <HAL_RCCEx_PeriphCLKConfig+0x89e>
  30379. {
  30380. ret = HAL_TIMEOUT;
  30381. 800d236: 2303 movs r3, #3
  30382. 800d238: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30383. break;
  30384. 800d23c: e005 b.n 800d24a <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  30385. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  30386. 800d23e: 4b1c ldr r3, [pc, #112] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30387. 800d240: 6f1b ldr r3, [r3, #112] @ 0x70
  30388. 800d242: f003 0302 and.w r3, r3, #2
  30389. 800d246: 2b00 cmp r3, #0
  30390. 800d248: d0eb beq.n 800d222 <HAL_RCCEx_PeriphCLKConfig+0x882>
  30391. }
  30392. }
  30393. }
  30394. if (ret == HAL_OK)
  30395. 800d24a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30396. 800d24e: 2b00 cmp r3, #0
  30397. 800d250: d129 bne.n 800d2a6 <HAL_RCCEx_PeriphCLKConfig+0x906>
  30398. {
  30399. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  30400. 800d252: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30401. 800d256: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30402. 800d25a: f403 7340 and.w r3, r3, #768 @ 0x300
  30403. 800d25e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30404. 800d262: d10e bne.n 800d282 <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  30405. 800d264: 4b12 ldr r3, [pc, #72] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30406. 800d266: 691b ldr r3, [r3, #16]
  30407. 800d268: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  30408. 800d26c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30409. 800d270: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30410. 800d274: 091a lsrs r2, r3, #4
  30411. 800d276: 4b10 ldr r3, [pc, #64] @ (800d2b8 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  30412. 800d278: 4013 ands r3, r2
  30413. 800d27a: 4a0d ldr r2, [pc, #52] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30414. 800d27c: 430b orrs r3, r1
  30415. 800d27e: 6113 str r3, [r2, #16]
  30416. 800d280: e005 b.n 800d28e <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  30417. 800d282: 4b0b ldr r3, [pc, #44] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30418. 800d284: 691b ldr r3, [r3, #16]
  30419. 800d286: 4a0a ldr r2, [pc, #40] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30420. 800d288: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  30421. 800d28c: 6113 str r3, [r2, #16]
  30422. 800d28e: 4b08 ldr r3, [pc, #32] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30423. 800d290: 6f19 ldr r1, [r3, #112] @ 0x70
  30424. 800d292: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30425. 800d296: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30426. 800d29a: f3c3 030b ubfx r3, r3, #0, #12
  30427. 800d29e: 4a04 ldr r2, [pc, #16] @ (800d2b0 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30428. 800d2a0: 430b orrs r3, r1
  30429. 800d2a2: 6713 str r3, [r2, #112] @ 0x70
  30430. 800d2a4: e00e b.n 800d2c4 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30431. }
  30432. else
  30433. {
  30434. /* set overall return value */
  30435. status = ret;
  30436. 800d2a6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30437. 800d2aa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30438. 800d2ae: e009 b.n 800d2c4 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30439. 800d2b0: 58024400 .word 0x58024400
  30440. 800d2b4: 58024800 .word 0x58024800
  30441. 800d2b8: 00ffffcf .word 0x00ffffcf
  30442. }
  30443. }
  30444. else
  30445. {
  30446. /* set overall return value */
  30447. status = ret;
  30448. 800d2bc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30449. 800d2c0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30450. }
  30451. }
  30452. /*-------------------------- USART1/6 configuration --------------------------*/
  30453. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  30454. 800d2c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30455. 800d2c8: e9d3 2300 ldrd r2, r3, [r3]
  30456. 800d2cc: f002 0301 and.w r3, r2, #1
  30457. 800d2d0: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30458. 800d2d4: 2300 movs r3, #0
  30459. 800d2d6: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  30460. 800d2da: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  30461. 800d2de: 460b mov r3, r1
  30462. 800d2e0: 4313 orrs r3, r2
  30463. 800d2e2: f000 8089 beq.w 800d3f8 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30464. {
  30465. switch (PeriphClkInit->Usart16ClockSelection)
  30466. 800d2e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30467. 800d2ea: 6fdb ldr r3, [r3, #124] @ 0x7c
  30468. 800d2ec: 2b28 cmp r3, #40 @ 0x28
  30469. 800d2ee: d86b bhi.n 800d3c8 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  30470. 800d2f0: a201 add r2, pc, #4 @ (adr r2, 800d2f8 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  30471. 800d2f2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30472. 800d2f6: bf00 nop
  30473. 800d2f8: 0800d3d1 .word 0x0800d3d1
  30474. 800d2fc: 0800d3c9 .word 0x0800d3c9
  30475. 800d300: 0800d3c9 .word 0x0800d3c9
  30476. 800d304: 0800d3c9 .word 0x0800d3c9
  30477. 800d308: 0800d3c9 .word 0x0800d3c9
  30478. 800d30c: 0800d3c9 .word 0x0800d3c9
  30479. 800d310: 0800d3c9 .word 0x0800d3c9
  30480. 800d314: 0800d3c9 .word 0x0800d3c9
  30481. 800d318: 0800d39d .word 0x0800d39d
  30482. 800d31c: 0800d3c9 .word 0x0800d3c9
  30483. 800d320: 0800d3c9 .word 0x0800d3c9
  30484. 800d324: 0800d3c9 .word 0x0800d3c9
  30485. 800d328: 0800d3c9 .word 0x0800d3c9
  30486. 800d32c: 0800d3c9 .word 0x0800d3c9
  30487. 800d330: 0800d3c9 .word 0x0800d3c9
  30488. 800d334: 0800d3c9 .word 0x0800d3c9
  30489. 800d338: 0800d3b3 .word 0x0800d3b3
  30490. 800d33c: 0800d3c9 .word 0x0800d3c9
  30491. 800d340: 0800d3c9 .word 0x0800d3c9
  30492. 800d344: 0800d3c9 .word 0x0800d3c9
  30493. 800d348: 0800d3c9 .word 0x0800d3c9
  30494. 800d34c: 0800d3c9 .word 0x0800d3c9
  30495. 800d350: 0800d3c9 .word 0x0800d3c9
  30496. 800d354: 0800d3c9 .word 0x0800d3c9
  30497. 800d358: 0800d3d1 .word 0x0800d3d1
  30498. 800d35c: 0800d3c9 .word 0x0800d3c9
  30499. 800d360: 0800d3c9 .word 0x0800d3c9
  30500. 800d364: 0800d3c9 .word 0x0800d3c9
  30501. 800d368: 0800d3c9 .word 0x0800d3c9
  30502. 800d36c: 0800d3c9 .word 0x0800d3c9
  30503. 800d370: 0800d3c9 .word 0x0800d3c9
  30504. 800d374: 0800d3c9 .word 0x0800d3c9
  30505. 800d378: 0800d3d1 .word 0x0800d3d1
  30506. 800d37c: 0800d3c9 .word 0x0800d3c9
  30507. 800d380: 0800d3c9 .word 0x0800d3c9
  30508. 800d384: 0800d3c9 .word 0x0800d3c9
  30509. 800d388: 0800d3c9 .word 0x0800d3c9
  30510. 800d38c: 0800d3c9 .word 0x0800d3c9
  30511. 800d390: 0800d3c9 .word 0x0800d3c9
  30512. 800d394: 0800d3c9 .word 0x0800d3c9
  30513. 800d398: 0800d3d1 .word 0x0800d3d1
  30514. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  30515. /* USART1/6 clock source configuration done later after clock selection check */
  30516. break;
  30517. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  30518. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30519. 800d39c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30520. 800d3a0: 3308 adds r3, #8
  30521. 800d3a2: 2101 movs r1, #1
  30522. 800d3a4: 4618 mov r0, r3
  30523. 800d3a6: f001 fe79 bl 800f09c <RCCEx_PLL2_Config>
  30524. 800d3aa: 4603 mov r3, r0
  30525. 800d3ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30526. /* USART1/6 clock source configuration done later after clock selection check */
  30527. break;
  30528. 800d3b0: e00f b.n 800d3d2 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30529. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  30530. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30531. 800d3b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30532. 800d3b6: 3328 adds r3, #40 @ 0x28
  30533. 800d3b8: 2101 movs r1, #1
  30534. 800d3ba: 4618 mov r0, r3
  30535. 800d3bc: f001 ff20 bl 800f200 <RCCEx_PLL3_Config>
  30536. 800d3c0: 4603 mov r3, r0
  30537. 800d3c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30538. /* USART1/6 clock source configuration done later after clock selection check */
  30539. break;
  30540. 800d3c6: e004 b.n 800d3d2 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30541. /* LSE, oscillator is used as source of USART1/6 clock */
  30542. /* USART1/6 clock source configuration done later after clock selection check */
  30543. break;
  30544. default:
  30545. ret = HAL_ERROR;
  30546. 800d3c8: 2301 movs r3, #1
  30547. 800d3ca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30548. break;
  30549. 800d3ce: e000 b.n 800d3d2 <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30550. break;
  30551. 800d3d0: bf00 nop
  30552. }
  30553. if (ret == HAL_OK)
  30554. 800d3d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30555. 800d3d6: 2b00 cmp r3, #0
  30556. 800d3d8: d10a bne.n 800d3f0 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  30557. {
  30558. /* Set the source of USART1/6 clock */
  30559. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  30560. 800d3da: 4bbf ldr r3, [pc, #764] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30561. 800d3dc: 6d5b ldr r3, [r3, #84] @ 0x54
  30562. 800d3de: f023 0138 bic.w r1, r3, #56 @ 0x38
  30563. 800d3e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30564. 800d3e6: 6fdb ldr r3, [r3, #124] @ 0x7c
  30565. 800d3e8: 4abb ldr r2, [pc, #748] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30566. 800d3ea: 430b orrs r3, r1
  30567. 800d3ec: 6553 str r3, [r2, #84] @ 0x54
  30568. 800d3ee: e003 b.n 800d3f8 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30569. }
  30570. else
  30571. {
  30572. /* set overall return value */
  30573. status = ret;
  30574. 800d3f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30575. 800d3f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30576. }
  30577. }
  30578. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  30579. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  30580. 800d3f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30581. 800d3fc: e9d3 2300 ldrd r2, r3, [r3]
  30582. 800d400: f002 0302 and.w r3, r2, #2
  30583. 800d404: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30584. 800d408: 2300 movs r3, #0
  30585. 800d40a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30586. 800d40e: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  30587. 800d412: 460b mov r3, r1
  30588. 800d414: 4313 orrs r3, r2
  30589. 800d416: d041 beq.n 800d49c <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30590. {
  30591. switch (PeriphClkInit->Usart234578ClockSelection)
  30592. 800d418: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30593. 800d41c: 6f9b ldr r3, [r3, #120] @ 0x78
  30594. 800d41e: 2b05 cmp r3, #5
  30595. 800d420: d824 bhi.n 800d46c <HAL_RCCEx_PeriphCLKConfig+0xacc>
  30596. 800d422: a201 add r2, pc, #4 @ (adr r2, 800d428 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  30597. 800d424: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30598. 800d428: 0800d475 .word 0x0800d475
  30599. 800d42c: 0800d441 .word 0x0800d441
  30600. 800d430: 0800d457 .word 0x0800d457
  30601. 800d434: 0800d475 .word 0x0800d475
  30602. 800d438: 0800d475 .word 0x0800d475
  30603. 800d43c: 0800d475 .word 0x0800d475
  30604. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  30605. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30606. break;
  30607. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  30608. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30609. 800d440: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30610. 800d444: 3308 adds r3, #8
  30611. 800d446: 2101 movs r1, #1
  30612. 800d448: 4618 mov r0, r3
  30613. 800d44a: f001 fe27 bl 800f09c <RCCEx_PLL2_Config>
  30614. 800d44e: 4603 mov r3, r0
  30615. 800d450: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30616. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30617. break;
  30618. 800d454: e00f b.n 800d476 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30619. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  30620. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30621. 800d456: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30622. 800d45a: 3328 adds r3, #40 @ 0x28
  30623. 800d45c: 2101 movs r1, #1
  30624. 800d45e: 4618 mov r0, r3
  30625. 800d460: f001 fece bl 800f200 <RCCEx_PLL3_Config>
  30626. 800d464: 4603 mov r3, r0
  30627. 800d466: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30628. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30629. break;
  30630. 800d46a: e004 b.n 800d476 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30631. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  30632. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30633. break;
  30634. default:
  30635. ret = HAL_ERROR;
  30636. 800d46c: 2301 movs r3, #1
  30637. 800d46e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30638. break;
  30639. 800d472: e000 b.n 800d476 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30640. break;
  30641. 800d474: bf00 nop
  30642. }
  30643. if (ret == HAL_OK)
  30644. 800d476: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30645. 800d47a: 2b00 cmp r3, #0
  30646. 800d47c: d10a bne.n 800d494 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  30647. {
  30648. /* Set the source of USART2/3/4/5/7/8 clock */
  30649. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  30650. 800d47e: 4b96 ldr r3, [pc, #600] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30651. 800d480: 6d5b ldr r3, [r3, #84] @ 0x54
  30652. 800d482: f023 0107 bic.w r1, r3, #7
  30653. 800d486: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30654. 800d48a: 6f9b ldr r3, [r3, #120] @ 0x78
  30655. 800d48c: 4a92 ldr r2, [pc, #584] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30656. 800d48e: 430b orrs r3, r1
  30657. 800d490: 6553 str r3, [r2, #84] @ 0x54
  30658. 800d492: e003 b.n 800d49c <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30659. }
  30660. else
  30661. {
  30662. /* set overall return value */
  30663. status = ret;
  30664. 800d494: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30665. 800d498: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30666. }
  30667. }
  30668. /*-------------------------- LPUART1 Configuration -------------------------*/
  30669. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  30670. 800d49c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30671. 800d4a0: e9d3 2300 ldrd r2, r3, [r3]
  30672. 800d4a4: f002 0304 and.w r3, r2, #4
  30673. 800d4a8: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  30674. 800d4ac: 2300 movs r3, #0
  30675. 800d4ae: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30676. 800d4b2: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  30677. 800d4b6: 460b mov r3, r1
  30678. 800d4b8: 4313 orrs r3, r2
  30679. 800d4ba: d044 beq.n 800d546 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30680. {
  30681. switch (PeriphClkInit->Lpuart1ClockSelection)
  30682. 800d4bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30683. 800d4c0: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30684. 800d4c4: 2b05 cmp r3, #5
  30685. 800d4c6: d825 bhi.n 800d514 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  30686. 800d4c8: a201 add r2, pc, #4 @ (adr r2, 800d4d0 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  30687. 800d4ca: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30688. 800d4ce: bf00 nop
  30689. 800d4d0: 0800d51d .word 0x0800d51d
  30690. 800d4d4: 0800d4e9 .word 0x0800d4e9
  30691. 800d4d8: 0800d4ff .word 0x0800d4ff
  30692. 800d4dc: 0800d51d .word 0x0800d51d
  30693. 800d4e0: 0800d51d .word 0x0800d51d
  30694. 800d4e4: 0800d51d .word 0x0800d51d
  30695. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  30696. /* LPUART1 clock source configuration done later after clock selection check */
  30697. break;
  30698. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  30699. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30700. 800d4e8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30701. 800d4ec: 3308 adds r3, #8
  30702. 800d4ee: 2101 movs r1, #1
  30703. 800d4f0: 4618 mov r0, r3
  30704. 800d4f2: f001 fdd3 bl 800f09c <RCCEx_PLL2_Config>
  30705. 800d4f6: 4603 mov r3, r0
  30706. 800d4f8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30707. /* LPUART1 clock source configuration done later after clock selection check */
  30708. break;
  30709. 800d4fc: e00f b.n 800d51e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30710. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  30711. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30712. 800d4fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30713. 800d502: 3328 adds r3, #40 @ 0x28
  30714. 800d504: 2101 movs r1, #1
  30715. 800d506: 4618 mov r0, r3
  30716. 800d508: f001 fe7a bl 800f200 <RCCEx_PLL3_Config>
  30717. 800d50c: 4603 mov r3, r0
  30718. 800d50e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30719. /* LPUART1 clock source configuration done later after clock selection check */
  30720. break;
  30721. 800d512: e004 b.n 800d51e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30722. /* LSE, oscillator is used as source of LPUART1 clock */
  30723. /* LPUART1 clock source configuration done later after clock selection check */
  30724. break;
  30725. default:
  30726. ret = HAL_ERROR;
  30727. 800d514: 2301 movs r3, #1
  30728. 800d516: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30729. break;
  30730. 800d51a: e000 b.n 800d51e <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30731. break;
  30732. 800d51c: bf00 nop
  30733. }
  30734. if (ret == HAL_OK)
  30735. 800d51e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30736. 800d522: 2b00 cmp r3, #0
  30737. 800d524: d10b bne.n 800d53e <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  30738. {
  30739. /* Set the source of LPUART1 clock */
  30740. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  30741. 800d526: 4b6c ldr r3, [pc, #432] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30742. 800d528: 6d9b ldr r3, [r3, #88] @ 0x58
  30743. 800d52a: f023 0107 bic.w r1, r3, #7
  30744. 800d52e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30745. 800d532: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30746. 800d536: 4a68 ldr r2, [pc, #416] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30747. 800d538: 430b orrs r3, r1
  30748. 800d53a: 6593 str r3, [r2, #88] @ 0x58
  30749. 800d53c: e003 b.n 800d546 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30750. }
  30751. else
  30752. {
  30753. /* set overall return value */
  30754. status = ret;
  30755. 800d53e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30756. 800d542: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30757. }
  30758. }
  30759. /*---------------------------- LPTIM1 configuration -------------------------------*/
  30760. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  30761. 800d546: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30762. 800d54a: e9d3 2300 ldrd r2, r3, [r3]
  30763. 800d54e: f002 0320 and.w r3, r2, #32
  30764. 800d552: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30765. 800d556: 2300 movs r3, #0
  30766. 800d558: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30767. 800d55c: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  30768. 800d560: 460b mov r3, r1
  30769. 800d562: 4313 orrs r3, r2
  30770. 800d564: d055 beq.n 800d612 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30771. {
  30772. switch (PeriphClkInit->Lptim1ClockSelection)
  30773. 800d566: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30774. 800d56a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30775. 800d56e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30776. 800d572: d033 beq.n 800d5dc <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  30777. 800d574: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30778. 800d578: d82c bhi.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30779. 800d57a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30780. 800d57e: d02f beq.n 800d5e0 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  30781. 800d580: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30782. 800d584: d826 bhi.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30783. 800d586: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30784. 800d58a: d02b beq.n 800d5e4 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  30785. 800d58c: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30786. 800d590: d820 bhi.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30787. 800d592: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30788. 800d596: d012 beq.n 800d5be <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  30789. 800d598: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30790. 800d59c: d81a bhi.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30791. 800d59e: 2b00 cmp r3, #0
  30792. 800d5a0: d022 beq.n 800d5e8 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  30793. 800d5a2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30794. 800d5a6: d115 bne.n 800d5d4 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30795. /* LPTIM1 clock source configuration done later after clock selection check */
  30796. break;
  30797. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  30798. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30799. 800d5a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30800. 800d5ac: 3308 adds r3, #8
  30801. 800d5ae: 2100 movs r1, #0
  30802. 800d5b0: 4618 mov r0, r3
  30803. 800d5b2: f001 fd73 bl 800f09c <RCCEx_PLL2_Config>
  30804. 800d5b6: 4603 mov r3, r0
  30805. 800d5b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30806. /* LPTIM1 clock source configuration done later after clock selection check */
  30807. break;
  30808. 800d5bc: e015 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30809. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  30810. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30811. 800d5be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30812. 800d5c2: 3328 adds r3, #40 @ 0x28
  30813. 800d5c4: 2102 movs r1, #2
  30814. 800d5c6: 4618 mov r0, r3
  30815. 800d5c8: f001 fe1a bl 800f200 <RCCEx_PLL3_Config>
  30816. 800d5cc: 4603 mov r3, r0
  30817. 800d5ce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30818. /* LPTIM1 clock source configuration done later after clock selection check */
  30819. break;
  30820. 800d5d2: e00a b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30821. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  30822. /* LPTIM1 clock source configuration done later after clock selection check */
  30823. break;
  30824. default:
  30825. ret = HAL_ERROR;
  30826. 800d5d4: 2301 movs r3, #1
  30827. 800d5d6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30828. break;
  30829. 800d5da: e006 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30830. break;
  30831. 800d5dc: bf00 nop
  30832. 800d5de: e004 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30833. break;
  30834. 800d5e0: bf00 nop
  30835. 800d5e2: e002 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30836. break;
  30837. 800d5e4: bf00 nop
  30838. 800d5e6: e000 b.n 800d5ea <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30839. break;
  30840. 800d5e8: bf00 nop
  30841. }
  30842. if (ret == HAL_OK)
  30843. 800d5ea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30844. 800d5ee: 2b00 cmp r3, #0
  30845. 800d5f0: d10b bne.n 800d60a <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  30846. {
  30847. /* Set the source of LPTIM1 clock*/
  30848. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  30849. 800d5f2: 4b39 ldr r3, [pc, #228] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30850. 800d5f4: 6d5b ldr r3, [r3, #84] @ 0x54
  30851. 800d5f6: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30852. 800d5fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30853. 800d5fe: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30854. 800d602: 4a35 ldr r2, [pc, #212] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30855. 800d604: 430b orrs r3, r1
  30856. 800d606: 6553 str r3, [r2, #84] @ 0x54
  30857. 800d608: e003 b.n 800d612 <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30858. }
  30859. else
  30860. {
  30861. /* set overall return value */
  30862. status = ret;
  30863. 800d60a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30864. 800d60e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30865. }
  30866. }
  30867. /*---------------------------- LPTIM2 configuration -------------------------------*/
  30868. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  30869. 800d612: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30870. 800d616: e9d3 2300 ldrd r2, r3, [r3]
  30871. 800d61a: f002 0340 and.w r3, r2, #64 @ 0x40
  30872. 800d61e: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30873. 800d622: 2300 movs r3, #0
  30874. 800d624: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30875. 800d628: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  30876. 800d62c: 460b mov r3, r1
  30877. 800d62e: 4313 orrs r3, r2
  30878. 800d630: d058 beq.n 800d6e4 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30879. {
  30880. switch (PeriphClkInit->Lptim2ClockSelection)
  30881. 800d632: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30882. 800d636: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30883. 800d63a: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30884. 800d63e: d033 beq.n 800d6a8 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  30885. 800d640: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30886. 800d644: d82c bhi.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30887. 800d646: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30888. 800d64a: d02f beq.n 800d6ac <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  30889. 800d64c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30890. 800d650: d826 bhi.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30891. 800d652: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30892. 800d656: d02b beq.n 800d6b0 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  30893. 800d658: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30894. 800d65c: d820 bhi.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30895. 800d65e: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30896. 800d662: d012 beq.n 800d68a <HAL_RCCEx_PeriphCLKConfig+0xcea>
  30897. 800d664: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30898. 800d668: d81a bhi.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30899. 800d66a: 2b00 cmp r3, #0
  30900. 800d66c: d022 beq.n 800d6b4 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  30901. 800d66e: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  30902. 800d672: d115 bne.n 800d6a0 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30903. /* LPTIM2 clock source configuration done later after clock selection check */
  30904. break;
  30905. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  30906. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30907. 800d674: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30908. 800d678: 3308 adds r3, #8
  30909. 800d67a: 2100 movs r1, #0
  30910. 800d67c: 4618 mov r0, r3
  30911. 800d67e: f001 fd0d bl 800f09c <RCCEx_PLL2_Config>
  30912. 800d682: 4603 mov r3, r0
  30913. 800d684: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30914. /* LPTIM2 clock source configuration done later after clock selection check */
  30915. break;
  30916. 800d688: e015 b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30917. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  30918. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30919. 800d68a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30920. 800d68e: 3328 adds r3, #40 @ 0x28
  30921. 800d690: 2102 movs r1, #2
  30922. 800d692: 4618 mov r0, r3
  30923. 800d694: f001 fdb4 bl 800f200 <RCCEx_PLL3_Config>
  30924. 800d698: 4603 mov r3, r0
  30925. 800d69a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30926. /* LPTIM2 clock source configuration done later after clock selection check */
  30927. break;
  30928. 800d69e: e00a b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30929. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  30930. /* LPTIM2 clock source configuration done later after clock selection check */
  30931. break;
  30932. default:
  30933. ret = HAL_ERROR;
  30934. 800d6a0: 2301 movs r3, #1
  30935. 800d6a2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30936. break;
  30937. 800d6a6: e006 b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30938. break;
  30939. 800d6a8: bf00 nop
  30940. 800d6aa: e004 b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30941. break;
  30942. 800d6ac: bf00 nop
  30943. 800d6ae: e002 b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30944. break;
  30945. 800d6b0: bf00 nop
  30946. 800d6b2: e000 b.n 800d6b6 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30947. break;
  30948. 800d6b4: bf00 nop
  30949. }
  30950. if (ret == HAL_OK)
  30951. 800d6b6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30952. 800d6ba: 2b00 cmp r3, #0
  30953. 800d6bc: d10e bne.n 800d6dc <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  30954. {
  30955. /* Set the source of LPTIM2 clock*/
  30956. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  30957. 800d6be: 4b06 ldr r3, [pc, #24] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30958. 800d6c0: 6d9b ldr r3, [r3, #88] @ 0x58
  30959. 800d6c2: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  30960. 800d6c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30961. 800d6ca: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30962. 800d6ce: 4a02 ldr r2, [pc, #8] @ (800d6d8 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30963. 800d6d0: 430b orrs r3, r1
  30964. 800d6d2: 6593 str r3, [r2, #88] @ 0x58
  30965. 800d6d4: e006 b.n 800d6e4 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30966. 800d6d6: bf00 nop
  30967. 800d6d8: 58024400 .word 0x58024400
  30968. }
  30969. else
  30970. {
  30971. /* set overall return value */
  30972. status = ret;
  30973. 800d6dc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30974. 800d6e0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30975. }
  30976. }
  30977. /*---------------------------- LPTIM345 configuration -------------------------------*/
  30978. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  30979. 800d6e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30980. 800d6e8: e9d3 2300 ldrd r2, r3, [r3]
  30981. 800d6ec: f002 0380 and.w r3, r2, #128 @ 0x80
  30982. 800d6f0: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  30983. 800d6f4: 2300 movs r3, #0
  30984. 800d6f6: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  30985. 800d6fa: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  30986. 800d6fe: 460b mov r3, r1
  30987. 800d700: 4313 orrs r3, r2
  30988. 800d702: d055 beq.n 800d7b0 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30989. {
  30990. switch (PeriphClkInit->Lptim345ClockSelection)
  30991. 800d704: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30992. 800d708: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30993. 800d70c: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30994. 800d710: d033 beq.n 800d77a <HAL_RCCEx_PeriphCLKConfig+0xdda>
  30995. 800d712: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30996. 800d716: d82c bhi.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30997. 800d718: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30998. 800d71c: d02f beq.n 800d77e <HAL_RCCEx_PeriphCLKConfig+0xdde>
  30999. 800d71e: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  31000. 800d722: d826 bhi.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31001. 800d724: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  31002. 800d728: d02b beq.n 800d782 <HAL_RCCEx_PeriphCLKConfig+0xde2>
  31003. 800d72a: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  31004. 800d72e: d820 bhi.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31005. 800d730: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31006. 800d734: d012 beq.n 800d75c <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  31007. 800d736: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  31008. 800d73a: d81a bhi.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31009. 800d73c: 2b00 cmp r3, #0
  31010. 800d73e: d022 beq.n 800d786 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  31011. 800d740: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  31012. 800d744: d115 bne.n 800d772 <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  31013. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  31014. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31015. break;
  31016. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  31017. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31018. 800d746: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31019. 800d74a: 3308 adds r3, #8
  31020. 800d74c: 2100 movs r1, #0
  31021. 800d74e: 4618 mov r0, r3
  31022. 800d750: f001 fca4 bl 800f09c <RCCEx_PLL2_Config>
  31023. 800d754: 4603 mov r3, r0
  31024. 800d756: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31025. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31026. break;
  31027. 800d75a: e015 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31028. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  31029. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31030. 800d75c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31031. 800d760: 3328 adds r3, #40 @ 0x28
  31032. 800d762: 2102 movs r1, #2
  31033. 800d764: 4618 mov r0, r3
  31034. 800d766: f001 fd4b bl 800f200 <RCCEx_PLL3_Config>
  31035. 800d76a: 4603 mov r3, r0
  31036. 800d76c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31037. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31038. break;
  31039. 800d770: e00a b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31040. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  31041. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  31042. break;
  31043. default:
  31044. ret = HAL_ERROR;
  31045. 800d772: 2301 movs r3, #1
  31046. 800d774: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31047. break;
  31048. 800d778: e006 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31049. break;
  31050. 800d77a: bf00 nop
  31051. 800d77c: e004 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31052. break;
  31053. 800d77e: bf00 nop
  31054. 800d780: e002 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31055. break;
  31056. 800d782: bf00 nop
  31057. 800d784: e000 b.n 800d788 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  31058. break;
  31059. 800d786: bf00 nop
  31060. }
  31061. if (ret == HAL_OK)
  31062. 800d788: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31063. 800d78c: 2b00 cmp r3, #0
  31064. 800d78e: d10b bne.n 800d7a8 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  31065. {
  31066. /* Set the source of LPTIM3/4/5 clock */
  31067. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  31068. 800d790: 4bbb ldr r3, [pc, #748] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31069. 800d792: 6d9b ldr r3, [r3, #88] @ 0x58
  31070. 800d794: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  31071. 800d798: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31072. 800d79c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  31073. 800d7a0: 4ab7 ldr r2, [pc, #732] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31074. 800d7a2: 430b orrs r3, r1
  31075. 800d7a4: 6593 str r3, [r2, #88] @ 0x58
  31076. 800d7a6: e003 b.n 800d7b0 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  31077. }
  31078. else
  31079. {
  31080. /* set overall return value */
  31081. status = ret;
  31082. 800d7a8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31083. 800d7ac: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31084. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  31085. }
  31086. #else
  31087. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  31088. 800d7b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31089. 800d7b4: e9d3 2300 ldrd r2, r3, [r3]
  31090. 800d7b8: f002 0308 and.w r3, r2, #8
  31091. 800d7bc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31092. 800d7c0: 2300 movs r3, #0
  31093. 800d7c2: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31094. 800d7c6: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  31095. 800d7ca: 460b mov r3, r1
  31096. 800d7cc: 4313 orrs r3, r2
  31097. 800d7ce: d01e beq.n 800d80e <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  31098. {
  31099. /* Check the parameters */
  31100. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  31101. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  31102. 800d7d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31103. 800d7d4: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31104. 800d7d8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31105. 800d7dc: d10c bne.n 800d7f8 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31106. {
  31107. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31108. 800d7de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31109. 800d7e2: 3328 adds r3, #40 @ 0x28
  31110. 800d7e4: 2102 movs r1, #2
  31111. 800d7e6: 4618 mov r0, r3
  31112. 800d7e8: f001 fd0a bl 800f200 <RCCEx_PLL3_Config>
  31113. 800d7ec: 4603 mov r3, r0
  31114. 800d7ee: 2b00 cmp r3, #0
  31115. 800d7f0: d002 beq.n 800d7f8 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  31116. {
  31117. status = HAL_ERROR;
  31118. 800d7f2: 2301 movs r3, #1
  31119. 800d7f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31120. }
  31121. }
  31122. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  31123. 800d7f8: 4ba1 ldr r3, [pc, #644] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31124. 800d7fa: 6d5b ldr r3, [r3, #84] @ 0x54
  31125. 800d7fc: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31126. 800d800: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31127. 800d804: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  31128. 800d808: 4a9d ldr r2, [pc, #628] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31129. 800d80a: 430b orrs r3, r1
  31130. 800d80c: 6553 str r3, [r2, #84] @ 0x54
  31131. }
  31132. #endif /* I2C5 */
  31133. /*------------------------------ I2C4 Configuration ------------------------*/
  31134. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  31135. 800d80e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31136. 800d812: e9d3 2300 ldrd r2, r3, [r3]
  31137. 800d816: f002 0310 and.w r3, r2, #16
  31138. 800d81a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  31139. 800d81e: 2300 movs r3, #0
  31140. 800d820: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31141. 800d824: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  31142. 800d828: 460b mov r3, r1
  31143. 800d82a: 4313 orrs r3, r2
  31144. 800d82c: d01e beq.n 800d86c <HAL_RCCEx_PeriphCLKConfig+0xecc>
  31145. {
  31146. /* Check the parameters */
  31147. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  31148. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  31149. 800d82e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31150. 800d832: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31151. 800d836: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31152. 800d83a: d10c bne.n 800d856 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31153. {
  31154. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  31155. 800d83c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31156. 800d840: 3328 adds r3, #40 @ 0x28
  31157. 800d842: 2102 movs r1, #2
  31158. 800d844: 4618 mov r0, r3
  31159. 800d846: f001 fcdb bl 800f200 <RCCEx_PLL3_Config>
  31160. 800d84a: 4603 mov r3, r0
  31161. 800d84c: 2b00 cmp r3, #0
  31162. 800d84e: d002 beq.n 800d856 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  31163. {
  31164. status = HAL_ERROR;
  31165. 800d850: 2301 movs r3, #1
  31166. 800d852: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31167. }
  31168. }
  31169. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  31170. 800d856: 4b8a ldr r3, [pc, #552] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31171. 800d858: 6d9b ldr r3, [r3, #88] @ 0x58
  31172. 800d85a: f423 7140 bic.w r1, r3, #768 @ 0x300
  31173. 800d85e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31174. 800d862: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  31175. 800d866: 4a86 ldr r2, [pc, #536] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31176. 800d868: 430b orrs r3, r1
  31177. 800d86a: 6593 str r3, [r2, #88] @ 0x58
  31178. }
  31179. /*---------------------------- ADC configuration -------------------------------*/
  31180. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  31181. 800d86c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31182. 800d870: e9d3 2300 ldrd r2, r3, [r3]
  31183. 800d874: f402 2300 and.w r3, r2, #524288 @ 0x80000
  31184. 800d878: 67bb str r3, [r7, #120] @ 0x78
  31185. 800d87a: 2300 movs r3, #0
  31186. 800d87c: 67fb str r3, [r7, #124] @ 0x7c
  31187. 800d87e: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  31188. 800d882: 460b mov r3, r1
  31189. 800d884: 4313 orrs r3, r2
  31190. 800d886: d03e beq.n 800d906 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31191. {
  31192. switch (PeriphClkInit->AdcClockSelection)
  31193. 800d888: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31194. 800d88c: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31195. 800d890: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31196. 800d894: d022 beq.n 800d8dc <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  31197. 800d896: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31198. 800d89a: d81b bhi.n 800d8d4 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31199. 800d89c: 2b00 cmp r3, #0
  31200. 800d89e: d003 beq.n 800d8a8 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  31201. 800d8a0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31202. 800d8a4: d00b beq.n 800d8be <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  31203. 800d8a6: e015 b.n 800d8d4 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  31204. {
  31205. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  31206. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31207. 800d8a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31208. 800d8ac: 3308 adds r3, #8
  31209. 800d8ae: 2100 movs r1, #0
  31210. 800d8b0: 4618 mov r0, r3
  31211. 800d8b2: f001 fbf3 bl 800f09c <RCCEx_PLL2_Config>
  31212. 800d8b6: 4603 mov r3, r0
  31213. 800d8b8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31214. /* ADC clock source configuration done later after clock selection check */
  31215. break;
  31216. 800d8bc: e00f b.n 800d8de <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31217. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  31218. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31219. 800d8be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31220. 800d8c2: 3328 adds r3, #40 @ 0x28
  31221. 800d8c4: 2102 movs r1, #2
  31222. 800d8c6: 4618 mov r0, r3
  31223. 800d8c8: f001 fc9a bl 800f200 <RCCEx_PLL3_Config>
  31224. 800d8cc: 4603 mov r3, r0
  31225. 800d8ce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31226. /* ADC clock source configuration done later after clock selection check */
  31227. break;
  31228. 800d8d2: e004 b.n 800d8de <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31229. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  31230. /* ADC clock source configuration done later after clock selection check */
  31231. break;
  31232. default:
  31233. ret = HAL_ERROR;
  31234. 800d8d4: 2301 movs r3, #1
  31235. 800d8d6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31236. break;
  31237. 800d8da: e000 b.n 800d8de <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  31238. break;
  31239. 800d8dc: bf00 nop
  31240. }
  31241. if (ret == HAL_OK)
  31242. 800d8de: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31243. 800d8e2: 2b00 cmp r3, #0
  31244. 800d8e4: d10b bne.n 800d8fe <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  31245. {
  31246. /* Set the source of ADC clock*/
  31247. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  31248. 800d8e6: 4b66 ldr r3, [pc, #408] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31249. 800d8e8: 6d9b ldr r3, [r3, #88] @ 0x58
  31250. 800d8ea: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  31251. 800d8ee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31252. 800d8f2: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  31253. 800d8f6: 4a62 ldr r2, [pc, #392] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31254. 800d8f8: 430b orrs r3, r1
  31255. 800d8fa: 6593 str r3, [r2, #88] @ 0x58
  31256. 800d8fc: e003 b.n 800d906 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  31257. }
  31258. else
  31259. {
  31260. /* set overall return value */
  31261. status = ret;
  31262. 800d8fe: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31263. 800d902: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31264. }
  31265. }
  31266. /*------------------------------ USB Configuration -------------------------*/
  31267. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  31268. 800d906: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31269. 800d90a: e9d3 2300 ldrd r2, r3, [r3]
  31270. 800d90e: f402 2380 and.w r3, r2, #262144 @ 0x40000
  31271. 800d912: 673b str r3, [r7, #112] @ 0x70
  31272. 800d914: 2300 movs r3, #0
  31273. 800d916: 677b str r3, [r7, #116] @ 0x74
  31274. 800d918: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  31275. 800d91c: 460b mov r3, r1
  31276. 800d91e: 4313 orrs r3, r2
  31277. 800d920: d03b beq.n 800d99a <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31278. {
  31279. switch (PeriphClkInit->UsbClockSelection)
  31280. 800d922: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31281. 800d926: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31282. 800d92a: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31283. 800d92e: d01f beq.n 800d970 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  31284. 800d930: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  31285. 800d934: d818 bhi.n 800d968 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31286. 800d936: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  31287. 800d93a: d003 beq.n 800d944 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  31288. 800d93c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31289. 800d940: d007 beq.n 800d952 <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  31290. 800d942: e011 b.n 800d968 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  31291. {
  31292. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  31293. /* Enable USB Clock output generated form System USB . */
  31294. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31295. 800d944: 4b4e ldr r3, [pc, #312] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31296. 800d946: 6adb ldr r3, [r3, #44] @ 0x2c
  31297. 800d948: 4a4d ldr r2, [pc, #308] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31298. 800d94a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31299. 800d94e: 62d3 str r3, [r2, #44] @ 0x2c
  31300. /* USB clock source configuration done later after clock selection check */
  31301. break;
  31302. 800d950: e00f b.n 800d972 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31303. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  31304. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31305. 800d952: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31306. 800d956: 3328 adds r3, #40 @ 0x28
  31307. 800d958: 2101 movs r1, #1
  31308. 800d95a: 4618 mov r0, r3
  31309. 800d95c: f001 fc50 bl 800f200 <RCCEx_PLL3_Config>
  31310. 800d960: 4603 mov r3, r0
  31311. 800d962: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31312. /* USB clock source configuration done later after clock selection check */
  31313. break;
  31314. 800d966: e004 b.n 800d972 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31315. /* HSI48 oscillator is used as source of USB clock */
  31316. /* USB clock source configuration done later after clock selection check */
  31317. break;
  31318. default:
  31319. ret = HAL_ERROR;
  31320. 800d968: 2301 movs r3, #1
  31321. 800d96a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31322. break;
  31323. 800d96e: e000 b.n 800d972 <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  31324. break;
  31325. 800d970: bf00 nop
  31326. }
  31327. if (ret == HAL_OK)
  31328. 800d972: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31329. 800d976: 2b00 cmp r3, #0
  31330. 800d978: d10b bne.n 800d992 <HAL_RCCEx_PeriphCLKConfig+0xff2>
  31331. {
  31332. /* Set the source of USB clock*/
  31333. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  31334. 800d97a: 4b41 ldr r3, [pc, #260] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31335. 800d97c: 6d5b ldr r3, [r3, #84] @ 0x54
  31336. 800d97e: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  31337. 800d982: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31338. 800d986: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31339. 800d98a: 4a3d ldr r2, [pc, #244] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31340. 800d98c: 430b orrs r3, r1
  31341. 800d98e: 6553 str r3, [r2, #84] @ 0x54
  31342. 800d990: e003 b.n 800d99a <HAL_RCCEx_PeriphCLKConfig+0xffa>
  31343. }
  31344. else
  31345. {
  31346. /* set overall return value */
  31347. status = ret;
  31348. 800d992: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31349. 800d996: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31350. }
  31351. }
  31352. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  31353. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  31354. 800d99a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31355. 800d99e: e9d3 2300 ldrd r2, r3, [r3]
  31356. 800d9a2: f402 3380 and.w r3, r2, #65536 @ 0x10000
  31357. 800d9a6: 66bb str r3, [r7, #104] @ 0x68
  31358. 800d9a8: 2300 movs r3, #0
  31359. 800d9aa: 66fb str r3, [r7, #108] @ 0x6c
  31360. 800d9ac: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  31361. 800d9b0: 460b mov r3, r1
  31362. 800d9b2: 4313 orrs r3, r2
  31363. 800d9b4: d031 beq.n 800da1a <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31364. {
  31365. /* Check the parameters */
  31366. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  31367. switch (PeriphClkInit->SdmmcClockSelection)
  31368. 800d9b6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31369. 800d9ba: 6d1b ldr r3, [r3, #80] @ 0x50
  31370. 800d9bc: 2b00 cmp r3, #0
  31371. 800d9be: d003 beq.n 800d9c8 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  31372. 800d9c0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  31373. 800d9c4: d007 beq.n 800d9d6 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  31374. 800d9c6: e011 b.n 800d9ec <HAL_RCCEx_PeriphCLKConfig+0x104c>
  31375. {
  31376. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  31377. /* Enable SDMMC Clock output generated form System PLL . */
  31378. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31379. 800d9c8: 4b2d ldr r3, [pc, #180] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31380. 800d9ca: 6adb ldr r3, [r3, #44] @ 0x2c
  31381. 800d9cc: 4a2c ldr r2, [pc, #176] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31382. 800d9ce: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31383. 800d9d2: 62d3 str r3, [r2, #44] @ 0x2c
  31384. /* SDMMC clock source configuration done later after clock selection check */
  31385. break;
  31386. 800d9d4: e00e b.n 800d9f4 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31387. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  31388. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31389. 800d9d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31390. 800d9da: 3308 adds r3, #8
  31391. 800d9dc: 2102 movs r1, #2
  31392. 800d9de: 4618 mov r0, r3
  31393. 800d9e0: f001 fb5c bl 800f09c <RCCEx_PLL2_Config>
  31394. 800d9e4: 4603 mov r3, r0
  31395. 800d9e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31396. /* SDMMC clock source configuration done later after clock selection check */
  31397. break;
  31398. 800d9ea: e003 b.n 800d9f4 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  31399. default:
  31400. ret = HAL_ERROR;
  31401. 800d9ec: 2301 movs r3, #1
  31402. 800d9ee: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31403. break;
  31404. 800d9f2: bf00 nop
  31405. }
  31406. if (ret == HAL_OK)
  31407. 800d9f4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31408. 800d9f8: 2b00 cmp r3, #0
  31409. 800d9fa: d10a bne.n 800da12 <HAL_RCCEx_PeriphCLKConfig+0x1072>
  31410. {
  31411. /* Set the source of SDMMC clock*/
  31412. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  31413. 800d9fc: 4b20 ldr r3, [pc, #128] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31414. 800d9fe: 6cdb ldr r3, [r3, #76] @ 0x4c
  31415. 800da00: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31416. 800da04: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31417. 800da08: 6d1b ldr r3, [r3, #80] @ 0x50
  31418. 800da0a: 4a1d ldr r2, [pc, #116] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31419. 800da0c: 430b orrs r3, r1
  31420. 800da0e: 64d3 str r3, [r2, #76] @ 0x4c
  31421. 800da10: e003 b.n 800da1a <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31422. }
  31423. else
  31424. {
  31425. /* set overall return value */
  31426. status = ret;
  31427. 800da12: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31428. 800da16: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31429. }
  31430. }
  31431. #endif /* LTDC */
  31432. /*------------------------------ RNG Configuration -------------------------*/
  31433. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  31434. 800da1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31435. 800da1e: e9d3 2300 ldrd r2, r3, [r3]
  31436. 800da22: f402 3300 and.w r3, r2, #131072 @ 0x20000
  31437. 800da26: 663b str r3, [r7, #96] @ 0x60
  31438. 800da28: 2300 movs r3, #0
  31439. 800da2a: 667b str r3, [r7, #100] @ 0x64
  31440. 800da2c: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  31441. 800da30: 460b mov r3, r1
  31442. 800da32: 4313 orrs r3, r2
  31443. 800da34: d03b beq.n 800daae <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31444. {
  31445. switch (PeriphClkInit->RngClockSelection)
  31446. 800da36: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31447. 800da3a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31448. 800da3e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31449. 800da42: d018 beq.n 800da76 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  31450. 800da44: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31451. 800da48: d811 bhi.n 800da6e <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31452. 800da4a: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31453. 800da4e: d014 beq.n 800da7a <HAL_RCCEx_PeriphCLKConfig+0x10da>
  31454. 800da50: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31455. 800da54: d80b bhi.n 800da6e <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31456. 800da56: 2b00 cmp r3, #0
  31457. 800da58: d014 beq.n 800da84 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  31458. 800da5a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31459. 800da5e: d106 bne.n 800da6e <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31460. {
  31461. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  31462. /* Enable RNG Clock output generated form System RNG . */
  31463. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31464. 800da60: 4b07 ldr r3, [pc, #28] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31465. 800da62: 6adb ldr r3, [r3, #44] @ 0x2c
  31466. 800da64: 4a06 ldr r2, [pc, #24] @ (800da80 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31467. 800da66: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31468. 800da6a: 62d3 str r3, [r2, #44] @ 0x2c
  31469. /* RNG clock source configuration done later after clock selection check */
  31470. break;
  31471. 800da6c: e00b b.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31472. /* HSI48 oscillator is used as source of RNG clock */
  31473. /* RNG clock source configuration done later after clock selection check */
  31474. break;
  31475. default:
  31476. ret = HAL_ERROR;
  31477. 800da6e: 2301 movs r3, #1
  31478. 800da70: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31479. break;
  31480. 800da74: e007 b.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31481. break;
  31482. 800da76: bf00 nop
  31483. 800da78: e005 b.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31484. break;
  31485. 800da7a: bf00 nop
  31486. 800da7c: e003 b.n 800da86 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31487. 800da7e: bf00 nop
  31488. 800da80: 58024400 .word 0x58024400
  31489. break;
  31490. 800da84: bf00 nop
  31491. }
  31492. if (ret == HAL_OK)
  31493. 800da86: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31494. 800da8a: 2b00 cmp r3, #0
  31495. 800da8c: d10b bne.n 800daa6 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  31496. {
  31497. /* Set the source of RNG clock*/
  31498. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  31499. 800da8e: 4bba ldr r3, [pc, #744] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31500. 800da90: 6d5b ldr r3, [r3, #84] @ 0x54
  31501. 800da92: f423 7140 bic.w r1, r3, #768 @ 0x300
  31502. 800da96: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31503. 800da9a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31504. 800da9e: 4ab6 ldr r2, [pc, #728] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31505. 800daa0: 430b orrs r3, r1
  31506. 800daa2: 6553 str r3, [r2, #84] @ 0x54
  31507. 800daa4: e003 b.n 800daae <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31508. }
  31509. else
  31510. {
  31511. /* set overall return value */
  31512. status = ret;
  31513. 800daa6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31514. 800daaa: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31515. }
  31516. }
  31517. /*------------------------------ SWPMI1 Configuration ------------------------*/
  31518. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  31519. 800daae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31520. 800dab2: e9d3 2300 ldrd r2, r3, [r3]
  31521. 800dab6: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  31522. 800daba: 65bb str r3, [r7, #88] @ 0x58
  31523. 800dabc: 2300 movs r3, #0
  31524. 800dabe: 65fb str r3, [r7, #92] @ 0x5c
  31525. 800dac0: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  31526. 800dac4: 460b mov r3, r1
  31527. 800dac6: 4313 orrs r3, r2
  31528. 800dac8: d009 beq.n 800dade <HAL_RCCEx_PeriphCLKConfig+0x113e>
  31529. {
  31530. /* Check the parameters */
  31531. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  31532. /* Configure the SWPMI1 interface clock source */
  31533. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  31534. 800daca: 4bab ldr r3, [pc, #684] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31535. 800dacc: 6d1b ldr r3, [r3, #80] @ 0x50
  31536. 800dace: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  31537. 800dad2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31538. 800dad6: 6f5b ldr r3, [r3, #116] @ 0x74
  31539. 800dad8: 4aa7 ldr r2, [pc, #668] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31540. 800dada: 430b orrs r3, r1
  31541. 800dadc: 6513 str r3, [r2, #80] @ 0x50
  31542. }
  31543. #if defined(HRTIM1)
  31544. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  31545. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  31546. 800dade: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31547. 800dae2: e9d3 2300 ldrd r2, r3, [r3]
  31548. 800dae6: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  31549. 800daea: 653b str r3, [r7, #80] @ 0x50
  31550. 800daec: 2300 movs r3, #0
  31551. 800daee: 657b str r3, [r7, #84] @ 0x54
  31552. 800daf0: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  31553. 800daf4: 460b mov r3, r1
  31554. 800daf6: 4313 orrs r3, r2
  31555. 800daf8: d00a beq.n 800db10 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  31556. {
  31557. /* Check the parameters */
  31558. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  31559. /* Configure the HRTIM1 clock source */
  31560. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  31561. 800dafa: 4b9f ldr r3, [pc, #636] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31562. 800dafc: 691b ldr r3, [r3, #16]
  31563. 800dafe: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  31564. 800db02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31565. 800db06: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  31566. 800db0a: 4a9b ldr r2, [pc, #620] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31567. 800db0c: 430b orrs r3, r1
  31568. 800db0e: 6113 str r3, [r2, #16]
  31569. }
  31570. #endif /*HRTIM1*/
  31571. /*------------------------------ DFSDM1 Configuration ------------------------*/
  31572. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  31573. 800db10: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31574. 800db14: e9d3 2300 ldrd r2, r3, [r3]
  31575. 800db18: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  31576. 800db1c: 64bb str r3, [r7, #72] @ 0x48
  31577. 800db1e: 2300 movs r3, #0
  31578. 800db20: 64fb str r3, [r7, #76] @ 0x4c
  31579. 800db22: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  31580. 800db26: 460b mov r3, r1
  31581. 800db28: 4313 orrs r3, r2
  31582. 800db2a: d009 beq.n 800db40 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  31583. {
  31584. /* Check the parameters */
  31585. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  31586. /* Configure the DFSDM1 interface clock source */
  31587. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  31588. 800db2c: 4b92 ldr r3, [pc, #584] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31589. 800db2e: 6d1b ldr r3, [r3, #80] @ 0x50
  31590. 800db30: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  31591. 800db34: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31592. 800db38: 6edb ldr r3, [r3, #108] @ 0x6c
  31593. 800db3a: 4a8f ldr r2, [pc, #572] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31594. 800db3c: 430b orrs r3, r1
  31595. 800db3e: 6513 str r3, [r2, #80] @ 0x50
  31596. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  31597. }
  31598. #endif /* DFSDM2 */
  31599. /*------------------------------------ TIM configuration --------------------------------------*/
  31600. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  31601. 800db40: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31602. 800db44: e9d3 2300 ldrd r2, r3, [r3]
  31603. 800db48: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  31604. 800db4c: 643b str r3, [r7, #64] @ 0x40
  31605. 800db4e: 2300 movs r3, #0
  31606. 800db50: 647b str r3, [r7, #68] @ 0x44
  31607. 800db52: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  31608. 800db56: 460b mov r3, r1
  31609. 800db58: 4313 orrs r3, r2
  31610. 800db5a: d00e beq.n 800db7a <HAL_RCCEx_PeriphCLKConfig+0x11da>
  31611. {
  31612. /* Check the parameters */
  31613. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  31614. /* Configure Timer Prescaler */
  31615. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  31616. 800db5c: 4b86 ldr r3, [pc, #536] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31617. 800db5e: 691b ldr r3, [r3, #16]
  31618. 800db60: 4a85 ldr r2, [pc, #532] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31619. 800db62: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  31620. 800db66: 6113 str r3, [r2, #16]
  31621. 800db68: 4b83 ldr r3, [pc, #524] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31622. 800db6a: 6919 ldr r1, [r3, #16]
  31623. 800db6c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31624. 800db70: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  31625. 800db74: 4a80 ldr r2, [pc, #512] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31626. 800db76: 430b orrs r3, r1
  31627. 800db78: 6113 str r3, [r2, #16]
  31628. }
  31629. /*------------------------------------ CKPER configuration --------------------------------------*/
  31630. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  31631. 800db7a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31632. 800db7e: e9d3 2300 ldrd r2, r3, [r3]
  31633. 800db82: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  31634. 800db86: 63bb str r3, [r7, #56] @ 0x38
  31635. 800db88: 2300 movs r3, #0
  31636. 800db8a: 63fb str r3, [r7, #60] @ 0x3c
  31637. 800db8c: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  31638. 800db90: 460b mov r3, r1
  31639. 800db92: 4313 orrs r3, r2
  31640. 800db94: d009 beq.n 800dbaa <HAL_RCCEx_PeriphCLKConfig+0x120a>
  31641. {
  31642. /* Check the parameters */
  31643. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  31644. /* Configure the CKPER clock source */
  31645. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  31646. 800db96: 4b78 ldr r3, [pc, #480] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31647. 800db98: 6cdb ldr r3, [r3, #76] @ 0x4c
  31648. 800db9a: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  31649. 800db9e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31650. 800dba2: 6d5b ldr r3, [r3, #84] @ 0x54
  31651. 800dba4: 4a74 ldr r2, [pc, #464] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31652. 800dba6: 430b orrs r3, r1
  31653. 800dba8: 64d3 str r3, [r2, #76] @ 0x4c
  31654. }
  31655. /*------------------------------ CEC Configuration ------------------------*/
  31656. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  31657. 800dbaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31658. 800dbae: e9d3 2300 ldrd r2, r3, [r3]
  31659. 800dbb2: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  31660. 800dbb6: 633b str r3, [r7, #48] @ 0x30
  31661. 800dbb8: 2300 movs r3, #0
  31662. 800dbba: 637b str r3, [r7, #52] @ 0x34
  31663. 800dbbc: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  31664. 800dbc0: 460b mov r3, r1
  31665. 800dbc2: 4313 orrs r3, r2
  31666. 800dbc4: d00a beq.n 800dbdc <HAL_RCCEx_PeriphCLKConfig+0x123c>
  31667. {
  31668. /* Check the parameters */
  31669. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  31670. /* Configure the CEC interface clock source */
  31671. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  31672. 800dbc6: 4b6c ldr r3, [pc, #432] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31673. 800dbc8: 6d5b ldr r3, [r3, #84] @ 0x54
  31674. 800dbca: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  31675. 800dbce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31676. 800dbd2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  31677. 800dbd6: 4a68 ldr r2, [pc, #416] @ (800dd78 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31678. 800dbd8: 430b orrs r3, r1
  31679. 800dbda: 6553 str r3, [r2, #84] @ 0x54
  31680. }
  31681. /*---------------------------- PLL2 configuration -------------------------------*/
  31682. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  31683. 800dbdc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31684. 800dbe0: e9d3 2300 ldrd r2, r3, [r3]
  31685. 800dbe4: 2100 movs r1, #0
  31686. 800dbe6: 62b9 str r1, [r7, #40] @ 0x28
  31687. 800dbe8: f003 0301 and.w r3, r3, #1
  31688. 800dbec: 62fb str r3, [r7, #44] @ 0x2c
  31689. 800dbee: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  31690. 800dbf2: 460b mov r3, r1
  31691. 800dbf4: 4313 orrs r3, r2
  31692. 800dbf6: d011 beq.n 800dc1c <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31693. {
  31694. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31695. 800dbf8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31696. 800dbfc: 3308 adds r3, #8
  31697. 800dbfe: 2100 movs r1, #0
  31698. 800dc00: 4618 mov r0, r3
  31699. 800dc02: f001 fa4b bl 800f09c <RCCEx_PLL2_Config>
  31700. 800dc06: 4603 mov r3, r0
  31701. 800dc08: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31702. if (ret == HAL_OK)
  31703. 800dc0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31704. 800dc10: 2b00 cmp r3, #0
  31705. 800dc12: d003 beq.n 800dc1c <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31706. /*Nothing to do*/
  31707. }
  31708. else
  31709. {
  31710. /* set overall return value */
  31711. status = ret;
  31712. 800dc14: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31713. 800dc18: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31714. }
  31715. }
  31716. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  31717. 800dc1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31718. 800dc20: e9d3 2300 ldrd r2, r3, [r3]
  31719. 800dc24: 2100 movs r1, #0
  31720. 800dc26: 6239 str r1, [r7, #32]
  31721. 800dc28: f003 0302 and.w r3, r3, #2
  31722. 800dc2c: 627b str r3, [r7, #36] @ 0x24
  31723. 800dc2e: e9d7 1208 ldrd r1, r2, [r7, #32]
  31724. 800dc32: 460b mov r3, r1
  31725. 800dc34: 4313 orrs r3, r2
  31726. 800dc36: d011 beq.n 800dc5c <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31727. {
  31728. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  31729. 800dc38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31730. 800dc3c: 3308 adds r3, #8
  31731. 800dc3e: 2101 movs r1, #1
  31732. 800dc40: 4618 mov r0, r3
  31733. 800dc42: f001 fa2b bl 800f09c <RCCEx_PLL2_Config>
  31734. 800dc46: 4603 mov r3, r0
  31735. 800dc48: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31736. if (ret == HAL_OK)
  31737. 800dc4c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31738. 800dc50: 2b00 cmp r3, #0
  31739. 800dc52: d003 beq.n 800dc5c <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31740. /*Nothing to do*/
  31741. }
  31742. else
  31743. {
  31744. /* set overall return value */
  31745. status = ret;
  31746. 800dc54: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31747. 800dc58: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31748. }
  31749. }
  31750. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  31751. 800dc5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31752. 800dc60: e9d3 2300 ldrd r2, r3, [r3]
  31753. 800dc64: 2100 movs r1, #0
  31754. 800dc66: 61b9 str r1, [r7, #24]
  31755. 800dc68: f003 0304 and.w r3, r3, #4
  31756. 800dc6c: 61fb str r3, [r7, #28]
  31757. 800dc6e: e9d7 1206 ldrd r1, r2, [r7, #24]
  31758. 800dc72: 460b mov r3, r1
  31759. 800dc74: 4313 orrs r3, r2
  31760. 800dc76: d011 beq.n 800dc9c <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31761. {
  31762. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31763. 800dc78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31764. 800dc7c: 3308 adds r3, #8
  31765. 800dc7e: 2102 movs r1, #2
  31766. 800dc80: 4618 mov r0, r3
  31767. 800dc82: f001 fa0b bl 800f09c <RCCEx_PLL2_Config>
  31768. 800dc86: 4603 mov r3, r0
  31769. 800dc88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31770. if (ret == HAL_OK)
  31771. 800dc8c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31772. 800dc90: 2b00 cmp r3, #0
  31773. 800dc92: d003 beq.n 800dc9c <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31774. /*Nothing to do*/
  31775. }
  31776. else
  31777. {
  31778. /* set overall return value */
  31779. status = ret;
  31780. 800dc94: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31781. 800dc98: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31782. }
  31783. }
  31784. /*---------------------------- PLL3 configuration -------------------------------*/
  31785. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  31786. 800dc9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31787. 800dca0: e9d3 2300 ldrd r2, r3, [r3]
  31788. 800dca4: 2100 movs r1, #0
  31789. 800dca6: 6139 str r1, [r7, #16]
  31790. 800dca8: f003 0308 and.w r3, r3, #8
  31791. 800dcac: 617b str r3, [r7, #20]
  31792. 800dcae: e9d7 1204 ldrd r1, r2, [r7, #16]
  31793. 800dcb2: 460b mov r3, r1
  31794. 800dcb4: 4313 orrs r3, r2
  31795. 800dcb6: d011 beq.n 800dcdc <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31796. {
  31797. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  31798. 800dcb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31799. 800dcbc: 3328 adds r3, #40 @ 0x28
  31800. 800dcbe: 2100 movs r1, #0
  31801. 800dcc0: 4618 mov r0, r3
  31802. 800dcc2: f001 fa9d bl 800f200 <RCCEx_PLL3_Config>
  31803. 800dcc6: 4603 mov r3, r0
  31804. 800dcc8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31805. if (ret == HAL_OK)
  31806. 800dccc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31807. 800dcd0: 2b00 cmp r3, #0
  31808. 800dcd2: d003 beq.n 800dcdc <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31809. /*Nothing to do*/
  31810. }
  31811. else
  31812. {
  31813. /* set overall return value */
  31814. status = ret;
  31815. 800dcd4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31816. 800dcd8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31817. }
  31818. }
  31819. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  31820. 800dcdc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31821. 800dce0: e9d3 2300 ldrd r2, r3, [r3]
  31822. 800dce4: 2100 movs r1, #0
  31823. 800dce6: 60b9 str r1, [r7, #8]
  31824. 800dce8: f003 0310 and.w r3, r3, #16
  31825. 800dcec: 60fb str r3, [r7, #12]
  31826. 800dcee: e9d7 1202 ldrd r1, r2, [r7, #8]
  31827. 800dcf2: 460b mov r3, r1
  31828. 800dcf4: 4313 orrs r3, r2
  31829. 800dcf6: d011 beq.n 800dd1c <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31830. {
  31831. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31832. 800dcf8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31833. 800dcfc: 3328 adds r3, #40 @ 0x28
  31834. 800dcfe: 2101 movs r1, #1
  31835. 800dd00: 4618 mov r0, r3
  31836. 800dd02: f001 fa7d bl 800f200 <RCCEx_PLL3_Config>
  31837. 800dd06: 4603 mov r3, r0
  31838. 800dd08: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31839. if (ret == HAL_OK)
  31840. 800dd0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31841. 800dd10: 2b00 cmp r3, #0
  31842. 800dd12: d003 beq.n 800dd1c <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31843. /*Nothing to do*/
  31844. }
  31845. else
  31846. {
  31847. /* set overall return value */
  31848. status = ret;
  31849. 800dd14: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31850. 800dd18: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31851. }
  31852. }
  31853. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  31854. 800dd1c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31855. 800dd20: e9d3 2300 ldrd r2, r3, [r3]
  31856. 800dd24: 2100 movs r1, #0
  31857. 800dd26: 6039 str r1, [r7, #0]
  31858. 800dd28: f003 0320 and.w r3, r3, #32
  31859. 800dd2c: 607b str r3, [r7, #4]
  31860. 800dd2e: e9d7 1200 ldrd r1, r2, [r7]
  31861. 800dd32: 460b mov r3, r1
  31862. 800dd34: 4313 orrs r3, r2
  31863. 800dd36: d011 beq.n 800dd5c <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31864. {
  31865. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31866. 800dd38: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31867. 800dd3c: 3328 adds r3, #40 @ 0x28
  31868. 800dd3e: 2102 movs r1, #2
  31869. 800dd40: 4618 mov r0, r3
  31870. 800dd42: f001 fa5d bl 800f200 <RCCEx_PLL3_Config>
  31871. 800dd46: 4603 mov r3, r0
  31872. 800dd48: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31873. if (ret == HAL_OK)
  31874. 800dd4c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31875. 800dd50: 2b00 cmp r3, #0
  31876. 800dd52: d003 beq.n 800dd5c <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31877. /*Nothing to do*/
  31878. }
  31879. else
  31880. {
  31881. /* set overall return value */
  31882. status = ret;
  31883. 800dd54: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31884. 800dd58: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31885. }
  31886. }
  31887. if (status == HAL_OK)
  31888. 800dd5c: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  31889. 800dd60: 2b00 cmp r3, #0
  31890. 800dd62: d101 bne.n 800dd68 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  31891. {
  31892. return HAL_OK;
  31893. 800dd64: 2300 movs r3, #0
  31894. 800dd66: e000 b.n 800dd6a <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  31895. }
  31896. return HAL_ERROR;
  31897. 800dd68: 2301 movs r3, #1
  31898. }
  31899. 800dd6a: 4618 mov r0, r3
  31900. 800dd6c: f507 7790 add.w r7, r7, #288 @ 0x120
  31901. 800dd70: 46bd mov sp, r7
  31902. 800dd72: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31903. 800dd76: bf00 nop
  31904. 800dd78: 58024400 .word 0x58024400
  31905. 0800dd7c <HAL_RCCEx_GetPeriphCLKFreq>:
  31906. * @retval Frequency in KHz
  31907. *
  31908. * (*) : Available on some STM32H7 lines only.
  31909. */
  31910. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  31911. {
  31912. 800dd7c: b580 push {r7, lr}
  31913. 800dd7e: b090 sub sp, #64 @ 0x40
  31914. 800dd80: af00 add r7, sp, #0
  31915. 800dd82: e9c7 0100 strd r0, r1, [r7]
  31916. /* This variable is used to store the SAI and CKP clock source */
  31917. uint32_t saiclocksource;
  31918. uint32_t ckpclocksource;
  31919. uint32_t srcclk;
  31920. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  31921. 800dd86: e9d7 2300 ldrd r2, r3, [r7]
  31922. 800dd8a: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  31923. 800dd8e: 430b orrs r3, r1
  31924. 800dd90: f040 8094 bne.w 800debc <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  31925. {
  31926. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  31927. 800dd94: 4b9e ldr r3, [pc, #632] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31928. 800dd96: 6d1b ldr r3, [r3, #80] @ 0x50
  31929. 800dd98: f003 0307 and.w r3, r3, #7
  31930. 800dd9c: 633b str r3, [r7, #48] @ 0x30
  31931. switch (saiclocksource)
  31932. 800dd9e: 6b3b ldr r3, [r7, #48] @ 0x30
  31933. 800dda0: 2b04 cmp r3, #4
  31934. 800dda2: f200 8087 bhi.w 800deb4 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  31935. 800dda6: a201 add r2, pc, #4 @ (adr r2, 800ddac <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  31936. 800dda8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31937. 800ddac: 0800ddc1 .word 0x0800ddc1
  31938. 800ddb0: 0800dde9 .word 0x0800dde9
  31939. 800ddb4: 0800de11 .word 0x0800de11
  31940. 800ddb8: 0800dead .word 0x0800dead
  31941. 800ddbc: 0800de39 .word 0x0800de39
  31942. {
  31943. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  31944. {
  31945. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31946. 800ddc0: 4b93 ldr r3, [pc, #588] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31947. 800ddc2: 681b ldr r3, [r3, #0]
  31948. 800ddc4: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31949. 800ddc8: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31950. 800ddcc: d108 bne.n 800dde0 <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  31951. {
  31952. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31953. 800ddce: f107 0324 add.w r3, r7, #36 @ 0x24
  31954. 800ddd2: 4618 mov r0, r3
  31955. 800ddd4: f001 f810 bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  31956. frequency = pll1_clocks.PLL1_Q_Frequency;
  31957. 800ddd8: 6abb ldr r3, [r7, #40] @ 0x28
  31958. 800ddda: 63fb str r3, [r7, #60] @ 0x3c
  31959. }
  31960. else
  31961. {
  31962. frequency = 0;
  31963. }
  31964. break;
  31965. 800dddc: f000 bd45 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31966. frequency = 0;
  31967. 800dde0: 2300 movs r3, #0
  31968. 800dde2: 63fb str r3, [r7, #60] @ 0x3c
  31969. break;
  31970. 800dde4: f000 bd41 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31971. }
  31972. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  31973. {
  31974. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31975. 800dde8: 4b89 ldr r3, [pc, #548] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31976. 800ddea: 681b ldr r3, [r3, #0]
  31977. 800ddec: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31978. 800ddf0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31979. 800ddf4: d108 bne.n 800de08 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  31980. {
  31981. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31982. 800ddf6: f107 0318 add.w r3, r7, #24
  31983. 800ddfa: 4618 mov r0, r3
  31984. 800ddfc: f000 fd54 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  31985. frequency = pll2_clocks.PLL2_P_Frequency;
  31986. 800de00: 69bb ldr r3, [r7, #24]
  31987. 800de02: 63fb str r3, [r7, #60] @ 0x3c
  31988. }
  31989. else
  31990. {
  31991. frequency = 0;
  31992. }
  31993. break;
  31994. 800de04: f000 bd31 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31995. frequency = 0;
  31996. 800de08: 2300 movs r3, #0
  31997. 800de0a: 63fb str r3, [r7, #60] @ 0x3c
  31998. break;
  31999. 800de0c: f000 bd2d b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32000. }
  32001. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  32002. {
  32003. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32004. 800de10: 4b7f ldr r3, [pc, #508] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32005. 800de12: 681b ldr r3, [r3, #0]
  32006. 800de14: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32007. 800de18: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32008. 800de1c: d108 bne.n 800de30 <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  32009. {
  32010. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32011. 800de1e: f107 030c add.w r3, r7, #12
  32012. 800de22: 4618 mov r0, r3
  32013. 800de24: f000 fe94 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  32014. frequency = pll3_clocks.PLL3_P_Frequency;
  32015. 800de28: 68fb ldr r3, [r7, #12]
  32016. 800de2a: 63fb str r3, [r7, #60] @ 0x3c
  32017. }
  32018. else
  32019. {
  32020. frequency = 0;
  32021. }
  32022. break;
  32023. 800de2c: f000 bd1d b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32024. frequency = 0;
  32025. 800de30: 2300 movs r3, #0
  32026. 800de32: 63fb str r3, [r7, #60] @ 0x3c
  32027. break;
  32028. 800de34: f000 bd19 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32029. }
  32030. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  32031. {
  32032. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32033. 800de38: 4b75 ldr r3, [pc, #468] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32034. 800de3a: 6cdb ldr r3, [r3, #76] @ 0x4c
  32035. 800de3c: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32036. 800de40: 637b str r3, [r7, #52] @ 0x34
  32037. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32038. 800de42: 4b73 ldr r3, [pc, #460] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32039. 800de44: 681b ldr r3, [r3, #0]
  32040. 800de46: f003 0304 and.w r3, r3, #4
  32041. 800de4a: 2b04 cmp r3, #4
  32042. 800de4c: d10c bne.n 800de68 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32043. 800de4e: 6b7b ldr r3, [r7, #52] @ 0x34
  32044. 800de50: 2b00 cmp r3, #0
  32045. 800de52: d109 bne.n 800de68 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  32046. {
  32047. /* In Case the CKPER Source is HSI */
  32048. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32049. 800de54: 4b6e ldr r3, [pc, #440] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32050. 800de56: 681b ldr r3, [r3, #0]
  32051. 800de58: 08db lsrs r3, r3, #3
  32052. 800de5a: f003 0303 and.w r3, r3, #3
  32053. 800de5e: 4a6d ldr r2, [pc, #436] @ (800e014 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32054. 800de60: fa22 f303 lsr.w r3, r2, r3
  32055. 800de64: 63fb str r3, [r7, #60] @ 0x3c
  32056. 800de66: e01f b.n 800dea8 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32057. }
  32058. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32059. 800de68: 4b69 ldr r3, [pc, #420] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32060. 800de6a: 681b ldr r3, [r3, #0]
  32061. 800de6c: f403 7380 and.w r3, r3, #256 @ 0x100
  32062. 800de70: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32063. 800de74: d106 bne.n 800de84 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32064. 800de76: 6b7b ldr r3, [r7, #52] @ 0x34
  32065. 800de78: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32066. 800de7c: d102 bne.n 800de84 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  32067. {
  32068. /* In Case the CKPER Source is CSI */
  32069. frequency = CSI_VALUE;
  32070. 800de7e: 4b66 ldr r3, [pc, #408] @ (800e018 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32071. 800de80: 63fb str r3, [r7, #60] @ 0x3c
  32072. 800de82: e011 b.n 800dea8 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32073. }
  32074. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32075. 800de84: 4b62 ldr r3, [pc, #392] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32076. 800de86: 681b ldr r3, [r3, #0]
  32077. 800de88: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32078. 800de8c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32079. 800de90: d106 bne.n 800dea0 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32080. 800de92: 6b7b ldr r3, [r7, #52] @ 0x34
  32081. 800de94: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32082. 800de98: d102 bne.n 800dea0 <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  32083. {
  32084. /* In Case the CKPER Source is HSE */
  32085. frequency = HSE_VALUE;
  32086. 800de9a: 4b60 ldr r3, [pc, #384] @ (800e01c <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32087. 800de9c: 63fb str r3, [r7, #60] @ 0x3c
  32088. 800de9e: e003 b.n 800dea8 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  32089. }
  32090. else
  32091. {
  32092. /* In Case the CKPER is disabled*/
  32093. frequency = 0;
  32094. 800dea0: 2300 movs r3, #0
  32095. 800dea2: 63fb str r3, [r7, #60] @ 0x3c
  32096. }
  32097. break;
  32098. 800dea4: f000 bce1 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32099. 800dea8: f000 bcdf b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32100. }
  32101. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  32102. {
  32103. frequency = EXTERNAL_CLOCK_VALUE;
  32104. 800deac: 4b5c ldr r3, [pc, #368] @ (800e020 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32105. 800deae: 63fb str r3, [r7, #60] @ 0x3c
  32106. break;
  32107. 800deb0: f000 bcdb b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32108. }
  32109. default :
  32110. {
  32111. frequency = 0;
  32112. 800deb4: 2300 movs r3, #0
  32113. 800deb6: 63fb str r3, [r7, #60] @ 0x3c
  32114. break;
  32115. 800deb8: f000 bcd7 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32116. }
  32117. }
  32118. }
  32119. #if defined(SAI3)
  32120. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  32121. 800debc: e9d7 2300 ldrd r2, r3, [r7]
  32122. 800dec0: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  32123. 800dec4: 430b orrs r3, r1
  32124. 800dec6: f040 80ad bne.w 800e024 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  32125. {
  32126. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  32127. 800deca: 4b51 ldr r3, [pc, #324] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32128. 800decc: 6d1b ldr r3, [r3, #80] @ 0x50
  32129. 800dece: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  32130. 800ded2: 633b str r3, [r7, #48] @ 0x30
  32131. switch (saiclocksource)
  32132. 800ded4: 6b3b ldr r3, [r7, #48] @ 0x30
  32133. 800ded6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32134. 800deda: d056 beq.n 800df8a <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  32135. 800dedc: 6b3b ldr r3, [r7, #48] @ 0x30
  32136. 800dede: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32137. 800dee2: f200 8090 bhi.w 800e006 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32138. 800dee6: 6b3b ldr r3, [r7, #48] @ 0x30
  32139. 800dee8: 2bc0 cmp r3, #192 @ 0xc0
  32140. 800deea: f000 8088 beq.w 800dffe <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  32141. 800deee: 6b3b ldr r3, [r7, #48] @ 0x30
  32142. 800def0: 2bc0 cmp r3, #192 @ 0xc0
  32143. 800def2: f200 8088 bhi.w 800e006 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32144. 800def6: 6b3b ldr r3, [r7, #48] @ 0x30
  32145. 800def8: 2b80 cmp r3, #128 @ 0x80
  32146. 800defa: d032 beq.n 800df62 <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  32147. 800defc: 6b3b ldr r3, [r7, #48] @ 0x30
  32148. 800defe: 2b80 cmp r3, #128 @ 0x80
  32149. 800df00: f200 8081 bhi.w 800e006 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32150. 800df04: 6b3b ldr r3, [r7, #48] @ 0x30
  32151. 800df06: 2b00 cmp r3, #0
  32152. 800df08: d003 beq.n 800df12 <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  32153. 800df0a: 6b3b ldr r3, [r7, #48] @ 0x30
  32154. 800df0c: 2b40 cmp r3, #64 @ 0x40
  32155. 800df0e: d014 beq.n 800df3a <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  32156. 800df10: e079 b.n 800e006 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  32157. {
  32158. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  32159. {
  32160. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32161. 800df12: 4b3f ldr r3, [pc, #252] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32162. 800df14: 681b ldr r3, [r3, #0]
  32163. 800df16: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32164. 800df1a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32165. 800df1e: d108 bne.n 800df32 <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  32166. {
  32167. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32168. 800df20: f107 0324 add.w r3, r7, #36 @ 0x24
  32169. 800df24: 4618 mov r0, r3
  32170. 800df26: f000 ff67 bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  32171. frequency = pll1_clocks.PLL1_Q_Frequency;
  32172. 800df2a: 6abb ldr r3, [r7, #40] @ 0x28
  32173. 800df2c: 63fb str r3, [r7, #60] @ 0x3c
  32174. }
  32175. else
  32176. {
  32177. frequency = 0;
  32178. }
  32179. break;
  32180. 800df2e: f000 bc9c b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32181. frequency = 0;
  32182. 800df32: 2300 movs r3, #0
  32183. 800df34: 63fb str r3, [r7, #60] @ 0x3c
  32184. break;
  32185. 800df36: f000 bc98 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32186. }
  32187. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  32188. {
  32189. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32190. 800df3a: 4b35 ldr r3, [pc, #212] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32191. 800df3c: 681b ldr r3, [r3, #0]
  32192. 800df3e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32193. 800df42: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32194. 800df46: d108 bne.n 800df5a <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  32195. {
  32196. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32197. 800df48: f107 0318 add.w r3, r7, #24
  32198. 800df4c: 4618 mov r0, r3
  32199. 800df4e: f000 fcab bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  32200. frequency = pll2_clocks.PLL2_P_Frequency;
  32201. 800df52: 69bb ldr r3, [r7, #24]
  32202. 800df54: 63fb str r3, [r7, #60] @ 0x3c
  32203. }
  32204. else
  32205. {
  32206. frequency = 0;
  32207. }
  32208. break;
  32209. 800df56: f000 bc88 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32210. frequency = 0;
  32211. 800df5a: 2300 movs r3, #0
  32212. 800df5c: 63fb str r3, [r7, #60] @ 0x3c
  32213. break;
  32214. 800df5e: f000 bc84 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32215. }
  32216. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  32217. {
  32218. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32219. 800df62: 4b2b ldr r3, [pc, #172] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32220. 800df64: 681b ldr r3, [r3, #0]
  32221. 800df66: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32222. 800df6a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32223. 800df6e: d108 bne.n 800df82 <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  32224. {
  32225. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32226. 800df70: f107 030c add.w r3, r7, #12
  32227. 800df74: 4618 mov r0, r3
  32228. 800df76: f000 fdeb bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  32229. frequency = pll3_clocks.PLL3_P_Frequency;
  32230. 800df7a: 68fb ldr r3, [r7, #12]
  32231. 800df7c: 63fb str r3, [r7, #60] @ 0x3c
  32232. }
  32233. else
  32234. {
  32235. frequency = 0;
  32236. }
  32237. break;
  32238. 800df7e: f000 bc74 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32239. frequency = 0;
  32240. 800df82: 2300 movs r3, #0
  32241. 800df84: 63fb str r3, [r7, #60] @ 0x3c
  32242. break;
  32243. 800df86: f000 bc70 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32244. }
  32245. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  32246. {
  32247. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32248. 800df8a: 4b21 ldr r3, [pc, #132] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32249. 800df8c: 6cdb ldr r3, [r3, #76] @ 0x4c
  32250. 800df8e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32251. 800df92: 637b str r3, [r7, #52] @ 0x34
  32252. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32253. 800df94: 4b1e ldr r3, [pc, #120] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32254. 800df96: 681b ldr r3, [r3, #0]
  32255. 800df98: f003 0304 and.w r3, r3, #4
  32256. 800df9c: 2b04 cmp r3, #4
  32257. 800df9e: d10c bne.n 800dfba <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32258. 800dfa0: 6b7b ldr r3, [r7, #52] @ 0x34
  32259. 800dfa2: 2b00 cmp r3, #0
  32260. 800dfa4: d109 bne.n 800dfba <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  32261. {
  32262. /* In Case the CKPER Source is HSI */
  32263. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32264. 800dfa6: 4b1a ldr r3, [pc, #104] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32265. 800dfa8: 681b ldr r3, [r3, #0]
  32266. 800dfaa: 08db lsrs r3, r3, #3
  32267. 800dfac: f003 0303 and.w r3, r3, #3
  32268. 800dfb0: 4a18 ldr r2, [pc, #96] @ (800e014 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  32269. 800dfb2: fa22 f303 lsr.w r3, r2, r3
  32270. 800dfb6: 63fb str r3, [r7, #60] @ 0x3c
  32271. 800dfb8: e01f b.n 800dffa <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32272. }
  32273. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32274. 800dfba: 4b15 ldr r3, [pc, #84] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32275. 800dfbc: 681b ldr r3, [r3, #0]
  32276. 800dfbe: f403 7380 and.w r3, r3, #256 @ 0x100
  32277. 800dfc2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32278. 800dfc6: d106 bne.n 800dfd6 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32279. 800dfc8: 6b7b ldr r3, [r7, #52] @ 0x34
  32280. 800dfca: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32281. 800dfce: d102 bne.n 800dfd6 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  32282. {
  32283. /* In Case the CKPER Source is CSI */
  32284. frequency = CSI_VALUE;
  32285. 800dfd0: 4b11 ldr r3, [pc, #68] @ (800e018 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  32286. 800dfd2: 63fb str r3, [r7, #60] @ 0x3c
  32287. 800dfd4: e011 b.n 800dffa <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32288. }
  32289. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32290. 800dfd6: 4b0e ldr r3, [pc, #56] @ (800e010 <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  32291. 800dfd8: 681b ldr r3, [r3, #0]
  32292. 800dfda: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32293. 800dfde: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32294. 800dfe2: d106 bne.n 800dff2 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32295. 800dfe4: 6b7b ldr r3, [r7, #52] @ 0x34
  32296. 800dfe6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32297. 800dfea: d102 bne.n 800dff2 <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  32298. {
  32299. /* In Case the CKPER Source is HSE */
  32300. frequency = HSE_VALUE;
  32301. 800dfec: 4b0b ldr r3, [pc, #44] @ (800e01c <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  32302. 800dfee: 63fb str r3, [r7, #60] @ 0x3c
  32303. 800dff0: e003 b.n 800dffa <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  32304. }
  32305. else
  32306. {
  32307. /* In Case the CKPER is disabled*/
  32308. frequency = 0;
  32309. 800dff2: 2300 movs r3, #0
  32310. 800dff4: 63fb str r3, [r7, #60] @ 0x3c
  32311. }
  32312. break;
  32313. 800dff6: f000 bc38 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32314. 800dffa: f000 bc36 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32315. }
  32316. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  32317. {
  32318. frequency = EXTERNAL_CLOCK_VALUE;
  32319. 800dffe: 4b08 ldr r3, [pc, #32] @ (800e020 <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  32320. 800e000: 63fb str r3, [r7, #60] @ 0x3c
  32321. break;
  32322. 800e002: f000 bc32 b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32323. }
  32324. default :
  32325. {
  32326. frequency = 0;
  32327. 800e006: 2300 movs r3, #0
  32328. 800e008: 63fb str r3, [r7, #60] @ 0x3c
  32329. break;
  32330. 800e00a: f000 bc2e b.w 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32331. 800e00e: bf00 nop
  32332. 800e010: 58024400 .word 0x58024400
  32333. 800e014: 03d09000 .word 0x03d09000
  32334. 800e018: 003d0900 .word 0x003d0900
  32335. 800e01c: 017d7840 .word 0x017d7840
  32336. 800e020: 00bb8000 .word 0x00bb8000
  32337. }
  32338. }
  32339. #endif
  32340. #if defined(SAI4)
  32341. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  32342. 800e024: e9d7 2300 ldrd r2, r3, [r7]
  32343. 800e028: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  32344. 800e02c: 430b orrs r3, r1
  32345. 800e02e: f040 809c bne.w 800e16a <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  32346. {
  32347. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  32348. 800e032: 4b9e ldr r3, [pc, #632] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32349. 800e034: 6d9b ldr r3, [r3, #88] @ 0x58
  32350. 800e036: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  32351. 800e03a: 633b str r3, [r7, #48] @ 0x30
  32352. switch (saiclocksource)
  32353. 800e03c: 6b3b ldr r3, [r7, #48] @ 0x30
  32354. 800e03e: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32355. 800e042: d054 beq.n 800e0ee <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  32356. 800e044: 6b3b ldr r3, [r7, #48] @ 0x30
  32357. 800e046: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  32358. 800e04a: f200 808b bhi.w 800e164 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32359. 800e04e: 6b3b ldr r3, [r7, #48] @ 0x30
  32360. 800e050: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32361. 800e054: f000 8083 beq.w 800e15e <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  32362. 800e058: 6b3b ldr r3, [r7, #48] @ 0x30
  32363. 800e05a: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  32364. 800e05e: f200 8081 bhi.w 800e164 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32365. 800e062: 6b3b ldr r3, [r7, #48] @ 0x30
  32366. 800e064: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32367. 800e068: d02f beq.n 800e0ca <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  32368. 800e06a: 6b3b ldr r3, [r7, #48] @ 0x30
  32369. 800e06c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  32370. 800e070: d878 bhi.n 800e164 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32371. 800e072: 6b3b ldr r3, [r7, #48] @ 0x30
  32372. 800e074: 2b00 cmp r3, #0
  32373. 800e076: d004 beq.n 800e082 <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  32374. 800e078: 6b3b ldr r3, [r7, #48] @ 0x30
  32375. 800e07a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  32376. 800e07e: d012 beq.n 800e0a6 <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  32377. 800e080: e070 b.n 800e164 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  32378. {
  32379. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  32380. {
  32381. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32382. 800e082: 4b8a ldr r3, [pc, #552] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32383. 800e084: 681b ldr r3, [r3, #0]
  32384. 800e086: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32385. 800e08a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32386. 800e08e: d107 bne.n 800e0a0 <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  32387. {
  32388. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32389. 800e090: f107 0324 add.w r3, r7, #36 @ 0x24
  32390. 800e094: 4618 mov r0, r3
  32391. 800e096: f000 feaf bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  32392. frequency = pll1_clocks.PLL1_Q_Frequency;
  32393. 800e09a: 6abb ldr r3, [r7, #40] @ 0x28
  32394. 800e09c: 63fb str r3, [r7, #60] @ 0x3c
  32395. }
  32396. else
  32397. {
  32398. frequency = 0;
  32399. }
  32400. break;
  32401. 800e09e: e3e4 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32402. frequency = 0;
  32403. 800e0a0: 2300 movs r3, #0
  32404. 800e0a2: 63fb str r3, [r7, #60] @ 0x3c
  32405. break;
  32406. 800e0a4: e3e1 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32407. }
  32408. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  32409. {
  32410. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32411. 800e0a6: 4b81 ldr r3, [pc, #516] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32412. 800e0a8: 681b ldr r3, [r3, #0]
  32413. 800e0aa: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32414. 800e0ae: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32415. 800e0b2: d107 bne.n 800e0c4 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  32416. {
  32417. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32418. 800e0b4: f107 0318 add.w r3, r7, #24
  32419. 800e0b8: 4618 mov r0, r3
  32420. 800e0ba: f000 fbf5 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  32421. frequency = pll2_clocks.PLL2_P_Frequency;
  32422. 800e0be: 69bb ldr r3, [r7, #24]
  32423. 800e0c0: 63fb str r3, [r7, #60] @ 0x3c
  32424. }
  32425. else
  32426. {
  32427. frequency = 0;
  32428. }
  32429. break;
  32430. 800e0c2: e3d2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32431. frequency = 0;
  32432. 800e0c4: 2300 movs r3, #0
  32433. 800e0c6: 63fb str r3, [r7, #60] @ 0x3c
  32434. break;
  32435. 800e0c8: e3cf b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32436. }
  32437. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  32438. {
  32439. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32440. 800e0ca: 4b78 ldr r3, [pc, #480] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32441. 800e0cc: 681b ldr r3, [r3, #0]
  32442. 800e0ce: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32443. 800e0d2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32444. 800e0d6: d107 bne.n 800e0e8 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  32445. {
  32446. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32447. 800e0d8: f107 030c add.w r3, r7, #12
  32448. 800e0dc: 4618 mov r0, r3
  32449. 800e0de: f000 fd37 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  32450. frequency = pll3_clocks.PLL3_P_Frequency;
  32451. 800e0e2: 68fb ldr r3, [r7, #12]
  32452. 800e0e4: 63fb str r3, [r7, #60] @ 0x3c
  32453. }
  32454. else
  32455. {
  32456. frequency = 0;
  32457. }
  32458. break;
  32459. 800e0e6: e3c0 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32460. frequency = 0;
  32461. 800e0e8: 2300 movs r3, #0
  32462. 800e0ea: 63fb str r3, [r7, #60] @ 0x3c
  32463. break;
  32464. 800e0ec: e3bd b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32465. }
  32466. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  32467. {
  32468. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32469. 800e0ee: 4b6f ldr r3, [pc, #444] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32470. 800e0f0: 6cdb ldr r3, [r3, #76] @ 0x4c
  32471. 800e0f2: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32472. 800e0f6: 637b str r3, [r7, #52] @ 0x34
  32473. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32474. 800e0f8: 4b6c ldr r3, [pc, #432] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32475. 800e0fa: 681b ldr r3, [r3, #0]
  32476. 800e0fc: f003 0304 and.w r3, r3, #4
  32477. 800e100: 2b04 cmp r3, #4
  32478. 800e102: d10c bne.n 800e11e <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32479. 800e104: 6b7b ldr r3, [r7, #52] @ 0x34
  32480. 800e106: 2b00 cmp r3, #0
  32481. 800e108: d109 bne.n 800e11e <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32482. {
  32483. /* In Case the CKPER Source is HSI */
  32484. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32485. 800e10a: 4b68 ldr r3, [pc, #416] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32486. 800e10c: 681b ldr r3, [r3, #0]
  32487. 800e10e: 08db lsrs r3, r3, #3
  32488. 800e110: f003 0303 and.w r3, r3, #3
  32489. 800e114: 4a66 ldr r2, [pc, #408] @ (800e2b0 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32490. 800e116: fa22 f303 lsr.w r3, r2, r3
  32491. 800e11a: 63fb str r3, [r7, #60] @ 0x3c
  32492. 800e11c: e01e b.n 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32493. }
  32494. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32495. 800e11e: 4b63 ldr r3, [pc, #396] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32496. 800e120: 681b ldr r3, [r3, #0]
  32497. 800e122: f403 7380 and.w r3, r3, #256 @ 0x100
  32498. 800e126: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32499. 800e12a: d106 bne.n 800e13a <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32500. 800e12c: 6b7b ldr r3, [r7, #52] @ 0x34
  32501. 800e12e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32502. 800e132: d102 bne.n 800e13a <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32503. {
  32504. /* In Case the CKPER Source is CSI */
  32505. frequency = CSI_VALUE;
  32506. 800e134: 4b5f ldr r3, [pc, #380] @ (800e2b4 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32507. 800e136: 63fb str r3, [r7, #60] @ 0x3c
  32508. 800e138: e010 b.n 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32509. }
  32510. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32511. 800e13a: 4b5c ldr r3, [pc, #368] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32512. 800e13c: 681b ldr r3, [r3, #0]
  32513. 800e13e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32514. 800e142: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32515. 800e146: d106 bne.n 800e156 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32516. 800e148: 6b7b ldr r3, [r7, #52] @ 0x34
  32517. 800e14a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32518. 800e14e: d102 bne.n 800e156 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32519. {
  32520. /* In Case the CKPER Source is HSE */
  32521. frequency = HSE_VALUE;
  32522. 800e150: 4b59 ldr r3, [pc, #356] @ (800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32523. 800e152: 63fb str r3, [r7, #60] @ 0x3c
  32524. 800e154: e002 b.n 800e15c <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32525. }
  32526. else
  32527. {
  32528. /* In Case the CKPER is disabled*/
  32529. frequency = 0;
  32530. 800e156: 2300 movs r3, #0
  32531. 800e158: 63fb str r3, [r7, #60] @ 0x3c
  32532. }
  32533. break;
  32534. 800e15a: e386 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32535. 800e15c: e385 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32536. }
  32537. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  32538. {
  32539. frequency = EXTERNAL_CLOCK_VALUE;
  32540. 800e15e: 4b57 ldr r3, [pc, #348] @ (800e2bc <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32541. 800e160: 63fb str r3, [r7, #60] @ 0x3c
  32542. break;
  32543. 800e162: e382 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32544. }
  32545. default :
  32546. {
  32547. frequency = 0;
  32548. 800e164: 2300 movs r3, #0
  32549. 800e166: 63fb str r3, [r7, #60] @ 0x3c
  32550. break;
  32551. 800e168: e37f b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32552. }
  32553. }
  32554. }
  32555. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  32556. 800e16a: e9d7 2300 ldrd r2, r3, [r7]
  32557. 800e16e: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  32558. 800e172: 430b orrs r3, r1
  32559. 800e174: f040 80a7 bne.w 800e2c6 <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  32560. {
  32561. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  32562. 800e178: 4b4c ldr r3, [pc, #304] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32563. 800e17a: 6d9b ldr r3, [r3, #88] @ 0x58
  32564. 800e17c: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  32565. 800e180: 633b str r3, [r7, #48] @ 0x30
  32566. switch (saiclocksource)
  32567. 800e182: 6b3b ldr r3, [r7, #48] @ 0x30
  32568. 800e184: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32569. 800e188: d055 beq.n 800e236 <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  32570. 800e18a: 6b3b ldr r3, [r7, #48] @ 0x30
  32571. 800e18c: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32572. 800e190: f200 8096 bhi.w 800e2c0 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32573. 800e194: 6b3b ldr r3, [r7, #48] @ 0x30
  32574. 800e196: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32575. 800e19a: f000 8084 beq.w 800e2a6 <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  32576. 800e19e: 6b3b ldr r3, [r7, #48] @ 0x30
  32577. 800e1a0: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32578. 800e1a4: f200 808c bhi.w 800e2c0 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32579. 800e1a8: 6b3b ldr r3, [r7, #48] @ 0x30
  32580. 800e1aa: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32581. 800e1ae: d030 beq.n 800e212 <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  32582. 800e1b0: 6b3b ldr r3, [r7, #48] @ 0x30
  32583. 800e1b2: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32584. 800e1b6: f200 8083 bhi.w 800e2c0 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32585. 800e1ba: 6b3b ldr r3, [r7, #48] @ 0x30
  32586. 800e1bc: 2b00 cmp r3, #0
  32587. 800e1be: d004 beq.n 800e1ca <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  32588. 800e1c0: 6b3b ldr r3, [r7, #48] @ 0x30
  32589. 800e1c2: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  32590. 800e1c6: d012 beq.n 800e1ee <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  32591. 800e1c8: e07a b.n 800e2c0 <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32592. {
  32593. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  32594. {
  32595. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32596. 800e1ca: 4b38 ldr r3, [pc, #224] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32597. 800e1cc: 681b ldr r3, [r3, #0]
  32598. 800e1ce: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32599. 800e1d2: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32600. 800e1d6: d107 bne.n 800e1e8 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  32601. {
  32602. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32603. 800e1d8: f107 0324 add.w r3, r7, #36 @ 0x24
  32604. 800e1dc: 4618 mov r0, r3
  32605. 800e1de: f000 fe0b bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  32606. frequency = pll1_clocks.PLL1_Q_Frequency;
  32607. 800e1e2: 6abb ldr r3, [r7, #40] @ 0x28
  32608. 800e1e4: 63fb str r3, [r7, #60] @ 0x3c
  32609. }
  32610. else
  32611. {
  32612. frequency = 0;
  32613. }
  32614. break;
  32615. 800e1e6: e340 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32616. frequency = 0;
  32617. 800e1e8: 2300 movs r3, #0
  32618. 800e1ea: 63fb str r3, [r7, #60] @ 0x3c
  32619. break;
  32620. 800e1ec: e33d b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32621. }
  32622. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  32623. {
  32624. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32625. 800e1ee: 4b2f ldr r3, [pc, #188] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32626. 800e1f0: 681b ldr r3, [r3, #0]
  32627. 800e1f2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32628. 800e1f6: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32629. 800e1fa: d107 bne.n 800e20c <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  32630. {
  32631. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32632. 800e1fc: f107 0318 add.w r3, r7, #24
  32633. 800e200: 4618 mov r0, r3
  32634. 800e202: f000 fb51 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  32635. frequency = pll2_clocks.PLL2_P_Frequency;
  32636. 800e206: 69bb ldr r3, [r7, #24]
  32637. 800e208: 63fb str r3, [r7, #60] @ 0x3c
  32638. }
  32639. else
  32640. {
  32641. frequency = 0;
  32642. }
  32643. break;
  32644. 800e20a: e32e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32645. frequency = 0;
  32646. 800e20c: 2300 movs r3, #0
  32647. 800e20e: 63fb str r3, [r7, #60] @ 0x3c
  32648. break;
  32649. 800e210: e32b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32650. }
  32651. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  32652. {
  32653. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32654. 800e212: 4b26 ldr r3, [pc, #152] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32655. 800e214: 681b ldr r3, [r3, #0]
  32656. 800e216: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32657. 800e21a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32658. 800e21e: d107 bne.n 800e230 <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  32659. {
  32660. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32661. 800e220: f107 030c add.w r3, r7, #12
  32662. 800e224: 4618 mov r0, r3
  32663. 800e226: f000 fc93 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  32664. frequency = pll3_clocks.PLL3_P_Frequency;
  32665. 800e22a: 68fb ldr r3, [r7, #12]
  32666. 800e22c: 63fb str r3, [r7, #60] @ 0x3c
  32667. }
  32668. else
  32669. {
  32670. frequency = 0;
  32671. }
  32672. break;
  32673. 800e22e: e31c b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32674. frequency = 0;
  32675. 800e230: 2300 movs r3, #0
  32676. 800e232: 63fb str r3, [r7, #60] @ 0x3c
  32677. break;
  32678. 800e234: e319 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32679. }
  32680. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  32681. {
  32682. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32683. 800e236: 4b1d ldr r3, [pc, #116] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32684. 800e238: 6cdb ldr r3, [r3, #76] @ 0x4c
  32685. 800e23a: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32686. 800e23e: 637b str r3, [r7, #52] @ 0x34
  32687. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32688. 800e240: 4b1a ldr r3, [pc, #104] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32689. 800e242: 681b ldr r3, [r3, #0]
  32690. 800e244: f003 0304 and.w r3, r3, #4
  32691. 800e248: 2b04 cmp r3, #4
  32692. 800e24a: d10c bne.n 800e266 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32693. 800e24c: 6b7b ldr r3, [r7, #52] @ 0x34
  32694. 800e24e: 2b00 cmp r3, #0
  32695. 800e250: d109 bne.n 800e266 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32696. {
  32697. /* In Case the CKPER Source is HSI */
  32698. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32699. 800e252: 4b16 ldr r3, [pc, #88] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32700. 800e254: 681b ldr r3, [r3, #0]
  32701. 800e256: 08db lsrs r3, r3, #3
  32702. 800e258: f003 0303 and.w r3, r3, #3
  32703. 800e25c: 4a14 ldr r2, [pc, #80] @ (800e2b0 <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32704. 800e25e: fa22 f303 lsr.w r3, r2, r3
  32705. 800e262: 63fb str r3, [r7, #60] @ 0x3c
  32706. 800e264: e01e b.n 800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32707. }
  32708. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32709. 800e266: 4b11 ldr r3, [pc, #68] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32710. 800e268: 681b ldr r3, [r3, #0]
  32711. 800e26a: f403 7380 and.w r3, r3, #256 @ 0x100
  32712. 800e26e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32713. 800e272: d106 bne.n 800e282 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32714. 800e274: 6b7b ldr r3, [r7, #52] @ 0x34
  32715. 800e276: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32716. 800e27a: d102 bne.n 800e282 <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32717. {
  32718. /* In Case the CKPER Source is CSI */
  32719. frequency = CSI_VALUE;
  32720. 800e27c: 4b0d ldr r3, [pc, #52] @ (800e2b4 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32721. 800e27e: 63fb str r3, [r7, #60] @ 0x3c
  32722. 800e280: e010 b.n 800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32723. }
  32724. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32725. 800e282: 4b0a ldr r3, [pc, #40] @ (800e2ac <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32726. 800e284: 681b ldr r3, [r3, #0]
  32727. 800e286: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32728. 800e28a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32729. 800e28e: d106 bne.n 800e29e <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32730. 800e290: 6b7b ldr r3, [r7, #52] @ 0x34
  32731. 800e292: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32732. 800e296: d102 bne.n 800e29e <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32733. {
  32734. /* In Case the CKPER Source is HSE */
  32735. frequency = HSE_VALUE;
  32736. 800e298: 4b07 ldr r3, [pc, #28] @ (800e2b8 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32737. 800e29a: 63fb str r3, [r7, #60] @ 0x3c
  32738. 800e29c: e002 b.n 800e2a4 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32739. }
  32740. else
  32741. {
  32742. /* In Case the CKPER is disabled*/
  32743. frequency = 0;
  32744. 800e29e: 2300 movs r3, #0
  32745. 800e2a0: 63fb str r3, [r7, #60] @ 0x3c
  32746. }
  32747. break;
  32748. 800e2a2: e2e2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32749. 800e2a4: e2e1 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32750. }
  32751. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  32752. {
  32753. frequency = EXTERNAL_CLOCK_VALUE;
  32754. 800e2a6: 4b05 ldr r3, [pc, #20] @ (800e2bc <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32755. 800e2a8: 63fb str r3, [r7, #60] @ 0x3c
  32756. break;
  32757. 800e2aa: e2de b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32758. 800e2ac: 58024400 .word 0x58024400
  32759. 800e2b0: 03d09000 .word 0x03d09000
  32760. 800e2b4: 003d0900 .word 0x003d0900
  32761. 800e2b8: 017d7840 .word 0x017d7840
  32762. 800e2bc: 00bb8000 .word 0x00bb8000
  32763. }
  32764. default :
  32765. {
  32766. frequency = 0;
  32767. 800e2c0: 2300 movs r3, #0
  32768. 800e2c2: 63fb str r3, [r7, #60] @ 0x3c
  32769. break;
  32770. 800e2c4: e2d1 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32771. }
  32772. }
  32773. }
  32774. #endif /*SAI4*/
  32775. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  32776. 800e2c6: e9d7 2300 ldrd r2, r3, [r7]
  32777. 800e2ca: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  32778. 800e2ce: 430b orrs r3, r1
  32779. 800e2d0: f040 809c bne.w 800e40c <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  32780. {
  32781. /* Get SPI1/2/3 clock source */
  32782. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  32783. 800e2d4: 4b93 ldr r3, [pc, #588] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32784. 800e2d6: 6d1b ldr r3, [r3, #80] @ 0x50
  32785. 800e2d8: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  32786. 800e2dc: 63bb str r3, [r7, #56] @ 0x38
  32787. switch (srcclk)
  32788. 800e2de: 6bbb ldr r3, [r7, #56] @ 0x38
  32789. 800e2e0: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32790. 800e2e4: d054 beq.n 800e390 <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  32791. 800e2e6: 6bbb ldr r3, [r7, #56] @ 0x38
  32792. 800e2e8: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32793. 800e2ec: f200 808b bhi.w 800e406 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32794. 800e2f0: 6bbb ldr r3, [r7, #56] @ 0x38
  32795. 800e2f2: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32796. 800e2f6: f000 8083 beq.w 800e400 <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  32797. 800e2fa: 6bbb ldr r3, [r7, #56] @ 0x38
  32798. 800e2fc: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32799. 800e300: f200 8081 bhi.w 800e406 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32800. 800e304: 6bbb ldr r3, [r7, #56] @ 0x38
  32801. 800e306: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32802. 800e30a: d02f beq.n 800e36c <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  32803. 800e30c: 6bbb ldr r3, [r7, #56] @ 0x38
  32804. 800e30e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32805. 800e312: d878 bhi.n 800e406 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32806. 800e314: 6bbb ldr r3, [r7, #56] @ 0x38
  32807. 800e316: 2b00 cmp r3, #0
  32808. 800e318: d004 beq.n 800e324 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  32809. 800e31a: 6bbb ldr r3, [r7, #56] @ 0x38
  32810. 800e31c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32811. 800e320: d012 beq.n 800e348 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  32812. 800e322: e070 b.n 800e406 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32813. {
  32814. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  32815. {
  32816. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32817. 800e324: 4b7f ldr r3, [pc, #508] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32818. 800e326: 681b ldr r3, [r3, #0]
  32819. 800e328: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32820. 800e32c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32821. 800e330: d107 bne.n 800e342 <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  32822. {
  32823. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32824. 800e332: f107 0324 add.w r3, r7, #36 @ 0x24
  32825. 800e336: 4618 mov r0, r3
  32826. 800e338: f000 fd5e bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  32827. frequency = pll1_clocks.PLL1_Q_Frequency;
  32828. 800e33c: 6abb ldr r3, [r7, #40] @ 0x28
  32829. 800e33e: 63fb str r3, [r7, #60] @ 0x3c
  32830. }
  32831. else
  32832. {
  32833. frequency = 0;
  32834. }
  32835. break;
  32836. 800e340: e293 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32837. frequency = 0;
  32838. 800e342: 2300 movs r3, #0
  32839. 800e344: 63fb str r3, [r7, #60] @ 0x3c
  32840. break;
  32841. 800e346: e290 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32842. }
  32843. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  32844. {
  32845. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32846. 800e348: 4b76 ldr r3, [pc, #472] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32847. 800e34a: 681b ldr r3, [r3, #0]
  32848. 800e34c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32849. 800e350: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32850. 800e354: d107 bne.n 800e366 <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  32851. {
  32852. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32853. 800e356: f107 0318 add.w r3, r7, #24
  32854. 800e35a: 4618 mov r0, r3
  32855. 800e35c: f000 faa4 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  32856. frequency = pll2_clocks.PLL2_P_Frequency;
  32857. 800e360: 69bb ldr r3, [r7, #24]
  32858. 800e362: 63fb str r3, [r7, #60] @ 0x3c
  32859. }
  32860. else
  32861. {
  32862. frequency = 0;
  32863. }
  32864. break;
  32865. 800e364: e281 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32866. frequency = 0;
  32867. 800e366: 2300 movs r3, #0
  32868. 800e368: 63fb str r3, [r7, #60] @ 0x3c
  32869. break;
  32870. 800e36a: e27e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32871. }
  32872. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  32873. {
  32874. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32875. 800e36c: 4b6d ldr r3, [pc, #436] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32876. 800e36e: 681b ldr r3, [r3, #0]
  32877. 800e370: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32878. 800e374: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32879. 800e378: d107 bne.n 800e38a <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  32880. {
  32881. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32882. 800e37a: f107 030c add.w r3, r7, #12
  32883. 800e37e: 4618 mov r0, r3
  32884. 800e380: f000 fbe6 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  32885. frequency = pll3_clocks.PLL3_P_Frequency;
  32886. 800e384: 68fb ldr r3, [r7, #12]
  32887. 800e386: 63fb str r3, [r7, #60] @ 0x3c
  32888. }
  32889. else
  32890. {
  32891. frequency = 0;
  32892. }
  32893. break;
  32894. 800e388: e26f b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32895. frequency = 0;
  32896. 800e38a: 2300 movs r3, #0
  32897. 800e38c: 63fb str r3, [r7, #60] @ 0x3c
  32898. break;
  32899. 800e38e: e26c b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32900. }
  32901. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  32902. {
  32903. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32904. 800e390: 4b64 ldr r3, [pc, #400] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32905. 800e392: 6cdb ldr r3, [r3, #76] @ 0x4c
  32906. 800e394: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32907. 800e398: 637b str r3, [r7, #52] @ 0x34
  32908. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32909. 800e39a: 4b62 ldr r3, [pc, #392] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32910. 800e39c: 681b ldr r3, [r3, #0]
  32911. 800e39e: f003 0304 and.w r3, r3, #4
  32912. 800e3a2: 2b04 cmp r3, #4
  32913. 800e3a4: d10c bne.n 800e3c0 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32914. 800e3a6: 6b7b ldr r3, [r7, #52] @ 0x34
  32915. 800e3a8: 2b00 cmp r3, #0
  32916. 800e3aa: d109 bne.n 800e3c0 <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32917. {
  32918. /* In Case the CKPER Source is HSI */
  32919. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32920. 800e3ac: 4b5d ldr r3, [pc, #372] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32921. 800e3ae: 681b ldr r3, [r3, #0]
  32922. 800e3b0: 08db lsrs r3, r3, #3
  32923. 800e3b2: f003 0303 and.w r3, r3, #3
  32924. 800e3b6: 4a5c ldr r2, [pc, #368] @ (800e528 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32925. 800e3b8: fa22 f303 lsr.w r3, r2, r3
  32926. 800e3bc: 63fb str r3, [r7, #60] @ 0x3c
  32927. 800e3be: e01e b.n 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32928. }
  32929. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32930. 800e3c0: 4b58 ldr r3, [pc, #352] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32931. 800e3c2: 681b ldr r3, [r3, #0]
  32932. 800e3c4: f403 7380 and.w r3, r3, #256 @ 0x100
  32933. 800e3c8: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32934. 800e3cc: d106 bne.n 800e3dc <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32935. 800e3ce: 6b7b ldr r3, [r7, #52] @ 0x34
  32936. 800e3d0: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32937. 800e3d4: d102 bne.n 800e3dc <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32938. {
  32939. /* In Case the CKPER Source is CSI */
  32940. frequency = CSI_VALUE;
  32941. 800e3d6: 4b55 ldr r3, [pc, #340] @ (800e52c <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32942. 800e3d8: 63fb str r3, [r7, #60] @ 0x3c
  32943. 800e3da: e010 b.n 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32944. }
  32945. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32946. 800e3dc: 4b51 ldr r3, [pc, #324] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32947. 800e3de: 681b ldr r3, [r3, #0]
  32948. 800e3e0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32949. 800e3e4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32950. 800e3e8: d106 bne.n 800e3f8 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32951. 800e3ea: 6b7b ldr r3, [r7, #52] @ 0x34
  32952. 800e3ec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32953. 800e3f0: d102 bne.n 800e3f8 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32954. {
  32955. /* In Case the CKPER Source is HSE */
  32956. frequency = HSE_VALUE;
  32957. 800e3f2: 4b4f ldr r3, [pc, #316] @ (800e530 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32958. 800e3f4: 63fb str r3, [r7, #60] @ 0x3c
  32959. 800e3f6: e002 b.n 800e3fe <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32960. }
  32961. else
  32962. {
  32963. /* In Case the CKPER is disabled*/
  32964. frequency = 0;
  32965. 800e3f8: 2300 movs r3, #0
  32966. 800e3fa: 63fb str r3, [r7, #60] @ 0x3c
  32967. }
  32968. break;
  32969. 800e3fc: e235 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32970. 800e3fe: e234 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32971. }
  32972. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  32973. {
  32974. frequency = EXTERNAL_CLOCK_VALUE;
  32975. 800e400: 4b4c ldr r3, [pc, #304] @ (800e534 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  32976. 800e402: 63fb str r3, [r7, #60] @ 0x3c
  32977. break;
  32978. 800e404: e231 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32979. }
  32980. default :
  32981. {
  32982. frequency = 0;
  32983. 800e406: 2300 movs r3, #0
  32984. 800e408: 63fb str r3, [r7, #60] @ 0x3c
  32985. break;
  32986. 800e40a: e22e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32987. }
  32988. }
  32989. }
  32990. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  32991. 800e40c: e9d7 2300 ldrd r2, r3, [r7]
  32992. 800e410: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  32993. 800e414: 430b orrs r3, r1
  32994. 800e416: f040 808f bne.w 800e538 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  32995. {
  32996. /* Get SPI45 clock source */
  32997. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  32998. 800e41a: 4b42 ldr r3, [pc, #264] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32999. 800e41c: 6d1b ldr r3, [r3, #80] @ 0x50
  33000. 800e41e: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  33001. 800e422: 63bb str r3, [r7, #56] @ 0x38
  33002. switch (srcclk)
  33003. 800e424: 6bbb ldr r3, [r7, #56] @ 0x38
  33004. 800e426: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33005. 800e42a: d06b beq.n 800e504 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  33006. 800e42c: 6bbb ldr r3, [r7, #56] @ 0x38
  33007. 800e42e: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  33008. 800e432: d874 bhi.n 800e51e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33009. 800e434: 6bbb ldr r3, [r7, #56] @ 0x38
  33010. 800e436: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33011. 800e43a: d056 beq.n 800e4ea <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  33012. 800e43c: 6bbb ldr r3, [r7, #56] @ 0x38
  33013. 800e43e: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  33014. 800e442: d86c bhi.n 800e51e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33015. 800e444: 6bbb ldr r3, [r7, #56] @ 0x38
  33016. 800e446: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33017. 800e44a: d03b beq.n 800e4c4 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  33018. 800e44c: 6bbb ldr r3, [r7, #56] @ 0x38
  33019. 800e44e: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  33020. 800e452: d864 bhi.n 800e51e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33021. 800e454: 6bbb ldr r3, [r7, #56] @ 0x38
  33022. 800e456: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33023. 800e45a: d021 beq.n 800e4a0 <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  33024. 800e45c: 6bbb ldr r3, [r7, #56] @ 0x38
  33025. 800e45e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33026. 800e462: d85c bhi.n 800e51e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33027. 800e464: 6bbb ldr r3, [r7, #56] @ 0x38
  33028. 800e466: 2b00 cmp r3, #0
  33029. 800e468: d004 beq.n 800e474 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  33030. 800e46a: 6bbb ldr r3, [r7, #56] @ 0x38
  33031. 800e46c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33032. 800e470: d004 beq.n 800e47c <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  33033. 800e472: e054 b.n 800e51e <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  33034. {
  33035. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  33036. {
  33037. frequency = HAL_RCC_GetPCLK1Freq();
  33038. 800e474: f7fe fa26 bl 800c8c4 <HAL_RCC_GetPCLK1Freq>
  33039. 800e478: 63f8 str r0, [r7, #60] @ 0x3c
  33040. break;
  33041. 800e47a: e1f6 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33042. }
  33043. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  33044. {
  33045. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33046. 800e47c: 4b29 ldr r3, [pc, #164] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33047. 800e47e: 681b ldr r3, [r3, #0]
  33048. 800e480: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33049. 800e484: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33050. 800e488: d107 bne.n 800e49a <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  33051. {
  33052. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33053. 800e48a: f107 0318 add.w r3, r7, #24
  33054. 800e48e: 4618 mov r0, r3
  33055. 800e490: f000 fa0a bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  33056. frequency = pll2_clocks.PLL2_Q_Frequency;
  33057. 800e494: 69fb ldr r3, [r7, #28]
  33058. 800e496: 63fb str r3, [r7, #60] @ 0x3c
  33059. }
  33060. else
  33061. {
  33062. frequency = 0;
  33063. }
  33064. break;
  33065. 800e498: e1e7 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33066. frequency = 0;
  33067. 800e49a: 2300 movs r3, #0
  33068. 800e49c: 63fb str r3, [r7, #60] @ 0x3c
  33069. break;
  33070. 800e49e: e1e4 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33071. }
  33072. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  33073. {
  33074. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33075. 800e4a0: 4b20 ldr r3, [pc, #128] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33076. 800e4a2: 681b ldr r3, [r3, #0]
  33077. 800e4a4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33078. 800e4a8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33079. 800e4ac: d107 bne.n 800e4be <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  33080. {
  33081. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33082. 800e4ae: f107 030c add.w r3, r7, #12
  33083. 800e4b2: 4618 mov r0, r3
  33084. 800e4b4: f000 fb4c bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  33085. frequency = pll3_clocks.PLL3_Q_Frequency;
  33086. 800e4b8: 693b ldr r3, [r7, #16]
  33087. 800e4ba: 63fb str r3, [r7, #60] @ 0x3c
  33088. }
  33089. else
  33090. {
  33091. frequency = 0;
  33092. }
  33093. break;
  33094. 800e4bc: e1d5 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33095. frequency = 0;
  33096. 800e4be: 2300 movs r3, #0
  33097. 800e4c0: 63fb str r3, [r7, #60] @ 0x3c
  33098. break;
  33099. 800e4c2: e1d2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33100. }
  33101. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  33102. {
  33103. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33104. 800e4c4: 4b17 ldr r3, [pc, #92] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33105. 800e4c6: 681b ldr r3, [r3, #0]
  33106. 800e4c8: f003 0304 and.w r3, r3, #4
  33107. 800e4cc: 2b04 cmp r3, #4
  33108. 800e4ce: d109 bne.n 800e4e4 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  33109. {
  33110. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33111. 800e4d0: 4b14 ldr r3, [pc, #80] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33112. 800e4d2: 681b ldr r3, [r3, #0]
  33113. 800e4d4: 08db lsrs r3, r3, #3
  33114. 800e4d6: f003 0303 and.w r3, r3, #3
  33115. 800e4da: 4a13 ldr r2, [pc, #76] @ (800e528 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  33116. 800e4dc: fa22 f303 lsr.w r3, r2, r3
  33117. 800e4e0: 63fb str r3, [r7, #60] @ 0x3c
  33118. }
  33119. else
  33120. {
  33121. frequency = 0;
  33122. }
  33123. break;
  33124. 800e4e2: e1c2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33125. frequency = 0;
  33126. 800e4e4: 2300 movs r3, #0
  33127. 800e4e6: 63fb str r3, [r7, #60] @ 0x3c
  33128. break;
  33129. 800e4e8: e1bf b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33130. }
  33131. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  33132. {
  33133. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33134. 800e4ea: 4b0e ldr r3, [pc, #56] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33135. 800e4ec: 681b ldr r3, [r3, #0]
  33136. 800e4ee: f403 7380 and.w r3, r3, #256 @ 0x100
  33137. 800e4f2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33138. 800e4f6: d102 bne.n 800e4fe <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  33139. {
  33140. frequency = CSI_VALUE;
  33141. 800e4f8: 4b0c ldr r3, [pc, #48] @ (800e52c <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  33142. 800e4fa: 63fb str r3, [r7, #60] @ 0x3c
  33143. }
  33144. else
  33145. {
  33146. frequency = 0;
  33147. }
  33148. break;
  33149. 800e4fc: e1b5 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33150. frequency = 0;
  33151. 800e4fe: 2300 movs r3, #0
  33152. 800e500: 63fb str r3, [r7, #60] @ 0x3c
  33153. break;
  33154. 800e502: e1b2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33155. }
  33156. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  33157. {
  33158. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33159. 800e504: 4b07 ldr r3, [pc, #28] @ (800e524 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  33160. 800e506: 681b ldr r3, [r3, #0]
  33161. 800e508: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33162. 800e50c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33163. 800e510: d102 bne.n 800e518 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  33164. {
  33165. frequency = HSE_VALUE;
  33166. 800e512: 4b07 ldr r3, [pc, #28] @ (800e530 <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  33167. 800e514: 63fb str r3, [r7, #60] @ 0x3c
  33168. }
  33169. else
  33170. {
  33171. frequency = 0;
  33172. }
  33173. break;
  33174. 800e516: e1a8 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33175. frequency = 0;
  33176. 800e518: 2300 movs r3, #0
  33177. 800e51a: 63fb str r3, [r7, #60] @ 0x3c
  33178. break;
  33179. 800e51c: e1a5 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33180. }
  33181. default :
  33182. {
  33183. frequency = 0;
  33184. 800e51e: 2300 movs r3, #0
  33185. 800e520: 63fb str r3, [r7, #60] @ 0x3c
  33186. break;
  33187. 800e522: e1a2 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33188. 800e524: 58024400 .word 0x58024400
  33189. 800e528: 03d09000 .word 0x03d09000
  33190. 800e52c: 003d0900 .word 0x003d0900
  33191. 800e530: 017d7840 .word 0x017d7840
  33192. 800e534: 00bb8000 .word 0x00bb8000
  33193. }
  33194. }
  33195. }
  33196. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  33197. 800e538: e9d7 2300 ldrd r2, r3, [r7]
  33198. 800e53c: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  33199. 800e540: 430b orrs r3, r1
  33200. 800e542: d173 bne.n 800e62c <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  33201. {
  33202. /* Get ADC clock source */
  33203. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  33204. 800e544: 4b9c ldr r3, [pc, #624] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33205. 800e546: 6d9b ldr r3, [r3, #88] @ 0x58
  33206. 800e548: f403 3340 and.w r3, r3, #196608 @ 0x30000
  33207. 800e54c: 63bb str r3, [r7, #56] @ 0x38
  33208. switch (srcclk)
  33209. 800e54e: 6bbb ldr r3, [r7, #56] @ 0x38
  33210. 800e550: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33211. 800e554: d02f beq.n 800e5b6 <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  33212. 800e556: 6bbb ldr r3, [r7, #56] @ 0x38
  33213. 800e558: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33214. 800e55c: d863 bhi.n 800e626 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33215. 800e55e: 6bbb ldr r3, [r7, #56] @ 0x38
  33216. 800e560: 2b00 cmp r3, #0
  33217. 800e562: d004 beq.n 800e56e <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  33218. 800e564: 6bbb ldr r3, [r7, #56] @ 0x38
  33219. 800e566: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33220. 800e56a: d012 beq.n 800e592 <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  33221. 800e56c: e05b b.n 800e626 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  33222. {
  33223. case RCC_ADCCLKSOURCE_PLL2:
  33224. {
  33225. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33226. 800e56e: 4b92 ldr r3, [pc, #584] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33227. 800e570: 681b ldr r3, [r3, #0]
  33228. 800e572: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33229. 800e576: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33230. 800e57a: d107 bne.n 800e58c <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  33231. {
  33232. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33233. 800e57c: f107 0318 add.w r3, r7, #24
  33234. 800e580: 4618 mov r0, r3
  33235. 800e582: f000 f991 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  33236. frequency = pll2_clocks.PLL2_P_Frequency;
  33237. 800e586: 69bb ldr r3, [r7, #24]
  33238. 800e588: 63fb str r3, [r7, #60] @ 0x3c
  33239. }
  33240. else
  33241. {
  33242. frequency = 0;
  33243. }
  33244. break;
  33245. 800e58a: e16e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33246. frequency = 0;
  33247. 800e58c: 2300 movs r3, #0
  33248. 800e58e: 63fb str r3, [r7, #60] @ 0x3c
  33249. break;
  33250. 800e590: e16b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33251. }
  33252. case RCC_ADCCLKSOURCE_PLL3:
  33253. {
  33254. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33255. 800e592: 4b89 ldr r3, [pc, #548] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33256. 800e594: 681b ldr r3, [r3, #0]
  33257. 800e596: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33258. 800e59a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33259. 800e59e: d107 bne.n 800e5b0 <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  33260. {
  33261. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33262. 800e5a0: f107 030c add.w r3, r7, #12
  33263. 800e5a4: 4618 mov r0, r3
  33264. 800e5a6: f000 fad3 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  33265. frequency = pll3_clocks.PLL3_R_Frequency;
  33266. 800e5aa: 697b ldr r3, [r7, #20]
  33267. 800e5ac: 63fb str r3, [r7, #60] @ 0x3c
  33268. }
  33269. else
  33270. {
  33271. frequency = 0;
  33272. }
  33273. break;
  33274. 800e5ae: e15c b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33275. frequency = 0;
  33276. 800e5b0: 2300 movs r3, #0
  33277. 800e5b2: 63fb str r3, [r7, #60] @ 0x3c
  33278. break;
  33279. 800e5b4: e159 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33280. }
  33281. case RCC_ADCCLKSOURCE_CLKP:
  33282. {
  33283. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  33284. 800e5b6: 4b80 ldr r3, [pc, #512] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33285. 800e5b8: 6cdb ldr r3, [r3, #76] @ 0x4c
  33286. 800e5ba: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33287. 800e5be: 637b str r3, [r7, #52] @ 0x34
  33288. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  33289. 800e5c0: 4b7d ldr r3, [pc, #500] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33290. 800e5c2: 681b ldr r3, [r3, #0]
  33291. 800e5c4: f003 0304 and.w r3, r3, #4
  33292. 800e5c8: 2b04 cmp r3, #4
  33293. 800e5ca: d10c bne.n 800e5e6 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33294. 800e5cc: 6b7b ldr r3, [r7, #52] @ 0x34
  33295. 800e5ce: 2b00 cmp r3, #0
  33296. 800e5d0: d109 bne.n 800e5e6 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  33297. {
  33298. /* In Case the CKPER Source is HSI */
  33299. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33300. 800e5d2: 4b79 ldr r3, [pc, #484] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33301. 800e5d4: 681b ldr r3, [r3, #0]
  33302. 800e5d6: 08db lsrs r3, r3, #3
  33303. 800e5d8: f003 0303 and.w r3, r3, #3
  33304. 800e5dc: 4a77 ldr r2, [pc, #476] @ (800e7bc <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33305. 800e5de: fa22 f303 lsr.w r3, r2, r3
  33306. 800e5e2: 63fb str r3, [r7, #60] @ 0x3c
  33307. 800e5e4: e01e b.n 800e624 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33308. }
  33309. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  33310. 800e5e6: 4b74 ldr r3, [pc, #464] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33311. 800e5e8: 681b ldr r3, [r3, #0]
  33312. 800e5ea: f403 7380 and.w r3, r3, #256 @ 0x100
  33313. 800e5ee: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33314. 800e5f2: d106 bne.n 800e602 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33315. 800e5f4: 6b7b ldr r3, [r7, #52] @ 0x34
  33316. 800e5f6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33317. 800e5fa: d102 bne.n 800e602 <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  33318. {
  33319. /* In Case the CKPER Source is CSI */
  33320. frequency = CSI_VALUE;
  33321. 800e5fc: 4b70 ldr r3, [pc, #448] @ (800e7c0 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33322. 800e5fe: 63fb str r3, [r7, #60] @ 0x3c
  33323. 800e600: e010 b.n 800e624 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33324. }
  33325. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  33326. 800e602: 4b6d ldr r3, [pc, #436] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33327. 800e604: 681b ldr r3, [r3, #0]
  33328. 800e606: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33329. 800e60a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33330. 800e60e: d106 bne.n 800e61e <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33331. 800e610: 6b7b ldr r3, [r7, #52] @ 0x34
  33332. 800e612: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33333. 800e616: d102 bne.n 800e61e <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  33334. {
  33335. /* In Case the CKPER Source is HSE */
  33336. frequency = HSE_VALUE;
  33337. 800e618: 4b6a ldr r3, [pc, #424] @ (800e7c4 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33338. 800e61a: 63fb str r3, [r7, #60] @ 0x3c
  33339. 800e61c: e002 b.n 800e624 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  33340. }
  33341. else
  33342. {
  33343. /* In Case the CKPER is disabled*/
  33344. frequency = 0;
  33345. 800e61e: 2300 movs r3, #0
  33346. 800e620: 63fb str r3, [r7, #60] @ 0x3c
  33347. }
  33348. break;
  33349. 800e622: e122 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33350. 800e624: e121 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33351. }
  33352. default :
  33353. {
  33354. frequency = 0;
  33355. 800e626: 2300 movs r3, #0
  33356. 800e628: 63fb str r3, [r7, #60] @ 0x3c
  33357. break;
  33358. 800e62a: e11e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33359. }
  33360. }
  33361. }
  33362. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  33363. 800e62c: e9d7 2300 ldrd r2, r3, [r7]
  33364. 800e630: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  33365. 800e634: 430b orrs r3, r1
  33366. 800e636: d133 bne.n 800e6a0 <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  33367. {
  33368. /* Get SDMMC clock source */
  33369. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  33370. 800e638: 4b5f ldr r3, [pc, #380] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33371. 800e63a: 6cdb ldr r3, [r3, #76] @ 0x4c
  33372. 800e63c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  33373. 800e640: 63bb str r3, [r7, #56] @ 0x38
  33374. switch (srcclk)
  33375. 800e642: 6bbb ldr r3, [r7, #56] @ 0x38
  33376. 800e644: 2b00 cmp r3, #0
  33377. 800e646: d004 beq.n 800e652 <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  33378. 800e648: 6bbb ldr r3, [r7, #56] @ 0x38
  33379. 800e64a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33380. 800e64e: d012 beq.n 800e676 <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  33381. 800e650: e023 b.n 800e69a <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  33382. {
  33383. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  33384. {
  33385. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33386. 800e652: 4b59 ldr r3, [pc, #356] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33387. 800e654: 681b ldr r3, [r3, #0]
  33388. 800e656: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33389. 800e65a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33390. 800e65e: d107 bne.n 800e670 <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  33391. {
  33392. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33393. 800e660: f107 0324 add.w r3, r7, #36 @ 0x24
  33394. 800e664: 4618 mov r0, r3
  33395. 800e666: f000 fbc7 bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  33396. frequency = pll1_clocks.PLL1_Q_Frequency;
  33397. 800e66a: 6abb ldr r3, [r7, #40] @ 0x28
  33398. 800e66c: 63fb str r3, [r7, #60] @ 0x3c
  33399. }
  33400. else
  33401. {
  33402. frequency = 0;
  33403. }
  33404. break;
  33405. 800e66e: e0fc b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33406. frequency = 0;
  33407. 800e670: 2300 movs r3, #0
  33408. 800e672: 63fb str r3, [r7, #60] @ 0x3c
  33409. break;
  33410. 800e674: e0f9 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33411. }
  33412. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  33413. {
  33414. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33415. 800e676: 4b50 ldr r3, [pc, #320] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33416. 800e678: 681b ldr r3, [r3, #0]
  33417. 800e67a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33418. 800e67e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33419. 800e682: d107 bne.n 800e694 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  33420. {
  33421. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33422. 800e684: f107 0318 add.w r3, r7, #24
  33423. 800e688: 4618 mov r0, r3
  33424. 800e68a: f000 f90d bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  33425. frequency = pll2_clocks.PLL2_R_Frequency;
  33426. 800e68e: 6a3b ldr r3, [r7, #32]
  33427. 800e690: 63fb str r3, [r7, #60] @ 0x3c
  33428. }
  33429. else
  33430. {
  33431. frequency = 0;
  33432. }
  33433. break;
  33434. 800e692: e0ea b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33435. frequency = 0;
  33436. 800e694: 2300 movs r3, #0
  33437. 800e696: 63fb str r3, [r7, #60] @ 0x3c
  33438. break;
  33439. 800e698: e0e7 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33440. }
  33441. default :
  33442. {
  33443. frequency = 0;
  33444. 800e69a: 2300 movs r3, #0
  33445. 800e69c: 63fb str r3, [r7, #60] @ 0x3c
  33446. break;
  33447. 800e69e: e0e4 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33448. }
  33449. }
  33450. }
  33451. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  33452. 800e6a0: e9d7 2300 ldrd r2, r3, [r7]
  33453. 800e6a4: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  33454. 800e6a8: 430b orrs r3, r1
  33455. 800e6aa: f040 808d bne.w 800e7c8 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  33456. {
  33457. /* Get SPI6 clock source */
  33458. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  33459. 800e6ae: 4b42 ldr r3, [pc, #264] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33460. 800e6b0: 6d9b ldr r3, [r3, #88] @ 0x58
  33461. 800e6b2: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  33462. 800e6b6: 63bb str r3, [r7, #56] @ 0x38
  33463. switch (srcclk)
  33464. 800e6b8: 6bbb ldr r3, [r7, #56] @ 0x38
  33465. 800e6ba: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33466. 800e6be: d06b beq.n 800e798 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  33467. 800e6c0: 6bbb ldr r3, [r7, #56] @ 0x38
  33468. 800e6c2: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33469. 800e6c6: d874 bhi.n 800e7b2 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33470. 800e6c8: 6bbb ldr r3, [r7, #56] @ 0x38
  33471. 800e6ca: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33472. 800e6ce: d056 beq.n 800e77e <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  33473. 800e6d0: 6bbb ldr r3, [r7, #56] @ 0x38
  33474. 800e6d2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33475. 800e6d6: d86c bhi.n 800e7b2 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33476. 800e6d8: 6bbb ldr r3, [r7, #56] @ 0x38
  33477. 800e6da: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33478. 800e6de: d03b beq.n 800e758 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  33479. 800e6e0: 6bbb ldr r3, [r7, #56] @ 0x38
  33480. 800e6e2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33481. 800e6e6: d864 bhi.n 800e7b2 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33482. 800e6e8: 6bbb ldr r3, [r7, #56] @ 0x38
  33483. 800e6ea: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33484. 800e6ee: d021 beq.n 800e734 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  33485. 800e6f0: 6bbb ldr r3, [r7, #56] @ 0x38
  33486. 800e6f2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33487. 800e6f6: d85c bhi.n 800e7b2 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33488. 800e6f8: 6bbb ldr r3, [r7, #56] @ 0x38
  33489. 800e6fa: 2b00 cmp r3, #0
  33490. 800e6fc: d004 beq.n 800e708 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  33491. 800e6fe: 6bbb ldr r3, [r7, #56] @ 0x38
  33492. 800e700: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33493. 800e704: d004 beq.n 800e710 <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  33494. 800e706: e054 b.n 800e7b2 <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33495. {
  33496. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  33497. {
  33498. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  33499. 800e708: f000 f8b8 bl 800e87c <HAL_RCCEx_GetD3PCLK1Freq>
  33500. 800e70c: 63f8 str r0, [r7, #60] @ 0x3c
  33501. break;
  33502. 800e70e: e0ac b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33503. }
  33504. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  33505. {
  33506. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33507. 800e710: 4b29 ldr r3, [pc, #164] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33508. 800e712: 681b ldr r3, [r3, #0]
  33509. 800e714: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33510. 800e718: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33511. 800e71c: d107 bne.n 800e72e <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  33512. {
  33513. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33514. 800e71e: f107 0318 add.w r3, r7, #24
  33515. 800e722: 4618 mov r0, r3
  33516. 800e724: f000 f8c0 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  33517. frequency = pll2_clocks.PLL2_Q_Frequency;
  33518. 800e728: 69fb ldr r3, [r7, #28]
  33519. 800e72a: 63fb str r3, [r7, #60] @ 0x3c
  33520. }
  33521. else
  33522. {
  33523. frequency = 0;
  33524. }
  33525. break;
  33526. 800e72c: e09d b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33527. frequency = 0;
  33528. 800e72e: 2300 movs r3, #0
  33529. 800e730: 63fb str r3, [r7, #60] @ 0x3c
  33530. break;
  33531. 800e732: e09a b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33532. }
  33533. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  33534. {
  33535. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33536. 800e734: 4b20 ldr r3, [pc, #128] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33537. 800e736: 681b ldr r3, [r3, #0]
  33538. 800e738: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33539. 800e73c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33540. 800e740: d107 bne.n 800e752 <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  33541. {
  33542. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33543. 800e742: f107 030c add.w r3, r7, #12
  33544. 800e746: 4618 mov r0, r3
  33545. 800e748: f000 fa02 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  33546. frequency = pll3_clocks.PLL3_Q_Frequency;
  33547. 800e74c: 693b ldr r3, [r7, #16]
  33548. 800e74e: 63fb str r3, [r7, #60] @ 0x3c
  33549. }
  33550. else
  33551. {
  33552. frequency = 0;
  33553. }
  33554. break;
  33555. 800e750: e08b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33556. frequency = 0;
  33557. 800e752: 2300 movs r3, #0
  33558. 800e754: 63fb str r3, [r7, #60] @ 0x3c
  33559. break;
  33560. 800e756: e088 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33561. }
  33562. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  33563. {
  33564. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33565. 800e758: 4b17 ldr r3, [pc, #92] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33566. 800e75a: 681b ldr r3, [r3, #0]
  33567. 800e75c: f003 0304 and.w r3, r3, #4
  33568. 800e760: 2b04 cmp r3, #4
  33569. 800e762: d109 bne.n 800e778 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  33570. {
  33571. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33572. 800e764: 4b14 ldr r3, [pc, #80] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33573. 800e766: 681b ldr r3, [r3, #0]
  33574. 800e768: 08db lsrs r3, r3, #3
  33575. 800e76a: f003 0303 and.w r3, r3, #3
  33576. 800e76e: 4a13 ldr r2, [pc, #76] @ (800e7bc <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33577. 800e770: fa22 f303 lsr.w r3, r2, r3
  33578. 800e774: 63fb str r3, [r7, #60] @ 0x3c
  33579. }
  33580. else
  33581. {
  33582. frequency = 0;
  33583. }
  33584. break;
  33585. 800e776: e078 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33586. frequency = 0;
  33587. 800e778: 2300 movs r3, #0
  33588. 800e77a: 63fb str r3, [r7, #60] @ 0x3c
  33589. break;
  33590. 800e77c: e075 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33591. }
  33592. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  33593. {
  33594. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33595. 800e77e: 4b0e ldr r3, [pc, #56] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33596. 800e780: 681b ldr r3, [r3, #0]
  33597. 800e782: f403 7380 and.w r3, r3, #256 @ 0x100
  33598. 800e786: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33599. 800e78a: d102 bne.n 800e792 <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  33600. {
  33601. frequency = CSI_VALUE;
  33602. 800e78c: 4b0c ldr r3, [pc, #48] @ (800e7c0 <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33603. 800e78e: 63fb str r3, [r7, #60] @ 0x3c
  33604. }
  33605. else
  33606. {
  33607. frequency = 0;
  33608. }
  33609. break;
  33610. 800e790: e06b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33611. frequency = 0;
  33612. 800e792: 2300 movs r3, #0
  33613. 800e794: 63fb str r3, [r7, #60] @ 0x3c
  33614. break;
  33615. 800e796: e068 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33616. }
  33617. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  33618. {
  33619. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33620. 800e798: 4b07 ldr r3, [pc, #28] @ (800e7b8 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33621. 800e79a: 681b ldr r3, [r3, #0]
  33622. 800e79c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33623. 800e7a0: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33624. 800e7a4: d102 bne.n 800e7ac <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  33625. {
  33626. frequency = HSE_VALUE;
  33627. 800e7a6: 4b07 ldr r3, [pc, #28] @ (800e7c4 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33628. 800e7a8: 63fb str r3, [r7, #60] @ 0x3c
  33629. }
  33630. else
  33631. {
  33632. frequency = 0;
  33633. }
  33634. break;
  33635. 800e7aa: e05e b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33636. frequency = 0;
  33637. 800e7ac: 2300 movs r3, #0
  33638. 800e7ae: 63fb str r3, [r7, #60] @ 0x3c
  33639. break;
  33640. 800e7b0: e05b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33641. break;
  33642. }
  33643. #endif /* RCC_SPI6CLKSOURCE_PIN */
  33644. default :
  33645. {
  33646. frequency = 0;
  33647. 800e7b2: 2300 movs r3, #0
  33648. 800e7b4: 63fb str r3, [r7, #60] @ 0x3c
  33649. break;
  33650. 800e7b6: e058 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33651. 800e7b8: 58024400 .word 0x58024400
  33652. 800e7bc: 03d09000 .word 0x03d09000
  33653. 800e7c0: 003d0900 .word 0x003d0900
  33654. 800e7c4: 017d7840 .word 0x017d7840
  33655. }
  33656. }
  33657. }
  33658. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  33659. 800e7c8: e9d7 2300 ldrd r2, r3, [r7]
  33660. 800e7cc: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  33661. 800e7d0: 430b orrs r3, r1
  33662. 800e7d2: d148 bne.n 800e866 <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  33663. {
  33664. /* Get FDCAN clock source */
  33665. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  33666. 800e7d4: 4b27 ldr r3, [pc, #156] @ (800e874 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33667. 800e7d6: 6d1b ldr r3, [r3, #80] @ 0x50
  33668. 800e7d8: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33669. 800e7dc: 63bb str r3, [r7, #56] @ 0x38
  33670. switch (srcclk)
  33671. 800e7de: 6bbb ldr r3, [r7, #56] @ 0x38
  33672. 800e7e0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33673. 800e7e4: d02a beq.n 800e83c <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  33674. 800e7e6: 6bbb ldr r3, [r7, #56] @ 0x38
  33675. 800e7e8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33676. 800e7ec: d838 bhi.n 800e860 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33677. 800e7ee: 6bbb ldr r3, [r7, #56] @ 0x38
  33678. 800e7f0: 2b00 cmp r3, #0
  33679. 800e7f2: d004 beq.n 800e7fe <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  33680. 800e7f4: 6bbb ldr r3, [r7, #56] @ 0x38
  33681. 800e7f6: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33682. 800e7fa: d00d beq.n 800e818 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  33683. 800e7fc: e030 b.n 800e860 <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33684. {
  33685. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  33686. {
  33687. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33688. 800e7fe: 4b1d ldr r3, [pc, #116] @ (800e874 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33689. 800e800: 681b ldr r3, [r3, #0]
  33690. 800e802: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33691. 800e806: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33692. 800e80a: d102 bne.n 800e812 <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  33693. {
  33694. frequency = HSE_VALUE;
  33695. 800e80c: 4b1a ldr r3, [pc, #104] @ (800e878 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  33696. 800e80e: 63fb str r3, [r7, #60] @ 0x3c
  33697. }
  33698. else
  33699. {
  33700. frequency = 0;
  33701. }
  33702. break;
  33703. 800e810: e02b b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33704. frequency = 0;
  33705. 800e812: 2300 movs r3, #0
  33706. 800e814: 63fb str r3, [r7, #60] @ 0x3c
  33707. break;
  33708. 800e816: e028 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33709. }
  33710. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  33711. {
  33712. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33713. 800e818: 4b16 ldr r3, [pc, #88] @ (800e874 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33714. 800e81a: 681b ldr r3, [r3, #0]
  33715. 800e81c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33716. 800e820: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33717. 800e824: d107 bne.n 800e836 <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  33718. {
  33719. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33720. 800e826: f107 0324 add.w r3, r7, #36 @ 0x24
  33721. 800e82a: 4618 mov r0, r3
  33722. 800e82c: f000 fae4 bl 800edf8 <HAL_RCCEx_GetPLL1ClockFreq>
  33723. frequency = pll1_clocks.PLL1_Q_Frequency;
  33724. 800e830: 6abb ldr r3, [r7, #40] @ 0x28
  33725. 800e832: 63fb str r3, [r7, #60] @ 0x3c
  33726. }
  33727. else
  33728. {
  33729. frequency = 0;
  33730. }
  33731. break;
  33732. 800e834: e019 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33733. frequency = 0;
  33734. 800e836: 2300 movs r3, #0
  33735. 800e838: 63fb str r3, [r7, #60] @ 0x3c
  33736. break;
  33737. 800e83a: e016 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33738. }
  33739. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  33740. {
  33741. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33742. 800e83c: 4b0d ldr r3, [pc, #52] @ (800e874 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33743. 800e83e: 681b ldr r3, [r3, #0]
  33744. 800e840: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33745. 800e844: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33746. 800e848: d107 bne.n 800e85a <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  33747. {
  33748. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33749. 800e84a: f107 0318 add.w r3, r7, #24
  33750. 800e84e: 4618 mov r0, r3
  33751. 800e850: f000 f82a bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  33752. frequency = pll2_clocks.PLL2_Q_Frequency;
  33753. 800e854: 69fb ldr r3, [r7, #28]
  33754. 800e856: 63fb str r3, [r7, #60] @ 0x3c
  33755. }
  33756. else
  33757. {
  33758. frequency = 0;
  33759. }
  33760. break;
  33761. 800e858: e007 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33762. frequency = 0;
  33763. 800e85a: 2300 movs r3, #0
  33764. 800e85c: 63fb str r3, [r7, #60] @ 0x3c
  33765. break;
  33766. 800e85e: e004 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33767. }
  33768. default :
  33769. {
  33770. frequency = 0;
  33771. 800e860: 2300 movs r3, #0
  33772. 800e862: 63fb str r3, [r7, #60] @ 0x3c
  33773. break;
  33774. 800e864: e001 b.n 800e86a <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33775. }
  33776. }
  33777. }
  33778. else
  33779. {
  33780. frequency = 0;
  33781. 800e866: 2300 movs r3, #0
  33782. 800e868: 63fb str r3, [r7, #60] @ 0x3c
  33783. }
  33784. return frequency;
  33785. 800e86a: 6bfb ldr r3, [r7, #60] @ 0x3c
  33786. }
  33787. 800e86c: 4618 mov r0, r3
  33788. 800e86e: 3740 adds r7, #64 @ 0x40
  33789. 800e870: 46bd mov sp, r7
  33790. 800e872: bd80 pop {r7, pc}
  33791. 800e874: 58024400 .word 0x58024400
  33792. 800e878: 017d7840 .word 0x017d7840
  33793. 0800e87c <HAL_RCCEx_GetD3PCLK1Freq>:
  33794. * @note Each time D3PCLK1 changes, this function must be called to update the
  33795. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  33796. * @retval D3PCLK1 frequency
  33797. */
  33798. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  33799. {
  33800. 800e87c: b580 push {r7, lr}
  33801. 800e87e: af00 add r7, sp, #0
  33802. #if defined(RCC_D3CFGR_D3PPRE)
  33803. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33804. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  33805. 800e880: f7fd fff0 bl 800c864 <HAL_RCC_GetHCLKFreq>
  33806. 800e884: 4602 mov r2, r0
  33807. 800e886: 4b06 ldr r3, [pc, #24] @ (800e8a0 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  33808. 800e888: 6a1b ldr r3, [r3, #32]
  33809. 800e88a: 091b lsrs r3, r3, #4
  33810. 800e88c: f003 0307 and.w r3, r3, #7
  33811. 800e890: 4904 ldr r1, [pc, #16] @ (800e8a4 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  33812. 800e892: 5ccb ldrb r3, [r1, r3]
  33813. 800e894: f003 031f and.w r3, r3, #31
  33814. 800e898: fa22 f303 lsr.w r3, r2, r3
  33815. #else
  33816. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33817. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  33818. #endif
  33819. }
  33820. 800e89c: 4618 mov r0, r3
  33821. 800e89e: bd80 pop {r7, pc}
  33822. 800e8a0: 58024400 .word 0x58024400
  33823. 800e8a4: 0801870c .word 0x0801870c
  33824. 0800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>:
  33825. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  33826. * @param PLL2_Clocks structure.
  33827. * @retval None
  33828. */
  33829. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  33830. {
  33831. 800e8a8: b480 push {r7}
  33832. 800e8aa: b089 sub sp, #36 @ 0x24
  33833. 800e8ac: af00 add r7, sp, #0
  33834. 800e8ae: 6078 str r0, [r7, #4]
  33835. float_t fracn2, pll2vco;
  33836. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  33837. PLL2xCLK = PLL2_VCO / PLL2x
  33838. */
  33839. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33840. 800e8b0: 4ba1 ldr r3, [pc, #644] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33841. 800e8b2: 6a9b ldr r3, [r3, #40] @ 0x28
  33842. 800e8b4: f003 0303 and.w r3, r3, #3
  33843. 800e8b8: 61bb str r3, [r7, #24]
  33844. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  33845. 800e8ba: 4b9f ldr r3, [pc, #636] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33846. 800e8bc: 6a9b ldr r3, [r3, #40] @ 0x28
  33847. 800e8be: 0b1b lsrs r3, r3, #12
  33848. 800e8c0: f003 033f and.w r3, r3, #63 @ 0x3f
  33849. 800e8c4: 617b str r3, [r7, #20]
  33850. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  33851. 800e8c6: 4b9c ldr r3, [pc, #624] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33852. 800e8c8: 6adb ldr r3, [r3, #44] @ 0x2c
  33853. 800e8ca: 091b lsrs r3, r3, #4
  33854. 800e8cc: f003 0301 and.w r3, r3, #1
  33855. 800e8d0: 613b str r3, [r7, #16]
  33856. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  33857. 800e8d2: 4b99 ldr r3, [pc, #612] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33858. 800e8d4: 6bdb ldr r3, [r3, #60] @ 0x3c
  33859. 800e8d6: 08db lsrs r3, r3, #3
  33860. 800e8d8: f3c3 030c ubfx r3, r3, #0, #13
  33861. 800e8dc: 693a ldr r2, [r7, #16]
  33862. 800e8de: fb02 f303 mul.w r3, r2, r3
  33863. 800e8e2: ee07 3a90 vmov s15, r3
  33864. 800e8e6: eef8 7a67 vcvt.f32.u32 s15, s15
  33865. 800e8ea: edc7 7a03 vstr s15, [r7, #12]
  33866. if (pll2m != 0U)
  33867. 800e8ee: 697b ldr r3, [r7, #20]
  33868. 800e8f0: 2b00 cmp r3, #0
  33869. 800e8f2: f000 8111 beq.w 800eb18 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  33870. {
  33871. switch (pllsource)
  33872. 800e8f6: 69bb ldr r3, [r7, #24]
  33873. 800e8f8: 2b02 cmp r3, #2
  33874. 800e8fa: f000 8083 beq.w 800ea04 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  33875. 800e8fe: 69bb ldr r3, [r7, #24]
  33876. 800e900: 2b02 cmp r3, #2
  33877. 800e902: f200 80a1 bhi.w 800ea48 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33878. 800e906: 69bb ldr r3, [r7, #24]
  33879. 800e908: 2b00 cmp r3, #0
  33880. 800e90a: d003 beq.n 800e914 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  33881. 800e90c: 69bb ldr r3, [r7, #24]
  33882. 800e90e: 2b01 cmp r3, #1
  33883. 800e910: d056 beq.n 800e9c0 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  33884. 800e912: e099 b.n 800ea48 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33885. {
  33886. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33887. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33888. 800e914: 4b88 ldr r3, [pc, #544] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33889. 800e916: 681b ldr r3, [r3, #0]
  33890. 800e918: f003 0320 and.w r3, r3, #32
  33891. 800e91c: 2b00 cmp r3, #0
  33892. 800e91e: d02d beq.n 800e97c <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  33893. {
  33894. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33895. 800e920: 4b85 ldr r3, [pc, #532] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33896. 800e922: 681b ldr r3, [r3, #0]
  33897. 800e924: 08db lsrs r3, r3, #3
  33898. 800e926: f003 0303 and.w r3, r3, #3
  33899. 800e92a: 4a84 ldr r2, [pc, #528] @ (800eb3c <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  33900. 800e92c: fa22 f303 lsr.w r3, r2, r3
  33901. 800e930: 60bb str r3, [r7, #8]
  33902. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33903. 800e932: 68bb ldr r3, [r7, #8]
  33904. 800e934: ee07 3a90 vmov s15, r3
  33905. 800e938: eef8 6a67 vcvt.f32.u32 s13, s15
  33906. 800e93c: 697b ldr r3, [r7, #20]
  33907. 800e93e: ee07 3a90 vmov s15, r3
  33908. 800e942: eef8 7a67 vcvt.f32.u32 s15, s15
  33909. 800e946: ee86 7aa7 vdiv.f32 s14, s13, s15
  33910. 800e94a: 4b7b ldr r3, [pc, #492] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33911. 800e94c: 6b9b ldr r3, [r3, #56] @ 0x38
  33912. 800e94e: f3c3 0308 ubfx r3, r3, #0, #9
  33913. 800e952: ee07 3a90 vmov s15, r3
  33914. 800e956: eef8 6a67 vcvt.f32.u32 s13, s15
  33915. 800e95a: ed97 6a03 vldr s12, [r7, #12]
  33916. 800e95e: eddf 5a78 vldr s11, [pc, #480] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33917. 800e962: eec6 7a25 vdiv.f32 s15, s12, s11
  33918. 800e966: ee76 7aa7 vadd.f32 s15, s13, s15
  33919. 800e96a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33920. 800e96e: ee77 7aa6 vadd.f32 s15, s15, s13
  33921. 800e972: ee67 7a27 vmul.f32 s15, s14, s15
  33922. 800e976: edc7 7a07 vstr s15, [r7, #28]
  33923. }
  33924. else
  33925. {
  33926. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33927. }
  33928. break;
  33929. 800e97a: e087 b.n 800ea8c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33930. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33931. 800e97c: 697b ldr r3, [r7, #20]
  33932. 800e97e: ee07 3a90 vmov s15, r3
  33933. 800e982: eef8 7a67 vcvt.f32.u32 s15, s15
  33934. 800e986: eddf 6a6f vldr s13, [pc, #444] @ 800eb44 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  33935. 800e98a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33936. 800e98e: 4b6a ldr r3, [pc, #424] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33937. 800e990: 6b9b ldr r3, [r3, #56] @ 0x38
  33938. 800e992: f3c3 0308 ubfx r3, r3, #0, #9
  33939. 800e996: ee07 3a90 vmov s15, r3
  33940. 800e99a: eef8 6a67 vcvt.f32.u32 s13, s15
  33941. 800e99e: ed97 6a03 vldr s12, [r7, #12]
  33942. 800e9a2: eddf 5a67 vldr s11, [pc, #412] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33943. 800e9a6: eec6 7a25 vdiv.f32 s15, s12, s11
  33944. 800e9aa: ee76 7aa7 vadd.f32 s15, s13, s15
  33945. 800e9ae: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33946. 800e9b2: ee77 7aa6 vadd.f32 s15, s15, s13
  33947. 800e9b6: ee67 7a27 vmul.f32 s15, s14, s15
  33948. 800e9ba: edc7 7a07 vstr s15, [r7, #28]
  33949. break;
  33950. 800e9be: e065 b.n 800ea8c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33951. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33952. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33953. 800e9c0: 697b ldr r3, [r7, #20]
  33954. 800e9c2: ee07 3a90 vmov s15, r3
  33955. 800e9c6: eef8 7a67 vcvt.f32.u32 s15, s15
  33956. 800e9ca: eddf 6a5f vldr s13, [pc, #380] @ 800eb48 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33957. 800e9ce: ee86 7aa7 vdiv.f32 s14, s13, s15
  33958. 800e9d2: 4b59 ldr r3, [pc, #356] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33959. 800e9d4: 6b9b ldr r3, [r3, #56] @ 0x38
  33960. 800e9d6: f3c3 0308 ubfx r3, r3, #0, #9
  33961. 800e9da: ee07 3a90 vmov s15, r3
  33962. 800e9de: eef8 6a67 vcvt.f32.u32 s13, s15
  33963. 800e9e2: ed97 6a03 vldr s12, [r7, #12]
  33964. 800e9e6: eddf 5a56 vldr s11, [pc, #344] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33965. 800e9ea: eec6 7a25 vdiv.f32 s15, s12, s11
  33966. 800e9ee: ee76 7aa7 vadd.f32 s15, s13, s15
  33967. 800e9f2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33968. 800e9f6: ee77 7aa6 vadd.f32 s15, s15, s13
  33969. 800e9fa: ee67 7a27 vmul.f32 s15, s14, s15
  33970. 800e9fe: edc7 7a07 vstr s15, [r7, #28]
  33971. break;
  33972. 800ea02: e043 b.n 800ea8c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33973. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33974. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33975. 800ea04: 697b ldr r3, [r7, #20]
  33976. 800ea06: ee07 3a90 vmov s15, r3
  33977. 800ea0a: eef8 7a67 vcvt.f32.u32 s15, s15
  33978. 800ea0e: eddf 6a4f vldr s13, [pc, #316] @ 800eb4c <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  33979. 800ea12: ee86 7aa7 vdiv.f32 s14, s13, s15
  33980. 800ea16: 4b48 ldr r3, [pc, #288] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33981. 800ea18: 6b9b ldr r3, [r3, #56] @ 0x38
  33982. 800ea1a: f3c3 0308 ubfx r3, r3, #0, #9
  33983. 800ea1e: ee07 3a90 vmov s15, r3
  33984. 800ea22: eef8 6a67 vcvt.f32.u32 s13, s15
  33985. 800ea26: ed97 6a03 vldr s12, [r7, #12]
  33986. 800ea2a: eddf 5a45 vldr s11, [pc, #276] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33987. 800ea2e: eec6 7a25 vdiv.f32 s15, s12, s11
  33988. 800ea32: ee76 7aa7 vadd.f32 s15, s13, s15
  33989. 800ea36: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33990. 800ea3a: ee77 7aa6 vadd.f32 s15, s15, s13
  33991. 800ea3e: ee67 7a27 vmul.f32 s15, s14, s15
  33992. 800ea42: edc7 7a07 vstr s15, [r7, #28]
  33993. break;
  33994. 800ea46: e021 b.n 800ea8c <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33995. default:
  33996. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33997. 800ea48: 697b ldr r3, [r7, #20]
  33998. 800ea4a: ee07 3a90 vmov s15, r3
  33999. 800ea4e: eef8 7a67 vcvt.f32.u32 s15, s15
  34000. 800ea52: eddf 6a3d vldr s13, [pc, #244] @ 800eb48 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  34001. 800ea56: ee86 7aa7 vdiv.f32 s14, s13, s15
  34002. 800ea5a: 4b37 ldr r3, [pc, #220] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34003. 800ea5c: 6b9b ldr r3, [r3, #56] @ 0x38
  34004. 800ea5e: f3c3 0308 ubfx r3, r3, #0, #9
  34005. 800ea62: ee07 3a90 vmov s15, r3
  34006. 800ea66: eef8 6a67 vcvt.f32.u32 s13, s15
  34007. 800ea6a: ed97 6a03 vldr s12, [r7, #12]
  34008. 800ea6e: eddf 5a34 vldr s11, [pc, #208] @ 800eb40 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  34009. 800ea72: eec6 7a25 vdiv.f32 s15, s12, s11
  34010. 800ea76: ee76 7aa7 vadd.f32 s15, s13, s15
  34011. 800ea7a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34012. 800ea7e: ee77 7aa6 vadd.f32 s15, s15, s13
  34013. 800ea82: ee67 7a27 vmul.f32 s15, s14, s15
  34014. 800ea86: edc7 7a07 vstr s15, [r7, #28]
  34015. break;
  34016. 800ea8a: bf00 nop
  34017. }
  34018. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  34019. 800ea8c: 4b2a ldr r3, [pc, #168] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34020. 800ea8e: 6b9b ldr r3, [r3, #56] @ 0x38
  34021. 800ea90: 0a5b lsrs r3, r3, #9
  34022. 800ea92: f003 037f and.w r3, r3, #127 @ 0x7f
  34023. 800ea96: ee07 3a90 vmov s15, r3
  34024. 800ea9a: eef8 7a67 vcvt.f32.u32 s15, s15
  34025. 800ea9e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34026. 800eaa2: ee37 7a87 vadd.f32 s14, s15, s14
  34027. 800eaa6: edd7 6a07 vldr s13, [r7, #28]
  34028. 800eaaa: eec6 7a87 vdiv.f32 s15, s13, s14
  34029. 800eaae: eefc 7ae7 vcvt.u32.f32 s15, s15
  34030. 800eab2: ee17 2a90 vmov r2, s15
  34031. 800eab6: 687b ldr r3, [r7, #4]
  34032. 800eab8: 601a str r2, [r3, #0]
  34033. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  34034. 800eaba: 4b1f ldr r3, [pc, #124] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34035. 800eabc: 6b9b ldr r3, [r3, #56] @ 0x38
  34036. 800eabe: 0c1b lsrs r3, r3, #16
  34037. 800eac0: f003 037f and.w r3, r3, #127 @ 0x7f
  34038. 800eac4: ee07 3a90 vmov s15, r3
  34039. 800eac8: eef8 7a67 vcvt.f32.u32 s15, s15
  34040. 800eacc: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34041. 800ead0: ee37 7a87 vadd.f32 s14, s15, s14
  34042. 800ead4: edd7 6a07 vldr s13, [r7, #28]
  34043. 800ead8: eec6 7a87 vdiv.f32 s15, s13, s14
  34044. 800eadc: eefc 7ae7 vcvt.u32.f32 s15, s15
  34045. 800eae0: ee17 2a90 vmov r2, s15
  34046. 800eae4: 687b ldr r3, [r7, #4]
  34047. 800eae6: 605a str r2, [r3, #4]
  34048. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  34049. 800eae8: 4b13 ldr r3, [pc, #76] @ (800eb38 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  34050. 800eaea: 6b9b ldr r3, [r3, #56] @ 0x38
  34051. 800eaec: 0e1b lsrs r3, r3, #24
  34052. 800eaee: f003 037f and.w r3, r3, #127 @ 0x7f
  34053. 800eaf2: ee07 3a90 vmov s15, r3
  34054. 800eaf6: eef8 7a67 vcvt.f32.u32 s15, s15
  34055. 800eafa: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34056. 800eafe: ee37 7a87 vadd.f32 s14, s15, s14
  34057. 800eb02: edd7 6a07 vldr s13, [r7, #28]
  34058. 800eb06: eec6 7a87 vdiv.f32 s15, s13, s14
  34059. 800eb0a: eefc 7ae7 vcvt.u32.f32 s15, s15
  34060. 800eb0e: ee17 2a90 vmov r2, s15
  34061. 800eb12: 687b ldr r3, [r7, #4]
  34062. 800eb14: 609a str r2, [r3, #8]
  34063. {
  34064. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34065. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34066. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34067. }
  34068. }
  34069. 800eb16: e008 b.n 800eb2a <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  34070. PLL2_Clocks->PLL2_P_Frequency = 0U;
  34071. 800eb18: 687b ldr r3, [r7, #4]
  34072. 800eb1a: 2200 movs r2, #0
  34073. 800eb1c: 601a str r2, [r3, #0]
  34074. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  34075. 800eb1e: 687b ldr r3, [r7, #4]
  34076. 800eb20: 2200 movs r2, #0
  34077. 800eb22: 605a str r2, [r3, #4]
  34078. PLL2_Clocks->PLL2_R_Frequency = 0U;
  34079. 800eb24: 687b ldr r3, [r7, #4]
  34080. 800eb26: 2200 movs r2, #0
  34081. 800eb28: 609a str r2, [r3, #8]
  34082. }
  34083. 800eb2a: bf00 nop
  34084. 800eb2c: 3724 adds r7, #36 @ 0x24
  34085. 800eb2e: 46bd mov sp, r7
  34086. 800eb30: f85d 7b04 ldr.w r7, [sp], #4
  34087. 800eb34: 4770 bx lr
  34088. 800eb36: bf00 nop
  34089. 800eb38: 58024400 .word 0x58024400
  34090. 800eb3c: 03d09000 .word 0x03d09000
  34091. 800eb40: 46000000 .word 0x46000000
  34092. 800eb44: 4c742400 .word 0x4c742400
  34093. 800eb48: 4a742400 .word 0x4a742400
  34094. 800eb4c: 4bbebc20 .word 0x4bbebc20
  34095. 0800eb50 <HAL_RCCEx_GetPLL3ClockFreq>:
  34096. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  34097. * @param PLL3_Clocks structure.
  34098. * @retval None
  34099. */
  34100. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  34101. {
  34102. 800eb50: b480 push {r7}
  34103. 800eb52: b089 sub sp, #36 @ 0x24
  34104. 800eb54: af00 add r7, sp, #0
  34105. 800eb56: 6078 str r0, [r7, #4]
  34106. float_t fracn3, pll3vco;
  34107. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  34108. PLL3xCLK = PLL3_VCO / PLLxR
  34109. */
  34110. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34111. 800eb58: 4ba1 ldr r3, [pc, #644] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34112. 800eb5a: 6a9b ldr r3, [r3, #40] @ 0x28
  34113. 800eb5c: f003 0303 and.w r3, r3, #3
  34114. 800eb60: 61bb str r3, [r7, #24]
  34115. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  34116. 800eb62: 4b9f ldr r3, [pc, #636] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34117. 800eb64: 6a9b ldr r3, [r3, #40] @ 0x28
  34118. 800eb66: 0d1b lsrs r3, r3, #20
  34119. 800eb68: f003 033f and.w r3, r3, #63 @ 0x3f
  34120. 800eb6c: 617b str r3, [r7, #20]
  34121. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  34122. 800eb6e: 4b9c ldr r3, [pc, #624] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34123. 800eb70: 6adb ldr r3, [r3, #44] @ 0x2c
  34124. 800eb72: 0a1b lsrs r3, r3, #8
  34125. 800eb74: f003 0301 and.w r3, r3, #1
  34126. 800eb78: 613b str r3, [r7, #16]
  34127. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  34128. 800eb7a: 4b99 ldr r3, [pc, #612] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34129. 800eb7c: 6c5b ldr r3, [r3, #68] @ 0x44
  34130. 800eb7e: 08db lsrs r3, r3, #3
  34131. 800eb80: f3c3 030c ubfx r3, r3, #0, #13
  34132. 800eb84: 693a ldr r2, [r7, #16]
  34133. 800eb86: fb02 f303 mul.w r3, r2, r3
  34134. 800eb8a: ee07 3a90 vmov s15, r3
  34135. 800eb8e: eef8 7a67 vcvt.f32.u32 s15, s15
  34136. 800eb92: edc7 7a03 vstr s15, [r7, #12]
  34137. if (pll3m != 0U)
  34138. 800eb96: 697b ldr r3, [r7, #20]
  34139. 800eb98: 2b00 cmp r3, #0
  34140. 800eb9a: f000 8111 beq.w 800edc0 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  34141. {
  34142. switch (pllsource)
  34143. 800eb9e: 69bb ldr r3, [r7, #24]
  34144. 800eba0: 2b02 cmp r3, #2
  34145. 800eba2: f000 8083 beq.w 800ecac <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  34146. 800eba6: 69bb ldr r3, [r7, #24]
  34147. 800eba8: 2b02 cmp r3, #2
  34148. 800ebaa: f200 80a1 bhi.w 800ecf0 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34149. 800ebae: 69bb ldr r3, [r7, #24]
  34150. 800ebb0: 2b00 cmp r3, #0
  34151. 800ebb2: d003 beq.n 800ebbc <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  34152. 800ebb4: 69bb ldr r3, [r7, #24]
  34153. 800ebb6: 2b01 cmp r3, #1
  34154. 800ebb8: d056 beq.n 800ec68 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  34155. 800ebba: e099 b.n 800ecf0 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  34156. {
  34157. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34158. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34159. 800ebbc: 4b88 ldr r3, [pc, #544] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34160. 800ebbe: 681b ldr r3, [r3, #0]
  34161. 800ebc0: f003 0320 and.w r3, r3, #32
  34162. 800ebc4: 2b00 cmp r3, #0
  34163. 800ebc6: d02d beq.n 800ec24 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  34164. {
  34165. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34166. 800ebc8: 4b85 ldr r3, [pc, #532] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34167. 800ebca: 681b ldr r3, [r3, #0]
  34168. 800ebcc: 08db lsrs r3, r3, #3
  34169. 800ebce: f003 0303 and.w r3, r3, #3
  34170. 800ebd2: 4a84 ldr r2, [pc, #528] @ (800ede4 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  34171. 800ebd4: fa22 f303 lsr.w r3, r2, r3
  34172. 800ebd8: 60bb str r3, [r7, #8]
  34173. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34174. 800ebda: 68bb ldr r3, [r7, #8]
  34175. 800ebdc: ee07 3a90 vmov s15, r3
  34176. 800ebe0: eef8 6a67 vcvt.f32.u32 s13, s15
  34177. 800ebe4: 697b ldr r3, [r7, #20]
  34178. 800ebe6: ee07 3a90 vmov s15, r3
  34179. 800ebea: eef8 7a67 vcvt.f32.u32 s15, s15
  34180. 800ebee: ee86 7aa7 vdiv.f32 s14, s13, s15
  34181. 800ebf2: 4b7b ldr r3, [pc, #492] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34182. 800ebf4: 6c1b ldr r3, [r3, #64] @ 0x40
  34183. 800ebf6: f3c3 0308 ubfx r3, r3, #0, #9
  34184. 800ebfa: ee07 3a90 vmov s15, r3
  34185. 800ebfe: eef8 6a67 vcvt.f32.u32 s13, s15
  34186. 800ec02: ed97 6a03 vldr s12, [r7, #12]
  34187. 800ec06: eddf 5a78 vldr s11, [pc, #480] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34188. 800ec0a: eec6 7a25 vdiv.f32 s15, s12, s11
  34189. 800ec0e: ee76 7aa7 vadd.f32 s15, s13, s15
  34190. 800ec12: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34191. 800ec16: ee77 7aa6 vadd.f32 s15, s15, s13
  34192. 800ec1a: ee67 7a27 vmul.f32 s15, s14, s15
  34193. 800ec1e: edc7 7a07 vstr s15, [r7, #28]
  34194. }
  34195. else
  34196. {
  34197. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34198. }
  34199. break;
  34200. 800ec22: e087 b.n 800ed34 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34201. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34202. 800ec24: 697b ldr r3, [r7, #20]
  34203. 800ec26: ee07 3a90 vmov s15, r3
  34204. 800ec2a: eef8 7a67 vcvt.f32.u32 s15, s15
  34205. 800ec2e: eddf 6a6f vldr s13, [pc, #444] @ 800edec <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  34206. 800ec32: ee86 7aa7 vdiv.f32 s14, s13, s15
  34207. 800ec36: 4b6a ldr r3, [pc, #424] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34208. 800ec38: 6c1b ldr r3, [r3, #64] @ 0x40
  34209. 800ec3a: f3c3 0308 ubfx r3, r3, #0, #9
  34210. 800ec3e: ee07 3a90 vmov s15, r3
  34211. 800ec42: eef8 6a67 vcvt.f32.u32 s13, s15
  34212. 800ec46: ed97 6a03 vldr s12, [r7, #12]
  34213. 800ec4a: eddf 5a67 vldr s11, [pc, #412] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34214. 800ec4e: eec6 7a25 vdiv.f32 s15, s12, s11
  34215. 800ec52: ee76 7aa7 vadd.f32 s15, s13, s15
  34216. 800ec56: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34217. 800ec5a: ee77 7aa6 vadd.f32 s15, s15, s13
  34218. 800ec5e: ee67 7a27 vmul.f32 s15, s14, s15
  34219. 800ec62: edc7 7a07 vstr s15, [r7, #28]
  34220. break;
  34221. 800ec66: e065 b.n 800ed34 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34222. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34223. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34224. 800ec68: 697b ldr r3, [r7, #20]
  34225. 800ec6a: ee07 3a90 vmov s15, r3
  34226. 800ec6e: eef8 7a67 vcvt.f32.u32 s15, s15
  34227. 800ec72: eddf 6a5f vldr s13, [pc, #380] @ 800edf0 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34228. 800ec76: ee86 7aa7 vdiv.f32 s14, s13, s15
  34229. 800ec7a: 4b59 ldr r3, [pc, #356] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34230. 800ec7c: 6c1b ldr r3, [r3, #64] @ 0x40
  34231. 800ec7e: f3c3 0308 ubfx r3, r3, #0, #9
  34232. 800ec82: ee07 3a90 vmov s15, r3
  34233. 800ec86: eef8 6a67 vcvt.f32.u32 s13, s15
  34234. 800ec8a: ed97 6a03 vldr s12, [r7, #12]
  34235. 800ec8e: eddf 5a56 vldr s11, [pc, #344] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34236. 800ec92: eec6 7a25 vdiv.f32 s15, s12, s11
  34237. 800ec96: ee76 7aa7 vadd.f32 s15, s13, s15
  34238. 800ec9a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34239. 800ec9e: ee77 7aa6 vadd.f32 s15, s15, s13
  34240. 800eca2: ee67 7a27 vmul.f32 s15, s14, s15
  34241. 800eca6: edc7 7a07 vstr s15, [r7, #28]
  34242. break;
  34243. 800ecaa: e043 b.n 800ed34 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34244. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34245. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34246. 800ecac: 697b ldr r3, [r7, #20]
  34247. 800ecae: ee07 3a90 vmov s15, r3
  34248. 800ecb2: eef8 7a67 vcvt.f32.u32 s15, s15
  34249. 800ecb6: eddf 6a4f vldr s13, [pc, #316] @ 800edf4 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  34250. 800ecba: ee86 7aa7 vdiv.f32 s14, s13, s15
  34251. 800ecbe: 4b48 ldr r3, [pc, #288] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34252. 800ecc0: 6c1b ldr r3, [r3, #64] @ 0x40
  34253. 800ecc2: f3c3 0308 ubfx r3, r3, #0, #9
  34254. 800ecc6: ee07 3a90 vmov s15, r3
  34255. 800ecca: eef8 6a67 vcvt.f32.u32 s13, s15
  34256. 800ecce: ed97 6a03 vldr s12, [r7, #12]
  34257. 800ecd2: eddf 5a45 vldr s11, [pc, #276] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34258. 800ecd6: eec6 7a25 vdiv.f32 s15, s12, s11
  34259. 800ecda: ee76 7aa7 vadd.f32 s15, s13, s15
  34260. 800ecde: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34261. 800ece2: ee77 7aa6 vadd.f32 s15, s15, s13
  34262. 800ece6: ee67 7a27 vmul.f32 s15, s14, s15
  34263. 800ecea: edc7 7a07 vstr s15, [r7, #28]
  34264. break;
  34265. 800ecee: e021 b.n 800ed34 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  34266. default:
  34267. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  34268. 800ecf0: 697b ldr r3, [r7, #20]
  34269. 800ecf2: ee07 3a90 vmov s15, r3
  34270. 800ecf6: eef8 7a67 vcvt.f32.u32 s15, s15
  34271. 800ecfa: eddf 6a3d vldr s13, [pc, #244] @ 800edf0 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  34272. 800ecfe: ee86 7aa7 vdiv.f32 s14, s13, s15
  34273. 800ed02: 4b37 ldr r3, [pc, #220] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34274. 800ed04: 6c1b ldr r3, [r3, #64] @ 0x40
  34275. 800ed06: f3c3 0308 ubfx r3, r3, #0, #9
  34276. 800ed0a: ee07 3a90 vmov s15, r3
  34277. 800ed0e: eef8 6a67 vcvt.f32.u32 s13, s15
  34278. 800ed12: ed97 6a03 vldr s12, [r7, #12]
  34279. 800ed16: eddf 5a34 vldr s11, [pc, #208] @ 800ede8 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  34280. 800ed1a: eec6 7a25 vdiv.f32 s15, s12, s11
  34281. 800ed1e: ee76 7aa7 vadd.f32 s15, s13, s15
  34282. 800ed22: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34283. 800ed26: ee77 7aa6 vadd.f32 s15, s15, s13
  34284. 800ed2a: ee67 7a27 vmul.f32 s15, s14, s15
  34285. 800ed2e: edc7 7a07 vstr s15, [r7, #28]
  34286. break;
  34287. 800ed32: bf00 nop
  34288. }
  34289. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  34290. 800ed34: 4b2a ldr r3, [pc, #168] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34291. 800ed36: 6c1b ldr r3, [r3, #64] @ 0x40
  34292. 800ed38: 0a5b lsrs r3, r3, #9
  34293. 800ed3a: f003 037f and.w r3, r3, #127 @ 0x7f
  34294. 800ed3e: ee07 3a90 vmov s15, r3
  34295. 800ed42: eef8 7a67 vcvt.f32.u32 s15, s15
  34296. 800ed46: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34297. 800ed4a: ee37 7a87 vadd.f32 s14, s15, s14
  34298. 800ed4e: edd7 6a07 vldr s13, [r7, #28]
  34299. 800ed52: eec6 7a87 vdiv.f32 s15, s13, s14
  34300. 800ed56: eefc 7ae7 vcvt.u32.f32 s15, s15
  34301. 800ed5a: ee17 2a90 vmov r2, s15
  34302. 800ed5e: 687b ldr r3, [r7, #4]
  34303. 800ed60: 601a str r2, [r3, #0]
  34304. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  34305. 800ed62: 4b1f ldr r3, [pc, #124] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34306. 800ed64: 6c1b ldr r3, [r3, #64] @ 0x40
  34307. 800ed66: 0c1b lsrs r3, r3, #16
  34308. 800ed68: f003 037f and.w r3, r3, #127 @ 0x7f
  34309. 800ed6c: ee07 3a90 vmov s15, r3
  34310. 800ed70: eef8 7a67 vcvt.f32.u32 s15, s15
  34311. 800ed74: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34312. 800ed78: ee37 7a87 vadd.f32 s14, s15, s14
  34313. 800ed7c: edd7 6a07 vldr s13, [r7, #28]
  34314. 800ed80: eec6 7a87 vdiv.f32 s15, s13, s14
  34315. 800ed84: eefc 7ae7 vcvt.u32.f32 s15, s15
  34316. 800ed88: ee17 2a90 vmov r2, s15
  34317. 800ed8c: 687b ldr r3, [r7, #4]
  34318. 800ed8e: 605a str r2, [r3, #4]
  34319. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  34320. 800ed90: 4b13 ldr r3, [pc, #76] @ (800ede0 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  34321. 800ed92: 6c1b ldr r3, [r3, #64] @ 0x40
  34322. 800ed94: 0e1b lsrs r3, r3, #24
  34323. 800ed96: f003 037f and.w r3, r3, #127 @ 0x7f
  34324. 800ed9a: ee07 3a90 vmov s15, r3
  34325. 800ed9e: eef8 7a67 vcvt.f32.u32 s15, s15
  34326. 800eda2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34327. 800eda6: ee37 7a87 vadd.f32 s14, s15, s14
  34328. 800edaa: edd7 6a07 vldr s13, [r7, #28]
  34329. 800edae: eec6 7a87 vdiv.f32 s15, s13, s14
  34330. 800edb2: eefc 7ae7 vcvt.u32.f32 s15, s15
  34331. 800edb6: ee17 2a90 vmov r2, s15
  34332. 800edba: 687b ldr r3, [r7, #4]
  34333. 800edbc: 609a str r2, [r3, #8]
  34334. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34335. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34336. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34337. }
  34338. }
  34339. 800edbe: e008 b.n 800edd2 <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  34340. PLL3_Clocks->PLL3_P_Frequency = 0U;
  34341. 800edc0: 687b ldr r3, [r7, #4]
  34342. 800edc2: 2200 movs r2, #0
  34343. 800edc4: 601a str r2, [r3, #0]
  34344. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  34345. 800edc6: 687b ldr r3, [r7, #4]
  34346. 800edc8: 2200 movs r2, #0
  34347. 800edca: 605a str r2, [r3, #4]
  34348. PLL3_Clocks->PLL3_R_Frequency = 0U;
  34349. 800edcc: 687b ldr r3, [r7, #4]
  34350. 800edce: 2200 movs r2, #0
  34351. 800edd0: 609a str r2, [r3, #8]
  34352. }
  34353. 800edd2: bf00 nop
  34354. 800edd4: 3724 adds r7, #36 @ 0x24
  34355. 800edd6: 46bd mov sp, r7
  34356. 800edd8: f85d 7b04 ldr.w r7, [sp], #4
  34357. 800eddc: 4770 bx lr
  34358. 800edde: bf00 nop
  34359. 800ede0: 58024400 .word 0x58024400
  34360. 800ede4: 03d09000 .word 0x03d09000
  34361. 800ede8: 46000000 .word 0x46000000
  34362. 800edec: 4c742400 .word 0x4c742400
  34363. 800edf0: 4a742400 .word 0x4a742400
  34364. 800edf4: 4bbebc20 .word 0x4bbebc20
  34365. 0800edf8 <HAL_RCCEx_GetPLL1ClockFreq>:
  34366. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  34367. * @param PLL1_Clocks structure.
  34368. * @retval None
  34369. */
  34370. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  34371. {
  34372. 800edf8: b480 push {r7}
  34373. 800edfa: b089 sub sp, #36 @ 0x24
  34374. 800edfc: af00 add r7, sp, #0
  34375. 800edfe: 6078 str r0, [r7, #4]
  34376. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  34377. float_t fracn1, pll1vco;
  34378. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  34379. 800ee00: 4ba0 ldr r3, [pc, #640] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34380. 800ee02: 6a9b ldr r3, [r3, #40] @ 0x28
  34381. 800ee04: f003 0303 and.w r3, r3, #3
  34382. 800ee08: 61bb str r3, [r7, #24]
  34383. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  34384. 800ee0a: 4b9e ldr r3, [pc, #632] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34385. 800ee0c: 6a9b ldr r3, [r3, #40] @ 0x28
  34386. 800ee0e: 091b lsrs r3, r3, #4
  34387. 800ee10: f003 033f and.w r3, r3, #63 @ 0x3f
  34388. 800ee14: 617b str r3, [r7, #20]
  34389. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  34390. 800ee16: 4b9b ldr r3, [pc, #620] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34391. 800ee18: 6adb ldr r3, [r3, #44] @ 0x2c
  34392. 800ee1a: f003 0301 and.w r3, r3, #1
  34393. 800ee1e: 613b str r3, [r7, #16]
  34394. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  34395. 800ee20: 4b98 ldr r3, [pc, #608] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34396. 800ee22: 6b5b ldr r3, [r3, #52] @ 0x34
  34397. 800ee24: 08db lsrs r3, r3, #3
  34398. 800ee26: f3c3 030c ubfx r3, r3, #0, #13
  34399. 800ee2a: 693a ldr r2, [r7, #16]
  34400. 800ee2c: fb02 f303 mul.w r3, r2, r3
  34401. 800ee30: ee07 3a90 vmov s15, r3
  34402. 800ee34: eef8 7a67 vcvt.f32.u32 s15, s15
  34403. 800ee38: edc7 7a03 vstr s15, [r7, #12]
  34404. if (pll1m != 0U)
  34405. 800ee3c: 697b ldr r3, [r7, #20]
  34406. 800ee3e: 2b00 cmp r3, #0
  34407. 800ee40: f000 8111 beq.w 800f066 <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  34408. {
  34409. switch (pllsource)
  34410. 800ee44: 69bb ldr r3, [r7, #24]
  34411. 800ee46: 2b02 cmp r3, #2
  34412. 800ee48: f000 8083 beq.w 800ef52 <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  34413. 800ee4c: 69bb ldr r3, [r7, #24]
  34414. 800ee4e: 2b02 cmp r3, #2
  34415. 800ee50: f200 80a1 bhi.w 800ef96 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34416. 800ee54: 69bb ldr r3, [r7, #24]
  34417. 800ee56: 2b00 cmp r3, #0
  34418. 800ee58: d003 beq.n 800ee62 <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  34419. 800ee5a: 69bb ldr r3, [r7, #24]
  34420. 800ee5c: 2b01 cmp r3, #1
  34421. 800ee5e: d056 beq.n 800ef0e <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  34422. 800ee60: e099 b.n 800ef96 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34423. {
  34424. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34425. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34426. 800ee62: 4b88 ldr r3, [pc, #544] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34427. 800ee64: 681b ldr r3, [r3, #0]
  34428. 800ee66: f003 0320 and.w r3, r3, #32
  34429. 800ee6a: 2b00 cmp r3, #0
  34430. 800ee6c: d02d beq.n 800eeca <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  34431. {
  34432. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34433. 800ee6e: 4b85 ldr r3, [pc, #532] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34434. 800ee70: 681b ldr r3, [r3, #0]
  34435. 800ee72: 08db lsrs r3, r3, #3
  34436. 800ee74: f003 0303 and.w r3, r3, #3
  34437. 800ee78: 4a83 ldr r2, [pc, #524] @ (800f088 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  34438. 800ee7a: fa22 f303 lsr.w r3, r2, r3
  34439. 800ee7e: 60bb str r3, [r7, #8]
  34440. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34441. 800ee80: 68bb ldr r3, [r7, #8]
  34442. 800ee82: ee07 3a90 vmov s15, r3
  34443. 800ee86: eef8 6a67 vcvt.f32.u32 s13, s15
  34444. 800ee8a: 697b ldr r3, [r7, #20]
  34445. 800ee8c: ee07 3a90 vmov s15, r3
  34446. 800ee90: eef8 7a67 vcvt.f32.u32 s15, s15
  34447. 800ee94: ee86 7aa7 vdiv.f32 s14, s13, s15
  34448. 800ee98: 4b7a ldr r3, [pc, #488] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34449. 800ee9a: 6b1b ldr r3, [r3, #48] @ 0x30
  34450. 800ee9c: f3c3 0308 ubfx r3, r3, #0, #9
  34451. 800eea0: ee07 3a90 vmov s15, r3
  34452. 800eea4: eef8 6a67 vcvt.f32.u32 s13, s15
  34453. 800eea8: ed97 6a03 vldr s12, [r7, #12]
  34454. 800eeac: eddf 5a77 vldr s11, [pc, #476] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34455. 800eeb0: eec6 7a25 vdiv.f32 s15, s12, s11
  34456. 800eeb4: ee76 7aa7 vadd.f32 s15, s13, s15
  34457. 800eeb8: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34458. 800eebc: ee77 7aa6 vadd.f32 s15, s15, s13
  34459. 800eec0: ee67 7a27 vmul.f32 s15, s14, s15
  34460. 800eec4: edc7 7a07 vstr s15, [r7, #28]
  34461. }
  34462. else
  34463. {
  34464. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34465. }
  34466. break;
  34467. 800eec8: e087 b.n 800efda <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34468. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34469. 800eeca: 697b ldr r3, [r7, #20]
  34470. 800eecc: ee07 3a90 vmov s15, r3
  34471. 800eed0: eef8 7a67 vcvt.f32.u32 s15, s15
  34472. 800eed4: eddf 6a6e vldr s13, [pc, #440] @ 800f090 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34473. 800eed8: ee86 7aa7 vdiv.f32 s14, s13, s15
  34474. 800eedc: 4b69 ldr r3, [pc, #420] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34475. 800eede: 6b1b ldr r3, [r3, #48] @ 0x30
  34476. 800eee0: f3c3 0308 ubfx r3, r3, #0, #9
  34477. 800eee4: ee07 3a90 vmov s15, r3
  34478. 800eee8: eef8 6a67 vcvt.f32.u32 s13, s15
  34479. 800eeec: ed97 6a03 vldr s12, [r7, #12]
  34480. 800eef0: eddf 5a66 vldr s11, [pc, #408] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34481. 800eef4: eec6 7a25 vdiv.f32 s15, s12, s11
  34482. 800eef8: ee76 7aa7 vadd.f32 s15, s13, s15
  34483. 800eefc: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34484. 800ef00: ee77 7aa6 vadd.f32 s15, s15, s13
  34485. 800ef04: ee67 7a27 vmul.f32 s15, s14, s15
  34486. 800ef08: edc7 7a07 vstr s15, [r7, #28]
  34487. break;
  34488. 800ef0c: e065 b.n 800efda <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34489. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34490. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34491. 800ef0e: 697b ldr r3, [r7, #20]
  34492. 800ef10: ee07 3a90 vmov s15, r3
  34493. 800ef14: eef8 7a67 vcvt.f32.u32 s15, s15
  34494. 800ef18: eddf 6a5e vldr s13, [pc, #376] @ 800f094 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  34495. 800ef1c: ee86 7aa7 vdiv.f32 s14, s13, s15
  34496. 800ef20: 4b58 ldr r3, [pc, #352] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34497. 800ef22: 6b1b ldr r3, [r3, #48] @ 0x30
  34498. 800ef24: f3c3 0308 ubfx r3, r3, #0, #9
  34499. 800ef28: ee07 3a90 vmov s15, r3
  34500. 800ef2c: eef8 6a67 vcvt.f32.u32 s13, s15
  34501. 800ef30: ed97 6a03 vldr s12, [r7, #12]
  34502. 800ef34: eddf 5a55 vldr s11, [pc, #340] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34503. 800ef38: eec6 7a25 vdiv.f32 s15, s12, s11
  34504. 800ef3c: ee76 7aa7 vadd.f32 s15, s13, s15
  34505. 800ef40: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34506. 800ef44: ee77 7aa6 vadd.f32 s15, s15, s13
  34507. 800ef48: ee67 7a27 vmul.f32 s15, s14, s15
  34508. 800ef4c: edc7 7a07 vstr s15, [r7, #28]
  34509. break;
  34510. 800ef50: e043 b.n 800efda <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34511. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34512. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34513. 800ef52: 697b ldr r3, [r7, #20]
  34514. 800ef54: ee07 3a90 vmov s15, r3
  34515. 800ef58: eef8 7a67 vcvt.f32.u32 s15, s15
  34516. 800ef5c: eddf 6a4e vldr s13, [pc, #312] @ 800f098 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  34517. 800ef60: ee86 7aa7 vdiv.f32 s14, s13, s15
  34518. 800ef64: 4b47 ldr r3, [pc, #284] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34519. 800ef66: 6b1b ldr r3, [r3, #48] @ 0x30
  34520. 800ef68: f3c3 0308 ubfx r3, r3, #0, #9
  34521. 800ef6c: ee07 3a90 vmov s15, r3
  34522. 800ef70: eef8 6a67 vcvt.f32.u32 s13, s15
  34523. 800ef74: ed97 6a03 vldr s12, [r7, #12]
  34524. 800ef78: eddf 5a44 vldr s11, [pc, #272] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34525. 800ef7c: eec6 7a25 vdiv.f32 s15, s12, s11
  34526. 800ef80: ee76 7aa7 vadd.f32 s15, s13, s15
  34527. 800ef84: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34528. 800ef88: ee77 7aa6 vadd.f32 s15, s15, s13
  34529. 800ef8c: ee67 7a27 vmul.f32 s15, s14, s15
  34530. 800ef90: edc7 7a07 vstr s15, [r7, #28]
  34531. break;
  34532. 800ef94: e021 b.n 800efda <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34533. default:
  34534. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34535. 800ef96: 697b ldr r3, [r7, #20]
  34536. 800ef98: ee07 3a90 vmov s15, r3
  34537. 800ef9c: eef8 7a67 vcvt.f32.u32 s15, s15
  34538. 800efa0: eddf 6a3b vldr s13, [pc, #236] @ 800f090 <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34539. 800efa4: ee86 7aa7 vdiv.f32 s14, s13, s15
  34540. 800efa8: 4b36 ldr r3, [pc, #216] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34541. 800efaa: 6b1b ldr r3, [r3, #48] @ 0x30
  34542. 800efac: f3c3 0308 ubfx r3, r3, #0, #9
  34543. 800efb0: ee07 3a90 vmov s15, r3
  34544. 800efb4: eef8 6a67 vcvt.f32.u32 s13, s15
  34545. 800efb8: ed97 6a03 vldr s12, [r7, #12]
  34546. 800efbc: eddf 5a33 vldr s11, [pc, #204] @ 800f08c <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34547. 800efc0: eec6 7a25 vdiv.f32 s15, s12, s11
  34548. 800efc4: ee76 7aa7 vadd.f32 s15, s13, s15
  34549. 800efc8: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34550. 800efcc: ee77 7aa6 vadd.f32 s15, s15, s13
  34551. 800efd0: ee67 7a27 vmul.f32 s15, s14, s15
  34552. 800efd4: edc7 7a07 vstr s15, [r7, #28]
  34553. break;
  34554. 800efd8: bf00 nop
  34555. }
  34556. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  34557. 800efda: 4b2a ldr r3, [pc, #168] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34558. 800efdc: 6b1b ldr r3, [r3, #48] @ 0x30
  34559. 800efde: 0a5b lsrs r3, r3, #9
  34560. 800efe0: f003 037f and.w r3, r3, #127 @ 0x7f
  34561. 800efe4: ee07 3a90 vmov s15, r3
  34562. 800efe8: eef8 7a67 vcvt.f32.u32 s15, s15
  34563. 800efec: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34564. 800eff0: ee37 7a87 vadd.f32 s14, s15, s14
  34565. 800eff4: edd7 6a07 vldr s13, [r7, #28]
  34566. 800eff8: eec6 7a87 vdiv.f32 s15, s13, s14
  34567. 800effc: eefc 7ae7 vcvt.u32.f32 s15, s15
  34568. 800f000: ee17 2a90 vmov r2, s15
  34569. 800f004: 687b ldr r3, [r7, #4]
  34570. 800f006: 601a str r2, [r3, #0]
  34571. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  34572. 800f008: 4b1e ldr r3, [pc, #120] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34573. 800f00a: 6b1b ldr r3, [r3, #48] @ 0x30
  34574. 800f00c: 0c1b lsrs r3, r3, #16
  34575. 800f00e: f003 037f and.w r3, r3, #127 @ 0x7f
  34576. 800f012: ee07 3a90 vmov s15, r3
  34577. 800f016: eef8 7a67 vcvt.f32.u32 s15, s15
  34578. 800f01a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34579. 800f01e: ee37 7a87 vadd.f32 s14, s15, s14
  34580. 800f022: edd7 6a07 vldr s13, [r7, #28]
  34581. 800f026: eec6 7a87 vdiv.f32 s15, s13, s14
  34582. 800f02a: eefc 7ae7 vcvt.u32.f32 s15, s15
  34583. 800f02e: ee17 2a90 vmov r2, s15
  34584. 800f032: 687b ldr r3, [r7, #4]
  34585. 800f034: 605a str r2, [r3, #4]
  34586. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  34587. 800f036: 4b13 ldr r3, [pc, #76] @ (800f084 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34588. 800f038: 6b1b ldr r3, [r3, #48] @ 0x30
  34589. 800f03a: 0e1b lsrs r3, r3, #24
  34590. 800f03c: f003 037f and.w r3, r3, #127 @ 0x7f
  34591. 800f040: ee07 3a90 vmov s15, r3
  34592. 800f044: eef8 7a67 vcvt.f32.u32 s15, s15
  34593. 800f048: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34594. 800f04c: ee37 7a87 vadd.f32 s14, s15, s14
  34595. 800f050: edd7 6a07 vldr s13, [r7, #28]
  34596. 800f054: eec6 7a87 vdiv.f32 s15, s13, s14
  34597. 800f058: eefc 7ae7 vcvt.u32.f32 s15, s15
  34598. 800f05c: ee17 2a90 vmov r2, s15
  34599. 800f060: 687b ldr r3, [r7, #4]
  34600. 800f062: 609a str r2, [r3, #8]
  34601. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34602. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34603. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34604. }
  34605. }
  34606. 800f064: e008 b.n 800f078 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  34607. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34608. 800f066: 687b ldr r3, [r7, #4]
  34609. 800f068: 2200 movs r2, #0
  34610. 800f06a: 601a str r2, [r3, #0]
  34611. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34612. 800f06c: 687b ldr r3, [r7, #4]
  34613. 800f06e: 2200 movs r2, #0
  34614. 800f070: 605a str r2, [r3, #4]
  34615. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34616. 800f072: 687b ldr r3, [r7, #4]
  34617. 800f074: 2200 movs r2, #0
  34618. 800f076: 609a str r2, [r3, #8]
  34619. }
  34620. 800f078: bf00 nop
  34621. 800f07a: 3724 adds r7, #36 @ 0x24
  34622. 800f07c: 46bd mov sp, r7
  34623. 800f07e: f85d 7b04 ldr.w r7, [sp], #4
  34624. 800f082: 4770 bx lr
  34625. 800f084: 58024400 .word 0x58024400
  34626. 800f088: 03d09000 .word 0x03d09000
  34627. 800f08c: 46000000 .word 0x46000000
  34628. 800f090: 4c742400 .word 0x4c742400
  34629. 800f094: 4a742400 .word 0x4a742400
  34630. 800f098: 4bbebc20 .word 0x4bbebc20
  34631. 0800f09c <RCCEx_PLL2_Config>:
  34632. * @note PLL2 is temporary disabled to apply new parameters
  34633. *
  34634. * @retval HAL status
  34635. */
  34636. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  34637. {
  34638. 800f09c: b580 push {r7, lr}
  34639. 800f09e: b084 sub sp, #16
  34640. 800f0a0: af00 add r7, sp, #0
  34641. 800f0a2: 6078 str r0, [r7, #4]
  34642. 800f0a4: 6039 str r1, [r7, #0]
  34643. uint32_t tickstart;
  34644. HAL_StatusTypeDef status = HAL_OK;
  34645. 800f0a6: 2300 movs r3, #0
  34646. 800f0a8: 73fb strb r3, [r7, #15]
  34647. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  34648. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  34649. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  34650. /* Check that PLL2 OSC clock source is already set */
  34651. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34652. 800f0aa: 4b53 ldr r3, [pc, #332] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34653. 800f0ac: 6a9b ldr r3, [r3, #40] @ 0x28
  34654. 800f0ae: f003 0303 and.w r3, r3, #3
  34655. 800f0b2: 2b03 cmp r3, #3
  34656. 800f0b4: d101 bne.n 800f0ba <RCCEx_PLL2_Config+0x1e>
  34657. {
  34658. return HAL_ERROR;
  34659. 800f0b6: 2301 movs r3, #1
  34660. 800f0b8: e099 b.n 800f1ee <RCCEx_PLL2_Config+0x152>
  34661. else
  34662. {
  34663. /* Disable PLL2. */
  34664. __HAL_RCC_PLL2_DISABLE();
  34665. 800f0ba: 4b4f ldr r3, [pc, #316] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34666. 800f0bc: 681b ldr r3, [r3, #0]
  34667. 800f0be: 4a4e ldr r2, [pc, #312] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34668. 800f0c0: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34669. 800f0c4: 6013 str r3, [r2, #0]
  34670. /* Get Start Tick*/
  34671. tickstart = HAL_GetTick();
  34672. 800f0c6: f7f6 fead bl 8005e24 <HAL_GetTick>
  34673. 800f0ca: 60b8 str r0, [r7, #8]
  34674. /* Wait till PLL is disabled */
  34675. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34676. 800f0cc: e008 b.n 800f0e0 <RCCEx_PLL2_Config+0x44>
  34677. {
  34678. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34679. 800f0ce: f7f6 fea9 bl 8005e24 <HAL_GetTick>
  34680. 800f0d2: 4602 mov r2, r0
  34681. 800f0d4: 68bb ldr r3, [r7, #8]
  34682. 800f0d6: 1ad3 subs r3, r2, r3
  34683. 800f0d8: 2b02 cmp r3, #2
  34684. 800f0da: d901 bls.n 800f0e0 <RCCEx_PLL2_Config+0x44>
  34685. {
  34686. return HAL_TIMEOUT;
  34687. 800f0dc: 2303 movs r3, #3
  34688. 800f0de: e086 b.n 800f1ee <RCCEx_PLL2_Config+0x152>
  34689. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34690. 800f0e0: 4b45 ldr r3, [pc, #276] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34691. 800f0e2: 681b ldr r3, [r3, #0]
  34692. 800f0e4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34693. 800f0e8: 2b00 cmp r3, #0
  34694. 800f0ea: d1f0 bne.n 800f0ce <RCCEx_PLL2_Config+0x32>
  34695. }
  34696. }
  34697. /* Configure PLL2 multiplication and division factors. */
  34698. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  34699. 800f0ec: 4b42 ldr r3, [pc, #264] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34700. 800f0ee: 6a9b ldr r3, [r3, #40] @ 0x28
  34701. 800f0f0: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  34702. 800f0f4: 687b ldr r3, [r7, #4]
  34703. 800f0f6: 681b ldr r3, [r3, #0]
  34704. 800f0f8: 031b lsls r3, r3, #12
  34705. 800f0fa: 493f ldr r1, [pc, #252] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34706. 800f0fc: 4313 orrs r3, r2
  34707. 800f0fe: 628b str r3, [r1, #40] @ 0x28
  34708. 800f100: 687b ldr r3, [r7, #4]
  34709. 800f102: 685b ldr r3, [r3, #4]
  34710. 800f104: 3b01 subs r3, #1
  34711. 800f106: f3c3 0208 ubfx r2, r3, #0, #9
  34712. 800f10a: 687b ldr r3, [r7, #4]
  34713. 800f10c: 689b ldr r3, [r3, #8]
  34714. 800f10e: 3b01 subs r3, #1
  34715. 800f110: 025b lsls r3, r3, #9
  34716. 800f112: b29b uxth r3, r3
  34717. 800f114: 431a orrs r2, r3
  34718. 800f116: 687b ldr r3, [r7, #4]
  34719. 800f118: 68db ldr r3, [r3, #12]
  34720. 800f11a: 3b01 subs r3, #1
  34721. 800f11c: 041b lsls r3, r3, #16
  34722. 800f11e: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34723. 800f122: 431a orrs r2, r3
  34724. 800f124: 687b ldr r3, [r7, #4]
  34725. 800f126: 691b ldr r3, [r3, #16]
  34726. 800f128: 3b01 subs r3, #1
  34727. 800f12a: 061b lsls r3, r3, #24
  34728. 800f12c: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34729. 800f130: 4931 ldr r1, [pc, #196] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34730. 800f132: 4313 orrs r3, r2
  34731. 800f134: 638b str r3, [r1, #56] @ 0x38
  34732. pll2->PLL2P,
  34733. pll2->PLL2Q,
  34734. pll2->PLL2R);
  34735. /* Select PLL2 input reference frequency range: VCI */
  34736. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  34737. 800f136: 4b30 ldr r3, [pc, #192] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34738. 800f138: 6adb ldr r3, [r3, #44] @ 0x2c
  34739. 800f13a: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  34740. 800f13e: 687b ldr r3, [r7, #4]
  34741. 800f140: 695b ldr r3, [r3, #20]
  34742. 800f142: 492d ldr r1, [pc, #180] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34743. 800f144: 4313 orrs r3, r2
  34744. 800f146: 62cb str r3, [r1, #44] @ 0x2c
  34745. /* Select PLL2 output frequency range : VCO */
  34746. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  34747. 800f148: 4b2b ldr r3, [pc, #172] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34748. 800f14a: 6adb ldr r3, [r3, #44] @ 0x2c
  34749. 800f14c: f023 0220 bic.w r2, r3, #32
  34750. 800f150: 687b ldr r3, [r7, #4]
  34751. 800f152: 699b ldr r3, [r3, #24]
  34752. 800f154: 4928 ldr r1, [pc, #160] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34753. 800f156: 4313 orrs r3, r2
  34754. 800f158: 62cb str r3, [r1, #44] @ 0x2c
  34755. /* Disable PLL2FRACN . */
  34756. __HAL_RCC_PLL2FRACN_DISABLE();
  34757. 800f15a: 4b27 ldr r3, [pc, #156] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34758. 800f15c: 6adb ldr r3, [r3, #44] @ 0x2c
  34759. 800f15e: 4a26 ldr r2, [pc, #152] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34760. 800f160: f023 0310 bic.w r3, r3, #16
  34761. 800f164: 62d3 str r3, [r2, #44] @ 0x2c
  34762. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  34763. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  34764. 800f166: 4b24 ldr r3, [pc, #144] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34765. 800f168: 6bda ldr r2, [r3, #60] @ 0x3c
  34766. 800f16a: 4b24 ldr r3, [pc, #144] @ (800f1fc <RCCEx_PLL2_Config+0x160>)
  34767. 800f16c: 4013 ands r3, r2
  34768. 800f16e: 687a ldr r2, [r7, #4]
  34769. 800f170: 69d2 ldr r2, [r2, #28]
  34770. 800f172: 00d2 lsls r2, r2, #3
  34771. 800f174: 4920 ldr r1, [pc, #128] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34772. 800f176: 4313 orrs r3, r2
  34773. 800f178: 63cb str r3, [r1, #60] @ 0x3c
  34774. /* Enable PLL2FRACN . */
  34775. __HAL_RCC_PLL2FRACN_ENABLE();
  34776. 800f17a: 4b1f ldr r3, [pc, #124] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34777. 800f17c: 6adb ldr r3, [r3, #44] @ 0x2c
  34778. 800f17e: 4a1e ldr r2, [pc, #120] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34779. 800f180: f043 0310 orr.w r3, r3, #16
  34780. 800f184: 62d3 str r3, [r2, #44] @ 0x2c
  34781. /* Enable the PLL2 clock output */
  34782. if (Divider == DIVIDER_P_UPDATE)
  34783. 800f186: 683b ldr r3, [r7, #0]
  34784. 800f188: 2b00 cmp r3, #0
  34785. 800f18a: d106 bne.n 800f19a <RCCEx_PLL2_Config+0xfe>
  34786. {
  34787. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  34788. 800f18c: 4b1a ldr r3, [pc, #104] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34789. 800f18e: 6adb ldr r3, [r3, #44] @ 0x2c
  34790. 800f190: 4a19 ldr r2, [pc, #100] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34791. 800f192: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  34792. 800f196: 62d3 str r3, [r2, #44] @ 0x2c
  34793. 800f198: e00f b.n 800f1ba <RCCEx_PLL2_Config+0x11e>
  34794. }
  34795. else if (Divider == DIVIDER_Q_UPDATE)
  34796. 800f19a: 683b ldr r3, [r7, #0]
  34797. 800f19c: 2b01 cmp r3, #1
  34798. 800f19e: d106 bne.n 800f1ae <RCCEx_PLL2_Config+0x112>
  34799. {
  34800. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  34801. 800f1a0: 4b15 ldr r3, [pc, #84] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34802. 800f1a2: 6adb ldr r3, [r3, #44] @ 0x2c
  34803. 800f1a4: 4a14 ldr r2, [pc, #80] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34804. 800f1a6: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  34805. 800f1aa: 62d3 str r3, [r2, #44] @ 0x2c
  34806. 800f1ac: e005 b.n 800f1ba <RCCEx_PLL2_Config+0x11e>
  34807. }
  34808. else
  34809. {
  34810. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  34811. 800f1ae: 4b12 ldr r3, [pc, #72] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34812. 800f1b0: 6adb ldr r3, [r3, #44] @ 0x2c
  34813. 800f1b2: 4a11 ldr r2, [pc, #68] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34814. 800f1b4: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  34815. 800f1b8: 62d3 str r3, [r2, #44] @ 0x2c
  34816. }
  34817. /* Enable PLL2. */
  34818. __HAL_RCC_PLL2_ENABLE();
  34819. 800f1ba: 4b0f ldr r3, [pc, #60] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34820. 800f1bc: 681b ldr r3, [r3, #0]
  34821. 800f1be: 4a0e ldr r2, [pc, #56] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34822. 800f1c0: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  34823. 800f1c4: 6013 str r3, [r2, #0]
  34824. /* Get Start Tick*/
  34825. tickstart = HAL_GetTick();
  34826. 800f1c6: f7f6 fe2d bl 8005e24 <HAL_GetTick>
  34827. 800f1ca: 60b8 str r0, [r7, #8]
  34828. /* Wait till PLL2 is ready */
  34829. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34830. 800f1cc: e008 b.n 800f1e0 <RCCEx_PLL2_Config+0x144>
  34831. {
  34832. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34833. 800f1ce: f7f6 fe29 bl 8005e24 <HAL_GetTick>
  34834. 800f1d2: 4602 mov r2, r0
  34835. 800f1d4: 68bb ldr r3, [r7, #8]
  34836. 800f1d6: 1ad3 subs r3, r2, r3
  34837. 800f1d8: 2b02 cmp r3, #2
  34838. 800f1da: d901 bls.n 800f1e0 <RCCEx_PLL2_Config+0x144>
  34839. {
  34840. return HAL_TIMEOUT;
  34841. 800f1dc: 2303 movs r3, #3
  34842. 800f1de: e006 b.n 800f1ee <RCCEx_PLL2_Config+0x152>
  34843. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34844. 800f1e0: 4b05 ldr r3, [pc, #20] @ (800f1f8 <RCCEx_PLL2_Config+0x15c>)
  34845. 800f1e2: 681b ldr r3, [r3, #0]
  34846. 800f1e4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34847. 800f1e8: 2b00 cmp r3, #0
  34848. 800f1ea: d0f0 beq.n 800f1ce <RCCEx_PLL2_Config+0x132>
  34849. }
  34850. }
  34851. return status;
  34852. 800f1ec: 7bfb ldrb r3, [r7, #15]
  34853. }
  34854. 800f1ee: 4618 mov r0, r3
  34855. 800f1f0: 3710 adds r7, #16
  34856. 800f1f2: 46bd mov sp, r7
  34857. 800f1f4: bd80 pop {r7, pc}
  34858. 800f1f6: bf00 nop
  34859. 800f1f8: 58024400 .word 0x58024400
  34860. 800f1fc: ffff0007 .word 0xffff0007
  34861. 0800f200 <RCCEx_PLL3_Config>:
  34862. * @note PLL3 is temporary disabled to apply new parameters
  34863. *
  34864. * @retval HAL status
  34865. */
  34866. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  34867. {
  34868. 800f200: b580 push {r7, lr}
  34869. 800f202: b084 sub sp, #16
  34870. 800f204: af00 add r7, sp, #0
  34871. 800f206: 6078 str r0, [r7, #4]
  34872. 800f208: 6039 str r1, [r7, #0]
  34873. uint32_t tickstart;
  34874. HAL_StatusTypeDef status = HAL_OK;
  34875. 800f20a: 2300 movs r3, #0
  34876. 800f20c: 73fb strb r3, [r7, #15]
  34877. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  34878. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  34879. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  34880. /* Check that PLL3 OSC clock source is already set */
  34881. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34882. 800f20e: 4b53 ldr r3, [pc, #332] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34883. 800f210: 6a9b ldr r3, [r3, #40] @ 0x28
  34884. 800f212: f003 0303 and.w r3, r3, #3
  34885. 800f216: 2b03 cmp r3, #3
  34886. 800f218: d101 bne.n 800f21e <RCCEx_PLL3_Config+0x1e>
  34887. {
  34888. return HAL_ERROR;
  34889. 800f21a: 2301 movs r3, #1
  34890. 800f21c: e099 b.n 800f352 <RCCEx_PLL3_Config+0x152>
  34891. else
  34892. {
  34893. /* Disable PLL3. */
  34894. __HAL_RCC_PLL3_DISABLE();
  34895. 800f21e: 4b4f ldr r3, [pc, #316] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34896. 800f220: 681b ldr r3, [r3, #0]
  34897. 800f222: 4a4e ldr r2, [pc, #312] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34898. 800f224: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34899. 800f228: 6013 str r3, [r2, #0]
  34900. /* Get Start Tick*/
  34901. tickstart = HAL_GetTick();
  34902. 800f22a: f7f6 fdfb bl 8005e24 <HAL_GetTick>
  34903. 800f22e: 60b8 str r0, [r7, #8]
  34904. /* Wait till PLL3 is ready */
  34905. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34906. 800f230: e008 b.n 800f244 <RCCEx_PLL3_Config+0x44>
  34907. {
  34908. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34909. 800f232: f7f6 fdf7 bl 8005e24 <HAL_GetTick>
  34910. 800f236: 4602 mov r2, r0
  34911. 800f238: 68bb ldr r3, [r7, #8]
  34912. 800f23a: 1ad3 subs r3, r2, r3
  34913. 800f23c: 2b02 cmp r3, #2
  34914. 800f23e: d901 bls.n 800f244 <RCCEx_PLL3_Config+0x44>
  34915. {
  34916. return HAL_TIMEOUT;
  34917. 800f240: 2303 movs r3, #3
  34918. 800f242: e086 b.n 800f352 <RCCEx_PLL3_Config+0x152>
  34919. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34920. 800f244: 4b45 ldr r3, [pc, #276] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34921. 800f246: 681b ldr r3, [r3, #0]
  34922. 800f248: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34923. 800f24c: 2b00 cmp r3, #0
  34924. 800f24e: d1f0 bne.n 800f232 <RCCEx_PLL3_Config+0x32>
  34925. }
  34926. }
  34927. /* Configure the PLL3 multiplication and division factors. */
  34928. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  34929. 800f250: 4b42 ldr r3, [pc, #264] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34930. 800f252: 6a9b ldr r3, [r3, #40] @ 0x28
  34931. 800f254: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  34932. 800f258: 687b ldr r3, [r7, #4]
  34933. 800f25a: 681b ldr r3, [r3, #0]
  34934. 800f25c: 051b lsls r3, r3, #20
  34935. 800f25e: 493f ldr r1, [pc, #252] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34936. 800f260: 4313 orrs r3, r2
  34937. 800f262: 628b str r3, [r1, #40] @ 0x28
  34938. 800f264: 687b ldr r3, [r7, #4]
  34939. 800f266: 685b ldr r3, [r3, #4]
  34940. 800f268: 3b01 subs r3, #1
  34941. 800f26a: f3c3 0208 ubfx r2, r3, #0, #9
  34942. 800f26e: 687b ldr r3, [r7, #4]
  34943. 800f270: 689b ldr r3, [r3, #8]
  34944. 800f272: 3b01 subs r3, #1
  34945. 800f274: 025b lsls r3, r3, #9
  34946. 800f276: b29b uxth r3, r3
  34947. 800f278: 431a orrs r2, r3
  34948. 800f27a: 687b ldr r3, [r7, #4]
  34949. 800f27c: 68db ldr r3, [r3, #12]
  34950. 800f27e: 3b01 subs r3, #1
  34951. 800f280: 041b lsls r3, r3, #16
  34952. 800f282: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34953. 800f286: 431a orrs r2, r3
  34954. 800f288: 687b ldr r3, [r7, #4]
  34955. 800f28a: 691b ldr r3, [r3, #16]
  34956. 800f28c: 3b01 subs r3, #1
  34957. 800f28e: 061b lsls r3, r3, #24
  34958. 800f290: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34959. 800f294: 4931 ldr r1, [pc, #196] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34960. 800f296: 4313 orrs r3, r2
  34961. 800f298: 640b str r3, [r1, #64] @ 0x40
  34962. pll3->PLL3P,
  34963. pll3->PLL3Q,
  34964. pll3->PLL3R);
  34965. /* Select PLL3 input reference frequency range: VCI */
  34966. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  34967. 800f29a: 4b30 ldr r3, [pc, #192] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34968. 800f29c: 6adb ldr r3, [r3, #44] @ 0x2c
  34969. 800f29e: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  34970. 800f2a2: 687b ldr r3, [r7, #4]
  34971. 800f2a4: 695b ldr r3, [r3, #20]
  34972. 800f2a6: 492d ldr r1, [pc, #180] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34973. 800f2a8: 4313 orrs r3, r2
  34974. 800f2aa: 62cb str r3, [r1, #44] @ 0x2c
  34975. /* Select PLL3 output frequency range : VCO */
  34976. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  34977. 800f2ac: 4b2b ldr r3, [pc, #172] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34978. 800f2ae: 6adb ldr r3, [r3, #44] @ 0x2c
  34979. 800f2b0: f423 7200 bic.w r2, r3, #512 @ 0x200
  34980. 800f2b4: 687b ldr r3, [r7, #4]
  34981. 800f2b6: 699b ldr r3, [r3, #24]
  34982. 800f2b8: 4928 ldr r1, [pc, #160] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34983. 800f2ba: 4313 orrs r3, r2
  34984. 800f2bc: 62cb str r3, [r1, #44] @ 0x2c
  34985. /* Disable PLL3FRACN . */
  34986. __HAL_RCC_PLL3FRACN_DISABLE();
  34987. 800f2be: 4b27 ldr r3, [pc, #156] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34988. 800f2c0: 6adb ldr r3, [r3, #44] @ 0x2c
  34989. 800f2c2: 4a26 ldr r2, [pc, #152] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34990. 800f2c4: f423 7380 bic.w r3, r3, #256 @ 0x100
  34991. 800f2c8: 62d3 str r3, [r2, #44] @ 0x2c
  34992. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  34993. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  34994. 800f2ca: 4b24 ldr r3, [pc, #144] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  34995. 800f2cc: 6c5a ldr r2, [r3, #68] @ 0x44
  34996. 800f2ce: 4b24 ldr r3, [pc, #144] @ (800f360 <RCCEx_PLL3_Config+0x160>)
  34997. 800f2d0: 4013 ands r3, r2
  34998. 800f2d2: 687a ldr r2, [r7, #4]
  34999. 800f2d4: 69d2 ldr r2, [r2, #28]
  35000. 800f2d6: 00d2 lsls r2, r2, #3
  35001. 800f2d8: 4920 ldr r1, [pc, #128] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35002. 800f2da: 4313 orrs r3, r2
  35003. 800f2dc: 644b str r3, [r1, #68] @ 0x44
  35004. /* Enable PLL3FRACN . */
  35005. __HAL_RCC_PLL3FRACN_ENABLE();
  35006. 800f2de: 4b1f ldr r3, [pc, #124] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35007. 800f2e0: 6adb ldr r3, [r3, #44] @ 0x2c
  35008. 800f2e2: 4a1e ldr r2, [pc, #120] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35009. 800f2e4: f443 7380 orr.w r3, r3, #256 @ 0x100
  35010. 800f2e8: 62d3 str r3, [r2, #44] @ 0x2c
  35011. /* Enable the PLL3 clock output */
  35012. if (Divider == DIVIDER_P_UPDATE)
  35013. 800f2ea: 683b ldr r3, [r7, #0]
  35014. 800f2ec: 2b00 cmp r3, #0
  35015. 800f2ee: d106 bne.n 800f2fe <RCCEx_PLL3_Config+0xfe>
  35016. {
  35017. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  35018. 800f2f0: 4b1a ldr r3, [pc, #104] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35019. 800f2f2: 6adb ldr r3, [r3, #44] @ 0x2c
  35020. 800f2f4: 4a19 ldr r2, [pc, #100] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35021. 800f2f6: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  35022. 800f2fa: 62d3 str r3, [r2, #44] @ 0x2c
  35023. 800f2fc: e00f b.n 800f31e <RCCEx_PLL3_Config+0x11e>
  35024. }
  35025. else if (Divider == DIVIDER_Q_UPDATE)
  35026. 800f2fe: 683b ldr r3, [r7, #0]
  35027. 800f300: 2b01 cmp r3, #1
  35028. 800f302: d106 bne.n 800f312 <RCCEx_PLL3_Config+0x112>
  35029. {
  35030. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  35031. 800f304: 4b15 ldr r3, [pc, #84] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35032. 800f306: 6adb ldr r3, [r3, #44] @ 0x2c
  35033. 800f308: 4a14 ldr r2, [pc, #80] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35034. 800f30a: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  35035. 800f30e: 62d3 str r3, [r2, #44] @ 0x2c
  35036. 800f310: e005 b.n 800f31e <RCCEx_PLL3_Config+0x11e>
  35037. }
  35038. else
  35039. {
  35040. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  35041. 800f312: 4b12 ldr r3, [pc, #72] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35042. 800f314: 6adb ldr r3, [r3, #44] @ 0x2c
  35043. 800f316: 4a11 ldr r2, [pc, #68] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35044. 800f318: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  35045. 800f31c: 62d3 str r3, [r2, #44] @ 0x2c
  35046. }
  35047. /* Enable PLL3. */
  35048. __HAL_RCC_PLL3_ENABLE();
  35049. 800f31e: 4b0f ldr r3, [pc, #60] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35050. 800f320: 681b ldr r3, [r3, #0]
  35051. 800f322: 4a0e ldr r2, [pc, #56] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35052. 800f324: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  35053. 800f328: 6013 str r3, [r2, #0]
  35054. /* Get Start Tick*/
  35055. tickstart = HAL_GetTick();
  35056. 800f32a: f7f6 fd7b bl 8005e24 <HAL_GetTick>
  35057. 800f32e: 60b8 str r0, [r7, #8]
  35058. /* Wait till PLL3 is ready */
  35059. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35060. 800f330: e008 b.n 800f344 <RCCEx_PLL3_Config+0x144>
  35061. {
  35062. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  35063. 800f332: f7f6 fd77 bl 8005e24 <HAL_GetTick>
  35064. 800f336: 4602 mov r2, r0
  35065. 800f338: 68bb ldr r3, [r7, #8]
  35066. 800f33a: 1ad3 subs r3, r2, r3
  35067. 800f33c: 2b02 cmp r3, #2
  35068. 800f33e: d901 bls.n 800f344 <RCCEx_PLL3_Config+0x144>
  35069. {
  35070. return HAL_TIMEOUT;
  35071. 800f340: 2303 movs r3, #3
  35072. 800f342: e006 b.n 800f352 <RCCEx_PLL3_Config+0x152>
  35073. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  35074. 800f344: 4b05 ldr r3, [pc, #20] @ (800f35c <RCCEx_PLL3_Config+0x15c>)
  35075. 800f346: 681b ldr r3, [r3, #0]
  35076. 800f348: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  35077. 800f34c: 2b00 cmp r3, #0
  35078. 800f34e: d0f0 beq.n 800f332 <RCCEx_PLL3_Config+0x132>
  35079. }
  35080. }
  35081. return status;
  35082. 800f350: 7bfb ldrb r3, [r7, #15]
  35083. }
  35084. 800f352: 4618 mov r0, r3
  35085. 800f354: 3710 adds r7, #16
  35086. 800f356: 46bd mov sp, r7
  35087. 800f358: bd80 pop {r7, pc}
  35088. 800f35a: bf00 nop
  35089. 800f35c: 58024400 .word 0x58024400
  35090. 800f360: ffff0007 .word 0xffff0007
  35091. 0800f364 <HAL_RNG_Init>:
  35092. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  35093. * the configuration information for RNG.
  35094. * @retval HAL status
  35095. */
  35096. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  35097. {
  35098. 800f364: b580 push {r7, lr}
  35099. 800f366: b084 sub sp, #16
  35100. 800f368: af00 add r7, sp, #0
  35101. 800f36a: 6078 str r0, [r7, #4]
  35102. uint32_t tickstart;
  35103. /* Check the RNG handle allocation */
  35104. if (hrng == NULL)
  35105. 800f36c: 687b ldr r3, [r7, #4]
  35106. 800f36e: 2b00 cmp r3, #0
  35107. 800f370: d101 bne.n 800f376 <HAL_RNG_Init+0x12>
  35108. {
  35109. return HAL_ERROR;
  35110. 800f372: 2301 movs r3, #1
  35111. 800f374: e054 b.n 800f420 <HAL_RNG_Init+0xbc>
  35112. /* Init the low level hardware */
  35113. hrng->MspInitCallback(hrng);
  35114. }
  35115. #else
  35116. if (hrng->State == HAL_RNG_STATE_RESET)
  35117. 800f376: 687b ldr r3, [r7, #4]
  35118. 800f378: 7a5b ldrb r3, [r3, #9]
  35119. 800f37a: b2db uxtb r3, r3
  35120. 800f37c: 2b00 cmp r3, #0
  35121. 800f37e: d105 bne.n 800f38c <HAL_RNG_Init+0x28>
  35122. {
  35123. /* Allocate lock resource and initialize it */
  35124. hrng->Lock = HAL_UNLOCKED;
  35125. 800f380: 687b ldr r3, [r7, #4]
  35126. 800f382: 2200 movs r2, #0
  35127. 800f384: 721a strb r2, [r3, #8]
  35128. /* Init the low level hardware */
  35129. HAL_RNG_MspInit(hrng);
  35130. 800f386: 6878 ldr r0, [r7, #4]
  35131. 800f388: f7f4 ff30 bl 80041ec <HAL_RNG_MspInit>
  35132. }
  35133. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  35134. /* Change RNG peripheral state */
  35135. hrng->State = HAL_RNG_STATE_BUSY;
  35136. 800f38c: 687b ldr r3, [r7, #4]
  35137. 800f38e: 2202 movs r2, #2
  35138. 800f390: 725a strb r2, [r3, #9]
  35139. }
  35140. }
  35141. }
  35142. #else
  35143. /* Clock Error Detection Configuration */
  35144. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  35145. 800f392: 687b ldr r3, [r7, #4]
  35146. 800f394: 681b ldr r3, [r3, #0]
  35147. 800f396: 681b ldr r3, [r3, #0]
  35148. 800f398: f023 0120 bic.w r1, r3, #32
  35149. 800f39c: 687b ldr r3, [r7, #4]
  35150. 800f39e: 685a ldr r2, [r3, #4]
  35151. 800f3a0: 687b ldr r3, [r7, #4]
  35152. 800f3a2: 681b ldr r3, [r3, #0]
  35153. 800f3a4: 430a orrs r2, r1
  35154. 800f3a6: 601a str r2, [r3, #0]
  35155. #endif /* RNG_CR_CONDRST */
  35156. /* Enable the RNG Peripheral */
  35157. __HAL_RNG_ENABLE(hrng);
  35158. 800f3a8: 687b ldr r3, [r7, #4]
  35159. 800f3aa: 681b ldr r3, [r3, #0]
  35160. 800f3ac: 681a ldr r2, [r3, #0]
  35161. 800f3ae: 687b ldr r3, [r7, #4]
  35162. 800f3b0: 681b ldr r3, [r3, #0]
  35163. 800f3b2: f042 0204 orr.w r2, r2, #4
  35164. 800f3b6: 601a str r2, [r3, #0]
  35165. /* verify that no seed error */
  35166. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  35167. 800f3b8: 687b ldr r3, [r7, #4]
  35168. 800f3ba: 681b ldr r3, [r3, #0]
  35169. 800f3bc: 685b ldr r3, [r3, #4]
  35170. 800f3be: f003 0340 and.w r3, r3, #64 @ 0x40
  35171. 800f3c2: 2b40 cmp r3, #64 @ 0x40
  35172. 800f3c4: d104 bne.n 800f3d0 <HAL_RNG_Init+0x6c>
  35173. {
  35174. hrng->State = HAL_RNG_STATE_ERROR;
  35175. 800f3c6: 687b ldr r3, [r7, #4]
  35176. 800f3c8: 2204 movs r2, #4
  35177. 800f3ca: 725a strb r2, [r3, #9]
  35178. return HAL_ERROR;
  35179. 800f3cc: 2301 movs r3, #1
  35180. 800f3ce: e027 b.n 800f420 <HAL_RNG_Init+0xbc>
  35181. }
  35182. /* Get tick */
  35183. tickstart = HAL_GetTick();
  35184. 800f3d0: f7f6 fd28 bl 8005e24 <HAL_GetTick>
  35185. 800f3d4: 60f8 str r0, [r7, #12]
  35186. /* Check if data register contains valid random data */
  35187. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35188. 800f3d6: e015 b.n 800f404 <HAL_RNG_Init+0xa0>
  35189. {
  35190. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  35191. 800f3d8: f7f6 fd24 bl 8005e24 <HAL_GetTick>
  35192. 800f3dc: 4602 mov r2, r0
  35193. 800f3de: 68fb ldr r3, [r7, #12]
  35194. 800f3e0: 1ad3 subs r3, r2, r3
  35195. 800f3e2: 2b02 cmp r3, #2
  35196. 800f3e4: d90e bls.n 800f404 <HAL_RNG_Init+0xa0>
  35197. {
  35198. /* New check to avoid false timeout detection in case of preemption */
  35199. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35200. 800f3e6: 687b ldr r3, [r7, #4]
  35201. 800f3e8: 681b ldr r3, [r3, #0]
  35202. 800f3ea: 685b ldr r3, [r3, #4]
  35203. 800f3ec: f003 0304 and.w r3, r3, #4
  35204. 800f3f0: 2b04 cmp r3, #4
  35205. 800f3f2: d107 bne.n 800f404 <HAL_RNG_Init+0xa0>
  35206. {
  35207. hrng->State = HAL_RNG_STATE_ERROR;
  35208. 800f3f4: 687b ldr r3, [r7, #4]
  35209. 800f3f6: 2204 movs r2, #4
  35210. 800f3f8: 725a strb r2, [r3, #9]
  35211. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  35212. 800f3fa: 687b ldr r3, [r7, #4]
  35213. 800f3fc: 2202 movs r2, #2
  35214. 800f3fe: 60da str r2, [r3, #12]
  35215. return HAL_ERROR;
  35216. 800f400: 2301 movs r3, #1
  35217. 800f402: e00d b.n 800f420 <HAL_RNG_Init+0xbc>
  35218. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  35219. 800f404: 687b ldr r3, [r7, #4]
  35220. 800f406: 681b ldr r3, [r3, #0]
  35221. 800f408: 685b ldr r3, [r3, #4]
  35222. 800f40a: f003 0304 and.w r3, r3, #4
  35223. 800f40e: 2b04 cmp r3, #4
  35224. 800f410: d0e2 beq.n 800f3d8 <HAL_RNG_Init+0x74>
  35225. }
  35226. }
  35227. }
  35228. /* Initialize the RNG state */
  35229. hrng->State = HAL_RNG_STATE_READY;
  35230. 800f412: 687b ldr r3, [r7, #4]
  35231. 800f414: 2201 movs r2, #1
  35232. 800f416: 725a strb r2, [r3, #9]
  35233. /* Initialise the error code */
  35234. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  35235. 800f418: 687b ldr r3, [r7, #4]
  35236. 800f41a: 2200 movs r2, #0
  35237. 800f41c: 60da str r2, [r3, #12]
  35238. /* Return function status */
  35239. return HAL_OK;
  35240. 800f41e: 2300 movs r3, #0
  35241. }
  35242. 800f420: 4618 mov r0, r3
  35243. 800f422: 3710 adds r7, #16
  35244. 800f424: 46bd mov sp, r7
  35245. 800f426: bd80 pop {r7, pc}
  35246. 0800f428 <HAL_TIM_Base_Init>:
  35247. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  35248. * @param htim TIM Base handle
  35249. * @retval HAL status
  35250. */
  35251. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  35252. {
  35253. 800f428: b580 push {r7, lr}
  35254. 800f42a: b082 sub sp, #8
  35255. 800f42c: af00 add r7, sp, #0
  35256. 800f42e: 6078 str r0, [r7, #4]
  35257. /* Check the TIM handle allocation */
  35258. if (htim == NULL)
  35259. 800f430: 687b ldr r3, [r7, #4]
  35260. 800f432: 2b00 cmp r3, #0
  35261. 800f434: d101 bne.n 800f43a <HAL_TIM_Base_Init+0x12>
  35262. {
  35263. return HAL_ERROR;
  35264. 800f436: 2301 movs r3, #1
  35265. 800f438: e049 b.n 800f4ce <HAL_TIM_Base_Init+0xa6>
  35266. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35267. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35268. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35269. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35270. if (htim->State == HAL_TIM_STATE_RESET)
  35271. 800f43a: 687b ldr r3, [r7, #4]
  35272. 800f43c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35273. 800f440: b2db uxtb r3, r3
  35274. 800f442: 2b00 cmp r3, #0
  35275. 800f444: d106 bne.n 800f454 <HAL_TIM_Base_Init+0x2c>
  35276. {
  35277. /* Allocate lock resource and initialize it */
  35278. htim->Lock = HAL_UNLOCKED;
  35279. 800f446: 687b ldr r3, [r7, #4]
  35280. 800f448: 2200 movs r2, #0
  35281. 800f44a: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35282. }
  35283. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35284. htim->Base_MspInitCallback(htim);
  35285. #else
  35286. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35287. HAL_TIM_Base_MspInit(htim);
  35288. 800f44e: 6878 ldr r0, [r7, #4]
  35289. 800f450: f7f4 ff40 bl 80042d4 <HAL_TIM_Base_MspInit>
  35290. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35291. }
  35292. /* Set the TIM state */
  35293. htim->State = HAL_TIM_STATE_BUSY;
  35294. 800f454: 687b ldr r3, [r7, #4]
  35295. 800f456: 2202 movs r2, #2
  35296. 800f458: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35297. /* Set the Time Base configuration */
  35298. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35299. 800f45c: 687b ldr r3, [r7, #4]
  35300. 800f45e: 681a ldr r2, [r3, #0]
  35301. 800f460: 687b ldr r3, [r7, #4]
  35302. 800f462: 3304 adds r3, #4
  35303. 800f464: 4619 mov r1, r3
  35304. 800f466: 4610 mov r0, r2
  35305. 800f468: f001 f918 bl 801069c <TIM_Base_SetConfig>
  35306. /* Initialize the DMA burst operation state */
  35307. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35308. 800f46c: 687b ldr r3, [r7, #4]
  35309. 800f46e: 2201 movs r2, #1
  35310. 800f470: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35311. /* Initialize the TIM channels state */
  35312. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35313. 800f474: 687b ldr r3, [r7, #4]
  35314. 800f476: 2201 movs r2, #1
  35315. 800f478: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35316. 800f47c: 687b ldr r3, [r7, #4]
  35317. 800f47e: 2201 movs r2, #1
  35318. 800f480: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35319. 800f484: 687b ldr r3, [r7, #4]
  35320. 800f486: 2201 movs r2, #1
  35321. 800f488: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35322. 800f48c: 687b ldr r3, [r7, #4]
  35323. 800f48e: 2201 movs r2, #1
  35324. 800f490: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35325. 800f494: 687b ldr r3, [r7, #4]
  35326. 800f496: 2201 movs r2, #1
  35327. 800f498: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35328. 800f49c: 687b ldr r3, [r7, #4]
  35329. 800f49e: 2201 movs r2, #1
  35330. 800f4a0: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35331. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35332. 800f4a4: 687b ldr r3, [r7, #4]
  35333. 800f4a6: 2201 movs r2, #1
  35334. 800f4a8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35335. 800f4ac: 687b ldr r3, [r7, #4]
  35336. 800f4ae: 2201 movs r2, #1
  35337. 800f4b0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35338. 800f4b4: 687b ldr r3, [r7, #4]
  35339. 800f4b6: 2201 movs r2, #1
  35340. 800f4b8: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35341. 800f4bc: 687b ldr r3, [r7, #4]
  35342. 800f4be: 2201 movs r2, #1
  35343. 800f4c0: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35344. /* Initialize the TIM state*/
  35345. htim->State = HAL_TIM_STATE_READY;
  35346. 800f4c4: 687b ldr r3, [r7, #4]
  35347. 800f4c6: 2201 movs r2, #1
  35348. 800f4c8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35349. return HAL_OK;
  35350. 800f4cc: 2300 movs r3, #0
  35351. }
  35352. 800f4ce: 4618 mov r0, r3
  35353. 800f4d0: 3708 adds r7, #8
  35354. 800f4d2: 46bd mov sp, r7
  35355. 800f4d4: bd80 pop {r7, pc}
  35356. ...
  35357. 0800f4d8 <HAL_TIM_Base_Start>:
  35358. * @brief Starts the TIM Base generation.
  35359. * @param htim TIM Base handle
  35360. * @retval HAL status
  35361. */
  35362. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  35363. {
  35364. 800f4d8: b480 push {r7}
  35365. 800f4da: b085 sub sp, #20
  35366. 800f4dc: af00 add r7, sp, #0
  35367. 800f4de: 6078 str r0, [r7, #4]
  35368. /* Check the parameters */
  35369. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35370. /* Check the TIM state */
  35371. if (htim->State != HAL_TIM_STATE_READY)
  35372. 800f4e0: 687b ldr r3, [r7, #4]
  35373. 800f4e2: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35374. 800f4e6: b2db uxtb r3, r3
  35375. 800f4e8: 2b01 cmp r3, #1
  35376. 800f4ea: d001 beq.n 800f4f0 <HAL_TIM_Base_Start+0x18>
  35377. {
  35378. return HAL_ERROR;
  35379. 800f4ec: 2301 movs r3, #1
  35380. 800f4ee: e04c b.n 800f58a <HAL_TIM_Base_Start+0xb2>
  35381. }
  35382. /* Set the TIM state */
  35383. htim->State = HAL_TIM_STATE_BUSY;
  35384. 800f4f0: 687b ldr r3, [r7, #4]
  35385. 800f4f2: 2202 movs r2, #2
  35386. 800f4f4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35387. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35388. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35389. 800f4f8: 687b ldr r3, [r7, #4]
  35390. 800f4fa: 681b ldr r3, [r3, #0]
  35391. 800f4fc: 4a26 ldr r2, [pc, #152] @ (800f598 <HAL_TIM_Base_Start+0xc0>)
  35392. 800f4fe: 4293 cmp r3, r2
  35393. 800f500: d022 beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35394. 800f502: 687b ldr r3, [r7, #4]
  35395. 800f504: 681b ldr r3, [r3, #0]
  35396. 800f506: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35397. 800f50a: d01d beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35398. 800f50c: 687b ldr r3, [r7, #4]
  35399. 800f50e: 681b ldr r3, [r3, #0]
  35400. 800f510: 4a22 ldr r2, [pc, #136] @ (800f59c <HAL_TIM_Base_Start+0xc4>)
  35401. 800f512: 4293 cmp r3, r2
  35402. 800f514: d018 beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35403. 800f516: 687b ldr r3, [r7, #4]
  35404. 800f518: 681b ldr r3, [r3, #0]
  35405. 800f51a: 4a21 ldr r2, [pc, #132] @ (800f5a0 <HAL_TIM_Base_Start+0xc8>)
  35406. 800f51c: 4293 cmp r3, r2
  35407. 800f51e: d013 beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35408. 800f520: 687b ldr r3, [r7, #4]
  35409. 800f522: 681b ldr r3, [r3, #0]
  35410. 800f524: 4a1f ldr r2, [pc, #124] @ (800f5a4 <HAL_TIM_Base_Start+0xcc>)
  35411. 800f526: 4293 cmp r3, r2
  35412. 800f528: d00e beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35413. 800f52a: 687b ldr r3, [r7, #4]
  35414. 800f52c: 681b ldr r3, [r3, #0]
  35415. 800f52e: 4a1e ldr r2, [pc, #120] @ (800f5a8 <HAL_TIM_Base_Start+0xd0>)
  35416. 800f530: 4293 cmp r3, r2
  35417. 800f532: d009 beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35418. 800f534: 687b ldr r3, [r7, #4]
  35419. 800f536: 681b ldr r3, [r3, #0]
  35420. 800f538: 4a1c ldr r2, [pc, #112] @ (800f5ac <HAL_TIM_Base_Start+0xd4>)
  35421. 800f53a: 4293 cmp r3, r2
  35422. 800f53c: d004 beq.n 800f548 <HAL_TIM_Base_Start+0x70>
  35423. 800f53e: 687b ldr r3, [r7, #4]
  35424. 800f540: 681b ldr r3, [r3, #0]
  35425. 800f542: 4a1b ldr r2, [pc, #108] @ (800f5b0 <HAL_TIM_Base_Start+0xd8>)
  35426. 800f544: 4293 cmp r3, r2
  35427. 800f546: d115 bne.n 800f574 <HAL_TIM_Base_Start+0x9c>
  35428. {
  35429. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35430. 800f548: 687b ldr r3, [r7, #4]
  35431. 800f54a: 681b ldr r3, [r3, #0]
  35432. 800f54c: 689a ldr r2, [r3, #8]
  35433. 800f54e: 4b19 ldr r3, [pc, #100] @ (800f5b4 <HAL_TIM_Base_Start+0xdc>)
  35434. 800f550: 4013 ands r3, r2
  35435. 800f552: 60fb str r3, [r7, #12]
  35436. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35437. 800f554: 68fb ldr r3, [r7, #12]
  35438. 800f556: 2b06 cmp r3, #6
  35439. 800f558: d015 beq.n 800f586 <HAL_TIM_Base_Start+0xae>
  35440. 800f55a: 68fb ldr r3, [r7, #12]
  35441. 800f55c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35442. 800f560: d011 beq.n 800f586 <HAL_TIM_Base_Start+0xae>
  35443. {
  35444. __HAL_TIM_ENABLE(htim);
  35445. 800f562: 687b ldr r3, [r7, #4]
  35446. 800f564: 681b ldr r3, [r3, #0]
  35447. 800f566: 681a ldr r2, [r3, #0]
  35448. 800f568: 687b ldr r3, [r7, #4]
  35449. 800f56a: 681b ldr r3, [r3, #0]
  35450. 800f56c: f042 0201 orr.w r2, r2, #1
  35451. 800f570: 601a str r2, [r3, #0]
  35452. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35453. 800f572: e008 b.n 800f586 <HAL_TIM_Base_Start+0xae>
  35454. }
  35455. }
  35456. else
  35457. {
  35458. __HAL_TIM_ENABLE(htim);
  35459. 800f574: 687b ldr r3, [r7, #4]
  35460. 800f576: 681b ldr r3, [r3, #0]
  35461. 800f578: 681a ldr r2, [r3, #0]
  35462. 800f57a: 687b ldr r3, [r7, #4]
  35463. 800f57c: 681b ldr r3, [r3, #0]
  35464. 800f57e: f042 0201 orr.w r2, r2, #1
  35465. 800f582: 601a str r2, [r3, #0]
  35466. 800f584: e000 b.n 800f588 <HAL_TIM_Base_Start+0xb0>
  35467. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35468. 800f586: bf00 nop
  35469. }
  35470. /* Return function status */
  35471. return HAL_OK;
  35472. 800f588: 2300 movs r3, #0
  35473. }
  35474. 800f58a: 4618 mov r0, r3
  35475. 800f58c: 3714 adds r7, #20
  35476. 800f58e: 46bd mov sp, r7
  35477. 800f590: f85d 7b04 ldr.w r7, [sp], #4
  35478. 800f594: 4770 bx lr
  35479. 800f596: bf00 nop
  35480. 800f598: 40010000 .word 0x40010000
  35481. 800f59c: 40000400 .word 0x40000400
  35482. 800f5a0: 40000800 .word 0x40000800
  35483. 800f5a4: 40000c00 .word 0x40000c00
  35484. 800f5a8: 40010400 .word 0x40010400
  35485. 800f5ac: 40001800 .word 0x40001800
  35486. 800f5b0: 40014000 .word 0x40014000
  35487. 800f5b4: 00010007 .word 0x00010007
  35488. 0800f5b8 <HAL_TIM_Base_Start_IT>:
  35489. * @brief Starts the TIM Base generation in interrupt mode.
  35490. * @param htim TIM Base handle
  35491. * @retval HAL status
  35492. */
  35493. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  35494. {
  35495. 800f5b8: b480 push {r7}
  35496. 800f5ba: b085 sub sp, #20
  35497. 800f5bc: af00 add r7, sp, #0
  35498. 800f5be: 6078 str r0, [r7, #4]
  35499. /* Check the parameters */
  35500. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35501. /* Check the TIM state */
  35502. if (htim->State != HAL_TIM_STATE_READY)
  35503. 800f5c0: 687b ldr r3, [r7, #4]
  35504. 800f5c2: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35505. 800f5c6: b2db uxtb r3, r3
  35506. 800f5c8: 2b01 cmp r3, #1
  35507. 800f5ca: d001 beq.n 800f5d0 <HAL_TIM_Base_Start_IT+0x18>
  35508. {
  35509. return HAL_ERROR;
  35510. 800f5cc: 2301 movs r3, #1
  35511. 800f5ce: e054 b.n 800f67a <HAL_TIM_Base_Start_IT+0xc2>
  35512. }
  35513. /* Set the TIM state */
  35514. htim->State = HAL_TIM_STATE_BUSY;
  35515. 800f5d0: 687b ldr r3, [r7, #4]
  35516. 800f5d2: 2202 movs r2, #2
  35517. 800f5d4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35518. /* Enable the TIM Update interrupt */
  35519. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  35520. 800f5d8: 687b ldr r3, [r7, #4]
  35521. 800f5da: 681b ldr r3, [r3, #0]
  35522. 800f5dc: 68da ldr r2, [r3, #12]
  35523. 800f5de: 687b ldr r3, [r7, #4]
  35524. 800f5e0: 681b ldr r3, [r3, #0]
  35525. 800f5e2: f042 0201 orr.w r2, r2, #1
  35526. 800f5e6: 60da str r2, [r3, #12]
  35527. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35528. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35529. 800f5e8: 687b ldr r3, [r7, #4]
  35530. 800f5ea: 681b ldr r3, [r3, #0]
  35531. 800f5ec: 4a26 ldr r2, [pc, #152] @ (800f688 <HAL_TIM_Base_Start_IT+0xd0>)
  35532. 800f5ee: 4293 cmp r3, r2
  35533. 800f5f0: d022 beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35534. 800f5f2: 687b ldr r3, [r7, #4]
  35535. 800f5f4: 681b ldr r3, [r3, #0]
  35536. 800f5f6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35537. 800f5fa: d01d beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35538. 800f5fc: 687b ldr r3, [r7, #4]
  35539. 800f5fe: 681b ldr r3, [r3, #0]
  35540. 800f600: 4a22 ldr r2, [pc, #136] @ (800f68c <HAL_TIM_Base_Start_IT+0xd4>)
  35541. 800f602: 4293 cmp r3, r2
  35542. 800f604: d018 beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35543. 800f606: 687b ldr r3, [r7, #4]
  35544. 800f608: 681b ldr r3, [r3, #0]
  35545. 800f60a: 4a21 ldr r2, [pc, #132] @ (800f690 <HAL_TIM_Base_Start_IT+0xd8>)
  35546. 800f60c: 4293 cmp r3, r2
  35547. 800f60e: d013 beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35548. 800f610: 687b ldr r3, [r7, #4]
  35549. 800f612: 681b ldr r3, [r3, #0]
  35550. 800f614: 4a1f ldr r2, [pc, #124] @ (800f694 <HAL_TIM_Base_Start_IT+0xdc>)
  35551. 800f616: 4293 cmp r3, r2
  35552. 800f618: d00e beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35553. 800f61a: 687b ldr r3, [r7, #4]
  35554. 800f61c: 681b ldr r3, [r3, #0]
  35555. 800f61e: 4a1e ldr r2, [pc, #120] @ (800f698 <HAL_TIM_Base_Start_IT+0xe0>)
  35556. 800f620: 4293 cmp r3, r2
  35557. 800f622: d009 beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35558. 800f624: 687b ldr r3, [r7, #4]
  35559. 800f626: 681b ldr r3, [r3, #0]
  35560. 800f628: 4a1c ldr r2, [pc, #112] @ (800f69c <HAL_TIM_Base_Start_IT+0xe4>)
  35561. 800f62a: 4293 cmp r3, r2
  35562. 800f62c: d004 beq.n 800f638 <HAL_TIM_Base_Start_IT+0x80>
  35563. 800f62e: 687b ldr r3, [r7, #4]
  35564. 800f630: 681b ldr r3, [r3, #0]
  35565. 800f632: 4a1b ldr r2, [pc, #108] @ (800f6a0 <HAL_TIM_Base_Start_IT+0xe8>)
  35566. 800f634: 4293 cmp r3, r2
  35567. 800f636: d115 bne.n 800f664 <HAL_TIM_Base_Start_IT+0xac>
  35568. {
  35569. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35570. 800f638: 687b ldr r3, [r7, #4]
  35571. 800f63a: 681b ldr r3, [r3, #0]
  35572. 800f63c: 689a ldr r2, [r3, #8]
  35573. 800f63e: 4b19 ldr r3, [pc, #100] @ (800f6a4 <HAL_TIM_Base_Start_IT+0xec>)
  35574. 800f640: 4013 ands r3, r2
  35575. 800f642: 60fb str r3, [r7, #12]
  35576. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35577. 800f644: 68fb ldr r3, [r7, #12]
  35578. 800f646: 2b06 cmp r3, #6
  35579. 800f648: d015 beq.n 800f676 <HAL_TIM_Base_Start_IT+0xbe>
  35580. 800f64a: 68fb ldr r3, [r7, #12]
  35581. 800f64c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35582. 800f650: d011 beq.n 800f676 <HAL_TIM_Base_Start_IT+0xbe>
  35583. {
  35584. __HAL_TIM_ENABLE(htim);
  35585. 800f652: 687b ldr r3, [r7, #4]
  35586. 800f654: 681b ldr r3, [r3, #0]
  35587. 800f656: 681a ldr r2, [r3, #0]
  35588. 800f658: 687b ldr r3, [r7, #4]
  35589. 800f65a: 681b ldr r3, [r3, #0]
  35590. 800f65c: f042 0201 orr.w r2, r2, #1
  35591. 800f660: 601a str r2, [r3, #0]
  35592. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35593. 800f662: e008 b.n 800f676 <HAL_TIM_Base_Start_IT+0xbe>
  35594. }
  35595. }
  35596. else
  35597. {
  35598. __HAL_TIM_ENABLE(htim);
  35599. 800f664: 687b ldr r3, [r7, #4]
  35600. 800f666: 681b ldr r3, [r3, #0]
  35601. 800f668: 681a ldr r2, [r3, #0]
  35602. 800f66a: 687b ldr r3, [r7, #4]
  35603. 800f66c: 681b ldr r3, [r3, #0]
  35604. 800f66e: f042 0201 orr.w r2, r2, #1
  35605. 800f672: 601a str r2, [r3, #0]
  35606. 800f674: e000 b.n 800f678 <HAL_TIM_Base_Start_IT+0xc0>
  35607. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35608. 800f676: bf00 nop
  35609. }
  35610. /* Return function status */
  35611. return HAL_OK;
  35612. 800f678: 2300 movs r3, #0
  35613. }
  35614. 800f67a: 4618 mov r0, r3
  35615. 800f67c: 3714 adds r7, #20
  35616. 800f67e: 46bd mov sp, r7
  35617. 800f680: f85d 7b04 ldr.w r7, [sp], #4
  35618. 800f684: 4770 bx lr
  35619. 800f686: bf00 nop
  35620. 800f688: 40010000 .word 0x40010000
  35621. 800f68c: 40000400 .word 0x40000400
  35622. 800f690: 40000800 .word 0x40000800
  35623. 800f694: 40000c00 .word 0x40000c00
  35624. 800f698: 40010400 .word 0x40010400
  35625. 800f69c: 40001800 .word 0x40001800
  35626. 800f6a0: 40014000 .word 0x40014000
  35627. 800f6a4: 00010007 .word 0x00010007
  35628. 0800f6a8 <HAL_TIM_PWM_Init>:
  35629. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  35630. * @param htim TIM PWM handle
  35631. * @retval HAL status
  35632. */
  35633. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  35634. {
  35635. 800f6a8: b580 push {r7, lr}
  35636. 800f6aa: b082 sub sp, #8
  35637. 800f6ac: af00 add r7, sp, #0
  35638. 800f6ae: 6078 str r0, [r7, #4]
  35639. /* Check the TIM handle allocation */
  35640. if (htim == NULL)
  35641. 800f6b0: 687b ldr r3, [r7, #4]
  35642. 800f6b2: 2b00 cmp r3, #0
  35643. 800f6b4: d101 bne.n 800f6ba <HAL_TIM_PWM_Init+0x12>
  35644. {
  35645. return HAL_ERROR;
  35646. 800f6b6: 2301 movs r3, #1
  35647. 800f6b8: e049 b.n 800f74e <HAL_TIM_PWM_Init+0xa6>
  35648. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35649. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35650. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35651. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35652. if (htim->State == HAL_TIM_STATE_RESET)
  35653. 800f6ba: 687b ldr r3, [r7, #4]
  35654. 800f6bc: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35655. 800f6c0: b2db uxtb r3, r3
  35656. 800f6c2: 2b00 cmp r3, #0
  35657. 800f6c4: d106 bne.n 800f6d4 <HAL_TIM_PWM_Init+0x2c>
  35658. {
  35659. /* Allocate lock resource and initialize it */
  35660. htim->Lock = HAL_UNLOCKED;
  35661. 800f6c6: 687b ldr r3, [r7, #4]
  35662. 800f6c8: 2200 movs r2, #0
  35663. 800f6ca: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35664. }
  35665. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35666. htim->PWM_MspInitCallback(htim);
  35667. #else
  35668. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35669. HAL_TIM_PWM_MspInit(htim);
  35670. 800f6ce: 6878 ldr r0, [r7, #4]
  35671. 800f6d0: f7f4 fdc6 bl 8004260 <HAL_TIM_PWM_MspInit>
  35672. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35673. }
  35674. /* Set the TIM state */
  35675. htim->State = HAL_TIM_STATE_BUSY;
  35676. 800f6d4: 687b ldr r3, [r7, #4]
  35677. 800f6d6: 2202 movs r2, #2
  35678. 800f6d8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35679. /* Init the base time for the PWM */
  35680. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35681. 800f6dc: 687b ldr r3, [r7, #4]
  35682. 800f6de: 681a ldr r2, [r3, #0]
  35683. 800f6e0: 687b ldr r3, [r7, #4]
  35684. 800f6e2: 3304 adds r3, #4
  35685. 800f6e4: 4619 mov r1, r3
  35686. 800f6e6: 4610 mov r0, r2
  35687. 800f6e8: f000 ffd8 bl 801069c <TIM_Base_SetConfig>
  35688. /* Initialize the DMA burst operation state */
  35689. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35690. 800f6ec: 687b ldr r3, [r7, #4]
  35691. 800f6ee: 2201 movs r2, #1
  35692. 800f6f0: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35693. /* Initialize the TIM channels state */
  35694. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35695. 800f6f4: 687b ldr r3, [r7, #4]
  35696. 800f6f6: 2201 movs r2, #1
  35697. 800f6f8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35698. 800f6fc: 687b ldr r3, [r7, #4]
  35699. 800f6fe: 2201 movs r2, #1
  35700. 800f700: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35701. 800f704: 687b ldr r3, [r7, #4]
  35702. 800f706: 2201 movs r2, #1
  35703. 800f708: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35704. 800f70c: 687b ldr r3, [r7, #4]
  35705. 800f70e: 2201 movs r2, #1
  35706. 800f710: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35707. 800f714: 687b ldr r3, [r7, #4]
  35708. 800f716: 2201 movs r2, #1
  35709. 800f718: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35710. 800f71c: 687b ldr r3, [r7, #4]
  35711. 800f71e: 2201 movs r2, #1
  35712. 800f720: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35713. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35714. 800f724: 687b ldr r3, [r7, #4]
  35715. 800f726: 2201 movs r2, #1
  35716. 800f728: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35717. 800f72c: 687b ldr r3, [r7, #4]
  35718. 800f72e: 2201 movs r2, #1
  35719. 800f730: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35720. 800f734: 687b ldr r3, [r7, #4]
  35721. 800f736: 2201 movs r2, #1
  35722. 800f738: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35723. 800f73c: 687b ldr r3, [r7, #4]
  35724. 800f73e: 2201 movs r2, #1
  35725. 800f740: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35726. /* Initialize the TIM state*/
  35727. htim->State = HAL_TIM_STATE_READY;
  35728. 800f744: 687b ldr r3, [r7, #4]
  35729. 800f746: 2201 movs r2, #1
  35730. 800f748: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35731. return HAL_OK;
  35732. 800f74c: 2300 movs r3, #0
  35733. }
  35734. 800f74e: 4618 mov r0, r3
  35735. 800f750: 3708 adds r7, #8
  35736. 800f752: 46bd mov sp, r7
  35737. 800f754: bd80 pop {r7, pc}
  35738. ...
  35739. 0800f758 <HAL_TIM_PWM_Start>:
  35740. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35741. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35742. * @retval HAL status
  35743. */
  35744. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  35745. {
  35746. 800f758: b580 push {r7, lr}
  35747. 800f75a: b084 sub sp, #16
  35748. 800f75c: af00 add r7, sp, #0
  35749. 800f75e: 6078 str r0, [r7, #4]
  35750. 800f760: 6039 str r1, [r7, #0]
  35751. /* Check the parameters */
  35752. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35753. /* Check the TIM channel state */
  35754. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  35755. 800f762: 683b ldr r3, [r7, #0]
  35756. 800f764: 2b00 cmp r3, #0
  35757. 800f766: d109 bne.n 800f77c <HAL_TIM_PWM_Start+0x24>
  35758. 800f768: 687b ldr r3, [r7, #4]
  35759. 800f76a: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35760. 800f76e: b2db uxtb r3, r3
  35761. 800f770: 2b01 cmp r3, #1
  35762. 800f772: bf14 ite ne
  35763. 800f774: 2301 movne r3, #1
  35764. 800f776: 2300 moveq r3, #0
  35765. 800f778: b2db uxtb r3, r3
  35766. 800f77a: e03c b.n 800f7f6 <HAL_TIM_PWM_Start+0x9e>
  35767. 800f77c: 683b ldr r3, [r7, #0]
  35768. 800f77e: 2b04 cmp r3, #4
  35769. 800f780: d109 bne.n 800f796 <HAL_TIM_PWM_Start+0x3e>
  35770. 800f782: 687b ldr r3, [r7, #4]
  35771. 800f784: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35772. 800f788: b2db uxtb r3, r3
  35773. 800f78a: 2b01 cmp r3, #1
  35774. 800f78c: bf14 ite ne
  35775. 800f78e: 2301 movne r3, #1
  35776. 800f790: 2300 moveq r3, #0
  35777. 800f792: b2db uxtb r3, r3
  35778. 800f794: e02f b.n 800f7f6 <HAL_TIM_PWM_Start+0x9e>
  35779. 800f796: 683b ldr r3, [r7, #0]
  35780. 800f798: 2b08 cmp r3, #8
  35781. 800f79a: d109 bne.n 800f7b0 <HAL_TIM_PWM_Start+0x58>
  35782. 800f79c: 687b ldr r3, [r7, #4]
  35783. 800f79e: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35784. 800f7a2: b2db uxtb r3, r3
  35785. 800f7a4: 2b01 cmp r3, #1
  35786. 800f7a6: bf14 ite ne
  35787. 800f7a8: 2301 movne r3, #1
  35788. 800f7aa: 2300 moveq r3, #0
  35789. 800f7ac: b2db uxtb r3, r3
  35790. 800f7ae: e022 b.n 800f7f6 <HAL_TIM_PWM_Start+0x9e>
  35791. 800f7b0: 683b ldr r3, [r7, #0]
  35792. 800f7b2: 2b0c cmp r3, #12
  35793. 800f7b4: d109 bne.n 800f7ca <HAL_TIM_PWM_Start+0x72>
  35794. 800f7b6: 687b ldr r3, [r7, #4]
  35795. 800f7b8: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35796. 800f7bc: b2db uxtb r3, r3
  35797. 800f7be: 2b01 cmp r3, #1
  35798. 800f7c0: bf14 ite ne
  35799. 800f7c2: 2301 movne r3, #1
  35800. 800f7c4: 2300 moveq r3, #0
  35801. 800f7c6: b2db uxtb r3, r3
  35802. 800f7c8: e015 b.n 800f7f6 <HAL_TIM_PWM_Start+0x9e>
  35803. 800f7ca: 683b ldr r3, [r7, #0]
  35804. 800f7cc: 2b10 cmp r3, #16
  35805. 800f7ce: d109 bne.n 800f7e4 <HAL_TIM_PWM_Start+0x8c>
  35806. 800f7d0: 687b ldr r3, [r7, #4]
  35807. 800f7d2: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35808. 800f7d6: b2db uxtb r3, r3
  35809. 800f7d8: 2b01 cmp r3, #1
  35810. 800f7da: bf14 ite ne
  35811. 800f7dc: 2301 movne r3, #1
  35812. 800f7de: 2300 moveq r3, #0
  35813. 800f7e0: b2db uxtb r3, r3
  35814. 800f7e2: e008 b.n 800f7f6 <HAL_TIM_PWM_Start+0x9e>
  35815. 800f7e4: 687b ldr r3, [r7, #4]
  35816. 800f7e6: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35817. 800f7ea: b2db uxtb r3, r3
  35818. 800f7ec: 2b01 cmp r3, #1
  35819. 800f7ee: bf14 ite ne
  35820. 800f7f0: 2301 movne r3, #1
  35821. 800f7f2: 2300 moveq r3, #0
  35822. 800f7f4: b2db uxtb r3, r3
  35823. 800f7f6: 2b00 cmp r3, #0
  35824. 800f7f8: d001 beq.n 800f7fe <HAL_TIM_PWM_Start+0xa6>
  35825. {
  35826. return HAL_ERROR;
  35827. 800f7fa: 2301 movs r3, #1
  35828. 800f7fc: e0a1 b.n 800f942 <HAL_TIM_PWM_Start+0x1ea>
  35829. }
  35830. /* Set the TIM channel state */
  35831. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35832. 800f7fe: 683b ldr r3, [r7, #0]
  35833. 800f800: 2b00 cmp r3, #0
  35834. 800f802: d104 bne.n 800f80e <HAL_TIM_PWM_Start+0xb6>
  35835. 800f804: 687b ldr r3, [r7, #4]
  35836. 800f806: 2202 movs r2, #2
  35837. 800f808: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35838. 800f80c: e023 b.n 800f856 <HAL_TIM_PWM_Start+0xfe>
  35839. 800f80e: 683b ldr r3, [r7, #0]
  35840. 800f810: 2b04 cmp r3, #4
  35841. 800f812: d104 bne.n 800f81e <HAL_TIM_PWM_Start+0xc6>
  35842. 800f814: 687b ldr r3, [r7, #4]
  35843. 800f816: 2202 movs r2, #2
  35844. 800f818: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35845. 800f81c: e01b b.n 800f856 <HAL_TIM_PWM_Start+0xfe>
  35846. 800f81e: 683b ldr r3, [r7, #0]
  35847. 800f820: 2b08 cmp r3, #8
  35848. 800f822: d104 bne.n 800f82e <HAL_TIM_PWM_Start+0xd6>
  35849. 800f824: 687b ldr r3, [r7, #4]
  35850. 800f826: 2202 movs r2, #2
  35851. 800f828: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35852. 800f82c: e013 b.n 800f856 <HAL_TIM_PWM_Start+0xfe>
  35853. 800f82e: 683b ldr r3, [r7, #0]
  35854. 800f830: 2b0c cmp r3, #12
  35855. 800f832: d104 bne.n 800f83e <HAL_TIM_PWM_Start+0xe6>
  35856. 800f834: 687b ldr r3, [r7, #4]
  35857. 800f836: 2202 movs r2, #2
  35858. 800f838: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35859. 800f83c: e00b b.n 800f856 <HAL_TIM_PWM_Start+0xfe>
  35860. 800f83e: 683b ldr r3, [r7, #0]
  35861. 800f840: 2b10 cmp r3, #16
  35862. 800f842: d104 bne.n 800f84e <HAL_TIM_PWM_Start+0xf6>
  35863. 800f844: 687b ldr r3, [r7, #4]
  35864. 800f846: 2202 movs r2, #2
  35865. 800f848: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35866. 800f84c: e003 b.n 800f856 <HAL_TIM_PWM_Start+0xfe>
  35867. 800f84e: 687b ldr r3, [r7, #4]
  35868. 800f850: 2202 movs r2, #2
  35869. 800f852: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35870. /* Enable the Capture compare channel */
  35871. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35872. 800f856: 687b ldr r3, [r7, #4]
  35873. 800f858: 681b ldr r3, [r3, #0]
  35874. 800f85a: 2201 movs r2, #1
  35875. 800f85c: 6839 ldr r1, [r7, #0]
  35876. 800f85e: 4618 mov r0, r3
  35877. 800f860: f001 fc60 bl 8011124 <TIM_CCxChannelCmd>
  35878. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35879. 800f864: 687b ldr r3, [r7, #4]
  35880. 800f866: 681b ldr r3, [r3, #0]
  35881. 800f868: 4a38 ldr r2, [pc, #224] @ (800f94c <HAL_TIM_PWM_Start+0x1f4>)
  35882. 800f86a: 4293 cmp r3, r2
  35883. 800f86c: d013 beq.n 800f896 <HAL_TIM_PWM_Start+0x13e>
  35884. 800f86e: 687b ldr r3, [r7, #4]
  35885. 800f870: 681b ldr r3, [r3, #0]
  35886. 800f872: 4a37 ldr r2, [pc, #220] @ (800f950 <HAL_TIM_PWM_Start+0x1f8>)
  35887. 800f874: 4293 cmp r3, r2
  35888. 800f876: d00e beq.n 800f896 <HAL_TIM_PWM_Start+0x13e>
  35889. 800f878: 687b ldr r3, [r7, #4]
  35890. 800f87a: 681b ldr r3, [r3, #0]
  35891. 800f87c: 4a35 ldr r2, [pc, #212] @ (800f954 <HAL_TIM_PWM_Start+0x1fc>)
  35892. 800f87e: 4293 cmp r3, r2
  35893. 800f880: d009 beq.n 800f896 <HAL_TIM_PWM_Start+0x13e>
  35894. 800f882: 687b ldr r3, [r7, #4]
  35895. 800f884: 681b ldr r3, [r3, #0]
  35896. 800f886: 4a34 ldr r2, [pc, #208] @ (800f958 <HAL_TIM_PWM_Start+0x200>)
  35897. 800f888: 4293 cmp r3, r2
  35898. 800f88a: d004 beq.n 800f896 <HAL_TIM_PWM_Start+0x13e>
  35899. 800f88c: 687b ldr r3, [r7, #4]
  35900. 800f88e: 681b ldr r3, [r3, #0]
  35901. 800f890: 4a32 ldr r2, [pc, #200] @ (800f95c <HAL_TIM_PWM_Start+0x204>)
  35902. 800f892: 4293 cmp r3, r2
  35903. 800f894: d101 bne.n 800f89a <HAL_TIM_PWM_Start+0x142>
  35904. 800f896: 2301 movs r3, #1
  35905. 800f898: e000 b.n 800f89c <HAL_TIM_PWM_Start+0x144>
  35906. 800f89a: 2300 movs r3, #0
  35907. 800f89c: 2b00 cmp r3, #0
  35908. 800f89e: d007 beq.n 800f8b0 <HAL_TIM_PWM_Start+0x158>
  35909. {
  35910. /* Enable the main output */
  35911. __HAL_TIM_MOE_ENABLE(htim);
  35912. 800f8a0: 687b ldr r3, [r7, #4]
  35913. 800f8a2: 681b ldr r3, [r3, #0]
  35914. 800f8a4: 6c5a ldr r2, [r3, #68] @ 0x44
  35915. 800f8a6: 687b ldr r3, [r7, #4]
  35916. 800f8a8: 681b ldr r3, [r3, #0]
  35917. 800f8aa: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  35918. 800f8ae: 645a str r2, [r3, #68] @ 0x44
  35919. }
  35920. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35921. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35922. 800f8b0: 687b ldr r3, [r7, #4]
  35923. 800f8b2: 681b ldr r3, [r3, #0]
  35924. 800f8b4: 4a25 ldr r2, [pc, #148] @ (800f94c <HAL_TIM_PWM_Start+0x1f4>)
  35925. 800f8b6: 4293 cmp r3, r2
  35926. 800f8b8: d022 beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35927. 800f8ba: 687b ldr r3, [r7, #4]
  35928. 800f8bc: 681b ldr r3, [r3, #0]
  35929. 800f8be: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35930. 800f8c2: d01d beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35931. 800f8c4: 687b ldr r3, [r7, #4]
  35932. 800f8c6: 681b ldr r3, [r3, #0]
  35933. 800f8c8: 4a25 ldr r2, [pc, #148] @ (800f960 <HAL_TIM_PWM_Start+0x208>)
  35934. 800f8ca: 4293 cmp r3, r2
  35935. 800f8cc: d018 beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35936. 800f8ce: 687b ldr r3, [r7, #4]
  35937. 800f8d0: 681b ldr r3, [r3, #0]
  35938. 800f8d2: 4a24 ldr r2, [pc, #144] @ (800f964 <HAL_TIM_PWM_Start+0x20c>)
  35939. 800f8d4: 4293 cmp r3, r2
  35940. 800f8d6: d013 beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35941. 800f8d8: 687b ldr r3, [r7, #4]
  35942. 800f8da: 681b ldr r3, [r3, #0]
  35943. 800f8dc: 4a22 ldr r2, [pc, #136] @ (800f968 <HAL_TIM_PWM_Start+0x210>)
  35944. 800f8de: 4293 cmp r3, r2
  35945. 800f8e0: d00e beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35946. 800f8e2: 687b ldr r3, [r7, #4]
  35947. 800f8e4: 681b ldr r3, [r3, #0]
  35948. 800f8e6: 4a1a ldr r2, [pc, #104] @ (800f950 <HAL_TIM_PWM_Start+0x1f8>)
  35949. 800f8e8: 4293 cmp r3, r2
  35950. 800f8ea: d009 beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35951. 800f8ec: 687b ldr r3, [r7, #4]
  35952. 800f8ee: 681b ldr r3, [r3, #0]
  35953. 800f8f0: 4a1e ldr r2, [pc, #120] @ (800f96c <HAL_TIM_PWM_Start+0x214>)
  35954. 800f8f2: 4293 cmp r3, r2
  35955. 800f8f4: d004 beq.n 800f900 <HAL_TIM_PWM_Start+0x1a8>
  35956. 800f8f6: 687b ldr r3, [r7, #4]
  35957. 800f8f8: 681b ldr r3, [r3, #0]
  35958. 800f8fa: 4a16 ldr r2, [pc, #88] @ (800f954 <HAL_TIM_PWM_Start+0x1fc>)
  35959. 800f8fc: 4293 cmp r3, r2
  35960. 800f8fe: d115 bne.n 800f92c <HAL_TIM_PWM_Start+0x1d4>
  35961. {
  35962. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35963. 800f900: 687b ldr r3, [r7, #4]
  35964. 800f902: 681b ldr r3, [r3, #0]
  35965. 800f904: 689a ldr r2, [r3, #8]
  35966. 800f906: 4b1a ldr r3, [pc, #104] @ (800f970 <HAL_TIM_PWM_Start+0x218>)
  35967. 800f908: 4013 ands r3, r2
  35968. 800f90a: 60fb str r3, [r7, #12]
  35969. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35970. 800f90c: 68fb ldr r3, [r7, #12]
  35971. 800f90e: 2b06 cmp r3, #6
  35972. 800f910: d015 beq.n 800f93e <HAL_TIM_PWM_Start+0x1e6>
  35973. 800f912: 68fb ldr r3, [r7, #12]
  35974. 800f914: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35975. 800f918: d011 beq.n 800f93e <HAL_TIM_PWM_Start+0x1e6>
  35976. {
  35977. __HAL_TIM_ENABLE(htim);
  35978. 800f91a: 687b ldr r3, [r7, #4]
  35979. 800f91c: 681b ldr r3, [r3, #0]
  35980. 800f91e: 681a ldr r2, [r3, #0]
  35981. 800f920: 687b ldr r3, [r7, #4]
  35982. 800f922: 681b ldr r3, [r3, #0]
  35983. 800f924: f042 0201 orr.w r2, r2, #1
  35984. 800f928: 601a str r2, [r3, #0]
  35985. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35986. 800f92a: e008 b.n 800f93e <HAL_TIM_PWM_Start+0x1e6>
  35987. }
  35988. }
  35989. else
  35990. {
  35991. __HAL_TIM_ENABLE(htim);
  35992. 800f92c: 687b ldr r3, [r7, #4]
  35993. 800f92e: 681b ldr r3, [r3, #0]
  35994. 800f930: 681a ldr r2, [r3, #0]
  35995. 800f932: 687b ldr r3, [r7, #4]
  35996. 800f934: 681b ldr r3, [r3, #0]
  35997. 800f936: f042 0201 orr.w r2, r2, #1
  35998. 800f93a: 601a str r2, [r3, #0]
  35999. 800f93c: e000 b.n 800f940 <HAL_TIM_PWM_Start+0x1e8>
  36000. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36001. 800f93e: bf00 nop
  36002. }
  36003. /* Return function status */
  36004. return HAL_OK;
  36005. 800f940: 2300 movs r3, #0
  36006. }
  36007. 800f942: 4618 mov r0, r3
  36008. 800f944: 3710 adds r7, #16
  36009. 800f946: 46bd mov sp, r7
  36010. 800f948: bd80 pop {r7, pc}
  36011. 800f94a: bf00 nop
  36012. 800f94c: 40010000 .word 0x40010000
  36013. 800f950: 40010400 .word 0x40010400
  36014. 800f954: 40014000 .word 0x40014000
  36015. 800f958: 40014400 .word 0x40014400
  36016. 800f95c: 40014800 .word 0x40014800
  36017. 800f960: 40000400 .word 0x40000400
  36018. 800f964: 40000800 .word 0x40000800
  36019. 800f968: 40000c00 .word 0x40000c00
  36020. 800f96c: 40001800 .word 0x40001800
  36021. 800f970: 00010007 .word 0x00010007
  36022. 0800f974 <HAL_TIM_PWM_Stop>:
  36023. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  36024. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  36025. * @retval HAL status
  36026. */
  36027. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  36028. {
  36029. 800f974: b580 push {r7, lr}
  36030. 800f976: b082 sub sp, #8
  36031. 800f978: af00 add r7, sp, #0
  36032. 800f97a: 6078 str r0, [r7, #4]
  36033. 800f97c: 6039 str r1, [r7, #0]
  36034. /* Check the parameters */
  36035. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36036. /* Disable the Capture compare channel */
  36037. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  36038. 800f97e: 687b ldr r3, [r7, #4]
  36039. 800f980: 681b ldr r3, [r3, #0]
  36040. 800f982: 2200 movs r2, #0
  36041. 800f984: 6839 ldr r1, [r7, #0]
  36042. 800f986: 4618 mov r0, r3
  36043. 800f988: f001 fbcc bl 8011124 <TIM_CCxChannelCmd>
  36044. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  36045. 800f98c: 687b ldr r3, [r7, #4]
  36046. 800f98e: 681b ldr r3, [r3, #0]
  36047. 800f990: 4a3e ldr r2, [pc, #248] @ (800fa8c <HAL_TIM_PWM_Stop+0x118>)
  36048. 800f992: 4293 cmp r3, r2
  36049. 800f994: d013 beq.n 800f9be <HAL_TIM_PWM_Stop+0x4a>
  36050. 800f996: 687b ldr r3, [r7, #4]
  36051. 800f998: 681b ldr r3, [r3, #0]
  36052. 800f99a: 4a3d ldr r2, [pc, #244] @ (800fa90 <HAL_TIM_PWM_Stop+0x11c>)
  36053. 800f99c: 4293 cmp r3, r2
  36054. 800f99e: d00e beq.n 800f9be <HAL_TIM_PWM_Stop+0x4a>
  36055. 800f9a0: 687b ldr r3, [r7, #4]
  36056. 800f9a2: 681b ldr r3, [r3, #0]
  36057. 800f9a4: 4a3b ldr r2, [pc, #236] @ (800fa94 <HAL_TIM_PWM_Stop+0x120>)
  36058. 800f9a6: 4293 cmp r3, r2
  36059. 800f9a8: d009 beq.n 800f9be <HAL_TIM_PWM_Stop+0x4a>
  36060. 800f9aa: 687b ldr r3, [r7, #4]
  36061. 800f9ac: 681b ldr r3, [r3, #0]
  36062. 800f9ae: 4a3a ldr r2, [pc, #232] @ (800fa98 <HAL_TIM_PWM_Stop+0x124>)
  36063. 800f9b0: 4293 cmp r3, r2
  36064. 800f9b2: d004 beq.n 800f9be <HAL_TIM_PWM_Stop+0x4a>
  36065. 800f9b4: 687b ldr r3, [r7, #4]
  36066. 800f9b6: 681b ldr r3, [r3, #0]
  36067. 800f9b8: 4a38 ldr r2, [pc, #224] @ (800fa9c <HAL_TIM_PWM_Stop+0x128>)
  36068. 800f9ba: 4293 cmp r3, r2
  36069. 800f9bc: d101 bne.n 800f9c2 <HAL_TIM_PWM_Stop+0x4e>
  36070. 800f9be: 2301 movs r3, #1
  36071. 800f9c0: e000 b.n 800f9c4 <HAL_TIM_PWM_Stop+0x50>
  36072. 800f9c2: 2300 movs r3, #0
  36073. 800f9c4: 2b00 cmp r3, #0
  36074. 800f9c6: d017 beq.n 800f9f8 <HAL_TIM_PWM_Stop+0x84>
  36075. {
  36076. /* Disable the Main Output */
  36077. __HAL_TIM_MOE_DISABLE(htim);
  36078. 800f9c8: 687b ldr r3, [r7, #4]
  36079. 800f9ca: 681b ldr r3, [r3, #0]
  36080. 800f9cc: 6a1a ldr r2, [r3, #32]
  36081. 800f9ce: f241 1311 movw r3, #4369 @ 0x1111
  36082. 800f9d2: 4013 ands r3, r2
  36083. 800f9d4: 2b00 cmp r3, #0
  36084. 800f9d6: d10f bne.n 800f9f8 <HAL_TIM_PWM_Stop+0x84>
  36085. 800f9d8: 687b ldr r3, [r7, #4]
  36086. 800f9da: 681b ldr r3, [r3, #0]
  36087. 800f9dc: 6a1a ldr r2, [r3, #32]
  36088. 800f9de: f240 4344 movw r3, #1092 @ 0x444
  36089. 800f9e2: 4013 ands r3, r2
  36090. 800f9e4: 2b00 cmp r3, #0
  36091. 800f9e6: d107 bne.n 800f9f8 <HAL_TIM_PWM_Stop+0x84>
  36092. 800f9e8: 687b ldr r3, [r7, #4]
  36093. 800f9ea: 681b ldr r3, [r3, #0]
  36094. 800f9ec: 6c5a ldr r2, [r3, #68] @ 0x44
  36095. 800f9ee: 687b ldr r3, [r7, #4]
  36096. 800f9f0: 681b ldr r3, [r3, #0]
  36097. 800f9f2: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  36098. 800f9f6: 645a str r2, [r3, #68] @ 0x44
  36099. }
  36100. /* Disable the Peripheral */
  36101. __HAL_TIM_DISABLE(htim);
  36102. 800f9f8: 687b ldr r3, [r7, #4]
  36103. 800f9fa: 681b ldr r3, [r3, #0]
  36104. 800f9fc: 6a1a ldr r2, [r3, #32]
  36105. 800f9fe: f241 1311 movw r3, #4369 @ 0x1111
  36106. 800fa02: 4013 ands r3, r2
  36107. 800fa04: 2b00 cmp r3, #0
  36108. 800fa06: d10f bne.n 800fa28 <HAL_TIM_PWM_Stop+0xb4>
  36109. 800fa08: 687b ldr r3, [r7, #4]
  36110. 800fa0a: 681b ldr r3, [r3, #0]
  36111. 800fa0c: 6a1a ldr r2, [r3, #32]
  36112. 800fa0e: f240 4344 movw r3, #1092 @ 0x444
  36113. 800fa12: 4013 ands r3, r2
  36114. 800fa14: 2b00 cmp r3, #0
  36115. 800fa16: d107 bne.n 800fa28 <HAL_TIM_PWM_Stop+0xb4>
  36116. 800fa18: 687b ldr r3, [r7, #4]
  36117. 800fa1a: 681b ldr r3, [r3, #0]
  36118. 800fa1c: 681a ldr r2, [r3, #0]
  36119. 800fa1e: 687b ldr r3, [r7, #4]
  36120. 800fa20: 681b ldr r3, [r3, #0]
  36121. 800fa22: f022 0201 bic.w r2, r2, #1
  36122. 800fa26: 601a str r2, [r3, #0]
  36123. /* Set the TIM channel state */
  36124. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  36125. 800fa28: 683b ldr r3, [r7, #0]
  36126. 800fa2a: 2b00 cmp r3, #0
  36127. 800fa2c: d104 bne.n 800fa38 <HAL_TIM_PWM_Stop+0xc4>
  36128. 800fa2e: 687b ldr r3, [r7, #4]
  36129. 800fa30: 2201 movs r2, #1
  36130. 800fa32: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36131. 800fa36: e023 b.n 800fa80 <HAL_TIM_PWM_Stop+0x10c>
  36132. 800fa38: 683b ldr r3, [r7, #0]
  36133. 800fa3a: 2b04 cmp r3, #4
  36134. 800fa3c: d104 bne.n 800fa48 <HAL_TIM_PWM_Stop+0xd4>
  36135. 800fa3e: 687b ldr r3, [r7, #4]
  36136. 800fa40: 2201 movs r2, #1
  36137. 800fa42: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36138. 800fa46: e01b b.n 800fa80 <HAL_TIM_PWM_Stop+0x10c>
  36139. 800fa48: 683b ldr r3, [r7, #0]
  36140. 800fa4a: 2b08 cmp r3, #8
  36141. 800fa4c: d104 bne.n 800fa58 <HAL_TIM_PWM_Stop+0xe4>
  36142. 800fa4e: 687b ldr r3, [r7, #4]
  36143. 800fa50: 2201 movs r2, #1
  36144. 800fa52: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36145. 800fa56: e013 b.n 800fa80 <HAL_TIM_PWM_Stop+0x10c>
  36146. 800fa58: 683b ldr r3, [r7, #0]
  36147. 800fa5a: 2b0c cmp r3, #12
  36148. 800fa5c: d104 bne.n 800fa68 <HAL_TIM_PWM_Stop+0xf4>
  36149. 800fa5e: 687b ldr r3, [r7, #4]
  36150. 800fa60: 2201 movs r2, #1
  36151. 800fa62: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36152. 800fa66: e00b b.n 800fa80 <HAL_TIM_PWM_Stop+0x10c>
  36153. 800fa68: 683b ldr r3, [r7, #0]
  36154. 800fa6a: 2b10 cmp r3, #16
  36155. 800fa6c: d104 bne.n 800fa78 <HAL_TIM_PWM_Stop+0x104>
  36156. 800fa6e: 687b ldr r3, [r7, #4]
  36157. 800fa70: 2201 movs r2, #1
  36158. 800fa72: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36159. 800fa76: e003 b.n 800fa80 <HAL_TIM_PWM_Stop+0x10c>
  36160. 800fa78: 687b ldr r3, [r7, #4]
  36161. 800fa7a: 2201 movs r2, #1
  36162. 800fa7c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36163. /* Return function status */
  36164. return HAL_OK;
  36165. 800fa80: 2300 movs r3, #0
  36166. }
  36167. 800fa82: 4618 mov r0, r3
  36168. 800fa84: 3708 adds r7, #8
  36169. 800fa86: 46bd mov sp, r7
  36170. 800fa88: bd80 pop {r7, pc}
  36171. 800fa8a: bf00 nop
  36172. 800fa8c: 40010000 .word 0x40010000
  36173. 800fa90: 40010400 .word 0x40010400
  36174. 800fa94: 40014000 .word 0x40014000
  36175. 800fa98: 40014400 .word 0x40014400
  36176. 800fa9c: 40014800 .word 0x40014800
  36177. 0800faa0 <HAL_TIM_IC_Init>:
  36178. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  36179. * @param htim TIM Input Capture handle
  36180. * @retval HAL status
  36181. */
  36182. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  36183. {
  36184. 800faa0: b580 push {r7, lr}
  36185. 800faa2: b082 sub sp, #8
  36186. 800faa4: af00 add r7, sp, #0
  36187. 800faa6: 6078 str r0, [r7, #4]
  36188. /* Check the TIM handle allocation */
  36189. if (htim == NULL)
  36190. 800faa8: 687b ldr r3, [r7, #4]
  36191. 800faaa: 2b00 cmp r3, #0
  36192. 800faac: d101 bne.n 800fab2 <HAL_TIM_IC_Init+0x12>
  36193. {
  36194. return HAL_ERROR;
  36195. 800faae: 2301 movs r3, #1
  36196. 800fab0: e049 b.n 800fb46 <HAL_TIM_IC_Init+0xa6>
  36197. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  36198. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  36199. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  36200. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  36201. if (htim->State == HAL_TIM_STATE_RESET)
  36202. 800fab2: 687b ldr r3, [r7, #4]
  36203. 800fab4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  36204. 800fab8: b2db uxtb r3, r3
  36205. 800faba: 2b00 cmp r3, #0
  36206. 800fabc: d106 bne.n 800facc <HAL_TIM_IC_Init+0x2c>
  36207. {
  36208. /* Allocate lock resource and initialize it */
  36209. htim->Lock = HAL_UNLOCKED;
  36210. 800fabe: 687b ldr r3, [r7, #4]
  36211. 800fac0: 2200 movs r2, #0
  36212. 800fac2: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36213. }
  36214. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  36215. htim->IC_MspInitCallback(htim);
  36216. #else
  36217. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  36218. HAL_TIM_IC_MspInit(htim);
  36219. 800fac6: 6878 ldr r0, [r7, #4]
  36220. 800fac8: f000 f841 bl 800fb4e <HAL_TIM_IC_MspInit>
  36221. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36222. }
  36223. /* Set the TIM state */
  36224. htim->State = HAL_TIM_STATE_BUSY;
  36225. 800facc: 687b ldr r3, [r7, #4]
  36226. 800face: 2202 movs r2, #2
  36227. 800fad0: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36228. /* Init the base time for the input capture */
  36229. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  36230. 800fad4: 687b ldr r3, [r7, #4]
  36231. 800fad6: 681a ldr r2, [r3, #0]
  36232. 800fad8: 687b ldr r3, [r7, #4]
  36233. 800fada: 3304 adds r3, #4
  36234. 800fadc: 4619 mov r1, r3
  36235. 800fade: 4610 mov r0, r2
  36236. 800fae0: f000 fddc bl 801069c <TIM_Base_SetConfig>
  36237. /* Initialize the DMA burst operation state */
  36238. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  36239. 800fae4: 687b ldr r3, [r7, #4]
  36240. 800fae6: 2201 movs r2, #1
  36241. 800fae8: f883 2048 strb.w r2, [r3, #72] @ 0x48
  36242. /* Initialize the TIM channels state */
  36243. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36244. 800faec: 687b ldr r3, [r7, #4]
  36245. 800faee: 2201 movs r2, #1
  36246. 800faf0: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36247. 800faf4: 687b ldr r3, [r7, #4]
  36248. 800faf6: 2201 movs r2, #1
  36249. 800faf8: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36250. 800fafc: 687b ldr r3, [r7, #4]
  36251. 800fafe: 2201 movs r2, #1
  36252. 800fb00: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36253. 800fb04: 687b ldr r3, [r7, #4]
  36254. 800fb06: 2201 movs r2, #1
  36255. 800fb08: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36256. 800fb0c: 687b ldr r3, [r7, #4]
  36257. 800fb0e: 2201 movs r2, #1
  36258. 800fb10: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36259. 800fb14: 687b ldr r3, [r7, #4]
  36260. 800fb16: 2201 movs r2, #1
  36261. 800fb18: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36262. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  36263. 800fb1c: 687b ldr r3, [r7, #4]
  36264. 800fb1e: 2201 movs r2, #1
  36265. 800fb20: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36266. 800fb24: 687b ldr r3, [r7, #4]
  36267. 800fb26: 2201 movs r2, #1
  36268. 800fb28: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36269. 800fb2c: 687b ldr r3, [r7, #4]
  36270. 800fb2e: 2201 movs r2, #1
  36271. 800fb30: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36272. 800fb34: 687b ldr r3, [r7, #4]
  36273. 800fb36: 2201 movs r2, #1
  36274. 800fb38: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36275. /* Initialize the TIM state*/
  36276. htim->State = HAL_TIM_STATE_READY;
  36277. 800fb3c: 687b ldr r3, [r7, #4]
  36278. 800fb3e: 2201 movs r2, #1
  36279. 800fb40: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36280. return HAL_OK;
  36281. 800fb44: 2300 movs r3, #0
  36282. }
  36283. 800fb46: 4618 mov r0, r3
  36284. 800fb48: 3708 adds r7, #8
  36285. 800fb4a: 46bd mov sp, r7
  36286. 800fb4c: bd80 pop {r7, pc}
  36287. 0800fb4e <HAL_TIM_IC_MspInit>:
  36288. * @brief Initializes the TIM Input Capture MSP.
  36289. * @param htim TIM Input Capture handle
  36290. * @retval None
  36291. */
  36292. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  36293. {
  36294. 800fb4e: b480 push {r7}
  36295. 800fb50: b083 sub sp, #12
  36296. 800fb52: af00 add r7, sp, #0
  36297. 800fb54: 6078 str r0, [r7, #4]
  36298. UNUSED(htim);
  36299. /* NOTE : This function should not be modified, when the callback is needed,
  36300. the HAL_TIM_IC_MspInit could be implemented in the user file
  36301. */
  36302. }
  36303. 800fb56: bf00 nop
  36304. 800fb58: 370c adds r7, #12
  36305. 800fb5a: 46bd mov sp, r7
  36306. 800fb5c: f85d 7b04 ldr.w r7, [sp], #4
  36307. 800fb60: 4770 bx lr
  36308. ...
  36309. 0800fb64 <HAL_TIM_IC_Start_IT>:
  36310. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  36311. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  36312. * @retval HAL status
  36313. */
  36314. HAL_StatusTypeDef HAL_TIM_IC_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel)
  36315. {
  36316. 800fb64: b580 push {r7, lr}
  36317. 800fb66: b084 sub sp, #16
  36318. 800fb68: af00 add r7, sp, #0
  36319. 800fb6a: 6078 str r0, [r7, #4]
  36320. 800fb6c: 6039 str r1, [r7, #0]
  36321. HAL_StatusTypeDef status = HAL_OK;
  36322. 800fb6e: 2300 movs r3, #0
  36323. 800fb70: 73fb strb r3, [r7, #15]
  36324. uint32_t tmpsmcr;
  36325. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36326. 800fb72: 683b ldr r3, [r7, #0]
  36327. 800fb74: 2b00 cmp r3, #0
  36328. 800fb76: d104 bne.n 800fb82 <HAL_TIM_IC_Start_IT+0x1e>
  36329. 800fb78: 687b ldr r3, [r7, #4]
  36330. 800fb7a: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36331. 800fb7e: b2db uxtb r3, r3
  36332. 800fb80: e023 b.n 800fbca <HAL_TIM_IC_Start_IT+0x66>
  36333. 800fb82: 683b ldr r3, [r7, #0]
  36334. 800fb84: 2b04 cmp r3, #4
  36335. 800fb86: d104 bne.n 800fb92 <HAL_TIM_IC_Start_IT+0x2e>
  36336. 800fb88: 687b ldr r3, [r7, #4]
  36337. 800fb8a: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36338. 800fb8e: b2db uxtb r3, r3
  36339. 800fb90: e01b b.n 800fbca <HAL_TIM_IC_Start_IT+0x66>
  36340. 800fb92: 683b ldr r3, [r7, #0]
  36341. 800fb94: 2b08 cmp r3, #8
  36342. 800fb96: d104 bne.n 800fba2 <HAL_TIM_IC_Start_IT+0x3e>
  36343. 800fb98: 687b ldr r3, [r7, #4]
  36344. 800fb9a: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36345. 800fb9e: b2db uxtb r3, r3
  36346. 800fba0: e013 b.n 800fbca <HAL_TIM_IC_Start_IT+0x66>
  36347. 800fba2: 683b ldr r3, [r7, #0]
  36348. 800fba4: 2b0c cmp r3, #12
  36349. 800fba6: d104 bne.n 800fbb2 <HAL_TIM_IC_Start_IT+0x4e>
  36350. 800fba8: 687b ldr r3, [r7, #4]
  36351. 800fbaa: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36352. 800fbae: b2db uxtb r3, r3
  36353. 800fbb0: e00b b.n 800fbca <HAL_TIM_IC_Start_IT+0x66>
  36354. 800fbb2: 683b ldr r3, [r7, #0]
  36355. 800fbb4: 2b10 cmp r3, #16
  36356. 800fbb6: d104 bne.n 800fbc2 <HAL_TIM_IC_Start_IT+0x5e>
  36357. 800fbb8: 687b ldr r3, [r7, #4]
  36358. 800fbba: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36359. 800fbbe: b2db uxtb r3, r3
  36360. 800fbc0: e003 b.n 800fbca <HAL_TIM_IC_Start_IT+0x66>
  36361. 800fbc2: 687b ldr r3, [r7, #4]
  36362. 800fbc4: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36363. 800fbc8: b2db uxtb r3, r3
  36364. 800fbca: 73bb strb r3, [r7, #14]
  36365. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  36366. 800fbcc: 683b ldr r3, [r7, #0]
  36367. 800fbce: 2b00 cmp r3, #0
  36368. 800fbd0: d104 bne.n 800fbdc <HAL_TIM_IC_Start_IT+0x78>
  36369. 800fbd2: 687b ldr r3, [r7, #4]
  36370. 800fbd4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  36371. 800fbd8: b2db uxtb r3, r3
  36372. 800fbda: e013 b.n 800fc04 <HAL_TIM_IC_Start_IT+0xa0>
  36373. 800fbdc: 683b ldr r3, [r7, #0]
  36374. 800fbde: 2b04 cmp r3, #4
  36375. 800fbe0: d104 bne.n 800fbec <HAL_TIM_IC_Start_IT+0x88>
  36376. 800fbe2: 687b ldr r3, [r7, #4]
  36377. 800fbe4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  36378. 800fbe8: b2db uxtb r3, r3
  36379. 800fbea: e00b b.n 800fc04 <HAL_TIM_IC_Start_IT+0xa0>
  36380. 800fbec: 683b ldr r3, [r7, #0]
  36381. 800fbee: 2b08 cmp r3, #8
  36382. 800fbf0: d104 bne.n 800fbfc <HAL_TIM_IC_Start_IT+0x98>
  36383. 800fbf2: 687b ldr r3, [r7, #4]
  36384. 800fbf4: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  36385. 800fbf8: b2db uxtb r3, r3
  36386. 800fbfa: e003 b.n 800fc04 <HAL_TIM_IC_Start_IT+0xa0>
  36387. 800fbfc: 687b ldr r3, [r7, #4]
  36388. 800fbfe: f893 3047 ldrb.w r3, [r3, #71] @ 0x47
  36389. 800fc02: b2db uxtb r3, r3
  36390. 800fc04: 737b strb r3, [r7, #13]
  36391. /* Check the parameters */
  36392. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  36393. /* Check the TIM channel state */
  36394. if ((channel_state != HAL_TIM_CHANNEL_STATE_READY)
  36395. 800fc06: 7bbb ldrb r3, [r7, #14]
  36396. 800fc08: 2b01 cmp r3, #1
  36397. 800fc0a: d102 bne.n 800fc12 <HAL_TIM_IC_Start_IT+0xae>
  36398. || (complementary_channel_state != HAL_TIM_CHANNEL_STATE_READY))
  36399. 800fc0c: 7b7b ldrb r3, [r7, #13]
  36400. 800fc0e: 2b01 cmp r3, #1
  36401. 800fc10: d001 beq.n 800fc16 <HAL_TIM_IC_Start_IT+0xb2>
  36402. {
  36403. return HAL_ERROR;
  36404. 800fc12: 2301 movs r3, #1
  36405. 800fc14: e0e2 b.n 800fddc <HAL_TIM_IC_Start_IT+0x278>
  36406. }
  36407. /* Set the TIM channel state */
  36408. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36409. 800fc16: 683b ldr r3, [r7, #0]
  36410. 800fc18: 2b00 cmp r3, #0
  36411. 800fc1a: d104 bne.n 800fc26 <HAL_TIM_IC_Start_IT+0xc2>
  36412. 800fc1c: 687b ldr r3, [r7, #4]
  36413. 800fc1e: 2202 movs r2, #2
  36414. 800fc20: f883 203e strb.w r2, [r3, #62] @ 0x3e
  36415. 800fc24: e023 b.n 800fc6e <HAL_TIM_IC_Start_IT+0x10a>
  36416. 800fc26: 683b ldr r3, [r7, #0]
  36417. 800fc28: 2b04 cmp r3, #4
  36418. 800fc2a: d104 bne.n 800fc36 <HAL_TIM_IC_Start_IT+0xd2>
  36419. 800fc2c: 687b ldr r3, [r7, #4]
  36420. 800fc2e: 2202 movs r2, #2
  36421. 800fc30: f883 203f strb.w r2, [r3, #63] @ 0x3f
  36422. 800fc34: e01b b.n 800fc6e <HAL_TIM_IC_Start_IT+0x10a>
  36423. 800fc36: 683b ldr r3, [r7, #0]
  36424. 800fc38: 2b08 cmp r3, #8
  36425. 800fc3a: d104 bne.n 800fc46 <HAL_TIM_IC_Start_IT+0xe2>
  36426. 800fc3c: 687b ldr r3, [r7, #4]
  36427. 800fc3e: 2202 movs r2, #2
  36428. 800fc40: f883 2040 strb.w r2, [r3, #64] @ 0x40
  36429. 800fc44: e013 b.n 800fc6e <HAL_TIM_IC_Start_IT+0x10a>
  36430. 800fc46: 683b ldr r3, [r7, #0]
  36431. 800fc48: 2b0c cmp r3, #12
  36432. 800fc4a: d104 bne.n 800fc56 <HAL_TIM_IC_Start_IT+0xf2>
  36433. 800fc4c: 687b ldr r3, [r7, #4]
  36434. 800fc4e: 2202 movs r2, #2
  36435. 800fc50: f883 2041 strb.w r2, [r3, #65] @ 0x41
  36436. 800fc54: e00b b.n 800fc6e <HAL_TIM_IC_Start_IT+0x10a>
  36437. 800fc56: 683b ldr r3, [r7, #0]
  36438. 800fc58: 2b10 cmp r3, #16
  36439. 800fc5a: d104 bne.n 800fc66 <HAL_TIM_IC_Start_IT+0x102>
  36440. 800fc5c: 687b ldr r3, [r7, #4]
  36441. 800fc5e: 2202 movs r2, #2
  36442. 800fc60: f883 2042 strb.w r2, [r3, #66] @ 0x42
  36443. 800fc64: e003 b.n 800fc6e <HAL_TIM_IC_Start_IT+0x10a>
  36444. 800fc66: 687b ldr r3, [r7, #4]
  36445. 800fc68: 2202 movs r2, #2
  36446. 800fc6a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  36447. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  36448. 800fc6e: 683b ldr r3, [r7, #0]
  36449. 800fc70: 2b00 cmp r3, #0
  36450. 800fc72: d104 bne.n 800fc7e <HAL_TIM_IC_Start_IT+0x11a>
  36451. 800fc74: 687b ldr r3, [r7, #4]
  36452. 800fc76: 2202 movs r2, #2
  36453. 800fc78: f883 2044 strb.w r2, [r3, #68] @ 0x44
  36454. 800fc7c: e013 b.n 800fca6 <HAL_TIM_IC_Start_IT+0x142>
  36455. 800fc7e: 683b ldr r3, [r7, #0]
  36456. 800fc80: 2b04 cmp r3, #4
  36457. 800fc82: d104 bne.n 800fc8e <HAL_TIM_IC_Start_IT+0x12a>
  36458. 800fc84: 687b ldr r3, [r7, #4]
  36459. 800fc86: 2202 movs r2, #2
  36460. 800fc88: f883 2045 strb.w r2, [r3, #69] @ 0x45
  36461. 800fc8c: e00b b.n 800fca6 <HAL_TIM_IC_Start_IT+0x142>
  36462. 800fc8e: 683b ldr r3, [r7, #0]
  36463. 800fc90: 2b08 cmp r3, #8
  36464. 800fc92: d104 bne.n 800fc9e <HAL_TIM_IC_Start_IT+0x13a>
  36465. 800fc94: 687b ldr r3, [r7, #4]
  36466. 800fc96: 2202 movs r2, #2
  36467. 800fc98: f883 2046 strb.w r2, [r3, #70] @ 0x46
  36468. 800fc9c: e003 b.n 800fca6 <HAL_TIM_IC_Start_IT+0x142>
  36469. 800fc9e: 687b ldr r3, [r7, #4]
  36470. 800fca0: 2202 movs r2, #2
  36471. 800fca2: f883 2047 strb.w r2, [r3, #71] @ 0x47
  36472. switch (Channel)
  36473. 800fca6: 683b ldr r3, [r7, #0]
  36474. 800fca8: 2b0c cmp r3, #12
  36475. 800fcaa: d841 bhi.n 800fd30 <HAL_TIM_IC_Start_IT+0x1cc>
  36476. 800fcac: a201 add r2, pc, #4 @ (adr r2, 800fcb4 <HAL_TIM_IC_Start_IT+0x150>)
  36477. 800fcae: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36478. 800fcb2: bf00 nop
  36479. 800fcb4: 0800fce9 .word 0x0800fce9
  36480. 800fcb8: 0800fd31 .word 0x0800fd31
  36481. 800fcbc: 0800fd31 .word 0x0800fd31
  36482. 800fcc0: 0800fd31 .word 0x0800fd31
  36483. 800fcc4: 0800fcfb .word 0x0800fcfb
  36484. 800fcc8: 0800fd31 .word 0x0800fd31
  36485. 800fccc: 0800fd31 .word 0x0800fd31
  36486. 800fcd0: 0800fd31 .word 0x0800fd31
  36487. 800fcd4: 0800fd0d .word 0x0800fd0d
  36488. 800fcd8: 0800fd31 .word 0x0800fd31
  36489. 800fcdc: 0800fd31 .word 0x0800fd31
  36490. 800fce0: 0800fd31 .word 0x0800fd31
  36491. 800fce4: 0800fd1f .word 0x0800fd1f
  36492. {
  36493. case TIM_CHANNEL_1:
  36494. {
  36495. /* Enable the TIM Capture/Compare 1 interrupt */
  36496. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1);
  36497. 800fce8: 687b ldr r3, [r7, #4]
  36498. 800fcea: 681b ldr r3, [r3, #0]
  36499. 800fcec: 68da ldr r2, [r3, #12]
  36500. 800fcee: 687b ldr r3, [r7, #4]
  36501. 800fcf0: 681b ldr r3, [r3, #0]
  36502. 800fcf2: f042 0202 orr.w r2, r2, #2
  36503. 800fcf6: 60da str r2, [r3, #12]
  36504. break;
  36505. 800fcf8: e01d b.n 800fd36 <HAL_TIM_IC_Start_IT+0x1d2>
  36506. }
  36507. case TIM_CHANNEL_2:
  36508. {
  36509. /* Enable the TIM Capture/Compare 2 interrupt */
  36510. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC2);
  36511. 800fcfa: 687b ldr r3, [r7, #4]
  36512. 800fcfc: 681b ldr r3, [r3, #0]
  36513. 800fcfe: 68da ldr r2, [r3, #12]
  36514. 800fd00: 687b ldr r3, [r7, #4]
  36515. 800fd02: 681b ldr r3, [r3, #0]
  36516. 800fd04: f042 0204 orr.w r2, r2, #4
  36517. 800fd08: 60da str r2, [r3, #12]
  36518. break;
  36519. 800fd0a: e014 b.n 800fd36 <HAL_TIM_IC_Start_IT+0x1d2>
  36520. }
  36521. case TIM_CHANNEL_3:
  36522. {
  36523. /* Enable the TIM Capture/Compare 3 interrupt */
  36524. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC3);
  36525. 800fd0c: 687b ldr r3, [r7, #4]
  36526. 800fd0e: 681b ldr r3, [r3, #0]
  36527. 800fd10: 68da ldr r2, [r3, #12]
  36528. 800fd12: 687b ldr r3, [r7, #4]
  36529. 800fd14: 681b ldr r3, [r3, #0]
  36530. 800fd16: f042 0208 orr.w r2, r2, #8
  36531. 800fd1a: 60da str r2, [r3, #12]
  36532. break;
  36533. 800fd1c: e00b b.n 800fd36 <HAL_TIM_IC_Start_IT+0x1d2>
  36534. }
  36535. case TIM_CHANNEL_4:
  36536. {
  36537. /* Enable the TIM Capture/Compare 4 interrupt */
  36538. __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC4);
  36539. 800fd1e: 687b ldr r3, [r7, #4]
  36540. 800fd20: 681b ldr r3, [r3, #0]
  36541. 800fd22: 68da ldr r2, [r3, #12]
  36542. 800fd24: 687b ldr r3, [r7, #4]
  36543. 800fd26: 681b ldr r3, [r3, #0]
  36544. 800fd28: f042 0210 orr.w r2, r2, #16
  36545. 800fd2c: 60da str r2, [r3, #12]
  36546. break;
  36547. 800fd2e: e002 b.n 800fd36 <HAL_TIM_IC_Start_IT+0x1d2>
  36548. }
  36549. default:
  36550. status = HAL_ERROR;
  36551. 800fd30: 2301 movs r3, #1
  36552. 800fd32: 73fb strb r3, [r7, #15]
  36553. break;
  36554. 800fd34: bf00 nop
  36555. }
  36556. if (status == HAL_OK)
  36557. 800fd36: 7bfb ldrb r3, [r7, #15]
  36558. 800fd38: 2b00 cmp r3, #0
  36559. 800fd3a: d14e bne.n 800fdda <HAL_TIM_IC_Start_IT+0x276>
  36560. {
  36561. /* Enable the Input Capture channel */
  36562. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  36563. 800fd3c: 687b ldr r3, [r7, #4]
  36564. 800fd3e: 681b ldr r3, [r3, #0]
  36565. 800fd40: 2201 movs r2, #1
  36566. 800fd42: 6839 ldr r1, [r7, #0]
  36567. 800fd44: 4618 mov r0, r3
  36568. 800fd46: f001 f9ed bl 8011124 <TIM_CCxChannelCmd>
  36569. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  36570. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  36571. 800fd4a: 687b ldr r3, [r7, #4]
  36572. 800fd4c: 681b ldr r3, [r3, #0]
  36573. 800fd4e: 4a25 ldr r2, [pc, #148] @ (800fde4 <HAL_TIM_IC_Start_IT+0x280>)
  36574. 800fd50: 4293 cmp r3, r2
  36575. 800fd52: d022 beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36576. 800fd54: 687b ldr r3, [r7, #4]
  36577. 800fd56: 681b ldr r3, [r3, #0]
  36578. 800fd58: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36579. 800fd5c: d01d beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36580. 800fd5e: 687b ldr r3, [r7, #4]
  36581. 800fd60: 681b ldr r3, [r3, #0]
  36582. 800fd62: 4a21 ldr r2, [pc, #132] @ (800fde8 <HAL_TIM_IC_Start_IT+0x284>)
  36583. 800fd64: 4293 cmp r3, r2
  36584. 800fd66: d018 beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36585. 800fd68: 687b ldr r3, [r7, #4]
  36586. 800fd6a: 681b ldr r3, [r3, #0]
  36587. 800fd6c: 4a1f ldr r2, [pc, #124] @ (800fdec <HAL_TIM_IC_Start_IT+0x288>)
  36588. 800fd6e: 4293 cmp r3, r2
  36589. 800fd70: d013 beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36590. 800fd72: 687b ldr r3, [r7, #4]
  36591. 800fd74: 681b ldr r3, [r3, #0]
  36592. 800fd76: 4a1e ldr r2, [pc, #120] @ (800fdf0 <HAL_TIM_IC_Start_IT+0x28c>)
  36593. 800fd78: 4293 cmp r3, r2
  36594. 800fd7a: d00e beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36595. 800fd7c: 687b ldr r3, [r7, #4]
  36596. 800fd7e: 681b ldr r3, [r3, #0]
  36597. 800fd80: 4a1c ldr r2, [pc, #112] @ (800fdf4 <HAL_TIM_IC_Start_IT+0x290>)
  36598. 800fd82: 4293 cmp r3, r2
  36599. 800fd84: d009 beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36600. 800fd86: 687b ldr r3, [r7, #4]
  36601. 800fd88: 681b ldr r3, [r3, #0]
  36602. 800fd8a: 4a1b ldr r2, [pc, #108] @ (800fdf8 <HAL_TIM_IC_Start_IT+0x294>)
  36603. 800fd8c: 4293 cmp r3, r2
  36604. 800fd8e: d004 beq.n 800fd9a <HAL_TIM_IC_Start_IT+0x236>
  36605. 800fd90: 687b ldr r3, [r7, #4]
  36606. 800fd92: 681b ldr r3, [r3, #0]
  36607. 800fd94: 4a19 ldr r2, [pc, #100] @ (800fdfc <HAL_TIM_IC_Start_IT+0x298>)
  36608. 800fd96: 4293 cmp r3, r2
  36609. 800fd98: d115 bne.n 800fdc6 <HAL_TIM_IC_Start_IT+0x262>
  36610. {
  36611. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  36612. 800fd9a: 687b ldr r3, [r7, #4]
  36613. 800fd9c: 681b ldr r3, [r3, #0]
  36614. 800fd9e: 689a ldr r2, [r3, #8]
  36615. 800fda0: 4b17 ldr r3, [pc, #92] @ (800fe00 <HAL_TIM_IC_Start_IT+0x29c>)
  36616. 800fda2: 4013 ands r3, r2
  36617. 800fda4: 60bb str r3, [r7, #8]
  36618. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36619. 800fda6: 68bb ldr r3, [r7, #8]
  36620. 800fda8: 2b06 cmp r3, #6
  36621. 800fdaa: d015 beq.n 800fdd8 <HAL_TIM_IC_Start_IT+0x274>
  36622. 800fdac: 68bb ldr r3, [r7, #8]
  36623. 800fdae: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  36624. 800fdb2: d011 beq.n 800fdd8 <HAL_TIM_IC_Start_IT+0x274>
  36625. {
  36626. __HAL_TIM_ENABLE(htim);
  36627. 800fdb4: 687b ldr r3, [r7, #4]
  36628. 800fdb6: 681b ldr r3, [r3, #0]
  36629. 800fdb8: 681a ldr r2, [r3, #0]
  36630. 800fdba: 687b ldr r3, [r7, #4]
  36631. 800fdbc: 681b ldr r3, [r3, #0]
  36632. 800fdbe: f042 0201 orr.w r2, r2, #1
  36633. 800fdc2: 601a str r2, [r3, #0]
  36634. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36635. 800fdc4: e008 b.n 800fdd8 <HAL_TIM_IC_Start_IT+0x274>
  36636. }
  36637. }
  36638. else
  36639. {
  36640. __HAL_TIM_ENABLE(htim);
  36641. 800fdc6: 687b ldr r3, [r7, #4]
  36642. 800fdc8: 681b ldr r3, [r3, #0]
  36643. 800fdca: 681a ldr r2, [r3, #0]
  36644. 800fdcc: 687b ldr r3, [r7, #4]
  36645. 800fdce: 681b ldr r3, [r3, #0]
  36646. 800fdd0: f042 0201 orr.w r2, r2, #1
  36647. 800fdd4: 601a str r2, [r3, #0]
  36648. 800fdd6: e000 b.n 800fdda <HAL_TIM_IC_Start_IT+0x276>
  36649. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  36650. 800fdd8: bf00 nop
  36651. }
  36652. }
  36653. /* Return function status */
  36654. return status;
  36655. 800fdda: 7bfb ldrb r3, [r7, #15]
  36656. }
  36657. 800fddc: 4618 mov r0, r3
  36658. 800fdde: 3710 adds r7, #16
  36659. 800fde0: 46bd mov sp, r7
  36660. 800fde2: bd80 pop {r7, pc}
  36661. 800fde4: 40010000 .word 0x40010000
  36662. 800fde8: 40000400 .word 0x40000400
  36663. 800fdec: 40000800 .word 0x40000800
  36664. 800fdf0: 40000c00 .word 0x40000c00
  36665. 800fdf4: 40010400 .word 0x40010400
  36666. 800fdf8: 40001800 .word 0x40001800
  36667. 800fdfc: 40014000 .word 0x40014000
  36668. 800fe00: 00010007 .word 0x00010007
  36669. 0800fe04 <HAL_TIM_IRQHandler>:
  36670. * @brief This function handles TIM interrupts requests.
  36671. * @param htim TIM handle
  36672. * @retval None
  36673. */
  36674. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  36675. {
  36676. 800fe04: b580 push {r7, lr}
  36677. 800fe06: b084 sub sp, #16
  36678. 800fe08: af00 add r7, sp, #0
  36679. 800fe0a: 6078 str r0, [r7, #4]
  36680. uint32_t itsource = htim->Instance->DIER;
  36681. 800fe0c: 687b ldr r3, [r7, #4]
  36682. 800fe0e: 681b ldr r3, [r3, #0]
  36683. 800fe10: 68db ldr r3, [r3, #12]
  36684. 800fe12: 60fb str r3, [r7, #12]
  36685. uint32_t itflag = htim->Instance->SR;
  36686. 800fe14: 687b ldr r3, [r7, #4]
  36687. 800fe16: 681b ldr r3, [r3, #0]
  36688. 800fe18: 691b ldr r3, [r3, #16]
  36689. 800fe1a: 60bb str r3, [r7, #8]
  36690. /* Capture compare 1 event */
  36691. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  36692. 800fe1c: 68bb ldr r3, [r7, #8]
  36693. 800fe1e: f003 0302 and.w r3, r3, #2
  36694. 800fe22: 2b00 cmp r3, #0
  36695. 800fe24: d020 beq.n 800fe68 <HAL_TIM_IRQHandler+0x64>
  36696. {
  36697. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  36698. 800fe26: 68fb ldr r3, [r7, #12]
  36699. 800fe28: f003 0302 and.w r3, r3, #2
  36700. 800fe2c: 2b00 cmp r3, #0
  36701. 800fe2e: d01b beq.n 800fe68 <HAL_TIM_IRQHandler+0x64>
  36702. {
  36703. {
  36704. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  36705. 800fe30: 687b ldr r3, [r7, #4]
  36706. 800fe32: 681b ldr r3, [r3, #0]
  36707. 800fe34: f06f 0202 mvn.w r2, #2
  36708. 800fe38: 611a str r2, [r3, #16]
  36709. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  36710. 800fe3a: 687b ldr r3, [r7, #4]
  36711. 800fe3c: 2201 movs r2, #1
  36712. 800fe3e: 771a strb r2, [r3, #28]
  36713. /* Input capture event */
  36714. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  36715. 800fe40: 687b ldr r3, [r7, #4]
  36716. 800fe42: 681b ldr r3, [r3, #0]
  36717. 800fe44: 699b ldr r3, [r3, #24]
  36718. 800fe46: f003 0303 and.w r3, r3, #3
  36719. 800fe4a: 2b00 cmp r3, #0
  36720. 800fe4c: d003 beq.n 800fe56 <HAL_TIM_IRQHandler+0x52>
  36721. {
  36722. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36723. htim->IC_CaptureCallback(htim);
  36724. #else
  36725. HAL_TIM_IC_CaptureCallback(htim);
  36726. 800fe4e: 6878 ldr r0, [r7, #4]
  36727. 800fe50: f7f1 fdac bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36728. 800fe54: e005 b.n 800fe62 <HAL_TIM_IRQHandler+0x5e>
  36729. {
  36730. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36731. htim->OC_DelayElapsedCallback(htim);
  36732. htim->PWM_PulseFinishedCallback(htim);
  36733. #else
  36734. HAL_TIM_OC_DelayElapsedCallback(htim);
  36735. 800fe56: 6878 ldr r0, [r7, #4]
  36736. 800fe58: f000 fbc8 bl 80105ec <HAL_TIM_OC_DelayElapsedCallback>
  36737. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36738. 800fe5c: 6878 ldr r0, [r7, #4]
  36739. 800fe5e: f000 fbcf bl 8010600 <HAL_TIM_PWM_PulseFinishedCallback>
  36740. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36741. }
  36742. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36743. 800fe62: 687b ldr r3, [r7, #4]
  36744. 800fe64: 2200 movs r2, #0
  36745. 800fe66: 771a strb r2, [r3, #28]
  36746. }
  36747. }
  36748. }
  36749. /* Capture compare 2 event */
  36750. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  36751. 800fe68: 68bb ldr r3, [r7, #8]
  36752. 800fe6a: f003 0304 and.w r3, r3, #4
  36753. 800fe6e: 2b00 cmp r3, #0
  36754. 800fe70: d020 beq.n 800feb4 <HAL_TIM_IRQHandler+0xb0>
  36755. {
  36756. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  36757. 800fe72: 68fb ldr r3, [r7, #12]
  36758. 800fe74: f003 0304 and.w r3, r3, #4
  36759. 800fe78: 2b00 cmp r3, #0
  36760. 800fe7a: d01b beq.n 800feb4 <HAL_TIM_IRQHandler+0xb0>
  36761. {
  36762. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  36763. 800fe7c: 687b ldr r3, [r7, #4]
  36764. 800fe7e: 681b ldr r3, [r3, #0]
  36765. 800fe80: f06f 0204 mvn.w r2, #4
  36766. 800fe84: 611a str r2, [r3, #16]
  36767. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  36768. 800fe86: 687b ldr r3, [r7, #4]
  36769. 800fe88: 2202 movs r2, #2
  36770. 800fe8a: 771a strb r2, [r3, #28]
  36771. /* Input capture event */
  36772. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  36773. 800fe8c: 687b ldr r3, [r7, #4]
  36774. 800fe8e: 681b ldr r3, [r3, #0]
  36775. 800fe90: 699b ldr r3, [r3, #24]
  36776. 800fe92: f403 7340 and.w r3, r3, #768 @ 0x300
  36777. 800fe96: 2b00 cmp r3, #0
  36778. 800fe98: d003 beq.n 800fea2 <HAL_TIM_IRQHandler+0x9e>
  36779. {
  36780. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36781. htim->IC_CaptureCallback(htim);
  36782. #else
  36783. HAL_TIM_IC_CaptureCallback(htim);
  36784. 800fe9a: 6878 ldr r0, [r7, #4]
  36785. 800fe9c: f7f1 fd86 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36786. 800fea0: e005 b.n 800feae <HAL_TIM_IRQHandler+0xaa>
  36787. {
  36788. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36789. htim->OC_DelayElapsedCallback(htim);
  36790. htim->PWM_PulseFinishedCallback(htim);
  36791. #else
  36792. HAL_TIM_OC_DelayElapsedCallback(htim);
  36793. 800fea2: 6878 ldr r0, [r7, #4]
  36794. 800fea4: f000 fba2 bl 80105ec <HAL_TIM_OC_DelayElapsedCallback>
  36795. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36796. 800fea8: 6878 ldr r0, [r7, #4]
  36797. 800feaa: f000 fba9 bl 8010600 <HAL_TIM_PWM_PulseFinishedCallback>
  36798. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36799. }
  36800. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36801. 800feae: 687b ldr r3, [r7, #4]
  36802. 800feb0: 2200 movs r2, #0
  36803. 800feb2: 771a strb r2, [r3, #28]
  36804. }
  36805. }
  36806. /* Capture compare 3 event */
  36807. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  36808. 800feb4: 68bb ldr r3, [r7, #8]
  36809. 800feb6: f003 0308 and.w r3, r3, #8
  36810. 800feba: 2b00 cmp r3, #0
  36811. 800febc: d020 beq.n 800ff00 <HAL_TIM_IRQHandler+0xfc>
  36812. {
  36813. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  36814. 800febe: 68fb ldr r3, [r7, #12]
  36815. 800fec0: f003 0308 and.w r3, r3, #8
  36816. 800fec4: 2b00 cmp r3, #0
  36817. 800fec6: d01b beq.n 800ff00 <HAL_TIM_IRQHandler+0xfc>
  36818. {
  36819. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  36820. 800fec8: 687b ldr r3, [r7, #4]
  36821. 800feca: 681b ldr r3, [r3, #0]
  36822. 800fecc: f06f 0208 mvn.w r2, #8
  36823. 800fed0: 611a str r2, [r3, #16]
  36824. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  36825. 800fed2: 687b ldr r3, [r7, #4]
  36826. 800fed4: 2204 movs r2, #4
  36827. 800fed6: 771a strb r2, [r3, #28]
  36828. /* Input capture event */
  36829. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  36830. 800fed8: 687b ldr r3, [r7, #4]
  36831. 800feda: 681b ldr r3, [r3, #0]
  36832. 800fedc: 69db ldr r3, [r3, #28]
  36833. 800fede: f003 0303 and.w r3, r3, #3
  36834. 800fee2: 2b00 cmp r3, #0
  36835. 800fee4: d003 beq.n 800feee <HAL_TIM_IRQHandler+0xea>
  36836. {
  36837. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36838. htim->IC_CaptureCallback(htim);
  36839. #else
  36840. HAL_TIM_IC_CaptureCallback(htim);
  36841. 800fee6: 6878 ldr r0, [r7, #4]
  36842. 800fee8: f7f1 fd60 bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36843. 800feec: e005 b.n 800fefa <HAL_TIM_IRQHandler+0xf6>
  36844. {
  36845. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36846. htim->OC_DelayElapsedCallback(htim);
  36847. htim->PWM_PulseFinishedCallback(htim);
  36848. #else
  36849. HAL_TIM_OC_DelayElapsedCallback(htim);
  36850. 800feee: 6878 ldr r0, [r7, #4]
  36851. 800fef0: f000 fb7c bl 80105ec <HAL_TIM_OC_DelayElapsedCallback>
  36852. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36853. 800fef4: 6878 ldr r0, [r7, #4]
  36854. 800fef6: f000 fb83 bl 8010600 <HAL_TIM_PWM_PulseFinishedCallback>
  36855. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36856. }
  36857. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36858. 800fefa: 687b ldr r3, [r7, #4]
  36859. 800fefc: 2200 movs r2, #0
  36860. 800fefe: 771a strb r2, [r3, #28]
  36861. }
  36862. }
  36863. /* Capture compare 4 event */
  36864. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  36865. 800ff00: 68bb ldr r3, [r7, #8]
  36866. 800ff02: f003 0310 and.w r3, r3, #16
  36867. 800ff06: 2b00 cmp r3, #0
  36868. 800ff08: d020 beq.n 800ff4c <HAL_TIM_IRQHandler+0x148>
  36869. {
  36870. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  36871. 800ff0a: 68fb ldr r3, [r7, #12]
  36872. 800ff0c: f003 0310 and.w r3, r3, #16
  36873. 800ff10: 2b00 cmp r3, #0
  36874. 800ff12: d01b beq.n 800ff4c <HAL_TIM_IRQHandler+0x148>
  36875. {
  36876. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  36877. 800ff14: 687b ldr r3, [r7, #4]
  36878. 800ff16: 681b ldr r3, [r3, #0]
  36879. 800ff18: f06f 0210 mvn.w r2, #16
  36880. 800ff1c: 611a str r2, [r3, #16]
  36881. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  36882. 800ff1e: 687b ldr r3, [r7, #4]
  36883. 800ff20: 2208 movs r2, #8
  36884. 800ff22: 771a strb r2, [r3, #28]
  36885. /* Input capture event */
  36886. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  36887. 800ff24: 687b ldr r3, [r7, #4]
  36888. 800ff26: 681b ldr r3, [r3, #0]
  36889. 800ff28: 69db ldr r3, [r3, #28]
  36890. 800ff2a: f403 7340 and.w r3, r3, #768 @ 0x300
  36891. 800ff2e: 2b00 cmp r3, #0
  36892. 800ff30: d003 beq.n 800ff3a <HAL_TIM_IRQHandler+0x136>
  36893. {
  36894. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36895. htim->IC_CaptureCallback(htim);
  36896. #else
  36897. HAL_TIM_IC_CaptureCallback(htim);
  36898. 800ff32: 6878 ldr r0, [r7, #4]
  36899. 800ff34: f7f1 fd3a bl 80019ac <HAL_TIM_IC_CaptureCallback>
  36900. 800ff38: e005 b.n 800ff46 <HAL_TIM_IRQHandler+0x142>
  36901. {
  36902. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36903. htim->OC_DelayElapsedCallback(htim);
  36904. htim->PWM_PulseFinishedCallback(htim);
  36905. #else
  36906. HAL_TIM_OC_DelayElapsedCallback(htim);
  36907. 800ff3a: 6878 ldr r0, [r7, #4]
  36908. 800ff3c: f000 fb56 bl 80105ec <HAL_TIM_OC_DelayElapsedCallback>
  36909. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36910. 800ff40: 6878 ldr r0, [r7, #4]
  36911. 800ff42: f000 fb5d bl 8010600 <HAL_TIM_PWM_PulseFinishedCallback>
  36912. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36913. }
  36914. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36915. 800ff46: 687b ldr r3, [r7, #4]
  36916. 800ff48: 2200 movs r2, #0
  36917. 800ff4a: 771a strb r2, [r3, #28]
  36918. }
  36919. }
  36920. /* TIM Update event */
  36921. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  36922. 800ff4c: 68bb ldr r3, [r7, #8]
  36923. 800ff4e: f003 0301 and.w r3, r3, #1
  36924. 800ff52: 2b00 cmp r3, #0
  36925. 800ff54: d00c beq.n 800ff70 <HAL_TIM_IRQHandler+0x16c>
  36926. {
  36927. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  36928. 800ff56: 68fb ldr r3, [r7, #12]
  36929. 800ff58: f003 0301 and.w r3, r3, #1
  36930. 800ff5c: 2b00 cmp r3, #0
  36931. 800ff5e: d007 beq.n 800ff70 <HAL_TIM_IRQHandler+0x16c>
  36932. {
  36933. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  36934. 800ff60: 687b ldr r3, [r7, #4]
  36935. 800ff62: 681b ldr r3, [r3, #0]
  36936. 800ff64: f06f 0201 mvn.w r2, #1
  36937. 800ff68: 611a str r2, [r3, #16]
  36938. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36939. htim->PeriodElapsedCallback(htim);
  36940. #else
  36941. HAL_TIM_PeriodElapsedCallback(htim);
  36942. 800ff6a: 6878 ldr r0, [r7, #4]
  36943. 800ff6c: f7f1 ff7a bl 8001e64 <HAL_TIM_PeriodElapsedCallback>
  36944. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36945. }
  36946. }
  36947. /* TIM Break input event */
  36948. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36949. 800ff70: 68bb ldr r3, [r7, #8]
  36950. 800ff72: f003 0380 and.w r3, r3, #128 @ 0x80
  36951. 800ff76: 2b00 cmp r3, #0
  36952. 800ff78: d104 bne.n 800ff84 <HAL_TIM_IRQHandler+0x180>
  36953. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  36954. 800ff7a: 68bb ldr r3, [r7, #8]
  36955. 800ff7c: f403 5300 and.w r3, r3, #8192 @ 0x2000
  36956. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36957. 800ff80: 2b00 cmp r3, #0
  36958. 800ff82: d00c beq.n 800ff9e <HAL_TIM_IRQHandler+0x19a>
  36959. {
  36960. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36961. 800ff84: 68fb ldr r3, [r7, #12]
  36962. 800ff86: f003 0380 and.w r3, r3, #128 @ 0x80
  36963. 800ff8a: 2b00 cmp r3, #0
  36964. 800ff8c: d007 beq.n 800ff9e <HAL_TIM_IRQHandler+0x19a>
  36965. {
  36966. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  36967. 800ff8e: 687b ldr r3, [r7, #4]
  36968. 800ff90: 681b ldr r3, [r3, #0]
  36969. 800ff92: f46f 5202 mvn.w r2, #8320 @ 0x2080
  36970. 800ff96: 611a str r2, [r3, #16]
  36971. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36972. htim->BreakCallback(htim);
  36973. #else
  36974. HAL_TIMEx_BreakCallback(htim);
  36975. 800ff98: 6878 ldr r0, [r7, #4]
  36976. 800ff9a: f001 f9ff bl 801139c <HAL_TIMEx_BreakCallback>
  36977. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36978. }
  36979. }
  36980. /* TIM Break2 input event */
  36981. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  36982. 800ff9e: 68bb ldr r3, [r7, #8]
  36983. 800ffa0: f403 7380 and.w r3, r3, #256 @ 0x100
  36984. 800ffa4: 2b00 cmp r3, #0
  36985. 800ffa6: d00c beq.n 800ffc2 <HAL_TIM_IRQHandler+0x1be>
  36986. {
  36987. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36988. 800ffa8: 68fb ldr r3, [r7, #12]
  36989. 800ffaa: f003 0380 and.w r3, r3, #128 @ 0x80
  36990. 800ffae: 2b00 cmp r3, #0
  36991. 800ffb0: d007 beq.n 800ffc2 <HAL_TIM_IRQHandler+0x1be>
  36992. {
  36993. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  36994. 800ffb2: 687b ldr r3, [r7, #4]
  36995. 800ffb4: 681b ldr r3, [r3, #0]
  36996. 800ffb6: f46f 7280 mvn.w r2, #256 @ 0x100
  36997. 800ffba: 611a str r2, [r3, #16]
  36998. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36999. htim->Break2Callback(htim);
  37000. #else
  37001. HAL_TIMEx_Break2Callback(htim);
  37002. 800ffbc: 6878 ldr r0, [r7, #4]
  37003. 800ffbe: f001 f9f7 bl 80113b0 <HAL_TIMEx_Break2Callback>
  37004. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37005. }
  37006. }
  37007. /* TIM Trigger detection event */
  37008. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  37009. 800ffc2: 68bb ldr r3, [r7, #8]
  37010. 800ffc4: f003 0340 and.w r3, r3, #64 @ 0x40
  37011. 800ffc8: 2b00 cmp r3, #0
  37012. 800ffca: d00c beq.n 800ffe6 <HAL_TIM_IRQHandler+0x1e2>
  37013. {
  37014. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  37015. 800ffcc: 68fb ldr r3, [r7, #12]
  37016. 800ffce: f003 0340 and.w r3, r3, #64 @ 0x40
  37017. 800ffd2: 2b00 cmp r3, #0
  37018. 800ffd4: d007 beq.n 800ffe6 <HAL_TIM_IRQHandler+0x1e2>
  37019. {
  37020. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  37021. 800ffd6: 687b ldr r3, [r7, #4]
  37022. 800ffd8: 681b ldr r3, [r3, #0]
  37023. 800ffda: f06f 0240 mvn.w r2, #64 @ 0x40
  37024. 800ffde: 611a str r2, [r3, #16]
  37025. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37026. htim->TriggerCallback(htim);
  37027. #else
  37028. HAL_TIM_TriggerCallback(htim);
  37029. 800ffe0: 6878 ldr r0, [r7, #4]
  37030. 800ffe2: f000 fb17 bl 8010614 <HAL_TIM_TriggerCallback>
  37031. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37032. }
  37033. }
  37034. /* TIM commutation event */
  37035. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  37036. 800ffe6: 68bb ldr r3, [r7, #8]
  37037. 800ffe8: f003 0320 and.w r3, r3, #32
  37038. 800ffec: 2b00 cmp r3, #0
  37039. 800ffee: d00c beq.n 801000a <HAL_TIM_IRQHandler+0x206>
  37040. {
  37041. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  37042. 800fff0: 68fb ldr r3, [r7, #12]
  37043. 800fff2: f003 0320 and.w r3, r3, #32
  37044. 800fff6: 2b00 cmp r3, #0
  37045. 800fff8: d007 beq.n 801000a <HAL_TIM_IRQHandler+0x206>
  37046. {
  37047. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  37048. 800fffa: 687b ldr r3, [r7, #4]
  37049. 800fffc: 681b ldr r3, [r3, #0]
  37050. 800fffe: f06f 0220 mvn.w r2, #32
  37051. 8010002: 611a str r2, [r3, #16]
  37052. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  37053. htim->CommutationCallback(htim);
  37054. #else
  37055. HAL_TIMEx_CommutCallback(htim);
  37056. 8010004: 6878 ldr r0, [r7, #4]
  37057. 8010006: f001 f9bf bl 8011388 <HAL_TIMEx_CommutCallback>
  37058. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  37059. }
  37060. }
  37061. }
  37062. 801000a: bf00 nop
  37063. 801000c: 3710 adds r7, #16
  37064. 801000e: 46bd mov sp, r7
  37065. 8010010: bd80 pop {r7, pc}
  37066. 08010012 <HAL_TIM_IC_ConfigChannel>:
  37067. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37068. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37069. * @retval HAL status
  37070. */
  37071. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  37072. {
  37073. 8010012: b580 push {r7, lr}
  37074. 8010014: b086 sub sp, #24
  37075. 8010016: af00 add r7, sp, #0
  37076. 8010018: 60f8 str r0, [r7, #12]
  37077. 801001a: 60b9 str r1, [r7, #8]
  37078. 801001c: 607a str r2, [r7, #4]
  37079. HAL_StatusTypeDef status = HAL_OK;
  37080. 801001e: 2300 movs r3, #0
  37081. 8010020: 75fb strb r3, [r7, #23]
  37082. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  37083. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  37084. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  37085. /* Process Locked */
  37086. __HAL_LOCK(htim);
  37087. 8010022: 68fb ldr r3, [r7, #12]
  37088. 8010024: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37089. 8010028: 2b01 cmp r3, #1
  37090. 801002a: d101 bne.n 8010030 <HAL_TIM_IC_ConfigChannel+0x1e>
  37091. 801002c: 2302 movs r3, #2
  37092. 801002e: e088 b.n 8010142 <HAL_TIM_IC_ConfigChannel+0x130>
  37093. 8010030: 68fb ldr r3, [r7, #12]
  37094. 8010032: 2201 movs r2, #1
  37095. 8010034: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37096. if (Channel == TIM_CHANNEL_1)
  37097. 8010038: 687b ldr r3, [r7, #4]
  37098. 801003a: 2b00 cmp r3, #0
  37099. 801003c: d11b bne.n 8010076 <HAL_TIM_IC_ConfigChannel+0x64>
  37100. {
  37101. /* TI1 Configuration */
  37102. TIM_TI1_SetConfig(htim->Instance,
  37103. 801003e: 68fb ldr r3, [r7, #12]
  37104. 8010040: 6818 ldr r0, [r3, #0]
  37105. sConfig->ICPolarity,
  37106. 8010042: 68bb ldr r3, [r7, #8]
  37107. 8010044: 6819 ldr r1, [r3, #0]
  37108. sConfig->ICSelection,
  37109. 8010046: 68bb ldr r3, [r7, #8]
  37110. 8010048: 685a ldr r2, [r3, #4]
  37111. sConfig->ICFilter);
  37112. 801004a: 68bb ldr r3, [r7, #8]
  37113. 801004c: 68db ldr r3, [r3, #12]
  37114. TIM_TI1_SetConfig(htim->Instance,
  37115. 801004e: f000 fea1 bl 8010d94 <TIM_TI1_SetConfig>
  37116. /* Reset the IC1PSC Bits */
  37117. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  37118. 8010052: 68fb ldr r3, [r7, #12]
  37119. 8010054: 681b ldr r3, [r3, #0]
  37120. 8010056: 699a ldr r2, [r3, #24]
  37121. 8010058: 68fb ldr r3, [r7, #12]
  37122. 801005a: 681b ldr r3, [r3, #0]
  37123. 801005c: f022 020c bic.w r2, r2, #12
  37124. 8010060: 619a str r2, [r3, #24]
  37125. /* Set the IC1PSC value */
  37126. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  37127. 8010062: 68fb ldr r3, [r7, #12]
  37128. 8010064: 681b ldr r3, [r3, #0]
  37129. 8010066: 6999 ldr r1, [r3, #24]
  37130. 8010068: 68bb ldr r3, [r7, #8]
  37131. 801006a: 689a ldr r2, [r3, #8]
  37132. 801006c: 68fb ldr r3, [r7, #12]
  37133. 801006e: 681b ldr r3, [r3, #0]
  37134. 8010070: 430a orrs r2, r1
  37135. 8010072: 619a str r2, [r3, #24]
  37136. 8010074: e060 b.n 8010138 <HAL_TIM_IC_ConfigChannel+0x126>
  37137. }
  37138. else if (Channel == TIM_CHANNEL_2)
  37139. 8010076: 687b ldr r3, [r7, #4]
  37140. 8010078: 2b04 cmp r3, #4
  37141. 801007a: d11c bne.n 80100b6 <HAL_TIM_IC_ConfigChannel+0xa4>
  37142. {
  37143. /* TI2 Configuration */
  37144. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37145. TIM_TI2_SetConfig(htim->Instance,
  37146. 801007c: 68fb ldr r3, [r7, #12]
  37147. 801007e: 6818 ldr r0, [r3, #0]
  37148. sConfig->ICPolarity,
  37149. 8010080: 68bb ldr r3, [r7, #8]
  37150. 8010082: 6819 ldr r1, [r3, #0]
  37151. sConfig->ICSelection,
  37152. 8010084: 68bb ldr r3, [r7, #8]
  37153. 8010086: 685a ldr r2, [r3, #4]
  37154. sConfig->ICFilter);
  37155. 8010088: 68bb ldr r3, [r7, #8]
  37156. 801008a: 68db ldr r3, [r3, #12]
  37157. TIM_TI2_SetConfig(htim->Instance,
  37158. 801008c: f000 ff25 bl 8010eda <TIM_TI2_SetConfig>
  37159. /* Reset the IC2PSC Bits */
  37160. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  37161. 8010090: 68fb ldr r3, [r7, #12]
  37162. 8010092: 681b ldr r3, [r3, #0]
  37163. 8010094: 699a ldr r2, [r3, #24]
  37164. 8010096: 68fb ldr r3, [r7, #12]
  37165. 8010098: 681b ldr r3, [r3, #0]
  37166. 801009a: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37167. 801009e: 619a str r2, [r3, #24]
  37168. /* Set the IC2PSC value */
  37169. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  37170. 80100a0: 68fb ldr r3, [r7, #12]
  37171. 80100a2: 681b ldr r3, [r3, #0]
  37172. 80100a4: 6999 ldr r1, [r3, #24]
  37173. 80100a6: 68bb ldr r3, [r7, #8]
  37174. 80100a8: 689b ldr r3, [r3, #8]
  37175. 80100aa: 021a lsls r2, r3, #8
  37176. 80100ac: 68fb ldr r3, [r7, #12]
  37177. 80100ae: 681b ldr r3, [r3, #0]
  37178. 80100b0: 430a orrs r2, r1
  37179. 80100b2: 619a str r2, [r3, #24]
  37180. 80100b4: e040 b.n 8010138 <HAL_TIM_IC_ConfigChannel+0x126>
  37181. }
  37182. else if (Channel == TIM_CHANNEL_3)
  37183. 80100b6: 687b ldr r3, [r7, #4]
  37184. 80100b8: 2b08 cmp r3, #8
  37185. 80100ba: d11b bne.n 80100f4 <HAL_TIM_IC_ConfigChannel+0xe2>
  37186. {
  37187. /* TI3 Configuration */
  37188. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37189. TIM_TI3_SetConfig(htim->Instance,
  37190. 80100bc: 68fb ldr r3, [r7, #12]
  37191. 80100be: 6818 ldr r0, [r3, #0]
  37192. sConfig->ICPolarity,
  37193. 80100c0: 68bb ldr r3, [r7, #8]
  37194. 80100c2: 6819 ldr r1, [r3, #0]
  37195. sConfig->ICSelection,
  37196. 80100c4: 68bb ldr r3, [r7, #8]
  37197. 80100c6: 685a ldr r2, [r3, #4]
  37198. sConfig->ICFilter);
  37199. 80100c8: 68bb ldr r3, [r7, #8]
  37200. 80100ca: 68db ldr r3, [r3, #12]
  37201. TIM_TI3_SetConfig(htim->Instance,
  37202. 80100cc: f000 ff72 bl 8010fb4 <TIM_TI3_SetConfig>
  37203. /* Reset the IC3PSC Bits */
  37204. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  37205. 80100d0: 68fb ldr r3, [r7, #12]
  37206. 80100d2: 681b ldr r3, [r3, #0]
  37207. 80100d4: 69da ldr r2, [r3, #28]
  37208. 80100d6: 68fb ldr r3, [r7, #12]
  37209. 80100d8: 681b ldr r3, [r3, #0]
  37210. 80100da: f022 020c bic.w r2, r2, #12
  37211. 80100de: 61da str r2, [r3, #28]
  37212. /* Set the IC3PSC value */
  37213. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  37214. 80100e0: 68fb ldr r3, [r7, #12]
  37215. 80100e2: 681b ldr r3, [r3, #0]
  37216. 80100e4: 69d9 ldr r1, [r3, #28]
  37217. 80100e6: 68bb ldr r3, [r7, #8]
  37218. 80100e8: 689a ldr r2, [r3, #8]
  37219. 80100ea: 68fb ldr r3, [r7, #12]
  37220. 80100ec: 681b ldr r3, [r3, #0]
  37221. 80100ee: 430a orrs r2, r1
  37222. 80100f0: 61da str r2, [r3, #28]
  37223. 80100f2: e021 b.n 8010138 <HAL_TIM_IC_ConfigChannel+0x126>
  37224. }
  37225. else if (Channel == TIM_CHANNEL_4)
  37226. 80100f4: 687b ldr r3, [r7, #4]
  37227. 80100f6: 2b0c cmp r3, #12
  37228. 80100f8: d11c bne.n 8010134 <HAL_TIM_IC_ConfigChannel+0x122>
  37229. {
  37230. /* TI4 Configuration */
  37231. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37232. TIM_TI4_SetConfig(htim->Instance,
  37233. 80100fa: 68fb ldr r3, [r7, #12]
  37234. 80100fc: 6818 ldr r0, [r3, #0]
  37235. sConfig->ICPolarity,
  37236. 80100fe: 68bb ldr r3, [r7, #8]
  37237. 8010100: 6819 ldr r1, [r3, #0]
  37238. sConfig->ICSelection,
  37239. 8010102: 68bb ldr r3, [r7, #8]
  37240. 8010104: 685a ldr r2, [r3, #4]
  37241. sConfig->ICFilter);
  37242. 8010106: 68bb ldr r3, [r7, #8]
  37243. 8010108: 68db ldr r3, [r3, #12]
  37244. TIM_TI4_SetConfig(htim->Instance,
  37245. 801010a: f000 ff8f bl 801102c <TIM_TI4_SetConfig>
  37246. /* Reset the IC4PSC Bits */
  37247. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  37248. 801010e: 68fb ldr r3, [r7, #12]
  37249. 8010110: 681b ldr r3, [r3, #0]
  37250. 8010112: 69da ldr r2, [r3, #28]
  37251. 8010114: 68fb ldr r3, [r7, #12]
  37252. 8010116: 681b ldr r3, [r3, #0]
  37253. 8010118: f422 6240 bic.w r2, r2, #3072 @ 0xc00
  37254. 801011c: 61da str r2, [r3, #28]
  37255. /* Set the IC4PSC value */
  37256. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  37257. 801011e: 68fb ldr r3, [r7, #12]
  37258. 8010120: 681b ldr r3, [r3, #0]
  37259. 8010122: 69d9 ldr r1, [r3, #28]
  37260. 8010124: 68bb ldr r3, [r7, #8]
  37261. 8010126: 689b ldr r3, [r3, #8]
  37262. 8010128: 021a lsls r2, r3, #8
  37263. 801012a: 68fb ldr r3, [r7, #12]
  37264. 801012c: 681b ldr r3, [r3, #0]
  37265. 801012e: 430a orrs r2, r1
  37266. 8010130: 61da str r2, [r3, #28]
  37267. 8010132: e001 b.n 8010138 <HAL_TIM_IC_ConfigChannel+0x126>
  37268. }
  37269. else
  37270. {
  37271. status = HAL_ERROR;
  37272. 8010134: 2301 movs r3, #1
  37273. 8010136: 75fb strb r3, [r7, #23]
  37274. }
  37275. __HAL_UNLOCK(htim);
  37276. 8010138: 68fb ldr r3, [r7, #12]
  37277. 801013a: 2200 movs r2, #0
  37278. 801013c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37279. return status;
  37280. 8010140: 7dfb ldrb r3, [r7, #23]
  37281. }
  37282. 8010142: 4618 mov r0, r3
  37283. 8010144: 3718 adds r7, #24
  37284. 8010146: 46bd mov sp, r7
  37285. 8010148: bd80 pop {r7, pc}
  37286. ...
  37287. 0801014c <HAL_TIM_PWM_ConfigChannel>:
  37288. * @retval HAL status
  37289. */
  37290. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  37291. const TIM_OC_InitTypeDef *sConfig,
  37292. uint32_t Channel)
  37293. {
  37294. 801014c: b580 push {r7, lr}
  37295. 801014e: b086 sub sp, #24
  37296. 8010150: af00 add r7, sp, #0
  37297. 8010152: 60f8 str r0, [r7, #12]
  37298. 8010154: 60b9 str r1, [r7, #8]
  37299. 8010156: 607a str r2, [r7, #4]
  37300. HAL_StatusTypeDef status = HAL_OK;
  37301. 8010158: 2300 movs r3, #0
  37302. 801015a: 75fb strb r3, [r7, #23]
  37303. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  37304. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  37305. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  37306. /* Process Locked */
  37307. __HAL_LOCK(htim);
  37308. 801015c: 68fb ldr r3, [r7, #12]
  37309. 801015e: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37310. 8010162: 2b01 cmp r3, #1
  37311. 8010164: d101 bne.n 801016a <HAL_TIM_PWM_ConfigChannel+0x1e>
  37312. 8010166: 2302 movs r3, #2
  37313. 8010168: e0ff b.n 801036a <HAL_TIM_PWM_ConfigChannel+0x21e>
  37314. 801016a: 68fb ldr r3, [r7, #12]
  37315. 801016c: 2201 movs r2, #1
  37316. 801016e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37317. switch (Channel)
  37318. 8010172: 687b ldr r3, [r7, #4]
  37319. 8010174: 2b14 cmp r3, #20
  37320. 8010176: f200 80f0 bhi.w 801035a <HAL_TIM_PWM_ConfigChannel+0x20e>
  37321. 801017a: a201 add r2, pc, #4 @ (adr r2, 8010180 <HAL_TIM_PWM_ConfigChannel+0x34>)
  37322. 801017c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37323. 8010180: 080101d5 .word 0x080101d5
  37324. 8010184: 0801035b .word 0x0801035b
  37325. 8010188: 0801035b .word 0x0801035b
  37326. 801018c: 0801035b .word 0x0801035b
  37327. 8010190: 08010215 .word 0x08010215
  37328. 8010194: 0801035b .word 0x0801035b
  37329. 8010198: 0801035b .word 0x0801035b
  37330. 801019c: 0801035b .word 0x0801035b
  37331. 80101a0: 08010257 .word 0x08010257
  37332. 80101a4: 0801035b .word 0x0801035b
  37333. 80101a8: 0801035b .word 0x0801035b
  37334. 80101ac: 0801035b .word 0x0801035b
  37335. 80101b0: 08010297 .word 0x08010297
  37336. 80101b4: 0801035b .word 0x0801035b
  37337. 80101b8: 0801035b .word 0x0801035b
  37338. 80101bc: 0801035b .word 0x0801035b
  37339. 80101c0: 080102d9 .word 0x080102d9
  37340. 80101c4: 0801035b .word 0x0801035b
  37341. 80101c8: 0801035b .word 0x0801035b
  37342. 80101cc: 0801035b .word 0x0801035b
  37343. 80101d0: 08010319 .word 0x08010319
  37344. {
  37345. /* Check the parameters */
  37346. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37347. /* Configure the Channel 1 in PWM mode */
  37348. TIM_OC1_SetConfig(htim->Instance, sConfig);
  37349. 80101d4: 68fb ldr r3, [r7, #12]
  37350. 80101d6: 681b ldr r3, [r3, #0]
  37351. 80101d8: 68b9 ldr r1, [r7, #8]
  37352. 80101da: 4618 mov r0, r3
  37353. 80101dc: f000 fb04 bl 80107e8 <TIM_OC1_SetConfig>
  37354. /* Set the Preload enable bit for channel1 */
  37355. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  37356. 80101e0: 68fb ldr r3, [r7, #12]
  37357. 80101e2: 681b ldr r3, [r3, #0]
  37358. 80101e4: 699a ldr r2, [r3, #24]
  37359. 80101e6: 68fb ldr r3, [r7, #12]
  37360. 80101e8: 681b ldr r3, [r3, #0]
  37361. 80101ea: f042 0208 orr.w r2, r2, #8
  37362. 80101ee: 619a str r2, [r3, #24]
  37363. /* Configure the Output Fast mode */
  37364. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  37365. 80101f0: 68fb ldr r3, [r7, #12]
  37366. 80101f2: 681b ldr r3, [r3, #0]
  37367. 80101f4: 699a ldr r2, [r3, #24]
  37368. 80101f6: 68fb ldr r3, [r7, #12]
  37369. 80101f8: 681b ldr r3, [r3, #0]
  37370. 80101fa: f022 0204 bic.w r2, r2, #4
  37371. 80101fe: 619a str r2, [r3, #24]
  37372. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  37373. 8010200: 68fb ldr r3, [r7, #12]
  37374. 8010202: 681b ldr r3, [r3, #0]
  37375. 8010204: 6999 ldr r1, [r3, #24]
  37376. 8010206: 68bb ldr r3, [r7, #8]
  37377. 8010208: 691a ldr r2, [r3, #16]
  37378. 801020a: 68fb ldr r3, [r7, #12]
  37379. 801020c: 681b ldr r3, [r3, #0]
  37380. 801020e: 430a orrs r2, r1
  37381. 8010210: 619a str r2, [r3, #24]
  37382. break;
  37383. 8010212: e0a5 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37384. {
  37385. /* Check the parameters */
  37386. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37387. /* Configure the Channel 2 in PWM mode */
  37388. TIM_OC2_SetConfig(htim->Instance, sConfig);
  37389. 8010214: 68fb ldr r3, [r7, #12]
  37390. 8010216: 681b ldr r3, [r3, #0]
  37391. 8010218: 68b9 ldr r1, [r7, #8]
  37392. 801021a: 4618 mov r0, r3
  37393. 801021c: f000 fb74 bl 8010908 <TIM_OC2_SetConfig>
  37394. /* Set the Preload enable bit for channel2 */
  37395. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  37396. 8010220: 68fb ldr r3, [r7, #12]
  37397. 8010222: 681b ldr r3, [r3, #0]
  37398. 8010224: 699a ldr r2, [r3, #24]
  37399. 8010226: 68fb ldr r3, [r7, #12]
  37400. 8010228: 681b ldr r3, [r3, #0]
  37401. 801022a: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37402. 801022e: 619a str r2, [r3, #24]
  37403. /* Configure the Output Fast mode */
  37404. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  37405. 8010230: 68fb ldr r3, [r7, #12]
  37406. 8010232: 681b ldr r3, [r3, #0]
  37407. 8010234: 699a ldr r2, [r3, #24]
  37408. 8010236: 68fb ldr r3, [r7, #12]
  37409. 8010238: 681b ldr r3, [r3, #0]
  37410. 801023a: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37411. 801023e: 619a str r2, [r3, #24]
  37412. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  37413. 8010240: 68fb ldr r3, [r7, #12]
  37414. 8010242: 681b ldr r3, [r3, #0]
  37415. 8010244: 6999 ldr r1, [r3, #24]
  37416. 8010246: 68bb ldr r3, [r7, #8]
  37417. 8010248: 691b ldr r3, [r3, #16]
  37418. 801024a: 021a lsls r2, r3, #8
  37419. 801024c: 68fb ldr r3, [r7, #12]
  37420. 801024e: 681b ldr r3, [r3, #0]
  37421. 8010250: 430a orrs r2, r1
  37422. 8010252: 619a str r2, [r3, #24]
  37423. break;
  37424. 8010254: e084 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37425. {
  37426. /* Check the parameters */
  37427. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37428. /* Configure the Channel 3 in PWM mode */
  37429. TIM_OC3_SetConfig(htim->Instance, sConfig);
  37430. 8010256: 68fb ldr r3, [r7, #12]
  37431. 8010258: 681b ldr r3, [r3, #0]
  37432. 801025a: 68b9 ldr r1, [r7, #8]
  37433. 801025c: 4618 mov r0, r3
  37434. 801025e: f000 fbdd bl 8010a1c <TIM_OC3_SetConfig>
  37435. /* Set the Preload enable bit for channel3 */
  37436. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  37437. 8010262: 68fb ldr r3, [r7, #12]
  37438. 8010264: 681b ldr r3, [r3, #0]
  37439. 8010266: 69da ldr r2, [r3, #28]
  37440. 8010268: 68fb ldr r3, [r7, #12]
  37441. 801026a: 681b ldr r3, [r3, #0]
  37442. 801026c: f042 0208 orr.w r2, r2, #8
  37443. 8010270: 61da str r2, [r3, #28]
  37444. /* Configure the Output Fast mode */
  37445. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  37446. 8010272: 68fb ldr r3, [r7, #12]
  37447. 8010274: 681b ldr r3, [r3, #0]
  37448. 8010276: 69da ldr r2, [r3, #28]
  37449. 8010278: 68fb ldr r3, [r7, #12]
  37450. 801027a: 681b ldr r3, [r3, #0]
  37451. 801027c: f022 0204 bic.w r2, r2, #4
  37452. 8010280: 61da str r2, [r3, #28]
  37453. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  37454. 8010282: 68fb ldr r3, [r7, #12]
  37455. 8010284: 681b ldr r3, [r3, #0]
  37456. 8010286: 69d9 ldr r1, [r3, #28]
  37457. 8010288: 68bb ldr r3, [r7, #8]
  37458. 801028a: 691a ldr r2, [r3, #16]
  37459. 801028c: 68fb ldr r3, [r7, #12]
  37460. 801028e: 681b ldr r3, [r3, #0]
  37461. 8010290: 430a orrs r2, r1
  37462. 8010292: 61da str r2, [r3, #28]
  37463. break;
  37464. 8010294: e064 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37465. {
  37466. /* Check the parameters */
  37467. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37468. /* Configure the Channel 4 in PWM mode */
  37469. TIM_OC4_SetConfig(htim->Instance, sConfig);
  37470. 8010296: 68fb ldr r3, [r7, #12]
  37471. 8010298: 681b ldr r3, [r3, #0]
  37472. 801029a: 68b9 ldr r1, [r7, #8]
  37473. 801029c: 4618 mov r0, r3
  37474. 801029e: f000 fc45 bl 8010b2c <TIM_OC4_SetConfig>
  37475. /* Set the Preload enable bit for channel4 */
  37476. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  37477. 80102a2: 68fb ldr r3, [r7, #12]
  37478. 80102a4: 681b ldr r3, [r3, #0]
  37479. 80102a6: 69da ldr r2, [r3, #28]
  37480. 80102a8: 68fb ldr r3, [r7, #12]
  37481. 80102aa: 681b ldr r3, [r3, #0]
  37482. 80102ac: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37483. 80102b0: 61da str r2, [r3, #28]
  37484. /* Configure the Output Fast mode */
  37485. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  37486. 80102b2: 68fb ldr r3, [r7, #12]
  37487. 80102b4: 681b ldr r3, [r3, #0]
  37488. 80102b6: 69da ldr r2, [r3, #28]
  37489. 80102b8: 68fb ldr r3, [r7, #12]
  37490. 80102ba: 681b ldr r3, [r3, #0]
  37491. 80102bc: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37492. 80102c0: 61da str r2, [r3, #28]
  37493. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  37494. 80102c2: 68fb ldr r3, [r7, #12]
  37495. 80102c4: 681b ldr r3, [r3, #0]
  37496. 80102c6: 69d9 ldr r1, [r3, #28]
  37497. 80102c8: 68bb ldr r3, [r7, #8]
  37498. 80102ca: 691b ldr r3, [r3, #16]
  37499. 80102cc: 021a lsls r2, r3, #8
  37500. 80102ce: 68fb ldr r3, [r7, #12]
  37501. 80102d0: 681b ldr r3, [r3, #0]
  37502. 80102d2: 430a orrs r2, r1
  37503. 80102d4: 61da str r2, [r3, #28]
  37504. break;
  37505. 80102d6: e043 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37506. {
  37507. /* Check the parameters */
  37508. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  37509. /* Configure the Channel 5 in PWM mode */
  37510. TIM_OC5_SetConfig(htim->Instance, sConfig);
  37511. 80102d8: 68fb ldr r3, [r7, #12]
  37512. 80102da: 681b ldr r3, [r3, #0]
  37513. 80102dc: 68b9 ldr r1, [r7, #8]
  37514. 80102de: 4618 mov r0, r3
  37515. 80102e0: f000 fc8e bl 8010c00 <TIM_OC5_SetConfig>
  37516. /* Set the Preload enable bit for channel5*/
  37517. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  37518. 80102e4: 68fb ldr r3, [r7, #12]
  37519. 80102e6: 681b ldr r3, [r3, #0]
  37520. 80102e8: 6d5a ldr r2, [r3, #84] @ 0x54
  37521. 80102ea: 68fb ldr r3, [r7, #12]
  37522. 80102ec: 681b ldr r3, [r3, #0]
  37523. 80102ee: f042 0208 orr.w r2, r2, #8
  37524. 80102f2: 655a str r2, [r3, #84] @ 0x54
  37525. /* Configure the Output Fast mode */
  37526. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  37527. 80102f4: 68fb ldr r3, [r7, #12]
  37528. 80102f6: 681b ldr r3, [r3, #0]
  37529. 80102f8: 6d5a ldr r2, [r3, #84] @ 0x54
  37530. 80102fa: 68fb ldr r3, [r7, #12]
  37531. 80102fc: 681b ldr r3, [r3, #0]
  37532. 80102fe: f022 0204 bic.w r2, r2, #4
  37533. 8010302: 655a str r2, [r3, #84] @ 0x54
  37534. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  37535. 8010304: 68fb ldr r3, [r7, #12]
  37536. 8010306: 681b ldr r3, [r3, #0]
  37537. 8010308: 6d59 ldr r1, [r3, #84] @ 0x54
  37538. 801030a: 68bb ldr r3, [r7, #8]
  37539. 801030c: 691a ldr r2, [r3, #16]
  37540. 801030e: 68fb ldr r3, [r7, #12]
  37541. 8010310: 681b ldr r3, [r3, #0]
  37542. 8010312: 430a orrs r2, r1
  37543. 8010314: 655a str r2, [r3, #84] @ 0x54
  37544. break;
  37545. 8010316: e023 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37546. {
  37547. /* Check the parameters */
  37548. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  37549. /* Configure the Channel 6 in PWM mode */
  37550. TIM_OC6_SetConfig(htim->Instance, sConfig);
  37551. 8010318: 68fb ldr r3, [r7, #12]
  37552. 801031a: 681b ldr r3, [r3, #0]
  37553. 801031c: 68b9 ldr r1, [r7, #8]
  37554. 801031e: 4618 mov r0, r3
  37555. 8010320: f000 fcd2 bl 8010cc8 <TIM_OC6_SetConfig>
  37556. /* Set the Preload enable bit for channel6 */
  37557. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  37558. 8010324: 68fb ldr r3, [r7, #12]
  37559. 8010326: 681b ldr r3, [r3, #0]
  37560. 8010328: 6d5a ldr r2, [r3, #84] @ 0x54
  37561. 801032a: 68fb ldr r3, [r7, #12]
  37562. 801032c: 681b ldr r3, [r3, #0]
  37563. 801032e: f442 6200 orr.w r2, r2, #2048 @ 0x800
  37564. 8010332: 655a str r2, [r3, #84] @ 0x54
  37565. /* Configure the Output Fast mode */
  37566. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  37567. 8010334: 68fb ldr r3, [r7, #12]
  37568. 8010336: 681b ldr r3, [r3, #0]
  37569. 8010338: 6d5a ldr r2, [r3, #84] @ 0x54
  37570. 801033a: 68fb ldr r3, [r7, #12]
  37571. 801033c: 681b ldr r3, [r3, #0]
  37572. 801033e: f422 6280 bic.w r2, r2, #1024 @ 0x400
  37573. 8010342: 655a str r2, [r3, #84] @ 0x54
  37574. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  37575. 8010344: 68fb ldr r3, [r7, #12]
  37576. 8010346: 681b ldr r3, [r3, #0]
  37577. 8010348: 6d59 ldr r1, [r3, #84] @ 0x54
  37578. 801034a: 68bb ldr r3, [r7, #8]
  37579. 801034c: 691b ldr r3, [r3, #16]
  37580. 801034e: 021a lsls r2, r3, #8
  37581. 8010350: 68fb ldr r3, [r7, #12]
  37582. 8010352: 681b ldr r3, [r3, #0]
  37583. 8010354: 430a orrs r2, r1
  37584. 8010356: 655a str r2, [r3, #84] @ 0x54
  37585. break;
  37586. 8010358: e002 b.n 8010360 <HAL_TIM_PWM_ConfigChannel+0x214>
  37587. }
  37588. default:
  37589. status = HAL_ERROR;
  37590. 801035a: 2301 movs r3, #1
  37591. 801035c: 75fb strb r3, [r7, #23]
  37592. break;
  37593. 801035e: bf00 nop
  37594. }
  37595. __HAL_UNLOCK(htim);
  37596. 8010360: 68fb ldr r3, [r7, #12]
  37597. 8010362: 2200 movs r2, #0
  37598. 8010364: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37599. return status;
  37600. 8010368: 7dfb ldrb r3, [r7, #23]
  37601. }
  37602. 801036a: 4618 mov r0, r3
  37603. 801036c: 3718 adds r7, #24
  37604. 801036e: 46bd mov sp, r7
  37605. 8010370: bd80 pop {r7, pc}
  37606. 8010372: bf00 nop
  37607. 08010374 <HAL_TIM_ConfigClockSource>:
  37608. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  37609. * contains the clock source information for the TIM peripheral.
  37610. * @retval HAL status
  37611. */
  37612. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  37613. {
  37614. 8010374: b580 push {r7, lr}
  37615. 8010376: b084 sub sp, #16
  37616. 8010378: af00 add r7, sp, #0
  37617. 801037a: 6078 str r0, [r7, #4]
  37618. 801037c: 6039 str r1, [r7, #0]
  37619. HAL_StatusTypeDef status = HAL_OK;
  37620. 801037e: 2300 movs r3, #0
  37621. 8010380: 73fb strb r3, [r7, #15]
  37622. uint32_t tmpsmcr;
  37623. /* Process Locked */
  37624. __HAL_LOCK(htim);
  37625. 8010382: 687b ldr r3, [r7, #4]
  37626. 8010384: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  37627. 8010388: 2b01 cmp r3, #1
  37628. 801038a: d101 bne.n 8010390 <HAL_TIM_ConfigClockSource+0x1c>
  37629. 801038c: 2302 movs r3, #2
  37630. 801038e: e0dc b.n 801054a <HAL_TIM_ConfigClockSource+0x1d6>
  37631. 8010390: 687b ldr r3, [r7, #4]
  37632. 8010392: 2201 movs r2, #1
  37633. 8010394: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37634. htim->State = HAL_TIM_STATE_BUSY;
  37635. 8010398: 687b ldr r3, [r7, #4]
  37636. 801039a: 2202 movs r2, #2
  37637. 801039c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37638. /* Check the parameters */
  37639. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  37640. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  37641. tmpsmcr = htim->Instance->SMCR;
  37642. 80103a0: 687b ldr r3, [r7, #4]
  37643. 80103a2: 681b ldr r3, [r3, #0]
  37644. 80103a4: 689b ldr r3, [r3, #8]
  37645. 80103a6: 60bb str r3, [r7, #8]
  37646. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  37647. 80103a8: 68ba ldr r2, [r7, #8]
  37648. 80103aa: 4b6a ldr r3, [pc, #424] @ (8010554 <HAL_TIM_ConfigClockSource+0x1e0>)
  37649. 80103ac: 4013 ands r3, r2
  37650. 80103ae: 60bb str r3, [r7, #8]
  37651. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  37652. 80103b0: 68bb ldr r3, [r7, #8]
  37653. 80103b2: f423 437f bic.w r3, r3, #65280 @ 0xff00
  37654. 80103b6: 60bb str r3, [r7, #8]
  37655. htim->Instance->SMCR = tmpsmcr;
  37656. 80103b8: 687b ldr r3, [r7, #4]
  37657. 80103ba: 681b ldr r3, [r3, #0]
  37658. 80103bc: 68ba ldr r2, [r7, #8]
  37659. 80103be: 609a str r2, [r3, #8]
  37660. switch (sClockSourceConfig->ClockSource)
  37661. 80103c0: 683b ldr r3, [r7, #0]
  37662. 80103c2: 681b ldr r3, [r3, #0]
  37663. 80103c4: 4a64 ldr r2, [pc, #400] @ (8010558 <HAL_TIM_ConfigClockSource+0x1e4>)
  37664. 80103c6: 4293 cmp r3, r2
  37665. 80103c8: f000 80a9 beq.w 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37666. 80103cc: 4a62 ldr r2, [pc, #392] @ (8010558 <HAL_TIM_ConfigClockSource+0x1e4>)
  37667. 80103ce: 4293 cmp r3, r2
  37668. 80103d0: f200 80ae bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37669. 80103d4: 4a61 ldr r2, [pc, #388] @ (801055c <HAL_TIM_ConfigClockSource+0x1e8>)
  37670. 80103d6: 4293 cmp r3, r2
  37671. 80103d8: f000 80a1 beq.w 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37672. 80103dc: 4a5f ldr r2, [pc, #380] @ (801055c <HAL_TIM_ConfigClockSource+0x1e8>)
  37673. 80103de: 4293 cmp r3, r2
  37674. 80103e0: f200 80a6 bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37675. 80103e4: 4a5e ldr r2, [pc, #376] @ (8010560 <HAL_TIM_ConfigClockSource+0x1ec>)
  37676. 80103e6: 4293 cmp r3, r2
  37677. 80103e8: f000 8099 beq.w 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37678. 80103ec: 4a5c ldr r2, [pc, #368] @ (8010560 <HAL_TIM_ConfigClockSource+0x1ec>)
  37679. 80103ee: 4293 cmp r3, r2
  37680. 80103f0: f200 809e bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37681. 80103f4: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37682. 80103f8: f000 8091 beq.w 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37683. 80103fc: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  37684. 8010400: f200 8096 bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37685. 8010404: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37686. 8010408: f000 8089 beq.w 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37687. 801040c: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  37688. 8010410: f200 808e bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37689. 8010414: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37690. 8010418: d03e beq.n 8010498 <HAL_TIM_ConfigClockSource+0x124>
  37691. 801041a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  37692. 801041e: f200 8087 bhi.w 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37693. 8010422: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37694. 8010426: f000 8086 beq.w 8010536 <HAL_TIM_ConfigClockSource+0x1c2>
  37695. 801042a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  37696. 801042e: d87f bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37697. 8010430: 2b70 cmp r3, #112 @ 0x70
  37698. 8010432: d01a beq.n 801046a <HAL_TIM_ConfigClockSource+0xf6>
  37699. 8010434: 2b70 cmp r3, #112 @ 0x70
  37700. 8010436: d87b bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37701. 8010438: 2b60 cmp r3, #96 @ 0x60
  37702. 801043a: d050 beq.n 80104de <HAL_TIM_ConfigClockSource+0x16a>
  37703. 801043c: 2b60 cmp r3, #96 @ 0x60
  37704. 801043e: d877 bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37705. 8010440: 2b50 cmp r3, #80 @ 0x50
  37706. 8010442: d03c beq.n 80104be <HAL_TIM_ConfigClockSource+0x14a>
  37707. 8010444: 2b50 cmp r3, #80 @ 0x50
  37708. 8010446: d873 bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37709. 8010448: 2b40 cmp r3, #64 @ 0x40
  37710. 801044a: d058 beq.n 80104fe <HAL_TIM_ConfigClockSource+0x18a>
  37711. 801044c: 2b40 cmp r3, #64 @ 0x40
  37712. 801044e: d86f bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37713. 8010450: 2b30 cmp r3, #48 @ 0x30
  37714. 8010452: d064 beq.n 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37715. 8010454: 2b30 cmp r3, #48 @ 0x30
  37716. 8010456: d86b bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37717. 8010458: 2b20 cmp r3, #32
  37718. 801045a: d060 beq.n 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37719. 801045c: 2b20 cmp r3, #32
  37720. 801045e: d867 bhi.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37721. 8010460: 2b00 cmp r3, #0
  37722. 8010462: d05c beq.n 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37723. 8010464: 2b10 cmp r3, #16
  37724. 8010466: d05a beq.n 801051e <HAL_TIM_ConfigClockSource+0x1aa>
  37725. 8010468: e062 b.n 8010530 <HAL_TIM_ConfigClockSource+0x1bc>
  37726. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37727. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37728. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37729. /* Configure the ETR Clock source */
  37730. TIM_ETR_SetConfig(htim->Instance,
  37731. 801046a: 687b ldr r3, [r7, #4]
  37732. 801046c: 6818 ldr r0, [r3, #0]
  37733. sClockSourceConfig->ClockPrescaler,
  37734. 801046e: 683b ldr r3, [r7, #0]
  37735. 8010470: 6899 ldr r1, [r3, #8]
  37736. sClockSourceConfig->ClockPolarity,
  37737. 8010472: 683b ldr r3, [r7, #0]
  37738. 8010474: 685a ldr r2, [r3, #4]
  37739. sClockSourceConfig->ClockFilter);
  37740. 8010476: 683b ldr r3, [r7, #0]
  37741. 8010478: 68db ldr r3, [r3, #12]
  37742. TIM_ETR_SetConfig(htim->Instance,
  37743. 801047a: f000 fe33 bl 80110e4 <TIM_ETR_SetConfig>
  37744. /* Select the External clock mode1 and the ETRF trigger */
  37745. tmpsmcr = htim->Instance->SMCR;
  37746. 801047e: 687b ldr r3, [r7, #4]
  37747. 8010480: 681b ldr r3, [r3, #0]
  37748. 8010482: 689b ldr r3, [r3, #8]
  37749. 8010484: 60bb str r3, [r7, #8]
  37750. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  37751. 8010486: 68bb ldr r3, [r7, #8]
  37752. 8010488: f043 0377 orr.w r3, r3, #119 @ 0x77
  37753. 801048c: 60bb str r3, [r7, #8]
  37754. /* Write to TIMx SMCR */
  37755. htim->Instance->SMCR = tmpsmcr;
  37756. 801048e: 687b ldr r3, [r7, #4]
  37757. 8010490: 681b ldr r3, [r3, #0]
  37758. 8010492: 68ba ldr r2, [r7, #8]
  37759. 8010494: 609a str r2, [r3, #8]
  37760. break;
  37761. 8010496: e04f b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37762. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  37763. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37764. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37765. /* Configure the ETR Clock source */
  37766. TIM_ETR_SetConfig(htim->Instance,
  37767. 8010498: 687b ldr r3, [r7, #4]
  37768. 801049a: 6818 ldr r0, [r3, #0]
  37769. sClockSourceConfig->ClockPrescaler,
  37770. 801049c: 683b ldr r3, [r7, #0]
  37771. 801049e: 6899 ldr r1, [r3, #8]
  37772. sClockSourceConfig->ClockPolarity,
  37773. 80104a0: 683b ldr r3, [r7, #0]
  37774. 80104a2: 685a ldr r2, [r3, #4]
  37775. sClockSourceConfig->ClockFilter);
  37776. 80104a4: 683b ldr r3, [r7, #0]
  37777. 80104a6: 68db ldr r3, [r3, #12]
  37778. TIM_ETR_SetConfig(htim->Instance,
  37779. 80104a8: f000 fe1c bl 80110e4 <TIM_ETR_SetConfig>
  37780. /* Enable the External clock mode2 */
  37781. htim->Instance->SMCR |= TIM_SMCR_ECE;
  37782. 80104ac: 687b ldr r3, [r7, #4]
  37783. 80104ae: 681b ldr r3, [r3, #0]
  37784. 80104b0: 689a ldr r2, [r3, #8]
  37785. 80104b2: 687b ldr r3, [r7, #4]
  37786. 80104b4: 681b ldr r3, [r3, #0]
  37787. 80104b6: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  37788. 80104ba: 609a str r2, [r3, #8]
  37789. break;
  37790. 80104bc: e03c b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37791. /* Check TI1 input conditioning related parameters */
  37792. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37793. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37794. TIM_TI1_ConfigInputStage(htim->Instance,
  37795. 80104be: 687b ldr r3, [r7, #4]
  37796. 80104c0: 6818 ldr r0, [r3, #0]
  37797. sClockSourceConfig->ClockPolarity,
  37798. 80104c2: 683b ldr r3, [r7, #0]
  37799. 80104c4: 6859 ldr r1, [r3, #4]
  37800. sClockSourceConfig->ClockFilter);
  37801. 80104c6: 683b ldr r3, [r7, #0]
  37802. 80104c8: 68db ldr r3, [r3, #12]
  37803. TIM_TI1_ConfigInputStage(htim->Instance,
  37804. 80104ca: 461a mov r2, r3
  37805. 80104cc: f000 fcd6 bl 8010e7c <TIM_TI1_ConfigInputStage>
  37806. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  37807. 80104d0: 687b ldr r3, [r7, #4]
  37808. 80104d2: 681b ldr r3, [r3, #0]
  37809. 80104d4: 2150 movs r1, #80 @ 0x50
  37810. 80104d6: 4618 mov r0, r3
  37811. 80104d8: f000 fde6 bl 80110a8 <TIM_ITRx_SetConfig>
  37812. break;
  37813. 80104dc: e02c b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37814. /* Check TI2 input conditioning related parameters */
  37815. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37816. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37817. TIM_TI2_ConfigInputStage(htim->Instance,
  37818. 80104de: 687b ldr r3, [r7, #4]
  37819. 80104e0: 6818 ldr r0, [r3, #0]
  37820. sClockSourceConfig->ClockPolarity,
  37821. 80104e2: 683b ldr r3, [r7, #0]
  37822. 80104e4: 6859 ldr r1, [r3, #4]
  37823. sClockSourceConfig->ClockFilter);
  37824. 80104e6: 683b ldr r3, [r7, #0]
  37825. 80104e8: 68db ldr r3, [r3, #12]
  37826. TIM_TI2_ConfigInputStage(htim->Instance,
  37827. 80104ea: 461a mov r2, r3
  37828. 80104ec: f000 fd32 bl 8010f54 <TIM_TI2_ConfigInputStage>
  37829. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  37830. 80104f0: 687b ldr r3, [r7, #4]
  37831. 80104f2: 681b ldr r3, [r3, #0]
  37832. 80104f4: 2160 movs r1, #96 @ 0x60
  37833. 80104f6: 4618 mov r0, r3
  37834. 80104f8: f000 fdd6 bl 80110a8 <TIM_ITRx_SetConfig>
  37835. break;
  37836. 80104fc: e01c b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37837. /* Check TI1 input conditioning related parameters */
  37838. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  37839. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  37840. TIM_TI1_ConfigInputStage(htim->Instance,
  37841. 80104fe: 687b ldr r3, [r7, #4]
  37842. 8010500: 6818 ldr r0, [r3, #0]
  37843. sClockSourceConfig->ClockPolarity,
  37844. 8010502: 683b ldr r3, [r7, #0]
  37845. 8010504: 6859 ldr r1, [r3, #4]
  37846. sClockSourceConfig->ClockFilter);
  37847. 8010506: 683b ldr r3, [r7, #0]
  37848. 8010508: 68db ldr r3, [r3, #12]
  37849. TIM_TI1_ConfigInputStage(htim->Instance,
  37850. 801050a: 461a mov r2, r3
  37851. 801050c: f000 fcb6 bl 8010e7c <TIM_TI1_ConfigInputStage>
  37852. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  37853. 8010510: 687b ldr r3, [r7, #4]
  37854. 8010512: 681b ldr r3, [r3, #0]
  37855. 8010514: 2140 movs r1, #64 @ 0x40
  37856. 8010516: 4618 mov r0, r3
  37857. 8010518: f000 fdc6 bl 80110a8 <TIM_ITRx_SetConfig>
  37858. break;
  37859. 801051c: e00c b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37860. case TIM_CLOCKSOURCE_ITR8:
  37861. {
  37862. /* Check whether or not the timer instance supports internal trigger input */
  37863. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  37864. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  37865. 801051e: 687b ldr r3, [r7, #4]
  37866. 8010520: 681a ldr r2, [r3, #0]
  37867. 8010522: 683b ldr r3, [r7, #0]
  37868. 8010524: 681b ldr r3, [r3, #0]
  37869. 8010526: 4619 mov r1, r3
  37870. 8010528: 4610 mov r0, r2
  37871. 801052a: f000 fdbd bl 80110a8 <TIM_ITRx_SetConfig>
  37872. break;
  37873. 801052e: e003 b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37874. }
  37875. default:
  37876. status = HAL_ERROR;
  37877. 8010530: 2301 movs r3, #1
  37878. 8010532: 73fb strb r3, [r7, #15]
  37879. break;
  37880. 8010534: e000 b.n 8010538 <HAL_TIM_ConfigClockSource+0x1c4>
  37881. break;
  37882. 8010536: bf00 nop
  37883. }
  37884. htim->State = HAL_TIM_STATE_READY;
  37885. 8010538: 687b ldr r3, [r7, #4]
  37886. 801053a: 2201 movs r2, #1
  37887. 801053c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  37888. __HAL_UNLOCK(htim);
  37889. 8010540: 687b ldr r3, [r7, #4]
  37890. 8010542: 2200 movs r2, #0
  37891. 8010544: f883 203c strb.w r2, [r3, #60] @ 0x3c
  37892. return status;
  37893. 8010548: 7bfb ldrb r3, [r7, #15]
  37894. }
  37895. 801054a: 4618 mov r0, r3
  37896. 801054c: 3710 adds r7, #16
  37897. 801054e: 46bd mov sp, r7
  37898. 8010550: bd80 pop {r7, pc}
  37899. 8010552: bf00 nop
  37900. 8010554: ffceff88 .word 0xffceff88
  37901. 8010558: 00100040 .word 0x00100040
  37902. 801055c: 00100030 .word 0x00100030
  37903. 8010560: 00100020 .word 0x00100020
  37904. 08010564 <HAL_TIM_ReadCapturedValue>:
  37905. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  37906. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  37907. * @retval Captured value
  37908. */
  37909. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  37910. {
  37911. 8010564: b480 push {r7}
  37912. 8010566: b085 sub sp, #20
  37913. 8010568: af00 add r7, sp, #0
  37914. 801056a: 6078 str r0, [r7, #4]
  37915. 801056c: 6039 str r1, [r7, #0]
  37916. uint32_t tmpreg = 0U;
  37917. 801056e: 2300 movs r3, #0
  37918. 8010570: 60fb str r3, [r7, #12]
  37919. switch (Channel)
  37920. 8010572: 683b ldr r3, [r7, #0]
  37921. 8010574: 2b0c cmp r3, #12
  37922. 8010576: d831 bhi.n 80105dc <HAL_TIM_ReadCapturedValue+0x78>
  37923. 8010578: a201 add r2, pc, #4 @ (adr r2, 8010580 <HAL_TIM_ReadCapturedValue+0x1c>)
  37924. 801057a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37925. 801057e: bf00 nop
  37926. 8010580: 080105b5 .word 0x080105b5
  37927. 8010584: 080105dd .word 0x080105dd
  37928. 8010588: 080105dd .word 0x080105dd
  37929. 801058c: 080105dd .word 0x080105dd
  37930. 8010590: 080105bf .word 0x080105bf
  37931. 8010594: 080105dd .word 0x080105dd
  37932. 8010598: 080105dd .word 0x080105dd
  37933. 801059c: 080105dd .word 0x080105dd
  37934. 80105a0: 080105c9 .word 0x080105c9
  37935. 80105a4: 080105dd .word 0x080105dd
  37936. 80105a8: 080105dd .word 0x080105dd
  37937. 80105ac: 080105dd .word 0x080105dd
  37938. 80105b0: 080105d3 .word 0x080105d3
  37939. {
  37940. /* Check the parameters */
  37941. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  37942. /* Return the capture 1 value */
  37943. tmpreg = htim->Instance->CCR1;
  37944. 80105b4: 687b ldr r3, [r7, #4]
  37945. 80105b6: 681b ldr r3, [r3, #0]
  37946. 80105b8: 6b5b ldr r3, [r3, #52] @ 0x34
  37947. 80105ba: 60fb str r3, [r7, #12]
  37948. break;
  37949. 80105bc: e00f b.n 80105de <HAL_TIM_ReadCapturedValue+0x7a>
  37950. {
  37951. /* Check the parameters */
  37952. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  37953. /* Return the capture 2 value */
  37954. tmpreg = htim->Instance->CCR2;
  37955. 80105be: 687b ldr r3, [r7, #4]
  37956. 80105c0: 681b ldr r3, [r3, #0]
  37957. 80105c2: 6b9b ldr r3, [r3, #56] @ 0x38
  37958. 80105c4: 60fb str r3, [r7, #12]
  37959. break;
  37960. 80105c6: e00a b.n 80105de <HAL_TIM_ReadCapturedValue+0x7a>
  37961. {
  37962. /* Check the parameters */
  37963. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  37964. /* Return the capture 3 value */
  37965. tmpreg = htim->Instance->CCR3;
  37966. 80105c8: 687b ldr r3, [r7, #4]
  37967. 80105ca: 681b ldr r3, [r3, #0]
  37968. 80105cc: 6bdb ldr r3, [r3, #60] @ 0x3c
  37969. 80105ce: 60fb str r3, [r7, #12]
  37970. break;
  37971. 80105d0: e005 b.n 80105de <HAL_TIM_ReadCapturedValue+0x7a>
  37972. {
  37973. /* Check the parameters */
  37974. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  37975. /* Return the capture 4 value */
  37976. tmpreg = htim->Instance->CCR4;
  37977. 80105d2: 687b ldr r3, [r7, #4]
  37978. 80105d4: 681b ldr r3, [r3, #0]
  37979. 80105d6: 6c1b ldr r3, [r3, #64] @ 0x40
  37980. 80105d8: 60fb str r3, [r7, #12]
  37981. break;
  37982. 80105da: e000 b.n 80105de <HAL_TIM_ReadCapturedValue+0x7a>
  37983. }
  37984. default:
  37985. break;
  37986. 80105dc: bf00 nop
  37987. }
  37988. return tmpreg;
  37989. 80105de: 68fb ldr r3, [r7, #12]
  37990. }
  37991. 80105e0: 4618 mov r0, r3
  37992. 80105e2: 3714 adds r7, #20
  37993. 80105e4: 46bd mov sp, r7
  37994. 80105e6: f85d 7b04 ldr.w r7, [sp], #4
  37995. 80105ea: 4770 bx lr
  37996. 080105ec <HAL_TIM_OC_DelayElapsedCallback>:
  37997. * @brief Output Compare callback in non-blocking mode
  37998. * @param htim TIM OC handle
  37999. * @retval None
  38000. */
  38001. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  38002. {
  38003. 80105ec: b480 push {r7}
  38004. 80105ee: b083 sub sp, #12
  38005. 80105f0: af00 add r7, sp, #0
  38006. 80105f2: 6078 str r0, [r7, #4]
  38007. UNUSED(htim);
  38008. /* NOTE : This function should not be modified, when the callback is needed,
  38009. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  38010. */
  38011. }
  38012. 80105f4: bf00 nop
  38013. 80105f6: 370c adds r7, #12
  38014. 80105f8: 46bd mov sp, r7
  38015. 80105fa: f85d 7b04 ldr.w r7, [sp], #4
  38016. 80105fe: 4770 bx lr
  38017. 08010600 <HAL_TIM_PWM_PulseFinishedCallback>:
  38018. * @brief PWM Pulse finished callback in non-blocking mode
  38019. * @param htim TIM handle
  38020. * @retval None
  38021. */
  38022. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  38023. {
  38024. 8010600: b480 push {r7}
  38025. 8010602: b083 sub sp, #12
  38026. 8010604: af00 add r7, sp, #0
  38027. 8010606: 6078 str r0, [r7, #4]
  38028. UNUSED(htim);
  38029. /* NOTE : This function should not be modified, when the callback is needed,
  38030. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  38031. */
  38032. }
  38033. 8010608: bf00 nop
  38034. 801060a: 370c adds r7, #12
  38035. 801060c: 46bd mov sp, r7
  38036. 801060e: f85d 7b04 ldr.w r7, [sp], #4
  38037. 8010612: 4770 bx lr
  38038. 08010614 <HAL_TIM_TriggerCallback>:
  38039. * @brief Hall Trigger detection callback in non-blocking mode
  38040. * @param htim TIM handle
  38041. * @retval None
  38042. */
  38043. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  38044. {
  38045. 8010614: b480 push {r7}
  38046. 8010616: b083 sub sp, #12
  38047. 8010618: af00 add r7, sp, #0
  38048. 801061a: 6078 str r0, [r7, #4]
  38049. UNUSED(htim);
  38050. /* NOTE : This function should not be modified, when the callback is needed,
  38051. the HAL_TIM_TriggerCallback could be implemented in the user file
  38052. */
  38053. }
  38054. 801061c: bf00 nop
  38055. 801061e: 370c adds r7, #12
  38056. 8010620: 46bd mov sp, r7
  38057. 8010622: f85d 7b04 ldr.w r7, [sp], #4
  38058. 8010626: 4770 bx lr
  38059. 08010628 <HAL_TIM_GetChannelState>:
  38060. * @arg TIM_CHANNEL_5: TIM Channel 5
  38061. * @arg TIM_CHANNEL_6: TIM Channel 6
  38062. * @retval TIM Channel state
  38063. */
  38064. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  38065. {
  38066. 8010628: b480 push {r7}
  38067. 801062a: b085 sub sp, #20
  38068. 801062c: af00 add r7, sp, #0
  38069. 801062e: 6078 str r0, [r7, #4]
  38070. 8010630: 6039 str r1, [r7, #0]
  38071. HAL_TIM_ChannelStateTypeDef channel_state;
  38072. /* Check the parameters */
  38073. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  38074. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  38075. 8010632: 683b ldr r3, [r7, #0]
  38076. 8010634: 2b00 cmp r3, #0
  38077. 8010636: d104 bne.n 8010642 <HAL_TIM_GetChannelState+0x1a>
  38078. 8010638: 687b ldr r3, [r7, #4]
  38079. 801063a: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  38080. 801063e: b2db uxtb r3, r3
  38081. 8010640: e023 b.n 801068a <HAL_TIM_GetChannelState+0x62>
  38082. 8010642: 683b ldr r3, [r7, #0]
  38083. 8010644: 2b04 cmp r3, #4
  38084. 8010646: d104 bne.n 8010652 <HAL_TIM_GetChannelState+0x2a>
  38085. 8010648: 687b ldr r3, [r7, #4]
  38086. 801064a: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  38087. 801064e: b2db uxtb r3, r3
  38088. 8010650: e01b b.n 801068a <HAL_TIM_GetChannelState+0x62>
  38089. 8010652: 683b ldr r3, [r7, #0]
  38090. 8010654: 2b08 cmp r3, #8
  38091. 8010656: d104 bne.n 8010662 <HAL_TIM_GetChannelState+0x3a>
  38092. 8010658: 687b ldr r3, [r7, #4]
  38093. 801065a: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  38094. 801065e: b2db uxtb r3, r3
  38095. 8010660: e013 b.n 801068a <HAL_TIM_GetChannelState+0x62>
  38096. 8010662: 683b ldr r3, [r7, #0]
  38097. 8010664: 2b0c cmp r3, #12
  38098. 8010666: d104 bne.n 8010672 <HAL_TIM_GetChannelState+0x4a>
  38099. 8010668: 687b ldr r3, [r7, #4]
  38100. 801066a: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  38101. 801066e: b2db uxtb r3, r3
  38102. 8010670: e00b b.n 801068a <HAL_TIM_GetChannelState+0x62>
  38103. 8010672: 683b ldr r3, [r7, #0]
  38104. 8010674: 2b10 cmp r3, #16
  38105. 8010676: d104 bne.n 8010682 <HAL_TIM_GetChannelState+0x5a>
  38106. 8010678: 687b ldr r3, [r7, #4]
  38107. 801067a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  38108. 801067e: b2db uxtb r3, r3
  38109. 8010680: e003 b.n 801068a <HAL_TIM_GetChannelState+0x62>
  38110. 8010682: 687b ldr r3, [r7, #4]
  38111. 8010684: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  38112. 8010688: b2db uxtb r3, r3
  38113. 801068a: 73fb strb r3, [r7, #15]
  38114. return channel_state;
  38115. 801068c: 7bfb ldrb r3, [r7, #15]
  38116. }
  38117. 801068e: 4618 mov r0, r3
  38118. 8010690: 3714 adds r7, #20
  38119. 8010692: 46bd mov sp, r7
  38120. 8010694: f85d 7b04 ldr.w r7, [sp], #4
  38121. 8010698: 4770 bx lr
  38122. ...
  38123. 0801069c <TIM_Base_SetConfig>:
  38124. * @param TIMx TIM peripheral
  38125. * @param Structure TIM Base configuration structure
  38126. * @retval None
  38127. */
  38128. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  38129. {
  38130. 801069c: b480 push {r7}
  38131. 801069e: b085 sub sp, #20
  38132. 80106a0: af00 add r7, sp, #0
  38133. 80106a2: 6078 str r0, [r7, #4]
  38134. 80106a4: 6039 str r1, [r7, #0]
  38135. uint32_t tmpcr1;
  38136. tmpcr1 = TIMx->CR1;
  38137. 80106a6: 687b ldr r3, [r7, #4]
  38138. 80106a8: 681b ldr r3, [r3, #0]
  38139. 80106aa: 60fb str r3, [r7, #12]
  38140. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  38141. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  38142. 80106ac: 687b ldr r3, [r7, #4]
  38143. 80106ae: 4a46 ldr r2, [pc, #280] @ (80107c8 <TIM_Base_SetConfig+0x12c>)
  38144. 80106b0: 4293 cmp r3, r2
  38145. 80106b2: d013 beq.n 80106dc <TIM_Base_SetConfig+0x40>
  38146. 80106b4: 687b ldr r3, [r7, #4]
  38147. 80106b6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38148. 80106ba: d00f beq.n 80106dc <TIM_Base_SetConfig+0x40>
  38149. 80106bc: 687b ldr r3, [r7, #4]
  38150. 80106be: 4a43 ldr r2, [pc, #268] @ (80107cc <TIM_Base_SetConfig+0x130>)
  38151. 80106c0: 4293 cmp r3, r2
  38152. 80106c2: d00b beq.n 80106dc <TIM_Base_SetConfig+0x40>
  38153. 80106c4: 687b ldr r3, [r7, #4]
  38154. 80106c6: 4a42 ldr r2, [pc, #264] @ (80107d0 <TIM_Base_SetConfig+0x134>)
  38155. 80106c8: 4293 cmp r3, r2
  38156. 80106ca: d007 beq.n 80106dc <TIM_Base_SetConfig+0x40>
  38157. 80106cc: 687b ldr r3, [r7, #4]
  38158. 80106ce: 4a41 ldr r2, [pc, #260] @ (80107d4 <TIM_Base_SetConfig+0x138>)
  38159. 80106d0: 4293 cmp r3, r2
  38160. 80106d2: d003 beq.n 80106dc <TIM_Base_SetConfig+0x40>
  38161. 80106d4: 687b ldr r3, [r7, #4]
  38162. 80106d6: 4a40 ldr r2, [pc, #256] @ (80107d8 <TIM_Base_SetConfig+0x13c>)
  38163. 80106d8: 4293 cmp r3, r2
  38164. 80106da: d108 bne.n 80106ee <TIM_Base_SetConfig+0x52>
  38165. {
  38166. /* Select the Counter Mode */
  38167. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  38168. 80106dc: 68fb ldr r3, [r7, #12]
  38169. 80106de: f023 0370 bic.w r3, r3, #112 @ 0x70
  38170. 80106e2: 60fb str r3, [r7, #12]
  38171. tmpcr1 |= Structure->CounterMode;
  38172. 80106e4: 683b ldr r3, [r7, #0]
  38173. 80106e6: 685b ldr r3, [r3, #4]
  38174. 80106e8: 68fa ldr r2, [r7, #12]
  38175. 80106ea: 4313 orrs r3, r2
  38176. 80106ec: 60fb str r3, [r7, #12]
  38177. }
  38178. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  38179. 80106ee: 687b ldr r3, [r7, #4]
  38180. 80106f0: 4a35 ldr r2, [pc, #212] @ (80107c8 <TIM_Base_SetConfig+0x12c>)
  38181. 80106f2: 4293 cmp r3, r2
  38182. 80106f4: d01f beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38183. 80106f6: 687b ldr r3, [r7, #4]
  38184. 80106f8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38185. 80106fc: d01b beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38186. 80106fe: 687b ldr r3, [r7, #4]
  38187. 8010700: 4a32 ldr r2, [pc, #200] @ (80107cc <TIM_Base_SetConfig+0x130>)
  38188. 8010702: 4293 cmp r3, r2
  38189. 8010704: d017 beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38190. 8010706: 687b ldr r3, [r7, #4]
  38191. 8010708: 4a31 ldr r2, [pc, #196] @ (80107d0 <TIM_Base_SetConfig+0x134>)
  38192. 801070a: 4293 cmp r3, r2
  38193. 801070c: d013 beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38194. 801070e: 687b ldr r3, [r7, #4]
  38195. 8010710: 4a30 ldr r2, [pc, #192] @ (80107d4 <TIM_Base_SetConfig+0x138>)
  38196. 8010712: 4293 cmp r3, r2
  38197. 8010714: d00f beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38198. 8010716: 687b ldr r3, [r7, #4]
  38199. 8010718: 4a2f ldr r2, [pc, #188] @ (80107d8 <TIM_Base_SetConfig+0x13c>)
  38200. 801071a: 4293 cmp r3, r2
  38201. 801071c: d00b beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38202. 801071e: 687b ldr r3, [r7, #4]
  38203. 8010720: 4a2e ldr r2, [pc, #184] @ (80107dc <TIM_Base_SetConfig+0x140>)
  38204. 8010722: 4293 cmp r3, r2
  38205. 8010724: d007 beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38206. 8010726: 687b ldr r3, [r7, #4]
  38207. 8010728: 4a2d ldr r2, [pc, #180] @ (80107e0 <TIM_Base_SetConfig+0x144>)
  38208. 801072a: 4293 cmp r3, r2
  38209. 801072c: d003 beq.n 8010736 <TIM_Base_SetConfig+0x9a>
  38210. 801072e: 687b ldr r3, [r7, #4]
  38211. 8010730: 4a2c ldr r2, [pc, #176] @ (80107e4 <TIM_Base_SetConfig+0x148>)
  38212. 8010732: 4293 cmp r3, r2
  38213. 8010734: d108 bne.n 8010748 <TIM_Base_SetConfig+0xac>
  38214. {
  38215. /* Set the clock division */
  38216. tmpcr1 &= ~TIM_CR1_CKD;
  38217. 8010736: 68fb ldr r3, [r7, #12]
  38218. 8010738: f423 7340 bic.w r3, r3, #768 @ 0x300
  38219. 801073c: 60fb str r3, [r7, #12]
  38220. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  38221. 801073e: 683b ldr r3, [r7, #0]
  38222. 8010740: 68db ldr r3, [r3, #12]
  38223. 8010742: 68fa ldr r2, [r7, #12]
  38224. 8010744: 4313 orrs r3, r2
  38225. 8010746: 60fb str r3, [r7, #12]
  38226. }
  38227. /* Set the auto-reload preload */
  38228. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  38229. 8010748: 68fb ldr r3, [r7, #12]
  38230. 801074a: f023 0280 bic.w r2, r3, #128 @ 0x80
  38231. 801074e: 683b ldr r3, [r7, #0]
  38232. 8010750: 695b ldr r3, [r3, #20]
  38233. 8010752: 4313 orrs r3, r2
  38234. 8010754: 60fb str r3, [r7, #12]
  38235. TIMx->CR1 = tmpcr1;
  38236. 8010756: 687b ldr r3, [r7, #4]
  38237. 8010758: 68fa ldr r2, [r7, #12]
  38238. 801075a: 601a str r2, [r3, #0]
  38239. /* Set the Autoreload value */
  38240. TIMx->ARR = (uint32_t)Structure->Period ;
  38241. 801075c: 683b ldr r3, [r7, #0]
  38242. 801075e: 689a ldr r2, [r3, #8]
  38243. 8010760: 687b ldr r3, [r7, #4]
  38244. 8010762: 62da str r2, [r3, #44] @ 0x2c
  38245. /* Set the Prescaler value */
  38246. TIMx->PSC = Structure->Prescaler;
  38247. 8010764: 683b ldr r3, [r7, #0]
  38248. 8010766: 681a ldr r2, [r3, #0]
  38249. 8010768: 687b ldr r3, [r7, #4]
  38250. 801076a: 629a str r2, [r3, #40] @ 0x28
  38251. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  38252. 801076c: 687b ldr r3, [r7, #4]
  38253. 801076e: 4a16 ldr r2, [pc, #88] @ (80107c8 <TIM_Base_SetConfig+0x12c>)
  38254. 8010770: 4293 cmp r3, r2
  38255. 8010772: d00f beq.n 8010794 <TIM_Base_SetConfig+0xf8>
  38256. 8010774: 687b ldr r3, [r7, #4]
  38257. 8010776: 4a18 ldr r2, [pc, #96] @ (80107d8 <TIM_Base_SetConfig+0x13c>)
  38258. 8010778: 4293 cmp r3, r2
  38259. 801077a: d00b beq.n 8010794 <TIM_Base_SetConfig+0xf8>
  38260. 801077c: 687b ldr r3, [r7, #4]
  38261. 801077e: 4a17 ldr r2, [pc, #92] @ (80107dc <TIM_Base_SetConfig+0x140>)
  38262. 8010780: 4293 cmp r3, r2
  38263. 8010782: d007 beq.n 8010794 <TIM_Base_SetConfig+0xf8>
  38264. 8010784: 687b ldr r3, [r7, #4]
  38265. 8010786: 4a16 ldr r2, [pc, #88] @ (80107e0 <TIM_Base_SetConfig+0x144>)
  38266. 8010788: 4293 cmp r3, r2
  38267. 801078a: d003 beq.n 8010794 <TIM_Base_SetConfig+0xf8>
  38268. 801078c: 687b ldr r3, [r7, #4]
  38269. 801078e: 4a15 ldr r2, [pc, #84] @ (80107e4 <TIM_Base_SetConfig+0x148>)
  38270. 8010790: 4293 cmp r3, r2
  38271. 8010792: d103 bne.n 801079c <TIM_Base_SetConfig+0x100>
  38272. {
  38273. /* Set the Repetition Counter value */
  38274. TIMx->RCR = Structure->RepetitionCounter;
  38275. 8010794: 683b ldr r3, [r7, #0]
  38276. 8010796: 691a ldr r2, [r3, #16]
  38277. 8010798: 687b ldr r3, [r7, #4]
  38278. 801079a: 631a str r2, [r3, #48] @ 0x30
  38279. }
  38280. /* Generate an update event to reload the Prescaler
  38281. and the repetition counter (only for advanced timer) value immediately */
  38282. TIMx->EGR = TIM_EGR_UG;
  38283. 801079c: 687b ldr r3, [r7, #4]
  38284. 801079e: 2201 movs r2, #1
  38285. 80107a0: 615a str r2, [r3, #20]
  38286. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  38287. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  38288. 80107a2: 687b ldr r3, [r7, #4]
  38289. 80107a4: 691b ldr r3, [r3, #16]
  38290. 80107a6: f003 0301 and.w r3, r3, #1
  38291. 80107aa: 2b01 cmp r3, #1
  38292. 80107ac: d105 bne.n 80107ba <TIM_Base_SetConfig+0x11e>
  38293. {
  38294. /* Clear the update flag */
  38295. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  38296. 80107ae: 687b ldr r3, [r7, #4]
  38297. 80107b0: 691b ldr r3, [r3, #16]
  38298. 80107b2: f023 0201 bic.w r2, r3, #1
  38299. 80107b6: 687b ldr r3, [r7, #4]
  38300. 80107b8: 611a str r2, [r3, #16]
  38301. }
  38302. }
  38303. 80107ba: bf00 nop
  38304. 80107bc: 3714 adds r7, #20
  38305. 80107be: 46bd mov sp, r7
  38306. 80107c0: f85d 7b04 ldr.w r7, [sp], #4
  38307. 80107c4: 4770 bx lr
  38308. 80107c6: bf00 nop
  38309. 80107c8: 40010000 .word 0x40010000
  38310. 80107cc: 40000400 .word 0x40000400
  38311. 80107d0: 40000800 .word 0x40000800
  38312. 80107d4: 40000c00 .word 0x40000c00
  38313. 80107d8: 40010400 .word 0x40010400
  38314. 80107dc: 40014000 .word 0x40014000
  38315. 80107e0: 40014400 .word 0x40014400
  38316. 80107e4: 40014800 .word 0x40014800
  38317. 080107e8 <TIM_OC1_SetConfig>:
  38318. * @param TIMx to select the TIM peripheral
  38319. * @param OC_Config The output configuration structure
  38320. * @retval None
  38321. */
  38322. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38323. {
  38324. 80107e8: b480 push {r7}
  38325. 80107ea: b087 sub sp, #28
  38326. 80107ec: af00 add r7, sp, #0
  38327. 80107ee: 6078 str r0, [r7, #4]
  38328. 80107f0: 6039 str r1, [r7, #0]
  38329. uint32_t tmpccmrx;
  38330. uint32_t tmpccer;
  38331. uint32_t tmpcr2;
  38332. /* Get the TIMx CCER register value */
  38333. tmpccer = TIMx->CCER;
  38334. 80107f2: 687b ldr r3, [r7, #4]
  38335. 80107f4: 6a1b ldr r3, [r3, #32]
  38336. 80107f6: 617b str r3, [r7, #20]
  38337. /* Disable the Channel 1: Reset the CC1E Bit */
  38338. TIMx->CCER &= ~TIM_CCER_CC1E;
  38339. 80107f8: 687b ldr r3, [r7, #4]
  38340. 80107fa: 6a1b ldr r3, [r3, #32]
  38341. 80107fc: f023 0201 bic.w r2, r3, #1
  38342. 8010800: 687b ldr r3, [r7, #4]
  38343. 8010802: 621a str r2, [r3, #32]
  38344. /* Get the TIMx CR2 register value */
  38345. tmpcr2 = TIMx->CR2;
  38346. 8010804: 687b ldr r3, [r7, #4]
  38347. 8010806: 685b ldr r3, [r3, #4]
  38348. 8010808: 613b str r3, [r7, #16]
  38349. /* Get the TIMx CCMR1 register value */
  38350. tmpccmrx = TIMx->CCMR1;
  38351. 801080a: 687b ldr r3, [r7, #4]
  38352. 801080c: 699b ldr r3, [r3, #24]
  38353. 801080e: 60fb str r3, [r7, #12]
  38354. /* Reset the Output Compare Mode Bits */
  38355. tmpccmrx &= ~TIM_CCMR1_OC1M;
  38356. 8010810: 68fa ldr r2, [r7, #12]
  38357. 8010812: 4b37 ldr r3, [pc, #220] @ (80108f0 <TIM_OC1_SetConfig+0x108>)
  38358. 8010814: 4013 ands r3, r2
  38359. 8010816: 60fb str r3, [r7, #12]
  38360. tmpccmrx &= ~TIM_CCMR1_CC1S;
  38361. 8010818: 68fb ldr r3, [r7, #12]
  38362. 801081a: f023 0303 bic.w r3, r3, #3
  38363. 801081e: 60fb str r3, [r7, #12]
  38364. /* Select the Output Compare Mode */
  38365. tmpccmrx |= OC_Config->OCMode;
  38366. 8010820: 683b ldr r3, [r7, #0]
  38367. 8010822: 681b ldr r3, [r3, #0]
  38368. 8010824: 68fa ldr r2, [r7, #12]
  38369. 8010826: 4313 orrs r3, r2
  38370. 8010828: 60fb str r3, [r7, #12]
  38371. /* Reset the Output Polarity level */
  38372. tmpccer &= ~TIM_CCER_CC1P;
  38373. 801082a: 697b ldr r3, [r7, #20]
  38374. 801082c: f023 0302 bic.w r3, r3, #2
  38375. 8010830: 617b str r3, [r7, #20]
  38376. /* Set the Output Compare Polarity */
  38377. tmpccer |= OC_Config->OCPolarity;
  38378. 8010832: 683b ldr r3, [r7, #0]
  38379. 8010834: 689b ldr r3, [r3, #8]
  38380. 8010836: 697a ldr r2, [r7, #20]
  38381. 8010838: 4313 orrs r3, r2
  38382. 801083a: 617b str r3, [r7, #20]
  38383. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  38384. 801083c: 687b ldr r3, [r7, #4]
  38385. 801083e: 4a2d ldr r2, [pc, #180] @ (80108f4 <TIM_OC1_SetConfig+0x10c>)
  38386. 8010840: 4293 cmp r3, r2
  38387. 8010842: d00f beq.n 8010864 <TIM_OC1_SetConfig+0x7c>
  38388. 8010844: 687b ldr r3, [r7, #4]
  38389. 8010846: 4a2c ldr r2, [pc, #176] @ (80108f8 <TIM_OC1_SetConfig+0x110>)
  38390. 8010848: 4293 cmp r3, r2
  38391. 801084a: d00b beq.n 8010864 <TIM_OC1_SetConfig+0x7c>
  38392. 801084c: 687b ldr r3, [r7, #4]
  38393. 801084e: 4a2b ldr r2, [pc, #172] @ (80108fc <TIM_OC1_SetConfig+0x114>)
  38394. 8010850: 4293 cmp r3, r2
  38395. 8010852: d007 beq.n 8010864 <TIM_OC1_SetConfig+0x7c>
  38396. 8010854: 687b ldr r3, [r7, #4]
  38397. 8010856: 4a2a ldr r2, [pc, #168] @ (8010900 <TIM_OC1_SetConfig+0x118>)
  38398. 8010858: 4293 cmp r3, r2
  38399. 801085a: d003 beq.n 8010864 <TIM_OC1_SetConfig+0x7c>
  38400. 801085c: 687b ldr r3, [r7, #4]
  38401. 801085e: 4a29 ldr r2, [pc, #164] @ (8010904 <TIM_OC1_SetConfig+0x11c>)
  38402. 8010860: 4293 cmp r3, r2
  38403. 8010862: d10c bne.n 801087e <TIM_OC1_SetConfig+0x96>
  38404. {
  38405. /* Check parameters */
  38406. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38407. /* Reset the Output N Polarity level */
  38408. tmpccer &= ~TIM_CCER_CC1NP;
  38409. 8010864: 697b ldr r3, [r7, #20]
  38410. 8010866: f023 0308 bic.w r3, r3, #8
  38411. 801086a: 617b str r3, [r7, #20]
  38412. /* Set the Output N Polarity */
  38413. tmpccer |= OC_Config->OCNPolarity;
  38414. 801086c: 683b ldr r3, [r7, #0]
  38415. 801086e: 68db ldr r3, [r3, #12]
  38416. 8010870: 697a ldr r2, [r7, #20]
  38417. 8010872: 4313 orrs r3, r2
  38418. 8010874: 617b str r3, [r7, #20]
  38419. /* Reset the Output N State */
  38420. tmpccer &= ~TIM_CCER_CC1NE;
  38421. 8010876: 697b ldr r3, [r7, #20]
  38422. 8010878: f023 0304 bic.w r3, r3, #4
  38423. 801087c: 617b str r3, [r7, #20]
  38424. }
  38425. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38426. 801087e: 687b ldr r3, [r7, #4]
  38427. 8010880: 4a1c ldr r2, [pc, #112] @ (80108f4 <TIM_OC1_SetConfig+0x10c>)
  38428. 8010882: 4293 cmp r3, r2
  38429. 8010884: d00f beq.n 80108a6 <TIM_OC1_SetConfig+0xbe>
  38430. 8010886: 687b ldr r3, [r7, #4]
  38431. 8010888: 4a1b ldr r2, [pc, #108] @ (80108f8 <TIM_OC1_SetConfig+0x110>)
  38432. 801088a: 4293 cmp r3, r2
  38433. 801088c: d00b beq.n 80108a6 <TIM_OC1_SetConfig+0xbe>
  38434. 801088e: 687b ldr r3, [r7, #4]
  38435. 8010890: 4a1a ldr r2, [pc, #104] @ (80108fc <TIM_OC1_SetConfig+0x114>)
  38436. 8010892: 4293 cmp r3, r2
  38437. 8010894: d007 beq.n 80108a6 <TIM_OC1_SetConfig+0xbe>
  38438. 8010896: 687b ldr r3, [r7, #4]
  38439. 8010898: 4a19 ldr r2, [pc, #100] @ (8010900 <TIM_OC1_SetConfig+0x118>)
  38440. 801089a: 4293 cmp r3, r2
  38441. 801089c: d003 beq.n 80108a6 <TIM_OC1_SetConfig+0xbe>
  38442. 801089e: 687b ldr r3, [r7, #4]
  38443. 80108a0: 4a18 ldr r2, [pc, #96] @ (8010904 <TIM_OC1_SetConfig+0x11c>)
  38444. 80108a2: 4293 cmp r3, r2
  38445. 80108a4: d111 bne.n 80108ca <TIM_OC1_SetConfig+0xe2>
  38446. /* Check parameters */
  38447. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38448. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38449. /* Reset the Output Compare and Output Compare N IDLE State */
  38450. tmpcr2 &= ~TIM_CR2_OIS1;
  38451. 80108a6: 693b ldr r3, [r7, #16]
  38452. 80108a8: f423 7380 bic.w r3, r3, #256 @ 0x100
  38453. 80108ac: 613b str r3, [r7, #16]
  38454. tmpcr2 &= ~TIM_CR2_OIS1N;
  38455. 80108ae: 693b ldr r3, [r7, #16]
  38456. 80108b0: f423 7300 bic.w r3, r3, #512 @ 0x200
  38457. 80108b4: 613b str r3, [r7, #16]
  38458. /* Set the Output Idle state */
  38459. tmpcr2 |= OC_Config->OCIdleState;
  38460. 80108b6: 683b ldr r3, [r7, #0]
  38461. 80108b8: 695b ldr r3, [r3, #20]
  38462. 80108ba: 693a ldr r2, [r7, #16]
  38463. 80108bc: 4313 orrs r3, r2
  38464. 80108be: 613b str r3, [r7, #16]
  38465. /* Set the Output N Idle state */
  38466. tmpcr2 |= OC_Config->OCNIdleState;
  38467. 80108c0: 683b ldr r3, [r7, #0]
  38468. 80108c2: 699b ldr r3, [r3, #24]
  38469. 80108c4: 693a ldr r2, [r7, #16]
  38470. 80108c6: 4313 orrs r3, r2
  38471. 80108c8: 613b str r3, [r7, #16]
  38472. }
  38473. /* Write to TIMx CR2 */
  38474. TIMx->CR2 = tmpcr2;
  38475. 80108ca: 687b ldr r3, [r7, #4]
  38476. 80108cc: 693a ldr r2, [r7, #16]
  38477. 80108ce: 605a str r2, [r3, #4]
  38478. /* Write to TIMx CCMR1 */
  38479. TIMx->CCMR1 = tmpccmrx;
  38480. 80108d0: 687b ldr r3, [r7, #4]
  38481. 80108d2: 68fa ldr r2, [r7, #12]
  38482. 80108d4: 619a str r2, [r3, #24]
  38483. /* Set the Capture Compare Register value */
  38484. TIMx->CCR1 = OC_Config->Pulse;
  38485. 80108d6: 683b ldr r3, [r7, #0]
  38486. 80108d8: 685a ldr r2, [r3, #4]
  38487. 80108da: 687b ldr r3, [r7, #4]
  38488. 80108dc: 635a str r2, [r3, #52] @ 0x34
  38489. /* Write to TIMx CCER */
  38490. TIMx->CCER = tmpccer;
  38491. 80108de: 687b ldr r3, [r7, #4]
  38492. 80108e0: 697a ldr r2, [r7, #20]
  38493. 80108e2: 621a str r2, [r3, #32]
  38494. }
  38495. 80108e4: bf00 nop
  38496. 80108e6: 371c adds r7, #28
  38497. 80108e8: 46bd mov sp, r7
  38498. 80108ea: f85d 7b04 ldr.w r7, [sp], #4
  38499. 80108ee: 4770 bx lr
  38500. 80108f0: fffeff8f .word 0xfffeff8f
  38501. 80108f4: 40010000 .word 0x40010000
  38502. 80108f8: 40010400 .word 0x40010400
  38503. 80108fc: 40014000 .word 0x40014000
  38504. 8010900: 40014400 .word 0x40014400
  38505. 8010904: 40014800 .word 0x40014800
  38506. 08010908 <TIM_OC2_SetConfig>:
  38507. * @param TIMx to select the TIM peripheral
  38508. * @param OC_Config The output configuration structure
  38509. * @retval None
  38510. */
  38511. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38512. {
  38513. 8010908: b480 push {r7}
  38514. 801090a: b087 sub sp, #28
  38515. 801090c: af00 add r7, sp, #0
  38516. 801090e: 6078 str r0, [r7, #4]
  38517. 8010910: 6039 str r1, [r7, #0]
  38518. uint32_t tmpccmrx;
  38519. uint32_t tmpccer;
  38520. uint32_t tmpcr2;
  38521. /* Get the TIMx CCER register value */
  38522. tmpccer = TIMx->CCER;
  38523. 8010912: 687b ldr r3, [r7, #4]
  38524. 8010914: 6a1b ldr r3, [r3, #32]
  38525. 8010916: 617b str r3, [r7, #20]
  38526. /* Disable the Channel 2: Reset the CC2E Bit */
  38527. TIMx->CCER &= ~TIM_CCER_CC2E;
  38528. 8010918: 687b ldr r3, [r7, #4]
  38529. 801091a: 6a1b ldr r3, [r3, #32]
  38530. 801091c: f023 0210 bic.w r2, r3, #16
  38531. 8010920: 687b ldr r3, [r7, #4]
  38532. 8010922: 621a str r2, [r3, #32]
  38533. /* Get the TIMx CR2 register value */
  38534. tmpcr2 = TIMx->CR2;
  38535. 8010924: 687b ldr r3, [r7, #4]
  38536. 8010926: 685b ldr r3, [r3, #4]
  38537. 8010928: 613b str r3, [r7, #16]
  38538. /* Get the TIMx CCMR1 register value */
  38539. tmpccmrx = TIMx->CCMR1;
  38540. 801092a: 687b ldr r3, [r7, #4]
  38541. 801092c: 699b ldr r3, [r3, #24]
  38542. 801092e: 60fb str r3, [r7, #12]
  38543. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38544. tmpccmrx &= ~TIM_CCMR1_OC2M;
  38545. 8010930: 68fa ldr r2, [r7, #12]
  38546. 8010932: 4b34 ldr r3, [pc, #208] @ (8010a04 <TIM_OC2_SetConfig+0xfc>)
  38547. 8010934: 4013 ands r3, r2
  38548. 8010936: 60fb str r3, [r7, #12]
  38549. tmpccmrx &= ~TIM_CCMR1_CC2S;
  38550. 8010938: 68fb ldr r3, [r7, #12]
  38551. 801093a: f423 7340 bic.w r3, r3, #768 @ 0x300
  38552. 801093e: 60fb str r3, [r7, #12]
  38553. /* Select the Output Compare Mode */
  38554. tmpccmrx |= (OC_Config->OCMode << 8U);
  38555. 8010940: 683b ldr r3, [r7, #0]
  38556. 8010942: 681b ldr r3, [r3, #0]
  38557. 8010944: 021b lsls r3, r3, #8
  38558. 8010946: 68fa ldr r2, [r7, #12]
  38559. 8010948: 4313 orrs r3, r2
  38560. 801094a: 60fb str r3, [r7, #12]
  38561. /* Reset the Output Polarity level */
  38562. tmpccer &= ~TIM_CCER_CC2P;
  38563. 801094c: 697b ldr r3, [r7, #20]
  38564. 801094e: f023 0320 bic.w r3, r3, #32
  38565. 8010952: 617b str r3, [r7, #20]
  38566. /* Set the Output Compare Polarity */
  38567. tmpccer |= (OC_Config->OCPolarity << 4U);
  38568. 8010954: 683b ldr r3, [r7, #0]
  38569. 8010956: 689b ldr r3, [r3, #8]
  38570. 8010958: 011b lsls r3, r3, #4
  38571. 801095a: 697a ldr r2, [r7, #20]
  38572. 801095c: 4313 orrs r3, r2
  38573. 801095e: 617b str r3, [r7, #20]
  38574. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  38575. 8010960: 687b ldr r3, [r7, #4]
  38576. 8010962: 4a29 ldr r2, [pc, #164] @ (8010a08 <TIM_OC2_SetConfig+0x100>)
  38577. 8010964: 4293 cmp r3, r2
  38578. 8010966: d003 beq.n 8010970 <TIM_OC2_SetConfig+0x68>
  38579. 8010968: 687b ldr r3, [r7, #4]
  38580. 801096a: 4a28 ldr r2, [pc, #160] @ (8010a0c <TIM_OC2_SetConfig+0x104>)
  38581. 801096c: 4293 cmp r3, r2
  38582. 801096e: d10d bne.n 801098c <TIM_OC2_SetConfig+0x84>
  38583. {
  38584. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38585. /* Reset the Output N Polarity level */
  38586. tmpccer &= ~TIM_CCER_CC2NP;
  38587. 8010970: 697b ldr r3, [r7, #20]
  38588. 8010972: f023 0380 bic.w r3, r3, #128 @ 0x80
  38589. 8010976: 617b str r3, [r7, #20]
  38590. /* Set the Output N Polarity */
  38591. tmpccer |= (OC_Config->OCNPolarity << 4U);
  38592. 8010978: 683b ldr r3, [r7, #0]
  38593. 801097a: 68db ldr r3, [r3, #12]
  38594. 801097c: 011b lsls r3, r3, #4
  38595. 801097e: 697a ldr r2, [r7, #20]
  38596. 8010980: 4313 orrs r3, r2
  38597. 8010982: 617b str r3, [r7, #20]
  38598. /* Reset the Output N State */
  38599. tmpccer &= ~TIM_CCER_CC2NE;
  38600. 8010984: 697b ldr r3, [r7, #20]
  38601. 8010986: f023 0340 bic.w r3, r3, #64 @ 0x40
  38602. 801098a: 617b str r3, [r7, #20]
  38603. }
  38604. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38605. 801098c: 687b ldr r3, [r7, #4]
  38606. 801098e: 4a1e ldr r2, [pc, #120] @ (8010a08 <TIM_OC2_SetConfig+0x100>)
  38607. 8010990: 4293 cmp r3, r2
  38608. 8010992: d00f beq.n 80109b4 <TIM_OC2_SetConfig+0xac>
  38609. 8010994: 687b ldr r3, [r7, #4]
  38610. 8010996: 4a1d ldr r2, [pc, #116] @ (8010a0c <TIM_OC2_SetConfig+0x104>)
  38611. 8010998: 4293 cmp r3, r2
  38612. 801099a: d00b beq.n 80109b4 <TIM_OC2_SetConfig+0xac>
  38613. 801099c: 687b ldr r3, [r7, #4]
  38614. 801099e: 4a1c ldr r2, [pc, #112] @ (8010a10 <TIM_OC2_SetConfig+0x108>)
  38615. 80109a0: 4293 cmp r3, r2
  38616. 80109a2: d007 beq.n 80109b4 <TIM_OC2_SetConfig+0xac>
  38617. 80109a4: 687b ldr r3, [r7, #4]
  38618. 80109a6: 4a1b ldr r2, [pc, #108] @ (8010a14 <TIM_OC2_SetConfig+0x10c>)
  38619. 80109a8: 4293 cmp r3, r2
  38620. 80109aa: d003 beq.n 80109b4 <TIM_OC2_SetConfig+0xac>
  38621. 80109ac: 687b ldr r3, [r7, #4]
  38622. 80109ae: 4a1a ldr r2, [pc, #104] @ (8010a18 <TIM_OC2_SetConfig+0x110>)
  38623. 80109b0: 4293 cmp r3, r2
  38624. 80109b2: d113 bne.n 80109dc <TIM_OC2_SetConfig+0xd4>
  38625. /* Check parameters */
  38626. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38627. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38628. /* Reset the Output Compare and Output Compare N IDLE State */
  38629. tmpcr2 &= ~TIM_CR2_OIS2;
  38630. 80109b4: 693b ldr r3, [r7, #16]
  38631. 80109b6: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38632. 80109ba: 613b str r3, [r7, #16]
  38633. tmpcr2 &= ~TIM_CR2_OIS2N;
  38634. 80109bc: 693b ldr r3, [r7, #16]
  38635. 80109be: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38636. 80109c2: 613b str r3, [r7, #16]
  38637. /* Set the Output Idle state */
  38638. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  38639. 80109c4: 683b ldr r3, [r7, #0]
  38640. 80109c6: 695b ldr r3, [r3, #20]
  38641. 80109c8: 009b lsls r3, r3, #2
  38642. 80109ca: 693a ldr r2, [r7, #16]
  38643. 80109cc: 4313 orrs r3, r2
  38644. 80109ce: 613b str r3, [r7, #16]
  38645. /* Set the Output N Idle state */
  38646. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  38647. 80109d0: 683b ldr r3, [r7, #0]
  38648. 80109d2: 699b ldr r3, [r3, #24]
  38649. 80109d4: 009b lsls r3, r3, #2
  38650. 80109d6: 693a ldr r2, [r7, #16]
  38651. 80109d8: 4313 orrs r3, r2
  38652. 80109da: 613b str r3, [r7, #16]
  38653. }
  38654. /* Write to TIMx CR2 */
  38655. TIMx->CR2 = tmpcr2;
  38656. 80109dc: 687b ldr r3, [r7, #4]
  38657. 80109de: 693a ldr r2, [r7, #16]
  38658. 80109e0: 605a str r2, [r3, #4]
  38659. /* Write to TIMx CCMR1 */
  38660. TIMx->CCMR1 = tmpccmrx;
  38661. 80109e2: 687b ldr r3, [r7, #4]
  38662. 80109e4: 68fa ldr r2, [r7, #12]
  38663. 80109e6: 619a str r2, [r3, #24]
  38664. /* Set the Capture Compare Register value */
  38665. TIMx->CCR2 = OC_Config->Pulse;
  38666. 80109e8: 683b ldr r3, [r7, #0]
  38667. 80109ea: 685a ldr r2, [r3, #4]
  38668. 80109ec: 687b ldr r3, [r7, #4]
  38669. 80109ee: 639a str r2, [r3, #56] @ 0x38
  38670. /* Write to TIMx CCER */
  38671. TIMx->CCER = tmpccer;
  38672. 80109f0: 687b ldr r3, [r7, #4]
  38673. 80109f2: 697a ldr r2, [r7, #20]
  38674. 80109f4: 621a str r2, [r3, #32]
  38675. }
  38676. 80109f6: bf00 nop
  38677. 80109f8: 371c adds r7, #28
  38678. 80109fa: 46bd mov sp, r7
  38679. 80109fc: f85d 7b04 ldr.w r7, [sp], #4
  38680. 8010a00: 4770 bx lr
  38681. 8010a02: bf00 nop
  38682. 8010a04: feff8fff .word 0xfeff8fff
  38683. 8010a08: 40010000 .word 0x40010000
  38684. 8010a0c: 40010400 .word 0x40010400
  38685. 8010a10: 40014000 .word 0x40014000
  38686. 8010a14: 40014400 .word 0x40014400
  38687. 8010a18: 40014800 .word 0x40014800
  38688. 08010a1c <TIM_OC3_SetConfig>:
  38689. * @param TIMx to select the TIM peripheral
  38690. * @param OC_Config The output configuration structure
  38691. * @retval None
  38692. */
  38693. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38694. {
  38695. 8010a1c: b480 push {r7}
  38696. 8010a1e: b087 sub sp, #28
  38697. 8010a20: af00 add r7, sp, #0
  38698. 8010a22: 6078 str r0, [r7, #4]
  38699. 8010a24: 6039 str r1, [r7, #0]
  38700. uint32_t tmpccmrx;
  38701. uint32_t tmpccer;
  38702. uint32_t tmpcr2;
  38703. /* Get the TIMx CCER register value */
  38704. tmpccer = TIMx->CCER;
  38705. 8010a26: 687b ldr r3, [r7, #4]
  38706. 8010a28: 6a1b ldr r3, [r3, #32]
  38707. 8010a2a: 617b str r3, [r7, #20]
  38708. /* Disable the Channel 3: Reset the CC2E Bit */
  38709. TIMx->CCER &= ~TIM_CCER_CC3E;
  38710. 8010a2c: 687b ldr r3, [r7, #4]
  38711. 8010a2e: 6a1b ldr r3, [r3, #32]
  38712. 8010a30: f423 7280 bic.w r2, r3, #256 @ 0x100
  38713. 8010a34: 687b ldr r3, [r7, #4]
  38714. 8010a36: 621a str r2, [r3, #32]
  38715. /* Get the TIMx CR2 register value */
  38716. tmpcr2 = TIMx->CR2;
  38717. 8010a38: 687b ldr r3, [r7, #4]
  38718. 8010a3a: 685b ldr r3, [r3, #4]
  38719. 8010a3c: 613b str r3, [r7, #16]
  38720. /* Get the TIMx CCMR2 register value */
  38721. tmpccmrx = TIMx->CCMR2;
  38722. 8010a3e: 687b ldr r3, [r7, #4]
  38723. 8010a40: 69db ldr r3, [r3, #28]
  38724. 8010a42: 60fb str r3, [r7, #12]
  38725. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38726. tmpccmrx &= ~TIM_CCMR2_OC3M;
  38727. 8010a44: 68fa ldr r2, [r7, #12]
  38728. 8010a46: 4b33 ldr r3, [pc, #204] @ (8010b14 <TIM_OC3_SetConfig+0xf8>)
  38729. 8010a48: 4013 ands r3, r2
  38730. 8010a4a: 60fb str r3, [r7, #12]
  38731. tmpccmrx &= ~TIM_CCMR2_CC3S;
  38732. 8010a4c: 68fb ldr r3, [r7, #12]
  38733. 8010a4e: f023 0303 bic.w r3, r3, #3
  38734. 8010a52: 60fb str r3, [r7, #12]
  38735. /* Select the Output Compare Mode */
  38736. tmpccmrx |= OC_Config->OCMode;
  38737. 8010a54: 683b ldr r3, [r7, #0]
  38738. 8010a56: 681b ldr r3, [r3, #0]
  38739. 8010a58: 68fa ldr r2, [r7, #12]
  38740. 8010a5a: 4313 orrs r3, r2
  38741. 8010a5c: 60fb str r3, [r7, #12]
  38742. /* Reset the Output Polarity level */
  38743. tmpccer &= ~TIM_CCER_CC3P;
  38744. 8010a5e: 697b ldr r3, [r7, #20]
  38745. 8010a60: f423 7300 bic.w r3, r3, #512 @ 0x200
  38746. 8010a64: 617b str r3, [r7, #20]
  38747. /* Set the Output Compare Polarity */
  38748. tmpccer |= (OC_Config->OCPolarity << 8U);
  38749. 8010a66: 683b ldr r3, [r7, #0]
  38750. 8010a68: 689b ldr r3, [r3, #8]
  38751. 8010a6a: 021b lsls r3, r3, #8
  38752. 8010a6c: 697a ldr r2, [r7, #20]
  38753. 8010a6e: 4313 orrs r3, r2
  38754. 8010a70: 617b str r3, [r7, #20]
  38755. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  38756. 8010a72: 687b ldr r3, [r7, #4]
  38757. 8010a74: 4a28 ldr r2, [pc, #160] @ (8010b18 <TIM_OC3_SetConfig+0xfc>)
  38758. 8010a76: 4293 cmp r3, r2
  38759. 8010a78: d003 beq.n 8010a82 <TIM_OC3_SetConfig+0x66>
  38760. 8010a7a: 687b ldr r3, [r7, #4]
  38761. 8010a7c: 4a27 ldr r2, [pc, #156] @ (8010b1c <TIM_OC3_SetConfig+0x100>)
  38762. 8010a7e: 4293 cmp r3, r2
  38763. 8010a80: d10d bne.n 8010a9e <TIM_OC3_SetConfig+0x82>
  38764. {
  38765. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  38766. /* Reset the Output N Polarity level */
  38767. tmpccer &= ~TIM_CCER_CC3NP;
  38768. 8010a82: 697b ldr r3, [r7, #20]
  38769. 8010a84: f423 6300 bic.w r3, r3, #2048 @ 0x800
  38770. 8010a88: 617b str r3, [r7, #20]
  38771. /* Set the Output N Polarity */
  38772. tmpccer |= (OC_Config->OCNPolarity << 8U);
  38773. 8010a8a: 683b ldr r3, [r7, #0]
  38774. 8010a8c: 68db ldr r3, [r3, #12]
  38775. 8010a8e: 021b lsls r3, r3, #8
  38776. 8010a90: 697a ldr r2, [r7, #20]
  38777. 8010a92: 4313 orrs r3, r2
  38778. 8010a94: 617b str r3, [r7, #20]
  38779. /* Reset the Output N State */
  38780. tmpccer &= ~TIM_CCER_CC3NE;
  38781. 8010a96: 697b ldr r3, [r7, #20]
  38782. 8010a98: f423 6380 bic.w r3, r3, #1024 @ 0x400
  38783. 8010a9c: 617b str r3, [r7, #20]
  38784. }
  38785. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38786. 8010a9e: 687b ldr r3, [r7, #4]
  38787. 8010aa0: 4a1d ldr r2, [pc, #116] @ (8010b18 <TIM_OC3_SetConfig+0xfc>)
  38788. 8010aa2: 4293 cmp r3, r2
  38789. 8010aa4: d00f beq.n 8010ac6 <TIM_OC3_SetConfig+0xaa>
  38790. 8010aa6: 687b ldr r3, [r7, #4]
  38791. 8010aa8: 4a1c ldr r2, [pc, #112] @ (8010b1c <TIM_OC3_SetConfig+0x100>)
  38792. 8010aaa: 4293 cmp r3, r2
  38793. 8010aac: d00b beq.n 8010ac6 <TIM_OC3_SetConfig+0xaa>
  38794. 8010aae: 687b ldr r3, [r7, #4]
  38795. 8010ab0: 4a1b ldr r2, [pc, #108] @ (8010b20 <TIM_OC3_SetConfig+0x104>)
  38796. 8010ab2: 4293 cmp r3, r2
  38797. 8010ab4: d007 beq.n 8010ac6 <TIM_OC3_SetConfig+0xaa>
  38798. 8010ab6: 687b ldr r3, [r7, #4]
  38799. 8010ab8: 4a1a ldr r2, [pc, #104] @ (8010b24 <TIM_OC3_SetConfig+0x108>)
  38800. 8010aba: 4293 cmp r3, r2
  38801. 8010abc: d003 beq.n 8010ac6 <TIM_OC3_SetConfig+0xaa>
  38802. 8010abe: 687b ldr r3, [r7, #4]
  38803. 8010ac0: 4a19 ldr r2, [pc, #100] @ (8010b28 <TIM_OC3_SetConfig+0x10c>)
  38804. 8010ac2: 4293 cmp r3, r2
  38805. 8010ac4: d113 bne.n 8010aee <TIM_OC3_SetConfig+0xd2>
  38806. /* Check parameters */
  38807. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  38808. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38809. /* Reset the Output Compare and Output Compare N IDLE State */
  38810. tmpcr2 &= ~TIM_CR2_OIS3;
  38811. 8010ac6: 693b ldr r3, [r7, #16]
  38812. 8010ac8: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  38813. 8010acc: 613b str r3, [r7, #16]
  38814. tmpcr2 &= ~TIM_CR2_OIS3N;
  38815. 8010ace: 693b ldr r3, [r7, #16]
  38816. 8010ad0: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38817. 8010ad4: 613b str r3, [r7, #16]
  38818. /* Set the Output Idle state */
  38819. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  38820. 8010ad6: 683b ldr r3, [r7, #0]
  38821. 8010ad8: 695b ldr r3, [r3, #20]
  38822. 8010ada: 011b lsls r3, r3, #4
  38823. 8010adc: 693a ldr r2, [r7, #16]
  38824. 8010ade: 4313 orrs r3, r2
  38825. 8010ae0: 613b str r3, [r7, #16]
  38826. /* Set the Output N Idle state */
  38827. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  38828. 8010ae2: 683b ldr r3, [r7, #0]
  38829. 8010ae4: 699b ldr r3, [r3, #24]
  38830. 8010ae6: 011b lsls r3, r3, #4
  38831. 8010ae8: 693a ldr r2, [r7, #16]
  38832. 8010aea: 4313 orrs r3, r2
  38833. 8010aec: 613b str r3, [r7, #16]
  38834. }
  38835. /* Write to TIMx CR2 */
  38836. TIMx->CR2 = tmpcr2;
  38837. 8010aee: 687b ldr r3, [r7, #4]
  38838. 8010af0: 693a ldr r2, [r7, #16]
  38839. 8010af2: 605a str r2, [r3, #4]
  38840. /* Write to TIMx CCMR2 */
  38841. TIMx->CCMR2 = tmpccmrx;
  38842. 8010af4: 687b ldr r3, [r7, #4]
  38843. 8010af6: 68fa ldr r2, [r7, #12]
  38844. 8010af8: 61da str r2, [r3, #28]
  38845. /* Set the Capture Compare Register value */
  38846. TIMx->CCR3 = OC_Config->Pulse;
  38847. 8010afa: 683b ldr r3, [r7, #0]
  38848. 8010afc: 685a ldr r2, [r3, #4]
  38849. 8010afe: 687b ldr r3, [r7, #4]
  38850. 8010b00: 63da str r2, [r3, #60] @ 0x3c
  38851. /* Write to TIMx CCER */
  38852. TIMx->CCER = tmpccer;
  38853. 8010b02: 687b ldr r3, [r7, #4]
  38854. 8010b04: 697a ldr r2, [r7, #20]
  38855. 8010b06: 621a str r2, [r3, #32]
  38856. }
  38857. 8010b08: bf00 nop
  38858. 8010b0a: 371c adds r7, #28
  38859. 8010b0c: 46bd mov sp, r7
  38860. 8010b0e: f85d 7b04 ldr.w r7, [sp], #4
  38861. 8010b12: 4770 bx lr
  38862. 8010b14: fffeff8f .word 0xfffeff8f
  38863. 8010b18: 40010000 .word 0x40010000
  38864. 8010b1c: 40010400 .word 0x40010400
  38865. 8010b20: 40014000 .word 0x40014000
  38866. 8010b24: 40014400 .word 0x40014400
  38867. 8010b28: 40014800 .word 0x40014800
  38868. 08010b2c <TIM_OC4_SetConfig>:
  38869. * @param TIMx to select the TIM peripheral
  38870. * @param OC_Config The output configuration structure
  38871. * @retval None
  38872. */
  38873. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  38874. {
  38875. 8010b2c: b480 push {r7}
  38876. 8010b2e: b087 sub sp, #28
  38877. 8010b30: af00 add r7, sp, #0
  38878. 8010b32: 6078 str r0, [r7, #4]
  38879. 8010b34: 6039 str r1, [r7, #0]
  38880. uint32_t tmpccmrx;
  38881. uint32_t tmpccer;
  38882. uint32_t tmpcr2;
  38883. /* Get the TIMx CCER register value */
  38884. tmpccer = TIMx->CCER;
  38885. 8010b36: 687b ldr r3, [r7, #4]
  38886. 8010b38: 6a1b ldr r3, [r3, #32]
  38887. 8010b3a: 613b str r3, [r7, #16]
  38888. /* Disable the Channel 4: Reset the CC4E Bit */
  38889. TIMx->CCER &= ~TIM_CCER_CC4E;
  38890. 8010b3c: 687b ldr r3, [r7, #4]
  38891. 8010b3e: 6a1b ldr r3, [r3, #32]
  38892. 8010b40: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38893. 8010b44: 687b ldr r3, [r7, #4]
  38894. 8010b46: 621a str r2, [r3, #32]
  38895. /* Get the TIMx CR2 register value */
  38896. tmpcr2 = TIMx->CR2;
  38897. 8010b48: 687b ldr r3, [r7, #4]
  38898. 8010b4a: 685b ldr r3, [r3, #4]
  38899. 8010b4c: 617b str r3, [r7, #20]
  38900. /* Get the TIMx CCMR2 register value */
  38901. tmpccmrx = TIMx->CCMR2;
  38902. 8010b4e: 687b ldr r3, [r7, #4]
  38903. 8010b50: 69db ldr r3, [r3, #28]
  38904. 8010b52: 60fb str r3, [r7, #12]
  38905. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  38906. tmpccmrx &= ~TIM_CCMR2_OC4M;
  38907. 8010b54: 68fa ldr r2, [r7, #12]
  38908. 8010b56: 4b24 ldr r3, [pc, #144] @ (8010be8 <TIM_OC4_SetConfig+0xbc>)
  38909. 8010b58: 4013 ands r3, r2
  38910. 8010b5a: 60fb str r3, [r7, #12]
  38911. tmpccmrx &= ~TIM_CCMR2_CC4S;
  38912. 8010b5c: 68fb ldr r3, [r7, #12]
  38913. 8010b5e: f423 7340 bic.w r3, r3, #768 @ 0x300
  38914. 8010b62: 60fb str r3, [r7, #12]
  38915. /* Select the Output Compare Mode */
  38916. tmpccmrx |= (OC_Config->OCMode << 8U);
  38917. 8010b64: 683b ldr r3, [r7, #0]
  38918. 8010b66: 681b ldr r3, [r3, #0]
  38919. 8010b68: 021b lsls r3, r3, #8
  38920. 8010b6a: 68fa ldr r2, [r7, #12]
  38921. 8010b6c: 4313 orrs r3, r2
  38922. 8010b6e: 60fb str r3, [r7, #12]
  38923. /* Reset the Output Polarity level */
  38924. tmpccer &= ~TIM_CCER_CC4P;
  38925. 8010b70: 693b ldr r3, [r7, #16]
  38926. 8010b72: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  38927. 8010b76: 613b str r3, [r7, #16]
  38928. /* Set the Output Compare Polarity */
  38929. tmpccer |= (OC_Config->OCPolarity << 12U);
  38930. 8010b78: 683b ldr r3, [r7, #0]
  38931. 8010b7a: 689b ldr r3, [r3, #8]
  38932. 8010b7c: 031b lsls r3, r3, #12
  38933. 8010b7e: 693a ldr r2, [r7, #16]
  38934. 8010b80: 4313 orrs r3, r2
  38935. 8010b82: 613b str r3, [r7, #16]
  38936. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38937. 8010b84: 687b ldr r3, [r7, #4]
  38938. 8010b86: 4a19 ldr r2, [pc, #100] @ (8010bec <TIM_OC4_SetConfig+0xc0>)
  38939. 8010b88: 4293 cmp r3, r2
  38940. 8010b8a: d00f beq.n 8010bac <TIM_OC4_SetConfig+0x80>
  38941. 8010b8c: 687b ldr r3, [r7, #4]
  38942. 8010b8e: 4a18 ldr r2, [pc, #96] @ (8010bf0 <TIM_OC4_SetConfig+0xc4>)
  38943. 8010b90: 4293 cmp r3, r2
  38944. 8010b92: d00b beq.n 8010bac <TIM_OC4_SetConfig+0x80>
  38945. 8010b94: 687b ldr r3, [r7, #4]
  38946. 8010b96: 4a17 ldr r2, [pc, #92] @ (8010bf4 <TIM_OC4_SetConfig+0xc8>)
  38947. 8010b98: 4293 cmp r3, r2
  38948. 8010b9a: d007 beq.n 8010bac <TIM_OC4_SetConfig+0x80>
  38949. 8010b9c: 687b ldr r3, [r7, #4]
  38950. 8010b9e: 4a16 ldr r2, [pc, #88] @ (8010bf8 <TIM_OC4_SetConfig+0xcc>)
  38951. 8010ba0: 4293 cmp r3, r2
  38952. 8010ba2: d003 beq.n 8010bac <TIM_OC4_SetConfig+0x80>
  38953. 8010ba4: 687b ldr r3, [r7, #4]
  38954. 8010ba6: 4a15 ldr r2, [pc, #84] @ (8010bfc <TIM_OC4_SetConfig+0xd0>)
  38955. 8010ba8: 4293 cmp r3, r2
  38956. 8010baa: d109 bne.n 8010bc0 <TIM_OC4_SetConfig+0x94>
  38957. {
  38958. /* Check parameters */
  38959. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  38960. /* Reset the Output Compare IDLE State */
  38961. tmpcr2 &= ~TIM_CR2_OIS4;
  38962. 8010bac: 697b ldr r3, [r7, #20]
  38963. 8010bae: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  38964. 8010bb2: 617b str r3, [r7, #20]
  38965. /* Set the Output Idle state */
  38966. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  38967. 8010bb4: 683b ldr r3, [r7, #0]
  38968. 8010bb6: 695b ldr r3, [r3, #20]
  38969. 8010bb8: 019b lsls r3, r3, #6
  38970. 8010bba: 697a ldr r2, [r7, #20]
  38971. 8010bbc: 4313 orrs r3, r2
  38972. 8010bbe: 617b str r3, [r7, #20]
  38973. }
  38974. /* Write to TIMx CR2 */
  38975. TIMx->CR2 = tmpcr2;
  38976. 8010bc0: 687b ldr r3, [r7, #4]
  38977. 8010bc2: 697a ldr r2, [r7, #20]
  38978. 8010bc4: 605a str r2, [r3, #4]
  38979. /* Write to TIMx CCMR2 */
  38980. TIMx->CCMR2 = tmpccmrx;
  38981. 8010bc6: 687b ldr r3, [r7, #4]
  38982. 8010bc8: 68fa ldr r2, [r7, #12]
  38983. 8010bca: 61da str r2, [r3, #28]
  38984. /* Set the Capture Compare Register value */
  38985. TIMx->CCR4 = OC_Config->Pulse;
  38986. 8010bcc: 683b ldr r3, [r7, #0]
  38987. 8010bce: 685a ldr r2, [r3, #4]
  38988. 8010bd0: 687b ldr r3, [r7, #4]
  38989. 8010bd2: 641a str r2, [r3, #64] @ 0x40
  38990. /* Write to TIMx CCER */
  38991. TIMx->CCER = tmpccer;
  38992. 8010bd4: 687b ldr r3, [r7, #4]
  38993. 8010bd6: 693a ldr r2, [r7, #16]
  38994. 8010bd8: 621a str r2, [r3, #32]
  38995. }
  38996. 8010bda: bf00 nop
  38997. 8010bdc: 371c adds r7, #28
  38998. 8010bde: 46bd mov sp, r7
  38999. 8010be0: f85d 7b04 ldr.w r7, [sp], #4
  39000. 8010be4: 4770 bx lr
  39001. 8010be6: bf00 nop
  39002. 8010be8: feff8fff .word 0xfeff8fff
  39003. 8010bec: 40010000 .word 0x40010000
  39004. 8010bf0: 40010400 .word 0x40010400
  39005. 8010bf4: 40014000 .word 0x40014000
  39006. 8010bf8: 40014400 .word 0x40014400
  39007. 8010bfc: 40014800 .word 0x40014800
  39008. 08010c00 <TIM_OC5_SetConfig>:
  39009. * @param OC_Config The output configuration structure
  39010. * @retval None
  39011. */
  39012. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  39013. const TIM_OC_InitTypeDef *OC_Config)
  39014. {
  39015. 8010c00: b480 push {r7}
  39016. 8010c02: b087 sub sp, #28
  39017. 8010c04: af00 add r7, sp, #0
  39018. 8010c06: 6078 str r0, [r7, #4]
  39019. 8010c08: 6039 str r1, [r7, #0]
  39020. uint32_t tmpccmrx;
  39021. uint32_t tmpccer;
  39022. uint32_t tmpcr2;
  39023. /* Get the TIMx CCER register value */
  39024. tmpccer = TIMx->CCER;
  39025. 8010c0a: 687b ldr r3, [r7, #4]
  39026. 8010c0c: 6a1b ldr r3, [r3, #32]
  39027. 8010c0e: 613b str r3, [r7, #16]
  39028. /* Disable the output: Reset the CCxE Bit */
  39029. TIMx->CCER &= ~TIM_CCER_CC5E;
  39030. 8010c10: 687b ldr r3, [r7, #4]
  39031. 8010c12: 6a1b ldr r3, [r3, #32]
  39032. 8010c14: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  39033. 8010c18: 687b ldr r3, [r7, #4]
  39034. 8010c1a: 621a str r2, [r3, #32]
  39035. /* Get the TIMx CR2 register value */
  39036. tmpcr2 = TIMx->CR2;
  39037. 8010c1c: 687b ldr r3, [r7, #4]
  39038. 8010c1e: 685b ldr r3, [r3, #4]
  39039. 8010c20: 617b str r3, [r7, #20]
  39040. /* Get the TIMx CCMR1 register value */
  39041. tmpccmrx = TIMx->CCMR3;
  39042. 8010c22: 687b ldr r3, [r7, #4]
  39043. 8010c24: 6d5b ldr r3, [r3, #84] @ 0x54
  39044. 8010c26: 60fb str r3, [r7, #12]
  39045. /* Reset the Output Compare Mode Bits */
  39046. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  39047. 8010c28: 68fa ldr r2, [r7, #12]
  39048. 8010c2a: 4b21 ldr r3, [pc, #132] @ (8010cb0 <TIM_OC5_SetConfig+0xb0>)
  39049. 8010c2c: 4013 ands r3, r2
  39050. 8010c2e: 60fb str r3, [r7, #12]
  39051. /* Select the Output Compare Mode */
  39052. tmpccmrx |= OC_Config->OCMode;
  39053. 8010c30: 683b ldr r3, [r7, #0]
  39054. 8010c32: 681b ldr r3, [r3, #0]
  39055. 8010c34: 68fa ldr r2, [r7, #12]
  39056. 8010c36: 4313 orrs r3, r2
  39057. 8010c38: 60fb str r3, [r7, #12]
  39058. /* Reset the Output Polarity level */
  39059. tmpccer &= ~TIM_CCER_CC5P;
  39060. 8010c3a: 693b ldr r3, [r7, #16]
  39061. 8010c3c: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  39062. 8010c40: 613b str r3, [r7, #16]
  39063. /* Set the Output Compare Polarity */
  39064. tmpccer |= (OC_Config->OCPolarity << 16U);
  39065. 8010c42: 683b ldr r3, [r7, #0]
  39066. 8010c44: 689b ldr r3, [r3, #8]
  39067. 8010c46: 041b lsls r3, r3, #16
  39068. 8010c48: 693a ldr r2, [r7, #16]
  39069. 8010c4a: 4313 orrs r3, r2
  39070. 8010c4c: 613b str r3, [r7, #16]
  39071. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39072. 8010c4e: 687b ldr r3, [r7, #4]
  39073. 8010c50: 4a18 ldr r2, [pc, #96] @ (8010cb4 <TIM_OC5_SetConfig+0xb4>)
  39074. 8010c52: 4293 cmp r3, r2
  39075. 8010c54: d00f beq.n 8010c76 <TIM_OC5_SetConfig+0x76>
  39076. 8010c56: 687b ldr r3, [r7, #4]
  39077. 8010c58: 4a17 ldr r2, [pc, #92] @ (8010cb8 <TIM_OC5_SetConfig+0xb8>)
  39078. 8010c5a: 4293 cmp r3, r2
  39079. 8010c5c: d00b beq.n 8010c76 <TIM_OC5_SetConfig+0x76>
  39080. 8010c5e: 687b ldr r3, [r7, #4]
  39081. 8010c60: 4a16 ldr r2, [pc, #88] @ (8010cbc <TIM_OC5_SetConfig+0xbc>)
  39082. 8010c62: 4293 cmp r3, r2
  39083. 8010c64: d007 beq.n 8010c76 <TIM_OC5_SetConfig+0x76>
  39084. 8010c66: 687b ldr r3, [r7, #4]
  39085. 8010c68: 4a15 ldr r2, [pc, #84] @ (8010cc0 <TIM_OC5_SetConfig+0xc0>)
  39086. 8010c6a: 4293 cmp r3, r2
  39087. 8010c6c: d003 beq.n 8010c76 <TIM_OC5_SetConfig+0x76>
  39088. 8010c6e: 687b ldr r3, [r7, #4]
  39089. 8010c70: 4a14 ldr r2, [pc, #80] @ (8010cc4 <TIM_OC5_SetConfig+0xc4>)
  39090. 8010c72: 4293 cmp r3, r2
  39091. 8010c74: d109 bne.n 8010c8a <TIM_OC5_SetConfig+0x8a>
  39092. {
  39093. /* Reset the Output Compare IDLE State */
  39094. tmpcr2 &= ~TIM_CR2_OIS5;
  39095. 8010c76: 697b ldr r3, [r7, #20]
  39096. 8010c78: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  39097. 8010c7c: 617b str r3, [r7, #20]
  39098. /* Set the Output Idle state */
  39099. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  39100. 8010c7e: 683b ldr r3, [r7, #0]
  39101. 8010c80: 695b ldr r3, [r3, #20]
  39102. 8010c82: 021b lsls r3, r3, #8
  39103. 8010c84: 697a ldr r2, [r7, #20]
  39104. 8010c86: 4313 orrs r3, r2
  39105. 8010c88: 617b str r3, [r7, #20]
  39106. }
  39107. /* Write to TIMx CR2 */
  39108. TIMx->CR2 = tmpcr2;
  39109. 8010c8a: 687b ldr r3, [r7, #4]
  39110. 8010c8c: 697a ldr r2, [r7, #20]
  39111. 8010c8e: 605a str r2, [r3, #4]
  39112. /* Write to TIMx CCMR3 */
  39113. TIMx->CCMR3 = tmpccmrx;
  39114. 8010c90: 687b ldr r3, [r7, #4]
  39115. 8010c92: 68fa ldr r2, [r7, #12]
  39116. 8010c94: 655a str r2, [r3, #84] @ 0x54
  39117. /* Set the Capture Compare Register value */
  39118. TIMx->CCR5 = OC_Config->Pulse;
  39119. 8010c96: 683b ldr r3, [r7, #0]
  39120. 8010c98: 685a ldr r2, [r3, #4]
  39121. 8010c9a: 687b ldr r3, [r7, #4]
  39122. 8010c9c: 659a str r2, [r3, #88] @ 0x58
  39123. /* Write to TIMx CCER */
  39124. TIMx->CCER = tmpccer;
  39125. 8010c9e: 687b ldr r3, [r7, #4]
  39126. 8010ca0: 693a ldr r2, [r7, #16]
  39127. 8010ca2: 621a str r2, [r3, #32]
  39128. }
  39129. 8010ca4: bf00 nop
  39130. 8010ca6: 371c adds r7, #28
  39131. 8010ca8: 46bd mov sp, r7
  39132. 8010caa: f85d 7b04 ldr.w r7, [sp], #4
  39133. 8010cae: 4770 bx lr
  39134. 8010cb0: fffeff8f .word 0xfffeff8f
  39135. 8010cb4: 40010000 .word 0x40010000
  39136. 8010cb8: 40010400 .word 0x40010400
  39137. 8010cbc: 40014000 .word 0x40014000
  39138. 8010cc0: 40014400 .word 0x40014400
  39139. 8010cc4: 40014800 .word 0x40014800
  39140. 08010cc8 <TIM_OC6_SetConfig>:
  39141. * @param OC_Config The output configuration structure
  39142. * @retval None
  39143. */
  39144. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  39145. const TIM_OC_InitTypeDef *OC_Config)
  39146. {
  39147. 8010cc8: b480 push {r7}
  39148. 8010cca: b087 sub sp, #28
  39149. 8010ccc: af00 add r7, sp, #0
  39150. 8010cce: 6078 str r0, [r7, #4]
  39151. 8010cd0: 6039 str r1, [r7, #0]
  39152. uint32_t tmpccmrx;
  39153. uint32_t tmpccer;
  39154. uint32_t tmpcr2;
  39155. /* Get the TIMx CCER register value */
  39156. tmpccer = TIMx->CCER;
  39157. 8010cd2: 687b ldr r3, [r7, #4]
  39158. 8010cd4: 6a1b ldr r3, [r3, #32]
  39159. 8010cd6: 613b str r3, [r7, #16]
  39160. /* Disable the output: Reset the CCxE Bit */
  39161. TIMx->CCER &= ~TIM_CCER_CC6E;
  39162. 8010cd8: 687b ldr r3, [r7, #4]
  39163. 8010cda: 6a1b ldr r3, [r3, #32]
  39164. 8010cdc: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  39165. 8010ce0: 687b ldr r3, [r7, #4]
  39166. 8010ce2: 621a str r2, [r3, #32]
  39167. /* Get the TIMx CR2 register value */
  39168. tmpcr2 = TIMx->CR2;
  39169. 8010ce4: 687b ldr r3, [r7, #4]
  39170. 8010ce6: 685b ldr r3, [r3, #4]
  39171. 8010ce8: 617b str r3, [r7, #20]
  39172. /* Get the TIMx CCMR1 register value */
  39173. tmpccmrx = TIMx->CCMR3;
  39174. 8010cea: 687b ldr r3, [r7, #4]
  39175. 8010cec: 6d5b ldr r3, [r3, #84] @ 0x54
  39176. 8010cee: 60fb str r3, [r7, #12]
  39177. /* Reset the Output Compare Mode Bits */
  39178. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  39179. 8010cf0: 68fa ldr r2, [r7, #12]
  39180. 8010cf2: 4b22 ldr r3, [pc, #136] @ (8010d7c <TIM_OC6_SetConfig+0xb4>)
  39181. 8010cf4: 4013 ands r3, r2
  39182. 8010cf6: 60fb str r3, [r7, #12]
  39183. /* Select the Output Compare Mode */
  39184. tmpccmrx |= (OC_Config->OCMode << 8U);
  39185. 8010cf8: 683b ldr r3, [r7, #0]
  39186. 8010cfa: 681b ldr r3, [r3, #0]
  39187. 8010cfc: 021b lsls r3, r3, #8
  39188. 8010cfe: 68fa ldr r2, [r7, #12]
  39189. 8010d00: 4313 orrs r3, r2
  39190. 8010d02: 60fb str r3, [r7, #12]
  39191. /* Reset the Output Polarity level */
  39192. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  39193. 8010d04: 693b ldr r3, [r7, #16]
  39194. 8010d06: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  39195. 8010d0a: 613b str r3, [r7, #16]
  39196. /* Set the Output Compare Polarity */
  39197. tmpccer |= (OC_Config->OCPolarity << 20U);
  39198. 8010d0c: 683b ldr r3, [r7, #0]
  39199. 8010d0e: 689b ldr r3, [r3, #8]
  39200. 8010d10: 051b lsls r3, r3, #20
  39201. 8010d12: 693a ldr r2, [r7, #16]
  39202. 8010d14: 4313 orrs r3, r2
  39203. 8010d16: 613b str r3, [r7, #16]
  39204. if (IS_TIM_BREAK_INSTANCE(TIMx))
  39205. 8010d18: 687b ldr r3, [r7, #4]
  39206. 8010d1a: 4a19 ldr r2, [pc, #100] @ (8010d80 <TIM_OC6_SetConfig+0xb8>)
  39207. 8010d1c: 4293 cmp r3, r2
  39208. 8010d1e: d00f beq.n 8010d40 <TIM_OC6_SetConfig+0x78>
  39209. 8010d20: 687b ldr r3, [r7, #4]
  39210. 8010d22: 4a18 ldr r2, [pc, #96] @ (8010d84 <TIM_OC6_SetConfig+0xbc>)
  39211. 8010d24: 4293 cmp r3, r2
  39212. 8010d26: d00b beq.n 8010d40 <TIM_OC6_SetConfig+0x78>
  39213. 8010d28: 687b ldr r3, [r7, #4]
  39214. 8010d2a: 4a17 ldr r2, [pc, #92] @ (8010d88 <TIM_OC6_SetConfig+0xc0>)
  39215. 8010d2c: 4293 cmp r3, r2
  39216. 8010d2e: d007 beq.n 8010d40 <TIM_OC6_SetConfig+0x78>
  39217. 8010d30: 687b ldr r3, [r7, #4]
  39218. 8010d32: 4a16 ldr r2, [pc, #88] @ (8010d8c <TIM_OC6_SetConfig+0xc4>)
  39219. 8010d34: 4293 cmp r3, r2
  39220. 8010d36: d003 beq.n 8010d40 <TIM_OC6_SetConfig+0x78>
  39221. 8010d38: 687b ldr r3, [r7, #4]
  39222. 8010d3a: 4a15 ldr r2, [pc, #84] @ (8010d90 <TIM_OC6_SetConfig+0xc8>)
  39223. 8010d3c: 4293 cmp r3, r2
  39224. 8010d3e: d109 bne.n 8010d54 <TIM_OC6_SetConfig+0x8c>
  39225. {
  39226. /* Reset the Output Compare IDLE State */
  39227. tmpcr2 &= ~TIM_CR2_OIS6;
  39228. 8010d40: 697b ldr r3, [r7, #20]
  39229. 8010d42: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  39230. 8010d46: 617b str r3, [r7, #20]
  39231. /* Set the Output Idle state */
  39232. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  39233. 8010d48: 683b ldr r3, [r7, #0]
  39234. 8010d4a: 695b ldr r3, [r3, #20]
  39235. 8010d4c: 029b lsls r3, r3, #10
  39236. 8010d4e: 697a ldr r2, [r7, #20]
  39237. 8010d50: 4313 orrs r3, r2
  39238. 8010d52: 617b str r3, [r7, #20]
  39239. }
  39240. /* Write to TIMx CR2 */
  39241. TIMx->CR2 = tmpcr2;
  39242. 8010d54: 687b ldr r3, [r7, #4]
  39243. 8010d56: 697a ldr r2, [r7, #20]
  39244. 8010d58: 605a str r2, [r3, #4]
  39245. /* Write to TIMx CCMR3 */
  39246. TIMx->CCMR3 = tmpccmrx;
  39247. 8010d5a: 687b ldr r3, [r7, #4]
  39248. 8010d5c: 68fa ldr r2, [r7, #12]
  39249. 8010d5e: 655a str r2, [r3, #84] @ 0x54
  39250. /* Set the Capture Compare Register value */
  39251. TIMx->CCR6 = OC_Config->Pulse;
  39252. 8010d60: 683b ldr r3, [r7, #0]
  39253. 8010d62: 685a ldr r2, [r3, #4]
  39254. 8010d64: 687b ldr r3, [r7, #4]
  39255. 8010d66: 65da str r2, [r3, #92] @ 0x5c
  39256. /* Write to TIMx CCER */
  39257. TIMx->CCER = tmpccer;
  39258. 8010d68: 687b ldr r3, [r7, #4]
  39259. 8010d6a: 693a ldr r2, [r7, #16]
  39260. 8010d6c: 621a str r2, [r3, #32]
  39261. }
  39262. 8010d6e: bf00 nop
  39263. 8010d70: 371c adds r7, #28
  39264. 8010d72: 46bd mov sp, r7
  39265. 8010d74: f85d 7b04 ldr.w r7, [sp], #4
  39266. 8010d78: 4770 bx lr
  39267. 8010d7a: bf00 nop
  39268. 8010d7c: feff8fff .word 0xfeff8fff
  39269. 8010d80: 40010000 .word 0x40010000
  39270. 8010d84: 40010400 .word 0x40010400
  39271. 8010d88: 40014000 .word 0x40014000
  39272. 8010d8c: 40014400 .word 0x40014400
  39273. 8010d90: 40014800 .word 0x40014800
  39274. 08010d94 <TIM_TI1_SetConfig>:
  39275. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  39276. * protected against un-initialized filter and polarity values.
  39277. */
  39278. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39279. uint32_t TIM_ICFilter)
  39280. {
  39281. 8010d94: b480 push {r7}
  39282. 8010d96: b087 sub sp, #28
  39283. 8010d98: af00 add r7, sp, #0
  39284. 8010d9a: 60f8 str r0, [r7, #12]
  39285. 8010d9c: 60b9 str r1, [r7, #8]
  39286. 8010d9e: 607a str r2, [r7, #4]
  39287. 8010da0: 603b str r3, [r7, #0]
  39288. uint32_t tmpccmr1;
  39289. uint32_t tmpccer;
  39290. /* Disable the Channel 1: Reset the CC1E Bit */
  39291. tmpccer = TIMx->CCER;
  39292. 8010da2: 68fb ldr r3, [r7, #12]
  39293. 8010da4: 6a1b ldr r3, [r3, #32]
  39294. 8010da6: 613b str r3, [r7, #16]
  39295. TIMx->CCER &= ~TIM_CCER_CC1E;
  39296. 8010da8: 68fb ldr r3, [r7, #12]
  39297. 8010daa: 6a1b ldr r3, [r3, #32]
  39298. 8010dac: f023 0201 bic.w r2, r3, #1
  39299. 8010db0: 68fb ldr r3, [r7, #12]
  39300. 8010db2: 621a str r2, [r3, #32]
  39301. tmpccmr1 = TIMx->CCMR1;
  39302. 8010db4: 68fb ldr r3, [r7, #12]
  39303. 8010db6: 699b ldr r3, [r3, #24]
  39304. 8010db8: 617b str r3, [r7, #20]
  39305. /* Select the Input */
  39306. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  39307. 8010dba: 68fb ldr r3, [r7, #12]
  39308. 8010dbc: 4a28 ldr r2, [pc, #160] @ (8010e60 <TIM_TI1_SetConfig+0xcc>)
  39309. 8010dbe: 4293 cmp r3, r2
  39310. 8010dc0: d01b beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39311. 8010dc2: 68fb ldr r3, [r7, #12]
  39312. 8010dc4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  39313. 8010dc8: d017 beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39314. 8010dca: 68fb ldr r3, [r7, #12]
  39315. 8010dcc: 4a25 ldr r2, [pc, #148] @ (8010e64 <TIM_TI1_SetConfig+0xd0>)
  39316. 8010dce: 4293 cmp r3, r2
  39317. 8010dd0: d013 beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39318. 8010dd2: 68fb ldr r3, [r7, #12]
  39319. 8010dd4: 4a24 ldr r2, [pc, #144] @ (8010e68 <TIM_TI1_SetConfig+0xd4>)
  39320. 8010dd6: 4293 cmp r3, r2
  39321. 8010dd8: d00f beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39322. 8010dda: 68fb ldr r3, [r7, #12]
  39323. 8010ddc: 4a23 ldr r2, [pc, #140] @ (8010e6c <TIM_TI1_SetConfig+0xd8>)
  39324. 8010dde: 4293 cmp r3, r2
  39325. 8010de0: d00b beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39326. 8010de2: 68fb ldr r3, [r7, #12]
  39327. 8010de4: 4a22 ldr r2, [pc, #136] @ (8010e70 <TIM_TI1_SetConfig+0xdc>)
  39328. 8010de6: 4293 cmp r3, r2
  39329. 8010de8: d007 beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39330. 8010dea: 68fb ldr r3, [r7, #12]
  39331. 8010dec: 4a21 ldr r2, [pc, #132] @ (8010e74 <TIM_TI1_SetConfig+0xe0>)
  39332. 8010dee: 4293 cmp r3, r2
  39333. 8010df0: d003 beq.n 8010dfa <TIM_TI1_SetConfig+0x66>
  39334. 8010df2: 68fb ldr r3, [r7, #12]
  39335. 8010df4: 4a20 ldr r2, [pc, #128] @ (8010e78 <TIM_TI1_SetConfig+0xe4>)
  39336. 8010df6: 4293 cmp r3, r2
  39337. 8010df8: d101 bne.n 8010dfe <TIM_TI1_SetConfig+0x6a>
  39338. 8010dfa: 2301 movs r3, #1
  39339. 8010dfc: e000 b.n 8010e00 <TIM_TI1_SetConfig+0x6c>
  39340. 8010dfe: 2300 movs r3, #0
  39341. 8010e00: 2b00 cmp r3, #0
  39342. 8010e02: d008 beq.n 8010e16 <TIM_TI1_SetConfig+0x82>
  39343. {
  39344. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  39345. 8010e04: 697b ldr r3, [r7, #20]
  39346. 8010e06: f023 0303 bic.w r3, r3, #3
  39347. 8010e0a: 617b str r3, [r7, #20]
  39348. tmpccmr1 |= TIM_ICSelection;
  39349. 8010e0c: 697a ldr r2, [r7, #20]
  39350. 8010e0e: 687b ldr r3, [r7, #4]
  39351. 8010e10: 4313 orrs r3, r2
  39352. 8010e12: 617b str r3, [r7, #20]
  39353. 8010e14: e003 b.n 8010e1e <TIM_TI1_SetConfig+0x8a>
  39354. }
  39355. else
  39356. {
  39357. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  39358. 8010e16: 697b ldr r3, [r7, #20]
  39359. 8010e18: f043 0301 orr.w r3, r3, #1
  39360. 8010e1c: 617b str r3, [r7, #20]
  39361. }
  39362. /* Set the filter */
  39363. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39364. 8010e1e: 697b ldr r3, [r7, #20]
  39365. 8010e20: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39366. 8010e24: 617b str r3, [r7, #20]
  39367. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  39368. 8010e26: 683b ldr r3, [r7, #0]
  39369. 8010e28: 011b lsls r3, r3, #4
  39370. 8010e2a: b2db uxtb r3, r3
  39371. 8010e2c: 697a ldr r2, [r7, #20]
  39372. 8010e2e: 4313 orrs r3, r2
  39373. 8010e30: 617b str r3, [r7, #20]
  39374. /* Select the Polarity and set the CC1E Bit */
  39375. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39376. 8010e32: 693b ldr r3, [r7, #16]
  39377. 8010e34: f023 030a bic.w r3, r3, #10
  39378. 8010e38: 613b str r3, [r7, #16]
  39379. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  39380. 8010e3a: 68bb ldr r3, [r7, #8]
  39381. 8010e3c: f003 030a and.w r3, r3, #10
  39382. 8010e40: 693a ldr r2, [r7, #16]
  39383. 8010e42: 4313 orrs r3, r2
  39384. 8010e44: 613b str r3, [r7, #16]
  39385. /* Write to TIMx CCMR1 and CCER registers */
  39386. TIMx->CCMR1 = tmpccmr1;
  39387. 8010e46: 68fb ldr r3, [r7, #12]
  39388. 8010e48: 697a ldr r2, [r7, #20]
  39389. 8010e4a: 619a str r2, [r3, #24]
  39390. TIMx->CCER = tmpccer;
  39391. 8010e4c: 68fb ldr r3, [r7, #12]
  39392. 8010e4e: 693a ldr r2, [r7, #16]
  39393. 8010e50: 621a str r2, [r3, #32]
  39394. }
  39395. 8010e52: bf00 nop
  39396. 8010e54: 371c adds r7, #28
  39397. 8010e56: 46bd mov sp, r7
  39398. 8010e58: f85d 7b04 ldr.w r7, [sp], #4
  39399. 8010e5c: 4770 bx lr
  39400. 8010e5e: bf00 nop
  39401. 8010e60: 40010000 .word 0x40010000
  39402. 8010e64: 40000400 .word 0x40000400
  39403. 8010e68: 40000800 .word 0x40000800
  39404. 8010e6c: 40000c00 .word 0x40000c00
  39405. 8010e70: 40010400 .word 0x40010400
  39406. 8010e74: 40001800 .word 0x40001800
  39407. 8010e78: 40014000 .word 0x40014000
  39408. 08010e7c <TIM_TI1_ConfigInputStage>:
  39409. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39410. * This parameter must be a value between 0x00 and 0x0F.
  39411. * @retval None
  39412. */
  39413. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39414. {
  39415. 8010e7c: b480 push {r7}
  39416. 8010e7e: b087 sub sp, #28
  39417. 8010e80: af00 add r7, sp, #0
  39418. 8010e82: 60f8 str r0, [r7, #12]
  39419. 8010e84: 60b9 str r1, [r7, #8]
  39420. 8010e86: 607a str r2, [r7, #4]
  39421. uint32_t tmpccmr1;
  39422. uint32_t tmpccer;
  39423. /* Disable the Channel 1: Reset the CC1E Bit */
  39424. tmpccer = TIMx->CCER;
  39425. 8010e88: 68fb ldr r3, [r7, #12]
  39426. 8010e8a: 6a1b ldr r3, [r3, #32]
  39427. 8010e8c: 617b str r3, [r7, #20]
  39428. TIMx->CCER &= ~TIM_CCER_CC1E;
  39429. 8010e8e: 68fb ldr r3, [r7, #12]
  39430. 8010e90: 6a1b ldr r3, [r3, #32]
  39431. 8010e92: f023 0201 bic.w r2, r3, #1
  39432. 8010e96: 68fb ldr r3, [r7, #12]
  39433. 8010e98: 621a str r2, [r3, #32]
  39434. tmpccmr1 = TIMx->CCMR1;
  39435. 8010e9a: 68fb ldr r3, [r7, #12]
  39436. 8010e9c: 699b ldr r3, [r3, #24]
  39437. 8010e9e: 613b str r3, [r7, #16]
  39438. /* Set the filter */
  39439. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  39440. 8010ea0: 693b ldr r3, [r7, #16]
  39441. 8010ea2: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39442. 8010ea6: 613b str r3, [r7, #16]
  39443. tmpccmr1 |= (TIM_ICFilter << 4U);
  39444. 8010ea8: 687b ldr r3, [r7, #4]
  39445. 8010eaa: 011b lsls r3, r3, #4
  39446. 8010eac: 693a ldr r2, [r7, #16]
  39447. 8010eae: 4313 orrs r3, r2
  39448. 8010eb0: 613b str r3, [r7, #16]
  39449. /* Select the Polarity and set the CC1E Bit */
  39450. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  39451. 8010eb2: 697b ldr r3, [r7, #20]
  39452. 8010eb4: f023 030a bic.w r3, r3, #10
  39453. 8010eb8: 617b str r3, [r7, #20]
  39454. tmpccer |= TIM_ICPolarity;
  39455. 8010eba: 697a ldr r2, [r7, #20]
  39456. 8010ebc: 68bb ldr r3, [r7, #8]
  39457. 8010ebe: 4313 orrs r3, r2
  39458. 8010ec0: 617b str r3, [r7, #20]
  39459. /* Write to TIMx CCMR1 and CCER registers */
  39460. TIMx->CCMR1 = tmpccmr1;
  39461. 8010ec2: 68fb ldr r3, [r7, #12]
  39462. 8010ec4: 693a ldr r2, [r7, #16]
  39463. 8010ec6: 619a str r2, [r3, #24]
  39464. TIMx->CCER = tmpccer;
  39465. 8010ec8: 68fb ldr r3, [r7, #12]
  39466. 8010eca: 697a ldr r2, [r7, #20]
  39467. 8010ecc: 621a str r2, [r3, #32]
  39468. }
  39469. 8010ece: bf00 nop
  39470. 8010ed0: 371c adds r7, #28
  39471. 8010ed2: 46bd mov sp, r7
  39472. 8010ed4: f85d 7b04 ldr.w r7, [sp], #4
  39473. 8010ed8: 4770 bx lr
  39474. 08010eda <TIM_TI2_SetConfig>:
  39475. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  39476. * protected against un-initialized filter and polarity values.
  39477. */
  39478. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39479. uint32_t TIM_ICFilter)
  39480. {
  39481. 8010eda: b480 push {r7}
  39482. 8010edc: b087 sub sp, #28
  39483. 8010ede: af00 add r7, sp, #0
  39484. 8010ee0: 60f8 str r0, [r7, #12]
  39485. 8010ee2: 60b9 str r1, [r7, #8]
  39486. 8010ee4: 607a str r2, [r7, #4]
  39487. 8010ee6: 603b str r3, [r7, #0]
  39488. uint32_t tmpccmr1;
  39489. uint32_t tmpccer;
  39490. /* Disable the Channel 2: Reset the CC2E Bit */
  39491. tmpccer = TIMx->CCER;
  39492. 8010ee8: 68fb ldr r3, [r7, #12]
  39493. 8010eea: 6a1b ldr r3, [r3, #32]
  39494. 8010eec: 617b str r3, [r7, #20]
  39495. TIMx->CCER &= ~TIM_CCER_CC2E;
  39496. 8010eee: 68fb ldr r3, [r7, #12]
  39497. 8010ef0: 6a1b ldr r3, [r3, #32]
  39498. 8010ef2: f023 0210 bic.w r2, r3, #16
  39499. 8010ef6: 68fb ldr r3, [r7, #12]
  39500. 8010ef8: 621a str r2, [r3, #32]
  39501. tmpccmr1 = TIMx->CCMR1;
  39502. 8010efa: 68fb ldr r3, [r7, #12]
  39503. 8010efc: 699b ldr r3, [r3, #24]
  39504. 8010efe: 613b str r3, [r7, #16]
  39505. /* Select the Input */
  39506. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  39507. 8010f00: 693b ldr r3, [r7, #16]
  39508. 8010f02: f423 7340 bic.w r3, r3, #768 @ 0x300
  39509. 8010f06: 613b str r3, [r7, #16]
  39510. tmpccmr1 |= (TIM_ICSelection << 8U);
  39511. 8010f08: 687b ldr r3, [r7, #4]
  39512. 8010f0a: 021b lsls r3, r3, #8
  39513. 8010f0c: 693a ldr r2, [r7, #16]
  39514. 8010f0e: 4313 orrs r3, r2
  39515. 8010f10: 613b str r3, [r7, #16]
  39516. /* Set the filter */
  39517. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39518. 8010f12: 693b ldr r3, [r7, #16]
  39519. 8010f14: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39520. 8010f18: 613b str r3, [r7, #16]
  39521. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  39522. 8010f1a: 683b ldr r3, [r7, #0]
  39523. 8010f1c: 031b lsls r3, r3, #12
  39524. 8010f1e: b29b uxth r3, r3
  39525. 8010f20: 693a ldr r2, [r7, #16]
  39526. 8010f22: 4313 orrs r3, r2
  39527. 8010f24: 613b str r3, [r7, #16]
  39528. /* Select the Polarity and set the CC2E Bit */
  39529. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39530. 8010f26: 697b ldr r3, [r7, #20]
  39531. 8010f28: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39532. 8010f2c: 617b str r3, [r7, #20]
  39533. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  39534. 8010f2e: 68bb ldr r3, [r7, #8]
  39535. 8010f30: 011b lsls r3, r3, #4
  39536. 8010f32: f003 03a0 and.w r3, r3, #160 @ 0xa0
  39537. 8010f36: 697a ldr r2, [r7, #20]
  39538. 8010f38: 4313 orrs r3, r2
  39539. 8010f3a: 617b str r3, [r7, #20]
  39540. /* Write to TIMx CCMR1 and CCER registers */
  39541. TIMx->CCMR1 = tmpccmr1 ;
  39542. 8010f3c: 68fb ldr r3, [r7, #12]
  39543. 8010f3e: 693a ldr r2, [r7, #16]
  39544. 8010f40: 619a str r2, [r3, #24]
  39545. TIMx->CCER = tmpccer;
  39546. 8010f42: 68fb ldr r3, [r7, #12]
  39547. 8010f44: 697a ldr r2, [r7, #20]
  39548. 8010f46: 621a str r2, [r3, #32]
  39549. }
  39550. 8010f48: bf00 nop
  39551. 8010f4a: 371c adds r7, #28
  39552. 8010f4c: 46bd mov sp, r7
  39553. 8010f4e: f85d 7b04 ldr.w r7, [sp], #4
  39554. 8010f52: 4770 bx lr
  39555. 08010f54 <TIM_TI2_ConfigInputStage>:
  39556. * @param TIM_ICFilter Specifies the Input Capture Filter.
  39557. * This parameter must be a value between 0x00 and 0x0F.
  39558. * @retval None
  39559. */
  39560. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  39561. {
  39562. 8010f54: b480 push {r7}
  39563. 8010f56: b087 sub sp, #28
  39564. 8010f58: af00 add r7, sp, #0
  39565. 8010f5a: 60f8 str r0, [r7, #12]
  39566. 8010f5c: 60b9 str r1, [r7, #8]
  39567. 8010f5e: 607a str r2, [r7, #4]
  39568. uint32_t tmpccmr1;
  39569. uint32_t tmpccer;
  39570. /* Disable the Channel 2: Reset the CC2E Bit */
  39571. tmpccer = TIMx->CCER;
  39572. 8010f60: 68fb ldr r3, [r7, #12]
  39573. 8010f62: 6a1b ldr r3, [r3, #32]
  39574. 8010f64: 617b str r3, [r7, #20]
  39575. TIMx->CCER &= ~TIM_CCER_CC2E;
  39576. 8010f66: 68fb ldr r3, [r7, #12]
  39577. 8010f68: 6a1b ldr r3, [r3, #32]
  39578. 8010f6a: f023 0210 bic.w r2, r3, #16
  39579. 8010f6e: 68fb ldr r3, [r7, #12]
  39580. 8010f70: 621a str r2, [r3, #32]
  39581. tmpccmr1 = TIMx->CCMR1;
  39582. 8010f72: 68fb ldr r3, [r7, #12]
  39583. 8010f74: 699b ldr r3, [r3, #24]
  39584. 8010f76: 613b str r3, [r7, #16]
  39585. /* Set the filter */
  39586. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  39587. 8010f78: 693b ldr r3, [r7, #16]
  39588. 8010f7a: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39589. 8010f7e: 613b str r3, [r7, #16]
  39590. tmpccmr1 |= (TIM_ICFilter << 12U);
  39591. 8010f80: 687b ldr r3, [r7, #4]
  39592. 8010f82: 031b lsls r3, r3, #12
  39593. 8010f84: 693a ldr r2, [r7, #16]
  39594. 8010f86: 4313 orrs r3, r2
  39595. 8010f88: 613b str r3, [r7, #16]
  39596. /* Select the Polarity and set the CC2E Bit */
  39597. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  39598. 8010f8a: 697b ldr r3, [r7, #20]
  39599. 8010f8c: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  39600. 8010f90: 617b str r3, [r7, #20]
  39601. tmpccer |= (TIM_ICPolarity << 4U);
  39602. 8010f92: 68bb ldr r3, [r7, #8]
  39603. 8010f94: 011b lsls r3, r3, #4
  39604. 8010f96: 697a ldr r2, [r7, #20]
  39605. 8010f98: 4313 orrs r3, r2
  39606. 8010f9a: 617b str r3, [r7, #20]
  39607. /* Write to TIMx CCMR1 and CCER registers */
  39608. TIMx->CCMR1 = tmpccmr1 ;
  39609. 8010f9c: 68fb ldr r3, [r7, #12]
  39610. 8010f9e: 693a ldr r2, [r7, #16]
  39611. 8010fa0: 619a str r2, [r3, #24]
  39612. TIMx->CCER = tmpccer;
  39613. 8010fa2: 68fb ldr r3, [r7, #12]
  39614. 8010fa4: 697a ldr r2, [r7, #20]
  39615. 8010fa6: 621a str r2, [r3, #32]
  39616. }
  39617. 8010fa8: bf00 nop
  39618. 8010faa: 371c adds r7, #28
  39619. 8010fac: 46bd mov sp, r7
  39620. 8010fae: f85d 7b04 ldr.w r7, [sp], #4
  39621. 8010fb2: 4770 bx lr
  39622. 08010fb4 <TIM_TI3_SetConfig>:
  39623. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  39624. * protected against un-initialized filter and polarity values.
  39625. */
  39626. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39627. uint32_t TIM_ICFilter)
  39628. {
  39629. 8010fb4: b480 push {r7}
  39630. 8010fb6: b087 sub sp, #28
  39631. 8010fb8: af00 add r7, sp, #0
  39632. 8010fba: 60f8 str r0, [r7, #12]
  39633. 8010fbc: 60b9 str r1, [r7, #8]
  39634. 8010fbe: 607a str r2, [r7, #4]
  39635. 8010fc0: 603b str r3, [r7, #0]
  39636. uint32_t tmpccmr2;
  39637. uint32_t tmpccer;
  39638. /* Disable the Channel 3: Reset the CC3E Bit */
  39639. tmpccer = TIMx->CCER;
  39640. 8010fc2: 68fb ldr r3, [r7, #12]
  39641. 8010fc4: 6a1b ldr r3, [r3, #32]
  39642. 8010fc6: 617b str r3, [r7, #20]
  39643. TIMx->CCER &= ~TIM_CCER_CC3E;
  39644. 8010fc8: 68fb ldr r3, [r7, #12]
  39645. 8010fca: 6a1b ldr r3, [r3, #32]
  39646. 8010fcc: f423 7280 bic.w r2, r3, #256 @ 0x100
  39647. 8010fd0: 68fb ldr r3, [r7, #12]
  39648. 8010fd2: 621a str r2, [r3, #32]
  39649. tmpccmr2 = TIMx->CCMR2;
  39650. 8010fd4: 68fb ldr r3, [r7, #12]
  39651. 8010fd6: 69db ldr r3, [r3, #28]
  39652. 8010fd8: 613b str r3, [r7, #16]
  39653. /* Select the Input */
  39654. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  39655. 8010fda: 693b ldr r3, [r7, #16]
  39656. 8010fdc: f023 0303 bic.w r3, r3, #3
  39657. 8010fe0: 613b str r3, [r7, #16]
  39658. tmpccmr2 |= TIM_ICSelection;
  39659. 8010fe2: 693a ldr r2, [r7, #16]
  39660. 8010fe4: 687b ldr r3, [r7, #4]
  39661. 8010fe6: 4313 orrs r3, r2
  39662. 8010fe8: 613b str r3, [r7, #16]
  39663. /* Set the filter */
  39664. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  39665. 8010fea: 693b ldr r3, [r7, #16]
  39666. 8010fec: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  39667. 8010ff0: 613b str r3, [r7, #16]
  39668. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  39669. 8010ff2: 683b ldr r3, [r7, #0]
  39670. 8010ff4: 011b lsls r3, r3, #4
  39671. 8010ff6: b2db uxtb r3, r3
  39672. 8010ff8: 693a ldr r2, [r7, #16]
  39673. 8010ffa: 4313 orrs r3, r2
  39674. 8010ffc: 613b str r3, [r7, #16]
  39675. /* Select the Polarity and set the CC3E Bit */
  39676. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  39677. 8010ffe: 697b ldr r3, [r7, #20]
  39678. 8011000: f423 6320 bic.w r3, r3, #2560 @ 0xa00
  39679. 8011004: 617b str r3, [r7, #20]
  39680. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  39681. 8011006: 68bb ldr r3, [r7, #8]
  39682. 8011008: 021b lsls r3, r3, #8
  39683. 801100a: f403 6320 and.w r3, r3, #2560 @ 0xa00
  39684. 801100e: 697a ldr r2, [r7, #20]
  39685. 8011010: 4313 orrs r3, r2
  39686. 8011012: 617b str r3, [r7, #20]
  39687. /* Write to TIMx CCMR2 and CCER registers */
  39688. TIMx->CCMR2 = tmpccmr2;
  39689. 8011014: 68fb ldr r3, [r7, #12]
  39690. 8011016: 693a ldr r2, [r7, #16]
  39691. 8011018: 61da str r2, [r3, #28]
  39692. TIMx->CCER = tmpccer;
  39693. 801101a: 68fb ldr r3, [r7, #12]
  39694. 801101c: 697a ldr r2, [r7, #20]
  39695. 801101e: 621a str r2, [r3, #32]
  39696. }
  39697. 8011020: bf00 nop
  39698. 8011022: 371c adds r7, #28
  39699. 8011024: 46bd mov sp, r7
  39700. 8011026: f85d 7b04 ldr.w r7, [sp], #4
  39701. 801102a: 4770 bx lr
  39702. 0801102c <TIM_TI4_SetConfig>:
  39703. * protected against un-initialized filter and polarity values.
  39704. * @retval None
  39705. */
  39706. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  39707. uint32_t TIM_ICFilter)
  39708. {
  39709. 801102c: b480 push {r7}
  39710. 801102e: b087 sub sp, #28
  39711. 8011030: af00 add r7, sp, #0
  39712. 8011032: 60f8 str r0, [r7, #12]
  39713. 8011034: 60b9 str r1, [r7, #8]
  39714. 8011036: 607a str r2, [r7, #4]
  39715. 8011038: 603b str r3, [r7, #0]
  39716. uint32_t tmpccmr2;
  39717. uint32_t tmpccer;
  39718. /* Disable the Channel 4: Reset the CC4E Bit */
  39719. tmpccer = TIMx->CCER;
  39720. 801103a: 68fb ldr r3, [r7, #12]
  39721. 801103c: 6a1b ldr r3, [r3, #32]
  39722. 801103e: 617b str r3, [r7, #20]
  39723. TIMx->CCER &= ~TIM_CCER_CC4E;
  39724. 8011040: 68fb ldr r3, [r7, #12]
  39725. 8011042: 6a1b ldr r3, [r3, #32]
  39726. 8011044: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  39727. 8011048: 68fb ldr r3, [r7, #12]
  39728. 801104a: 621a str r2, [r3, #32]
  39729. tmpccmr2 = TIMx->CCMR2;
  39730. 801104c: 68fb ldr r3, [r7, #12]
  39731. 801104e: 69db ldr r3, [r3, #28]
  39732. 8011050: 613b str r3, [r7, #16]
  39733. /* Select the Input */
  39734. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  39735. 8011052: 693b ldr r3, [r7, #16]
  39736. 8011054: f423 7340 bic.w r3, r3, #768 @ 0x300
  39737. 8011058: 613b str r3, [r7, #16]
  39738. tmpccmr2 |= (TIM_ICSelection << 8U);
  39739. 801105a: 687b ldr r3, [r7, #4]
  39740. 801105c: 021b lsls r3, r3, #8
  39741. 801105e: 693a ldr r2, [r7, #16]
  39742. 8011060: 4313 orrs r3, r2
  39743. 8011062: 613b str r3, [r7, #16]
  39744. /* Set the filter */
  39745. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  39746. 8011064: 693b ldr r3, [r7, #16]
  39747. 8011066: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  39748. 801106a: 613b str r3, [r7, #16]
  39749. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  39750. 801106c: 683b ldr r3, [r7, #0]
  39751. 801106e: 031b lsls r3, r3, #12
  39752. 8011070: b29b uxth r3, r3
  39753. 8011072: 693a ldr r2, [r7, #16]
  39754. 8011074: 4313 orrs r3, r2
  39755. 8011076: 613b str r3, [r7, #16]
  39756. /* Select the Polarity and set the CC4E Bit */
  39757. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  39758. 8011078: 697b ldr r3, [r7, #20]
  39759. 801107a: f423 4320 bic.w r3, r3, #40960 @ 0xa000
  39760. 801107e: 617b str r3, [r7, #20]
  39761. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  39762. 8011080: 68bb ldr r3, [r7, #8]
  39763. 8011082: 031b lsls r3, r3, #12
  39764. 8011084: f403 4320 and.w r3, r3, #40960 @ 0xa000
  39765. 8011088: 697a ldr r2, [r7, #20]
  39766. 801108a: 4313 orrs r3, r2
  39767. 801108c: 617b str r3, [r7, #20]
  39768. /* Write to TIMx CCMR2 and CCER registers */
  39769. TIMx->CCMR2 = tmpccmr2;
  39770. 801108e: 68fb ldr r3, [r7, #12]
  39771. 8011090: 693a ldr r2, [r7, #16]
  39772. 8011092: 61da str r2, [r3, #28]
  39773. TIMx->CCER = tmpccer ;
  39774. 8011094: 68fb ldr r3, [r7, #12]
  39775. 8011096: 697a ldr r2, [r7, #20]
  39776. 8011098: 621a str r2, [r3, #32]
  39777. }
  39778. 801109a: bf00 nop
  39779. 801109c: 371c adds r7, #28
  39780. 801109e: 46bd mov sp, r7
  39781. 80110a0: f85d 7b04 ldr.w r7, [sp], #4
  39782. 80110a4: 4770 bx lr
  39783. ...
  39784. 080110a8 <TIM_ITRx_SetConfig>:
  39785. * (*) Value not defined in all devices.
  39786. *
  39787. * @retval None
  39788. */
  39789. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  39790. {
  39791. 80110a8: b480 push {r7}
  39792. 80110aa: b085 sub sp, #20
  39793. 80110ac: af00 add r7, sp, #0
  39794. 80110ae: 6078 str r0, [r7, #4]
  39795. 80110b0: 6039 str r1, [r7, #0]
  39796. uint32_t tmpsmcr;
  39797. /* Get the TIMx SMCR register value */
  39798. tmpsmcr = TIMx->SMCR;
  39799. 80110b2: 687b ldr r3, [r7, #4]
  39800. 80110b4: 689b ldr r3, [r3, #8]
  39801. 80110b6: 60fb str r3, [r7, #12]
  39802. /* Reset the TS Bits */
  39803. tmpsmcr &= ~TIM_SMCR_TS;
  39804. 80110b8: 68fa ldr r2, [r7, #12]
  39805. 80110ba: 4b09 ldr r3, [pc, #36] @ (80110e0 <TIM_ITRx_SetConfig+0x38>)
  39806. 80110bc: 4013 ands r3, r2
  39807. 80110be: 60fb str r3, [r7, #12]
  39808. /* Set the Input Trigger source and the slave mode*/
  39809. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  39810. 80110c0: 683a ldr r2, [r7, #0]
  39811. 80110c2: 68fb ldr r3, [r7, #12]
  39812. 80110c4: 4313 orrs r3, r2
  39813. 80110c6: f043 0307 orr.w r3, r3, #7
  39814. 80110ca: 60fb str r3, [r7, #12]
  39815. /* Write to TIMx SMCR */
  39816. TIMx->SMCR = tmpsmcr;
  39817. 80110cc: 687b ldr r3, [r7, #4]
  39818. 80110ce: 68fa ldr r2, [r7, #12]
  39819. 80110d0: 609a str r2, [r3, #8]
  39820. }
  39821. 80110d2: bf00 nop
  39822. 80110d4: 3714 adds r7, #20
  39823. 80110d6: 46bd mov sp, r7
  39824. 80110d8: f85d 7b04 ldr.w r7, [sp], #4
  39825. 80110dc: 4770 bx lr
  39826. 80110de: bf00 nop
  39827. 80110e0: ffcfff8f .word 0xffcfff8f
  39828. 080110e4 <TIM_ETR_SetConfig>:
  39829. * This parameter must be a value between 0x00 and 0x0F
  39830. * @retval None
  39831. */
  39832. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  39833. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  39834. {
  39835. 80110e4: b480 push {r7}
  39836. 80110e6: b087 sub sp, #28
  39837. 80110e8: af00 add r7, sp, #0
  39838. 80110ea: 60f8 str r0, [r7, #12]
  39839. 80110ec: 60b9 str r1, [r7, #8]
  39840. 80110ee: 607a str r2, [r7, #4]
  39841. 80110f0: 603b str r3, [r7, #0]
  39842. uint32_t tmpsmcr;
  39843. tmpsmcr = TIMx->SMCR;
  39844. 80110f2: 68fb ldr r3, [r7, #12]
  39845. 80110f4: 689b ldr r3, [r3, #8]
  39846. 80110f6: 617b str r3, [r7, #20]
  39847. /* Reset the ETR Bits */
  39848. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  39849. 80110f8: 697b ldr r3, [r7, #20]
  39850. 80110fa: f423 437f bic.w r3, r3, #65280 @ 0xff00
  39851. 80110fe: 617b str r3, [r7, #20]
  39852. /* Set the Prescaler, the Filter value and the Polarity */
  39853. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  39854. 8011100: 683b ldr r3, [r7, #0]
  39855. 8011102: 021a lsls r2, r3, #8
  39856. 8011104: 687b ldr r3, [r7, #4]
  39857. 8011106: 431a orrs r2, r3
  39858. 8011108: 68bb ldr r3, [r7, #8]
  39859. 801110a: 4313 orrs r3, r2
  39860. 801110c: 697a ldr r2, [r7, #20]
  39861. 801110e: 4313 orrs r3, r2
  39862. 8011110: 617b str r3, [r7, #20]
  39863. /* Write to TIMx SMCR */
  39864. TIMx->SMCR = tmpsmcr;
  39865. 8011112: 68fb ldr r3, [r7, #12]
  39866. 8011114: 697a ldr r2, [r7, #20]
  39867. 8011116: 609a str r2, [r3, #8]
  39868. }
  39869. 8011118: bf00 nop
  39870. 801111a: 371c adds r7, #28
  39871. 801111c: 46bd mov sp, r7
  39872. 801111e: f85d 7b04 ldr.w r7, [sp], #4
  39873. 8011122: 4770 bx lr
  39874. 08011124 <TIM_CCxChannelCmd>:
  39875. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  39876. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  39877. * @retval None
  39878. */
  39879. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  39880. {
  39881. 8011124: b480 push {r7}
  39882. 8011126: b087 sub sp, #28
  39883. 8011128: af00 add r7, sp, #0
  39884. 801112a: 60f8 str r0, [r7, #12]
  39885. 801112c: 60b9 str r1, [r7, #8]
  39886. 801112e: 607a str r2, [r7, #4]
  39887. /* Check the parameters */
  39888. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  39889. assert_param(IS_TIM_CHANNELS(Channel));
  39890. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  39891. 8011130: 68bb ldr r3, [r7, #8]
  39892. 8011132: f003 031f and.w r3, r3, #31
  39893. 8011136: 2201 movs r2, #1
  39894. 8011138: fa02 f303 lsl.w r3, r2, r3
  39895. 801113c: 617b str r3, [r7, #20]
  39896. /* Reset the CCxE Bit */
  39897. TIMx->CCER &= ~tmp;
  39898. 801113e: 68fb ldr r3, [r7, #12]
  39899. 8011140: 6a1a ldr r2, [r3, #32]
  39900. 8011142: 697b ldr r3, [r7, #20]
  39901. 8011144: 43db mvns r3, r3
  39902. 8011146: 401a ands r2, r3
  39903. 8011148: 68fb ldr r3, [r7, #12]
  39904. 801114a: 621a str r2, [r3, #32]
  39905. /* Set or reset the CCxE Bit */
  39906. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  39907. 801114c: 68fb ldr r3, [r7, #12]
  39908. 801114e: 6a1a ldr r2, [r3, #32]
  39909. 8011150: 68bb ldr r3, [r7, #8]
  39910. 8011152: f003 031f and.w r3, r3, #31
  39911. 8011156: 6879 ldr r1, [r7, #4]
  39912. 8011158: fa01 f303 lsl.w r3, r1, r3
  39913. 801115c: 431a orrs r2, r3
  39914. 801115e: 68fb ldr r3, [r7, #12]
  39915. 8011160: 621a str r2, [r3, #32]
  39916. }
  39917. 8011162: bf00 nop
  39918. 8011164: 371c adds r7, #28
  39919. 8011166: 46bd mov sp, r7
  39920. 8011168: f85d 7b04 ldr.w r7, [sp], #4
  39921. 801116c: 4770 bx lr
  39922. ...
  39923. 08011170 <HAL_TIMEx_MasterConfigSynchronization>:
  39924. * mode.
  39925. * @retval HAL status
  39926. */
  39927. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  39928. const TIM_MasterConfigTypeDef *sMasterConfig)
  39929. {
  39930. 8011170: b480 push {r7}
  39931. 8011172: b085 sub sp, #20
  39932. 8011174: af00 add r7, sp, #0
  39933. 8011176: 6078 str r0, [r7, #4]
  39934. 8011178: 6039 str r1, [r7, #0]
  39935. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  39936. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  39937. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  39938. /* Check input state */
  39939. __HAL_LOCK(htim);
  39940. 801117a: 687b ldr r3, [r7, #4]
  39941. 801117c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  39942. 8011180: 2b01 cmp r3, #1
  39943. 8011182: d101 bne.n 8011188 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  39944. 8011184: 2302 movs r3, #2
  39945. 8011186: e06d b.n 8011264 <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  39946. 8011188: 687b ldr r3, [r7, #4]
  39947. 801118a: 2201 movs r2, #1
  39948. 801118c: f883 203c strb.w r2, [r3, #60] @ 0x3c
  39949. /* Change the handler state */
  39950. htim->State = HAL_TIM_STATE_BUSY;
  39951. 8011190: 687b ldr r3, [r7, #4]
  39952. 8011192: 2202 movs r2, #2
  39953. 8011194: f883 203d strb.w r2, [r3, #61] @ 0x3d
  39954. /* Get the TIMx CR2 register value */
  39955. tmpcr2 = htim->Instance->CR2;
  39956. 8011198: 687b ldr r3, [r7, #4]
  39957. 801119a: 681b ldr r3, [r3, #0]
  39958. 801119c: 685b ldr r3, [r3, #4]
  39959. 801119e: 60fb str r3, [r7, #12]
  39960. /* Get the TIMx SMCR register value */
  39961. tmpsmcr = htim->Instance->SMCR;
  39962. 80111a0: 687b ldr r3, [r7, #4]
  39963. 80111a2: 681b ldr r3, [r3, #0]
  39964. 80111a4: 689b ldr r3, [r3, #8]
  39965. 80111a6: 60bb str r3, [r7, #8]
  39966. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  39967. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  39968. 80111a8: 687b ldr r3, [r7, #4]
  39969. 80111aa: 681b ldr r3, [r3, #0]
  39970. 80111ac: 4a30 ldr r2, [pc, #192] @ (8011270 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  39971. 80111ae: 4293 cmp r3, r2
  39972. 80111b0: d004 beq.n 80111bc <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  39973. 80111b2: 687b ldr r3, [r7, #4]
  39974. 80111b4: 681b ldr r3, [r3, #0]
  39975. 80111b6: 4a2f ldr r2, [pc, #188] @ (8011274 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  39976. 80111b8: 4293 cmp r3, r2
  39977. 80111ba: d108 bne.n 80111ce <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  39978. {
  39979. /* Check the parameters */
  39980. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  39981. /* Clear the MMS2 bits */
  39982. tmpcr2 &= ~TIM_CR2_MMS2;
  39983. 80111bc: 68fb ldr r3, [r7, #12]
  39984. 80111be: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  39985. 80111c2: 60fb str r3, [r7, #12]
  39986. /* Select the TRGO2 source*/
  39987. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  39988. 80111c4: 683b ldr r3, [r7, #0]
  39989. 80111c6: 685b ldr r3, [r3, #4]
  39990. 80111c8: 68fa ldr r2, [r7, #12]
  39991. 80111ca: 4313 orrs r3, r2
  39992. 80111cc: 60fb str r3, [r7, #12]
  39993. }
  39994. /* Reset the MMS Bits */
  39995. tmpcr2 &= ~TIM_CR2_MMS;
  39996. 80111ce: 68fb ldr r3, [r7, #12]
  39997. 80111d0: f023 0370 bic.w r3, r3, #112 @ 0x70
  39998. 80111d4: 60fb str r3, [r7, #12]
  39999. /* Select the TRGO source */
  40000. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  40001. 80111d6: 683b ldr r3, [r7, #0]
  40002. 80111d8: 681b ldr r3, [r3, #0]
  40003. 80111da: 68fa ldr r2, [r7, #12]
  40004. 80111dc: 4313 orrs r3, r2
  40005. 80111de: 60fb str r3, [r7, #12]
  40006. /* Update TIMx CR2 */
  40007. htim->Instance->CR2 = tmpcr2;
  40008. 80111e0: 687b ldr r3, [r7, #4]
  40009. 80111e2: 681b ldr r3, [r3, #0]
  40010. 80111e4: 68fa ldr r2, [r7, #12]
  40011. 80111e6: 605a str r2, [r3, #4]
  40012. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  40013. 80111e8: 687b ldr r3, [r7, #4]
  40014. 80111ea: 681b ldr r3, [r3, #0]
  40015. 80111ec: 4a20 ldr r2, [pc, #128] @ (8011270 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  40016. 80111ee: 4293 cmp r3, r2
  40017. 80111f0: d022 beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40018. 80111f2: 687b ldr r3, [r7, #4]
  40019. 80111f4: 681b ldr r3, [r3, #0]
  40020. 80111f6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  40021. 80111fa: d01d beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40022. 80111fc: 687b ldr r3, [r7, #4]
  40023. 80111fe: 681b ldr r3, [r3, #0]
  40024. 8011200: 4a1d ldr r2, [pc, #116] @ (8011278 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  40025. 8011202: 4293 cmp r3, r2
  40026. 8011204: d018 beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40027. 8011206: 687b ldr r3, [r7, #4]
  40028. 8011208: 681b ldr r3, [r3, #0]
  40029. 801120a: 4a1c ldr r2, [pc, #112] @ (801127c <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  40030. 801120c: 4293 cmp r3, r2
  40031. 801120e: d013 beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40032. 8011210: 687b ldr r3, [r7, #4]
  40033. 8011212: 681b ldr r3, [r3, #0]
  40034. 8011214: 4a1a ldr r2, [pc, #104] @ (8011280 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  40035. 8011216: 4293 cmp r3, r2
  40036. 8011218: d00e beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40037. 801121a: 687b ldr r3, [r7, #4]
  40038. 801121c: 681b ldr r3, [r3, #0]
  40039. 801121e: 4a15 ldr r2, [pc, #84] @ (8011274 <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  40040. 8011220: 4293 cmp r3, r2
  40041. 8011222: d009 beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40042. 8011224: 687b ldr r3, [r7, #4]
  40043. 8011226: 681b ldr r3, [r3, #0]
  40044. 8011228: 4a16 ldr r2, [pc, #88] @ (8011284 <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  40045. 801122a: 4293 cmp r3, r2
  40046. 801122c: d004 beq.n 8011238 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  40047. 801122e: 687b ldr r3, [r7, #4]
  40048. 8011230: 681b ldr r3, [r3, #0]
  40049. 8011232: 4a15 ldr r2, [pc, #84] @ (8011288 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  40050. 8011234: 4293 cmp r3, r2
  40051. 8011236: d10c bne.n 8011252 <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  40052. {
  40053. /* Reset the MSM Bit */
  40054. tmpsmcr &= ~TIM_SMCR_MSM;
  40055. 8011238: 68bb ldr r3, [r7, #8]
  40056. 801123a: f023 0380 bic.w r3, r3, #128 @ 0x80
  40057. 801123e: 60bb str r3, [r7, #8]
  40058. /* Set master mode */
  40059. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  40060. 8011240: 683b ldr r3, [r7, #0]
  40061. 8011242: 689b ldr r3, [r3, #8]
  40062. 8011244: 68ba ldr r2, [r7, #8]
  40063. 8011246: 4313 orrs r3, r2
  40064. 8011248: 60bb str r3, [r7, #8]
  40065. /* Update TIMx SMCR */
  40066. htim->Instance->SMCR = tmpsmcr;
  40067. 801124a: 687b ldr r3, [r7, #4]
  40068. 801124c: 681b ldr r3, [r3, #0]
  40069. 801124e: 68ba ldr r2, [r7, #8]
  40070. 8011250: 609a str r2, [r3, #8]
  40071. }
  40072. /* Change the htim state */
  40073. htim->State = HAL_TIM_STATE_READY;
  40074. 8011252: 687b ldr r3, [r7, #4]
  40075. 8011254: 2201 movs r2, #1
  40076. 8011256: f883 203d strb.w r2, [r3, #61] @ 0x3d
  40077. __HAL_UNLOCK(htim);
  40078. 801125a: 687b ldr r3, [r7, #4]
  40079. 801125c: 2200 movs r2, #0
  40080. 801125e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40081. return HAL_OK;
  40082. 8011262: 2300 movs r3, #0
  40083. }
  40084. 8011264: 4618 mov r0, r3
  40085. 8011266: 3714 adds r7, #20
  40086. 8011268: 46bd mov sp, r7
  40087. 801126a: f85d 7b04 ldr.w r7, [sp], #4
  40088. 801126e: 4770 bx lr
  40089. 8011270: 40010000 .word 0x40010000
  40090. 8011274: 40010400 .word 0x40010400
  40091. 8011278: 40000400 .word 0x40000400
  40092. 801127c: 40000800 .word 0x40000800
  40093. 8011280: 40000c00 .word 0x40000c00
  40094. 8011284: 40001800 .word 0x40001800
  40095. 8011288: 40014000 .word 0x40014000
  40096. 0801128c <HAL_TIMEx_ConfigBreakDeadTime>:
  40097. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  40098. * @retval HAL status
  40099. */
  40100. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  40101. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  40102. {
  40103. 801128c: b480 push {r7}
  40104. 801128e: b085 sub sp, #20
  40105. 8011290: af00 add r7, sp, #0
  40106. 8011292: 6078 str r0, [r7, #4]
  40107. 8011294: 6039 str r1, [r7, #0]
  40108. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  40109. uint32_t tmpbdtr = 0U;
  40110. 8011296: 2300 movs r3, #0
  40111. 8011298: 60fb str r3, [r7, #12]
  40112. #if defined(TIM_BDTR_BKBID)
  40113. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  40114. #endif /* TIM_BDTR_BKBID */
  40115. /* Check input state */
  40116. __HAL_LOCK(htim);
  40117. 801129a: 687b ldr r3, [r7, #4]
  40118. 801129c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  40119. 80112a0: 2b01 cmp r3, #1
  40120. 80112a2: d101 bne.n 80112a8 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  40121. 80112a4: 2302 movs r3, #2
  40122. 80112a6: e065 b.n 8011374 <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  40123. 80112a8: 687b ldr r3, [r7, #4]
  40124. 80112aa: 2201 movs r2, #1
  40125. 80112ac: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40126. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  40127. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  40128. /* Set the BDTR bits */
  40129. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  40130. 80112b0: 68fb ldr r3, [r7, #12]
  40131. 80112b2: f023 02ff bic.w r2, r3, #255 @ 0xff
  40132. 80112b6: 683b ldr r3, [r7, #0]
  40133. 80112b8: 68db ldr r3, [r3, #12]
  40134. 80112ba: 4313 orrs r3, r2
  40135. 80112bc: 60fb str r3, [r7, #12]
  40136. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  40137. 80112be: 68fb ldr r3, [r7, #12]
  40138. 80112c0: f423 7240 bic.w r2, r3, #768 @ 0x300
  40139. 80112c4: 683b ldr r3, [r7, #0]
  40140. 80112c6: 689b ldr r3, [r3, #8]
  40141. 80112c8: 4313 orrs r3, r2
  40142. 80112ca: 60fb str r3, [r7, #12]
  40143. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  40144. 80112cc: 68fb ldr r3, [r7, #12]
  40145. 80112ce: f423 6280 bic.w r2, r3, #1024 @ 0x400
  40146. 80112d2: 683b ldr r3, [r7, #0]
  40147. 80112d4: 685b ldr r3, [r3, #4]
  40148. 80112d6: 4313 orrs r3, r2
  40149. 80112d8: 60fb str r3, [r7, #12]
  40150. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  40151. 80112da: 68fb ldr r3, [r7, #12]
  40152. 80112dc: f423 6200 bic.w r2, r3, #2048 @ 0x800
  40153. 80112e0: 683b ldr r3, [r7, #0]
  40154. 80112e2: 681b ldr r3, [r3, #0]
  40155. 80112e4: 4313 orrs r3, r2
  40156. 80112e6: 60fb str r3, [r7, #12]
  40157. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  40158. 80112e8: 68fb ldr r3, [r7, #12]
  40159. 80112ea: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  40160. 80112ee: 683b ldr r3, [r7, #0]
  40161. 80112f0: 691b ldr r3, [r3, #16]
  40162. 80112f2: 4313 orrs r3, r2
  40163. 80112f4: 60fb str r3, [r7, #12]
  40164. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  40165. 80112f6: 68fb ldr r3, [r7, #12]
  40166. 80112f8: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  40167. 80112fc: 683b ldr r3, [r7, #0]
  40168. 80112fe: 695b ldr r3, [r3, #20]
  40169. 8011300: 4313 orrs r3, r2
  40170. 8011302: 60fb str r3, [r7, #12]
  40171. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  40172. 8011304: 68fb ldr r3, [r7, #12]
  40173. 8011306: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  40174. 801130a: 683b ldr r3, [r7, #0]
  40175. 801130c: 6a9b ldr r3, [r3, #40] @ 0x28
  40176. 801130e: 4313 orrs r3, r2
  40177. 8011310: 60fb str r3, [r7, #12]
  40178. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  40179. 8011312: 68fb ldr r3, [r7, #12]
  40180. 8011314: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  40181. 8011318: 683b ldr r3, [r7, #0]
  40182. 801131a: 699b ldr r3, [r3, #24]
  40183. 801131c: 041b lsls r3, r3, #16
  40184. 801131e: 4313 orrs r3, r2
  40185. 8011320: 60fb str r3, [r7, #12]
  40186. #if defined(TIM_BDTR_BKBID)
  40187. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  40188. #endif /* TIM_BDTR_BKBID */
  40189. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  40190. 8011322: 687b ldr r3, [r7, #4]
  40191. 8011324: 681b ldr r3, [r3, #0]
  40192. 8011326: 4a16 ldr r2, [pc, #88] @ (8011380 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  40193. 8011328: 4293 cmp r3, r2
  40194. 801132a: d004 beq.n 8011336 <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  40195. 801132c: 687b ldr r3, [r7, #4]
  40196. 801132e: 681b ldr r3, [r3, #0]
  40197. 8011330: 4a14 ldr r2, [pc, #80] @ (8011384 <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  40198. 8011332: 4293 cmp r3, r2
  40199. 8011334: d115 bne.n 8011362 <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  40200. #if defined(TIM_BDTR_BKBID)
  40201. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  40202. #endif /* TIM_BDTR_BKBID */
  40203. /* Set the BREAK2 input related BDTR bits */
  40204. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  40205. 8011336: 68fb ldr r3, [r7, #12]
  40206. 8011338: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  40207. 801133c: 683b ldr r3, [r7, #0]
  40208. 801133e: 6a5b ldr r3, [r3, #36] @ 0x24
  40209. 8011340: 051b lsls r3, r3, #20
  40210. 8011342: 4313 orrs r3, r2
  40211. 8011344: 60fb str r3, [r7, #12]
  40212. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  40213. 8011346: 68fb ldr r3, [r7, #12]
  40214. 8011348: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  40215. 801134c: 683b ldr r3, [r7, #0]
  40216. 801134e: 69db ldr r3, [r3, #28]
  40217. 8011350: 4313 orrs r3, r2
  40218. 8011352: 60fb str r3, [r7, #12]
  40219. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  40220. 8011354: 68fb ldr r3, [r7, #12]
  40221. 8011356: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  40222. 801135a: 683b ldr r3, [r7, #0]
  40223. 801135c: 6a1b ldr r3, [r3, #32]
  40224. 801135e: 4313 orrs r3, r2
  40225. 8011360: 60fb str r3, [r7, #12]
  40226. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  40227. #endif /* TIM_BDTR_BKBID */
  40228. }
  40229. /* Set TIMx_BDTR */
  40230. htim->Instance->BDTR = tmpbdtr;
  40231. 8011362: 687b ldr r3, [r7, #4]
  40232. 8011364: 681b ldr r3, [r3, #0]
  40233. 8011366: 68fa ldr r2, [r7, #12]
  40234. 8011368: 645a str r2, [r3, #68] @ 0x44
  40235. __HAL_UNLOCK(htim);
  40236. 801136a: 687b ldr r3, [r7, #4]
  40237. 801136c: 2200 movs r2, #0
  40238. 801136e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  40239. return HAL_OK;
  40240. 8011372: 2300 movs r3, #0
  40241. }
  40242. 8011374: 4618 mov r0, r3
  40243. 8011376: 3714 adds r7, #20
  40244. 8011378: 46bd mov sp, r7
  40245. 801137a: f85d 7b04 ldr.w r7, [sp], #4
  40246. 801137e: 4770 bx lr
  40247. 8011380: 40010000 .word 0x40010000
  40248. 8011384: 40010400 .word 0x40010400
  40249. 08011388 <HAL_TIMEx_CommutCallback>:
  40250. * @brief Commutation callback in non-blocking mode
  40251. * @param htim TIM handle
  40252. * @retval None
  40253. */
  40254. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  40255. {
  40256. 8011388: b480 push {r7}
  40257. 801138a: b083 sub sp, #12
  40258. 801138c: af00 add r7, sp, #0
  40259. 801138e: 6078 str r0, [r7, #4]
  40260. UNUSED(htim);
  40261. /* NOTE : This function should not be modified, when the callback is needed,
  40262. the HAL_TIMEx_CommutCallback could be implemented in the user file
  40263. */
  40264. }
  40265. 8011390: bf00 nop
  40266. 8011392: 370c adds r7, #12
  40267. 8011394: 46bd mov sp, r7
  40268. 8011396: f85d 7b04 ldr.w r7, [sp], #4
  40269. 801139a: 4770 bx lr
  40270. 0801139c <HAL_TIMEx_BreakCallback>:
  40271. * @brief Break detection callback in non-blocking mode
  40272. * @param htim TIM handle
  40273. * @retval None
  40274. */
  40275. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  40276. {
  40277. 801139c: b480 push {r7}
  40278. 801139e: b083 sub sp, #12
  40279. 80113a0: af00 add r7, sp, #0
  40280. 80113a2: 6078 str r0, [r7, #4]
  40281. UNUSED(htim);
  40282. /* NOTE : This function should not be modified, when the callback is needed,
  40283. the HAL_TIMEx_BreakCallback could be implemented in the user file
  40284. */
  40285. }
  40286. 80113a4: bf00 nop
  40287. 80113a6: 370c adds r7, #12
  40288. 80113a8: 46bd mov sp, r7
  40289. 80113aa: f85d 7b04 ldr.w r7, [sp], #4
  40290. 80113ae: 4770 bx lr
  40291. 080113b0 <HAL_TIMEx_Break2Callback>:
  40292. * @brief Break2 detection callback in non blocking mode
  40293. * @param htim: TIM handle
  40294. * @retval None
  40295. */
  40296. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  40297. {
  40298. 80113b0: b480 push {r7}
  40299. 80113b2: b083 sub sp, #12
  40300. 80113b4: af00 add r7, sp, #0
  40301. 80113b6: 6078 str r0, [r7, #4]
  40302. UNUSED(htim);
  40303. /* NOTE : This function Should not be modified, when the callback is needed,
  40304. the HAL_TIMEx_Break2Callback could be implemented in the user file
  40305. */
  40306. }
  40307. 80113b8: bf00 nop
  40308. 80113ba: 370c adds r7, #12
  40309. 80113bc: 46bd mov sp, r7
  40310. 80113be: f85d 7b04 ldr.w r7, [sp], #4
  40311. 80113c2: 4770 bx lr
  40312. 080113c4 <HAL_UART_Init>:
  40313. * parameters in the UART_InitTypeDef and initialize the associated handle.
  40314. * @param huart UART handle.
  40315. * @retval HAL status
  40316. */
  40317. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  40318. {
  40319. 80113c4: b580 push {r7, lr}
  40320. 80113c6: b082 sub sp, #8
  40321. 80113c8: af00 add r7, sp, #0
  40322. 80113ca: 6078 str r0, [r7, #4]
  40323. /* Check the UART handle allocation */
  40324. if (huart == NULL)
  40325. 80113cc: 687b ldr r3, [r7, #4]
  40326. 80113ce: 2b00 cmp r3, #0
  40327. 80113d0: d101 bne.n 80113d6 <HAL_UART_Init+0x12>
  40328. {
  40329. return HAL_ERROR;
  40330. 80113d2: 2301 movs r3, #1
  40331. 80113d4: e042 b.n 801145c <HAL_UART_Init+0x98>
  40332. {
  40333. /* Check the parameters */
  40334. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  40335. }
  40336. if (huart->gState == HAL_UART_STATE_RESET)
  40337. 80113d6: 687b ldr r3, [r7, #4]
  40338. 80113d8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40339. 80113dc: 2b00 cmp r3, #0
  40340. 80113de: d106 bne.n 80113ee <HAL_UART_Init+0x2a>
  40341. {
  40342. /* Allocate lock resource and initialize it */
  40343. huart->Lock = HAL_UNLOCKED;
  40344. 80113e0: 687b ldr r3, [r7, #4]
  40345. 80113e2: 2200 movs r2, #0
  40346. 80113e4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  40347. /* Init the low level hardware */
  40348. huart->MspInitCallback(huart);
  40349. #else
  40350. /* Init the low level hardware : GPIO, CLOCK */
  40351. HAL_UART_MspInit(huart);
  40352. 80113e8: 6878 ldr r0, [r7, #4]
  40353. 80113ea: f7f3 f881 bl 80044f0 <HAL_UART_MspInit>
  40354. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  40355. }
  40356. huart->gState = HAL_UART_STATE_BUSY;
  40357. 80113ee: 687b ldr r3, [r7, #4]
  40358. 80113f0: 2224 movs r2, #36 @ 0x24
  40359. 80113f2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40360. __HAL_UART_DISABLE(huart);
  40361. 80113f6: 687b ldr r3, [r7, #4]
  40362. 80113f8: 681b ldr r3, [r3, #0]
  40363. 80113fa: 681a ldr r2, [r3, #0]
  40364. 80113fc: 687b ldr r3, [r7, #4]
  40365. 80113fe: 681b ldr r3, [r3, #0]
  40366. 8011400: f022 0201 bic.w r2, r2, #1
  40367. 8011404: 601a str r2, [r3, #0]
  40368. /* Perform advanced settings configuration */
  40369. /* For some items, configuration requires to be done prior TE and RE bits are set */
  40370. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  40371. 8011406: 687b ldr r3, [r7, #4]
  40372. 8011408: 6a9b ldr r3, [r3, #40] @ 0x28
  40373. 801140a: 2b00 cmp r3, #0
  40374. 801140c: d002 beq.n 8011414 <HAL_UART_Init+0x50>
  40375. {
  40376. UART_AdvFeatureConfig(huart);
  40377. 801140e: 6878 ldr r0, [r7, #4]
  40378. 8011410: f001 f9e8 bl 80127e4 <UART_AdvFeatureConfig>
  40379. }
  40380. /* Set the UART Communication parameters */
  40381. if (UART_SetConfig(huart) == HAL_ERROR)
  40382. 8011414: 6878 ldr r0, [r7, #4]
  40383. 8011416: f000 fc7d bl 8011d14 <UART_SetConfig>
  40384. 801141a: 4603 mov r3, r0
  40385. 801141c: 2b01 cmp r3, #1
  40386. 801141e: d101 bne.n 8011424 <HAL_UART_Init+0x60>
  40387. {
  40388. return HAL_ERROR;
  40389. 8011420: 2301 movs r3, #1
  40390. 8011422: e01b b.n 801145c <HAL_UART_Init+0x98>
  40391. }
  40392. /* In asynchronous mode, the following bits must be kept cleared:
  40393. - LINEN and CLKEN bits in the USART_CR2 register,
  40394. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  40395. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  40396. 8011424: 687b ldr r3, [r7, #4]
  40397. 8011426: 681b ldr r3, [r3, #0]
  40398. 8011428: 685a ldr r2, [r3, #4]
  40399. 801142a: 687b ldr r3, [r7, #4]
  40400. 801142c: 681b ldr r3, [r3, #0]
  40401. 801142e: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  40402. 8011432: 605a str r2, [r3, #4]
  40403. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  40404. 8011434: 687b ldr r3, [r7, #4]
  40405. 8011436: 681b ldr r3, [r3, #0]
  40406. 8011438: 689a ldr r2, [r3, #8]
  40407. 801143a: 687b ldr r3, [r7, #4]
  40408. 801143c: 681b ldr r3, [r3, #0]
  40409. 801143e: f022 022a bic.w r2, r2, #42 @ 0x2a
  40410. 8011442: 609a str r2, [r3, #8]
  40411. __HAL_UART_ENABLE(huart);
  40412. 8011444: 687b ldr r3, [r7, #4]
  40413. 8011446: 681b ldr r3, [r3, #0]
  40414. 8011448: 681a ldr r2, [r3, #0]
  40415. 801144a: 687b ldr r3, [r7, #4]
  40416. 801144c: 681b ldr r3, [r3, #0]
  40417. 801144e: f042 0201 orr.w r2, r2, #1
  40418. 8011452: 601a str r2, [r3, #0]
  40419. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  40420. return (UART_CheckIdleState(huart));
  40421. 8011454: 6878 ldr r0, [r7, #4]
  40422. 8011456: f001 fa67 bl 8012928 <UART_CheckIdleState>
  40423. 801145a: 4603 mov r3, r0
  40424. }
  40425. 801145c: 4618 mov r0, r3
  40426. 801145e: 3708 adds r7, #8
  40427. 8011460: 46bd mov sp, r7
  40428. 8011462: bd80 pop {r7, pc}
  40429. 08011464 <HAL_UART_Transmit_IT>:
  40430. * @param pData Pointer to data buffer (u8 or u16 data elements).
  40431. * @param Size Amount of data elements (u8 or u16) to be sent.
  40432. * @retval HAL status
  40433. */
  40434. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  40435. {
  40436. 8011464: b480 push {r7}
  40437. 8011466: b091 sub sp, #68 @ 0x44
  40438. 8011468: af00 add r7, sp, #0
  40439. 801146a: 60f8 str r0, [r7, #12]
  40440. 801146c: 60b9 str r1, [r7, #8]
  40441. 801146e: 4613 mov r3, r2
  40442. 8011470: 80fb strh r3, [r7, #6]
  40443. /* Check that a Tx process is not already ongoing */
  40444. if (huart->gState == HAL_UART_STATE_READY)
  40445. 8011472: 68fb ldr r3, [r7, #12]
  40446. 8011474: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  40447. 8011478: 2b20 cmp r3, #32
  40448. 801147a: d178 bne.n 801156e <HAL_UART_Transmit_IT+0x10a>
  40449. {
  40450. if ((pData == NULL) || (Size == 0U))
  40451. 801147c: 68bb ldr r3, [r7, #8]
  40452. 801147e: 2b00 cmp r3, #0
  40453. 8011480: d002 beq.n 8011488 <HAL_UART_Transmit_IT+0x24>
  40454. 8011482: 88fb ldrh r3, [r7, #6]
  40455. 8011484: 2b00 cmp r3, #0
  40456. 8011486: d101 bne.n 801148c <HAL_UART_Transmit_IT+0x28>
  40457. {
  40458. return HAL_ERROR;
  40459. 8011488: 2301 movs r3, #1
  40460. 801148a: e071 b.n 8011570 <HAL_UART_Transmit_IT+0x10c>
  40461. }
  40462. huart->pTxBuffPtr = pData;
  40463. 801148c: 68fb ldr r3, [r7, #12]
  40464. 801148e: 68ba ldr r2, [r7, #8]
  40465. 8011490: 651a str r2, [r3, #80] @ 0x50
  40466. huart->TxXferSize = Size;
  40467. 8011492: 68fb ldr r3, [r7, #12]
  40468. 8011494: 88fa ldrh r2, [r7, #6]
  40469. 8011496: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  40470. huart->TxXferCount = Size;
  40471. 801149a: 68fb ldr r3, [r7, #12]
  40472. 801149c: 88fa ldrh r2, [r7, #6]
  40473. 801149e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  40474. huart->TxISR = NULL;
  40475. 80114a2: 68fb ldr r3, [r7, #12]
  40476. 80114a4: 2200 movs r2, #0
  40477. 80114a6: 679a str r2, [r3, #120] @ 0x78
  40478. huart->ErrorCode = HAL_UART_ERROR_NONE;
  40479. 80114a8: 68fb ldr r3, [r7, #12]
  40480. 80114aa: 2200 movs r2, #0
  40481. 80114ac: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40482. huart->gState = HAL_UART_STATE_BUSY_TX;
  40483. 80114b0: 68fb ldr r3, [r7, #12]
  40484. 80114b2: 2221 movs r2, #33 @ 0x21
  40485. 80114b4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  40486. /* Configure Tx interrupt processing */
  40487. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  40488. 80114b8: 68fb ldr r3, [r7, #12]
  40489. 80114ba: 6e5b ldr r3, [r3, #100] @ 0x64
  40490. 80114bc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  40491. 80114c0: d12a bne.n 8011518 <HAL_UART_Transmit_IT+0xb4>
  40492. {
  40493. /* Set the Tx ISR function pointer according to the data word length */
  40494. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40495. 80114c2: 68fb ldr r3, [r7, #12]
  40496. 80114c4: 689b ldr r3, [r3, #8]
  40497. 80114c6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40498. 80114ca: d107 bne.n 80114dc <HAL_UART_Transmit_IT+0x78>
  40499. 80114cc: 68fb ldr r3, [r7, #12]
  40500. 80114ce: 691b ldr r3, [r3, #16]
  40501. 80114d0: 2b00 cmp r3, #0
  40502. 80114d2: d103 bne.n 80114dc <HAL_UART_Transmit_IT+0x78>
  40503. {
  40504. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  40505. 80114d4: 68fb ldr r3, [r7, #12]
  40506. 80114d6: 4a29 ldr r2, [pc, #164] @ (801157c <HAL_UART_Transmit_IT+0x118>)
  40507. 80114d8: 679a str r2, [r3, #120] @ 0x78
  40508. 80114da: e002 b.n 80114e2 <HAL_UART_Transmit_IT+0x7e>
  40509. }
  40510. else
  40511. {
  40512. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  40513. 80114dc: 68fb ldr r3, [r7, #12]
  40514. 80114de: 4a28 ldr r2, [pc, #160] @ (8011580 <HAL_UART_Transmit_IT+0x11c>)
  40515. 80114e0: 679a str r2, [r3, #120] @ 0x78
  40516. }
  40517. /* Enable the TX FIFO threshold interrupt */
  40518. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  40519. 80114e2: 68fb ldr r3, [r7, #12]
  40520. 80114e4: 681b ldr r3, [r3, #0]
  40521. 80114e6: 3308 adds r3, #8
  40522. 80114e8: 62bb str r3, [r7, #40] @ 0x28
  40523. */
  40524. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  40525. {
  40526. uint32_t result;
  40527. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40528. 80114ea: 6abb ldr r3, [r7, #40] @ 0x28
  40529. 80114ec: e853 3f00 ldrex r3, [r3]
  40530. 80114f0: 627b str r3, [r7, #36] @ 0x24
  40531. return(result);
  40532. 80114f2: 6a7b ldr r3, [r7, #36] @ 0x24
  40533. 80114f4: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  40534. 80114f8: 63bb str r3, [r7, #56] @ 0x38
  40535. 80114fa: 68fb ldr r3, [r7, #12]
  40536. 80114fc: 681b ldr r3, [r3, #0]
  40537. 80114fe: 3308 adds r3, #8
  40538. 8011500: 6bba ldr r2, [r7, #56] @ 0x38
  40539. 8011502: 637a str r2, [r7, #52] @ 0x34
  40540. 8011504: 633b str r3, [r7, #48] @ 0x30
  40541. */
  40542. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  40543. {
  40544. uint32_t result;
  40545. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40546. 8011506: 6b39 ldr r1, [r7, #48] @ 0x30
  40547. 8011508: 6b7a ldr r2, [r7, #52] @ 0x34
  40548. 801150a: e841 2300 strex r3, r2, [r1]
  40549. 801150e: 62fb str r3, [r7, #44] @ 0x2c
  40550. return(result);
  40551. 8011510: 6afb ldr r3, [r7, #44] @ 0x2c
  40552. 8011512: 2b00 cmp r3, #0
  40553. 8011514: d1e5 bne.n 80114e2 <HAL_UART_Transmit_IT+0x7e>
  40554. 8011516: e028 b.n 801156a <HAL_UART_Transmit_IT+0x106>
  40555. }
  40556. else
  40557. {
  40558. /* Set the Tx ISR function pointer according to the data word length */
  40559. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  40560. 8011518: 68fb ldr r3, [r7, #12]
  40561. 801151a: 689b ldr r3, [r3, #8]
  40562. 801151c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  40563. 8011520: d107 bne.n 8011532 <HAL_UART_Transmit_IT+0xce>
  40564. 8011522: 68fb ldr r3, [r7, #12]
  40565. 8011524: 691b ldr r3, [r3, #16]
  40566. 8011526: 2b00 cmp r3, #0
  40567. 8011528: d103 bne.n 8011532 <HAL_UART_Transmit_IT+0xce>
  40568. {
  40569. huart->TxISR = UART_TxISR_16BIT;
  40570. 801152a: 68fb ldr r3, [r7, #12]
  40571. 801152c: 4a15 ldr r2, [pc, #84] @ (8011584 <HAL_UART_Transmit_IT+0x120>)
  40572. 801152e: 679a str r2, [r3, #120] @ 0x78
  40573. 8011530: e002 b.n 8011538 <HAL_UART_Transmit_IT+0xd4>
  40574. }
  40575. else
  40576. {
  40577. huart->TxISR = UART_TxISR_8BIT;
  40578. 8011532: 68fb ldr r3, [r7, #12]
  40579. 8011534: 4a14 ldr r2, [pc, #80] @ (8011588 <HAL_UART_Transmit_IT+0x124>)
  40580. 8011536: 679a str r2, [r3, #120] @ 0x78
  40581. }
  40582. /* Enable the Transmit Data Register Empty interrupt */
  40583. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  40584. 8011538: 68fb ldr r3, [r7, #12]
  40585. 801153a: 681b ldr r3, [r3, #0]
  40586. 801153c: 617b str r3, [r7, #20]
  40587. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40588. 801153e: 697b ldr r3, [r7, #20]
  40589. 8011540: e853 3f00 ldrex r3, [r3]
  40590. 8011544: 613b str r3, [r7, #16]
  40591. return(result);
  40592. 8011546: 693b ldr r3, [r7, #16]
  40593. 8011548: f043 0380 orr.w r3, r3, #128 @ 0x80
  40594. 801154c: 63fb str r3, [r7, #60] @ 0x3c
  40595. 801154e: 68fb ldr r3, [r7, #12]
  40596. 8011550: 681b ldr r3, [r3, #0]
  40597. 8011552: 461a mov r2, r3
  40598. 8011554: 6bfb ldr r3, [r7, #60] @ 0x3c
  40599. 8011556: 623b str r3, [r7, #32]
  40600. 8011558: 61fa str r2, [r7, #28]
  40601. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40602. 801155a: 69f9 ldr r1, [r7, #28]
  40603. 801155c: 6a3a ldr r2, [r7, #32]
  40604. 801155e: e841 2300 strex r3, r2, [r1]
  40605. 8011562: 61bb str r3, [r7, #24]
  40606. return(result);
  40607. 8011564: 69bb ldr r3, [r7, #24]
  40608. 8011566: 2b00 cmp r3, #0
  40609. 8011568: d1e6 bne.n 8011538 <HAL_UART_Transmit_IT+0xd4>
  40610. }
  40611. return HAL_OK;
  40612. 801156a: 2300 movs r3, #0
  40613. 801156c: e000 b.n 8011570 <HAL_UART_Transmit_IT+0x10c>
  40614. }
  40615. else
  40616. {
  40617. return HAL_BUSY;
  40618. 801156e: 2302 movs r3, #2
  40619. }
  40620. }
  40621. 8011570: 4618 mov r0, r3
  40622. 8011572: 3744 adds r7, #68 @ 0x44
  40623. 8011574: 46bd mov sp, r7
  40624. 8011576: f85d 7b04 ldr.w r7, [sp], #4
  40625. 801157a: 4770 bx lr
  40626. 801157c: 080130ef .word 0x080130ef
  40627. 8011580: 0801300f .word 0x0801300f
  40628. 8011584: 08012f4d .word 0x08012f4d
  40629. 8011588: 08012e95 .word 0x08012e95
  40630. 0801158c <HAL_UART_IRQHandler>:
  40631. * @brief Handle UART interrupt request.
  40632. * @param huart UART handle.
  40633. * @retval None
  40634. */
  40635. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  40636. {
  40637. 801158c: b580 push {r7, lr}
  40638. 801158e: b0ba sub sp, #232 @ 0xe8
  40639. 8011590: af00 add r7, sp, #0
  40640. 8011592: 6078 str r0, [r7, #4]
  40641. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  40642. 8011594: 687b ldr r3, [r7, #4]
  40643. 8011596: 681b ldr r3, [r3, #0]
  40644. 8011598: 69db ldr r3, [r3, #28]
  40645. 801159a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  40646. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  40647. 801159e: 687b ldr r3, [r7, #4]
  40648. 80115a0: 681b ldr r3, [r3, #0]
  40649. 80115a2: 681b ldr r3, [r3, #0]
  40650. 80115a4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  40651. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  40652. 80115a8: 687b ldr r3, [r7, #4]
  40653. 80115aa: 681b ldr r3, [r3, #0]
  40654. 80115ac: 689b ldr r3, [r3, #8]
  40655. 80115ae: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  40656. uint32_t errorflags;
  40657. uint32_t errorcode;
  40658. /* If no error occurs */
  40659. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  40660. 80115b2: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  40661. 80115b6: f640 030f movw r3, #2063 @ 0x80f
  40662. 80115ba: 4013 ands r3, r2
  40663. 80115bc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  40664. if (errorflags == 0U)
  40665. 80115c0: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40666. 80115c4: 2b00 cmp r3, #0
  40667. 80115c6: d11b bne.n 8011600 <HAL_UART_IRQHandler+0x74>
  40668. {
  40669. /* UART in mode Receiver ---------------------------------------------------*/
  40670. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40671. 80115c8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40672. 80115cc: f003 0320 and.w r3, r3, #32
  40673. 80115d0: 2b00 cmp r3, #0
  40674. 80115d2: d015 beq.n 8011600 <HAL_UART_IRQHandler+0x74>
  40675. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40676. 80115d4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40677. 80115d8: f003 0320 and.w r3, r3, #32
  40678. 80115dc: 2b00 cmp r3, #0
  40679. 80115de: d105 bne.n 80115ec <HAL_UART_IRQHandler+0x60>
  40680. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40681. 80115e0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40682. 80115e4: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40683. 80115e8: 2b00 cmp r3, #0
  40684. 80115ea: d009 beq.n 8011600 <HAL_UART_IRQHandler+0x74>
  40685. {
  40686. if (huart->RxISR != NULL)
  40687. 80115ec: 687b ldr r3, [r7, #4]
  40688. 80115ee: 6f5b ldr r3, [r3, #116] @ 0x74
  40689. 80115f0: 2b00 cmp r3, #0
  40690. 80115f2: f000 8377 beq.w 8011ce4 <HAL_UART_IRQHandler+0x758>
  40691. {
  40692. huart->RxISR(huart);
  40693. 80115f6: 687b ldr r3, [r7, #4]
  40694. 80115f8: 6f5b ldr r3, [r3, #116] @ 0x74
  40695. 80115fa: 6878 ldr r0, [r7, #4]
  40696. 80115fc: 4798 blx r3
  40697. }
  40698. return;
  40699. 80115fe: e371 b.n 8011ce4 <HAL_UART_IRQHandler+0x758>
  40700. }
  40701. }
  40702. /* If some errors occur */
  40703. if ((errorflags != 0U)
  40704. 8011600: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  40705. 8011604: 2b00 cmp r3, #0
  40706. 8011606: f000 8123 beq.w 8011850 <HAL_UART_IRQHandler+0x2c4>
  40707. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  40708. 801160a: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40709. 801160e: 4b8d ldr r3, [pc, #564] @ (8011844 <HAL_UART_IRQHandler+0x2b8>)
  40710. 8011610: 4013 ands r3, r2
  40711. 8011612: 2b00 cmp r3, #0
  40712. 8011614: d106 bne.n 8011624 <HAL_UART_IRQHandler+0x98>
  40713. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  40714. 8011616: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  40715. 801161a: 4b8b ldr r3, [pc, #556] @ (8011848 <HAL_UART_IRQHandler+0x2bc>)
  40716. 801161c: 4013 ands r3, r2
  40717. 801161e: 2b00 cmp r3, #0
  40718. 8011620: f000 8116 beq.w 8011850 <HAL_UART_IRQHandler+0x2c4>
  40719. {
  40720. /* UART parity error interrupt occurred -------------------------------------*/
  40721. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  40722. 8011624: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40723. 8011628: f003 0301 and.w r3, r3, #1
  40724. 801162c: 2b00 cmp r3, #0
  40725. 801162e: d011 beq.n 8011654 <HAL_UART_IRQHandler+0xc8>
  40726. 8011630: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40727. 8011634: f403 7380 and.w r3, r3, #256 @ 0x100
  40728. 8011638: 2b00 cmp r3, #0
  40729. 801163a: d00b beq.n 8011654 <HAL_UART_IRQHandler+0xc8>
  40730. {
  40731. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  40732. 801163c: 687b ldr r3, [r7, #4]
  40733. 801163e: 681b ldr r3, [r3, #0]
  40734. 8011640: 2201 movs r2, #1
  40735. 8011642: 621a str r2, [r3, #32]
  40736. huart->ErrorCode |= HAL_UART_ERROR_PE;
  40737. 8011644: 687b ldr r3, [r7, #4]
  40738. 8011646: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40739. 801164a: f043 0201 orr.w r2, r3, #1
  40740. 801164e: 687b ldr r3, [r7, #4]
  40741. 8011650: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40742. }
  40743. /* UART frame error interrupt occurred --------------------------------------*/
  40744. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40745. 8011654: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40746. 8011658: f003 0302 and.w r3, r3, #2
  40747. 801165c: 2b00 cmp r3, #0
  40748. 801165e: d011 beq.n 8011684 <HAL_UART_IRQHandler+0xf8>
  40749. 8011660: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40750. 8011664: f003 0301 and.w r3, r3, #1
  40751. 8011668: 2b00 cmp r3, #0
  40752. 801166a: d00b beq.n 8011684 <HAL_UART_IRQHandler+0xf8>
  40753. {
  40754. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  40755. 801166c: 687b ldr r3, [r7, #4]
  40756. 801166e: 681b ldr r3, [r3, #0]
  40757. 8011670: 2202 movs r2, #2
  40758. 8011672: 621a str r2, [r3, #32]
  40759. huart->ErrorCode |= HAL_UART_ERROR_FE;
  40760. 8011674: 687b ldr r3, [r7, #4]
  40761. 8011676: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40762. 801167a: f043 0204 orr.w r2, r3, #4
  40763. 801167e: 687b ldr r3, [r7, #4]
  40764. 8011680: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40765. }
  40766. /* UART noise error interrupt occurred --------------------------------------*/
  40767. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  40768. 8011684: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40769. 8011688: f003 0304 and.w r3, r3, #4
  40770. 801168c: 2b00 cmp r3, #0
  40771. 801168e: d011 beq.n 80116b4 <HAL_UART_IRQHandler+0x128>
  40772. 8011690: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40773. 8011694: f003 0301 and.w r3, r3, #1
  40774. 8011698: 2b00 cmp r3, #0
  40775. 801169a: d00b beq.n 80116b4 <HAL_UART_IRQHandler+0x128>
  40776. {
  40777. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  40778. 801169c: 687b ldr r3, [r7, #4]
  40779. 801169e: 681b ldr r3, [r3, #0]
  40780. 80116a0: 2204 movs r2, #4
  40781. 80116a2: 621a str r2, [r3, #32]
  40782. huart->ErrorCode |= HAL_UART_ERROR_NE;
  40783. 80116a4: 687b ldr r3, [r7, #4]
  40784. 80116a6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40785. 80116aa: f043 0202 orr.w r2, r3, #2
  40786. 80116ae: 687b ldr r3, [r7, #4]
  40787. 80116b0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40788. }
  40789. /* UART Over-Run interrupt occurred -----------------------------------------*/
  40790. if (((isrflags & USART_ISR_ORE) != 0U)
  40791. 80116b4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40792. 80116b8: f003 0308 and.w r3, r3, #8
  40793. 80116bc: 2b00 cmp r3, #0
  40794. 80116be: d017 beq.n 80116f0 <HAL_UART_IRQHandler+0x164>
  40795. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40796. 80116c0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40797. 80116c4: f003 0320 and.w r3, r3, #32
  40798. 80116c8: 2b00 cmp r3, #0
  40799. 80116ca: d105 bne.n 80116d8 <HAL_UART_IRQHandler+0x14c>
  40800. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  40801. 80116cc: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  40802. 80116d0: 4b5c ldr r3, [pc, #368] @ (8011844 <HAL_UART_IRQHandler+0x2b8>)
  40803. 80116d2: 4013 ands r3, r2
  40804. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  40805. 80116d4: 2b00 cmp r3, #0
  40806. 80116d6: d00b beq.n 80116f0 <HAL_UART_IRQHandler+0x164>
  40807. {
  40808. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  40809. 80116d8: 687b ldr r3, [r7, #4]
  40810. 80116da: 681b ldr r3, [r3, #0]
  40811. 80116dc: 2208 movs r2, #8
  40812. 80116de: 621a str r2, [r3, #32]
  40813. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  40814. 80116e0: 687b ldr r3, [r7, #4]
  40815. 80116e2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40816. 80116e6: f043 0208 orr.w r2, r3, #8
  40817. 80116ea: 687b ldr r3, [r7, #4]
  40818. 80116ec: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40819. }
  40820. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  40821. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  40822. 80116f0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40823. 80116f4: f403 6300 and.w r3, r3, #2048 @ 0x800
  40824. 80116f8: 2b00 cmp r3, #0
  40825. 80116fa: d012 beq.n 8011722 <HAL_UART_IRQHandler+0x196>
  40826. 80116fc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40827. 8011700: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  40828. 8011704: 2b00 cmp r3, #0
  40829. 8011706: d00c beq.n 8011722 <HAL_UART_IRQHandler+0x196>
  40830. {
  40831. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  40832. 8011708: 687b ldr r3, [r7, #4]
  40833. 801170a: 681b ldr r3, [r3, #0]
  40834. 801170c: f44f 6200 mov.w r2, #2048 @ 0x800
  40835. 8011710: 621a str r2, [r3, #32]
  40836. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  40837. 8011712: 687b ldr r3, [r7, #4]
  40838. 8011714: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40839. 8011718: f043 0220 orr.w r2, r3, #32
  40840. 801171c: 687b ldr r3, [r7, #4]
  40841. 801171e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  40842. }
  40843. /* Call UART Error Call back function if need be ----------------------------*/
  40844. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  40845. 8011722: 687b ldr r3, [r7, #4]
  40846. 8011724: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40847. 8011728: 2b00 cmp r3, #0
  40848. 801172a: f000 82dd beq.w 8011ce8 <HAL_UART_IRQHandler+0x75c>
  40849. {
  40850. /* UART in mode Receiver --------------------------------------------------*/
  40851. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  40852. 801172e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40853. 8011732: f003 0320 and.w r3, r3, #32
  40854. 8011736: 2b00 cmp r3, #0
  40855. 8011738: d013 beq.n 8011762 <HAL_UART_IRQHandler+0x1d6>
  40856. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  40857. 801173a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40858. 801173e: f003 0320 and.w r3, r3, #32
  40859. 8011742: 2b00 cmp r3, #0
  40860. 8011744: d105 bne.n 8011752 <HAL_UART_IRQHandler+0x1c6>
  40861. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  40862. 8011746: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  40863. 801174a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  40864. 801174e: 2b00 cmp r3, #0
  40865. 8011750: d007 beq.n 8011762 <HAL_UART_IRQHandler+0x1d6>
  40866. {
  40867. if (huart->RxISR != NULL)
  40868. 8011752: 687b ldr r3, [r7, #4]
  40869. 8011754: 6f5b ldr r3, [r3, #116] @ 0x74
  40870. 8011756: 2b00 cmp r3, #0
  40871. 8011758: d003 beq.n 8011762 <HAL_UART_IRQHandler+0x1d6>
  40872. {
  40873. huart->RxISR(huart);
  40874. 801175a: 687b ldr r3, [r7, #4]
  40875. 801175c: 6f5b ldr r3, [r3, #116] @ 0x74
  40876. 801175e: 6878 ldr r0, [r7, #4]
  40877. 8011760: 4798 blx r3
  40878. /* If Error is to be considered as blocking :
  40879. - Receiver Timeout error in Reception
  40880. - Overrun error in Reception
  40881. - any error occurs in DMA mode reception
  40882. */
  40883. errorcode = huart->ErrorCode;
  40884. 8011762: 687b ldr r3, [r7, #4]
  40885. 8011764: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  40886. 8011768: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  40887. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40888. 801176c: 687b ldr r3, [r7, #4]
  40889. 801176e: 681b ldr r3, [r3, #0]
  40890. 8011770: 689b ldr r3, [r3, #8]
  40891. 8011772: f003 0340 and.w r3, r3, #64 @ 0x40
  40892. 8011776: 2b40 cmp r3, #64 @ 0x40
  40893. 8011778: d005 beq.n 8011786 <HAL_UART_IRQHandler+0x1fa>
  40894. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  40895. 801177a: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  40896. 801177e: f003 0328 and.w r3, r3, #40 @ 0x28
  40897. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  40898. 8011782: 2b00 cmp r3, #0
  40899. 8011784: d054 beq.n 8011830 <HAL_UART_IRQHandler+0x2a4>
  40900. {
  40901. /* Blocking error : transfer is aborted
  40902. Set the UART state ready to be able to start again the process,
  40903. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  40904. UART_EndRxTransfer(huart);
  40905. 8011786: 6878 ldr r0, [r7, #4]
  40906. 8011788: f001 fb08 bl 8012d9c <UART_EndRxTransfer>
  40907. /* Abort the UART DMA Rx channel if enabled */
  40908. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40909. 801178c: 687b ldr r3, [r7, #4]
  40910. 801178e: 681b ldr r3, [r3, #0]
  40911. 8011790: 689b ldr r3, [r3, #8]
  40912. 8011792: f003 0340 and.w r3, r3, #64 @ 0x40
  40913. 8011796: 2b40 cmp r3, #64 @ 0x40
  40914. 8011798: d146 bne.n 8011828 <HAL_UART_IRQHandler+0x29c>
  40915. {
  40916. /* Disable the UART DMA Rx request if enabled */
  40917. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  40918. 801179a: 687b ldr r3, [r7, #4]
  40919. 801179c: 681b ldr r3, [r3, #0]
  40920. 801179e: 3308 adds r3, #8
  40921. 80117a0: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  40922. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  40923. 80117a4: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  40924. 80117a8: e853 3f00 ldrex r3, [r3]
  40925. 80117ac: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  40926. return(result);
  40927. 80117b0: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  40928. 80117b4: f023 0340 bic.w r3, r3, #64 @ 0x40
  40929. 80117b8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  40930. 80117bc: 687b ldr r3, [r7, #4]
  40931. 80117be: 681b ldr r3, [r3, #0]
  40932. 80117c0: 3308 adds r3, #8
  40933. 80117c2: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  40934. 80117c6: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  40935. 80117ca: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  40936. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  40937. 80117ce: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  40938. 80117d2: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  40939. 80117d6: e841 2300 strex r3, r2, [r1]
  40940. 80117da: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  40941. return(result);
  40942. 80117de: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  40943. 80117e2: 2b00 cmp r3, #0
  40944. 80117e4: d1d9 bne.n 801179a <HAL_UART_IRQHandler+0x20e>
  40945. /* Abort the UART DMA Rx channel */
  40946. if (huart->hdmarx != NULL)
  40947. 80117e6: 687b ldr r3, [r7, #4]
  40948. 80117e8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40949. 80117ec: 2b00 cmp r3, #0
  40950. 80117ee: d017 beq.n 8011820 <HAL_UART_IRQHandler+0x294>
  40951. {
  40952. /* Set the UART DMA Abort callback :
  40953. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  40954. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  40955. 80117f0: 687b ldr r3, [r7, #4]
  40956. 80117f2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40957. 80117f6: 4a15 ldr r2, [pc, #84] @ (801184c <HAL_UART_IRQHandler+0x2c0>)
  40958. 80117f8: 651a str r2, [r3, #80] @ 0x50
  40959. /* Abort DMA RX */
  40960. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  40961. 80117fa: 687b ldr r3, [r7, #4]
  40962. 80117fc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40963. 8011800: 4618 mov r0, r3
  40964. 8011802: f7f7 ff8f bl 8009724 <HAL_DMA_Abort_IT>
  40965. 8011806: 4603 mov r3, r0
  40966. 8011808: 2b00 cmp r3, #0
  40967. 801180a: d019 beq.n 8011840 <HAL_UART_IRQHandler+0x2b4>
  40968. {
  40969. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  40970. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  40971. 801180c: 687b ldr r3, [r7, #4]
  40972. 801180e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  40973. 8011812: 6d1b ldr r3, [r3, #80] @ 0x50
  40974. 8011814: 687a ldr r2, [r7, #4]
  40975. 8011816: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  40976. 801181a: 4610 mov r0, r2
  40977. 801181c: 4798 blx r3
  40978. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40979. 801181e: e00f b.n 8011840 <HAL_UART_IRQHandler+0x2b4>
  40980. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40981. /*Call registered error callback*/
  40982. huart->ErrorCallback(huart);
  40983. #else
  40984. /*Call legacy weak error callback*/
  40985. HAL_UART_ErrorCallback(huart);
  40986. 8011820: 6878 ldr r0, [r7, #4]
  40987. 8011822: f000 fa6d bl 8011d00 <HAL_UART_ErrorCallback>
  40988. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40989. 8011826: e00b b.n 8011840 <HAL_UART_IRQHandler+0x2b4>
  40990. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40991. /*Call registered error callback*/
  40992. huart->ErrorCallback(huart);
  40993. #else
  40994. /*Call legacy weak error callback*/
  40995. HAL_UART_ErrorCallback(huart);
  40996. 8011828: 6878 ldr r0, [r7, #4]
  40997. 801182a: f000 fa69 bl 8011d00 <HAL_UART_ErrorCallback>
  40998. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  40999. 801182e: e007 b.n 8011840 <HAL_UART_IRQHandler+0x2b4>
  41000. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41001. /*Call registered error callback*/
  41002. huart->ErrorCallback(huart);
  41003. #else
  41004. /*Call legacy weak error callback*/
  41005. HAL_UART_ErrorCallback(huart);
  41006. 8011830: 6878 ldr r0, [r7, #4]
  41007. 8011832: f000 fa65 bl 8011d00 <HAL_UART_ErrorCallback>
  41008. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41009. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41010. 8011836: 687b ldr r3, [r7, #4]
  41011. 8011838: 2200 movs r2, #0
  41012. 801183a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41013. }
  41014. }
  41015. return;
  41016. 801183e: e253 b.n 8011ce8 <HAL_UART_IRQHandler+0x75c>
  41017. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41018. 8011840: bf00 nop
  41019. return;
  41020. 8011842: e251 b.n 8011ce8 <HAL_UART_IRQHandler+0x75c>
  41021. 8011844: 10000001 .word 0x10000001
  41022. 8011848: 04000120 .word 0x04000120
  41023. 801184c: 08012e69 .word 0x08012e69
  41024. } /* End if some error occurs */
  41025. /* Check current reception Mode :
  41026. If Reception till IDLE event has been selected : */
  41027. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  41028. 8011850: 687b ldr r3, [r7, #4]
  41029. 8011852: 6edb ldr r3, [r3, #108] @ 0x6c
  41030. 8011854: 2b01 cmp r3, #1
  41031. 8011856: f040 81e7 bne.w 8011c28 <HAL_UART_IRQHandler+0x69c>
  41032. && ((isrflags & USART_ISR_IDLE) != 0U)
  41033. 801185a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41034. 801185e: f003 0310 and.w r3, r3, #16
  41035. 8011862: 2b00 cmp r3, #0
  41036. 8011864: f000 81e0 beq.w 8011c28 <HAL_UART_IRQHandler+0x69c>
  41037. && ((cr1its & USART_ISR_IDLE) != 0U))
  41038. 8011868: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41039. 801186c: f003 0310 and.w r3, r3, #16
  41040. 8011870: 2b00 cmp r3, #0
  41041. 8011872: f000 81d9 beq.w 8011c28 <HAL_UART_IRQHandler+0x69c>
  41042. {
  41043. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  41044. 8011876: 687b ldr r3, [r7, #4]
  41045. 8011878: 681b ldr r3, [r3, #0]
  41046. 801187a: 2210 movs r2, #16
  41047. 801187c: 621a str r2, [r3, #32]
  41048. /* Check if DMA mode is enabled in UART */
  41049. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  41050. 801187e: 687b ldr r3, [r7, #4]
  41051. 8011880: 681b ldr r3, [r3, #0]
  41052. 8011882: 689b ldr r3, [r3, #8]
  41053. 8011884: f003 0340 and.w r3, r3, #64 @ 0x40
  41054. 8011888: 2b40 cmp r3, #64 @ 0x40
  41055. 801188a: f040 8151 bne.w 8011b30 <HAL_UART_IRQHandler+0x5a4>
  41056. {
  41057. /* DMA mode enabled */
  41058. /* Check received length : If all expected data are received, do nothing,
  41059. (DMA cplt callback will be called).
  41060. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41061. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  41062. 801188e: 687b ldr r3, [r7, #4]
  41063. 8011890: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41064. 8011894: 681b ldr r3, [r3, #0]
  41065. 8011896: 4a96 ldr r2, [pc, #600] @ (8011af0 <HAL_UART_IRQHandler+0x564>)
  41066. 8011898: 4293 cmp r3, r2
  41067. 801189a: d068 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41068. 801189c: 687b ldr r3, [r7, #4]
  41069. 801189e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41070. 80118a2: 681b ldr r3, [r3, #0]
  41071. 80118a4: 4a93 ldr r2, [pc, #588] @ (8011af4 <HAL_UART_IRQHandler+0x568>)
  41072. 80118a6: 4293 cmp r3, r2
  41073. 80118a8: d061 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41074. 80118aa: 687b ldr r3, [r7, #4]
  41075. 80118ac: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41076. 80118b0: 681b ldr r3, [r3, #0]
  41077. 80118b2: 4a91 ldr r2, [pc, #580] @ (8011af8 <HAL_UART_IRQHandler+0x56c>)
  41078. 80118b4: 4293 cmp r3, r2
  41079. 80118b6: d05a beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41080. 80118b8: 687b ldr r3, [r7, #4]
  41081. 80118ba: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41082. 80118be: 681b ldr r3, [r3, #0]
  41083. 80118c0: 4a8e ldr r2, [pc, #568] @ (8011afc <HAL_UART_IRQHandler+0x570>)
  41084. 80118c2: 4293 cmp r3, r2
  41085. 80118c4: d053 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41086. 80118c6: 687b ldr r3, [r7, #4]
  41087. 80118c8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41088. 80118cc: 681b ldr r3, [r3, #0]
  41089. 80118ce: 4a8c ldr r2, [pc, #560] @ (8011b00 <HAL_UART_IRQHandler+0x574>)
  41090. 80118d0: 4293 cmp r3, r2
  41091. 80118d2: d04c beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41092. 80118d4: 687b ldr r3, [r7, #4]
  41093. 80118d6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41094. 80118da: 681b ldr r3, [r3, #0]
  41095. 80118dc: 4a89 ldr r2, [pc, #548] @ (8011b04 <HAL_UART_IRQHandler+0x578>)
  41096. 80118de: 4293 cmp r3, r2
  41097. 80118e0: d045 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41098. 80118e2: 687b ldr r3, [r7, #4]
  41099. 80118e4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41100. 80118e8: 681b ldr r3, [r3, #0]
  41101. 80118ea: 4a87 ldr r2, [pc, #540] @ (8011b08 <HAL_UART_IRQHandler+0x57c>)
  41102. 80118ec: 4293 cmp r3, r2
  41103. 80118ee: d03e beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41104. 80118f0: 687b ldr r3, [r7, #4]
  41105. 80118f2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41106. 80118f6: 681b ldr r3, [r3, #0]
  41107. 80118f8: 4a84 ldr r2, [pc, #528] @ (8011b0c <HAL_UART_IRQHandler+0x580>)
  41108. 80118fa: 4293 cmp r3, r2
  41109. 80118fc: d037 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41110. 80118fe: 687b ldr r3, [r7, #4]
  41111. 8011900: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41112. 8011904: 681b ldr r3, [r3, #0]
  41113. 8011906: 4a82 ldr r2, [pc, #520] @ (8011b10 <HAL_UART_IRQHandler+0x584>)
  41114. 8011908: 4293 cmp r3, r2
  41115. 801190a: d030 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41116. 801190c: 687b ldr r3, [r7, #4]
  41117. 801190e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41118. 8011912: 681b ldr r3, [r3, #0]
  41119. 8011914: 4a7f ldr r2, [pc, #508] @ (8011b14 <HAL_UART_IRQHandler+0x588>)
  41120. 8011916: 4293 cmp r3, r2
  41121. 8011918: d029 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41122. 801191a: 687b ldr r3, [r7, #4]
  41123. 801191c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41124. 8011920: 681b ldr r3, [r3, #0]
  41125. 8011922: 4a7d ldr r2, [pc, #500] @ (8011b18 <HAL_UART_IRQHandler+0x58c>)
  41126. 8011924: 4293 cmp r3, r2
  41127. 8011926: d022 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41128. 8011928: 687b ldr r3, [r7, #4]
  41129. 801192a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41130. 801192e: 681b ldr r3, [r3, #0]
  41131. 8011930: 4a7a ldr r2, [pc, #488] @ (8011b1c <HAL_UART_IRQHandler+0x590>)
  41132. 8011932: 4293 cmp r3, r2
  41133. 8011934: d01b beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41134. 8011936: 687b ldr r3, [r7, #4]
  41135. 8011938: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41136. 801193c: 681b ldr r3, [r3, #0]
  41137. 801193e: 4a78 ldr r2, [pc, #480] @ (8011b20 <HAL_UART_IRQHandler+0x594>)
  41138. 8011940: 4293 cmp r3, r2
  41139. 8011942: d014 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41140. 8011944: 687b ldr r3, [r7, #4]
  41141. 8011946: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41142. 801194a: 681b ldr r3, [r3, #0]
  41143. 801194c: 4a75 ldr r2, [pc, #468] @ (8011b24 <HAL_UART_IRQHandler+0x598>)
  41144. 801194e: 4293 cmp r3, r2
  41145. 8011950: d00d beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41146. 8011952: 687b ldr r3, [r7, #4]
  41147. 8011954: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41148. 8011958: 681b ldr r3, [r3, #0]
  41149. 801195a: 4a73 ldr r2, [pc, #460] @ (8011b28 <HAL_UART_IRQHandler+0x59c>)
  41150. 801195c: 4293 cmp r3, r2
  41151. 801195e: d006 beq.n 801196e <HAL_UART_IRQHandler+0x3e2>
  41152. 8011960: 687b ldr r3, [r7, #4]
  41153. 8011962: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41154. 8011966: 681b ldr r3, [r3, #0]
  41155. 8011968: 4a70 ldr r2, [pc, #448] @ (8011b2c <HAL_UART_IRQHandler+0x5a0>)
  41156. 801196a: 4293 cmp r3, r2
  41157. 801196c: d106 bne.n 801197c <HAL_UART_IRQHandler+0x3f0>
  41158. 801196e: 687b ldr r3, [r7, #4]
  41159. 8011970: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41160. 8011974: 681b ldr r3, [r3, #0]
  41161. 8011976: 685b ldr r3, [r3, #4]
  41162. 8011978: b29b uxth r3, r3
  41163. 801197a: e005 b.n 8011988 <HAL_UART_IRQHandler+0x3fc>
  41164. 801197c: 687b ldr r3, [r7, #4]
  41165. 801197e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41166. 8011982: 681b ldr r3, [r3, #0]
  41167. 8011984: 685b ldr r3, [r3, #4]
  41168. 8011986: b29b uxth r3, r3
  41169. 8011988: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  41170. if ((nb_remaining_rx_data > 0U)
  41171. 801198c: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  41172. 8011990: 2b00 cmp r3, #0
  41173. 8011992: f000 81ab beq.w 8011cec <HAL_UART_IRQHandler+0x760>
  41174. && (nb_remaining_rx_data < huart->RxXferSize))
  41175. 8011996: 687b ldr r3, [r7, #4]
  41176. 8011998: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  41177. 801199c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41178. 80119a0: 429a cmp r2, r3
  41179. 80119a2: f080 81a3 bcs.w 8011cec <HAL_UART_IRQHandler+0x760>
  41180. {
  41181. /* Reception is not complete */
  41182. huart->RxXferCount = nb_remaining_rx_data;
  41183. 80119a6: 687b ldr r3, [r7, #4]
  41184. 80119a8: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  41185. 80119ac: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  41186. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  41187. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  41188. 80119b0: 687b ldr r3, [r7, #4]
  41189. 80119b2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41190. 80119b6: 69db ldr r3, [r3, #28]
  41191. 80119b8: f5b3 7f80 cmp.w r3, #256 @ 0x100
  41192. 80119bc: f000 8087 beq.w 8011ace <HAL_UART_IRQHandler+0x542>
  41193. {
  41194. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  41195. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  41196. 80119c0: 687b ldr r3, [r7, #4]
  41197. 80119c2: 681b ldr r3, [r3, #0]
  41198. 80119c4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  41199. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41200. 80119c8: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  41201. 80119cc: e853 3f00 ldrex r3, [r3]
  41202. 80119d0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  41203. return(result);
  41204. 80119d4: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  41205. 80119d8: f423 7380 bic.w r3, r3, #256 @ 0x100
  41206. 80119dc: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  41207. 80119e0: 687b ldr r3, [r7, #4]
  41208. 80119e2: 681b ldr r3, [r3, #0]
  41209. 80119e4: 461a mov r2, r3
  41210. 80119e6: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  41211. 80119ea: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  41212. 80119ee: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  41213. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41214. 80119f2: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  41215. 80119f6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  41216. 80119fa: e841 2300 strex r3, r2, [r1]
  41217. 80119fe: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  41218. return(result);
  41219. 8011a02: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  41220. 8011a06: 2b00 cmp r3, #0
  41221. 8011a08: d1da bne.n 80119c0 <HAL_UART_IRQHandler+0x434>
  41222. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41223. 8011a0a: 687b ldr r3, [r7, #4]
  41224. 8011a0c: 681b ldr r3, [r3, #0]
  41225. 8011a0e: 3308 adds r3, #8
  41226. 8011a10: 677b str r3, [r7, #116] @ 0x74
  41227. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41228. 8011a12: 6f7b ldr r3, [r7, #116] @ 0x74
  41229. 8011a14: e853 3f00 ldrex r3, [r3]
  41230. 8011a18: 673b str r3, [r7, #112] @ 0x70
  41231. return(result);
  41232. 8011a1a: 6f3b ldr r3, [r7, #112] @ 0x70
  41233. 8011a1c: f023 0301 bic.w r3, r3, #1
  41234. 8011a20: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  41235. 8011a24: 687b ldr r3, [r7, #4]
  41236. 8011a26: 681b ldr r3, [r3, #0]
  41237. 8011a28: 3308 adds r3, #8
  41238. 8011a2a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  41239. 8011a2e: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  41240. 8011a32: 67fb str r3, [r7, #124] @ 0x7c
  41241. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41242. 8011a34: 6ff9 ldr r1, [r7, #124] @ 0x7c
  41243. 8011a36: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  41244. 8011a3a: e841 2300 strex r3, r2, [r1]
  41245. 8011a3e: 67bb str r3, [r7, #120] @ 0x78
  41246. return(result);
  41247. 8011a40: 6fbb ldr r3, [r7, #120] @ 0x78
  41248. 8011a42: 2b00 cmp r3, #0
  41249. 8011a44: d1e1 bne.n 8011a0a <HAL_UART_IRQHandler+0x47e>
  41250. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  41251. in the UART CR3 register */
  41252. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  41253. 8011a46: 687b ldr r3, [r7, #4]
  41254. 8011a48: 681b ldr r3, [r3, #0]
  41255. 8011a4a: 3308 adds r3, #8
  41256. 8011a4c: 663b str r3, [r7, #96] @ 0x60
  41257. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41258. 8011a4e: 6e3b ldr r3, [r7, #96] @ 0x60
  41259. 8011a50: e853 3f00 ldrex r3, [r3]
  41260. 8011a54: 65fb str r3, [r7, #92] @ 0x5c
  41261. return(result);
  41262. 8011a56: 6dfb ldr r3, [r7, #92] @ 0x5c
  41263. 8011a58: f023 0340 bic.w r3, r3, #64 @ 0x40
  41264. 8011a5c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  41265. 8011a60: 687b ldr r3, [r7, #4]
  41266. 8011a62: 681b ldr r3, [r3, #0]
  41267. 8011a64: 3308 adds r3, #8
  41268. 8011a66: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  41269. 8011a6a: 66fa str r2, [r7, #108] @ 0x6c
  41270. 8011a6c: 66bb str r3, [r7, #104] @ 0x68
  41271. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41272. 8011a6e: 6eb9 ldr r1, [r7, #104] @ 0x68
  41273. 8011a70: 6efa ldr r2, [r7, #108] @ 0x6c
  41274. 8011a72: e841 2300 strex r3, r2, [r1]
  41275. 8011a76: 667b str r3, [r7, #100] @ 0x64
  41276. return(result);
  41277. 8011a78: 6e7b ldr r3, [r7, #100] @ 0x64
  41278. 8011a7a: 2b00 cmp r3, #0
  41279. 8011a7c: d1e3 bne.n 8011a46 <HAL_UART_IRQHandler+0x4ba>
  41280. /* At end of Rx process, restore huart->RxState to Ready */
  41281. huart->RxState = HAL_UART_STATE_READY;
  41282. 8011a7e: 687b ldr r3, [r7, #4]
  41283. 8011a80: 2220 movs r2, #32
  41284. 8011a82: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41285. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41286. 8011a86: 687b ldr r3, [r7, #4]
  41287. 8011a88: 2200 movs r2, #0
  41288. 8011a8a: 66da str r2, [r3, #108] @ 0x6c
  41289. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41290. 8011a8c: 687b ldr r3, [r7, #4]
  41291. 8011a8e: 681b ldr r3, [r3, #0]
  41292. 8011a90: 64fb str r3, [r7, #76] @ 0x4c
  41293. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41294. 8011a92: 6cfb ldr r3, [r7, #76] @ 0x4c
  41295. 8011a94: e853 3f00 ldrex r3, [r3]
  41296. 8011a98: 64bb str r3, [r7, #72] @ 0x48
  41297. return(result);
  41298. 8011a9a: 6cbb ldr r3, [r7, #72] @ 0x48
  41299. 8011a9c: f023 0310 bic.w r3, r3, #16
  41300. 8011aa0: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  41301. 8011aa4: 687b ldr r3, [r7, #4]
  41302. 8011aa6: 681b ldr r3, [r3, #0]
  41303. 8011aa8: 461a mov r2, r3
  41304. 8011aaa: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  41305. 8011aae: 65bb str r3, [r7, #88] @ 0x58
  41306. 8011ab0: 657a str r2, [r7, #84] @ 0x54
  41307. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41308. 8011ab2: 6d79 ldr r1, [r7, #84] @ 0x54
  41309. 8011ab4: 6dba ldr r2, [r7, #88] @ 0x58
  41310. 8011ab6: e841 2300 strex r3, r2, [r1]
  41311. 8011aba: 653b str r3, [r7, #80] @ 0x50
  41312. return(result);
  41313. 8011abc: 6d3b ldr r3, [r7, #80] @ 0x50
  41314. 8011abe: 2b00 cmp r3, #0
  41315. 8011ac0: d1e4 bne.n 8011a8c <HAL_UART_IRQHandler+0x500>
  41316. /* Last bytes received, so no need as the abort is immediate */
  41317. (void)HAL_DMA_Abort(huart->hdmarx);
  41318. 8011ac2: 687b ldr r3, [r7, #4]
  41319. 8011ac4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  41320. 8011ac8: 4618 mov r0, r3
  41321. 8011aca: f7f7 fb0d bl 80090e8 <HAL_DMA_Abort>
  41322. }
  41323. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41324. In this case, Rx Event type is Idle Event */
  41325. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41326. 8011ace: 687b ldr r3, [r7, #4]
  41327. 8011ad0: 2202 movs r2, #2
  41328. 8011ad2: 671a str r2, [r3, #112] @ 0x70
  41329. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41330. /*Call registered Rx Event callback*/
  41331. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41332. #else
  41333. /*Call legacy weak Rx Event callback*/
  41334. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  41335. 8011ad4: 687b ldr r3, [r7, #4]
  41336. 8011ad6: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41337. 8011ada: 687b ldr r3, [r7, #4]
  41338. 8011adc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41339. 8011ae0: b29b uxth r3, r3
  41340. 8011ae2: 1ad3 subs r3, r2, r3
  41341. 8011ae4: b29b uxth r3, r3
  41342. 8011ae6: 4619 mov r1, r3
  41343. 8011ae8: 6878 ldr r0, [r7, #4]
  41344. 8011aea: f7f2 ffff bl 8004aec <HAL_UARTEx_RxEventCallback>
  41345. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41346. }
  41347. return;
  41348. 8011aee: e0fd b.n 8011cec <HAL_UART_IRQHandler+0x760>
  41349. 8011af0: 40020010 .word 0x40020010
  41350. 8011af4: 40020028 .word 0x40020028
  41351. 8011af8: 40020040 .word 0x40020040
  41352. 8011afc: 40020058 .word 0x40020058
  41353. 8011b00: 40020070 .word 0x40020070
  41354. 8011b04: 40020088 .word 0x40020088
  41355. 8011b08: 400200a0 .word 0x400200a0
  41356. 8011b0c: 400200b8 .word 0x400200b8
  41357. 8011b10: 40020410 .word 0x40020410
  41358. 8011b14: 40020428 .word 0x40020428
  41359. 8011b18: 40020440 .word 0x40020440
  41360. 8011b1c: 40020458 .word 0x40020458
  41361. 8011b20: 40020470 .word 0x40020470
  41362. 8011b24: 40020488 .word 0x40020488
  41363. 8011b28: 400204a0 .word 0x400204a0
  41364. 8011b2c: 400204b8 .word 0x400204b8
  41365. else
  41366. {
  41367. /* DMA mode not enabled */
  41368. /* Check received length : If all expected data are received, do nothing.
  41369. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  41370. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  41371. 8011b30: 687b ldr r3, [r7, #4]
  41372. 8011b32: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  41373. 8011b36: 687b ldr r3, [r7, #4]
  41374. 8011b38: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41375. 8011b3c: b29b uxth r3, r3
  41376. 8011b3e: 1ad3 subs r3, r2, r3
  41377. 8011b40: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  41378. if ((huart->RxXferCount > 0U)
  41379. 8011b44: 687b ldr r3, [r7, #4]
  41380. 8011b46: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  41381. 8011b4a: b29b uxth r3, r3
  41382. 8011b4c: 2b00 cmp r3, #0
  41383. 8011b4e: f000 80cf beq.w 8011cf0 <HAL_UART_IRQHandler+0x764>
  41384. && (nb_rx_data > 0U))
  41385. 8011b52: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41386. 8011b56: 2b00 cmp r3, #0
  41387. 8011b58: f000 80ca beq.w 8011cf0 <HAL_UART_IRQHandler+0x764>
  41388. {
  41389. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  41390. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41391. 8011b5c: 687b ldr r3, [r7, #4]
  41392. 8011b5e: 681b ldr r3, [r3, #0]
  41393. 8011b60: 63bb str r3, [r7, #56] @ 0x38
  41394. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41395. 8011b62: 6bbb ldr r3, [r7, #56] @ 0x38
  41396. 8011b64: e853 3f00 ldrex r3, [r3]
  41397. 8011b68: 637b str r3, [r7, #52] @ 0x34
  41398. return(result);
  41399. 8011b6a: 6b7b ldr r3, [r7, #52] @ 0x34
  41400. 8011b6c: f423 7390 bic.w r3, r3, #288 @ 0x120
  41401. 8011b70: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  41402. 8011b74: 687b ldr r3, [r7, #4]
  41403. 8011b76: 681b ldr r3, [r3, #0]
  41404. 8011b78: 461a mov r2, r3
  41405. 8011b7a: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  41406. 8011b7e: 647b str r3, [r7, #68] @ 0x44
  41407. 8011b80: 643a str r2, [r7, #64] @ 0x40
  41408. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41409. 8011b82: 6c39 ldr r1, [r7, #64] @ 0x40
  41410. 8011b84: 6c7a ldr r2, [r7, #68] @ 0x44
  41411. 8011b86: e841 2300 strex r3, r2, [r1]
  41412. 8011b8a: 63fb str r3, [r7, #60] @ 0x3c
  41413. return(result);
  41414. 8011b8c: 6bfb ldr r3, [r7, #60] @ 0x3c
  41415. 8011b8e: 2b00 cmp r3, #0
  41416. 8011b90: d1e4 bne.n 8011b5c <HAL_UART_IRQHandler+0x5d0>
  41417. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  41418. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  41419. 8011b92: 687b ldr r3, [r7, #4]
  41420. 8011b94: 681b ldr r3, [r3, #0]
  41421. 8011b96: 3308 adds r3, #8
  41422. 8011b98: 627b str r3, [r7, #36] @ 0x24
  41423. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41424. 8011b9a: 6a7b ldr r3, [r7, #36] @ 0x24
  41425. 8011b9c: e853 3f00 ldrex r3, [r3]
  41426. 8011ba0: 623b str r3, [r7, #32]
  41427. return(result);
  41428. 8011ba2: 6a3a ldr r2, [r7, #32]
  41429. 8011ba4: 4b55 ldr r3, [pc, #340] @ (8011cfc <HAL_UART_IRQHandler+0x770>)
  41430. 8011ba6: 4013 ands r3, r2
  41431. 8011ba8: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  41432. 8011bac: 687b ldr r3, [r7, #4]
  41433. 8011bae: 681b ldr r3, [r3, #0]
  41434. 8011bb0: 3308 adds r3, #8
  41435. 8011bb2: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  41436. 8011bb6: 633a str r2, [r7, #48] @ 0x30
  41437. 8011bb8: 62fb str r3, [r7, #44] @ 0x2c
  41438. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41439. 8011bba: 6af9 ldr r1, [r7, #44] @ 0x2c
  41440. 8011bbc: 6b3a ldr r2, [r7, #48] @ 0x30
  41441. 8011bbe: e841 2300 strex r3, r2, [r1]
  41442. 8011bc2: 62bb str r3, [r7, #40] @ 0x28
  41443. return(result);
  41444. 8011bc4: 6abb ldr r3, [r7, #40] @ 0x28
  41445. 8011bc6: 2b00 cmp r3, #0
  41446. 8011bc8: d1e3 bne.n 8011b92 <HAL_UART_IRQHandler+0x606>
  41447. /* Rx process is completed, restore huart->RxState to Ready */
  41448. huart->RxState = HAL_UART_STATE_READY;
  41449. 8011bca: 687b ldr r3, [r7, #4]
  41450. 8011bcc: 2220 movs r2, #32
  41451. 8011bce: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41452. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41453. 8011bd2: 687b ldr r3, [r7, #4]
  41454. 8011bd4: 2200 movs r2, #0
  41455. 8011bd6: 66da str r2, [r3, #108] @ 0x6c
  41456. /* Clear RxISR function pointer */
  41457. huart->RxISR = NULL;
  41458. 8011bd8: 687b ldr r3, [r7, #4]
  41459. 8011bda: 2200 movs r2, #0
  41460. 8011bdc: 675a str r2, [r3, #116] @ 0x74
  41461. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  41462. 8011bde: 687b ldr r3, [r7, #4]
  41463. 8011be0: 681b ldr r3, [r3, #0]
  41464. 8011be2: 613b str r3, [r7, #16]
  41465. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41466. 8011be4: 693b ldr r3, [r7, #16]
  41467. 8011be6: e853 3f00 ldrex r3, [r3]
  41468. 8011bea: 60fb str r3, [r7, #12]
  41469. return(result);
  41470. 8011bec: 68fb ldr r3, [r7, #12]
  41471. 8011bee: f023 0310 bic.w r3, r3, #16
  41472. 8011bf2: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  41473. 8011bf6: 687b ldr r3, [r7, #4]
  41474. 8011bf8: 681b ldr r3, [r3, #0]
  41475. 8011bfa: 461a mov r2, r3
  41476. 8011bfc: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  41477. 8011c00: 61fb str r3, [r7, #28]
  41478. 8011c02: 61ba str r2, [r7, #24]
  41479. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41480. 8011c04: 69b9 ldr r1, [r7, #24]
  41481. 8011c06: 69fa ldr r2, [r7, #28]
  41482. 8011c08: e841 2300 strex r3, r2, [r1]
  41483. 8011c0c: 617b str r3, [r7, #20]
  41484. return(result);
  41485. 8011c0e: 697b ldr r3, [r7, #20]
  41486. 8011c10: 2b00 cmp r3, #0
  41487. 8011c12: d1e4 bne.n 8011bde <HAL_UART_IRQHandler+0x652>
  41488. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  41489. In this case, Rx Event type is Idle Event */
  41490. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  41491. 8011c14: 687b ldr r3, [r7, #4]
  41492. 8011c16: 2202 movs r2, #2
  41493. 8011c18: 671a str r2, [r3, #112] @ 0x70
  41494. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41495. /*Call registered Rx complete callback*/
  41496. huart->RxEventCallback(huart, nb_rx_data);
  41497. #else
  41498. /*Call legacy weak Rx Event callback*/
  41499. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  41500. 8011c1a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  41501. 8011c1e: 4619 mov r1, r3
  41502. 8011c20: 6878 ldr r0, [r7, #4]
  41503. 8011c22: f7f2 ff63 bl 8004aec <HAL_UARTEx_RxEventCallback>
  41504. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  41505. }
  41506. return;
  41507. 8011c26: e063 b.n 8011cf0 <HAL_UART_IRQHandler+0x764>
  41508. }
  41509. }
  41510. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  41511. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  41512. 8011c28: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41513. 8011c2c: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  41514. 8011c30: 2b00 cmp r3, #0
  41515. 8011c32: d00e beq.n 8011c52 <HAL_UART_IRQHandler+0x6c6>
  41516. 8011c34: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41517. 8011c38: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  41518. 8011c3c: 2b00 cmp r3, #0
  41519. 8011c3e: d008 beq.n 8011c52 <HAL_UART_IRQHandler+0x6c6>
  41520. {
  41521. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  41522. 8011c40: 687b ldr r3, [r7, #4]
  41523. 8011c42: 681b ldr r3, [r3, #0]
  41524. 8011c44: f44f 1280 mov.w r2, #1048576 @ 0x100000
  41525. 8011c48: 621a str r2, [r3, #32]
  41526. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41527. /* Call registered Wakeup Callback */
  41528. huart->WakeupCallback(huart);
  41529. #else
  41530. /* Call legacy weak Wakeup Callback */
  41531. HAL_UARTEx_WakeupCallback(huart);
  41532. 8011c4a: 6878 ldr r0, [r7, #4]
  41533. 8011c4c: f002 f80c bl 8013c68 <HAL_UARTEx_WakeupCallback>
  41534. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41535. return;
  41536. 8011c50: e051 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41537. }
  41538. /* UART in mode Transmitter ------------------------------------------------*/
  41539. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  41540. 8011c52: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41541. 8011c56: f003 0380 and.w r3, r3, #128 @ 0x80
  41542. 8011c5a: 2b00 cmp r3, #0
  41543. 8011c5c: d014 beq.n 8011c88 <HAL_UART_IRQHandler+0x6fc>
  41544. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  41545. 8011c5e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41546. 8011c62: f003 0380 and.w r3, r3, #128 @ 0x80
  41547. 8011c66: 2b00 cmp r3, #0
  41548. 8011c68: d105 bne.n 8011c76 <HAL_UART_IRQHandler+0x6ea>
  41549. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  41550. 8011c6a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  41551. 8011c6e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41552. 8011c72: 2b00 cmp r3, #0
  41553. 8011c74: d008 beq.n 8011c88 <HAL_UART_IRQHandler+0x6fc>
  41554. {
  41555. if (huart->TxISR != NULL)
  41556. 8011c76: 687b ldr r3, [r7, #4]
  41557. 8011c78: 6f9b ldr r3, [r3, #120] @ 0x78
  41558. 8011c7a: 2b00 cmp r3, #0
  41559. 8011c7c: d03a beq.n 8011cf4 <HAL_UART_IRQHandler+0x768>
  41560. {
  41561. huart->TxISR(huart);
  41562. 8011c7e: 687b ldr r3, [r7, #4]
  41563. 8011c80: 6f9b ldr r3, [r3, #120] @ 0x78
  41564. 8011c82: 6878 ldr r0, [r7, #4]
  41565. 8011c84: 4798 blx r3
  41566. }
  41567. return;
  41568. 8011c86: e035 b.n 8011cf4 <HAL_UART_IRQHandler+0x768>
  41569. }
  41570. /* UART in mode Transmitter (transmission end) -----------------------------*/
  41571. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  41572. 8011c88: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41573. 8011c8c: f003 0340 and.w r3, r3, #64 @ 0x40
  41574. 8011c90: 2b00 cmp r3, #0
  41575. 8011c92: d009 beq.n 8011ca8 <HAL_UART_IRQHandler+0x71c>
  41576. 8011c94: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41577. 8011c98: f003 0340 and.w r3, r3, #64 @ 0x40
  41578. 8011c9c: 2b00 cmp r3, #0
  41579. 8011c9e: d003 beq.n 8011ca8 <HAL_UART_IRQHandler+0x71c>
  41580. {
  41581. UART_EndTransmit_IT(huart);
  41582. 8011ca0: 6878 ldr r0, [r7, #4]
  41583. 8011ca2: f001 fa99 bl 80131d8 <UART_EndTransmit_IT>
  41584. return;
  41585. 8011ca6: e026 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41586. }
  41587. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  41588. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  41589. 8011ca8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41590. 8011cac: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  41591. 8011cb0: 2b00 cmp r3, #0
  41592. 8011cb2: d009 beq.n 8011cc8 <HAL_UART_IRQHandler+0x73c>
  41593. 8011cb4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41594. 8011cb8: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  41595. 8011cbc: 2b00 cmp r3, #0
  41596. 8011cbe: d003 beq.n 8011cc8 <HAL_UART_IRQHandler+0x73c>
  41597. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41598. /* Call registered Tx Fifo Empty Callback */
  41599. huart->TxFifoEmptyCallback(huart);
  41600. #else
  41601. /* Call legacy weak Tx Fifo Empty Callback */
  41602. HAL_UARTEx_TxFifoEmptyCallback(huart);
  41603. 8011cc0: 6878 ldr r0, [r7, #4]
  41604. 8011cc2: f001 ffe5 bl 8013c90 <HAL_UARTEx_TxFifoEmptyCallback>
  41605. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41606. return;
  41607. 8011cc6: e016 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41608. }
  41609. /* UART RX Fifo Full occurred ----------------------------------------------*/
  41610. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  41611. 8011cc8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  41612. 8011ccc: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  41613. 8011cd0: 2b00 cmp r3, #0
  41614. 8011cd2: d010 beq.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41615. 8011cd4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  41616. 8011cd8: 2b00 cmp r3, #0
  41617. 8011cda: da0c bge.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41618. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  41619. /* Call registered Rx Fifo Full Callback */
  41620. huart->RxFifoFullCallback(huart);
  41621. #else
  41622. /* Call legacy weak Rx Fifo Full Callback */
  41623. HAL_UARTEx_RxFifoFullCallback(huart);
  41624. 8011cdc: 6878 ldr r0, [r7, #4]
  41625. 8011cde: f001 ffcd bl 8013c7c <HAL_UARTEx_RxFifoFullCallback>
  41626. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  41627. return;
  41628. 8011ce2: e008 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41629. return;
  41630. 8011ce4: bf00 nop
  41631. 8011ce6: e006 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41632. return;
  41633. 8011ce8: bf00 nop
  41634. 8011cea: e004 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41635. return;
  41636. 8011cec: bf00 nop
  41637. 8011cee: e002 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41638. return;
  41639. 8011cf0: bf00 nop
  41640. 8011cf2: e000 b.n 8011cf6 <HAL_UART_IRQHandler+0x76a>
  41641. return;
  41642. 8011cf4: bf00 nop
  41643. }
  41644. }
  41645. 8011cf6: 37e8 adds r7, #232 @ 0xe8
  41646. 8011cf8: 46bd mov sp, r7
  41647. 8011cfa: bd80 pop {r7, pc}
  41648. 8011cfc: effffffe .word 0xeffffffe
  41649. 08011d00 <HAL_UART_ErrorCallback>:
  41650. * @brief UART error callback.
  41651. * @param huart UART handle.
  41652. * @retval None
  41653. */
  41654. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  41655. {
  41656. 8011d00: b480 push {r7}
  41657. 8011d02: b083 sub sp, #12
  41658. 8011d04: af00 add r7, sp, #0
  41659. 8011d06: 6078 str r0, [r7, #4]
  41660. UNUSED(huart);
  41661. /* NOTE : This function should not be modified, when the callback is needed,
  41662. the HAL_UART_ErrorCallback can be implemented in the user file.
  41663. */
  41664. }
  41665. 8011d08: bf00 nop
  41666. 8011d0a: 370c adds r7, #12
  41667. 8011d0c: 46bd mov sp, r7
  41668. 8011d0e: f85d 7b04 ldr.w r7, [sp], #4
  41669. 8011d12: 4770 bx lr
  41670. 08011d14 <UART_SetConfig>:
  41671. * @brief Configure the UART peripheral.
  41672. * @param huart UART handle.
  41673. * @retval HAL status
  41674. */
  41675. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  41676. {
  41677. 8011d14: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  41678. 8011d18: b092 sub sp, #72 @ 0x48
  41679. 8011d1a: af00 add r7, sp, #0
  41680. 8011d1c: 6178 str r0, [r7, #20]
  41681. uint32_t tmpreg;
  41682. uint16_t brrtemp;
  41683. UART_ClockSourceTypeDef clocksource;
  41684. uint32_t usartdiv;
  41685. HAL_StatusTypeDef ret = HAL_OK;
  41686. 8011d1e: 2300 movs r3, #0
  41687. 8011d20: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41688. * the UART Word Length, Parity, Mode and oversampling:
  41689. * set the M bits according to huart->Init.WordLength value
  41690. * set PCE and PS bits according to huart->Init.Parity value
  41691. * set TE and RE bits according to huart->Init.Mode value
  41692. * set OVER8 bit according to huart->Init.OverSampling value */
  41693. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  41694. 8011d24: 697b ldr r3, [r7, #20]
  41695. 8011d26: 689a ldr r2, [r3, #8]
  41696. 8011d28: 697b ldr r3, [r7, #20]
  41697. 8011d2a: 691b ldr r3, [r3, #16]
  41698. 8011d2c: 431a orrs r2, r3
  41699. 8011d2e: 697b ldr r3, [r7, #20]
  41700. 8011d30: 695b ldr r3, [r3, #20]
  41701. 8011d32: 431a orrs r2, r3
  41702. 8011d34: 697b ldr r3, [r7, #20]
  41703. 8011d36: 69db ldr r3, [r3, #28]
  41704. 8011d38: 4313 orrs r3, r2
  41705. 8011d3a: 647b str r3, [r7, #68] @ 0x44
  41706. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  41707. 8011d3c: 697b ldr r3, [r7, #20]
  41708. 8011d3e: 681b ldr r3, [r3, #0]
  41709. 8011d40: 681a ldr r2, [r3, #0]
  41710. 8011d42: 4bbe ldr r3, [pc, #760] @ (801203c <UART_SetConfig+0x328>)
  41711. 8011d44: 4013 ands r3, r2
  41712. 8011d46: 697a ldr r2, [r7, #20]
  41713. 8011d48: 6812 ldr r2, [r2, #0]
  41714. 8011d4a: 6c79 ldr r1, [r7, #68] @ 0x44
  41715. 8011d4c: 430b orrs r3, r1
  41716. 8011d4e: 6013 str r3, [r2, #0]
  41717. /*-------------------------- USART CR2 Configuration -----------------------*/
  41718. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  41719. * to huart->Init.StopBits value */
  41720. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  41721. 8011d50: 697b ldr r3, [r7, #20]
  41722. 8011d52: 681b ldr r3, [r3, #0]
  41723. 8011d54: 685b ldr r3, [r3, #4]
  41724. 8011d56: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  41725. 8011d5a: 697b ldr r3, [r7, #20]
  41726. 8011d5c: 68da ldr r2, [r3, #12]
  41727. 8011d5e: 697b ldr r3, [r7, #20]
  41728. 8011d60: 681b ldr r3, [r3, #0]
  41729. 8011d62: 430a orrs r2, r1
  41730. 8011d64: 605a str r2, [r3, #4]
  41731. /* Configure
  41732. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  41733. * to huart->Init.HwFlowCtl value
  41734. * - one-bit sampling method versus three samples' majority rule according
  41735. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  41736. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  41737. 8011d66: 697b ldr r3, [r7, #20]
  41738. 8011d68: 699b ldr r3, [r3, #24]
  41739. 8011d6a: 647b str r3, [r7, #68] @ 0x44
  41740. if (!(UART_INSTANCE_LOWPOWER(huart)))
  41741. 8011d6c: 697b ldr r3, [r7, #20]
  41742. 8011d6e: 681b ldr r3, [r3, #0]
  41743. 8011d70: 4ab3 ldr r2, [pc, #716] @ (8012040 <UART_SetConfig+0x32c>)
  41744. 8011d72: 4293 cmp r3, r2
  41745. 8011d74: d004 beq.n 8011d80 <UART_SetConfig+0x6c>
  41746. {
  41747. tmpreg |= huart->Init.OneBitSampling;
  41748. 8011d76: 697b ldr r3, [r7, #20]
  41749. 8011d78: 6a1b ldr r3, [r3, #32]
  41750. 8011d7a: 6c7a ldr r2, [r7, #68] @ 0x44
  41751. 8011d7c: 4313 orrs r3, r2
  41752. 8011d7e: 647b str r3, [r7, #68] @ 0x44
  41753. }
  41754. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  41755. 8011d80: 697b ldr r3, [r7, #20]
  41756. 8011d82: 681b ldr r3, [r3, #0]
  41757. 8011d84: 689a ldr r2, [r3, #8]
  41758. 8011d86: 4baf ldr r3, [pc, #700] @ (8012044 <UART_SetConfig+0x330>)
  41759. 8011d88: 4013 ands r3, r2
  41760. 8011d8a: 697a ldr r2, [r7, #20]
  41761. 8011d8c: 6812 ldr r2, [r2, #0]
  41762. 8011d8e: 6c79 ldr r1, [r7, #68] @ 0x44
  41763. 8011d90: 430b orrs r3, r1
  41764. 8011d92: 6093 str r3, [r2, #8]
  41765. /*-------------------------- USART PRESC Configuration -----------------------*/
  41766. /* Configure
  41767. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  41768. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  41769. 8011d94: 697b ldr r3, [r7, #20]
  41770. 8011d96: 681b ldr r3, [r3, #0]
  41771. 8011d98: 6adb ldr r3, [r3, #44] @ 0x2c
  41772. 8011d9a: f023 010f bic.w r1, r3, #15
  41773. 8011d9e: 697b ldr r3, [r7, #20]
  41774. 8011da0: 6a5a ldr r2, [r3, #36] @ 0x24
  41775. 8011da2: 697b ldr r3, [r7, #20]
  41776. 8011da4: 681b ldr r3, [r3, #0]
  41777. 8011da6: 430a orrs r2, r1
  41778. 8011da8: 62da str r2, [r3, #44] @ 0x2c
  41779. /*-------------------------- USART BRR Configuration -----------------------*/
  41780. UART_GETCLOCKSOURCE(huart, clocksource);
  41781. 8011daa: 697b ldr r3, [r7, #20]
  41782. 8011dac: 681b ldr r3, [r3, #0]
  41783. 8011dae: 4aa6 ldr r2, [pc, #664] @ (8012048 <UART_SetConfig+0x334>)
  41784. 8011db0: 4293 cmp r3, r2
  41785. 8011db2: d177 bne.n 8011ea4 <UART_SetConfig+0x190>
  41786. 8011db4: 4ba5 ldr r3, [pc, #660] @ (801204c <UART_SetConfig+0x338>)
  41787. 8011db6: 6d5b ldr r3, [r3, #84] @ 0x54
  41788. 8011db8: f003 0338 and.w r3, r3, #56 @ 0x38
  41789. 8011dbc: 2b28 cmp r3, #40 @ 0x28
  41790. 8011dbe: d86d bhi.n 8011e9c <UART_SetConfig+0x188>
  41791. 8011dc0: a201 add r2, pc, #4 @ (adr r2, 8011dc8 <UART_SetConfig+0xb4>)
  41792. 8011dc2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41793. 8011dc6: bf00 nop
  41794. 8011dc8: 08011e6d .word 0x08011e6d
  41795. 8011dcc: 08011e9d .word 0x08011e9d
  41796. 8011dd0: 08011e9d .word 0x08011e9d
  41797. 8011dd4: 08011e9d .word 0x08011e9d
  41798. 8011dd8: 08011e9d .word 0x08011e9d
  41799. 8011ddc: 08011e9d .word 0x08011e9d
  41800. 8011de0: 08011e9d .word 0x08011e9d
  41801. 8011de4: 08011e9d .word 0x08011e9d
  41802. 8011de8: 08011e75 .word 0x08011e75
  41803. 8011dec: 08011e9d .word 0x08011e9d
  41804. 8011df0: 08011e9d .word 0x08011e9d
  41805. 8011df4: 08011e9d .word 0x08011e9d
  41806. 8011df8: 08011e9d .word 0x08011e9d
  41807. 8011dfc: 08011e9d .word 0x08011e9d
  41808. 8011e00: 08011e9d .word 0x08011e9d
  41809. 8011e04: 08011e9d .word 0x08011e9d
  41810. 8011e08: 08011e7d .word 0x08011e7d
  41811. 8011e0c: 08011e9d .word 0x08011e9d
  41812. 8011e10: 08011e9d .word 0x08011e9d
  41813. 8011e14: 08011e9d .word 0x08011e9d
  41814. 8011e18: 08011e9d .word 0x08011e9d
  41815. 8011e1c: 08011e9d .word 0x08011e9d
  41816. 8011e20: 08011e9d .word 0x08011e9d
  41817. 8011e24: 08011e9d .word 0x08011e9d
  41818. 8011e28: 08011e85 .word 0x08011e85
  41819. 8011e2c: 08011e9d .word 0x08011e9d
  41820. 8011e30: 08011e9d .word 0x08011e9d
  41821. 8011e34: 08011e9d .word 0x08011e9d
  41822. 8011e38: 08011e9d .word 0x08011e9d
  41823. 8011e3c: 08011e9d .word 0x08011e9d
  41824. 8011e40: 08011e9d .word 0x08011e9d
  41825. 8011e44: 08011e9d .word 0x08011e9d
  41826. 8011e48: 08011e8d .word 0x08011e8d
  41827. 8011e4c: 08011e9d .word 0x08011e9d
  41828. 8011e50: 08011e9d .word 0x08011e9d
  41829. 8011e54: 08011e9d .word 0x08011e9d
  41830. 8011e58: 08011e9d .word 0x08011e9d
  41831. 8011e5c: 08011e9d .word 0x08011e9d
  41832. 8011e60: 08011e9d .word 0x08011e9d
  41833. 8011e64: 08011e9d .word 0x08011e9d
  41834. 8011e68: 08011e95 .word 0x08011e95
  41835. 8011e6c: 2301 movs r3, #1
  41836. 8011e6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41837. 8011e72: e222 b.n 80122ba <UART_SetConfig+0x5a6>
  41838. 8011e74: 2304 movs r3, #4
  41839. 8011e76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41840. 8011e7a: e21e b.n 80122ba <UART_SetConfig+0x5a6>
  41841. 8011e7c: 2308 movs r3, #8
  41842. 8011e7e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41843. 8011e82: e21a b.n 80122ba <UART_SetConfig+0x5a6>
  41844. 8011e84: 2310 movs r3, #16
  41845. 8011e86: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41846. 8011e8a: e216 b.n 80122ba <UART_SetConfig+0x5a6>
  41847. 8011e8c: 2320 movs r3, #32
  41848. 8011e8e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41849. 8011e92: e212 b.n 80122ba <UART_SetConfig+0x5a6>
  41850. 8011e94: 2340 movs r3, #64 @ 0x40
  41851. 8011e96: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41852. 8011e9a: e20e b.n 80122ba <UART_SetConfig+0x5a6>
  41853. 8011e9c: 2380 movs r3, #128 @ 0x80
  41854. 8011e9e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41855. 8011ea2: e20a b.n 80122ba <UART_SetConfig+0x5a6>
  41856. 8011ea4: 697b ldr r3, [r7, #20]
  41857. 8011ea6: 681b ldr r3, [r3, #0]
  41858. 8011ea8: 4a69 ldr r2, [pc, #420] @ (8012050 <UART_SetConfig+0x33c>)
  41859. 8011eaa: 4293 cmp r3, r2
  41860. 8011eac: d130 bne.n 8011f10 <UART_SetConfig+0x1fc>
  41861. 8011eae: 4b67 ldr r3, [pc, #412] @ (801204c <UART_SetConfig+0x338>)
  41862. 8011eb0: 6d5b ldr r3, [r3, #84] @ 0x54
  41863. 8011eb2: f003 0307 and.w r3, r3, #7
  41864. 8011eb6: 2b05 cmp r3, #5
  41865. 8011eb8: d826 bhi.n 8011f08 <UART_SetConfig+0x1f4>
  41866. 8011eba: a201 add r2, pc, #4 @ (adr r2, 8011ec0 <UART_SetConfig+0x1ac>)
  41867. 8011ebc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41868. 8011ec0: 08011ed9 .word 0x08011ed9
  41869. 8011ec4: 08011ee1 .word 0x08011ee1
  41870. 8011ec8: 08011ee9 .word 0x08011ee9
  41871. 8011ecc: 08011ef1 .word 0x08011ef1
  41872. 8011ed0: 08011ef9 .word 0x08011ef9
  41873. 8011ed4: 08011f01 .word 0x08011f01
  41874. 8011ed8: 2300 movs r3, #0
  41875. 8011eda: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41876. 8011ede: e1ec b.n 80122ba <UART_SetConfig+0x5a6>
  41877. 8011ee0: 2304 movs r3, #4
  41878. 8011ee2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41879. 8011ee6: e1e8 b.n 80122ba <UART_SetConfig+0x5a6>
  41880. 8011ee8: 2308 movs r3, #8
  41881. 8011eea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41882. 8011eee: e1e4 b.n 80122ba <UART_SetConfig+0x5a6>
  41883. 8011ef0: 2310 movs r3, #16
  41884. 8011ef2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41885. 8011ef6: e1e0 b.n 80122ba <UART_SetConfig+0x5a6>
  41886. 8011ef8: 2320 movs r3, #32
  41887. 8011efa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41888. 8011efe: e1dc b.n 80122ba <UART_SetConfig+0x5a6>
  41889. 8011f00: 2340 movs r3, #64 @ 0x40
  41890. 8011f02: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41891. 8011f06: e1d8 b.n 80122ba <UART_SetConfig+0x5a6>
  41892. 8011f08: 2380 movs r3, #128 @ 0x80
  41893. 8011f0a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41894. 8011f0e: e1d4 b.n 80122ba <UART_SetConfig+0x5a6>
  41895. 8011f10: 697b ldr r3, [r7, #20]
  41896. 8011f12: 681b ldr r3, [r3, #0]
  41897. 8011f14: 4a4f ldr r2, [pc, #316] @ (8012054 <UART_SetConfig+0x340>)
  41898. 8011f16: 4293 cmp r3, r2
  41899. 8011f18: d130 bne.n 8011f7c <UART_SetConfig+0x268>
  41900. 8011f1a: 4b4c ldr r3, [pc, #304] @ (801204c <UART_SetConfig+0x338>)
  41901. 8011f1c: 6d5b ldr r3, [r3, #84] @ 0x54
  41902. 8011f1e: f003 0307 and.w r3, r3, #7
  41903. 8011f22: 2b05 cmp r3, #5
  41904. 8011f24: d826 bhi.n 8011f74 <UART_SetConfig+0x260>
  41905. 8011f26: a201 add r2, pc, #4 @ (adr r2, 8011f2c <UART_SetConfig+0x218>)
  41906. 8011f28: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41907. 8011f2c: 08011f45 .word 0x08011f45
  41908. 8011f30: 08011f4d .word 0x08011f4d
  41909. 8011f34: 08011f55 .word 0x08011f55
  41910. 8011f38: 08011f5d .word 0x08011f5d
  41911. 8011f3c: 08011f65 .word 0x08011f65
  41912. 8011f40: 08011f6d .word 0x08011f6d
  41913. 8011f44: 2300 movs r3, #0
  41914. 8011f46: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41915. 8011f4a: e1b6 b.n 80122ba <UART_SetConfig+0x5a6>
  41916. 8011f4c: 2304 movs r3, #4
  41917. 8011f4e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41918. 8011f52: e1b2 b.n 80122ba <UART_SetConfig+0x5a6>
  41919. 8011f54: 2308 movs r3, #8
  41920. 8011f56: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41921. 8011f5a: e1ae b.n 80122ba <UART_SetConfig+0x5a6>
  41922. 8011f5c: 2310 movs r3, #16
  41923. 8011f5e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41924. 8011f62: e1aa b.n 80122ba <UART_SetConfig+0x5a6>
  41925. 8011f64: 2320 movs r3, #32
  41926. 8011f66: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41927. 8011f6a: e1a6 b.n 80122ba <UART_SetConfig+0x5a6>
  41928. 8011f6c: 2340 movs r3, #64 @ 0x40
  41929. 8011f6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41930. 8011f72: e1a2 b.n 80122ba <UART_SetConfig+0x5a6>
  41931. 8011f74: 2380 movs r3, #128 @ 0x80
  41932. 8011f76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41933. 8011f7a: e19e b.n 80122ba <UART_SetConfig+0x5a6>
  41934. 8011f7c: 697b ldr r3, [r7, #20]
  41935. 8011f7e: 681b ldr r3, [r3, #0]
  41936. 8011f80: 4a35 ldr r2, [pc, #212] @ (8012058 <UART_SetConfig+0x344>)
  41937. 8011f82: 4293 cmp r3, r2
  41938. 8011f84: d130 bne.n 8011fe8 <UART_SetConfig+0x2d4>
  41939. 8011f86: 4b31 ldr r3, [pc, #196] @ (801204c <UART_SetConfig+0x338>)
  41940. 8011f88: 6d5b ldr r3, [r3, #84] @ 0x54
  41941. 8011f8a: f003 0307 and.w r3, r3, #7
  41942. 8011f8e: 2b05 cmp r3, #5
  41943. 8011f90: d826 bhi.n 8011fe0 <UART_SetConfig+0x2cc>
  41944. 8011f92: a201 add r2, pc, #4 @ (adr r2, 8011f98 <UART_SetConfig+0x284>)
  41945. 8011f94: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41946. 8011f98: 08011fb1 .word 0x08011fb1
  41947. 8011f9c: 08011fb9 .word 0x08011fb9
  41948. 8011fa0: 08011fc1 .word 0x08011fc1
  41949. 8011fa4: 08011fc9 .word 0x08011fc9
  41950. 8011fa8: 08011fd1 .word 0x08011fd1
  41951. 8011fac: 08011fd9 .word 0x08011fd9
  41952. 8011fb0: 2300 movs r3, #0
  41953. 8011fb2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41954. 8011fb6: e180 b.n 80122ba <UART_SetConfig+0x5a6>
  41955. 8011fb8: 2304 movs r3, #4
  41956. 8011fba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41957. 8011fbe: e17c b.n 80122ba <UART_SetConfig+0x5a6>
  41958. 8011fc0: 2308 movs r3, #8
  41959. 8011fc2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41960. 8011fc6: e178 b.n 80122ba <UART_SetConfig+0x5a6>
  41961. 8011fc8: 2310 movs r3, #16
  41962. 8011fca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41963. 8011fce: e174 b.n 80122ba <UART_SetConfig+0x5a6>
  41964. 8011fd0: 2320 movs r3, #32
  41965. 8011fd2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41966. 8011fd6: e170 b.n 80122ba <UART_SetConfig+0x5a6>
  41967. 8011fd8: 2340 movs r3, #64 @ 0x40
  41968. 8011fda: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41969. 8011fde: e16c b.n 80122ba <UART_SetConfig+0x5a6>
  41970. 8011fe0: 2380 movs r3, #128 @ 0x80
  41971. 8011fe2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41972. 8011fe6: e168 b.n 80122ba <UART_SetConfig+0x5a6>
  41973. 8011fe8: 697b ldr r3, [r7, #20]
  41974. 8011fea: 681b ldr r3, [r3, #0]
  41975. 8011fec: 4a1b ldr r2, [pc, #108] @ (801205c <UART_SetConfig+0x348>)
  41976. 8011fee: 4293 cmp r3, r2
  41977. 8011ff0: d142 bne.n 8012078 <UART_SetConfig+0x364>
  41978. 8011ff2: 4b16 ldr r3, [pc, #88] @ (801204c <UART_SetConfig+0x338>)
  41979. 8011ff4: 6d5b ldr r3, [r3, #84] @ 0x54
  41980. 8011ff6: f003 0307 and.w r3, r3, #7
  41981. 8011ffa: 2b05 cmp r3, #5
  41982. 8011ffc: d838 bhi.n 8012070 <UART_SetConfig+0x35c>
  41983. 8011ffe: a201 add r2, pc, #4 @ (adr r2, 8012004 <UART_SetConfig+0x2f0>)
  41984. 8012000: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41985. 8012004: 0801201d .word 0x0801201d
  41986. 8012008: 08012025 .word 0x08012025
  41987. 801200c: 0801202d .word 0x0801202d
  41988. 8012010: 08012035 .word 0x08012035
  41989. 8012014: 08012061 .word 0x08012061
  41990. 8012018: 08012069 .word 0x08012069
  41991. 801201c: 2300 movs r3, #0
  41992. 801201e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41993. 8012022: e14a b.n 80122ba <UART_SetConfig+0x5a6>
  41994. 8012024: 2304 movs r3, #4
  41995. 8012026: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41996. 801202a: e146 b.n 80122ba <UART_SetConfig+0x5a6>
  41997. 801202c: 2308 movs r3, #8
  41998. 801202e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  41999. 8012032: e142 b.n 80122ba <UART_SetConfig+0x5a6>
  42000. 8012034: 2310 movs r3, #16
  42001. 8012036: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42002. 801203a: e13e b.n 80122ba <UART_SetConfig+0x5a6>
  42003. 801203c: cfff69f3 .word 0xcfff69f3
  42004. 8012040: 58000c00 .word 0x58000c00
  42005. 8012044: 11fff4ff .word 0x11fff4ff
  42006. 8012048: 40011000 .word 0x40011000
  42007. 801204c: 58024400 .word 0x58024400
  42008. 8012050: 40004400 .word 0x40004400
  42009. 8012054: 40004800 .word 0x40004800
  42010. 8012058: 40004c00 .word 0x40004c00
  42011. 801205c: 40005000 .word 0x40005000
  42012. 8012060: 2320 movs r3, #32
  42013. 8012062: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42014. 8012066: e128 b.n 80122ba <UART_SetConfig+0x5a6>
  42015. 8012068: 2340 movs r3, #64 @ 0x40
  42016. 801206a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42017. 801206e: e124 b.n 80122ba <UART_SetConfig+0x5a6>
  42018. 8012070: 2380 movs r3, #128 @ 0x80
  42019. 8012072: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42020. 8012076: e120 b.n 80122ba <UART_SetConfig+0x5a6>
  42021. 8012078: 697b ldr r3, [r7, #20]
  42022. 801207a: 681b ldr r3, [r3, #0]
  42023. 801207c: 4acb ldr r2, [pc, #812] @ (80123ac <UART_SetConfig+0x698>)
  42024. 801207e: 4293 cmp r3, r2
  42025. 8012080: d176 bne.n 8012170 <UART_SetConfig+0x45c>
  42026. 8012082: 4bcb ldr r3, [pc, #812] @ (80123b0 <UART_SetConfig+0x69c>)
  42027. 8012084: 6d5b ldr r3, [r3, #84] @ 0x54
  42028. 8012086: f003 0338 and.w r3, r3, #56 @ 0x38
  42029. 801208a: 2b28 cmp r3, #40 @ 0x28
  42030. 801208c: d86c bhi.n 8012168 <UART_SetConfig+0x454>
  42031. 801208e: a201 add r2, pc, #4 @ (adr r2, 8012094 <UART_SetConfig+0x380>)
  42032. 8012090: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42033. 8012094: 08012139 .word 0x08012139
  42034. 8012098: 08012169 .word 0x08012169
  42035. 801209c: 08012169 .word 0x08012169
  42036. 80120a0: 08012169 .word 0x08012169
  42037. 80120a4: 08012169 .word 0x08012169
  42038. 80120a8: 08012169 .word 0x08012169
  42039. 80120ac: 08012169 .word 0x08012169
  42040. 80120b0: 08012169 .word 0x08012169
  42041. 80120b4: 08012141 .word 0x08012141
  42042. 80120b8: 08012169 .word 0x08012169
  42043. 80120bc: 08012169 .word 0x08012169
  42044. 80120c0: 08012169 .word 0x08012169
  42045. 80120c4: 08012169 .word 0x08012169
  42046. 80120c8: 08012169 .word 0x08012169
  42047. 80120cc: 08012169 .word 0x08012169
  42048. 80120d0: 08012169 .word 0x08012169
  42049. 80120d4: 08012149 .word 0x08012149
  42050. 80120d8: 08012169 .word 0x08012169
  42051. 80120dc: 08012169 .word 0x08012169
  42052. 80120e0: 08012169 .word 0x08012169
  42053. 80120e4: 08012169 .word 0x08012169
  42054. 80120e8: 08012169 .word 0x08012169
  42055. 80120ec: 08012169 .word 0x08012169
  42056. 80120f0: 08012169 .word 0x08012169
  42057. 80120f4: 08012151 .word 0x08012151
  42058. 80120f8: 08012169 .word 0x08012169
  42059. 80120fc: 08012169 .word 0x08012169
  42060. 8012100: 08012169 .word 0x08012169
  42061. 8012104: 08012169 .word 0x08012169
  42062. 8012108: 08012169 .word 0x08012169
  42063. 801210c: 08012169 .word 0x08012169
  42064. 8012110: 08012169 .word 0x08012169
  42065. 8012114: 08012159 .word 0x08012159
  42066. 8012118: 08012169 .word 0x08012169
  42067. 801211c: 08012169 .word 0x08012169
  42068. 8012120: 08012169 .word 0x08012169
  42069. 8012124: 08012169 .word 0x08012169
  42070. 8012128: 08012169 .word 0x08012169
  42071. 801212c: 08012169 .word 0x08012169
  42072. 8012130: 08012169 .word 0x08012169
  42073. 8012134: 08012161 .word 0x08012161
  42074. 8012138: 2301 movs r3, #1
  42075. 801213a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42076. 801213e: e0bc b.n 80122ba <UART_SetConfig+0x5a6>
  42077. 8012140: 2304 movs r3, #4
  42078. 8012142: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42079. 8012146: e0b8 b.n 80122ba <UART_SetConfig+0x5a6>
  42080. 8012148: 2308 movs r3, #8
  42081. 801214a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42082. 801214e: e0b4 b.n 80122ba <UART_SetConfig+0x5a6>
  42083. 8012150: 2310 movs r3, #16
  42084. 8012152: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42085. 8012156: e0b0 b.n 80122ba <UART_SetConfig+0x5a6>
  42086. 8012158: 2320 movs r3, #32
  42087. 801215a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42088. 801215e: e0ac b.n 80122ba <UART_SetConfig+0x5a6>
  42089. 8012160: 2340 movs r3, #64 @ 0x40
  42090. 8012162: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42091. 8012166: e0a8 b.n 80122ba <UART_SetConfig+0x5a6>
  42092. 8012168: 2380 movs r3, #128 @ 0x80
  42093. 801216a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42094. 801216e: e0a4 b.n 80122ba <UART_SetConfig+0x5a6>
  42095. 8012170: 697b ldr r3, [r7, #20]
  42096. 8012172: 681b ldr r3, [r3, #0]
  42097. 8012174: 4a8f ldr r2, [pc, #572] @ (80123b4 <UART_SetConfig+0x6a0>)
  42098. 8012176: 4293 cmp r3, r2
  42099. 8012178: d130 bne.n 80121dc <UART_SetConfig+0x4c8>
  42100. 801217a: 4b8d ldr r3, [pc, #564] @ (80123b0 <UART_SetConfig+0x69c>)
  42101. 801217c: 6d5b ldr r3, [r3, #84] @ 0x54
  42102. 801217e: f003 0307 and.w r3, r3, #7
  42103. 8012182: 2b05 cmp r3, #5
  42104. 8012184: d826 bhi.n 80121d4 <UART_SetConfig+0x4c0>
  42105. 8012186: a201 add r2, pc, #4 @ (adr r2, 801218c <UART_SetConfig+0x478>)
  42106. 8012188: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42107. 801218c: 080121a5 .word 0x080121a5
  42108. 8012190: 080121ad .word 0x080121ad
  42109. 8012194: 080121b5 .word 0x080121b5
  42110. 8012198: 080121bd .word 0x080121bd
  42111. 801219c: 080121c5 .word 0x080121c5
  42112. 80121a0: 080121cd .word 0x080121cd
  42113. 80121a4: 2300 movs r3, #0
  42114. 80121a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42115. 80121aa: e086 b.n 80122ba <UART_SetConfig+0x5a6>
  42116. 80121ac: 2304 movs r3, #4
  42117. 80121ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42118. 80121b2: e082 b.n 80122ba <UART_SetConfig+0x5a6>
  42119. 80121b4: 2308 movs r3, #8
  42120. 80121b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42121. 80121ba: e07e b.n 80122ba <UART_SetConfig+0x5a6>
  42122. 80121bc: 2310 movs r3, #16
  42123. 80121be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42124. 80121c2: e07a b.n 80122ba <UART_SetConfig+0x5a6>
  42125. 80121c4: 2320 movs r3, #32
  42126. 80121c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42127. 80121ca: e076 b.n 80122ba <UART_SetConfig+0x5a6>
  42128. 80121cc: 2340 movs r3, #64 @ 0x40
  42129. 80121ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42130. 80121d2: e072 b.n 80122ba <UART_SetConfig+0x5a6>
  42131. 80121d4: 2380 movs r3, #128 @ 0x80
  42132. 80121d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42133. 80121da: e06e b.n 80122ba <UART_SetConfig+0x5a6>
  42134. 80121dc: 697b ldr r3, [r7, #20]
  42135. 80121de: 681b ldr r3, [r3, #0]
  42136. 80121e0: 4a75 ldr r2, [pc, #468] @ (80123b8 <UART_SetConfig+0x6a4>)
  42137. 80121e2: 4293 cmp r3, r2
  42138. 80121e4: d130 bne.n 8012248 <UART_SetConfig+0x534>
  42139. 80121e6: 4b72 ldr r3, [pc, #456] @ (80123b0 <UART_SetConfig+0x69c>)
  42140. 80121e8: 6d5b ldr r3, [r3, #84] @ 0x54
  42141. 80121ea: f003 0307 and.w r3, r3, #7
  42142. 80121ee: 2b05 cmp r3, #5
  42143. 80121f0: d826 bhi.n 8012240 <UART_SetConfig+0x52c>
  42144. 80121f2: a201 add r2, pc, #4 @ (adr r2, 80121f8 <UART_SetConfig+0x4e4>)
  42145. 80121f4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42146. 80121f8: 08012211 .word 0x08012211
  42147. 80121fc: 08012219 .word 0x08012219
  42148. 8012200: 08012221 .word 0x08012221
  42149. 8012204: 08012229 .word 0x08012229
  42150. 8012208: 08012231 .word 0x08012231
  42151. 801220c: 08012239 .word 0x08012239
  42152. 8012210: 2300 movs r3, #0
  42153. 8012212: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42154. 8012216: e050 b.n 80122ba <UART_SetConfig+0x5a6>
  42155. 8012218: 2304 movs r3, #4
  42156. 801221a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42157. 801221e: e04c b.n 80122ba <UART_SetConfig+0x5a6>
  42158. 8012220: 2308 movs r3, #8
  42159. 8012222: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42160. 8012226: e048 b.n 80122ba <UART_SetConfig+0x5a6>
  42161. 8012228: 2310 movs r3, #16
  42162. 801222a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42163. 801222e: e044 b.n 80122ba <UART_SetConfig+0x5a6>
  42164. 8012230: 2320 movs r3, #32
  42165. 8012232: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42166. 8012236: e040 b.n 80122ba <UART_SetConfig+0x5a6>
  42167. 8012238: 2340 movs r3, #64 @ 0x40
  42168. 801223a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42169. 801223e: e03c b.n 80122ba <UART_SetConfig+0x5a6>
  42170. 8012240: 2380 movs r3, #128 @ 0x80
  42171. 8012242: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42172. 8012246: e038 b.n 80122ba <UART_SetConfig+0x5a6>
  42173. 8012248: 697b ldr r3, [r7, #20]
  42174. 801224a: 681b ldr r3, [r3, #0]
  42175. 801224c: 4a5b ldr r2, [pc, #364] @ (80123bc <UART_SetConfig+0x6a8>)
  42176. 801224e: 4293 cmp r3, r2
  42177. 8012250: d130 bne.n 80122b4 <UART_SetConfig+0x5a0>
  42178. 8012252: 4b57 ldr r3, [pc, #348] @ (80123b0 <UART_SetConfig+0x69c>)
  42179. 8012254: 6d9b ldr r3, [r3, #88] @ 0x58
  42180. 8012256: f003 0307 and.w r3, r3, #7
  42181. 801225a: 2b05 cmp r3, #5
  42182. 801225c: d826 bhi.n 80122ac <UART_SetConfig+0x598>
  42183. 801225e: a201 add r2, pc, #4 @ (adr r2, 8012264 <UART_SetConfig+0x550>)
  42184. 8012260: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42185. 8012264: 0801227d .word 0x0801227d
  42186. 8012268: 08012285 .word 0x08012285
  42187. 801226c: 0801228d .word 0x0801228d
  42188. 8012270: 08012295 .word 0x08012295
  42189. 8012274: 0801229d .word 0x0801229d
  42190. 8012278: 080122a5 .word 0x080122a5
  42191. 801227c: 2302 movs r3, #2
  42192. 801227e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42193. 8012282: e01a b.n 80122ba <UART_SetConfig+0x5a6>
  42194. 8012284: 2304 movs r3, #4
  42195. 8012286: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42196. 801228a: e016 b.n 80122ba <UART_SetConfig+0x5a6>
  42197. 801228c: 2308 movs r3, #8
  42198. 801228e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42199. 8012292: e012 b.n 80122ba <UART_SetConfig+0x5a6>
  42200. 8012294: 2310 movs r3, #16
  42201. 8012296: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42202. 801229a: e00e b.n 80122ba <UART_SetConfig+0x5a6>
  42203. 801229c: 2320 movs r3, #32
  42204. 801229e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42205. 80122a2: e00a b.n 80122ba <UART_SetConfig+0x5a6>
  42206. 80122a4: 2340 movs r3, #64 @ 0x40
  42207. 80122a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42208. 80122aa: e006 b.n 80122ba <UART_SetConfig+0x5a6>
  42209. 80122ac: 2380 movs r3, #128 @ 0x80
  42210. 80122ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42211. 80122b2: e002 b.n 80122ba <UART_SetConfig+0x5a6>
  42212. 80122b4: 2380 movs r3, #128 @ 0x80
  42213. 80122b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  42214. /* Check LPUART instance */
  42215. if (UART_INSTANCE_LOWPOWER(huart))
  42216. 80122ba: 697b ldr r3, [r7, #20]
  42217. 80122bc: 681b ldr r3, [r3, #0]
  42218. 80122be: 4a3f ldr r2, [pc, #252] @ (80123bc <UART_SetConfig+0x6a8>)
  42219. 80122c0: 4293 cmp r3, r2
  42220. 80122c2: f040 80f8 bne.w 80124b6 <UART_SetConfig+0x7a2>
  42221. {
  42222. /* Retrieve frequency clock */
  42223. switch (clocksource)
  42224. 80122c6: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42225. 80122ca: 2b20 cmp r3, #32
  42226. 80122cc: dc46 bgt.n 801235c <UART_SetConfig+0x648>
  42227. 80122ce: 2b02 cmp r3, #2
  42228. 80122d0: f2c0 8082 blt.w 80123d8 <UART_SetConfig+0x6c4>
  42229. 80122d4: 3b02 subs r3, #2
  42230. 80122d6: 2b1e cmp r3, #30
  42231. 80122d8: d87e bhi.n 80123d8 <UART_SetConfig+0x6c4>
  42232. 80122da: a201 add r2, pc, #4 @ (adr r2, 80122e0 <UART_SetConfig+0x5cc>)
  42233. 80122dc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42234. 80122e0: 08012363 .word 0x08012363
  42235. 80122e4: 080123d9 .word 0x080123d9
  42236. 80122e8: 0801236b .word 0x0801236b
  42237. 80122ec: 080123d9 .word 0x080123d9
  42238. 80122f0: 080123d9 .word 0x080123d9
  42239. 80122f4: 080123d9 .word 0x080123d9
  42240. 80122f8: 0801237b .word 0x0801237b
  42241. 80122fc: 080123d9 .word 0x080123d9
  42242. 8012300: 080123d9 .word 0x080123d9
  42243. 8012304: 080123d9 .word 0x080123d9
  42244. 8012308: 080123d9 .word 0x080123d9
  42245. 801230c: 080123d9 .word 0x080123d9
  42246. 8012310: 080123d9 .word 0x080123d9
  42247. 8012314: 080123d9 .word 0x080123d9
  42248. 8012318: 0801238b .word 0x0801238b
  42249. 801231c: 080123d9 .word 0x080123d9
  42250. 8012320: 080123d9 .word 0x080123d9
  42251. 8012324: 080123d9 .word 0x080123d9
  42252. 8012328: 080123d9 .word 0x080123d9
  42253. 801232c: 080123d9 .word 0x080123d9
  42254. 8012330: 080123d9 .word 0x080123d9
  42255. 8012334: 080123d9 .word 0x080123d9
  42256. 8012338: 080123d9 .word 0x080123d9
  42257. 801233c: 080123d9 .word 0x080123d9
  42258. 8012340: 080123d9 .word 0x080123d9
  42259. 8012344: 080123d9 .word 0x080123d9
  42260. 8012348: 080123d9 .word 0x080123d9
  42261. 801234c: 080123d9 .word 0x080123d9
  42262. 8012350: 080123d9 .word 0x080123d9
  42263. 8012354: 080123d9 .word 0x080123d9
  42264. 8012358: 080123cb .word 0x080123cb
  42265. 801235c: 2b40 cmp r3, #64 @ 0x40
  42266. 801235e: d037 beq.n 80123d0 <UART_SetConfig+0x6bc>
  42267. 8012360: e03a b.n 80123d8 <UART_SetConfig+0x6c4>
  42268. {
  42269. case UART_CLOCKSOURCE_D3PCLK1:
  42270. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  42271. 8012362: f7fc fa8b bl 800e87c <HAL_RCCEx_GetD3PCLK1Freq>
  42272. 8012366: 63f8 str r0, [r7, #60] @ 0x3c
  42273. break;
  42274. 8012368: e03c b.n 80123e4 <UART_SetConfig+0x6d0>
  42275. case UART_CLOCKSOURCE_PLL2:
  42276. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42277. 801236a: f107 0324 add.w r3, r7, #36 @ 0x24
  42278. 801236e: 4618 mov r0, r3
  42279. 8012370: f7fc fa9a bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  42280. pclk = pll2_clocks.PLL2_Q_Frequency;
  42281. 8012374: 6abb ldr r3, [r7, #40] @ 0x28
  42282. 8012376: 63fb str r3, [r7, #60] @ 0x3c
  42283. break;
  42284. 8012378: e034 b.n 80123e4 <UART_SetConfig+0x6d0>
  42285. case UART_CLOCKSOURCE_PLL3:
  42286. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42287. 801237a: f107 0318 add.w r3, r7, #24
  42288. 801237e: 4618 mov r0, r3
  42289. 8012380: f7fc fbe6 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  42290. pclk = pll3_clocks.PLL3_Q_Frequency;
  42291. 8012384: 69fb ldr r3, [r7, #28]
  42292. 8012386: 63fb str r3, [r7, #60] @ 0x3c
  42293. break;
  42294. 8012388: e02c b.n 80123e4 <UART_SetConfig+0x6d0>
  42295. case UART_CLOCKSOURCE_HSI:
  42296. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42297. 801238a: 4b09 ldr r3, [pc, #36] @ (80123b0 <UART_SetConfig+0x69c>)
  42298. 801238c: 681b ldr r3, [r3, #0]
  42299. 801238e: f003 0320 and.w r3, r3, #32
  42300. 8012392: 2b00 cmp r3, #0
  42301. 8012394: d016 beq.n 80123c4 <UART_SetConfig+0x6b0>
  42302. {
  42303. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42304. 8012396: 4b06 ldr r3, [pc, #24] @ (80123b0 <UART_SetConfig+0x69c>)
  42305. 8012398: 681b ldr r3, [r3, #0]
  42306. 801239a: 08db lsrs r3, r3, #3
  42307. 801239c: f003 0303 and.w r3, r3, #3
  42308. 80123a0: 4a07 ldr r2, [pc, #28] @ (80123c0 <UART_SetConfig+0x6ac>)
  42309. 80123a2: fa22 f303 lsr.w r3, r2, r3
  42310. 80123a6: 63fb str r3, [r7, #60] @ 0x3c
  42311. }
  42312. else
  42313. {
  42314. pclk = (uint32_t) HSI_VALUE;
  42315. }
  42316. break;
  42317. 80123a8: e01c b.n 80123e4 <UART_SetConfig+0x6d0>
  42318. 80123aa: bf00 nop
  42319. 80123ac: 40011400 .word 0x40011400
  42320. 80123b0: 58024400 .word 0x58024400
  42321. 80123b4: 40007800 .word 0x40007800
  42322. 80123b8: 40007c00 .word 0x40007c00
  42323. 80123bc: 58000c00 .word 0x58000c00
  42324. 80123c0: 03d09000 .word 0x03d09000
  42325. pclk = (uint32_t) HSI_VALUE;
  42326. 80123c4: 4b9d ldr r3, [pc, #628] @ (801263c <UART_SetConfig+0x928>)
  42327. 80123c6: 63fb str r3, [r7, #60] @ 0x3c
  42328. break;
  42329. 80123c8: e00c b.n 80123e4 <UART_SetConfig+0x6d0>
  42330. case UART_CLOCKSOURCE_CSI:
  42331. pclk = (uint32_t) CSI_VALUE;
  42332. 80123ca: 4b9d ldr r3, [pc, #628] @ (8012640 <UART_SetConfig+0x92c>)
  42333. 80123cc: 63fb str r3, [r7, #60] @ 0x3c
  42334. break;
  42335. 80123ce: e009 b.n 80123e4 <UART_SetConfig+0x6d0>
  42336. case UART_CLOCKSOURCE_LSE:
  42337. pclk = (uint32_t) LSE_VALUE;
  42338. 80123d0: f44f 4300 mov.w r3, #32768 @ 0x8000
  42339. 80123d4: 63fb str r3, [r7, #60] @ 0x3c
  42340. break;
  42341. 80123d6: e005 b.n 80123e4 <UART_SetConfig+0x6d0>
  42342. default:
  42343. pclk = 0U;
  42344. 80123d8: 2300 movs r3, #0
  42345. 80123da: 63fb str r3, [r7, #60] @ 0x3c
  42346. ret = HAL_ERROR;
  42347. 80123dc: 2301 movs r3, #1
  42348. 80123de: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42349. break;
  42350. 80123e2: bf00 nop
  42351. }
  42352. /* If proper clock source reported */
  42353. if (pclk != 0U)
  42354. 80123e4: 6bfb ldr r3, [r7, #60] @ 0x3c
  42355. 80123e6: 2b00 cmp r3, #0
  42356. 80123e8: f000 81de beq.w 80127a8 <UART_SetConfig+0xa94>
  42357. {
  42358. /* Compute clock after Prescaler */
  42359. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  42360. 80123ec: 697b ldr r3, [r7, #20]
  42361. 80123ee: 6a5b ldr r3, [r3, #36] @ 0x24
  42362. 80123f0: 4a94 ldr r2, [pc, #592] @ (8012644 <UART_SetConfig+0x930>)
  42363. 80123f2: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42364. 80123f6: 461a mov r2, r3
  42365. 80123f8: 6bfb ldr r3, [r7, #60] @ 0x3c
  42366. 80123fa: fbb3 f3f2 udiv r3, r3, r2
  42367. 80123fe: 633b str r3, [r7, #48] @ 0x30
  42368. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  42369. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42370. 8012400: 697b ldr r3, [r7, #20]
  42371. 8012402: 685a ldr r2, [r3, #4]
  42372. 8012404: 4613 mov r3, r2
  42373. 8012406: 005b lsls r3, r3, #1
  42374. 8012408: 4413 add r3, r2
  42375. 801240a: 6b3a ldr r2, [r7, #48] @ 0x30
  42376. 801240c: 429a cmp r2, r3
  42377. 801240e: d305 bcc.n 801241c <UART_SetConfig+0x708>
  42378. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  42379. 8012410: 697b ldr r3, [r7, #20]
  42380. 8012412: 685b ldr r3, [r3, #4]
  42381. 8012414: 031b lsls r3, r3, #12
  42382. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  42383. 8012416: 6b3a ldr r2, [r7, #48] @ 0x30
  42384. 8012418: 429a cmp r2, r3
  42385. 801241a: d903 bls.n 8012424 <UART_SetConfig+0x710>
  42386. {
  42387. ret = HAL_ERROR;
  42388. 801241c: 2301 movs r3, #1
  42389. 801241e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42390. 8012422: e1c1 b.n 80127a8 <UART_SetConfig+0xa94>
  42391. }
  42392. else
  42393. {
  42394. /* Check computed UsartDiv value is in allocated range
  42395. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  42396. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42397. 8012424: 6bfb ldr r3, [r7, #60] @ 0x3c
  42398. 8012426: 2200 movs r2, #0
  42399. 8012428: 60bb str r3, [r7, #8]
  42400. 801242a: 60fa str r2, [r7, #12]
  42401. 801242c: 697b ldr r3, [r7, #20]
  42402. 801242e: 6a5b ldr r3, [r3, #36] @ 0x24
  42403. 8012430: 4a84 ldr r2, [pc, #528] @ (8012644 <UART_SetConfig+0x930>)
  42404. 8012432: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42405. 8012436: b29b uxth r3, r3
  42406. 8012438: 2200 movs r2, #0
  42407. 801243a: 603b str r3, [r7, #0]
  42408. 801243c: 607a str r2, [r7, #4]
  42409. 801243e: e9d7 2300 ldrd r2, r3, [r7]
  42410. 8012442: e9d7 0102 ldrd r0, r1, [r7, #8]
  42411. 8012446: f7ed ff4b bl 80002e0 <__aeabi_uldivmod>
  42412. 801244a: 4602 mov r2, r0
  42413. 801244c: 460b mov r3, r1
  42414. 801244e: 4610 mov r0, r2
  42415. 8012450: 4619 mov r1, r3
  42416. 8012452: f04f 0200 mov.w r2, #0
  42417. 8012456: f04f 0300 mov.w r3, #0
  42418. 801245a: 020b lsls r3, r1, #8
  42419. 801245c: ea43 6310 orr.w r3, r3, r0, lsr #24
  42420. 8012460: 0202 lsls r2, r0, #8
  42421. 8012462: 6979 ldr r1, [r7, #20]
  42422. 8012464: 6849 ldr r1, [r1, #4]
  42423. 8012466: 0849 lsrs r1, r1, #1
  42424. 8012468: 2000 movs r0, #0
  42425. 801246a: 460c mov r4, r1
  42426. 801246c: 4605 mov r5, r0
  42427. 801246e: eb12 0804 adds.w r8, r2, r4
  42428. 8012472: eb43 0905 adc.w r9, r3, r5
  42429. 8012476: 697b ldr r3, [r7, #20]
  42430. 8012478: 685b ldr r3, [r3, #4]
  42431. 801247a: 2200 movs r2, #0
  42432. 801247c: 469a mov sl, r3
  42433. 801247e: 4693 mov fp, r2
  42434. 8012480: 4652 mov r2, sl
  42435. 8012482: 465b mov r3, fp
  42436. 8012484: 4640 mov r0, r8
  42437. 8012486: 4649 mov r1, r9
  42438. 8012488: f7ed ff2a bl 80002e0 <__aeabi_uldivmod>
  42439. 801248c: 4602 mov r2, r0
  42440. 801248e: 460b mov r3, r1
  42441. 8012490: 4613 mov r3, r2
  42442. 8012492: 63bb str r3, [r7, #56] @ 0x38
  42443. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  42444. 8012494: 6bbb ldr r3, [r7, #56] @ 0x38
  42445. 8012496: f5b3 7f40 cmp.w r3, #768 @ 0x300
  42446. 801249a: d308 bcc.n 80124ae <UART_SetConfig+0x79a>
  42447. 801249c: 6bbb ldr r3, [r7, #56] @ 0x38
  42448. 801249e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  42449. 80124a2: d204 bcs.n 80124ae <UART_SetConfig+0x79a>
  42450. {
  42451. huart->Instance->BRR = usartdiv;
  42452. 80124a4: 697b ldr r3, [r7, #20]
  42453. 80124a6: 681b ldr r3, [r3, #0]
  42454. 80124a8: 6bba ldr r2, [r7, #56] @ 0x38
  42455. 80124aa: 60da str r2, [r3, #12]
  42456. 80124ac: e17c b.n 80127a8 <UART_SetConfig+0xa94>
  42457. }
  42458. else
  42459. {
  42460. ret = HAL_ERROR;
  42461. 80124ae: 2301 movs r3, #1
  42462. 80124b0: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42463. 80124b4: e178 b.n 80127a8 <UART_SetConfig+0xa94>
  42464. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  42465. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  42466. } /* if (pclk != 0) */
  42467. }
  42468. /* Check UART Over Sampling to set Baud Rate Register */
  42469. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  42470. 80124b6: 697b ldr r3, [r7, #20]
  42471. 80124b8: 69db ldr r3, [r3, #28]
  42472. 80124ba: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  42473. 80124be: f040 80c5 bne.w 801264c <UART_SetConfig+0x938>
  42474. {
  42475. switch (clocksource)
  42476. 80124c2: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42477. 80124c6: 2b20 cmp r3, #32
  42478. 80124c8: dc48 bgt.n 801255c <UART_SetConfig+0x848>
  42479. 80124ca: 2b00 cmp r3, #0
  42480. 80124cc: db7b blt.n 80125c6 <UART_SetConfig+0x8b2>
  42481. 80124ce: 2b20 cmp r3, #32
  42482. 80124d0: d879 bhi.n 80125c6 <UART_SetConfig+0x8b2>
  42483. 80124d2: a201 add r2, pc, #4 @ (adr r2, 80124d8 <UART_SetConfig+0x7c4>)
  42484. 80124d4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42485. 80124d8: 08012563 .word 0x08012563
  42486. 80124dc: 0801256b .word 0x0801256b
  42487. 80124e0: 080125c7 .word 0x080125c7
  42488. 80124e4: 080125c7 .word 0x080125c7
  42489. 80124e8: 08012573 .word 0x08012573
  42490. 80124ec: 080125c7 .word 0x080125c7
  42491. 80124f0: 080125c7 .word 0x080125c7
  42492. 80124f4: 080125c7 .word 0x080125c7
  42493. 80124f8: 08012583 .word 0x08012583
  42494. 80124fc: 080125c7 .word 0x080125c7
  42495. 8012500: 080125c7 .word 0x080125c7
  42496. 8012504: 080125c7 .word 0x080125c7
  42497. 8012508: 080125c7 .word 0x080125c7
  42498. 801250c: 080125c7 .word 0x080125c7
  42499. 8012510: 080125c7 .word 0x080125c7
  42500. 8012514: 080125c7 .word 0x080125c7
  42501. 8012518: 08012593 .word 0x08012593
  42502. 801251c: 080125c7 .word 0x080125c7
  42503. 8012520: 080125c7 .word 0x080125c7
  42504. 8012524: 080125c7 .word 0x080125c7
  42505. 8012528: 080125c7 .word 0x080125c7
  42506. 801252c: 080125c7 .word 0x080125c7
  42507. 8012530: 080125c7 .word 0x080125c7
  42508. 8012534: 080125c7 .word 0x080125c7
  42509. 8012538: 080125c7 .word 0x080125c7
  42510. 801253c: 080125c7 .word 0x080125c7
  42511. 8012540: 080125c7 .word 0x080125c7
  42512. 8012544: 080125c7 .word 0x080125c7
  42513. 8012548: 080125c7 .word 0x080125c7
  42514. 801254c: 080125c7 .word 0x080125c7
  42515. 8012550: 080125c7 .word 0x080125c7
  42516. 8012554: 080125c7 .word 0x080125c7
  42517. 8012558: 080125b9 .word 0x080125b9
  42518. 801255c: 2b40 cmp r3, #64 @ 0x40
  42519. 801255e: d02e beq.n 80125be <UART_SetConfig+0x8aa>
  42520. 8012560: e031 b.n 80125c6 <UART_SetConfig+0x8b2>
  42521. {
  42522. case UART_CLOCKSOURCE_D2PCLK1:
  42523. pclk = HAL_RCC_GetPCLK1Freq();
  42524. 8012562: f7fa f9af bl 800c8c4 <HAL_RCC_GetPCLK1Freq>
  42525. 8012566: 63f8 str r0, [r7, #60] @ 0x3c
  42526. break;
  42527. 8012568: e033 b.n 80125d2 <UART_SetConfig+0x8be>
  42528. case UART_CLOCKSOURCE_D2PCLK2:
  42529. pclk = HAL_RCC_GetPCLK2Freq();
  42530. 801256a: f7fa f9c1 bl 800c8f0 <HAL_RCC_GetPCLK2Freq>
  42531. 801256e: 63f8 str r0, [r7, #60] @ 0x3c
  42532. break;
  42533. 8012570: e02f b.n 80125d2 <UART_SetConfig+0x8be>
  42534. case UART_CLOCKSOURCE_PLL2:
  42535. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42536. 8012572: f107 0324 add.w r3, r7, #36 @ 0x24
  42537. 8012576: 4618 mov r0, r3
  42538. 8012578: f7fc f996 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  42539. pclk = pll2_clocks.PLL2_Q_Frequency;
  42540. 801257c: 6abb ldr r3, [r7, #40] @ 0x28
  42541. 801257e: 63fb str r3, [r7, #60] @ 0x3c
  42542. break;
  42543. 8012580: e027 b.n 80125d2 <UART_SetConfig+0x8be>
  42544. case UART_CLOCKSOURCE_PLL3:
  42545. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42546. 8012582: f107 0318 add.w r3, r7, #24
  42547. 8012586: 4618 mov r0, r3
  42548. 8012588: f7fc fae2 bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  42549. pclk = pll3_clocks.PLL3_Q_Frequency;
  42550. 801258c: 69fb ldr r3, [r7, #28]
  42551. 801258e: 63fb str r3, [r7, #60] @ 0x3c
  42552. break;
  42553. 8012590: e01f b.n 80125d2 <UART_SetConfig+0x8be>
  42554. case UART_CLOCKSOURCE_HSI:
  42555. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42556. 8012592: 4b2d ldr r3, [pc, #180] @ (8012648 <UART_SetConfig+0x934>)
  42557. 8012594: 681b ldr r3, [r3, #0]
  42558. 8012596: f003 0320 and.w r3, r3, #32
  42559. 801259a: 2b00 cmp r3, #0
  42560. 801259c: d009 beq.n 80125b2 <UART_SetConfig+0x89e>
  42561. {
  42562. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42563. 801259e: 4b2a ldr r3, [pc, #168] @ (8012648 <UART_SetConfig+0x934>)
  42564. 80125a0: 681b ldr r3, [r3, #0]
  42565. 80125a2: 08db lsrs r3, r3, #3
  42566. 80125a4: f003 0303 and.w r3, r3, #3
  42567. 80125a8: 4a24 ldr r2, [pc, #144] @ (801263c <UART_SetConfig+0x928>)
  42568. 80125aa: fa22 f303 lsr.w r3, r2, r3
  42569. 80125ae: 63fb str r3, [r7, #60] @ 0x3c
  42570. }
  42571. else
  42572. {
  42573. pclk = (uint32_t) HSI_VALUE;
  42574. }
  42575. break;
  42576. 80125b0: e00f b.n 80125d2 <UART_SetConfig+0x8be>
  42577. pclk = (uint32_t) HSI_VALUE;
  42578. 80125b2: 4b22 ldr r3, [pc, #136] @ (801263c <UART_SetConfig+0x928>)
  42579. 80125b4: 63fb str r3, [r7, #60] @ 0x3c
  42580. break;
  42581. 80125b6: e00c b.n 80125d2 <UART_SetConfig+0x8be>
  42582. case UART_CLOCKSOURCE_CSI:
  42583. pclk = (uint32_t) CSI_VALUE;
  42584. 80125b8: 4b21 ldr r3, [pc, #132] @ (8012640 <UART_SetConfig+0x92c>)
  42585. 80125ba: 63fb str r3, [r7, #60] @ 0x3c
  42586. break;
  42587. 80125bc: e009 b.n 80125d2 <UART_SetConfig+0x8be>
  42588. case UART_CLOCKSOURCE_LSE:
  42589. pclk = (uint32_t) LSE_VALUE;
  42590. 80125be: f44f 4300 mov.w r3, #32768 @ 0x8000
  42591. 80125c2: 63fb str r3, [r7, #60] @ 0x3c
  42592. break;
  42593. 80125c4: e005 b.n 80125d2 <UART_SetConfig+0x8be>
  42594. default:
  42595. pclk = 0U;
  42596. 80125c6: 2300 movs r3, #0
  42597. 80125c8: 63fb str r3, [r7, #60] @ 0x3c
  42598. ret = HAL_ERROR;
  42599. 80125ca: 2301 movs r3, #1
  42600. 80125cc: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42601. break;
  42602. 80125d0: bf00 nop
  42603. }
  42604. /* USARTDIV must be greater than or equal to 0d16 */
  42605. if (pclk != 0U)
  42606. 80125d2: 6bfb ldr r3, [r7, #60] @ 0x3c
  42607. 80125d4: 2b00 cmp r3, #0
  42608. 80125d6: f000 80e7 beq.w 80127a8 <UART_SetConfig+0xa94>
  42609. {
  42610. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42611. 80125da: 697b ldr r3, [r7, #20]
  42612. 80125dc: 6a5b ldr r3, [r3, #36] @ 0x24
  42613. 80125de: 4a19 ldr r2, [pc, #100] @ (8012644 <UART_SetConfig+0x930>)
  42614. 80125e0: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42615. 80125e4: 461a mov r2, r3
  42616. 80125e6: 6bfb ldr r3, [r7, #60] @ 0x3c
  42617. 80125e8: fbb3 f3f2 udiv r3, r3, r2
  42618. 80125ec: 005a lsls r2, r3, #1
  42619. 80125ee: 697b ldr r3, [r7, #20]
  42620. 80125f0: 685b ldr r3, [r3, #4]
  42621. 80125f2: 085b lsrs r3, r3, #1
  42622. 80125f4: 441a add r2, r3
  42623. 80125f6: 697b ldr r3, [r7, #20]
  42624. 80125f8: 685b ldr r3, [r3, #4]
  42625. 80125fa: fbb2 f3f3 udiv r3, r2, r3
  42626. 80125fe: 63bb str r3, [r7, #56] @ 0x38
  42627. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42628. 8012600: 6bbb ldr r3, [r7, #56] @ 0x38
  42629. 8012602: 2b0f cmp r3, #15
  42630. 8012604: d916 bls.n 8012634 <UART_SetConfig+0x920>
  42631. 8012606: 6bbb ldr r3, [r7, #56] @ 0x38
  42632. 8012608: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42633. 801260c: d212 bcs.n 8012634 <UART_SetConfig+0x920>
  42634. {
  42635. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  42636. 801260e: 6bbb ldr r3, [r7, #56] @ 0x38
  42637. 8012610: b29b uxth r3, r3
  42638. 8012612: f023 030f bic.w r3, r3, #15
  42639. 8012616: 86fb strh r3, [r7, #54] @ 0x36
  42640. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  42641. 8012618: 6bbb ldr r3, [r7, #56] @ 0x38
  42642. 801261a: 085b lsrs r3, r3, #1
  42643. 801261c: b29b uxth r3, r3
  42644. 801261e: f003 0307 and.w r3, r3, #7
  42645. 8012622: b29a uxth r2, r3
  42646. 8012624: 8efb ldrh r3, [r7, #54] @ 0x36
  42647. 8012626: 4313 orrs r3, r2
  42648. 8012628: 86fb strh r3, [r7, #54] @ 0x36
  42649. huart->Instance->BRR = brrtemp;
  42650. 801262a: 697b ldr r3, [r7, #20]
  42651. 801262c: 681b ldr r3, [r3, #0]
  42652. 801262e: 8efa ldrh r2, [r7, #54] @ 0x36
  42653. 8012630: 60da str r2, [r3, #12]
  42654. 8012632: e0b9 b.n 80127a8 <UART_SetConfig+0xa94>
  42655. }
  42656. else
  42657. {
  42658. ret = HAL_ERROR;
  42659. 8012634: 2301 movs r3, #1
  42660. 8012636: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42661. 801263a: e0b5 b.n 80127a8 <UART_SetConfig+0xa94>
  42662. 801263c: 03d09000 .word 0x03d09000
  42663. 8012640: 003d0900 .word 0x003d0900
  42664. 8012644: 08018724 .word 0x08018724
  42665. 8012648: 58024400 .word 0x58024400
  42666. }
  42667. }
  42668. }
  42669. else
  42670. {
  42671. switch (clocksource)
  42672. 801264c: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  42673. 8012650: 2b20 cmp r3, #32
  42674. 8012652: dc49 bgt.n 80126e8 <UART_SetConfig+0x9d4>
  42675. 8012654: 2b00 cmp r3, #0
  42676. 8012656: db7c blt.n 8012752 <UART_SetConfig+0xa3e>
  42677. 8012658: 2b20 cmp r3, #32
  42678. 801265a: d87a bhi.n 8012752 <UART_SetConfig+0xa3e>
  42679. 801265c: a201 add r2, pc, #4 @ (adr r2, 8012664 <UART_SetConfig+0x950>)
  42680. 801265e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  42681. 8012662: bf00 nop
  42682. 8012664: 080126ef .word 0x080126ef
  42683. 8012668: 080126f7 .word 0x080126f7
  42684. 801266c: 08012753 .word 0x08012753
  42685. 8012670: 08012753 .word 0x08012753
  42686. 8012674: 080126ff .word 0x080126ff
  42687. 8012678: 08012753 .word 0x08012753
  42688. 801267c: 08012753 .word 0x08012753
  42689. 8012680: 08012753 .word 0x08012753
  42690. 8012684: 0801270f .word 0x0801270f
  42691. 8012688: 08012753 .word 0x08012753
  42692. 801268c: 08012753 .word 0x08012753
  42693. 8012690: 08012753 .word 0x08012753
  42694. 8012694: 08012753 .word 0x08012753
  42695. 8012698: 08012753 .word 0x08012753
  42696. 801269c: 08012753 .word 0x08012753
  42697. 80126a0: 08012753 .word 0x08012753
  42698. 80126a4: 0801271f .word 0x0801271f
  42699. 80126a8: 08012753 .word 0x08012753
  42700. 80126ac: 08012753 .word 0x08012753
  42701. 80126b0: 08012753 .word 0x08012753
  42702. 80126b4: 08012753 .word 0x08012753
  42703. 80126b8: 08012753 .word 0x08012753
  42704. 80126bc: 08012753 .word 0x08012753
  42705. 80126c0: 08012753 .word 0x08012753
  42706. 80126c4: 08012753 .word 0x08012753
  42707. 80126c8: 08012753 .word 0x08012753
  42708. 80126cc: 08012753 .word 0x08012753
  42709. 80126d0: 08012753 .word 0x08012753
  42710. 80126d4: 08012753 .word 0x08012753
  42711. 80126d8: 08012753 .word 0x08012753
  42712. 80126dc: 08012753 .word 0x08012753
  42713. 80126e0: 08012753 .word 0x08012753
  42714. 80126e4: 08012745 .word 0x08012745
  42715. 80126e8: 2b40 cmp r3, #64 @ 0x40
  42716. 80126ea: d02e beq.n 801274a <UART_SetConfig+0xa36>
  42717. 80126ec: e031 b.n 8012752 <UART_SetConfig+0xa3e>
  42718. {
  42719. case UART_CLOCKSOURCE_D2PCLK1:
  42720. pclk = HAL_RCC_GetPCLK1Freq();
  42721. 80126ee: f7fa f8e9 bl 800c8c4 <HAL_RCC_GetPCLK1Freq>
  42722. 80126f2: 63f8 str r0, [r7, #60] @ 0x3c
  42723. break;
  42724. 80126f4: e033 b.n 801275e <UART_SetConfig+0xa4a>
  42725. case UART_CLOCKSOURCE_D2PCLK2:
  42726. pclk = HAL_RCC_GetPCLK2Freq();
  42727. 80126f6: f7fa f8fb bl 800c8f0 <HAL_RCC_GetPCLK2Freq>
  42728. 80126fa: 63f8 str r0, [r7, #60] @ 0x3c
  42729. break;
  42730. 80126fc: e02f b.n 801275e <UART_SetConfig+0xa4a>
  42731. case UART_CLOCKSOURCE_PLL2:
  42732. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  42733. 80126fe: f107 0324 add.w r3, r7, #36 @ 0x24
  42734. 8012702: 4618 mov r0, r3
  42735. 8012704: f7fc f8d0 bl 800e8a8 <HAL_RCCEx_GetPLL2ClockFreq>
  42736. pclk = pll2_clocks.PLL2_Q_Frequency;
  42737. 8012708: 6abb ldr r3, [r7, #40] @ 0x28
  42738. 801270a: 63fb str r3, [r7, #60] @ 0x3c
  42739. break;
  42740. 801270c: e027 b.n 801275e <UART_SetConfig+0xa4a>
  42741. case UART_CLOCKSOURCE_PLL3:
  42742. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  42743. 801270e: f107 0318 add.w r3, r7, #24
  42744. 8012712: 4618 mov r0, r3
  42745. 8012714: f7fc fa1c bl 800eb50 <HAL_RCCEx_GetPLL3ClockFreq>
  42746. pclk = pll3_clocks.PLL3_Q_Frequency;
  42747. 8012718: 69fb ldr r3, [r7, #28]
  42748. 801271a: 63fb str r3, [r7, #60] @ 0x3c
  42749. break;
  42750. 801271c: e01f b.n 801275e <UART_SetConfig+0xa4a>
  42751. case UART_CLOCKSOURCE_HSI:
  42752. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  42753. 801271e: 4b2d ldr r3, [pc, #180] @ (80127d4 <UART_SetConfig+0xac0>)
  42754. 8012720: 681b ldr r3, [r3, #0]
  42755. 8012722: f003 0320 and.w r3, r3, #32
  42756. 8012726: 2b00 cmp r3, #0
  42757. 8012728: d009 beq.n 801273e <UART_SetConfig+0xa2a>
  42758. {
  42759. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  42760. 801272a: 4b2a ldr r3, [pc, #168] @ (80127d4 <UART_SetConfig+0xac0>)
  42761. 801272c: 681b ldr r3, [r3, #0]
  42762. 801272e: 08db lsrs r3, r3, #3
  42763. 8012730: f003 0303 and.w r3, r3, #3
  42764. 8012734: 4a28 ldr r2, [pc, #160] @ (80127d8 <UART_SetConfig+0xac4>)
  42765. 8012736: fa22 f303 lsr.w r3, r2, r3
  42766. 801273a: 63fb str r3, [r7, #60] @ 0x3c
  42767. }
  42768. else
  42769. {
  42770. pclk = (uint32_t) HSI_VALUE;
  42771. }
  42772. break;
  42773. 801273c: e00f b.n 801275e <UART_SetConfig+0xa4a>
  42774. pclk = (uint32_t) HSI_VALUE;
  42775. 801273e: 4b26 ldr r3, [pc, #152] @ (80127d8 <UART_SetConfig+0xac4>)
  42776. 8012740: 63fb str r3, [r7, #60] @ 0x3c
  42777. break;
  42778. 8012742: e00c b.n 801275e <UART_SetConfig+0xa4a>
  42779. case UART_CLOCKSOURCE_CSI:
  42780. pclk = (uint32_t) CSI_VALUE;
  42781. 8012744: 4b25 ldr r3, [pc, #148] @ (80127dc <UART_SetConfig+0xac8>)
  42782. 8012746: 63fb str r3, [r7, #60] @ 0x3c
  42783. break;
  42784. 8012748: e009 b.n 801275e <UART_SetConfig+0xa4a>
  42785. case UART_CLOCKSOURCE_LSE:
  42786. pclk = (uint32_t) LSE_VALUE;
  42787. 801274a: f44f 4300 mov.w r3, #32768 @ 0x8000
  42788. 801274e: 63fb str r3, [r7, #60] @ 0x3c
  42789. break;
  42790. 8012750: e005 b.n 801275e <UART_SetConfig+0xa4a>
  42791. default:
  42792. pclk = 0U;
  42793. 8012752: 2300 movs r3, #0
  42794. 8012754: 63fb str r3, [r7, #60] @ 0x3c
  42795. ret = HAL_ERROR;
  42796. 8012756: 2301 movs r3, #1
  42797. 8012758: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42798. break;
  42799. 801275c: bf00 nop
  42800. }
  42801. if (pclk != 0U)
  42802. 801275e: 6bfb ldr r3, [r7, #60] @ 0x3c
  42803. 8012760: 2b00 cmp r3, #0
  42804. 8012762: d021 beq.n 80127a8 <UART_SetConfig+0xa94>
  42805. {
  42806. /* USARTDIV must be greater than or equal to 0d16 */
  42807. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  42808. 8012764: 697b ldr r3, [r7, #20]
  42809. 8012766: 6a5b ldr r3, [r3, #36] @ 0x24
  42810. 8012768: 4a1d ldr r2, [pc, #116] @ (80127e0 <UART_SetConfig+0xacc>)
  42811. 801276a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  42812. 801276e: 461a mov r2, r3
  42813. 8012770: 6bfb ldr r3, [r7, #60] @ 0x3c
  42814. 8012772: fbb3 f2f2 udiv r2, r3, r2
  42815. 8012776: 697b ldr r3, [r7, #20]
  42816. 8012778: 685b ldr r3, [r3, #4]
  42817. 801277a: 085b lsrs r3, r3, #1
  42818. 801277c: 441a add r2, r3
  42819. 801277e: 697b ldr r3, [r7, #20]
  42820. 8012780: 685b ldr r3, [r3, #4]
  42821. 8012782: fbb2 f3f3 udiv r3, r2, r3
  42822. 8012786: 63bb str r3, [r7, #56] @ 0x38
  42823. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  42824. 8012788: 6bbb ldr r3, [r7, #56] @ 0x38
  42825. 801278a: 2b0f cmp r3, #15
  42826. 801278c: d909 bls.n 80127a2 <UART_SetConfig+0xa8e>
  42827. 801278e: 6bbb ldr r3, [r7, #56] @ 0x38
  42828. 8012790: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  42829. 8012794: d205 bcs.n 80127a2 <UART_SetConfig+0xa8e>
  42830. {
  42831. huart->Instance->BRR = (uint16_t)usartdiv;
  42832. 8012796: 6bbb ldr r3, [r7, #56] @ 0x38
  42833. 8012798: b29a uxth r2, r3
  42834. 801279a: 697b ldr r3, [r7, #20]
  42835. 801279c: 681b ldr r3, [r3, #0]
  42836. 801279e: 60da str r2, [r3, #12]
  42837. 80127a0: e002 b.n 80127a8 <UART_SetConfig+0xa94>
  42838. }
  42839. else
  42840. {
  42841. ret = HAL_ERROR;
  42842. 80127a2: 2301 movs r3, #1
  42843. 80127a4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  42844. }
  42845. }
  42846. }
  42847. /* Initialize the number of data to process during RX/TX ISR execution */
  42848. huart->NbTxDataToProcess = 1;
  42849. 80127a8: 697b ldr r3, [r7, #20]
  42850. 80127aa: 2201 movs r2, #1
  42851. 80127ac: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  42852. huart->NbRxDataToProcess = 1;
  42853. 80127b0: 697b ldr r3, [r7, #20]
  42854. 80127b2: 2201 movs r2, #1
  42855. 80127b4: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  42856. /* Clear ISR function pointers */
  42857. huart->RxISR = NULL;
  42858. 80127b8: 697b ldr r3, [r7, #20]
  42859. 80127ba: 2200 movs r2, #0
  42860. 80127bc: 675a str r2, [r3, #116] @ 0x74
  42861. huart->TxISR = NULL;
  42862. 80127be: 697b ldr r3, [r7, #20]
  42863. 80127c0: 2200 movs r2, #0
  42864. 80127c2: 679a str r2, [r3, #120] @ 0x78
  42865. return ret;
  42866. 80127c4: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  42867. }
  42868. 80127c8: 4618 mov r0, r3
  42869. 80127ca: 3748 adds r7, #72 @ 0x48
  42870. 80127cc: 46bd mov sp, r7
  42871. 80127ce: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  42872. 80127d2: bf00 nop
  42873. 80127d4: 58024400 .word 0x58024400
  42874. 80127d8: 03d09000 .word 0x03d09000
  42875. 80127dc: 003d0900 .word 0x003d0900
  42876. 80127e0: 08018724 .word 0x08018724
  42877. 080127e4 <UART_AdvFeatureConfig>:
  42878. * @brief Configure the UART peripheral advanced features.
  42879. * @param huart UART handle.
  42880. * @retval None
  42881. */
  42882. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  42883. {
  42884. 80127e4: b480 push {r7}
  42885. 80127e6: b083 sub sp, #12
  42886. 80127e8: af00 add r7, sp, #0
  42887. 80127ea: 6078 str r0, [r7, #4]
  42888. /* Check whether the set of advanced features to configure is properly set */
  42889. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  42890. /* if required, configure RX/TX pins swap */
  42891. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  42892. 80127ec: 687b ldr r3, [r7, #4]
  42893. 80127ee: 6a9b ldr r3, [r3, #40] @ 0x28
  42894. 80127f0: f003 0308 and.w r3, r3, #8
  42895. 80127f4: 2b00 cmp r3, #0
  42896. 80127f6: d00a beq.n 801280e <UART_AdvFeatureConfig+0x2a>
  42897. {
  42898. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  42899. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  42900. 80127f8: 687b ldr r3, [r7, #4]
  42901. 80127fa: 681b ldr r3, [r3, #0]
  42902. 80127fc: 685b ldr r3, [r3, #4]
  42903. 80127fe: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  42904. 8012802: 687b ldr r3, [r7, #4]
  42905. 8012804: 6b9a ldr r2, [r3, #56] @ 0x38
  42906. 8012806: 687b ldr r3, [r7, #4]
  42907. 8012808: 681b ldr r3, [r3, #0]
  42908. 801280a: 430a orrs r2, r1
  42909. 801280c: 605a str r2, [r3, #4]
  42910. }
  42911. /* if required, configure TX pin active level inversion */
  42912. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  42913. 801280e: 687b ldr r3, [r7, #4]
  42914. 8012810: 6a9b ldr r3, [r3, #40] @ 0x28
  42915. 8012812: f003 0301 and.w r3, r3, #1
  42916. 8012816: 2b00 cmp r3, #0
  42917. 8012818: d00a beq.n 8012830 <UART_AdvFeatureConfig+0x4c>
  42918. {
  42919. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  42920. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  42921. 801281a: 687b ldr r3, [r7, #4]
  42922. 801281c: 681b ldr r3, [r3, #0]
  42923. 801281e: 685b ldr r3, [r3, #4]
  42924. 8012820: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  42925. 8012824: 687b ldr r3, [r7, #4]
  42926. 8012826: 6ada ldr r2, [r3, #44] @ 0x2c
  42927. 8012828: 687b ldr r3, [r7, #4]
  42928. 801282a: 681b ldr r3, [r3, #0]
  42929. 801282c: 430a orrs r2, r1
  42930. 801282e: 605a str r2, [r3, #4]
  42931. }
  42932. /* if required, configure RX pin active level inversion */
  42933. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  42934. 8012830: 687b ldr r3, [r7, #4]
  42935. 8012832: 6a9b ldr r3, [r3, #40] @ 0x28
  42936. 8012834: f003 0302 and.w r3, r3, #2
  42937. 8012838: 2b00 cmp r3, #0
  42938. 801283a: d00a beq.n 8012852 <UART_AdvFeatureConfig+0x6e>
  42939. {
  42940. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  42941. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  42942. 801283c: 687b ldr r3, [r7, #4]
  42943. 801283e: 681b ldr r3, [r3, #0]
  42944. 8012840: 685b ldr r3, [r3, #4]
  42945. 8012842: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  42946. 8012846: 687b ldr r3, [r7, #4]
  42947. 8012848: 6b1a ldr r2, [r3, #48] @ 0x30
  42948. 801284a: 687b ldr r3, [r7, #4]
  42949. 801284c: 681b ldr r3, [r3, #0]
  42950. 801284e: 430a orrs r2, r1
  42951. 8012850: 605a str r2, [r3, #4]
  42952. }
  42953. /* if required, configure data inversion */
  42954. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  42955. 8012852: 687b ldr r3, [r7, #4]
  42956. 8012854: 6a9b ldr r3, [r3, #40] @ 0x28
  42957. 8012856: f003 0304 and.w r3, r3, #4
  42958. 801285a: 2b00 cmp r3, #0
  42959. 801285c: d00a beq.n 8012874 <UART_AdvFeatureConfig+0x90>
  42960. {
  42961. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  42962. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  42963. 801285e: 687b ldr r3, [r7, #4]
  42964. 8012860: 681b ldr r3, [r3, #0]
  42965. 8012862: 685b ldr r3, [r3, #4]
  42966. 8012864: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  42967. 8012868: 687b ldr r3, [r7, #4]
  42968. 801286a: 6b5a ldr r2, [r3, #52] @ 0x34
  42969. 801286c: 687b ldr r3, [r7, #4]
  42970. 801286e: 681b ldr r3, [r3, #0]
  42971. 8012870: 430a orrs r2, r1
  42972. 8012872: 605a str r2, [r3, #4]
  42973. }
  42974. /* if required, configure RX overrun detection disabling */
  42975. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  42976. 8012874: 687b ldr r3, [r7, #4]
  42977. 8012876: 6a9b ldr r3, [r3, #40] @ 0x28
  42978. 8012878: f003 0310 and.w r3, r3, #16
  42979. 801287c: 2b00 cmp r3, #0
  42980. 801287e: d00a beq.n 8012896 <UART_AdvFeatureConfig+0xb2>
  42981. {
  42982. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  42983. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  42984. 8012880: 687b ldr r3, [r7, #4]
  42985. 8012882: 681b ldr r3, [r3, #0]
  42986. 8012884: 689b ldr r3, [r3, #8]
  42987. 8012886: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  42988. 801288a: 687b ldr r3, [r7, #4]
  42989. 801288c: 6bda ldr r2, [r3, #60] @ 0x3c
  42990. 801288e: 687b ldr r3, [r7, #4]
  42991. 8012890: 681b ldr r3, [r3, #0]
  42992. 8012892: 430a orrs r2, r1
  42993. 8012894: 609a str r2, [r3, #8]
  42994. }
  42995. /* if required, configure DMA disabling on reception error */
  42996. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  42997. 8012896: 687b ldr r3, [r7, #4]
  42998. 8012898: 6a9b ldr r3, [r3, #40] @ 0x28
  42999. 801289a: f003 0320 and.w r3, r3, #32
  43000. 801289e: 2b00 cmp r3, #0
  43001. 80128a0: d00a beq.n 80128b8 <UART_AdvFeatureConfig+0xd4>
  43002. {
  43003. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  43004. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  43005. 80128a2: 687b ldr r3, [r7, #4]
  43006. 80128a4: 681b ldr r3, [r3, #0]
  43007. 80128a6: 689b ldr r3, [r3, #8]
  43008. 80128a8: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  43009. 80128ac: 687b ldr r3, [r7, #4]
  43010. 80128ae: 6c1a ldr r2, [r3, #64] @ 0x40
  43011. 80128b0: 687b ldr r3, [r7, #4]
  43012. 80128b2: 681b ldr r3, [r3, #0]
  43013. 80128b4: 430a orrs r2, r1
  43014. 80128b6: 609a str r2, [r3, #8]
  43015. }
  43016. /* if required, configure auto Baud rate detection scheme */
  43017. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  43018. 80128b8: 687b ldr r3, [r7, #4]
  43019. 80128ba: 6a9b ldr r3, [r3, #40] @ 0x28
  43020. 80128bc: f003 0340 and.w r3, r3, #64 @ 0x40
  43021. 80128c0: 2b00 cmp r3, #0
  43022. 80128c2: d01a beq.n 80128fa <UART_AdvFeatureConfig+0x116>
  43023. {
  43024. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  43025. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  43026. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  43027. 80128c4: 687b ldr r3, [r7, #4]
  43028. 80128c6: 681b ldr r3, [r3, #0]
  43029. 80128c8: 685b ldr r3, [r3, #4]
  43030. 80128ca: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  43031. 80128ce: 687b ldr r3, [r7, #4]
  43032. 80128d0: 6c5a ldr r2, [r3, #68] @ 0x44
  43033. 80128d2: 687b ldr r3, [r7, #4]
  43034. 80128d4: 681b ldr r3, [r3, #0]
  43035. 80128d6: 430a orrs r2, r1
  43036. 80128d8: 605a str r2, [r3, #4]
  43037. /* set auto Baudrate detection parameters if detection is enabled */
  43038. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  43039. 80128da: 687b ldr r3, [r7, #4]
  43040. 80128dc: 6c5b ldr r3, [r3, #68] @ 0x44
  43041. 80128de: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  43042. 80128e2: d10a bne.n 80128fa <UART_AdvFeatureConfig+0x116>
  43043. {
  43044. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  43045. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  43046. 80128e4: 687b ldr r3, [r7, #4]
  43047. 80128e6: 681b ldr r3, [r3, #0]
  43048. 80128e8: 685b ldr r3, [r3, #4]
  43049. 80128ea: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  43050. 80128ee: 687b ldr r3, [r7, #4]
  43051. 80128f0: 6c9a ldr r2, [r3, #72] @ 0x48
  43052. 80128f2: 687b ldr r3, [r7, #4]
  43053. 80128f4: 681b ldr r3, [r3, #0]
  43054. 80128f6: 430a orrs r2, r1
  43055. 80128f8: 605a str r2, [r3, #4]
  43056. }
  43057. }
  43058. /* if required, configure MSB first on communication line */
  43059. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  43060. 80128fa: 687b ldr r3, [r7, #4]
  43061. 80128fc: 6a9b ldr r3, [r3, #40] @ 0x28
  43062. 80128fe: f003 0380 and.w r3, r3, #128 @ 0x80
  43063. 8012902: 2b00 cmp r3, #0
  43064. 8012904: d00a beq.n 801291c <UART_AdvFeatureConfig+0x138>
  43065. {
  43066. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  43067. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  43068. 8012906: 687b ldr r3, [r7, #4]
  43069. 8012908: 681b ldr r3, [r3, #0]
  43070. 801290a: 685b ldr r3, [r3, #4]
  43071. 801290c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  43072. 8012910: 687b ldr r3, [r7, #4]
  43073. 8012912: 6cda ldr r2, [r3, #76] @ 0x4c
  43074. 8012914: 687b ldr r3, [r7, #4]
  43075. 8012916: 681b ldr r3, [r3, #0]
  43076. 8012918: 430a orrs r2, r1
  43077. 801291a: 605a str r2, [r3, #4]
  43078. }
  43079. }
  43080. 801291c: bf00 nop
  43081. 801291e: 370c adds r7, #12
  43082. 8012920: 46bd mov sp, r7
  43083. 8012922: f85d 7b04 ldr.w r7, [sp], #4
  43084. 8012926: 4770 bx lr
  43085. 08012928 <UART_CheckIdleState>:
  43086. * @brief Check the UART Idle State.
  43087. * @param huart UART handle.
  43088. * @retval HAL status
  43089. */
  43090. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  43091. {
  43092. 8012928: b580 push {r7, lr}
  43093. 801292a: b098 sub sp, #96 @ 0x60
  43094. 801292c: af02 add r7, sp, #8
  43095. 801292e: 6078 str r0, [r7, #4]
  43096. uint32_t tickstart;
  43097. /* Initialize the UART ErrorCode */
  43098. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43099. 8012930: 687b ldr r3, [r7, #4]
  43100. 8012932: 2200 movs r2, #0
  43101. 8012934: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43102. /* Init tickstart for timeout management */
  43103. tickstart = HAL_GetTick();
  43104. 8012938: f7f3 fa74 bl 8005e24 <HAL_GetTick>
  43105. 801293c: 6578 str r0, [r7, #84] @ 0x54
  43106. /* Check if the Transmitter is enabled */
  43107. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  43108. 801293e: 687b ldr r3, [r7, #4]
  43109. 8012940: 681b ldr r3, [r3, #0]
  43110. 8012942: 681b ldr r3, [r3, #0]
  43111. 8012944: f003 0308 and.w r3, r3, #8
  43112. 8012948: 2b08 cmp r3, #8
  43113. 801294a: d12f bne.n 80129ac <UART_CheckIdleState+0x84>
  43114. {
  43115. /* Wait until TEACK flag is set */
  43116. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43117. 801294c: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43118. 8012950: 9300 str r3, [sp, #0]
  43119. 8012952: 6d7b ldr r3, [r7, #84] @ 0x54
  43120. 8012954: 2200 movs r2, #0
  43121. 8012956: f44f 1100 mov.w r1, #2097152 @ 0x200000
  43122. 801295a: 6878 ldr r0, [r7, #4]
  43123. 801295c: f000 f88e bl 8012a7c <UART_WaitOnFlagUntilTimeout>
  43124. 8012960: 4603 mov r3, r0
  43125. 8012962: 2b00 cmp r3, #0
  43126. 8012964: d022 beq.n 80129ac <UART_CheckIdleState+0x84>
  43127. {
  43128. /* Disable TXE interrupt for the interrupt process */
  43129. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  43130. 8012966: 687b ldr r3, [r7, #4]
  43131. 8012968: 681b ldr r3, [r3, #0]
  43132. 801296a: 63bb str r3, [r7, #56] @ 0x38
  43133. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43134. 801296c: 6bbb ldr r3, [r7, #56] @ 0x38
  43135. 801296e: e853 3f00 ldrex r3, [r3]
  43136. 8012972: 637b str r3, [r7, #52] @ 0x34
  43137. return(result);
  43138. 8012974: 6b7b ldr r3, [r7, #52] @ 0x34
  43139. 8012976: f023 0380 bic.w r3, r3, #128 @ 0x80
  43140. 801297a: 653b str r3, [r7, #80] @ 0x50
  43141. 801297c: 687b ldr r3, [r7, #4]
  43142. 801297e: 681b ldr r3, [r3, #0]
  43143. 8012980: 461a mov r2, r3
  43144. 8012982: 6d3b ldr r3, [r7, #80] @ 0x50
  43145. 8012984: 647b str r3, [r7, #68] @ 0x44
  43146. 8012986: 643a str r2, [r7, #64] @ 0x40
  43147. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43148. 8012988: 6c39 ldr r1, [r7, #64] @ 0x40
  43149. 801298a: 6c7a ldr r2, [r7, #68] @ 0x44
  43150. 801298c: e841 2300 strex r3, r2, [r1]
  43151. 8012990: 63fb str r3, [r7, #60] @ 0x3c
  43152. return(result);
  43153. 8012992: 6bfb ldr r3, [r7, #60] @ 0x3c
  43154. 8012994: 2b00 cmp r3, #0
  43155. 8012996: d1e6 bne.n 8012966 <UART_CheckIdleState+0x3e>
  43156. huart->gState = HAL_UART_STATE_READY;
  43157. 8012998: 687b ldr r3, [r7, #4]
  43158. 801299a: 2220 movs r2, #32
  43159. 801299c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43160. __HAL_UNLOCK(huart);
  43161. 80129a0: 687b ldr r3, [r7, #4]
  43162. 80129a2: 2200 movs r2, #0
  43163. 80129a4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43164. /* Timeout occurred */
  43165. return HAL_TIMEOUT;
  43166. 80129a8: 2303 movs r3, #3
  43167. 80129aa: e063 b.n 8012a74 <UART_CheckIdleState+0x14c>
  43168. }
  43169. }
  43170. /* Check if the Receiver is enabled */
  43171. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  43172. 80129ac: 687b ldr r3, [r7, #4]
  43173. 80129ae: 681b ldr r3, [r3, #0]
  43174. 80129b0: 681b ldr r3, [r3, #0]
  43175. 80129b2: f003 0304 and.w r3, r3, #4
  43176. 80129b6: 2b04 cmp r3, #4
  43177. 80129b8: d149 bne.n 8012a4e <UART_CheckIdleState+0x126>
  43178. {
  43179. /* Wait until REACK flag is set */
  43180. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  43181. 80129ba: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  43182. 80129be: 9300 str r3, [sp, #0]
  43183. 80129c0: 6d7b ldr r3, [r7, #84] @ 0x54
  43184. 80129c2: 2200 movs r2, #0
  43185. 80129c4: f44f 0180 mov.w r1, #4194304 @ 0x400000
  43186. 80129c8: 6878 ldr r0, [r7, #4]
  43187. 80129ca: f000 f857 bl 8012a7c <UART_WaitOnFlagUntilTimeout>
  43188. 80129ce: 4603 mov r3, r0
  43189. 80129d0: 2b00 cmp r3, #0
  43190. 80129d2: d03c beq.n 8012a4e <UART_CheckIdleState+0x126>
  43191. {
  43192. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  43193. interrupts for the interrupt process */
  43194. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43195. 80129d4: 687b ldr r3, [r7, #4]
  43196. 80129d6: 681b ldr r3, [r3, #0]
  43197. 80129d8: 627b str r3, [r7, #36] @ 0x24
  43198. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43199. 80129da: 6a7b ldr r3, [r7, #36] @ 0x24
  43200. 80129dc: e853 3f00 ldrex r3, [r3]
  43201. 80129e0: 623b str r3, [r7, #32]
  43202. return(result);
  43203. 80129e2: 6a3b ldr r3, [r7, #32]
  43204. 80129e4: f423 7390 bic.w r3, r3, #288 @ 0x120
  43205. 80129e8: 64fb str r3, [r7, #76] @ 0x4c
  43206. 80129ea: 687b ldr r3, [r7, #4]
  43207. 80129ec: 681b ldr r3, [r3, #0]
  43208. 80129ee: 461a mov r2, r3
  43209. 80129f0: 6cfb ldr r3, [r7, #76] @ 0x4c
  43210. 80129f2: 633b str r3, [r7, #48] @ 0x30
  43211. 80129f4: 62fa str r2, [r7, #44] @ 0x2c
  43212. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43213. 80129f6: 6af9 ldr r1, [r7, #44] @ 0x2c
  43214. 80129f8: 6b3a ldr r2, [r7, #48] @ 0x30
  43215. 80129fa: e841 2300 strex r3, r2, [r1]
  43216. 80129fe: 62bb str r3, [r7, #40] @ 0x28
  43217. return(result);
  43218. 8012a00: 6abb ldr r3, [r7, #40] @ 0x28
  43219. 8012a02: 2b00 cmp r3, #0
  43220. 8012a04: d1e6 bne.n 80129d4 <UART_CheckIdleState+0xac>
  43221. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43222. 8012a06: 687b ldr r3, [r7, #4]
  43223. 8012a08: 681b ldr r3, [r3, #0]
  43224. 8012a0a: 3308 adds r3, #8
  43225. 8012a0c: 613b str r3, [r7, #16]
  43226. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43227. 8012a0e: 693b ldr r3, [r7, #16]
  43228. 8012a10: e853 3f00 ldrex r3, [r3]
  43229. 8012a14: 60fb str r3, [r7, #12]
  43230. return(result);
  43231. 8012a16: 68fb ldr r3, [r7, #12]
  43232. 8012a18: f023 0301 bic.w r3, r3, #1
  43233. 8012a1c: 64bb str r3, [r7, #72] @ 0x48
  43234. 8012a1e: 687b ldr r3, [r7, #4]
  43235. 8012a20: 681b ldr r3, [r3, #0]
  43236. 8012a22: 3308 adds r3, #8
  43237. 8012a24: 6cba ldr r2, [r7, #72] @ 0x48
  43238. 8012a26: 61fa str r2, [r7, #28]
  43239. 8012a28: 61bb str r3, [r7, #24]
  43240. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43241. 8012a2a: 69b9 ldr r1, [r7, #24]
  43242. 8012a2c: 69fa ldr r2, [r7, #28]
  43243. 8012a2e: e841 2300 strex r3, r2, [r1]
  43244. 8012a32: 617b str r3, [r7, #20]
  43245. return(result);
  43246. 8012a34: 697b ldr r3, [r7, #20]
  43247. 8012a36: 2b00 cmp r3, #0
  43248. 8012a38: d1e5 bne.n 8012a06 <UART_CheckIdleState+0xde>
  43249. huart->RxState = HAL_UART_STATE_READY;
  43250. 8012a3a: 687b ldr r3, [r7, #4]
  43251. 8012a3c: 2220 movs r2, #32
  43252. 8012a3e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43253. __HAL_UNLOCK(huart);
  43254. 8012a42: 687b ldr r3, [r7, #4]
  43255. 8012a44: 2200 movs r2, #0
  43256. 8012a46: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43257. /* Timeout occurred */
  43258. return HAL_TIMEOUT;
  43259. 8012a4a: 2303 movs r3, #3
  43260. 8012a4c: e012 b.n 8012a74 <UART_CheckIdleState+0x14c>
  43261. }
  43262. }
  43263. /* Initialize the UART State */
  43264. huart->gState = HAL_UART_STATE_READY;
  43265. 8012a4e: 687b ldr r3, [r7, #4]
  43266. 8012a50: 2220 movs r2, #32
  43267. 8012a52: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  43268. huart->RxState = HAL_UART_STATE_READY;
  43269. 8012a56: 687b ldr r3, [r7, #4]
  43270. 8012a58: 2220 movs r2, #32
  43271. 8012a5a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43272. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43273. 8012a5e: 687b ldr r3, [r7, #4]
  43274. 8012a60: 2200 movs r2, #0
  43275. 8012a62: 66da str r2, [r3, #108] @ 0x6c
  43276. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43277. 8012a64: 687b ldr r3, [r7, #4]
  43278. 8012a66: 2200 movs r2, #0
  43279. 8012a68: 671a str r2, [r3, #112] @ 0x70
  43280. __HAL_UNLOCK(huart);
  43281. 8012a6a: 687b ldr r3, [r7, #4]
  43282. 8012a6c: 2200 movs r2, #0
  43283. 8012a6e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43284. return HAL_OK;
  43285. 8012a72: 2300 movs r3, #0
  43286. }
  43287. 8012a74: 4618 mov r0, r3
  43288. 8012a76: 3758 adds r7, #88 @ 0x58
  43289. 8012a78: 46bd mov sp, r7
  43290. 8012a7a: bd80 pop {r7, pc}
  43291. 08012a7c <UART_WaitOnFlagUntilTimeout>:
  43292. * @param Timeout Timeout duration
  43293. * @retval HAL status
  43294. */
  43295. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  43296. uint32_t Tickstart, uint32_t Timeout)
  43297. {
  43298. 8012a7c: b580 push {r7, lr}
  43299. 8012a7e: b084 sub sp, #16
  43300. 8012a80: af00 add r7, sp, #0
  43301. 8012a82: 60f8 str r0, [r7, #12]
  43302. 8012a84: 60b9 str r1, [r7, #8]
  43303. 8012a86: 603b str r3, [r7, #0]
  43304. 8012a88: 4613 mov r3, r2
  43305. 8012a8a: 71fb strb r3, [r7, #7]
  43306. /* Wait until flag is set */
  43307. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43308. 8012a8c: e04f b.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43309. {
  43310. /* Check for the Timeout */
  43311. if (Timeout != HAL_MAX_DELAY)
  43312. 8012a8e: 69bb ldr r3, [r7, #24]
  43313. 8012a90: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43314. 8012a94: d04b beq.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43315. {
  43316. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  43317. 8012a96: f7f3 f9c5 bl 8005e24 <HAL_GetTick>
  43318. 8012a9a: 4602 mov r2, r0
  43319. 8012a9c: 683b ldr r3, [r7, #0]
  43320. 8012a9e: 1ad3 subs r3, r2, r3
  43321. 8012aa0: 69ba ldr r2, [r7, #24]
  43322. 8012aa2: 429a cmp r2, r3
  43323. 8012aa4: d302 bcc.n 8012aac <UART_WaitOnFlagUntilTimeout+0x30>
  43324. 8012aa6: 69bb ldr r3, [r7, #24]
  43325. 8012aa8: 2b00 cmp r3, #0
  43326. 8012aaa: d101 bne.n 8012ab0 <UART_WaitOnFlagUntilTimeout+0x34>
  43327. {
  43328. return HAL_TIMEOUT;
  43329. 8012aac: 2303 movs r3, #3
  43330. 8012aae: e04e b.n 8012b4e <UART_WaitOnFlagUntilTimeout+0xd2>
  43331. }
  43332. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  43333. 8012ab0: 68fb ldr r3, [r7, #12]
  43334. 8012ab2: 681b ldr r3, [r3, #0]
  43335. 8012ab4: 681b ldr r3, [r3, #0]
  43336. 8012ab6: f003 0304 and.w r3, r3, #4
  43337. 8012aba: 2b00 cmp r3, #0
  43338. 8012abc: d037 beq.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43339. 8012abe: 68bb ldr r3, [r7, #8]
  43340. 8012ac0: 2b80 cmp r3, #128 @ 0x80
  43341. 8012ac2: d034 beq.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43342. 8012ac4: 68bb ldr r3, [r7, #8]
  43343. 8012ac6: 2b40 cmp r3, #64 @ 0x40
  43344. 8012ac8: d031 beq.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43345. {
  43346. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  43347. 8012aca: 68fb ldr r3, [r7, #12]
  43348. 8012acc: 681b ldr r3, [r3, #0]
  43349. 8012ace: 69db ldr r3, [r3, #28]
  43350. 8012ad0: f003 0308 and.w r3, r3, #8
  43351. 8012ad4: 2b08 cmp r3, #8
  43352. 8012ad6: d110 bne.n 8012afa <UART_WaitOnFlagUntilTimeout+0x7e>
  43353. {
  43354. /* Clear Overrun Error flag*/
  43355. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  43356. 8012ad8: 68fb ldr r3, [r7, #12]
  43357. 8012ada: 681b ldr r3, [r3, #0]
  43358. 8012adc: 2208 movs r2, #8
  43359. 8012ade: 621a str r2, [r3, #32]
  43360. /* Blocking error : transfer is aborted
  43361. Set the UART state ready to be able to start again the process,
  43362. Disable Rx Interrupts if ongoing */
  43363. UART_EndRxTransfer(huart);
  43364. 8012ae0: 68f8 ldr r0, [r7, #12]
  43365. 8012ae2: f000 f95b bl 8012d9c <UART_EndRxTransfer>
  43366. huart->ErrorCode = HAL_UART_ERROR_ORE;
  43367. 8012ae6: 68fb ldr r3, [r7, #12]
  43368. 8012ae8: 2208 movs r2, #8
  43369. 8012aea: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43370. /* Process Unlocked */
  43371. __HAL_UNLOCK(huart);
  43372. 8012aee: 68fb ldr r3, [r7, #12]
  43373. 8012af0: 2200 movs r2, #0
  43374. 8012af2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43375. return HAL_ERROR;
  43376. 8012af6: 2301 movs r3, #1
  43377. 8012af8: e029 b.n 8012b4e <UART_WaitOnFlagUntilTimeout+0xd2>
  43378. }
  43379. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  43380. 8012afa: 68fb ldr r3, [r7, #12]
  43381. 8012afc: 681b ldr r3, [r3, #0]
  43382. 8012afe: 69db ldr r3, [r3, #28]
  43383. 8012b00: f403 6300 and.w r3, r3, #2048 @ 0x800
  43384. 8012b04: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  43385. 8012b08: d111 bne.n 8012b2e <UART_WaitOnFlagUntilTimeout+0xb2>
  43386. {
  43387. /* Clear Receiver Timeout flag*/
  43388. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  43389. 8012b0a: 68fb ldr r3, [r7, #12]
  43390. 8012b0c: 681b ldr r3, [r3, #0]
  43391. 8012b0e: f44f 6200 mov.w r2, #2048 @ 0x800
  43392. 8012b12: 621a str r2, [r3, #32]
  43393. /* Blocking error : transfer is aborted
  43394. Set the UART state ready to be able to start again the process,
  43395. Disable Rx Interrupts if ongoing */
  43396. UART_EndRxTransfer(huart);
  43397. 8012b14: 68f8 ldr r0, [r7, #12]
  43398. 8012b16: f000 f941 bl 8012d9c <UART_EndRxTransfer>
  43399. huart->ErrorCode = HAL_UART_ERROR_RTO;
  43400. 8012b1a: 68fb ldr r3, [r7, #12]
  43401. 8012b1c: 2220 movs r2, #32
  43402. 8012b1e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43403. /* Process Unlocked */
  43404. __HAL_UNLOCK(huart);
  43405. 8012b22: 68fb ldr r3, [r7, #12]
  43406. 8012b24: 2200 movs r2, #0
  43407. 8012b26: f883 2084 strb.w r2, [r3, #132] @ 0x84
  43408. return HAL_TIMEOUT;
  43409. 8012b2a: 2303 movs r3, #3
  43410. 8012b2c: e00f b.n 8012b4e <UART_WaitOnFlagUntilTimeout+0xd2>
  43411. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  43412. 8012b2e: 68fb ldr r3, [r7, #12]
  43413. 8012b30: 681b ldr r3, [r3, #0]
  43414. 8012b32: 69da ldr r2, [r3, #28]
  43415. 8012b34: 68bb ldr r3, [r7, #8]
  43416. 8012b36: 4013 ands r3, r2
  43417. 8012b38: 68ba ldr r2, [r7, #8]
  43418. 8012b3a: 429a cmp r2, r3
  43419. 8012b3c: bf0c ite eq
  43420. 8012b3e: 2301 moveq r3, #1
  43421. 8012b40: 2300 movne r3, #0
  43422. 8012b42: b2db uxtb r3, r3
  43423. 8012b44: 461a mov r2, r3
  43424. 8012b46: 79fb ldrb r3, [r7, #7]
  43425. 8012b48: 429a cmp r2, r3
  43426. 8012b4a: d0a0 beq.n 8012a8e <UART_WaitOnFlagUntilTimeout+0x12>
  43427. }
  43428. }
  43429. }
  43430. }
  43431. return HAL_OK;
  43432. 8012b4c: 2300 movs r3, #0
  43433. }
  43434. 8012b4e: 4618 mov r0, r3
  43435. 8012b50: 3710 adds r7, #16
  43436. 8012b52: 46bd mov sp, r7
  43437. 8012b54: bd80 pop {r7, pc}
  43438. ...
  43439. 08012b58 <UART_Start_Receive_IT>:
  43440. * @param pData Pointer to data buffer (u8 or u16 data elements).
  43441. * @param Size Amount of data elements (u8 or u16) to be received.
  43442. * @retval HAL status
  43443. */
  43444. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  43445. {
  43446. 8012b58: b480 push {r7}
  43447. 8012b5a: b0a3 sub sp, #140 @ 0x8c
  43448. 8012b5c: af00 add r7, sp, #0
  43449. 8012b5e: 60f8 str r0, [r7, #12]
  43450. 8012b60: 60b9 str r1, [r7, #8]
  43451. 8012b62: 4613 mov r3, r2
  43452. 8012b64: 80fb strh r3, [r7, #6]
  43453. huart->pRxBuffPtr = pData;
  43454. 8012b66: 68fb ldr r3, [r7, #12]
  43455. 8012b68: 68ba ldr r2, [r7, #8]
  43456. 8012b6a: 659a str r2, [r3, #88] @ 0x58
  43457. huart->RxXferSize = Size;
  43458. 8012b6c: 68fb ldr r3, [r7, #12]
  43459. 8012b6e: 88fa ldrh r2, [r7, #6]
  43460. 8012b70: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  43461. huart->RxXferCount = Size;
  43462. 8012b74: 68fb ldr r3, [r7, #12]
  43463. 8012b76: 88fa ldrh r2, [r7, #6]
  43464. 8012b78: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43465. huart->RxISR = NULL;
  43466. 8012b7c: 68fb ldr r3, [r7, #12]
  43467. 8012b7e: 2200 movs r2, #0
  43468. 8012b80: 675a str r2, [r3, #116] @ 0x74
  43469. /* Computation of UART mask to apply to RDR register */
  43470. UART_MASK_COMPUTATION(huart);
  43471. 8012b82: 68fb ldr r3, [r7, #12]
  43472. 8012b84: 689b ldr r3, [r3, #8]
  43473. 8012b86: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43474. 8012b8a: d10e bne.n 8012baa <UART_Start_Receive_IT+0x52>
  43475. 8012b8c: 68fb ldr r3, [r7, #12]
  43476. 8012b8e: 691b ldr r3, [r3, #16]
  43477. 8012b90: 2b00 cmp r3, #0
  43478. 8012b92: d105 bne.n 8012ba0 <UART_Start_Receive_IT+0x48>
  43479. 8012b94: 68fb ldr r3, [r7, #12]
  43480. 8012b96: f240 12ff movw r2, #511 @ 0x1ff
  43481. 8012b9a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43482. 8012b9e: e02d b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43483. 8012ba0: 68fb ldr r3, [r7, #12]
  43484. 8012ba2: 22ff movs r2, #255 @ 0xff
  43485. 8012ba4: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43486. 8012ba8: e028 b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43487. 8012baa: 68fb ldr r3, [r7, #12]
  43488. 8012bac: 689b ldr r3, [r3, #8]
  43489. 8012bae: 2b00 cmp r3, #0
  43490. 8012bb0: d10d bne.n 8012bce <UART_Start_Receive_IT+0x76>
  43491. 8012bb2: 68fb ldr r3, [r7, #12]
  43492. 8012bb4: 691b ldr r3, [r3, #16]
  43493. 8012bb6: 2b00 cmp r3, #0
  43494. 8012bb8: d104 bne.n 8012bc4 <UART_Start_Receive_IT+0x6c>
  43495. 8012bba: 68fb ldr r3, [r7, #12]
  43496. 8012bbc: 22ff movs r2, #255 @ 0xff
  43497. 8012bbe: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43498. 8012bc2: e01b b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43499. 8012bc4: 68fb ldr r3, [r7, #12]
  43500. 8012bc6: 227f movs r2, #127 @ 0x7f
  43501. 8012bc8: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43502. 8012bcc: e016 b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43503. 8012bce: 68fb ldr r3, [r7, #12]
  43504. 8012bd0: 689b ldr r3, [r3, #8]
  43505. 8012bd2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  43506. 8012bd6: d10d bne.n 8012bf4 <UART_Start_Receive_IT+0x9c>
  43507. 8012bd8: 68fb ldr r3, [r7, #12]
  43508. 8012bda: 691b ldr r3, [r3, #16]
  43509. 8012bdc: 2b00 cmp r3, #0
  43510. 8012bde: d104 bne.n 8012bea <UART_Start_Receive_IT+0x92>
  43511. 8012be0: 68fb ldr r3, [r7, #12]
  43512. 8012be2: 227f movs r2, #127 @ 0x7f
  43513. 8012be4: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43514. 8012be8: e008 b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43515. 8012bea: 68fb ldr r3, [r7, #12]
  43516. 8012bec: 223f movs r2, #63 @ 0x3f
  43517. 8012bee: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43518. 8012bf2: e003 b.n 8012bfc <UART_Start_Receive_IT+0xa4>
  43519. 8012bf4: 68fb ldr r3, [r7, #12]
  43520. 8012bf6: 2200 movs r2, #0
  43521. 8012bf8: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  43522. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43523. 8012bfc: 68fb ldr r3, [r7, #12]
  43524. 8012bfe: 2200 movs r2, #0
  43525. 8012c00: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43526. huart->RxState = HAL_UART_STATE_BUSY_RX;
  43527. 8012c04: 68fb ldr r3, [r7, #12]
  43528. 8012c06: 2222 movs r2, #34 @ 0x22
  43529. 8012c08: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43530. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43531. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43532. 8012c0c: 68fb ldr r3, [r7, #12]
  43533. 8012c0e: 681b ldr r3, [r3, #0]
  43534. 8012c10: 3308 adds r3, #8
  43535. 8012c12: 667b str r3, [r7, #100] @ 0x64
  43536. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43537. 8012c14: 6e7b ldr r3, [r7, #100] @ 0x64
  43538. 8012c16: e853 3f00 ldrex r3, [r3]
  43539. 8012c1a: 663b str r3, [r7, #96] @ 0x60
  43540. return(result);
  43541. 8012c1c: 6e3b ldr r3, [r7, #96] @ 0x60
  43542. 8012c1e: f043 0301 orr.w r3, r3, #1
  43543. 8012c22: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  43544. 8012c26: 68fb ldr r3, [r7, #12]
  43545. 8012c28: 681b ldr r3, [r3, #0]
  43546. 8012c2a: 3308 adds r3, #8
  43547. 8012c2c: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  43548. 8012c30: 673a str r2, [r7, #112] @ 0x70
  43549. 8012c32: 66fb str r3, [r7, #108] @ 0x6c
  43550. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43551. 8012c34: 6ef9 ldr r1, [r7, #108] @ 0x6c
  43552. 8012c36: 6f3a ldr r2, [r7, #112] @ 0x70
  43553. 8012c38: e841 2300 strex r3, r2, [r1]
  43554. 8012c3c: 66bb str r3, [r7, #104] @ 0x68
  43555. return(result);
  43556. 8012c3e: 6ebb ldr r3, [r7, #104] @ 0x68
  43557. 8012c40: 2b00 cmp r3, #0
  43558. 8012c42: d1e3 bne.n 8012c0c <UART_Start_Receive_IT+0xb4>
  43559. /* Configure Rx interrupt processing */
  43560. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  43561. 8012c44: 68fb ldr r3, [r7, #12]
  43562. 8012c46: 6e5b ldr r3, [r3, #100] @ 0x64
  43563. 8012c48: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  43564. 8012c4c: d14f bne.n 8012cee <UART_Start_Receive_IT+0x196>
  43565. 8012c4e: 68fb ldr r3, [r7, #12]
  43566. 8012c50: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43567. 8012c54: 88fa ldrh r2, [r7, #6]
  43568. 8012c56: 429a cmp r2, r3
  43569. 8012c58: d349 bcc.n 8012cee <UART_Start_Receive_IT+0x196>
  43570. {
  43571. /* Set the Rx ISR function pointer according to the data word length */
  43572. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43573. 8012c5a: 68fb ldr r3, [r7, #12]
  43574. 8012c5c: 689b ldr r3, [r3, #8]
  43575. 8012c5e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43576. 8012c62: d107 bne.n 8012c74 <UART_Start_Receive_IT+0x11c>
  43577. 8012c64: 68fb ldr r3, [r7, #12]
  43578. 8012c66: 691b ldr r3, [r3, #16]
  43579. 8012c68: 2b00 cmp r3, #0
  43580. 8012c6a: d103 bne.n 8012c74 <UART_Start_Receive_IT+0x11c>
  43581. {
  43582. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  43583. 8012c6c: 68fb ldr r3, [r7, #12]
  43584. 8012c6e: 4a47 ldr r2, [pc, #284] @ (8012d8c <UART_Start_Receive_IT+0x234>)
  43585. 8012c70: 675a str r2, [r3, #116] @ 0x74
  43586. 8012c72: e002 b.n 8012c7a <UART_Start_Receive_IT+0x122>
  43587. }
  43588. else
  43589. {
  43590. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  43591. 8012c74: 68fb ldr r3, [r7, #12]
  43592. 8012c76: 4a46 ldr r2, [pc, #280] @ (8012d90 <UART_Start_Receive_IT+0x238>)
  43593. 8012c78: 675a str r2, [r3, #116] @ 0x74
  43594. }
  43595. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  43596. if (huart->Init.Parity != UART_PARITY_NONE)
  43597. 8012c7a: 68fb ldr r3, [r7, #12]
  43598. 8012c7c: 691b ldr r3, [r3, #16]
  43599. 8012c7e: 2b00 cmp r3, #0
  43600. 8012c80: d01a beq.n 8012cb8 <UART_Start_Receive_IT+0x160>
  43601. {
  43602. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43603. 8012c82: 68fb ldr r3, [r7, #12]
  43604. 8012c84: 681b ldr r3, [r3, #0]
  43605. 8012c86: 653b str r3, [r7, #80] @ 0x50
  43606. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43607. 8012c88: 6d3b ldr r3, [r7, #80] @ 0x50
  43608. 8012c8a: e853 3f00 ldrex r3, [r3]
  43609. 8012c8e: 64fb str r3, [r7, #76] @ 0x4c
  43610. return(result);
  43611. 8012c90: 6cfb ldr r3, [r7, #76] @ 0x4c
  43612. 8012c92: f443 7380 orr.w r3, r3, #256 @ 0x100
  43613. 8012c96: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  43614. 8012c9a: 68fb ldr r3, [r7, #12]
  43615. 8012c9c: 681b ldr r3, [r3, #0]
  43616. 8012c9e: 461a mov r2, r3
  43617. 8012ca0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  43618. 8012ca4: 65fb str r3, [r7, #92] @ 0x5c
  43619. 8012ca6: 65ba str r2, [r7, #88] @ 0x58
  43620. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43621. 8012ca8: 6db9 ldr r1, [r7, #88] @ 0x58
  43622. 8012caa: 6dfa ldr r2, [r7, #92] @ 0x5c
  43623. 8012cac: e841 2300 strex r3, r2, [r1]
  43624. 8012cb0: 657b str r3, [r7, #84] @ 0x54
  43625. return(result);
  43626. 8012cb2: 6d7b ldr r3, [r7, #84] @ 0x54
  43627. 8012cb4: 2b00 cmp r3, #0
  43628. 8012cb6: d1e4 bne.n 8012c82 <UART_Start_Receive_IT+0x12a>
  43629. }
  43630. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  43631. 8012cb8: 68fb ldr r3, [r7, #12]
  43632. 8012cba: 681b ldr r3, [r3, #0]
  43633. 8012cbc: 3308 adds r3, #8
  43634. 8012cbe: 63fb str r3, [r7, #60] @ 0x3c
  43635. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43636. 8012cc0: 6bfb ldr r3, [r7, #60] @ 0x3c
  43637. 8012cc2: e853 3f00 ldrex r3, [r3]
  43638. 8012cc6: 63bb str r3, [r7, #56] @ 0x38
  43639. return(result);
  43640. 8012cc8: 6bbb ldr r3, [r7, #56] @ 0x38
  43641. 8012cca: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  43642. 8012cce: 67fb str r3, [r7, #124] @ 0x7c
  43643. 8012cd0: 68fb ldr r3, [r7, #12]
  43644. 8012cd2: 681b ldr r3, [r3, #0]
  43645. 8012cd4: 3308 adds r3, #8
  43646. 8012cd6: 6ffa ldr r2, [r7, #124] @ 0x7c
  43647. 8012cd8: 64ba str r2, [r7, #72] @ 0x48
  43648. 8012cda: 647b str r3, [r7, #68] @ 0x44
  43649. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43650. 8012cdc: 6c79 ldr r1, [r7, #68] @ 0x44
  43651. 8012cde: 6cba ldr r2, [r7, #72] @ 0x48
  43652. 8012ce0: e841 2300 strex r3, r2, [r1]
  43653. 8012ce4: 643b str r3, [r7, #64] @ 0x40
  43654. return(result);
  43655. 8012ce6: 6c3b ldr r3, [r7, #64] @ 0x40
  43656. 8012ce8: 2b00 cmp r3, #0
  43657. 8012cea: d1e5 bne.n 8012cb8 <UART_Start_Receive_IT+0x160>
  43658. 8012cec: e046 b.n 8012d7c <UART_Start_Receive_IT+0x224>
  43659. }
  43660. else
  43661. {
  43662. /* Set the Rx ISR function pointer according to the data word length */
  43663. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  43664. 8012cee: 68fb ldr r3, [r7, #12]
  43665. 8012cf0: 689b ldr r3, [r3, #8]
  43666. 8012cf2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  43667. 8012cf6: d107 bne.n 8012d08 <UART_Start_Receive_IT+0x1b0>
  43668. 8012cf8: 68fb ldr r3, [r7, #12]
  43669. 8012cfa: 691b ldr r3, [r3, #16]
  43670. 8012cfc: 2b00 cmp r3, #0
  43671. 8012cfe: d103 bne.n 8012d08 <UART_Start_Receive_IT+0x1b0>
  43672. {
  43673. huart->RxISR = UART_RxISR_16BIT;
  43674. 8012d00: 68fb ldr r3, [r7, #12]
  43675. 8012d02: 4a24 ldr r2, [pc, #144] @ (8012d94 <UART_Start_Receive_IT+0x23c>)
  43676. 8012d04: 675a str r2, [r3, #116] @ 0x74
  43677. 8012d06: e002 b.n 8012d0e <UART_Start_Receive_IT+0x1b6>
  43678. }
  43679. else
  43680. {
  43681. huart->RxISR = UART_RxISR_8BIT;
  43682. 8012d08: 68fb ldr r3, [r7, #12]
  43683. 8012d0a: 4a23 ldr r2, [pc, #140] @ (8012d98 <UART_Start_Receive_IT+0x240>)
  43684. 8012d0c: 675a str r2, [r3, #116] @ 0x74
  43685. }
  43686. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  43687. if (huart->Init.Parity != UART_PARITY_NONE)
  43688. 8012d0e: 68fb ldr r3, [r7, #12]
  43689. 8012d10: 691b ldr r3, [r3, #16]
  43690. 8012d12: 2b00 cmp r3, #0
  43691. 8012d14: d019 beq.n 8012d4a <UART_Start_Receive_IT+0x1f2>
  43692. {
  43693. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  43694. 8012d16: 68fb ldr r3, [r7, #12]
  43695. 8012d18: 681b ldr r3, [r3, #0]
  43696. 8012d1a: 62bb str r3, [r7, #40] @ 0x28
  43697. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43698. 8012d1c: 6abb ldr r3, [r7, #40] @ 0x28
  43699. 8012d1e: e853 3f00 ldrex r3, [r3]
  43700. 8012d22: 627b str r3, [r7, #36] @ 0x24
  43701. return(result);
  43702. 8012d24: 6a7b ldr r3, [r7, #36] @ 0x24
  43703. 8012d26: f443 7390 orr.w r3, r3, #288 @ 0x120
  43704. 8012d2a: 677b str r3, [r7, #116] @ 0x74
  43705. 8012d2c: 68fb ldr r3, [r7, #12]
  43706. 8012d2e: 681b ldr r3, [r3, #0]
  43707. 8012d30: 461a mov r2, r3
  43708. 8012d32: 6f7b ldr r3, [r7, #116] @ 0x74
  43709. 8012d34: 637b str r3, [r7, #52] @ 0x34
  43710. 8012d36: 633a str r2, [r7, #48] @ 0x30
  43711. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43712. 8012d38: 6b39 ldr r1, [r7, #48] @ 0x30
  43713. 8012d3a: 6b7a ldr r2, [r7, #52] @ 0x34
  43714. 8012d3c: e841 2300 strex r3, r2, [r1]
  43715. 8012d40: 62fb str r3, [r7, #44] @ 0x2c
  43716. return(result);
  43717. 8012d42: 6afb ldr r3, [r7, #44] @ 0x2c
  43718. 8012d44: 2b00 cmp r3, #0
  43719. 8012d46: d1e6 bne.n 8012d16 <UART_Start_Receive_IT+0x1be>
  43720. 8012d48: e018 b.n 8012d7c <UART_Start_Receive_IT+0x224>
  43721. }
  43722. else
  43723. {
  43724. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  43725. 8012d4a: 68fb ldr r3, [r7, #12]
  43726. 8012d4c: 681b ldr r3, [r3, #0]
  43727. 8012d4e: 617b str r3, [r7, #20]
  43728. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43729. 8012d50: 697b ldr r3, [r7, #20]
  43730. 8012d52: e853 3f00 ldrex r3, [r3]
  43731. 8012d56: 613b str r3, [r7, #16]
  43732. return(result);
  43733. 8012d58: 693b ldr r3, [r7, #16]
  43734. 8012d5a: f043 0320 orr.w r3, r3, #32
  43735. 8012d5e: 67bb str r3, [r7, #120] @ 0x78
  43736. 8012d60: 68fb ldr r3, [r7, #12]
  43737. 8012d62: 681b ldr r3, [r3, #0]
  43738. 8012d64: 461a mov r2, r3
  43739. 8012d66: 6fbb ldr r3, [r7, #120] @ 0x78
  43740. 8012d68: 623b str r3, [r7, #32]
  43741. 8012d6a: 61fa str r2, [r7, #28]
  43742. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43743. 8012d6c: 69f9 ldr r1, [r7, #28]
  43744. 8012d6e: 6a3a ldr r2, [r7, #32]
  43745. 8012d70: e841 2300 strex r3, r2, [r1]
  43746. 8012d74: 61bb str r3, [r7, #24]
  43747. return(result);
  43748. 8012d76: 69bb ldr r3, [r7, #24]
  43749. 8012d78: 2b00 cmp r3, #0
  43750. 8012d7a: d1e6 bne.n 8012d4a <UART_Start_Receive_IT+0x1f2>
  43751. }
  43752. }
  43753. return HAL_OK;
  43754. 8012d7c: 2300 movs r3, #0
  43755. }
  43756. 8012d7e: 4618 mov r0, r3
  43757. 8012d80: 378c adds r7, #140 @ 0x8c
  43758. 8012d82: 46bd mov sp, r7
  43759. 8012d84: f85d 7b04 ldr.w r7, [sp], #4
  43760. 8012d88: 4770 bx lr
  43761. 8012d8a: bf00 nop
  43762. 8012d8c: 08013901 .word 0x08013901
  43763. 8012d90: 080135a1 .word 0x080135a1
  43764. 8012d94: 080133e9 .word 0x080133e9
  43765. 8012d98: 08013231 .word 0x08013231
  43766. 08012d9c <UART_EndRxTransfer>:
  43767. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  43768. * @param huart UART handle.
  43769. * @retval None
  43770. */
  43771. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  43772. {
  43773. 8012d9c: b480 push {r7}
  43774. 8012d9e: b095 sub sp, #84 @ 0x54
  43775. 8012da0: af00 add r7, sp, #0
  43776. 8012da2: 6078 str r0, [r7, #4]
  43777. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  43778. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43779. 8012da4: 687b ldr r3, [r7, #4]
  43780. 8012da6: 681b ldr r3, [r3, #0]
  43781. 8012da8: 637b str r3, [r7, #52] @ 0x34
  43782. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43783. 8012daa: 6b7b ldr r3, [r7, #52] @ 0x34
  43784. 8012dac: e853 3f00 ldrex r3, [r3]
  43785. 8012db0: 633b str r3, [r7, #48] @ 0x30
  43786. return(result);
  43787. 8012db2: 6b3b ldr r3, [r7, #48] @ 0x30
  43788. 8012db4: f423 7390 bic.w r3, r3, #288 @ 0x120
  43789. 8012db8: 64fb str r3, [r7, #76] @ 0x4c
  43790. 8012dba: 687b ldr r3, [r7, #4]
  43791. 8012dbc: 681b ldr r3, [r3, #0]
  43792. 8012dbe: 461a mov r2, r3
  43793. 8012dc0: 6cfb ldr r3, [r7, #76] @ 0x4c
  43794. 8012dc2: 643b str r3, [r7, #64] @ 0x40
  43795. 8012dc4: 63fa str r2, [r7, #60] @ 0x3c
  43796. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43797. 8012dc6: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43798. 8012dc8: 6c3a ldr r2, [r7, #64] @ 0x40
  43799. 8012dca: e841 2300 strex r3, r2, [r1]
  43800. 8012dce: 63bb str r3, [r7, #56] @ 0x38
  43801. return(result);
  43802. 8012dd0: 6bbb ldr r3, [r7, #56] @ 0x38
  43803. 8012dd2: 2b00 cmp r3, #0
  43804. 8012dd4: d1e6 bne.n 8012da4 <UART_EndRxTransfer+0x8>
  43805. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  43806. 8012dd6: 687b ldr r3, [r7, #4]
  43807. 8012dd8: 681b ldr r3, [r3, #0]
  43808. 8012dda: 3308 adds r3, #8
  43809. 8012ddc: 623b str r3, [r7, #32]
  43810. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43811. 8012dde: 6a3b ldr r3, [r7, #32]
  43812. 8012de0: e853 3f00 ldrex r3, [r3]
  43813. 8012de4: 61fb str r3, [r7, #28]
  43814. return(result);
  43815. 8012de6: 69fa ldr r2, [r7, #28]
  43816. 8012de8: 4b1e ldr r3, [pc, #120] @ (8012e64 <UART_EndRxTransfer+0xc8>)
  43817. 8012dea: 4013 ands r3, r2
  43818. 8012dec: 64bb str r3, [r7, #72] @ 0x48
  43819. 8012dee: 687b ldr r3, [r7, #4]
  43820. 8012df0: 681b ldr r3, [r3, #0]
  43821. 8012df2: 3308 adds r3, #8
  43822. 8012df4: 6cba ldr r2, [r7, #72] @ 0x48
  43823. 8012df6: 62fa str r2, [r7, #44] @ 0x2c
  43824. 8012df8: 62bb str r3, [r7, #40] @ 0x28
  43825. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43826. 8012dfa: 6ab9 ldr r1, [r7, #40] @ 0x28
  43827. 8012dfc: 6afa ldr r2, [r7, #44] @ 0x2c
  43828. 8012dfe: e841 2300 strex r3, r2, [r1]
  43829. 8012e02: 627b str r3, [r7, #36] @ 0x24
  43830. return(result);
  43831. 8012e04: 6a7b ldr r3, [r7, #36] @ 0x24
  43832. 8012e06: 2b00 cmp r3, #0
  43833. 8012e08: d1e5 bne.n 8012dd6 <UART_EndRxTransfer+0x3a>
  43834. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  43835. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43836. 8012e0a: 687b ldr r3, [r7, #4]
  43837. 8012e0c: 6edb ldr r3, [r3, #108] @ 0x6c
  43838. 8012e0e: 2b01 cmp r3, #1
  43839. 8012e10: d118 bne.n 8012e44 <UART_EndRxTransfer+0xa8>
  43840. {
  43841. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43842. 8012e12: 687b ldr r3, [r7, #4]
  43843. 8012e14: 681b ldr r3, [r3, #0]
  43844. 8012e16: 60fb str r3, [r7, #12]
  43845. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43846. 8012e18: 68fb ldr r3, [r7, #12]
  43847. 8012e1a: e853 3f00 ldrex r3, [r3]
  43848. 8012e1e: 60bb str r3, [r7, #8]
  43849. return(result);
  43850. 8012e20: 68bb ldr r3, [r7, #8]
  43851. 8012e22: f023 0310 bic.w r3, r3, #16
  43852. 8012e26: 647b str r3, [r7, #68] @ 0x44
  43853. 8012e28: 687b ldr r3, [r7, #4]
  43854. 8012e2a: 681b ldr r3, [r3, #0]
  43855. 8012e2c: 461a mov r2, r3
  43856. 8012e2e: 6c7b ldr r3, [r7, #68] @ 0x44
  43857. 8012e30: 61bb str r3, [r7, #24]
  43858. 8012e32: 617a str r2, [r7, #20]
  43859. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43860. 8012e34: 6979 ldr r1, [r7, #20]
  43861. 8012e36: 69ba ldr r2, [r7, #24]
  43862. 8012e38: e841 2300 strex r3, r2, [r1]
  43863. 8012e3c: 613b str r3, [r7, #16]
  43864. return(result);
  43865. 8012e3e: 693b ldr r3, [r7, #16]
  43866. 8012e40: 2b00 cmp r3, #0
  43867. 8012e42: d1e6 bne.n 8012e12 <UART_EndRxTransfer+0x76>
  43868. }
  43869. /* At end of Rx process, restore huart->RxState to Ready */
  43870. huart->RxState = HAL_UART_STATE_READY;
  43871. 8012e44: 687b ldr r3, [r7, #4]
  43872. 8012e46: 2220 movs r2, #32
  43873. 8012e48: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43874. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43875. 8012e4c: 687b ldr r3, [r7, #4]
  43876. 8012e4e: 2200 movs r2, #0
  43877. 8012e50: 66da str r2, [r3, #108] @ 0x6c
  43878. /* Reset RxIsr function pointer */
  43879. huart->RxISR = NULL;
  43880. 8012e52: 687b ldr r3, [r7, #4]
  43881. 8012e54: 2200 movs r2, #0
  43882. 8012e56: 675a str r2, [r3, #116] @ 0x74
  43883. }
  43884. 8012e58: bf00 nop
  43885. 8012e5a: 3754 adds r7, #84 @ 0x54
  43886. 8012e5c: 46bd mov sp, r7
  43887. 8012e5e: f85d 7b04 ldr.w r7, [sp], #4
  43888. 8012e62: 4770 bx lr
  43889. 8012e64: effffffe .word 0xeffffffe
  43890. 08012e68 <UART_DMAAbortOnError>:
  43891. * (To be called at end of DMA Abort procedure following error occurrence).
  43892. * @param hdma DMA handle.
  43893. * @retval None
  43894. */
  43895. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  43896. {
  43897. 8012e68: b580 push {r7, lr}
  43898. 8012e6a: b084 sub sp, #16
  43899. 8012e6c: af00 add r7, sp, #0
  43900. 8012e6e: 6078 str r0, [r7, #4]
  43901. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  43902. 8012e70: 687b ldr r3, [r7, #4]
  43903. 8012e72: 6b9b ldr r3, [r3, #56] @ 0x38
  43904. 8012e74: 60fb str r3, [r7, #12]
  43905. huart->RxXferCount = 0U;
  43906. 8012e76: 68fb ldr r3, [r7, #12]
  43907. 8012e78: 2200 movs r2, #0
  43908. 8012e7a: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43909. huart->TxXferCount = 0U;
  43910. 8012e7e: 68fb ldr r3, [r7, #12]
  43911. 8012e80: 2200 movs r2, #0
  43912. 8012e82: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  43913. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43914. /*Call registered error callback*/
  43915. huart->ErrorCallback(huart);
  43916. #else
  43917. /*Call legacy weak error callback*/
  43918. HAL_UART_ErrorCallback(huart);
  43919. 8012e86: 68f8 ldr r0, [r7, #12]
  43920. 8012e88: f7fe ff3a bl 8011d00 <HAL_UART_ErrorCallback>
  43921. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43922. }
  43923. 8012e8c: bf00 nop
  43924. 8012e8e: 3710 adds r7, #16
  43925. 8012e90: 46bd mov sp, r7
  43926. 8012e92: bd80 pop {r7, pc}
  43927. 08012e94 <UART_TxISR_8BIT>:
  43928. * interruptions have been enabled by HAL_UART_Transmit_IT().
  43929. * @param huart UART handle.
  43930. * @retval None
  43931. */
  43932. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  43933. {
  43934. 8012e94: b480 push {r7}
  43935. 8012e96: b08f sub sp, #60 @ 0x3c
  43936. 8012e98: af00 add r7, sp, #0
  43937. 8012e9a: 6078 str r0, [r7, #4]
  43938. /* Check that a Tx process is ongoing */
  43939. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  43940. 8012e9c: 687b ldr r3, [r7, #4]
  43941. 8012e9e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  43942. 8012ea2: 2b21 cmp r3, #33 @ 0x21
  43943. 8012ea4: d14c bne.n 8012f40 <UART_TxISR_8BIT+0xac>
  43944. {
  43945. if (huart->TxXferCount == 0U)
  43946. 8012ea6: 687b ldr r3, [r7, #4]
  43947. 8012ea8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  43948. 8012eac: b29b uxth r3, r3
  43949. 8012eae: 2b00 cmp r3, #0
  43950. 8012eb0: d132 bne.n 8012f18 <UART_TxISR_8BIT+0x84>
  43951. {
  43952. /* Disable the UART Transmit Data Register Empty Interrupt */
  43953. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  43954. 8012eb2: 687b ldr r3, [r7, #4]
  43955. 8012eb4: 681b ldr r3, [r3, #0]
  43956. 8012eb6: 623b str r3, [r7, #32]
  43957. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43958. 8012eb8: 6a3b ldr r3, [r7, #32]
  43959. 8012eba: e853 3f00 ldrex r3, [r3]
  43960. 8012ebe: 61fb str r3, [r7, #28]
  43961. return(result);
  43962. 8012ec0: 69fb ldr r3, [r7, #28]
  43963. 8012ec2: f023 0380 bic.w r3, r3, #128 @ 0x80
  43964. 8012ec6: 637b str r3, [r7, #52] @ 0x34
  43965. 8012ec8: 687b ldr r3, [r7, #4]
  43966. 8012eca: 681b ldr r3, [r3, #0]
  43967. 8012ecc: 461a mov r2, r3
  43968. 8012ece: 6b7b ldr r3, [r7, #52] @ 0x34
  43969. 8012ed0: 62fb str r3, [r7, #44] @ 0x2c
  43970. 8012ed2: 62ba str r2, [r7, #40] @ 0x28
  43971. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43972. 8012ed4: 6ab9 ldr r1, [r7, #40] @ 0x28
  43973. 8012ed6: 6afa ldr r2, [r7, #44] @ 0x2c
  43974. 8012ed8: e841 2300 strex r3, r2, [r1]
  43975. 8012edc: 627b str r3, [r7, #36] @ 0x24
  43976. return(result);
  43977. 8012ede: 6a7b ldr r3, [r7, #36] @ 0x24
  43978. 8012ee0: 2b00 cmp r3, #0
  43979. 8012ee2: d1e6 bne.n 8012eb2 <UART_TxISR_8BIT+0x1e>
  43980. /* Enable the UART Transmit Complete Interrupt */
  43981. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  43982. 8012ee4: 687b ldr r3, [r7, #4]
  43983. 8012ee6: 681b ldr r3, [r3, #0]
  43984. 8012ee8: 60fb str r3, [r7, #12]
  43985. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43986. 8012eea: 68fb ldr r3, [r7, #12]
  43987. 8012eec: e853 3f00 ldrex r3, [r3]
  43988. 8012ef0: 60bb str r3, [r7, #8]
  43989. return(result);
  43990. 8012ef2: 68bb ldr r3, [r7, #8]
  43991. 8012ef4: f043 0340 orr.w r3, r3, #64 @ 0x40
  43992. 8012ef8: 633b str r3, [r7, #48] @ 0x30
  43993. 8012efa: 687b ldr r3, [r7, #4]
  43994. 8012efc: 681b ldr r3, [r3, #0]
  43995. 8012efe: 461a mov r2, r3
  43996. 8012f00: 6b3b ldr r3, [r7, #48] @ 0x30
  43997. 8012f02: 61bb str r3, [r7, #24]
  43998. 8012f04: 617a str r2, [r7, #20]
  43999. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44000. 8012f06: 6979 ldr r1, [r7, #20]
  44001. 8012f08: 69ba ldr r2, [r7, #24]
  44002. 8012f0a: e841 2300 strex r3, r2, [r1]
  44003. 8012f0e: 613b str r3, [r7, #16]
  44004. return(result);
  44005. 8012f10: 693b ldr r3, [r7, #16]
  44006. 8012f12: 2b00 cmp r3, #0
  44007. 8012f14: d1e6 bne.n 8012ee4 <UART_TxISR_8BIT+0x50>
  44008. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44009. huart->pTxBuffPtr++;
  44010. huart->TxXferCount--;
  44011. }
  44012. }
  44013. }
  44014. 8012f16: e013 b.n 8012f40 <UART_TxISR_8BIT+0xac>
  44015. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44016. 8012f18: 687b ldr r3, [r7, #4]
  44017. 8012f1a: 6d1b ldr r3, [r3, #80] @ 0x50
  44018. 8012f1c: 781a ldrb r2, [r3, #0]
  44019. 8012f1e: 687b ldr r3, [r7, #4]
  44020. 8012f20: 681b ldr r3, [r3, #0]
  44021. 8012f22: 629a str r2, [r3, #40] @ 0x28
  44022. huart->pTxBuffPtr++;
  44023. 8012f24: 687b ldr r3, [r7, #4]
  44024. 8012f26: 6d1b ldr r3, [r3, #80] @ 0x50
  44025. 8012f28: 1c5a adds r2, r3, #1
  44026. 8012f2a: 687b ldr r3, [r7, #4]
  44027. 8012f2c: 651a str r2, [r3, #80] @ 0x50
  44028. huart->TxXferCount--;
  44029. 8012f2e: 687b ldr r3, [r7, #4]
  44030. 8012f30: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44031. 8012f34: b29b uxth r3, r3
  44032. 8012f36: 3b01 subs r3, #1
  44033. 8012f38: b29a uxth r2, r3
  44034. 8012f3a: 687b ldr r3, [r7, #4]
  44035. 8012f3c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44036. }
  44037. 8012f40: bf00 nop
  44038. 8012f42: 373c adds r7, #60 @ 0x3c
  44039. 8012f44: 46bd mov sp, r7
  44040. 8012f46: f85d 7b04 ldr.w r7, [sp], #4
  44041. 8012f4a: 4770 bx lr
  44042. 08012f4c <UART_TxISR_16BIT>:
  44043. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44044. * @param huart UART handle.
  44045. * @retval None
  44046. */
  44047. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  44048. {
  44049. 8012f4c: b480 push {r7}
  44050. 8012f4e: b091 sub sp, #68 @ 0x44
  44051. 8012f50: af00 add r7, sp, #0
  44052. 8012f52: 6078 str r0, [r7, #4]
  44053. const uint16_t *tmp;
  44054. /* Check that a Tx process is ongoing */
  44055. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44056. 8012f54: 687b ldr r3, [r7, #4]
  44057. 8012f56: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44058. 8012f5a: 2b21 cmp r3, #33 @ 0x21
  44059. 8012f5c: d151 bne.n 8013002 <UART_TxISR_16BIT+0xb6>
  44060. {
  44061. if (huart->TxXferCount == 0U)
  44062. 8012f5e: 687b ldr r3, [r7, #4]
  44063. 8012f60: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44064. 8012f64: b29b uxth r3, r3
  44065. 8012f66: 2b00 cmp r3, #0
  44066. 8012f68: d132 bne.n 8012fd0 <UART_TxISR_16BIT+0x84>
  44067. {
  44068. /* Disable the UART Transmit Data Register Empty Interrupt */
  44069. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  44070. 8012f6a: 687b ldr r3, [r7, #4]
  44071. 8012f6c: 681b ldr r3, [r3, #0]
  44072. 8012f6e: 627b str r3, [r7, #36] @ 0x24
  44073. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44074. 8012f70: 6a7b ldr r3, [r7, #36] @ 0x24
  44075. 8012f72: e853 3f00 ldrex r3, [r3]
  44076. 8012f76: 623b str r3, [r7, #32]
  44077. return(result);
  44078. 8012f78: 6a3b ldr r3, [r7, #32]
  44079. 8012f7a: f023 0380 bic.w r3, r3, #128 @ 0x80
  44080. 8012f7e: 63bb str r3, [r7, #56] @ 0x38
  44081. 8012f80: 687b ldr r3, [r7, #4]
  44082. 8012f82: 681b ldr r3, [r3, #0]
  44083. 8012f84: 461a mov r2, r3
  44084. 8012f86: 6bbb ldr r3, [r7, #56] @ 0x38
  44085. 8012f88: 633b str r3, [r7, #48] @ 0x30
  44086. 8012f8a: 62fa str r2, [r7, #44] @ 0x2c
  44087. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44088. 8012f8c: 6af9 ldr r1, [r7, #44] @ 0x2c
  44089. 8012f8e: 6b3a ldr r2, [r7, #48] @ 0x30
  44090. 8012f90: e841 2300 strex r3, r2, [r1]
  44091. 8012f94: 62bb str r3, [r7, #40] @ 0x28
  44092. return(result);
  44093. 8012f96: 6abb ldr r3, [r7, #40] @ 0x28
  44094. 8012f98: 2b00 cmp r3, #0
  44095. 8012f9a: d1e6 bne.n 8012f6a <UART_TxISR_16BIT+0x1e>
  44096. /* Enable the UART Transmit Complete Interrupt */
  44097. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44098. 8012f9c: 687b ldr r3, [r7, #4]
  44099. 8012f9e: 681b ldr r3, [r3, #0]
  44100. 8012fa0: 613b str r3, [r7, #16]
  44101. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44102. 8012fa2: 693b ldr r3, [r7, #16]
  44103. 8012fa4: e853 3f00 ldrex r3, [r3]
  44104. 8012fa8: 60fb str r3, [r7, #12]
  44105. return(result);
  44106. 8012faa: 68fb ldr r3, [r7, #12]
  44107. 8012fac: f043 0340 orr.w r3, r3, #64 @ 0x40
  44108. 8012fb0: 637b str r3, [r7, #52] @ 0x34
  44109. 8012fb2: 687b ldr r3, [r7, #4]
  44110. 8012fb4: 681b ldr r3, [r3, #0]
  44111. 8012fb6: 461a mov r2, r3
  44112. 8012fb8: 6b7b ldr r3, [r7, #52] @ 0x34
  44113. 8012fba: 61fb str r3, [r7, #28]
  44114. 8012fbc: 61ba str r2, [r7, #24]
  44115. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44116. 8012fbe: 69b9 ldr r1, [r7, #24]
  44117. 8012fc0: 69fa ldr r2, [r7, #28]
  44118. 8012fc2: e841 2300 strex r3, r2, [r1]
  44119. 8012fc6: 617b str r3, [r7, #20]
  44120. return(result);
  44121. 8012fc8: 697b ldr r3, [r7, #20]
  44122. 8012fca: 2b00 cmp r3, #0
  44123. 8012fcc: d1e6 bne.n 8012f9c <UART_TxISR_16BIT+0x50>
  44124. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44125. huart->pTxBuffPtr += 2U;
  44126. huart->TxXferCount--;
  44127. }
  44128. }
  44129. }
  44130. 8012fce: e018 b.n 8013002 <UART_TxISR_16BIT+0xb6>
  44131. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44132. 8012fd0: 687b ldr r3, [r7, #4]
  44133. 8012fd2: 6d1b ldr r3, [r3, #80] @ 0x50
  44134. 8012fd4: 63fb str r3, [r7, #60] @ 0x3c
  44135. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44136. 8012fd6: 6bfb ldr r3, [r7, #60] @ 0x3c
  44137. 8012fd8: 881b ldrh r3, [r3, #0]
  44138. 8012fda: 461a mov r2, r3
  44139. 8012fdc: 687b ldr r3, [r7, #4]
  44140. 8012fde: 681b ldr r3, [r3, #0]
  44141. 8012fe0: f3c2 0208 ubfx r2, r2, #0, #9
  44142. 8012fe4: 629a str r2, [r3, #40] @ 0x28
  44143. huart->pTxBuffPtr += 2U;
  44144. 8012fe6: 687b ldr r3, [r7, #4]
  44145. 8012fe8: 6d1b ldr r3, [r3, #80] @ 0x50
  44146. 8012fea: 1c9a adds r2, r3, #2
  44147. 8012fec: 687b ldr r3, [r7, #4]
  44148. 8012fee: 651a str r2, [r3, #80] @ 0x50
  44149. huart->TxXferCount--;
  44150. 8012ff0: 687b ldr r3, [r7, #4]
  44151. 8012ff2: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44152. 8012ff6: b29b uxth r3, r3
  44153. 8012ff8: 3b01 subs r3, #1
  44154. 8012ffa: b29a uxth r2, r3
  44155. 8012ffc: 687b ldr r3, [r7, #4]
  44156. 8012ffe: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44157. }
  44158. 8013002: bf00 nop
  44159. 8013004: 3744 adds r7, #68 @ 0x44
  44160. 8013006: 46bd mov sp, r7
  44161. 8013008: f85d 7b04 ldr.w r7, [sp], #4
  44162. 801300c: 4770 bx lr
  44163. 0801300e <UART_TxISR_8BIT_FIFOEN>:
  44164. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44165. * @param huart UART handle.
  44166. * @retval None
  44167. */
  44168. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  44169. {
  44170. 801300e: b480 push {r7}
  44171. 8013010: b091 sub sp, #68 @ 0x44
  44172. 8013012: af00 add r7, sp, #0
  44173. 8013014: 6078 str r0, [r7, #4]
  44174. uint16_t nb_tx_data;
  44175. /* Check that a Tx process is ongoing */
  44176. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44177. 8013016: 687b ldr r3, [r7, #4]
  44178. 8013018: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44179. 801301c: 2b21 cmp r3, #33 @ 0x21
  44180. 801301e: d160 bne.n 80130e2 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44181. {
  44182. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44183. 8013020: 687b ldr r3, [r7, #4]
  44184. 8013022: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44185. 8013026: 87fb strh r3, [r7, #62] @ 0x3e
  44186. 8013028: e057 b.n 80130da <UART_TxISR_8BIT_FIFOEN+0xcc>
  44187. {
  44188. if (huart->TxXferCount == 0U)
  44189. 801302a: 687b ldr r3, [r7, #4]
  44190. 801302c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44191. 8013030: b29b uxth r3, r3
  44192. 8013032: 2b00 cmp r3, #0
  44193. 8013034: d133 bne.n 801309e <UART_TxISR_8BIT_FIFOEN+0x90>
  44194. {
  44195. /* Disable the TX FIFO threshold interrupt */
  44196. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44197. 8013036: 687b ldr r3, [r7, #4]
  44198. 8013038: 681b ldr r3, [r3, #0]
  44199. 801303a: 3308 adds r3, #8
  44200. 801303c: 627b str r3, [r7, #36] @ 0x24
  44201. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44202. 801303e: 6a7b ldr r3, [r7, #36] @ 0x24
  44203. 8013040: e853 3f00 ldrex r3, [r3]
  44204. 8013044: 623b str r3, [r7, #32]
  44205. return(result);
  44206. 8013046: 6a3b ldr r3, [r7, #32]
  44207. 8013048: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44208. 801304c: 63bb str r3, [r7, #56] @ 0x38
  44209. 801304e: 687b ldr r3, [r7, #4]
  44210. 8013050: 681b ldr r3, [r3, #0]
  44211. 8013052: 3308 adds r3, #8
  44212. 8013054: 6bba ldr r2, [r7, #56] @ 0x38
  44213. 8013056: 633a str r2, [r7, #48] @ 0x30
  44214. 8013058: 62fb str r3, [r7, #44] @ 0x2c
  44215. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44216. 801305a: 6af9 ldr r1, [r7, #44] @ 0x2c
  44217. 801305c: 6b3a ldr r2, [r7, #48] @ 0x30
  44218. 801305e: e841 2300 strex r3, r2, [r1]
  44219. 8013062: 62bb str r3, [r7, #40] @ 0x28
  44220. return(result);
  44221. 8013064: 6abb ldr r3, [r7, #40] @ 0x28
  44222. 8013066: 2b00 cmp r3, #0
  44223. 8013068: d1e5 bne.n 8013036 <UART_TxISR_8BIT_FIFOEN+0x28>
  44224. /* Enable the UART Transmit Complete Interrupt */
  44225. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44226. 801306a: 687b ldr r3, [r7, #4]
  44227. 801306c: 681b ldr r3, [r3, #0]
  44228. 801306e: 613b str r3, [r7, #16]
  44229. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44230. 8013070: 693b ldr r3, [r7, #16]
  44231. 8013072: e853 3f00 ldrex r3, [r3]
  44232. 8013076: 60fb str r3, [r7, #12]
  44233. return(result);
  44234. 8013078: 68fb ldr r3, [r7, #12]
  44235. 801307a: f043 0340 orr.w r3, r3, #64 @ 0x40
  44236. 801307e: 637b str r3, [r7, #52] @ 0x34
  44237. 8013080: 687b ldr r3, [r7, #4]
  44238. 8013082: 681b ldr r3, [r3, #0]
  44239. 8013084: 461a mov r2, r3
  44240. 8013086: 6b7b ldr r3, [r7, #52] @ 0x34
  44241. 8013088: 61fb str r3, [r7, #28]
  44242. 801308a: 61ba str r2, [r7, #24]
  44243. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44244. 801308c: 69b9 ldr r1, [r7, #24]
  44245. 801308e: 69fa ldr r2, [r7, #28]
  44246. 8013090: e841 2300 strex r3, r2, [r1]
  44247. 8013094: 617b str r3, [r7, #20]
  44248. return(result);
  44249. 8013096: 697b ldr r3, [r7, #20]
  44250. 8013098: 2b00 cmp r3, #0
  44251. 801309a: d1e6 bne.n 801306a <UART_TxISR_8BIT_FIFOEN+0x5c>
  44252. break; /* force exit loop */
  44253. 801309c: e021 b.n 80130e2 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44254. }
  44255. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44256. 801309e: 687b ldr r3, [r7, #4]
  44257. 80130a0: 681b ldr r3, [r3, #0]
  44258. 80130a2: 69db ldr r3, [r3, #28]
  44259. 80130a4: f003 0380 and.w r3, r3, #128 @ 0x80
  44260. 80130a8: 2b00 cmp r3, #0
  44261. 80130aa: d013 beq.n 80130d4 <UART_TxISR_8BIT_FIFOEN+0xc6>
  44262. {
  44263. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  44264. 80130ac: 687b ldr r3, [r7, #4]
  44265. 80130ae: 6d1b ldr r3, [r3, #80] @ 0x50
  44266. 80130b0: 781a ldrb r2, [r3, #0]
  44267. 80130b2: 687b ldr r3, [r7, #4]
  44268. 80130b4: 681b ldr r3, [r3, #0]
  44269. 80130b6: 629a str r2, [r3, #40] @ 0x28
  44270. huart->pTxBuffPtr++;
  44271. 80130b8: 687b ldr r3, [r7, #4]
  44272. 80130ba: 6d1b ldr r3, [r3, #80] @ 0x50
  44273. 80130bc: 1c5a adds r2, r3, #1
  44274. 80130be: 687b ldr r3, [r7, #4]
  44275. 80130c0: 651a str r2, [r3, #80] @ 0x50
  44276. huart->TxXferCount--;
  44277. 80130c2: 687b ldr r3, [r7, #4]
  44278. 80130c4: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44279. 80130c8: b29b uxth r3, r3
  44280. 80130ca: 3b01 subs r3, #1
  44281. 80130cc: b29a uxth r2, r3
  44282. 80130ce: 687b ldr r3, [r7, #4]
  44283. 80130d0: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44284. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44285. 80130d4: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44286. 80130d6: 3b01 subs r3, #1
  44287. 80130d8: 87fb strh r3, [r7, #62] @ 0x3e
  44288. 80130da: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44289. 80130dc: 2b00 cmp r3, #0
  44290. 80130de: d1a4 bne.n 801302a <UART_TxISR_8BIT_FIFOEN+0x1c>
  44291. {
  44292. /* Nothing to do */
  44293. }
  44294. }
  44295. }
  44296. }
  44297. 80130e0: e7ff b.n 80130e2 <UART_TxISR_8BIT_FIFOEN+0xd4>
  44298. 80130e2: bf00 nop
  44299. 80130e4: 3744 adds r7, #68 @ 0x44
  44300. 80130e6: 46bd mov sp, r7
  44301. 80130e8: f85d 7b04 ldr.w r7, [sp], #4
  44302. 80130ec: 4770 bx lr
  44303. 080130ee <UART_TxISR_16BIT_FIFOEN>:
  44304. * interruptions have been enabled by HAL_UART_Transmit_IT().
  44305. * @param huart UART handle.
  44306. * @retval None
  44307. */
  44308. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  44309. {
  44310. 80130ee: b480 push {r7}
  44311. 80130f0: b091 sub sp, #68 @ 0x44
  44312. 80130f2: af00 add r7, sp, #0
  44313. 80130f4: 6078 str r0, [r7, #4]
  44314. const uint16_t *tmp;
  44315. uint16_t nb_tx_data;
  44316. /* Check that a Tx process is ongoing */
  44317. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  44318. 80130f6: 687b ldr r3, [r7, #4]
  44319. 80130f8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  44320. 80130fc: 2b21 cmp r3, #33 @ 0x21
  44321. 80130fe: d165 bne.n 80131cc <UART_TxISR_16BIT_FIFOEN+0xde>
  44322. {
  44323. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44324. 8013100: 687b ldr r3, [r7, #4]
  44325. 8013102: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  44326. 8013106: 87fb strh r3, [r7, #62] @ 0x3e
  44327. 8013108: e05c b.n 80131c4 <UART_TxISR_16BIT_FIFOEN+0xd6>
  44328. {
  44329. if (huart->TxXferCount == 0U)
  44330. 801310a: 687b ldr r3, [r7, #4]
  44331. 801310c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44332. 8013110: b29b uxth r3, r3
  44333. 8013112: 2b00 cmp r3, #0
  44334. 8013114: d133 bne.n 801317e <UART_TxISR_16BIT_FIFOEN+0x90>
  44335. {
  44336. /* Disable the TX FIFO threshold interrupt */
  44337. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  44338. 8013116: 687b ldr r3, [r7, #4]
  44339. 8013118: 681b ldr r3, [r3, #0]
  44340. 801311a: 3308 adds r3, #8
  44341. 801311c: 623b str r3, [r7, #32]
  44342. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44343. 801311e: 6a3b ldr r3, [r7, #32]
  44344. 8013120: e853 3f00 ldrex r3, [r3]
  44345. 8013124: 61fb str r3, [r7, #28]
  44346. return(result);
  44347. 8013126: 69fb ldr r3, [r7, #28]
  44348. 8013128: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  44349. 801312c: 637b str r3, [r7, #52] @ 0x34
  44350. 801312e: 687b ldr r3, [r7, #4]
  44351. 8013130: 681b ldr r3, [r3, #0]
  44352. 8013132: 3308 adds r3, #8
  44353. 8013134: 6b7a ldr r2, [r7, #52] @ 0x34
  44354. 8013136: 62fa str r2, [r7, #44] @ 0x2c
  44355. 8013138: 62bb str r3, [r7, #40] @ 0x28
  44356. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44357. 801313a: 6ab9 ldr r1, [r7, #40] @ 0x28
  44358. 801313c: 6afa ldr r2, [r7, #44] @ 0x2c
  44359. 801313e: e841 2300 strex r3, r2, [r1]
  44360. 8013142: 627b str r3, [r7, #36] @ 0x24
  44361. return(result);
  44362. 8013144: 6a7b ldr r3, [r7, #36] @ 0x24
  44363. 8013146: 2b00 cmp r3, #0
  44364. 8013148: d1e5 bne.n 8013116 <UART_TxISR_16BIT_FIFOEN+0x28>
  44365. /* Enable the UART Transmit Complete Interrupt */
  44366. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44367. 801314a: 687b ldr r3, [r7, #4]
  44368. 801314c: 681b ldr r3, [r3, #0]
  44369. 801314e: 60fb str r3, [r7, #12]
  44370. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44371. 8013150: 68fb ldr r3, [r7, #12]
  44372. 8013152: e853 3f00 ldrex r3, [r3]
  44373. 8013156: 60bb str r3, [r7, #8]
  44374. return(result);
  44375. 8013158: 68bb ldr r3, [r7, #8]
  44376. 801315a: f043 0340 orr.w r3, r3, #64 @ 0x40
  44377. 801315e: 633b str r3, [r7, #48] @ 0x30
  44378. 8013160: 687b ldr r3, [r7, #4]
  44379. 8013162: 681b ldr r3, [r3, #0]
  44380. 8013164: 461a mov r2, r3
  44381. 8013166: 6b3b ldr r3, [r7, #48] @ 0x30
  44382. 8013168: 61bb str r3, [r7, #24]
  44383. 801316a: 617a str r2, [r7, #20]
  44384. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44385. 801316c: 6979 ldr r1, [r7, #20]
  44386. 801316e: 69ba ldr r2, [r7, #24]
  44387. 8013170: e841 2300 strex r3, r2, [r1]
  44388. 8013174: 613b str r3, [r7, #16]
  44389. return(result);
  44390. 8013176: 693b ldr r3, [r7, #16]
  44391. 8013178: 2b00 cmp r3, #0
  44392. 801317a: d1e6 bne.n 801314a <UART_TxISR_16BIT_FIFOEN+0x5c>
  44393. break; /* force exit loop */
  44394. 801317c: e026 b.n 80131cc <UART_TxISR_16BIT_FIFOEN+0xde>
  44395. }
  44396. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  44397. 801317e: 687b ldr r3, [r7, #4]
  44398. 8013180: 681b ldr r3, [r3, #0]
  44399. 8013182: 69db ldr r3, [r3, #28]
  44400. 8013184: f003 0380 and.w r3, r3, #128 @ 0x80
  44401. 8013188: 2b00 cmp r3, #0
  44402. 801318a: d018 beq.n 80131be <UART_TxISR_16BIT_FIFOEN+0xd0>
  44403. {
  44404. tmp = (const uint16_t *) huart->pTxBuffPtr;
  44405. 801318c: 687b ldr r3, [r7, #4]
  44406. 801318e: 6d1b ldr r3, [r3, #80] @ 0x50
  44407. 8013190: 63bb str r3, [r7, #56] @ 0x38
  44408. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  44409. 8013192: 6bbb ldr r3, [r7, #56] @ 0x38
  44410. 8013194: 881b ldrh r3, [r3, #0]
  44411. 8013196: 461a mov r2, r3
  44412. 8013198: 687b ldr r3, [r7, #4]
  44413. 801319a: 681b ldr r3, [r3, #0]
  44414. 801319c: f3c2 0208 ubfx r2, r2, #0, #9
  44415. 80131a0: 629a str r2, [r3, #40] @ 0x28
  44416. huart->pTxBuffPtr += 2U;
  44417. 80131a2: 687b ldr r3, [r7, #4]
  44418. 80131a4: 6d1b ldr r3, [r3, #80] @ 0x50
  44419. 80131a6: 1c9a adds r2, r3, #2
  44420. 80131a8: 687b ldr r3, [r7, #4]
  44421. 80131aa: 651a str r2, [r3, #80] @ 0x50
  44422. huart->TxXferCount--;
  44423. 80131ac: 687b ldr r3, [r7, #4]
  44424. 80131ae: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  44425. 80131b2: b29b uxth r3, r3
  44426. 80131b4: 3b01 subs r3, #1
  44427. 80131b6: b29a uxth r2, r3
  44428. 80131b8: 687b ldr r3, [r7, #4]
  44429. 80131ba: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  44430. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  44431. 80131be: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44432. 80131c0: 3b01 subs r3, #1
  44433. 80131c2: 87fb strh r3, [r7, #62] @ 0x3e
  44434. 80131c4: 8ffb ldrh r3, [r7, #62] @ 0x3e
  44435. 80131c6: 2b00 cmp r3, #0
  44436. 80131c8: d19f bne.n 801310a <UART_TxISR_16BIT_FIFOEN+0x1c>
  44437. {
  44438. /* Nothing to do */
  44439. }
  44440. }
  44441. }
  44442. }
  44443. 80131ca: e7ff b.n 80131cc <UART_TxISR_16BIT_FIFOEN+0xde>
  44444. 80131cc: bf00 nop
  44445. 80131ce: 3744 adds r7, #68 @ 0x44
  44446. 80131d0: 46bd mov sp, r7
  44447. 80131d2: f85d 7b04 ldr.w r7, [sp], #4
  44448. 80131d6: 4770 bx lr
  44449. 080131d8 <UART_EndTransmit_IT>:
  44450. * @param huart pointer to a UART_HandleTypeDef structure that contains
  44451. * the configuration information for the specified UART module.
  44452. * @retval None
  44453. */
  44454. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  44455. {
  44456. 80131d8: b580 push {r7, lr}
  44457. 80131da: b088 sub sp, #32
  44458. 80131dc: af00 add r7, sp, #0
  44459. 80131de: 6078 str r0, [r7, #4]
  44460. /* Disable the UART Transmit Complete Interrupt */
  44461. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  44462. 80131e0: 687b ldr r3, [r7, #4]
  44463. 80131e2: 681b ldr r3, [r3, #0]
  44464. 80131e4: 60fb str r3, [r7, #12]
  44465. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44466. 80131e6: 68fb ldr r3, [r7, #12]
  44467. 80131e8: e853 3f00 ldrex r3, [r3]
  44468. 80131ec: 60bb str r3, [r7, #8]
  44469. return(result);
  44470. 80131ee: 68bb ldr r3, [r7, #8]
  44471. 80131f0: f023 0340 bic.w r3, r3, #64 @ 0x40
  44472. 80131f4: 61fb str r3, [r7, #28]
  44473. 80131f6: 687b ldr r3, [r7, #4]
  44474. 80131f8: 681b ldr r3, [r3, #0]
  44475. 80131fa: 461a mov r2, r3
  44476. 80131fc: 69fb ldr r3, [r7, #28]
  44477. 80131fe: 61bb str r3, [r7, #24]
  44478. 8013200: 617a str r2, [r7, #20]
  44479. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44480. 8013202: 6979 ldr r1, [r7, #20]
  44481. 8013204: 69ba ldr r2, [r7, #24]
  44482. 8013206: e841 2300 strex r3, r2, [r1]
  44483. 801320a: 613b str r3, [r7, #16]
  44484. return(result);
  44485. 801320c: 693b ldr r3, [r7, #16]
  44486. 801320e: 2b00 cmp r3, #0
  44487. 8013210: d1e6 bne.n 80131e0 <UART_EndTransmit_IT+0x8>
  44488. /* Tx process is ended, restore huart->gState to Ready */
  44489. huart->gState = HAL_UART_STATE_READY;
  44490. 8013212: 687b ldr r3, [r7, #4]
  44491. 8013214: 2220 movs r2, #32
  44492. 8013216: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44493. /* Cleat TxISR function pointer */
  44494. huart->TxISR = NULL;
  44495. 801321a: 687b ldr r3, [r7, #4]
  44496. 801321c: 2200 movs r2, #0
  44497. 801321e: 679a str r2, [r3, #120] @ 0x78
  44498. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44499. /*Call registered Tx complete callback*/
  44500. huart->TxCpltCallback(huart);
  44501. #else
  44502. /*Call legacy weak Tx complete callback*/
  44503. HAL_UART_TxCpltCallback(huart);
  44504. 8013220: 6878 ldr r0, [r7, #4]
  44505. 8013222: f7f1 fc8d bl 8004b40 <HAL_UART_TxCpltCallback>
  44506. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44507. }
  44508. 8013226: bf00 nop
  44509. 8013228: 3720 adds r7, #32
  44510. 801322a: 46bd mov sp, r7
  44511. 801322c: bd80 pop {r7, pc}
  44512. ...
  44513. 08013230 <UART_RxISR_8BIT>:
  44514. * @brief RX interrupt handler for 7 or 8 bits data word length .
  44515. * @param huart UART handle.
  44516. * @retval None
  44517. */
  44518. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  44519. {
  44520. 8013230: b580 push {r7, lr}
  44521. 8013232: b09c sub sp, #112 @ 0x70
  44522. 8013234: af00 add r7, sp, #0
  44523. 8013236: 6078 str r0, [r7, #4]
  44524. uint16_t uhMask = huart->Mask;
  44525. 8013238: 687b ldr r3, [r7, #4]
  44526. 801323a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44527. 801323e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44528. uint16_t uhdata;
  44529. /* Check that a Rx process is ongoing */
  44530. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44531. 8013242: 687b ldr r3, [r7, #4]
  44532. 8013244: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44533. 8013248: 2b22 cmp r3, #34 @ 0x22
  44534. 801324a: f040 80be bne.w 80133ca <UART_RxISR_8BIT+0x19a>
  44535. {
  44536. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44537. 801324e: 687b ldr r3, [r7, #4]
  44538. 8013250: 681b ldr r3, [r3, #0]
  44539. 8013252: 6a5b ldr r3, [r3, #36] @ 0x24
  44540. 8013254: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44541. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  44542. 8013258: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  44543. 801325c: b2d9 uxtb r1, r3
  44544. 801325e: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44545. 8013262: b2da uxtb r2, r3
  44546. 8013264: 687b ldr r3, [r7, #4]
  44547. 8013266: 6d9b ldr r3, [r3, #88] @ 0x58
  44548. 8013268: 400a ands r2, r1
  44549. 801326a: b2d2 uxtb r2, r2
  44550. 801326c: 701a strb r2, [r3, #0]
  44551. huart->pRxBuffPtr++;
  44552. 801326e: 687b ldr r3, [r7, #4]
  44553. 8013270: 6d9b ldr r3, [r3, #88] @ 0x58
  44554. 8013272: 1c5a adds r2, r3, #1
  44555. 8013274: 687b ldr r3, [r7, #4]
  44556. 8013276: 659a str r2, [r3, #88] @ 0x58
  44557. huart->RxXferCount--;
  44558. 8013278: 687b ldr r3, [r7, #4]
  44559. 801327a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44560. 801327e: b29b uxth r3, r3
  44561. 8013280: 3b01 subs r3, #1
  44562. 8013282: b29a uxth r2, r3
  44563. 8013284: 687b ldr r3, [r7, #4]
  44564. 8013286: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44565. if (huart->RxXferCount == 0U)
  44566. 801328a: 687b ldr r3, [r7, #4]
  44567. 801328c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44568. 8013290: b29b uxth r3, r3
  44569. 8013292: 2b00 cmp r3, #0
  44570. 8013294: f040 80a1 bne.w 80133da <UART_RxISR_8BIT+0x1aa>
  44571. {
  44572. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  44573. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44574. 8013298: 687b ldr r3, [r7, #4]
  44575. 801329a: 681b ldr r3, [r3, #0]
  44576. 801329c: 64fb str r3, [r7, #76] @ 0x4c
  44577. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44578. 801329e: 6cfb ldr r3, [r7, #76] @ 0x4c
  44579. 80132a0: e853 3f00 ldrex r3, [r3]
  44580. 80132a4: 64bb str r3, [r7, #72] @ 0x48
  44581. return(result);
  44582. 80132a6: 6cbb ldr r3, [r7, #72] @ 0x48
  44583. 80132a8: f423 7390 bic.w r3, r3, #288 @ 0x120
  44584. 80132ac: 66bb str r3, [r7, #104] @ 0x68
  44585. 80132ae: 687b ldr r3, [r7, #4]
  44586. 80132b0: 681b ldr r3, [r3, #0]
  44587. 80132b2: 461a mov r2, r3
  44588. 80132b4: 6ebb ldr r3, [r7, #104] @ 0x68
  44589. 80132b6: 65bb str r3, [r7, #88] @ 0x58
  44590. 80132b8: 657a str r2, [r7, #84] @ 0x54
  44591. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44592. 80132ba: 6d79 ldr r1, [r7, #84] @ 0x54
  44593. 80132bc: 6dba ldr r2, [r7, #88] @ 0x58
  44594. 80132be: e841 2300 strex r3, r2, [r1]
  44595. 80132c2: 653b str r3, [r7, #80] @ 0x50
  44596. return(result);
  44597. 80132c4: 6d3b ldr r3, [r7, #80] @ 0x50
  44598. 80132c6: 2b00 cmp r3, #0
  44599. 80132c8: d1e6 bne.n 8013298 <UART_RxISR_8BIT+0x68>
  44600. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44601. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44602. 80132ca: 687b ldr r3, [r7, #4]
  44603. 80132cc: 681b ldr r3, [r3, #0]
  44604. 80132ce: 3308 adds r3, #8
  44605. 80132d0: 63bb str r3, [r7, #56] @ 0x38
  44606. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44607. 80132d2: 6bbb ldr r3, [r7, #56] @ 0x38
  44608. 80132d4: e853 3f00 ldrex r3, [r3]
  44609. 80132d8: 637b str r3, [r7, #52] @ 0x34
  44610. return(result);
  44611. 80132da: 6b7b ldr r3, [r7, #52] @ 0x34
  44612. 80132dc: f023 0301 bic.w r3, r3, #1
  44613. 80132e0: 667b str r3, [r7, #100] @ 0x64
  44614. 80132e2: 687b ldr r3, [r7, #4]
  44615. 80132e4: 681b ldr r3, [r3, #0]
  44616. 80132e6: 3308 adds r3, #8
  44617. 80132e8: 6e7a ldr r2, [r7, #100] @ 0x64
  44618. 80132ea: 647a str r2, [r7, #68] @ 0x44
  44619. 80132ec: 643b str r3, [r7, #64] @ 0x40
  44620. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44621. 80132ee: 6c39 ldr r1, [r7, #64] @ 0x40
  44622. 80132f0: 6c7a ldr r2, [r7, #68] @ 0x44
  44623. 80132f2: e841 2300 strex r3, r2, [r1]
  44624. 80132f6: 63fb str r3, [r7, #60] @ 0x3c
  44625. return(result);
  44626. 80132f8: 6bfb ldr r3, [r7, #60] @ 0x3c
  44627. 80132fa: 2b00 cmp r3, #0
  44628. 80132fc: d1e5 bne.n 80132ca <UART_RxISR_8BIT+0x9a>
  44629. /* Rx process is completed, restore huart->RxState to Ready */
  44630. huart->RxState = HAL_UART_STATE_READY;
  44631. 80132fe: 687b ldr r3, [r7, #4]
  44632. 8013300: 2220 movs r2, #32
  44633. 8013302: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44634. /* Clear RxISR function pointer */
  44635. huart->RxISR = NULL;
  44636. 8013306: 687b ldr r3, [r7, #4]
  44637. 8013308: 2200 movs r2, #0
  44638. 801330a: 675a str r2, [r3, #116] @ 0x74
  44639. /* Initialize type of RxEvent to Transfer Complete */
  44640. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44641. 801330c: 687b ldr r3, [r7, #4]
  44642. 801330e: 2200 movs r2, #0
  44643. 8013310: 671a str r2, [r3, #112] @ 0x70
  44644. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44645. 8013312: 687b ldr r3, [r7, #4]
  44646. 8013314: 681b ldr r3, [r3, #0]
  44647. 8013316: 4a33 ldr r2, [pc, #204] @ (80133e4 <UART_RxISR_8BIT+0x1b4>)
  44648. 8013318: 4293 cmp r3, r2
  44649. 801331a: d01f beq.n 801335c <UART_RxISR_8BIT+0x12c>
  44650. {
  44651. /* Check that USART RTOEN bit is set */
  44652. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44653. 801331c: 687b ldr r3, [r7, #4]
  44654. 801331e: 681b ldr r3, [r3, #0]
  44655. 8013320: 685b ldr r3, [r3, #4]
  44656. 8013322: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44657. 8013326: 2b00 cmp r3, #0
  44658. 8013328: d018 beq.n 801335c <UART_RxISR_8BIT+0x12c>
  44659. {
  44660. /* Enable the UART Receiver Timeout Interrupt */
  44661. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44662. 801332a: 687b ldr r3, [r7, #4]
  44663. 801332c: 681b ldr r3, [r3, #0]
  44664. 801332e: 627b str r3, [r7, #36] @ 0x24
  44665. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44666. 8013330: 6a7b ldr r3, [r7, #36] @ 0x24
  44667. 8013332: e853 3f00 ldrex r3, [r3]
  44668. 8013336: 623b str r3, [r7, #32]
  44669. return(result);
  44670. 8013338: 6a3b ldr r3, [r7, #32]
  44671. 801333a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44672. 801333e: 663b str r3, [r7, #96] @ 0x60
  44673. 8013340: 687b ldr r3, [r7, #4]
  44674. 8013342: 681b ldr r3, [r3, #0]
  44675. 8013344: 461a mov r2, r3
  44676. 8013346: 6e3b ldr r3, [r7, #96] @ 0x60
  44677. 8013348: 633b str r3, [r7, #48] @ 0x30
  44678. 801334a: 62fa str r2, [r7, #44] @ 0x2c
  44679. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44680. 801334c: 6af9 ldr r1, [r7, #44] @ 0x2c
  44681. 801334e: 6b3a ldr r2, [r7, #48] @ 0x30
  44682. 8013350: e841 2300 strex r3, r2, [r1]
  44683. 8013354: 62bb str r3, [r7, #40] @ 0x28
  44684. return(result);
  44685. 8013356: 6abb ldr r3, [r7, #40] @ 0x28
  44686. 8013358: 2b00 cmp r3, #0
  44687. 801335a: d1e6 bne.n 801332a <UART_RxISR_8BIT+0xfa>
  44688. }
  44689. }
  44690. /* Check current reception Mode :
  44691. If Reception till IDLE event has been selected : */
  44692. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44693. 801335c: 687b ldr r3, [r7, #4]
  44694. 801335e: 6edb ldr r3, [r3, #108] @ 0x6c
  44695. 8013360: 2b01 cmp r3, #1
  44696. 8013362: d12e bne.n 80133c2 <UART_RxISR_8BIT+0x192>
  44697. {
  44698. /* Set reception type to Standard */
  44699. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44700. 8013364: 687b ldr r3, [r7, #4]
  44701. 8013366: 2200 movs r2, #0
  44702. 8013368: 66da str r2, [r3, #108] @ 0x6c
  44703. /* Disable IDLE interrupt */
  44704. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44705. 801336a: 687b ldr r3, [r7, #4]
  44706. 801336c: 681b ldr r3, [r3, #0]
  44707. 801336e: 613b str r3, [r7, #16]
  44708. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44709. 8013370: 693b ldr r3, [r7, #16]
  44710. 8013372: e853 3f00 ldrex r3, [r3]
  44711. 8013376: 60fb str r3, [r7, #12]
  44712. return(result);
  44713. 8013378: 68fb ldr r3, [r7, #12]
  44714. 801337a: f023 0310 bic.w r3, r3, #16
  44715. 801337e: 65fb str r3, [r7, #92] @ 0x5c
  44716. 8013380: 687b ldr r3, [r7, #4]
  44717. 8013382: 681b ldr r3, [r3, #0]
  44718. 8013384: 461a mov r2, r3
  44719. 8013386: 6dfb ldr r3, [r7, #92] @ 0x5c
  44720. 8013388: 61fb str r3, [r7, #28]
  44721. 801338a: 61ba str r2, [r7, #24]
  44722. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44723. 801338c: 69b9 ldr r1, [r7, #24]
  44724. 801338e: 69fa ldr r2, [r7, #28]
  44725. 8013390: e841 2300 strex r3, r2, [r1]
  44726. 8013394: 617b str r3, [r7, #20]
  44727. return(result);
  44728. 8013396: 697b ldr r3, [r7, #20]
  44729. 8013398: 2b00 cmp r3, #0
  44730. 801339a: d1e6 bne.n 801336a <UART_RxISR_8BIT+0x13a>
  44731. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44732. 801339c: 687b ldr r3, [r7, #4]
  44733. 801339e: 681b ldr r3, [r3, #0]
  44734. 80133a0: 69db ldr r3, [r3, #28]
  44735. 80133a2: f003 0310 and.w r3, r3, #16
  44736. 80133a6: 2b10 cmp r3, #16
  44737. 80133a8: d103 bne.n 80133b2 <UART_RxISR_8BIT+0x182>
  44738. {
  44739. /* Clear IDLE Flag */
  44740. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44741. 80133aa: 687b ldr r3, [r7, #4]
  44742. 80133ac: 681b ldr r3, [r3, #0]
  44743. 80133ae: 2210 movs r2, #16
  44744. 80133b0: 621a str r2, [r3, #32]
  44745. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44746. /*Call registered Rx Event callback*/
  44747. huart->RxEventCallback(huart, huart->RxXferSize);
  44748. #else
  44749. /*Call legacy weak Rx Event callback*/
  44750. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44751. 80133b2: 687b ldr r3, [r7, #4]
  44752. 80133b4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44753. 80133b8: 4619 mov r1, r3
  44754. 80133ba: 6878 ldr r0, [r7, #4]
  44755. 80133bc: f7f1 fb96 bl 8004aec <HAL_UARTEx_RxEventCallback>
  44756. else
  44757. {
  44758. /* Clear RXNE interrupt flag */
  44759. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44760. }
  44761. }
  44762. 80133c0: e00b b.n 80133da <UART_RxISR_8BIT+0x1aa>
  44763. HAL_UART_RxCpltCallback(huart);
  44764. 80133c2: 6878 ldr r0, [r7, #4]
  44765. 80133c4: f7f1 fb88 bl 8004ad8 <HAL_UART_RxCpltCallback>
  44766. }
  44767. 80133c8: e007 b.n 80133da <UART_RxISR_8BIT+0x1aa>
  44768. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44769. 80133ca: 687b ldr r3, [r7, #4]
  44770. 80133cc: 681b ldr r3, [r3, #0]
  44771. 80133ce: 699a ldr r2, [r3, #24]
  44772. 80133d0: 687b ldr r3, [r7, #4]
  44773. 80133d2: 681b ldr r3, [r3, #0]
  44774. 80133d4: f042 0208 orr.w r2, r2, #8
  44775. 80133d8: 619a str r2, [r3, #24]
  44776. }
  44777. 80133da: bf00 nop
  44778. 80133dc: 3770 adds r7, #112 @ 0x70
  44779. 80133de: 46bd mov sp, r7
  44780. 80133e0: bd80 pop {r7, pc}
  44781. 80133e2: bf00 nop
  44782. 80133e4: 58000c00 .word 0x58000c00
  44783. 080133e8 <UART_RxISR_16BIT>:
  44784. * interruptions have been enabled by HAL_UART_Receive_IT()
  44785. * @param huart UART handle.
  44786. * @retval None
  44787. */
  44788. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  44789. {
  44790. 80133e8: b580 push {r7, lr}
  44791. 80133ea: b09c sub sp, #112 @ 0x70
  44792. 80133ec: af00 add r7, sp, #0
  44793. 80133ee: 6078 str r0, [r7, #4]
  44794. uint16_t *tmp;
  44795. uint16_t uhMask = huart->Mask;
  44796. 80133f0: 687b ldr r3, [r7, #4]
  44797. 80133f2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44798. 80133f6: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  44799. uint16_t uhdata;
  44800. /* Check that a Rx process is ongoing */
  44801. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44802. 80133fa: 687b ldr r3, [r7, #4]
  44803. 80133fc: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44804. 8013400: 2b22 cmp r3, #34 @ 0x22
  44805. 8013402: f040 80be bne.w 8013582 <UART_RxISR_16BIT+0x19a>
  44806. {
  44807. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44808. 8013406: 687b ldr r3, [r7, #4]
  44809. 8013408: 681b ldr r3, [r3, #0]
  44810. 801340a: 6a5b ldr r3, [r3, #36] @ 0x24
  44811. 801340c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  44812. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44813. 8013410: 687b ldr r3, [r7, #4]
  44814. 8013412: 6d9b ldr r3, [r3, #88] @ 0x58
  44815. 8013414: 66bb str r3, [r7, #104] @ 0x68
  44816. *tmp = (uint16_t)(uhdata & uhMask);
  44817. 8013416: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  44818. 801341a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  44819. 801341e: 4013 ands r3, r2
  44820. 8013420: b29a uxth r2, r3
  44821. 8013422: 6ebb ldr r3, [r7, #104] @ 0x68
  44822. 8013424: 801a strh r2, [r3, #0]
  44823. huart->pRxBuffPtr += 2U;
  44824. 8013426: 687b ldr r3, [r7, #4]
  44825. 8013428: 6d9b ldr r3, [r3, #88] @ 0x58
  44826. 801342a: 1c9a adds r2, r3, #2
  44827. 801342c: 687b ldr r3, [r7, #4]
  44828. 801342e: 659a str r2, [r3, #88] @ 0x58
  44829. huart->RxXferCount--;
  44830. 8013430: 687b ldr r3, [r7, #4]
  44831. 8013432: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44832. 8013436: b29b uxth r3, r3
  44833. 8013438: 3b01 subs r3, #1
  44834. 801343a: b29a uxth r2, r3
  44835. 801343c: 687b ldr r3, [r7, #4]
  44836. 801343e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44837. if (huart->RxXferCount == 0U)
  44838. 8013442: 687b ldr r3, [r7, #4]
  44839. 8013444: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44840. 8013448: b29b uxth r3, r3
  44841. 801344a: 2b00 cmp r3, #0
  44842. 801344c: f040 80a1 bne.w 8013592 <UART_RxISR_16BIT+0x1aa>
  44843. {
  44844. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  44845. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  44846. 8013450: 687b ldr r3, [r7, #4]
  44847. 8013452: 681b ldr r3, [r3, #0]
  44848. 8013454: 64bb str r3, [r7, #72] @ 0x48
  44849. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44850. 8013456: 6cbb ldr r3, [r7, #72] @ 0x48
  44851. 8013458: e853 3f00 ldrex r3, [r3]
  44852. 801345c: 647b str r3, [r7, #68] @ 0x44
  44853. return(result);
  44854. 801345e: 6c7b ldr r3, [r7, #68] @ 0x44
  44855. 8013460: f423 7390 bic.w r3, r3, #288 @ 0x120
  44856. 8013464: 667b str r3, [r7, #100] @ 0x64
  44857. 8013466: 687b ldr r3, [r7, #4]
  44858. 8013468: 681b ldr r3, [r3, #0]
  44859. 801346a: 461a mov r2, r3
  44860. 801346c: 6e7b ldr r3, [r7, #100] @ 0x64
  44861. 801346e: 657b str r3, [r7, #84] @ 0x54
  44862. 8013470: 653a str r2, [r7, #80] @ 0x50
  44863. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44864. 8013472: 6d39 ldr r1, [r7, #80] @ 0x50
  44865. 8013474: 6d7a ldr r2, [r7, #84] @ 0x54
  44866. 8013476: e841 2300 strex r3, r2, [r1]
  44867. 801347a: 64fb str r3, [r7, #76] @ 0x4c
  44868. return(result);
  44869. 801347c: 6cfb ldr r3, [r7, #76] @ 0x4c
  44870. 801347e: 2b00 cmp r3, #0
  44871. 8013480: d1e6 bne.n 8013450 <UART_RxISR_16BIT+0x68>
  44872. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  44873. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  44874. 8013482: 687b ldr r3, [r7, #4]
  44875. 8013484: 681b ldr r3, [r3, #0]
  44876. 8013486: 3308 adds r3, #8
  44877. 8013488: 637b str r3, [r7, #52] @ 0x34
  44878. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44879. 801348a: 6b7b ldr r3, [r7, #52] @ 0x34
  44880. 801348c: e853 3f00 ldrex r3, [r3]
  44881. 8013490: 633b str r3, [r7, #48] @ 0x30
  44882. return(result);
  44883. 8013492: 6b3b ldr r3, [r7, #48] @ 0x30
  44884. 8013494: f023 0301 bic.w r3, r3, #1
  44885. 8013498: 663b str r3, [r7, #96] @ 0x60
  44886. 801349a: 687b ldr r3, [r7, #4]
  44887. 801349c: 681b ldr r3, [r3, #0]
  44888. 801349e: 3308 adds r3, #8
  44889. 80134a0: 6e3a ldr r2, [r7, #96] @ 0x60
  44890. 80134a2: 643a str r2, [r7, #64] @ 0x40
  44891. 80134a4: 63fb str r3, [r7, #60] @ 0x3c
  44892. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44893. 80134a6: 6bf9 ldr r1, [r7, #60] @ 0x3c
  44894. 80134a8: 6c3a ldr r2, [r7, #64] @ 0x40
  44895. 80134aa: e841 2300 strex r3, r2, [r1]
  44896. 80134ae: 63bb str r3, [r7, #56] @ 0x38
  44897. return(result);
  44898. 80134b0: 6bbb ldr r3, [r7, #56] @ 0x38
  44899. 80134b2: 2b00 cmp r3, #0
  44900. 80134b4: d1e5 bne.n 8013482 <UART_RxISR_16BIT+0x9a>
  44901. /* Rx process is completed, restore huart->RxState to Ready */
  44902. huart->RxState = HAL_UART_STATE_READY;
  44903. 80134b6: 687b ldr r3, [r7, #4]
  44904. 80134b8: 2220 movs r2, #32
  44905. 80134ba: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44906. /* Clear RxISR function pointer */
  44907. huart->RxISR = NULL;
  44908. 80134be: 687b ldr r3, [r7, #4]
  44909. 80134c0: 2200 movs r2, #0
  44910. 80134c2: 675a str r2, [r3, #116] @ 0x74
  44911. /* Initialize type of RxEvent to Transfer Complete */
  44912. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44913. 80134c4: 687b ldr r3, [r7, #4]
  44914. 80134c6: 2200 movs r2, #0
  44915. 80134c8: 671a str r2, [r3, #112] @ 0x70
  44916. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44917. 80134ca: 687b ldr r3, [r7, #4]
  44918. 80134cc: 681b ldr r3, [r3, #0]
  44919. 80134ce: 4a33 ldr r2, [pc, #204] @ (801359c <UART_RxISR_16BIT+0x1b4>)
  44920. 80134d0: 4293 cmp r3, r2
  44921. 80134d2: d01f beq.n 8013514 <UART_RxISR_16BIT+0x12c>
  44922. {
  44923. /* Check that USART RTOEN bit is set */
  44924. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44925. 80134d4: 687b ldr r3, [r7, #4]
  44926. 80134d6: 681b ldr r3, [r3, #0]
  44927. 80134d8: 685b ldr r3, [r3, #4]
  44928. 80134da: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44929. 80134de: 2b00 cmp r3, #0
  44930. 80134e0: d018 beq.n 8013514 <UART_RxISR_16BIT+0x12c>
  44931. {
  44932. /* Enable the UART Receiver Timeout Interrupt */
  44933. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44934. 80134e2: 687b ldr r3, [r7, #4]
  44935. 80134e4: 681b ldr r3, [r3, #0]
  44936. 80134e6: 623b str r3, [r7, #32]
  44937. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44938. 80134e8: 6a3b ldr r3, [r7, #32]
  44939. 80134ea: e853 3f00 ldrex r3, [r3]
  44940. 80134ee: 61fb str r3, [r7, #28]
  44941. return(result);
  44942. 80134f0: 69fb ldr r3, [r7, #28]
  44943. 80134f2: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44944. 80134f6: 65fb str r3, [r7, #92] @ 0x5c
  44945. 80134f8: 687b ldr r3, [r7, #4]
  44946. 80134fa: 681b ldr r3, [r3, #0]
  44947. 80134fc: 461a mov r2, r3
  44948. 80134fe: 6dfb ldr r3, [r7, #92] @ 0x5c
  44949. 8013500: 62fb str r3, [r7, #44] @ 0x2c
  44950. 8013502: 62ba str r2, [r7, #40] @ 0x28
  44951. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44952. 8013504: 6ab9 ldr r1, [r7, #40] @ 0x28
  44953. 8013506: 6afa ldr r2, [r7, #44] @ 0x2c
  44954. 8013508: e841 2300 strex r3, r2, [r1]
  44955. 801350c: 627b str r3, [r7, #36] @ 0x24
  44956. return(result);
  44957. 801350e: 6a7b ldr r3, [r7, #36] @ 0x24
  44958. 8013510: 2b00 cmp r3, #0
  44959. 8013512: d1e6 bne.n 80134e2 <UART_RxISR_16BIT+0xfa>
  44960. }
  44961. }
  44962. /* Check current reception Mode :
  44963. If Reception till IDLE event has been selected : */
  44964. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44965. 8013514: 687b ldr r3, [r7, #4]
  44966. 8013516: 6edb ldr r3, [r3, #108] @ 0x6c
  44967. 8013518: 2b01 cmp r3, #1
  44968. 801351a: d12e bne.n 801357a <UART_RxISR_16BIT+0x192>
  44969. {
  44970. /* Set reception type to Standard */
  44971. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44972. 801351c: 687b ldr r3, [r7, #4]
  44973. 801351e: 2200 movs r2, #0
  44974. 8013520: 66da str r2, [r3, #108] @ 0x6c
  44975. /* Disable IDLE interrupt */
  44976. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44977. 8013522: 687b ldr r3, [r7, #4]
  44978. 8013524: 681b ldr r3, [r3, #0]
  44979. 8013526: 60fb str r3, [r7, #12]
  44980. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44981. 8013528: 68fb ldr r3, [r7, #12]
  44982. 801352a: e853 3f00 ldrex r3, [r3]
  44983. 801352e: 60bb str r3, [r7, #8]
  44984. return(result);
  44985. 8013530: 68bb ldr r3, [r7, #8]
  44986. 8013532: f023 0310 bic.w r3, r3, #16
  44987. 8013536: 65bb str r3, [r7, #88] @ 0x58
  44988. 8013538: 687b ldr r3, [r7, #4]
  44989. 801353a: 681b ldr r3, [r3, #0]
  44990. 801353c: 461a mov r2, r3
  44991. 801353e: 6dbb ldr r3, [r7, #88] @ 0x58
  44992. 8013540: 61bb str r3, [r7, #24]
  44993. 8013542: 617a str r2, [r7, #20]
  44994. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44995. 8013544: 6979 ldr r1, [r7, #20]
  44996. 8013546: 69ba ldr r2, [r7, #24]
  44997. 8013548: e841 2300 strex r3, r2, [r1]
  44998. 801354c: 613b str r3, [r7, #16]
  44999. return(result);
  45000. 801354e: 693b ldr r3, [r7, #16]
  45001. 8013550: 2b00 cmp r3, #0
  45002. 8013552: d1e6 bne.n 8013522 <UART_RxISR_16BIT+0x13a>
  45003. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45004. 8013554: 687b ldr r3, [r7, #4]
  45005. 8013556: 681b ldr r3, [r3, #0]
  45006. 8013558: 69db ldr r3, [r3, #28]
  45007. 801355a: f003 0310 and.w r3, r3, #16
  45008. 801355e: 2b10 cmp r3, #16
  45009. 8013560: d103 bne.n 801356a <UART_RxISR_16BIT+0x182>
  45010. {
  45011. /* Clear IDLE Flag */
  45012. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45013. 8013562: 687b ldr r3, [r7, #4]
  45014. 8013564: 681b ldr r3, [r3, #0]
  45015. 8013566: 2210 movs r2, #16
  45016. 8013568: 621a str r2, [r3, #32]
  45017. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45018. /*Call registered Rx Event callback*/
  45019. huart->RxEventCallback(huart, huart->RxXferSize);
  45020. #else
  45021. /*Call legacy weak Rx Event callback*/
  45022. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45023. 801356a: 687b ldr r3, [r7, #4]
  45024. 801356c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45025. 8013570: 4619 mov r1, r3
  45026. 8013572: 6878 ldr r0, [r7, #4]
  45027. 8013574: f7f1 faba bl 8004aec <HAL_UARTEx_RxEventCallback>
  45028. else
  45029. {
  45030. /* Clear RXNE interrupt flag */
  45031. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45032. }
  45033. }
  45034. 8013578: e00b b.n 8013592 <UART_RxISR_16BIT+0x1aa>
  45035. HAL_UART_RxCpltCallback(huart);
  45036. 801357a: 6878 ldr r0, [r7, #4]
  45037. 801357c: f7f1 faac bl 8004ad8 <HAL_UART_RxCpltCallback>
  45038. }
  45039. 8013580: e007 b.n 8013592 <UART_RxISR_16BIT+0x1aa>
  45040. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45041. 8013582: 687b ldr r3, [r7, #4]
  45042. 8013584: 681b ldr r3, [r3, #0]
  45043. 8013586: 699a ldr r2, [r3, #24]
  45044. 8013588: 687b ldr r3, [r7, #4]
  45045. 801358a: 681b ldr r3, [r3, #0]
  45046. 801358c: f042 0208 orr.w r2, r2, #8
  45047. 8013590: 619a str r2, [r3, #24]
  45048. }
  45049. 8013592: bf00 nop
  45050. 8013594: 3770 adds r7, #112 @ 0x70
  45051. 8013596: 46bd mov sp, r7
  45052. 8013598: bd80 pop {r7, pc}
  45053. 801359a: bf00 nop
  45054. 801359c: 58000c00 .word 0x58000c00
  45055. 080135a0 <UART_RxISR_8BIT_FIFOEN>:
  45056. * interruptions have been enabled by HAL_UART_Receive_IT()
  45057. * @param huart UART handle.
  45058. * @retval None
  45059. */
  45060. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  45061. {
  45062. 80135a0: b580 push {r7, lr}
  45063. 80135a2: b0ac sub sp, #176 @ 0xb0
  45064. 80135a4: af00 add r7, sp, #0
  45065. 80135a6: 6078 str r0, [r7, #4]
  45066. uint16_t uhMask = huart->Mask;
  45067. 80135a8: 687b ldr r3, [r7, #4]
  45068. 80135aa: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45069. 80135ae: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  45070. uint16_t uhdata;
  45071. uint16_t nb_rx_data;
  45072. uint16_t rxdatacount;
  45073. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45074. 80135b2: 687b ldr r3, [r7, #4]
  45075. 80135b4: 681b ldr r3, [r3, #0]
  45076. 80135b6: 69db ldr r3, [r3, #28]
  45077. 80135b8: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45078. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45079. 80135bc: 687b ldr r3, [r7, #4]
  45080. 80135be: 681b ldr r3, [r3, #0]
  45081. 80135c0: 681b ldr r3, [r3, #0]
  45082. 80135c2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  45083. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45084. 80135c6: 687b ldr r3, [r7, #4]
  45085. 80135c8: 681b ldr r3, [r3, #0]
  45086. 80135ca: 689b ldr r3, [r3, #8]
  45087. 80135cc: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45088. /* Check that a Rx process is ongoing */
  45089. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45090. 80135d0: 687b ldr r3, [r7, #4]
  45091. 80135d2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45092. 80135d6: 2b22 cmp r3, #34 @ 0x22
  45093. 80135d8: f040 8180 bne.w 80138dc <UART_RxISR_8BIT_FIFOEN+0x33c>
  45094. {
  45095. nb_rx_data = huart->NbRxDataToProcess;
  45096. 80135dc: 687b ldr r3, [r7, #4]
  45097. 80135de: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45098. 80135e2: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  45099. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45100. 80135e6: e123 b.n 8013830 <UART_RxISR_8BIT_FIFOEN+0x290>
  45101. {
  45102. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45103. 80135e8: 687b ldr r3, [r7, #4]
  45104. 80135ea: 681b ldr r3, [r3, #0]
  45105. 80135ec: 6a5b ldr r3, [r3, #36] @ 0x24
  45106. 80135ee: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  45107. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  45108. 80135f2: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  45109. 80135f6: b2d9 uxtb r1, r3
  45110. 80135f8: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  45111. 80135fc: b2da uxtb r2, r3
  45112. 80135fe: 687b ldr r3, [r7, #4]
  45113. 8013600: 6d9b ldr r3, [r3, #88] @ 0x58
  45114. 8013602: 400a ands r2, r1
  45115. 8013604: b2d2 uxtb r2, r2
  45116. 8013606: 701a strb r2, [r3, #0]
  45117. huart->pRxBuffPtr++;
  45118. 8013608: 687b ldr r3, [r7, #4]
  45119. 801360a: 6d9b ldr r3, [r3, #88] @ 0x58
  45120. 801360c: 1c5a adds r2, r3, #1
  45121. 801360e: 687b ldr r3, [r7, #4]
  45122. 8013610: 659a str r2, [r3, #88] @ 0x58
  45123. huart->RxXferCount--;
  45124. 8013612: 687b ldr r3, [r7, #4]
  45125. 8013614: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45126. 8013618: b29b uxth r3, r3
  45127. 801361a: 3b01 subs r3, #1
  45128. 801361c: b29a uxth r2, r3
  45129. 801361e: 687b ldr r3, [r7, #4]
  45130. 8013620: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45131. isrflags = READ_REG(huart->Instance->ISR);
  45132. 8013624: 687b ldr r3, [r7, #4]
  45133. 8013626: 681b ldr r3, [r3, #0]
  45134. 8013628: 69db ldr r3, [r3, #28]
  45135. 801362a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45136. /* If some non blocking errors occurred */
  45137. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45138. 801362e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45139. 8013632: f003 0307 and.w r3, r3, #7
  45140. 8013636: 2b00 cmp r3, #0
  45141. 8013638: d053 beq.n 80136e2 <UART_RxISR_8BIT_FIFOEN+0x142>
  45142. {
  45143. /* UART parity error interrupt occurred -------------------------------------*/
  45144. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45145. 801363a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45146. 801363e: f003 0301 and.w r3, r3, #1
  45147. 8013642: 2b00 cmp r3, #0
  45148. 8013644: d011 beq.n 801366a <UART_RxISR_8BIT_FIFOEN+0xca>
  45149. 8013646: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  45150. 801364a: f403 7380 and.w r3, r3, #256 @ 0x100
  45151. 801364e: 2b00 cmp r3, #0
  45152. 8013650: d00b beq.n 801366a <UART_RxISR_8BIT_FIFOEN+0xca>
  45153. {
  45154. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45155. 8013652: 687b ldr r3, [r7, #4]
  45156. 8013654: 681b ldr r3, [r3, #0]
  45157. 8013656: 2201 movs r2, #1
  45158. 8013658: 621a str r2, [r3, #32]
  45159. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45160. 801365a: 687b ldr r3, [r7, #4]
  45161. 801365c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45162. 8013660: f043 0201 orr.w r2, r3, #1
  45163. 8013664: 687b ldr r3, [r7, #4]
  45164. 8013666: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45165. }
  45166. /* UART frame error interrupt occurred --------------------------------------*/
  45167. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45168. 801366a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45169. 801366e: f003 0302 and.w r3, r3, #2
  45170. 8013672: 2b00 cmp r3, #0
  45171. 8013674: d011 beq.n 801369a <UART_RxISR_8BIT_FIFOEN+0xfa>
  45172. 8013676: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45173. 801367a: f003 0301 and.w r3, r3, #1
  45174. 801367e: 2b00 cmp r3, #0
  45175. 8013680: d00b beq.n 801369a <UART_RxISR_8BIT_FIFOEN+0xfa>
  45176. {
  45177. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45178. 8013682: 687b ldr r3, [r7, #4]
  45179. 8013684: 681b ldr r3, [r3, #0]
  45180. 8013686: 2202 movs r2, #2
  45181. 8013688: 621a str r2, [r3, #32]
  45182. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45183. 801368a: 687b ldr r3, [r7, #4]
  45184. 801368c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45185. 8013690: f043 0204 orr.w r2, r3, #4
  45186. 8013694: 687b ldr r3, [r7, #4]
  45187. 8013696: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45188. }
  45189. /* UART noise error interrupt occurred --------------------------------------*/
  45190. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45191. 801369a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45192. 801369e: f003 0304 and.w r3, r3, #4
  45193. 80136a2: 2b00 cmp r3, #0
  45194. 80136a4: d011 beq.n 80136ca <UART_RxISR_8BIT_FIFOEN+0x12a>
  45195. 80136a6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45196. 80136aa: f003 0301 and.w r3, r3, #1
  45197. 80136ae: 2b00 cmp r3, #0
  45198. 80136b0: d00b beq.n 80136ca <UART_RxISR_8BIT_FIFOEN+0x12a>
  45199. {
  45200. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45201. 80136b2: 687b ldr r3, [r7, #4]
  45202. 80136b4: 681b ldr r3, [r3, #0]
  45203. 80136b6: 2204 movs r2, #4
  45204. 80136b8: 621a str r2, [r3, #32]
  45205. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45206. 80136ba: 687b ldr r3, [r7, #4]
  45207. 80136bc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45208. 80136c0: f043 0202 orr.w r2, r3, #2
  45209. 80136c4: 687b ldr r3, [r7, #4]
  45210. 80136c6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45211. }
  45212. /* Call UART Error Call back function if need be ----------------------------*/
  45213. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45214. 80136ca: 687b ldr r3, [r7, #4]
  45215. 80136cc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45216. 80136d0: 2b00 cmp r3, #0
  45217. 80136d2: d006 beq.n 80136e2 <UART_RxISR_8BIT_FIFOEN+0x142>
  45218. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45219. /*Call registered error callback*/
  45220. huart->ErrorCallback(huart);
  45221. #else
  45222. /*Call legacy weak error callback*/
  45223. HAL_UART_ErrorCallback(huart);
  45224. 80136d4: 6878 ldr r0, [r7, #4]
  45225. 80136d6: f7fe fb13 bl 8011d00 <HAL_UART_ErrorCallback>
  45226. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45227. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45228. 80136da: 687b ldr r3, [r7, #4]
  45229. 80136dc: 2200 movs r2, #0
  45230. 80136de: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45231. }
  45232. }
  45233. if (huart->RxXferCount == 0U)
  45234. 80136e2: 687b ldr r3, [r7, #4]
  45235. 80136e4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45236. 80136e8: b29b uxth r3, r3
  45237. 80136ea: 2b00 cmp r3, #0
  45238. 80136ec: f040 80a0 bne.w 8013830 <UART_RxISR_8BIT_FIFOEN+0x290>
  45239. {
  45240. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45241. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45242. 80136f0: 687b ldr r3, [r7, #4]
  45243. 80136f2: 681b ldr r3, [r3, #0]
  45244. 80136f4: 673b str r3, [r7, #112] @ 0x70
  45245. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45246. 80136f6: 6f3b ldr r3, [r7, #112] @ 0x70
  45247. 80136f8: e853 3f00 ldrex r3, [r3]
  45248. 80136fc: 66fb str r3, [r7, #108] @ 0x6c
  45249. return(result);
  45250. 80136fe: 6efb ldr r3, [r7, #108] @ 0x6c
  45251. 8013700: f423 7380 bic.w r3, r3, #256 @ 0x100
  45252. 8013704: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45253. 8013708: 687b ldr r3, [r7, #4]
  45254. 801370a: 681b ldr r3, [r3, #0]
  45255. 801370c: 461a mov r2, r3
  45256. 801370e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  45257. 8013712: 67fb str r3, [r7, #124] @ 0x7c
  45258. 8013714: 67ba str r2, [r7, #120] @ 0x78
  45259. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45260. 8013716: 6fb9 ldr r1, [r7, #120] @ 0x78
  45261. 8013718: 6ffa ldr r2, [r7, #124] @ 0x7c
  45262. 801371a: e841 2300 strex r3, r2, [r1]
  45263. 801371e: 677b str r3, [r7, #116] @ 0x74
  45264. return(result);
  45265. 8013720: 6f7b ldr r3, [r7, #116] @ 0x74
  45266. 8013722: 2b00 cmp r3, #0
  45267. 8013724: d1e4 bne.n 80136f0 <UART_RxISR_8BIT_FIFOEN+0x150>
  45268. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45269. and RX FIFO Threshold interrupt */
  45270. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45271. 8013726: 687b ldr r3, [r7, #4]
  45272. 8013728: 681b ldr r3, [r3, #0]
  45273. 801372a: 3308 adds r3, #8
  45274. 801372c: 65fb str r3, [r7, #92] @ 0x5c
  45275. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45276. 801372e: 6dfb ldr r3, [r7, #92] @ 0x5c
  45277. 8013730: e853 3f00 ldrex r3, [r3]
  45278. 8013734: 65bb str r3, [r7, #88] @ 0x58
  45279. return(result);
  45280. 8013736: 6dba ldr r2, [r7, #88] @ 0x58
  45281. 8013738: 4b6e ldr r3, [pc, #440] @ (80138f4 <UART_RxISR_8BIT_FIFOEN+0x354>)
  45282. 801373a: 4013 ands r3, r2
  45283. 801373c: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45284. 8013740: 687b ldr r3, [r7, #4]
  45285. 8013742: 681b ldr r3, [r3, #0]
  45286. 8013744: 3308 adds r3, #8
  45287. 8013746: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  45288. 801374a: 66ba str r2, [r7, #104] @ 0x68
  45289. 801374c: 667b str r3, [r7, #100] @ 0x64
  45290. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45291. 801374e: 6e79 ldr r1, [r7, #100] @ 0x64
  45292. 8013750: 6eba ldr r2, [r7, #104] @ 0x68
  45293. 8013752: e841 2300 strex r3, r2, [r1]
  45294. 8013756: 663b str r3, [r7, #96] @ 0x60
  45295. return(result);
  45296. 8013758: 6e3b ldr r3, [r7, #96] @ 0x60
  45297. 801375a: 2b00 cmp r3, #0
  45298. 801375c: d1e3 bne.n 8013726 <UART_RxISR_8BIT_FIFOEN+0x186>
  45299. /* Rx process is completed, restore huart->RxState to Ready */
  45300. huart->RxState = HAL_UART_STATE_READY;
  45301. 801375e: 687b ldr r3, [r7, #4]
  45302. 8013760: 2220 movs r2, #32
  45303. 8013762: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45304. /* Clear RxISR function pointer */
  45305. huart->RxISR = NULL;
  45306. 8013766: 687b ldr r3, [r7, #4]
  45307. 8013768: 2200 movs r2, #0
  45308. 801376a: 675a str r2, [r3, #116] @ 0x74
  45309. /* Initialize type of RxEvent to Transfer Complete */
  45310. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45311. 801376c: 687b ldr r3, [r7, #4]
  45312. 801376e: 2200 movs r2, #0
  45313. 8013770: 671a str r2, [r3, #112] @ 0x70
  45314. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45315. 8013772: 687b ldr r3, [r7, #4]
  45316. 8013774: 681b ldr r3, [r3, #0]
  45317. 8013776: 4a60 ldr r2, [pc, #384] @ (80138f8 <UART_RxISR_8BIT_FIFOEN+0x358>)
  45318. 8013778: 4293 cmp r3, r2
  45319. 801377a: d021 beq.n 80137c0 <UART_RxISR_8BIT_FIFOEN+0x220>
  45320. {
  45321. /* Check that USART RTOEN bit is set */
  45322. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45323. 801377c: 687b ldr r3, [r7, #4]
  45324. 801377e: 681b ldr r3, [r3, #0]
  45325. 8013780: 685b ldr r3, [r3, #4]
  45326. 8013782: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45327. 8013786: 2b00 cmp r3, #0
  45328. 8013788: d01a beq.n 80137c0 <UART_RxISR_8BIT_FIFOEN+0x220>
  45329. {
  45330. /* Enable the UART Receiver Timeout Interrupt */
  45331. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45332. 801378a: 687b ldr r3, [r7, #4]
  45333. 801378c: 681b ldr r3, [r3, #0]
  45334. 801378e: 64bb str r3, [r7, #72] @ 0x48
  45335. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45336. 8013790: 6cbb ldr r3, [r7, #72] @ 0x48
  45337. 8013792: e853 3f00 ldrex r3, [r3]
  45338. 8013796: 647b str r3, [r7, #68] @ 0x44
  45339. return(result);
  45340. 8013798: 6c7b ldr r3, [r7, #68] @ 0x44
  45341. 801379a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45342. 801379e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45343. 80137a2: 687b ldr r3, [r7, #4]
  45344. 80137a4: 681b ldr r3, [r3, #0]
  45345. 80137a6: 461a mov r2, r3
  45346. 80137a8: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45347. 80137ac: 657b str r3, [r7, #84] @ 0x54
  45348. 80137ae: 653a str r2, [r7, #80] @ 0x50
  45349. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45350. 80137b0: 6d39 ldr r1, [r7, #80] @ 0x50
  45351. 80137b2: 6d7a ldr r2, [r7, #84] @ 0x54
  45352. 80137b4: e841 2300 strex r3, r2, [r1]
  45353. 80137b8: 64fb str r3, [r7, #76] @ 0x4c
  45354. return(result);
  45355. 80137ba: 6cfb ldr r3, [r7, #76] @ 0x4c
  45356. 80137bc: 2b00 cmp r3, #0
  45357. 80137be: d1e4 bne.n 801378a <UART_RxISR_8BIT_FIFOEN+0x1ea>
  45358. }
  45359. }
  45360. /* Check current reception Mode :
  45361. If Reception till IDLE event has been selected : */
  45362. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45363. 80137c0: 687b ldr r3, [r7, #4]
  45364. 80137c2: 6edb ldr r3, [r3, #108] @ 0x6c
  45365. 80137c4: 2b01 cmp r3, #1
  45366. 80137c6: d130 bne.n 801382a <UART_RxISR_8BIT_FIFOEN+0x28a>
  45367. {
  45368. /* Set reception type to Standard */
  45369. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45370. 80137c8: 687b ldr r3, [r7, #4]
  45371. 80137ca: 2200 movs r2, #0
  45372. 80137cc: 66da str r2, [r3, #108] @ 0x6c
  45373. /* Disable IDLE interrupt */
  45374. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45375. 80137ce: 687b ldr r3, [r7, #4]
  45376. 80137d0: 681b ldr r3, [r3, #0]
  45377. 80137d2: 637b str r3, [r7, #52] @ 0x34
  45378. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45379. 80137d4: 6b7b ldr r3, [r7, #52] @ 0x34
  45380. 80137d6: e853 3f00 ldrex r3, [r3]
  45381. 80137da: 633b str r3, [r7, #48] @ 0x30
  45382. return(result);
  45383. 80137dc: 6b3b ldr r3, [r7, #48] @ 0x30
  45384. 80137de: f023 0310 bic.w r3, r3, #16
  45385. 80137e2: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  45386. 80137e6: 687b ldr r3, [r7, #4]
  45387. 80137e8: 681b ldr r3, [r3, #0]
  45388. 80137ea: 461a mov r2, r3
  45389. 80137ec: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  45390. 80137f0: 643b str r3, [r7, #64] @ 0x40
  45391. 80137f2: 63fa str r2, [r7, #60] @ 0x3c
  45392. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45393. 80137f4: 6bf9 ldr r1, [r7, #60] @ 0x3c
  45394. 80137f6: 6c3a ldr r2, [r7, #64] @ 0x40
  45395. 80137f8: e841 2300 strex r3, r2, [r1]
  45396. 80137fc: 63bb str r3, [r7, #56] @ 0x38
  45397. return(result);
  45398. 80137fe: 6bbb ldr r3, [r7, #56] @ 0x38
  45399. 8013800: 2b00 cmp r3, #0
  45400. 8013802: d1e4 bne.n 80137ce <UART_RxISR_8BIT_FIFOEN+0x22e>
  45401. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45402. 8013804: 687b ldr r3, [r7, #4]
  45403. 8013806: 681b ldr r3, [r3, #0]
  45404. 8013808: 69db ldr r3, [r3, #28]
  45405. 801380a: f003 0310 and.w r3, r3, #16
  45406. 801380e: 2b10 cmp r3, #16
  45407. 8013810: d103 bne.n 801381a <UART_RxISR_8BIT_FIFOEN+0x27a>
  45408. {
  45409. /* Clear IDLE Flag */
  45410. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45411. 8013812: 687b ldr r3, [r7, #4]
  45412. 8013814: 681b ldr r3, [r3, #0]
  45413. 8013816: 2210 movs r2, #16
  45414. 8013818: 621a str r2, [r3, #32]
  45415. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45416. /*Call registered Rx Event callback*/
  45417. huart->RxEventCallback(huart, huart->RxXferSize);
  45418. #else
  45419. /*Call legacy weak Rx Event callback*/
  45420. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45421. 801381a: 687b ldr r3, [r7, #4]
  45422. 801381c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45423. 8013820: 4619 mov r1, r3
  45424. 8013822: 6878 ldr r0, [r7, #4]
  45425. 8013824: f7f1 f962 bl 8004aec <HAL_UARTEx_RxEventCallback>
  45426. 8013828: e002 b.n 8013830 <UART_RxISR_8BIT_FIFOEN+0x290>
  45427. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45428. /*Call registered Rx complete callback*/
  45429. huart->RxCpltCallback(huart);
  45430. #else
  45431. /*Call legacy weak Rx complete callback*/
  45432. HAL_UART_RxCpltCallback(huart);
  45433. 801382a: 6878 ldr r0, [r7, #4]
  45434. 801382c: f7f1 f954 bl 8004ad8 <HAL_UART_RxCpltCallback>
  45435. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45436. 8013830: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  45437. 8013834: 2b00 cmp r3, #0
  45438. 8013836: d006 beq.n 8013846 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  45439. 8013838: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45440. 801383c: f003 0320 and.w r3, r3, #32
  45441. 8013840: 2b00 cmp r3, #0
  45442. 8013842: f47f aed1 bne.w 80135e8 <UART_RxISR_8BIT_FIFOEN+0x48>
  45443. /* When remaining number of bytes to receive is less than the RX FIFO
  45444. threshold, next incoming frames are processed as if FIFO mode was
  45445. disabled (i.e. one interrupt per received frame).
  45446. */
  45447. rxdatacount = huart->RxXferCount;
  45448. 8013846: 687b ldr r3, [r7, #4]
  45449. 8013848: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45450. 801384c: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  45451. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45452. 8013850: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  45453. 8013854: 2b00 cmp r3, #0
  45454. 8013856: d049 beq.n 80138ec <UART_RxISR_8BIT_FIFOEN+0x34c>
  45455. 8013858: 687b ldr r3, [r7, #4]
  45456. 801385a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45457. 801385e: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  45458. 8013862: 429a cmp r2, r3
  45459. 8013864: d242 bcs.n 80138ec <UART_RxISR_8BIT_FIFOEN+0x34c>
  45460. {
  45461. /* Disable the UART RXFT interrupt*/
  45462. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45463. 8013866: 687b ldr r3, [r7, #4]
  45464. 8013868: 681b ldr r3, [r3, #0]
  45465. 801386a: 3308 adds r3, #8
  45466. 801386c: 623b str r3, [r7, #32]
  45467. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45468. 801386e: 6a3b ldr r3, [r7, #32]
  45469. 8013870: e853 3f00 ldrex r3, [r3]
  45470. 8013874: 61fb str r3, [r7, #28]
  45471. return(result);
  45472. 8013876: 69fb ldr r3, [r7, #28]
  45473. 8013878: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45474. 801387c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  45475. 8013880: 687b ldr r3, [r7, #4]
  45476. 8013882: 681b ldr r3, [r3, #0]
  45477. 8013884: 3308 adds r3, #8
  45478. 8013886: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  45479. 801388a: 62fa str r2, [r7, #44] @ 0x2c
  45480. 801388c: 62bb str r3, [r7, #40] @ 0x28
  45481. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45482. 801388e: 6ab9 ldr r1, [r7, #40] @ 0x28
  45483. 8013890: 6afa ldr r2, [r7, #44] @ 0x2c
  45484. 8013892: e841 2300 strex r3, r2, [r1]
  45485. 8013896: 627b str r3, [r7, #36] @ 0x24
  45486. return(result);
  45487. 8013898: 6a7b ldr r3, [r7, #36] @ 0x24
  45488. 801389a: 2b00 cmp r3, #0
  45489. 801389c: d1e3 bne.n 8013866 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  45490. /* Update the RxISR function pointer */
  45491. huart->RxISR = UART_RxISR_8BIT;
  45492. 801389e: 687b ldr r3, [r7, #4]
  45493. 80138a0: 4a16 ldr r2, [pc, #88] @ (80138fc <UART_RxISR_8BIT_FIFOEN+0x35c>)
  45494. 80138a2: 675a str r2, [r3, #116] @ 0x74
  45495. /* Enable the UART Data Register Not Empty interrupt */
  45496. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45497. 80138a4: 687b ldr r3, [r7, #4]
  45498. 80138a6: 681b ldr r3, [r3, #0]
  45499. 80138a8: 60fb str r3, [r7, #12]
  45500. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45501. 80138aa: 68fb ldr r3, [r7, #12]
  45502. 80138ac: e853 3f00 ldrex r3, [r3]
  45503. 80138b0: 60bb str r3, [r7, #8]
  45504. return(result);
  45505. 80138b2: 68bb ldr r3, [r7, #8]
  45506. 80138b4: f043 0320 orr.w r3, r3, #32
  45507. 80138b8: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45508. 80138bc: 687b ldr r3, [r7, #4]
  45509. 80138be: 681b ldr r3, [r3, #0]
  45510. 80138c0: 461a mov r2, r3
  45511. 80138c2: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  45512. 80138c6: 61bb str r3, [r7, #24]
  45513. 80138c8: 617a str r2, [r7, #20]
  45514. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45515. 80138ca: 6979 ldr r1, [r7, #20]
  45516. 80138cc: 69ba ldr r2, [r7, #24]
  45517. 80138ce: e841 2300 strex r3, r2, [r1]
  45518. 80138d2: 613b str r3, [r7, #16]
  45519. return(result);
  45520. 80138d4: 693b ldr r3, [r7, #16]
  45521. 80138d6: 2b00 cmp r3, #0
  45522. 80138d8: d1e4 bne.n 80138a4 <UART_RxISR_8BIT_FIFOEN+0x304>
  45523. else
  45524. {
  45525. /* Clear RXNE interrupt flag */
  45526. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45527. }
  45528. }
  45529. 80138da: e007 b.n 80138ec <UART_RxISR_8BIT_FIFOEN+0x34c>
  45530. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  45531. 80138dc: 687b ldr r3, [r7, #4]
  45532. 80138de: 681b ldr r3, [r3, #0]
  45533. 80138e0: 699a ldr r2, [r3, #24]
  45534. 80138e2: 687b ldr r3, [r7, #4]
  45535. 80138e4: 681b ldr r3, [r3, #0]
  45536. 80138e6: f042 0208 orr.w r2, r2, #8
  45537. 80138ea: 619a str r2, [r3, #24]
  45538. }
  45539. 80138ec: bf00 nop
  45540. 80138ee: 37b0 adds r7, #176 @ 0xb0
  45541. 80138f0: 46bd mov sp, r7
  45542. 80138f2: bd80 pop {r7, pc}
  45543. 80138f4: effffffe .word 0xeffffffe
  45544. 80138f8: 58000c00 .word 0x58000c00
  45545. 80138fc: 08013231 .word 0x08013231
  45546. 08013900 <UART_RxISR_16BIT_FIFOEN>:
  45547. * interruptions have been enabled by HAL_UART_Receive_IT()
  45548. * @param huart UART handle.
  45549. * @retval None
  45550. */
  45551. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  45552. {
  45553. 8013900: b580 push {r7, lr}
  45554. 8013902: b0ae sub sp, #184 @ 0xb8
  45555. 8013904: af00 add r7, sp, #0
  45556. 8013906: 6078 str r0, [r7, #4]
  45557. uint16_t *tmp;
  45558. uint16_t uhMask = huart->Mask;
  45559. 8013908: 687b ldr r3, [r7, #4]
  45560. 801390a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  45561. 801390e: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  45562. uint16_t uhdata;
  45563. uint16_t nb_rx_data;
  45564. uint16_t rxdatacount;
  45565. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  45566. 8013912: 687b ldr r3, [r7, #4]
  45567. 8013914: 681b ldr r3, [r3, #0]
  45568. 8013916: 69db ldr r3, [r3, #28]
  45569. 8013918: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45570. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  45571. 801391c: 687b ldr r3, [r7, #4]
  45572. 801391e: 681b ldr r3, [r3, #0]
  45573. 8013920: 681b ldr r3, [r3, #0]
  45574. 8013922: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  45575. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  45576. 8013926: 687b ldr r3, [r7, #4]
  45577. 8013928: 681b ldr r3, [r3, #0]
  45578. 801392a: 689b ldr r3, [r3, #8]
  45579. 801392c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  45580. /* Check that a Rx process is ongoing */
  45581. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  45582. 8013930: 687b ldr r3, [r7, #4]
  45583. 8013932: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  45584. 8013936: 2b22 cmp r3, #34 @ 0x22
  45585. 8013938: f040 8184 bne.w 8013c44 <UART_RxISR_16BIT_FIFOEN+0x344>
  45586. {
  45587. nb_rx_data = huart->NbRxDataToProcess;
  45588. 801393c: 687b ldr r3, [r7, #4]
  45589. 801393e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45590. 8013942: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  45591. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45592. 8013946: e127 b.n 8013b98 <UART_RxISR_16BIT_FIFOEN+0x298>
  45593. {
  45594. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  45595. 8013948: 687b ldr r3, [r7, #4]
  45596. 801394a: 681b ldr r3, [r3, #0]
  45597. 801394c: 6a5b ldr r3, [r3, #36] @ 0x24
  45598. 801394e: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  45599. tmp = (uint16_t *) huart->pRxBuffPtr ;
  45600. 8013952: 687b ldr r3, [r7, #4]
  45601. 8013954: 6d9b ldr r3, [r3, #88] @ 0x58
  45602. 8013956: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  45603. *tmp = (uint16_t)(uhdata & uhMask);
  45604. 801395a: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  45605. 801395e: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  45606. 8013962: 4013 ands r3, r2
  45607. 8013964: b29a uxth r2, r3
  45608. 8013966: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  45609. 801396a: 801a strh r2, [r3, #0]
  45610. huart->pRxBuffPtr += 2U;
  45611. 801396c: 687b ldr r3, [r7, #4]
  45612. 801396e: 6d9b ldr r3, [r3, #88] @ 0x58
  45613. 8013970: 1c9a adds r2, r3, #2
  45614. 8013972: 687b ldr r3, [r7, #4]
  45615. 8013974: 659a str r2, [r3, #88] @ 0x58
  45616. huart->RxXferCount--;
  45617. 8013976: 687b ldr r3, [r7, #4]
  45618. 8013978: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45619. 801397c: b29b uxth r3, r3
  45620. 801397e: 3b01 subs r3, #1
  45621. 8013980: b29a uxth r2, r3
  45622. 8013982: 687b ldr r3, [r7, #4]
  45623. 8013984: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  45624. isrflags = READ_REG(huart->Instance->ISR);
  45625. 8013988: 687b ldr r3, [r7, #4]
  45626. 801398a: 681b ldr r3, [r3, #0]
  45627. 801398c: 69db ldr r3, [r3, #28]
  45628. 801398e: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  45629. /* If some non blocking errors occurred */
  45630. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  45631. 8013992: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45632. 8013996: f003 0307 and.w r3, r3, #7
  45633. 801399a: 2b00 cmp r3, #0
  45634. 801399c: d053 beq.n 8013a46 <UART_RxISR_16BIT_FIFOEN+0x146>
  45635. {
  45636. /* UART parity error interrupt occurred -------------------------------------*/
  45637. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  45638. 801399e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45639. 80139a2: f003 0301 and.w r3, r3, #1
  45640. 80139a6: 2b00 cmp r3, #0
  45641. 80139a8: d011 beq.n 80139ce <UART_RxISR_16BIT_FIFOEN+0xce>
  45642. 80139aa: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  45643. 80139ae: f403 7380 and.w r3, r3, #256 @ 0x100
  45644. 80139b2: 2b00 cmp r3, #0
  45645. 80139b4: d00b beq.n 80139ce <UART_RxISR_16BIT_FIFOEN+0xce>
  45646. {
  45647. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  45648. 80139b6: 687b ldr r3, [r7, #4]
  45649. 80139b8: 681b ldr r3, [r3, #0]
  45650. 80139ba: 2201 movs r2, #1
  45651. 80139bc: 621a str r2, [r3, #32]
  45652. huart->ErrorCode |= HAL_UART_ERROR_PE;
  45653. 80139be: 687b ldr r3, [r7, #4]
  45654. 80139c0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45655. 80139c4: f043 0201 orr.w r2, r3, #1
  45656. 80139c8: 687b ldr r3, [r7, #4]
  45657. 80139ca: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45658. }
  45659. /* UART frame error interrupt occurred --------------------------------------*/
  45660. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45661. 80139ce: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45662. 80139d2: f003 0302 and.w r3, r3, #2
  45663. 80139d6: 2b00 cmp r3, #0
  45664. 80139d8: d011 beq.n 80139fe <UART_RxISR_16BIT_FIFOEN+0xfe>
  45665. 80139da: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45666. 80139de: f003 0301 and.w r3, r3, #1
  45667. 80139e2: 2b00 cmp r3, #0
  45668. 80139e4: d00b beq.n 80139fe <UART_RxISR_16BIT_FIFOEN+0xfe>
  45669. {
  45670. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  45671. 80139e6: 687b ldr r3, [r7, #4]
  45672. 80139e8: 681b ldr r3, [r3, #0]
  45673. 80139ea: 2202 movs r2, #2
  45674. 80139ec: 621a str r2, [r3, #32]
  45675. huart->ErrorCode |= HAL_UART_ERROR_FE;
  45676. 80139ee: 687b ldr r3, [r7, #4]
  45677. 80139f0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45678. 80139f4: f043 0204 orr.w r2, r3, #4
  45679. 80139f8: 687b ldr r3, [r7, #4]
  45680. 80139fa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45681. }
  45682. /* UART noise error interrupt occurred --------------------------------------*/
  45683. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  45684. 80139fe: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45685. 8013a02: f003 0304 and.w r3, r3, #4
  45686. 8013a06: 2b00 cmp r3, #0
  45687. 8013a08: d011 beq.n 8013a2e <UART_RxISR_16BIT_FIFOEN+0x12e>
  45688. 8013a0a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  45689. 8013a0e: f003 0301 and.w r3, r3, #1
  45690. 8013a12: 2b00 cmp r3, #0
  45691. 8013a14: d00b beq.n 8013a2e <UART_RxISR_16BIT_FIFOEN+0x12e>
  45692. {
  45693. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  45694. 8013a16: 687b ldr r3, [r7, #4]
  45695. 8013a18: 681b ldr r3, [r3, #0]
  45696. 8013a1a: 2204 movs r2, #4
  45697. 8013a1c: 621a str r2, [r3, #32]
  45698. huart->ErrorCode |= HAL_UART_ERROR_NE;
  45699. 8013a1e: 687b ldr r3, [r7, #4]
  45700. 8013a20: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45701. 8013a24: f043 0202 orr.w r2, r3, #2
  45702. 8013a28: 687b ldr r3, [r7, #4]
  45703. 8013a2a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45704. }
  45705. /* Call UART Error Call back function if need be ----------------------------*/
  45706. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  45707. 8013a2e: 687b ldr r3, [r7, #4]
  45708. 8013a30: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  45709. 8013a34: 2b00 cmp r3, #0
  45710. 8013a36: d006 beq.n 8013a46 <UART_RxISR_16BIT_FIFOEN+0x146>
  45711. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45712. /*Call registered error callback*/
  45713. huart->ErrorCallback(huart);
  45714. #else
  45715. /*Call legacy weak error callback*/
  45716. HAL_UART_ErrorCallback(huart);
  45717. 8013a38: 6878 ldr r0, [r7, #4]
  45718. 8013a3a: f7fe f961 bl 8011d00 <HAL_UART_ErrorCallback>
  45719. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  45720. huart->ErrorCode = HAL_UART_ERROR_NONE;
  45721. 8013a3e: 687b ldr r3, [r7, #4]
  45722. 8013a40: 2200 movs r2, #0
  45723. 8013a42: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  45724. }
  45725. }
  45726. if (huart->RxXferCount == 0U)
  45727. 8013a46: 687b ldr r3, [r7, #4]
  45728. 8013a48: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45729. 8013a4c: b29b uxth r3, r3
  45730. 8013a4e: 2b00 cmp r3, #0
  45731. 8013a50: f040 80a2 bne.w 8013b98 <UART_RxISR_16BIT_FIFOEN+0x298>
  45732. {
  45733. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  45734. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  45735. 8013a54: 687b ldr r3, [r7, #4]
  45736. 8013a56: 681b ldr r3, [r3, #0]
  45737. 8013a58: 677b str r3, [r7, #116] @ 0x74
  45738. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45739. 8013a5a: 6f7b ldr r3, [r7, #116] @ 0x74
  45740. 8013a5c: e853 3f00 ldrex r3, [r3]
  45741. 8013a60: 673b str r3, [r7, #112] @ 0x70
  45742. return(result);
  45743. 8013a62: 6f3b ldr r3, [r7, #112] @ 0x70
  45744. 8013a64: f423 7380 bic.w r3, r3, #256 @ 0x100
  45745. 8013a68: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  45746. 8013a6c: 687b ldr r3, [r7, #4]
  45747. 8013a6e: 681b ldr r3, [r3, #0]
  45748. 8013a70: 461a mov r2, r3
  45749. 8013a72: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  45750. 8013a76: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  45751. 8013a7a: 67fa str r2, [r7, #124] @ 0x7c
  45752. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45753. 8013a7c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  45754. 8013a7e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  45755. 8013a82: e841 2300 strex r3, r2, [r1]
  45756. 8013a86: 67bb str r3, [r7, #120] @ 0x78
  45757. return(result);
  45758. 8013a88: 6fbb ldr r3, [r7, #120] @ 0x78
  45759. 8013a8a: 2b00 cmp r3, #0
  45760. 8013a8c: d1e2 bne.n 8013a54 <UART_RxISR_16BIT_FIFOEN+0x154>
  45761. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  45762. and RX FIFO Threshold interrupt */
  45763. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  45764. 8013a8e: 687b ldr r3, [r7, #4]
  45765. 8013a90: 681b ldr r3, [r3, #0]
  45766. 8013a92: 3308 adds r3, #8
  45767. 8013a94: 663b str r3, [r7, #96] @ 0x60
  45768. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45769. 8013a96: 6e3b ldr r3, [r7, #96] @ 0x60
  45770. 8013a98: e853 3f00 ldrex r3, [r3]
  45771. 8013a9c: 65fb str r3, [r7, #92] @ 0x5c
  45772. return(result);
  45773. 8013a9e: 6dfa ldr r2, [r7, #92] @ 0x5c
  45774. 8013aa0: 4b6e ldr r3, [pc, #440] @ (8013c5c <UART_RxISR_16BIT_FIFOEN+0x35c>)
  45775. 8013aa2: 4013 ands r3, r2
  45776. 8013aa4: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  45777. 8013aa8: 687b ldr r3, [r7, #4]
  45778. 8013aaa: 681b ldr r3, [r3, #0]
  45779. 8013aac: 3308 adds r3, #8
  45780. 8013aae: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  45781. 8013ab2: 66fa str r2, [r7, #108] @ 0x6c
  45782. 8013ab4: 66bb str r3, [r7, #104] @ 0x68
  45783. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45784. 8013ab6: 6eb9 ldr r1, [r7, #104] @ 0x68
  45785. 8013ab8: 6efa ldr r2, [r7, #108] @ 0x6c
  45786. 8013aba: e841 2300 strex r3, r2, [r1]
  45787. 8013abe: 667b str r3, [r7, #100] @ 0x64
  45788. return(result);
  45789. 8013ac0: 6e7b ldr r3, [r7, #100] @ 0x64
  45790. 8013ac2: 2b00 cmp r3, #0
  45791. 8013ac4: d1e3 bne.n 8013a8e <UART_RxISR_16BIT_FIFOEN+0x18e>
  45792. /* Rx process is completed, restore huart->RxState to Ready */
  45793. huart->RxState = HAL_UART_STATE_READY;
  45794. 8013ac6: 687b ldr r3, [r7, #4]
  45795. 8013ac8: 2220 movs r2, #32
  45796. 8013aca: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  45797. /* Clear RxISR function pointer */
  45798. huart->RxISR = NULL;
  45799. 8013ace: 687b ldr r3, [r7, #4]
  45800. 8013ad0: 2200 movs r2, #0
  45801. 8013ad2: 675a str r2, [r3, #116] @ 0x74
  45802. /* Initialize type of RxEvent to Transfer Complete */
  45803. huart->RxEventType = HAL_UART_RXEVENT_TC;
  45804. 8013ad4: 687b ldr r3, [r7, #4]
  45805. 8013ad6: 2200 movs r2, #0
  45806. 8013ad8: 671a str r2, [r3, #112] @ 0x70
  45807. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  45808. 8013ada: 687b ldr r3, [r7, #4]
  45809. 8013adc: 681b ldr r3, [r3, #0]
  45810. 8013ade: 4a60 ldr r2, [pc, #384] @ (8013c60 <UART_RxISR_16BIT_FIFOEN+0x360>)
  45811. 8013ae0: 4293 cmp r3, r2
  45812. 8013ae2: d021 beq.n 8013b28 <UART_RxISR_16BIT_FIFOEN+0x228>
  45813. {
  45814. /* Check that USART RTOEN bit is set */
  45815. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  45816. 8013ae4: 687b ldr r3, [r7, #4]
  45817. 8013ae6: 681b ldr r3, [r3, #0]
  45818. 8013ae8: 685b ldr r3, [r3, #4]
  45819. 8013aea: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  45820. 8013aee: 2b00 cmp r3, #0
  45821. 8013af0: d01a beq.n 8013b28 <UART_RxISR_16BIT_FIFOEN+0x228>
  45822. {
  45823. /* Enable the UART Receiver Timeout Interrupt */
  45824. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  45825. 8013af2: 687b ldr r3, [r7, #4]
  45826. 8013af4: 681b ldr r3, [r3, #0]
  45827. 8013af6: 64fb str r3, [r7, #76] @ 0x4c
  45828. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45829. 8013af8: 6cfb ldr r3, [r7, #76] @ 0x4c
  45830. 8013afa: e853 3f00 ldrex r3, [r3]
  45831. 8013afe: 64bb str r3, [r7, #72] @ 0x48
  45832. return(result);
  45833. 8013b00: 6cbb ldr r3, [r7, #72] @ 0x48
  45834. 8013b02: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  45835. 8013b06: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  45836. 8013b0a: 687b ldr r3, [r7, #4]
  45837. 8013b0c: 681b ldr r3, [r3, #0]
  45838. 8013b0e: 461a mov r2, r3
  45839. 8013b10: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  45840. 8013b14: 65bb str r3, [r7, #88] @ 0x58
  45841. 8013b16: 657a str r2, [r7, #84] @ 0x54
  45842. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45843. 8013b18: 6d79 ldr r1, [r7, #84] @ 0x54
  45844. 8013b1a: 6dba ldr r2, [r7, #88] @ 0x58
  45845. 8013b1c: e841 2300 strex r3, r2, [r1]
  45846. 8013b20: 653b str r3, [r7, #80] @ 0x50
  45847. return(result);
  45848. 8013b22: 6d3b ldr r3, [r7, #80] @ 0x50
  45849. 8013b24: 2b00 cmp r3, #0
  45850. 8013b26: d1e4 bne.n 8013af2 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  45851. }
  45852. }
  45853. /* Check current reception Mode :
  45854. If Reception till IDLE event has been selected : */
  45855. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  45856. 8013b28: 687b ldr r3, [r7, #4]
  45857. 8013b2a: 6edb ldr r3, [r3, #108] @ 0x6c
  45858. 8013b2c: 2b01 cmp r3, #1
  45859. 8013b2e: d130 bne.n 8013b92 <UART_RxISR_16BIT_FIFOEN+0x292>
  45860. {
  45861. /* Set reception type to Standard */
  45862. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  45863. 8013b30: 687b ldr r3, [r7, #4]
  45864. 8013b32: 2200 movs r2, #0
  45865. 8013b34: 66da str r2, [r3, #108] @ 0x6c
  45866. /* Disable IDLE interrupt */
  45867. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  45868. 8013b36: 687b ldr r3, [r7, #4]
  45869. 8013b38: 681b ldr r3, [r3, #0]
  45870. 8013b3a: 63bb str r3, [r7, #56] @ 0x38
  45871. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45872. 8013b3c: 6bbb ldr r3, [r7, #56] @ 0x38
  45873. 8013b3e: e853 3f00 ldrex r3, [r3]
  45874. 8013b42: 637b str r3, [r7, #52] @ 0x34
  45875. return(result);
  45876. 8013b44: 6b7b ldr r3, [r7, #52] @ 0x34
  45877. 8013b46: f023 0310 bic.w r3, r3, #16
  45878. 8013b4a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  45879. 8013b4e: 687b ldr r3, [r7, #4]
  45880. 8013b50: 681b ldr r3, [r3, #0]
  45881. 8013b52: 461a mov r2, r3
  45882. 8013b54: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  45883. 8013b58: 647b str r3, [r7, #68] @ 0x44
  45884. 8013b5a: 643a str r2, [r7, #64] @ 0x40
  45885. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45886. 8013b5c: 6c39 ldr r1, [r7, #64] @ 0x40
  45887. 8013b5e: 6c7a ldr r2, [r7, #68] @ 0x44
  45888. 8013b60: e841 2300 strex r3, r2, [r1]
  45889. 8013b64: 63fb str r3, [r7, #60] @ 0x3c
  45890. return(result);
  45891. 8013b66: 6bfb ldr r3, [r7, #60] @ 0x3c
  45892. 8013b68: 2b00 cmp r3, #0
  45893. 8013b6a: d1e4 bne.n 8013b36 <UART_RxISR_16BIT_FIFOEN+0x236>
  45894. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  45895. 8013b6c: 687b ldr r3, [r7, #4]
  45896. 8013b6e: 681b ldr r3, [r3, #0]
  45897. 8013b70: 69db ldr r3, [r3, #28]
  45898. 8013b72: f003 0310 and.w r3, r3, #16
  45899. 8013b76: 2b10 cmp r3, #16
  45900. 8013b78: d103 bne.n 8013b82 <UART_RxISR_16BIT_FIFOEN+0x282>
  45901. {
  45902. /* Clear IDLE Flag */
  45903. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  45904. 8013b7a: 687b ldr r3, [r7, #4]
  45905. 8013b7c: 681b ldr r3, [r3, #0]
  45906. 8013b7e: 2210 movs r2, #16
  45907. 8013b80: 621a str r2, [r3, #32]
  45908. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45909. /*Call registered Rx Event callback*/
  45910. huart->RxEventCallback(huart, huart->RxXferSize);
  45911. #else
  45912. /*Call legacy weak Rx Event callback*/
  45913. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  45914. 8013b82: 687b ldr r3, [r7, #4]
  45915. 8013b84: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  45916. 8013b88: 4619 mov r1, r3
  45917. 8013b8a: 6878 ldr r0, [r7, #4]
  45918. 8013b8c: f7f0 ffae bl 8004aec <HAL_UARTEx_RxEventCallback>
  45919. 8013b90: e002 b.n 8013b98 <UART_RxISR_16BIT_FIFOEN+0x298>
  45920. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  45921. /*Call registered Rx complete callback*/
  45922. huart->RxCpltCallback(huart);
  45923. #else
  45924. /*Call legacy weak Rx complete callback*/
  45925. HAL_UART_RxCpltCallback(huart);
  45926. 8013b92: 6878 ldr r0, [r7, #4]
  45927. 8013b94: f7f0 ffa0 bl 8004ad8 <HAL_UART_RxCpltCallback>
  45928. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  45929. 8013b98: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  45930. 8013b9c: 2b00 cmp r3, #0
  45931. 8013b9e: d006 beq.n 8013bae <UART_RxISR_16BIT_FIFOEN+0x2ae>
  45932. 8013ba0: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  45933. 8013ba4: f003 0320 and.w r3, r3, #32
  45934. 8013ba8: 2b00 cmp r3, #0
  45935. 8013baa: f47f aecd bne.w 8013948 <UART_RxISR_16BIT_FIFOEN+0x48>
  45936. /* When remaining number of bytes to receive is less than the RX FIFO
  45937. threshold, next incoming frames are processed as if FIFO mode was
  45938. disabled (i.e. one interrupt per received frame).
  45939. */
  45940. rxdatacount = huart->RxXferCount;
  45941. 8013bae: 687b ldr r3, [r7, #4]
  45942. 8013bb0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  45943. 8013bb4: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  45944. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  45945. 8013bb8: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  45946. 8013bbc: 2b00 cmp r3, #0
  45947. 8013bbe: d049 beq.n 8013c54 <UART_RxISR_16BIT_FIFOEN+0x354>
  45948. 8013bc0: 687b ldr r3, [r7, #4]
  45949. 8013bc2: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  45950. 8013bc6: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  45951. 8013bca: 429a cmp r2, r3
  45952. 8013bcc: d242 bcs.n 8013c54 <UART_RxISR_16BIT_FIFOEN+0x354>
  45953. {
  45954. /* Disable the UART RXFT interrupt*/
  45955. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  45956. 8013bce: 687b ldr r3, [r7, #4]
  45957. 8013bd0: 681b ldr r3, [r3, #0]
  45958. 8013bd2: 3308 adds r3, #8
  45959. 8013bd4: 627b str r3, [r7, #36] @ 0x24
  45960. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45961. 8013bd6: 6a7b ldr r3, [r7, #36] @ 0x24
  45962. 8013bd8: e853 3f00 ldrex r3, [r3]
  45963. 8013bdc: 623b str r3, [r7, #32]
  45964. return(result);
  45965. 8013bde: 6a3b ldr r3, [r7, #32]
  45966. 8013be0: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  45967. 8013be4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  45968. 8013be8: 687b ldr r3, [r7, #4]
  45969. 8013bea: 681b ldr r3, [r3, #0]
  45970. 8013bec: 3308 adds r3, #8
  45971. 8013bee: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  45972. 8013bf2: 633a str r2, [r7, #48] @ 0x30
  45973. 8013bf4: 62fb str r3, [r7, #44] @ 0x2c
  45974. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  45975. 8013bf6: 6af9 ldr r1, [r7, #44] @ 0x2c
  45976. 8013bf8: 6b3a ldr r2, [r7, #48] @ 0x30
  45977. 8013bfa: e841 2300 strex r3, r2, [r1]
  45978. 8013bfe: 62bb str r3, [r7, #40] @ 0x28
  45979. return(result);
  45980. 8013c00: 6abb ldr r3, [r7, #40] @ 0x28
  45981. 8013c02: 2b00 cmp r3, #0
  45982. 8013c04: d1e3 bne.n 8013bce <UART_RxISR_16BIT_FIFOEN+0x2ce>
  45983. /* Update the RxISR function pointer */
  45984. huart->RxISR = UART_RxISR_16BIT;
  45985. 8013c06: 687b ldr r3, [r7, #4]
  45986. 8013c08: 4a16 ldr r2, [pc, #88] @ (8013c64 <UART_RxISR_16BIT_FIFOEN+0x364>)
  45987. 8013c0a: 675a str r2, [r3, #116] @ 0x74
  45988. /* Enable the UART Data Register Not Empty interrupt */
  45989. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  45990. 8013c0c: 687b ldr r3, [r7, #4]
  45991. 8013c0e: 681b ldr r3, [r3, #0]
  45992. 8013c10: 613b str r3, [r7, #16]
  45993. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  45994. 8013c12: 693b ldr r3, [r7, #16]
  45995. 8013c14: e853 3f00 ldrex r3, [r3]
  45996. 8013c18: 60fb str r3, [r7, #12]
  45997. return(result);
  45998. 8013c1a: 68fb ldr r3, [r7, #12]
  45999. 8013c1c: f043 0320 orr.w r3, r3, #32
  46000. 8013c20: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  46001. 8013c24: 687b ldr r3, [r7, #4]
  46002. 8013c26: 681b ldr r3, [r3, #0]
  46003. 8013c28: 461a mov r2, r3
  46004. 8013c2a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  46005. 8013c2e: 61fb str r3, [r7, #28]
  46006. 8013c30: 61ba str r2, [r7, #24]
  46007. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46008. 8013c32: 69b9 ldr r1, [r7, #24]
  46009. 8013c34: 69fa ldr r2, [r7, #28]
  46010. 8013c36: e841 2300 strex r3, r2, [r1]
  46011. 8013c3a: 617b str r3, [r7, #20]
  46012. return(result);
  46013. 8013c3c: 697b ldr r3, [r7, #20]
  46014. 8013c3e: 2b00 cmp r3, #0
  46015. 8013c40: d1e4 bne.n 8013c0c <UART_RxISR_16BIT_FIFOEN+0x30c>
  46016. else
  46017. {
  46018. /* Clear RXNE interrupt flag */
  46019. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46020. }
  46021. }
  46022. 8013c42: e007 b.n 8013c54 <UART_RxISR_16BIT_FIFOEN+0x354>
  46023. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  46024. 8013c44: 687b ldr r3, [r7, #4]
  46025. 8013c46: 681b ldr r3, [r3, #0]
  46026. 8013c48: 699a ldr r2, [r3, #24]
  46027. 8013c4a: 687b ldr r3, [r7, #4]
  46028. 8013c4c: 681b ldr r3, [r3, #0]
  46029. 8013c4e: f042 0208 orr.w r2, r2, #8
  46030. 8013c52: 619a str r2, [r3, #24]
  46031. }
  46032. 8013c54: bf00 nop
  46033. 8013c56: 37b8 adds r7, #184 @ 0xb8
  46034. 8013c58: 46bd mov sp, r7
  46035. 8013c5a: bd80 pop {r7, pc}
  46036. 8013c5c: effffffe .word 0xeffffffe
  46037. 8013c60: 58000c00 .word 0x58000c00
  46038. 8013c64: 080133e9 .word 0x080133e9
  46039. 08013c68 <HAL_UARTEx_WakeupCallback>:
  46040. * @brief UART wakeup from Stop mode callback.
  46041. * @param huart UART handle.
  46042. * @retval None
  46043. */
  46044. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  46045. {
  46046. 8013c68: b480 push {r7}
  46047. 8013c6a: b083 sub sp, #12
  46048. 8013c6c: af00 add r7, sp, #0
  46049. 8013c6e: 6078 str r0, [r7, #4]
  46050. UNUSED(huart);
  46051. /* NOTE : This function should not be modified, when the callback is needed,
  46052. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  46053. */
  46054. }
  46055. 8013c70: bf00 nop
  46056. 8013c72: 370c adds r7, #12
  46057. 8013c74: 46bd mov sp, r7
  46058. 8013c76: f85d 7b04 ldr.w r7, [sp], #4
  46059. 8013c7a: 4770 bx lr
  46060. 08013c7c <HAL_UARTEx_RxFifoFullCallback>:
  46061. * @brief UART RX Fifo full callback.
  46062. * @param huart UART handle.
  46063. * @retval None
  46064. */
  46065. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  46066. {
  46067. 8013c7c: b480 push {r7}
  46068. 8013c7e: b083 sub sp, #12
  46069. 8013c80: af00 add r7, sp, #0
  46070. 8013c82: 6078 str r0, [r7, #4]
  46071. UNUSED(huart);
  46072. /* NOTE : This function should not be modified, when the callback is needed,
  46073. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  46074. */
  46075. }
  46076. 8013c84: bf00 nop
  46077. 8013c86: 370c adds r7, #12
  46078. 8013c88: 46bd mov sp, r7
  46079. 8013c8a: f85d 7b04 ldr.w r7, [sp], #4
  46080. 8013c8e: 4770 bx lr
  46081. 08013c90 <HAL_UARTEx_TxFifoEmptyCallback>:
  46082. * @brief UART TX Fifo empty callback.
  46083. * @param huart UART handle.
  46084. * @retval None
  46085. */
  46086. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  46087. {
  46088. 8013c90: b480 push {r7}
  46089. 8013c92: b083 sub sp, #12
  46090. 8013c94: af00 add r7, sp, #0
  46091. 8013c96: 6078 str r0, [r7, #4]
  46092. UNUSED(huart);
  46093. /* NOTE : This function should not be modified, when the callback is needed,
  46094. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  46095. */
  46096. }
  46097. 8013c98: bf00 nop
  46098. 8013c9a: 370c adds r7, #12
  46099. 8013c9c: 46bd mov sp, r7
  46100. 8013c9e: f85d 7b04 ldr.w r7, [sp], #4
  46101. 8013ca2: 4770 bx lr
  46102. 08013ca4 <HAL_UARTEx_DisableFifoMode>:
  46103. * @brief Disable the FIFO mode.
  46104. * @param huart UART handle.
  46105. * @retval HAL status
  46106. */
  46107. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  46108. {
  46109. 8013ca4: b480 push {r7}
  46110. 8013ca6: b085 sub sp, #20
  46111. 8013ca8: af00 add r7, sp, #0
  46112. 8013caa: 6078 str r0, [r7, #4]
  46113. /* Check parameters */
  46114. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46115. /* Process Locked */
  46116. __HAL_LOCK(huart);
  46117. 8013cac: 687b ldr r3, [r7, #4]
  46118. 8013cae: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46119. 8013cb2: 2b01 cmp r3, #1
  46120. 8013cb4: d101 bne.n 8013cba <HAL_UARTEx_DisableFifoMode+0x16>
  46121. 8013cb6: 2302 movs r3, #2
  46122. 8013cb8: e027 b.n 8013d0a <HAL_UARTEx_DisableFifoMode+0x66>
  46123. 8013cba: 687b ldr r3, [r7, #4]
  46124. 8013cbc: 2201 movs r2, #1
  46125. 8013cbe: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46126. huart->gState = HAL_UART_STATE_BUSY;
  46127. 8013cc2: 687b ldr r3, [r7, #4]
  46128. 8013cc4: 2224 movs r2, #36 @ 0x24
  46129. 8013cc6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46130. /* Save actual UART configuration */
  46131. tmpcr1 = READ_REG(huart->Instance->CR1);
  46132. 8013cca: 687b ldr r3, [r7, #4]
  46133. 8013ccc: 681b ldr r3, [r3, #0]
  46134. 8013cce: 681b ldr r3, [r3, #0]
  46135. 8013cd0: 60fb str r3, [r7, #12]
  46136. /* Disable UART */
  46137. __HAL_UART_DISABLE(huart);
  46138. 8013cd2: 687b ldr r3, [r7, #4]
  46139. 8013cd4: 681b ldr r3, [r3, #0]
  46140. 8013cd6: 681a ldr r2, [r3, #0]
  46141. 8013cd8: 687b ldr r3, [r7, #4]
  46142. 8013cda: 681b ldr r3, [r3, #0]
  46143. 8013cdc: f022 0201 bic.w r2, r2, #1
  46144. 8013ce0: 601a str r2, [r3, #0]
  46145. /* Enable FIFO mode */
  46146. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  46147. 8013ce2: 68fb ldr r3, [r7, #12]
  46148. 8013ce4: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  46149. 8013ce8: 60fb str r3, [r7, #12]
  46150. huart->FifoMode = UART_FIFOMODE_DISABLE;
  46151. 8013cea: 687b ldr r3, [r7, #4]
  46152. 8013cec: 2200 movs r2, #0
  46153. 8013cee: 665a str r2, [r3, #100] @ 0x64
  46154. /* Restore UART configuration */
  46155. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46156. 8013cf0: 687b ldr r3, [r7, #4]
  46157. 8013cf2: 681b ldr r3, [r3, #0]
  46158. 8013cf4: 68fa ldr r2, [r7, #12]
  46159. 8013cf6: 601a str r2, [r3, #0]
  46160. huart->gState = HAL_UART_STATE_READY;
  46161. 8013cf8: 687b ldr r3, [r7, #4]
  46162. 8013cfa: 2220 movs r2, #32
  46163. 8013cfc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46164. /* Process Unlocked */
  46165. __HAL_UNLOCK(huart);
  46166. 8013d00: 687b ldr r3, [r7, #4]
  46167. 8013d02: 2200 movs r2, #0
  46168. 8013d04: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46169. return HAL_OK;
  46170. 8013d08: 2300 movs r3, #0
  46171. }
  46172. 8013d0a: 4618 mov r0, r3
  46173. 8013d0c: 3714 adds r7, #20
  46174. 8013d0e: 46bd mov sp, r7
  46175. 8013d10: f85d 7b04 ldr.w r7, [sp], #4
  46176. 8013d14: 4770 bx lr
  46177. 08013d16 <HAL_UARTEx_SetTxFifoThreshold>:
  46178. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  46179. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  46180. * @retval HAL status
  46181. */
  46182. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46183. {
  46184. 8013d16: b580 push {r7, lr}
  46185. 8013d18: b084 sub sp, #16
  46186. 8013d1a: af00 add r7, sp, #0
  46187. 8013d1c: 6078 str r0, [r7, #4]
  46188. 8013d1e: 6039 str r1, [r7, #0]
  46189. /* Check parameters */
  46190. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46191. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  46192. /* Process Locked */
  46193. __HAL_LOCK(huart);
  46194. 8013d20: 687b ldr r3, [r7, #4]
  46195. 8013d22: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46196. 8013d26: 2b01 cmp r3, #1
  46197. 8013d28: d101 bne.n 8013d2e <HAL_UARTEx_SetTxFifoThreshold+0x18>
  46198. 8013d2a: 2302 movs r3, #2
  46199. 8013d2c: e02d b.n 8013d8a <HAL_UARTEx_SetTxFifoThreshold+0x74>
  46200. 8013d2e: 687b ldr r3, [r7, #4]
  46201. 8013d30: 2201 movs r2, #1
  46202. 8013d32: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46203. huart->gState = HAL_UART_STATE_BUSY;
  46204. 8013d36: 687b ldr r3, [r7, #4]
  46205. 8013d38: 2224 movs r2, #36 @ 0x24
  46206. 8013d3a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46207. /* Save actual UART configuration */
  46208. tmpcr1 = READ_REG(huart->Instance->CR1);
  46209. 8013d3e: 687b ldr r3, [r7, #4]
  46210. 8013d40: 681b ldr r3, [r3, #0]
  46211. 8013d42: 681b ldr r3, [r3, #0]
  46212. 8013d44: 60fb str r3, [r7, #12]
  46213. /* Disable UART */
  46214. __HAL_UART_DISABLE(huart);
  46215. 8013d46: 687b ldr r3, [r7, #4]
  46216. 8013d48: 681b ldr r3, [r3, #0]
  46217. 8013d4a: 681a ldr r2, [r3, #0]
  46218. 8013d4c: 687b ldr r3, [r7, #4]
  46219. 8013d4e: 681b ldr r3, [r3, #0]
  46220. 8013d50: f022 0201 bic.w r2, r2, #1
  46221. 8013d54: 601a str r2, [r3, #0]
  46222. /* Update TX threshold configuration */
  46223. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  46224. 8013d56: 687b ldr r3, [r7, #4]
  46225. 8013d58: 681b ldr r3, [r3, #0]
  46226. 8013d5a: 689b ldr r3, [r3, #8]
  46227. 8013d5c: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  46228. 8013d60: 687b ldr r3, [r7, #4]
  46229. 8013d62: 681b ldr r3, [r3, #0]
  46230. 8013d64: 683a ldr r2, [r7, #0]
  46231. 8013d66: 430a orrs r2, r1
  46232. 8013d68: 609a str r2, [r3, #8]
  46233. /* Determine the number of data to process during RX/TX ISR execution */
  46234. UARTEx_SetNbDataToProcess(huart);
  46235. 8013d6a: 6878 ldr r0, [r7, #4]
  46236. 8013d6c: f000 f8a0 bl 8013eb0 <UARTEx_SetNbDataToProcess>
  46237. /* Restore UART configuration */
  46238. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46239. 8013d70: 687b ldr r3, [r7, #4]
  46240. 8013d72: 681b ldr r3, [r3, #0]
  46241. 8013d74: 68fa ldr r2, [r7, #12]
  46242. 8013d76: 601a str r2, [r3, #0]
  46243. huart->gState = HAL_UART_STATE_READY;
  46244. 8013d78: 687b ldr r3, [r7, #4]
  46245. 8013d7a: 2220 movs r2, #32
  46246. 8013d7c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46247. /* Process Unlocked */
  46248. __HAL_UNLOCK(huart);
  46249. 8013d80: 687b ldr r3, [r7, #4]
  46250. 8013d82: 2200 movs r2, #0
  46251. 8013d84: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46252. return HAL_OK;
  46253. 8013d88: 2300 movs r3, #0
  46254. }
  46255. 8013d8a: 4618 mov r0, r3
  46256. 8013d8c: 3710 adds r7, #16
  46257. 8013d8e: 46bd mov sp, r7
  46258. 8013d90: bd80 pop {r7, pc}
  46259. 08013d92 <HAL_UARTEx_SetRxFifoThreshold>:
  46260. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  46261. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  46262. * @retval HAL status
  46263. */
  46264. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  46265. {
  46266. 8013d92: b580 push {r7, lr}
  46267. 8013d94: b084 sub sp, #16
  46268. 8013d96: af00 add r7, sp, #0
  46269. 8013d98: 6078 str r0, [r7, #4]
  46270. 8013d9a: 6039 str r1, [r7, #0]
  46271. /* Check the parameters */
  46272. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  46273. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  46274. /* Process Locked */
  46275. __HAL_LOCK(huart);
  46276. 8013d9c: 687b ldr r3, [r7, #4]
  46277. 8013d9e: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  46278. 8013da2: 2b01 cmp r3, #1
  46279. 8013da4: d101 bne.n 8013daa <HAL_UARTEx_SetRxFifoThreshold+0x18>
  46280. 8013da6: 2302 movs r3, #2
  46281. 8013da8: e02d b.n 8013e06 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  46282. 8013daa: 687b ldr r3, [r7, #4]
  46283. 8013dac: 2201 movs r2, #1
  46284. 8013dae: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46285. huart->gState = HAL_UART_STATE_BUSY;
  46286. 8013db2: 687b ldr r3, [r7, #4]
  46287. 8013db4: 2224 movs r2, #36 @ 0x24
  46288. 8013db6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46289. /* Save actual UART configuration */
  46290. tmpcr1 = READ_REG(huart->Instance->CR1);
  46291. 8013dba: 687b ldr r3, [r7, #4]
  46292. 8013dbc: 681b ldr r3, [r3, #0]
  46293. 8013dbe: 681b ldr r3, [r3, #0]
  46294. 8013dc0: 60fb str r3, [r7, #12]
  46295. /* Disable UART */
  46296. __HAL_UART_DISABLE(huart);
  46297. 8013dc2: 687b ldr r3, [r7, #4]
  46298. 8013dc4: 681b ldr r3, [r3, #0]
  46299. 8013dc6: 681a ldr r2, [r3, #0]
  46300. 8013dc8: 687b ldr r3, [r7, #4]
  46301. 8013dca: 681b ldr r3, [r3, #0]
  46302. 8013dcc: f022 0201 bic.w r2, r2, #1
  46303. 8013dd0: 601a str r2, [r3, #0]
  46304. /* Update RX threshold configuration */
  46305. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  46306. 8013dd2: 687b ldr r3, [r7, #4]
  46307. 8013dd4: 681b ldr r3, [r3, #0]
  46308. 8013dd6: 689b ldr r3, [r3, #8]
  46309. 8013dd8: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  46310. 8013ddc: 687b ldr r3, [r7, #4]
  46311. 8013dde: 681b ldr r3, [r3, #0]
  46312. 8013de0: 683a ldr r2, [r7, #0]
  46313. 8013de2: 430a orrs r2, r1
  46314. 8013de4: 609a str r2, [r3, #8]
  46315. /* Determine the number of data to process during RX/TX ISR execution */
  46316. UARTEx_SetNbDataToProcess(huart);
  46317. 8013de6: 6878 ldr r0, [r7, #4]
  46318. 8013de8: f000 f862 bl 8013eb0 <UARTEx_SetNbDataToProcess>
  46319. /* Restore UART configuration */
  46320. WRITE_REG(huart->Instance->CR1, tmpcr1);
  46321. 8013dec: 687b ldr r3, [r7, #4]
  46322. 8013dee: 681b ldr r3, [r3, #0]
  46323. 8013df0: 68fa ldr r2, [r7, #12]
  46324. 8013df2: 601a str r2, [r3, #0]
  46325. huart->gState = HAL_UART_STATE_READY;
  46326. 8013df4: 687b ldr r3, [r7, #4]
  46327. 8013df6: 2220 movs r2, #32
  46328. 8013df8: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  46329. /* Process Unlocked */
  46330. __HAL_UNLOCK(huart);
  46331. 8013dfc: 687b ldr r3, [r7, #4]
  46332. 8013dfe: 2200 movs r2, #0
  46333. 8013e00: f883 2084 strb.w r2, [r3, #132] @ 0x84
  46334. return HAL_OK;
  46335. 8013e04: 2300 movs r3, #0
  46336. }
  46337. 8013e06: 4618 mov r0, r3
  46338. 8013e08: 3710 adds r7, #16
  46339. 8013e0a: 46bd mov sp, r7
  46340. 8013e0c: bd80 pop {r7, pc}
  46341. 08013e0e <HAL_UARTEx_ReceiveToIdle_IT>:
  46342. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  46343. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  46344. * @retval HAL status
  46345. */
  46346. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  46347. {
  46348. 8013e0e: b580 push {r7, lr}
  46349. 8013e10: b08c sub sp, #48 @ 0x30
  46350. 8013e12: af00 add r7, sp, #0
  46351. 8013e14: 60f8 str r0, [r7, #12]
  46352. 8013e16: 60b9 str r1, [r7, #8]
  46353. 8013e18: 4613 mov r3, r2
  46354. 8013e1a: 80fb strh r3, [r7, #6]
  46355. HAL_StatusTypeDef status = HAL_OK;
  46356. 8013e1c: 2300 movs r3, #0
  46357. 8013e1e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46358. /* Check that a Rx process is not already ongoing */
  46359. if (huart->RxState == HAL_UART_STATE_READY)
  46360. 8013e22: 68fb ldr r3, [r7, #12]
  46361. 8013e24: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  46362. 8013e28: 2b20 cmp r3, #32
  46363. 8013e2a: d13b bne.n 8013ea4 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  46364. {
  46365. if ((pData == NULL) || (Size == 0U))
  46366. 8013e2c: 68bb ldr r3, [r7, #8]
  46367. 8013e2e: 2b00 cmp r3, #0
  46368. 8013e30: d002 beq.n 8013e38 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  46369. 8013e32: 88fb ldrh r3, [r7, #6]
  46370. 8013e34: 2b00 cmp r3, #0
  46371. 8013e36: d101 bne.n 8013e3c <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  46372. {
  46373. return HAL_ERROR;
  46374. 8013e38: 2301 movs r3, #1
  46375. 8013e3a: e034 b.n 8013ea6 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46376. }
  46377. /* Set Reception type to reception till IDLE Event*/
  46378. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  46379. 8013e3c: 68fb ldr r3, [r7, #12]
  46380. 8013e3e: 2201 movs r2, #1
  46381. 8013e40: 66da str r2, [r3, #108] @ 0x6c
  46382. huart->RxEventType = HAL_UART_RXEVENT_TC;
  46383. 8013e42: 68fb ldr r3, [r7, #12]
  46384. 8013e44: 2200 movs r2, #0
  46385. 8013e46: 671a str r2, [r3, #112] @ 0x70
  46386. (void)UART_Start_Receive_IT(huart, pData, Size);
  46387. 8013e48: 88fb ldrh r3, [r7, #6]
  46388. 8013e4a: 461a mov r2, r3
  46389. 8013e4c: 68b9 ldr r1, [r7, #8]
  46390. 8013e4e: 68f8 ldr r0, [r7, #12]
  46391. 8013e50: f7fe fe82 bl 8012b58 <UART_Start_Receive_IT>
  46392. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  46393. 8013e54: 68fb ldr r3, [r7, #12]
  46394. 8013e56: 6edb ldr r3, [r3, #108] @ 0x6c
  46395. 8013e58: 2b01 cmp r3, #1
  46396. 8013e5a: d11d bne.n 8013e98 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  46397. {
  46398. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  46399. 8013e5c: 68fb ldr r3, [r7, #12]
  46400. 8013e5e: 681b ldr r3, [r3, #0]
  46401. 8013e60: 2210 movs r2, #16
  46402. 8013e62: 621a str r2, [r3, #32]
  46403. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  46404. 8013e64: 68fb ldr r3, [r7, #12]
  46405. 8013e66: 681b ldr r3, [r3, #0]
  46406. 8013e68: 61bb str r3, [r7, #24]
  46407. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  46408. 8013e6a: 69bb ldr r3, [r7, #24]
  46409. 8013e6c: e853 3f00 ldrex r3, [r3]
  46410. 8013e70: 617b str r3, [r7, #20]
  46411. return(result);
  46412. 8013e72: 697b ldr r3, [r7, #20]
  46413. 8013e74: f043 0310 orr.w r3, r3, #16
  46414. 8013e78: 62bb str r3, [r7, #40] @ 0x28
  46415. 8013e7a: 68fb ldr r3, [r7, #12]
  46416. 8013e7c: 681b ldr r3, [r3, #0]
  46417. 8013e7e: 461a mov r2, r3
  46418. 8013e80: 6abb ldr r3, [r7, #40] @ 0x28
  46419. 8013e82: 627b str r3, [r7, #36] @ 0x24
  46420. 8013e84: 623a str r2, [r7, #32]
  46421. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  46422. 8013e86: 6a39 ldr r1, [r7, #32]
  46423. 8013e88: 6a7a ldr r2, [r7, #36] @ 0x24
  46424. 8013e8a: e841 2300 strex r3, r2, [r1]
  46425. 8013e8e: 61fb str r3, [r7, #28]
  46426. return(result);
  46427. 8013e90: 69fb ldr r3, [r7, #28]
  46428. 8013e92: 2b00 cmp r3, #0
  46429. 8013e94: d1e6 bne.n 8013e64 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  46430. 8013e96: e002 b.n 8013e9e <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  46431. {
  46432. /* In case of errors already pending when reception is started,
  46433. Interrupts may have already been raised and lead to reception abortion.
  46434. (Overrun error for instance).
  46435. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  46436. status = HAL_ERROR;
  46437. 8013e98: 2301 movs r3, #1
  46438. 8013e9a: f887 302f strb.w r3, [r7, #47] @ 0x2f
  46439. }
  46440. return status;
  46441. 8013e9e: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  46442. 8013ea2: e000 b.n 8013ea6 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  46443. }
  46444. else
  46445. {
  46446. return HAL_BUSY;
  46447. 8013ea4: 2302 movs r3, #2
  46448. }
  46449. }
  46450. 8013ea6: 4618 mov r0, r3
  46451. 8013ea8: 3730 adds r7, #48 @ 0x30
  46452. 8013eaa: 46bd mov sp, r7
  46453. 8013eac: bd80 pop {r7, pc}
  46454. ...
  46455. 08013eb0 <UARTEx_SetNbDataToProcess>:
  46456. * the UART configuration registers.
  46457. * @param huart UART handle.
  46458. * @retval None
  46459. */
  46460. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  46461. {
  46462. 8013eb0: b480 push {r7}
  46463. 8013eb2: b085 sub sp, #20
  46464. 8013eb4: af00 add r7, sp, #0
  46465. 8013eb6: 6078 str r0, [r7, #4]
  46466. uint8_t rx_fifo_threshold;
  46467. uint8_t tx_fifo_threshold;
  46468. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  46469. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  46470. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  46471. 8013eb8: 687b ldr r3, [r7, #4]
  46472. 8013eba: 6e5b ldr r3, [r3, #100] @ 0x64
  46473. 8013ebc: 2b00 cmp r3, #0
  46474. 8013ebe: d108 bne.n 8013ed2 <UARTEx_SetNbDataToProcess+0x22>
  46475. {
  46476. huart->NbTxDataToProcess = 1U;
  46477. 8013ec0: 687b ldr r3, [r7, #4]
  46478. 8013ec2: 2201 movs r2, #1
  46479. 8013ec4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46480. huart->NbRxDataToProcess = 1U;
  46481. 8013ec8: 687b ldr r3, [r7, #4]
  46482. 8013eca: 2201 movs r2, #1
  46483. 8013ecc: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46484. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46485. (uint16_t)denominator[tx_fifo_threshold];
  46486. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46487. (uint16_t)denominator[rx_fifo_threshold];
  46488. }
  46489. }
  46490. 8013ed0: e031 b.n 8013f36 <UARTEx_SetNbDataToProcess+0x86>
  46491. rx_fifo_depth = RX_FIFO_DEPTH;
  46492. 8013ed2: 2310 movs r3, #16
  46493. 8013ed4: 73fb strb r3, [r7, #15]
  46494. tx_fifo_depth = TX_FIFO_DEPTH;
  46495. 8013ed6: 2310 movs r3, #16
  46496. 8013ed8: 73bb strb r3, [r7, #14]
  46497. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  46498. 8013eda: 687b ldr r3, [r7, #4]
  46499. 8013edc: 681b ldr r3, [r3, #0]
  46500. 8013ede: 689b ldr r3, [r3, #8]
  46501. 8013ee0: 0e5b lsrs r3, r3, #25
  46502. 8013ee2: b2db uxtb r3, r3
  46503. 8013ee4: f003 0307 and.w r3, r3, #7
  46504. 8013ee8: 737b strb r3, [r7, #13]
  46505. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  46506. 8013eea: 687b ldr r3, [r7, #4]
  46507. 8013eec: 681b ldr r3, [r3, #0]
  46508. 8013eee: 689b ldr r3, [r3, #8]
  46509. 8013ef0: 0f5b lsrs r3, r3, #29
  46510. 8013ef2: b2db uxtb r3, r3
  46511. 8013ef4: f003 0307 and.w r3, r3, #7
  46512. 8013ef8: 733b strb r3, [r7, #12]
  46513. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46514. 8013efa: 7bbb ldrb r3, [r7, #14]
  46515. 8013efc: 7b3a ldrb r2, [r7, #12]
  46516. 8013efe: 4911 ldr r1, [pc, #68] @ (8013f44 <UARTEx_SetNbDataToProcess+0x94>)
  46517. 8013f00: 5c8a ldrb r2, [r1, r2]
  46518. 8013f02: fb02 f303 mul.w r3, r2, r3
  46519. (uint16_t)denominator[tx_fifo_threshold];
  46520. 8013f06: 7b3a ldrb r2, [r7, #12]
  46521. 8013f08: 490f ldr r1, [pc, #60] @ (8013f48 <UARTEx_SetNbDataToProcess+0x98>)
  46522. 8013f0a: 5c8a ldrb r2, [r1, r2]
  46523. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  46524. 8013f0c: fb93 f3f2 sdiv r3, r3, r2
  46525. 8013f10: b29a uxth r2, r3
  46526. 8013f12: 687b ldr r3, [r7, #4]
  46527. 8013f14: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  46528. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46529. 8013f18: 7bfb ldrb r3, [r7, #15]
  46530. 8013f1a: 7b7a ldrb r2, [r7, #13]
  46531. 8013f1c: 4909 ldr r1, [pc, #36] @ (8013f44 <UARTEx_SetNbDataToProcess+0x94>)
  46532. 8013f1e: 5c8a ldrb r2, [r1, r2]
  46533. 8013f20: fb02 f303 mul.w r3, r2, r3
  46534. (uint16_t)denominator[rx_fifo_threshold];
  46535. 8013f24: 7b7a ldrb r2, [r7, #13]
  46536. 8013f26: 4908 ldr r1, [pc, #32] @ (8013f48 <UARTEx_SetNbDataToProcess+0x98>)
  46537. 8013f28: 5c8a ldrb r2, [r1, r2]
  46538. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  46539. 8013f2a: fb93 f3f2 sdiv r3, r3, r2
  46540. 8013f2e: b29a uxth r2, r3
  46541. 8013f30: 687b ldr r3, [r7, #4]
  46542. 8013f32: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  46543. }
  46544. 8013f36: bf00 nop
  46545. 8013f38: 3714 adds r7, #20
  46546. 8013f3a: 46bd mov sp, r7
  46547. 8013f3c: f85d 7b04 ldr.w r7, [sp], #4
  46548. 8013f40: 4770 bx lr
  46549. 8013f42: bf00 nop
  46550. 8013f44: 0801873c .word 0x0801873c
  46551. 8013f48: 08018744 .word 0x08018744
  46552. 08013f4c <__NVIC_SetPriority>:
  46553. {
  46554. 8013f4c: b480 push {r7}
  46555. 8013f4e: b083 sub sp, #12
  46556. 8013f50: af00 add r7, sp, #0
  46557. 8013f52: 4603 mov r3, r0
  46558. 8013f54: 6039 str r1, [r7, #0]
  46559. 8013f56: 80fb strh r3, [r7, #6]
  46560. if ((int32_t)(IRQn) >= 0)
  46561. 8013f58: f9b7 3006 ldrsh.w r3, [r7, #6]
  46562. 8013f5c: 2b00 cmp r3, #0
  46563. 8013f5e: db0a blt.n 8013f76 <__NVIC_SetPriority+0x2a>
  46564. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46565. 8013f60: 683b ldr r3, [r7, #0]
  46566. 8013f62: b2da uxtb r2, r3
  46567. 8013f64: 490c ldr r1, [pc, #48] @ (8013f98 <__NVIC_SetPriority+0x4c>)
  46568. 8013f66: f9b7 3006 ldrsh.w r3, [r7, #6]
  46569. 8013f6a: 0112 lsls r2, r2, #4
  46570. 8013f6c: b2d2 uxtb r2, r2
  46571. 8013f6e: 440b add r3, r1
  46572. 8013f70: f883 2300 strb.w r2, [r3, #768] @ 0x300
  46573. }
  46574. 8013f74: e00a b.n 8013f8c <__NVIC_SetPriority+0x40>
  46575. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  46576. 8013f76: 683b ldr r3, [r7, #0]
  46577. 8013f78: b2da uxtb r2, r3
  46578. 8013f7a: 4908 ldr r1, [pc, #32] @ (8013f9c <__NVIC_SetPriority+0x50>)
  46579. 8013f7c: 88fb ldrh r3, [r7, #6]
  46580. 8013f7e: f003 030f and.w r3, r3, #15
  46581. 8013f82: 3b04 subs r3, #4
  46582. 8013f84: 0112 lsls r2, r2, #4
  46583. 8013f86: b2d2 uxtb r2, r2
  46584. 8013f88: 440b add r3, r1
  46585. 8013f8a: 761a strb r2, [r3, #24]
  46586. }
  46587. 8013f8c: bf00 nop
  46588. 8013f8e: 370c adds r7, #12
  46589. 8013f90: 46bd mov sp, r7
  46590. 8013f92: f85d 7b04 ldr.w r7, [sp], #4
  46591. 8013f96: 4770 bx lr
  46592. 8013f98: e000e100 .word 0xe000e100
  46593. 8013f9c: e000ed00 .word 0xe000ed00
  46594. 08013fa0 <SysTick_Handler>:
  46595. /*
  46596. SysTick handler implementation that also clears overflow flag.
  46597. */
  46598. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  46599. void SysTick_Handler (void) {
  46600. 8013fa0: b580 push {r7, lr}
  46601. 8013fa2: af00 add r7, sp, #0
  46602. /* Clear overflow flag */
  46603. SysTick->CTRL;
  46604. 8013fa4: 4b05 ldr r3, [pc, #20] @ (8013fbc <SysTick_Handler+0x1c>)
  46605. 8013fa6: 681b ldr r3, [r3, #0]
  46606. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  46607. 8013fa8: f002 fd1e bl 80169e8 <xTaskGetSchedulerState>
  46608. 8013fac: 4603 mov r3, r0
  46609. 8013fae: 2b01 cmp r3, #1
  46610. 8013fb0: d001 beq.n 8013fb6 <SysTick_Handler+0x16>
  46611. /* Call tick handler */
  46612. xPortSysTickHandler();
  46613. 8013fb2: f003 ff31 bl 8017e18 <xPortSysTickHandler>
  46614. }
  46615. }
  46616. 8013fb6: bf00 nop
  46617. 8013fb8: bd80 pop {r7, pc}
  46618. 8013fba: bf00 nop
  46619. 8013fbc: e000e010 .word 0xe000e010
  46620. 08013fc0 <SVC_Setup>:
  46621. #endif /* SysTick */
  46622. /*
  46623. Setup SVC to reset value.
  46624. */
  46625. __STATIC_INLINE void SVC_Setup (void) {
  46626. 8013fc0: b580 push {r7, lr}
  46627. 8013fc2: af00 add r7, sp, #0
  46628. #if (__ARM_ARCH_7A__ == 0U)
  46629. /* Service Call interrupt might be configured before kernel start */
  46630. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  46631. /* causes a Hard Fault. */
  46632. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  46633. 8013fc4: 2100 movs r1, #0
  46634. 8013fc6: f06f 0004 mvn.w r0, #4
  46635. 8013fca: f7ff ffbf bl 8013f4c <__NVIC_SetPriority>
  46636. #endif
  46637. }
  46638. 8013fce: bf00 nop
  46639. 8013fd0: bd80 pop {r7, pc}
  46640. ...
  46641. 08013fd4 <osKernelInitialize>:
  46642. static uint32_t OS_Tick_GetOverflow (void);
  46643. /* Get OS Tick interval */
  46644. static uint32_t OS_Tick_GetInterval (void);
  46645. /*---------------------------------------------------------------------------*/
  46646. osStatus_t osKernelInitialize (void) {
  46647. 8013fd4: b480 push {r7}
  46648. 8013fd6: b083 sub sp, #12
  46649. 8013fd8: af00 add r7, sp, #0
  46650. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46651. 8013fda: f3ef 8305 mrs r3, IPSR
  46652. 8013fde: 603b str r3, [r7, #0]
  46653. return(result);
  46654. 8013fe0: 683b ldr r3, [r7, #0]
  46655. osStatus_t stat;
  46656. if (IS_IRQ()) {
  46657. 8013fe2: 2b00 cmp r3, #0
  46658. 8013fe4: d003 beq.n 8013fee <osKernelInitialize+0x1a>
  46659. stat = osErrorISR;
  46660. 8013fe6: f06f 0305 mvn.w r3, #5
  46661. 8013fea: 607b str r3, [r7, #4]
  46662. 8013fec: e00c b.n 8014008 <osKernelInitialize+0x34>
  46663. }
  46664. else {
  46665. if (KernelState == osKernelInactive) {
  46666. 8013fee: 4b0a ldr r3, [pc, #40] @ (8014018 <osKernelInitialize+0x44>)
  46667. 8013ff0: 681b ldr r3, [r3, #0]
  46668. 8013ff2: 2b00 cmp r3, #0
  46669. 8013ff4: d105 bne.n 8014002 <osKernelInitialize+0x2e>
  46670. EvrFreeRTOSSetup(0U);
  46671. #endif
  46672. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  46673. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  46674. #endif
  46675. KernelState = osKernelReady;
  46676. 8013ff6: 4b08 ldr r3, [pc, #32] @ (8014018 <osKernelInitialize+0x44>)
  46677. 8013ff8: 2201 movs r2, #1
  46678. 8013ffa: 601a str r2, [r3, #0]
  46679. stat = osOK;
  46680. 8013ffc: 2300 movs r3, #0
  46681. 8013ffe: 607b str r3, [r7, #4]
  46682. 8014000: e002 b.n 8014008 <osKernelInitialize+0x34>
  46683. } else {
  46684. stat = osError;
  46685. 8014002: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46686. 8014006: 607b str r3, [r7, #4]
  46687. }
  46688. }
  46689. return (stat);
  46690. 8014008: 687b ldr r3, [r7, #4]
  46691. }
  46692. 801400a: 4618 mov r0, r3
  46693. 801400c: 370c adds r7, #12
  46694. 801400e: 46bd mov sp, r7
  46695. 8014010: f85d 7b04 ldr.w r7, [sp], #4
  46696. 8014014: 4770 bx lr
  46697. 8014016: bf00 nop
  46698. 8014018: 24001064 .word 0x24001064
  46699. 0801401c <osKernelStart>:
  46700. }
  46701. return (state);
  46702. }
  46703. osStatus_t osKernelStart (void) {
  46704. 801401c: b580 push {r7, lr}
  46705. 801401e: b082 sub sp, #8
  46706. 8014020: af00 add r7, sp, #0
  46707. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46708. 8014022: f3ef 8305 mrs r3, IPSR
  46709. 8014026: 603b str r3, [r7, #0]
  46710. return(result);
  46711. 8014028: 683b ldr r3, [r7, #0]
  46712. osStatus_t stat;
  46713. if (IS_IRQ()) {
  46714. 801402a: 2b00 cmp r3, #0
  46715. 801402c: d003 beq.n 8014036 <osKernelStart+0x1a>
  46716. stat = osErrorISR;
  46717. 801402e: f06f 0305 mvn.w r3, #5
  46718. 8014032: 607b str r3, [r7, #4]
  46719. 8014034: e010 b.n 8014058 <osKernelStart+0x3c>
  46720. }
  46721. else {
  46722. if (KernelState == osKernelReady) {
  46723. 8014036: 4b0b ldr r3, [pc, #44] @ (8014064 <osKernelStart+0x48>)
  46724. 8014038: 681b ldr r3, [r3, #0]
  46725. 801403a: 2b01 cmp r3, #1
  46726. 801403c: d109 bne.n 8014052 <osKernelStart+0x36>
  46727. /* Ensure SVC priority is at the reset value */
  46728. SVC_Setup();
  46729. 801403e: f7ff ffbf bl 8013fc0 <SVC_Setup>
  46730. /* Change state to enable IRQ masking check */
  46731. KernelState = osKernelRunning;
  46732. 8014042: 4b08 ldr r3, [pc, #32] @ (8014064 <osKernelStart+0x48>)
  46733. 8014044: 2202 movs r2, #2
  46734. 8014046: 601a str r2, [r3, #0]
  46735. /* Start the kernel scheduler */
  46736. vTaskStartScheduler();
  46737. 8014048: f002 f824 bl 8016094 <vTaskStartScheduler>
  46738. stat = osOK;
  46739. 801404c: 2300 movs r3, #0
  46740. 801404e: 607b str r3, [r7, #4]
  46741. 8014050: e002 b.n 8014058 <osKernelStart+0x3c>
  46742. } else {
  46743. stat = osError;
  46744. 8014052: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46745. 8014056: 607b str r3, [r7, #4]
  46746. }
  46747. }
  46748. return (stat);
  46749. 8014058: 687b ldr r3, [r7, #4]
  46750. }
  46751. 801405a: 4618 mov r0, r3
  46752. 801405c: 3708 adds r7, #8
  46753. 801405e: 46bd mov sp, r7
  46754. 8014060: bd80 pop {r7, pc}
  46755. 8014062: bf00 nop
  46756. 8014064: 24001064 .word 0x24001064
  46757. 08014068 <osThreadNew>:
  46758. return (configCPU_CLOCK_HZ);
  46759. }
  46760. /*---------------------------------------------------------------------------*/
  46761. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  46762. 8014068: b580 push {r7, lr}
  46763. 801406a: b08e sub sp, #56 @ 0x38
  46764. 801406c: af04 add r7, sp, #16
  46765. 801406e: 60f8 str r0, [r7, #12]
  46766. 8014070: 60b9 str r1, [r7, #8]
  46767. 8014072: 607a str r2, [r7, #4]
  46768. uint32_t stack;
  46769. TaskHandle_t hTask;
  46770. UBaseType_t prio;
  46771. int32_t mem;
  46772. hTask = NULL;
  46773. 8014074: 2300 movs r3, #0
  46774. 8014076: 613b str r3, [r7, #16]
  46775. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46776. 8014078: f3ef 8305 mrs r3, IPSR
  46777. 801407c: 617b str r3, [r7, #20]
  46778. return(result);
  46779. 801407e: 697b ldr r3, [r7, #20]
  46780. if (!IS_IRQ() && (func != NULL)) {
  46781. 8014080: 2b00 cmp r3, #0
  46782. 8014082: d17f bne.n 8014184 <osThreadNew+0x11c>
  46783. 8014084: 68fb ldr r3, [r7, #12]
  46784. 8014086: 2b00 cmp r3, #0
  46785. 8014088: d07c beq.n 8014184 <osThreadNew+0x11c>
  46786. stack = configMINIMAL_STACK_SIZE;
  46787. 801408a: f44f 7300 mov.w r3, #512 @ 0x200
  46788. 801408e: 623b str r3, [r7, #32]
  46789. prio = (UBaseType_t)osPriorityNormal;
  46790. 8014090: 2318 movs r3, #24
  46791. 8014092: 61fb str r3, [r7, #28]
  46792. name = NULL;
  46793. 8014094: 2300 movs r3, #0
  46794. 8014096: 627b str r3, [r7, #36] @ 0x24
  46795. mem = -1;
  46796. 8014098: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46797. 801409c: 61bb str r3, [r7, #24]
  46798. if (attr != NULL) {
  46799. 801409e: 687b ldr r3, [r7, #4]
  46800. 80140a0: 2b00 cmp r3, #0
  46801. 80140a2: d045 beq.n 8014130 <osThreadNew+0xc8>
  46802. if (attr->name != NULL) {
  46803. 80140a4: 687b ldr r3, [r7, #4]
  46804. 80140a6: 681b ldr r3, [r3, #0]
  46805. 80140a8: 2b00 cmp r3, #0
  46806. 80140aa: d002 beq.n 80140b2 <osThreadNew+0x4a>
  46807. name = attr->name;
  46808. 80140ac: 687b ldr r3, [r7, #4]
  46809. 80140ae: 681b ldr r3, [r3, #0]
  46810. 80140b0: 627b str r3, [r7, #36] @ 0x24
  46811. }
  46812. if (attr->priority != osPriorityNone) {
  46813. 80140b2: 687b ldr r3, [r7, #4]
  46814. 80140b4: 699b ldr r3, [r3, #24]
  46815. 80140b6: 2b00 cmp r3, #0
  46816. 80140b8: d002 beq.n 80140c0 <osThreadNew+0x58>
  46817. prio = (UBaseType_t)attr->priority;
  46818. 80140ba: 687b ldr r3, [r7, #4]
  46819. 80140bc: 699b ldr r3, [r3, #24]
  46820. 80140be: 61fb str r3, [r7, #28]
  46821. }
  46822. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  46823. 80140c0: 69fb ldr r3, [r7, #28]
  46824. 80140c2: 2b00 cmp r3, #0
  46825. 80140c4: d008 beq.n 80140d8 <osThreadNew+0x70>
  46826. 80140c6: 69fb ldr r3, [r7, #28]
  46827. 80140c8: 2b38 cmp r3, #56 @ 0x38
  46828. 80140ca: d805 bhi.n 80140d8 <osThreadNew+0x70>
  46829. 80140cc: 687b ldr r3, [r7, #4]
  46830. 80140ce: 685b ldr r3, [r3, #4]
  46831. 80140d0: f003 0301 and.w r3, r3, #1
  46832. 80140d4: 2b00 cmp r3, #0
  46833. 80140d6: d001 beq.n 80140dc <osThreadNew+0x74>
  46834. return (NULL);
  46835. 80140d8: 2300 movs r3, #0
  46836. 80140da: e054 b.n 8014186 <osThreadNew+0x11e>
  46837. }
  46838. if (attr->stack_size > 0U) {
  46839. 80140dc: 687b ldr r3, [r7, #4]
  46840. 80140de: 695b ldr r3, [r3, #20]
  46841. 80140e0: 2b00 cmp r3, #0
  46842. 80140e2: d003 beq.n 80140ec <osThreadNew+0x84>
  46843. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  46844. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  46845. stack = attr->stack_size / sizeof(StackType_t);
  46846. 80140e4: 687b ldr r3, [r7, #4]
  46847. 80140e6: 695b ldr r3, [r3, #20]
  46848. 80140e8: 089b lsrs r3, r3, #2
  46849. 80140ea: 623b str r3, [r7, #32]
  46850. }
  46851. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46852. 80140ec: 687b ldr r3, [r7, #4]
  46853. 80140ee: 689b ldr r3, [r3, #8]
  46854. 80140f0: 2b00 cmp r3, #0
  46855. 80140f2: d00e beq.n 8014112 <osThreadNew+0xaa>
  46856. 80140f4: 687b ldr r3, [r7, #4]
  46857. 80140f6: 68db ldr r3, [r3, #12]
  46858. 80140f8: 2ba7 cmp r3, #167 @ 0xa7
  46859. 80140fa: d90a bls.n 8014112 <osThreadNew+0xaa>
  46860. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46861. 80140fc: 687b ldr r3, [r7, #4]
  46862. 80140fe: 691b ldr r3, [r3, #16]
  46863. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  46864. 8014100: 2b00 cmp r3, #0
  46865. 8014102: d006 beq.n 8014112 <osThreadNew+0xaa>
  46866. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  46867. 8014104: 687b ldr r3, [r7, #4]
  46868. 8014106: 695b ldr r3, [r3, #20]
  46869. 8014108: 2b00 cmp r3, #0
  46870. 801410a: d002 beq.n 8014112 <osThreadNew+0xaa>
  46871. mem = 1;
  46872. 801410c: 2301 movs r3, #1
  46873. 801410e: 61bb str r3, [r7, #24]
  46874. 8014110: e010 b.n 8014134 <osThreadNew+0xcc>
  46875. }
  46876. else {
  46877. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  46878. 8014112: 687b ldr r3, [r7, #4]
  46879. 8014114: 689b ldr r3, [r3, #8]
  46880. 8014116: 2b00 cmp r3, #0
  46881. 8014118: d10c bne.n 8014134 <osThreadNew+0xcc>
  46882. 801411a: 687b ldr r3, [r7, #4]
  46883. 801411c: 68db ldr r3, [r3, #12]
  46884. 801411e: 2b00 cmp r3, #0
  46885. 8014120: d108 bne.n 8014134 <osThreadNew+0xcc>
  46886. 8014122: 687b ldr r3, [r7, #4]
  46887. 8014124: 691b ldr r3, [r3, #16]
  46888. 8014126: 2b00 cmp r3, #0
  46889. 8014128: d104 bne.n 8014134 <osThreadNew+0xcc>
  46890. mem = 0;
  46891. 801412a: 2300 movs r3, #0
  46892. 801412c: 61bb str r3, [r7, #24]
  46893. 801412e: e001 b.n 8014134 <osThreadNew+0xcc>
  46894. }
  46895. }
  46896. }
  46897. else {
  46898. mem = 0;
  46899. 8014130: 2300 movs r3, #0
  46900. 8014132: 61bb str r3, [r7, #24]
  46901. }
  46902. if (mem == 1) {
  46903. 8014134: 69bb ldr r3, [r7, #24]
  46904. 8014136: 2b01 cmp r3, #1
  46905. 8014138: d110 bne.n 801415c <osThreadNew+0xf4>
  46906. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46907. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46908. 801413a: 687b ldr r3, [r7, #4]
  46909. 801413c: 691b ldr r3, [r3, #16]
  46910. (StaticTask_t *)attr->cb_mem);
  46911. 801413e: 687a ldr r2, [r7, #4]
  46912. 8014140: 6892 ldr r2, [r2, #8]
  46913. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  46914. 8014142: 9202 str r2, [sp, #8]
  46915. 8014144: 9301 str r3, [sp, #4]
  46916. 8014146: 69fb ldr r3, [r7, #28]
  46917. 8014148: 9300 str r3, [sp, #0]
  46918. 801414a: 68bb ldr r3, [r7, #8]
  46919. 801414c: 6a3a ldr r2, [r7, #32]
  46920. 801414e: 6a79 ldr r1, [r7, #36] @ 0x24
  46921. 8014150: 68f8 ldr r0, [r7, #12]
  46922. 8014152: f001 fdac bl 8015cae <xTaskCreateStatic>
  46923. 8014156: 4603 mov r3, r0
  46924. 8014158: 613b str r3, [r7, #16]
  46925. 801415a: e013 b.n 8014184 <osThreadNew+0x11c>
  46926. #endif
  46927. }
  46928. else {
  46929. if (mem == 0) {
  46930. 801415c: 69bb ldr r3, [r7, #24]
  46931. 801415e: 2b00 cmp r3, #0
  46932. 8014160: d110 bne.n 8014184 <osThreadNew+0x11c>
  46933. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46934. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  46935. 8014162: 6a3b ldr r3, [r7, #32]
  46936. 8014164: b29a uxth r2, r3
  46937. 8014166: f107 0310 add.w r3, r7, #16
  46938. 801416a: 9301 str r3, [sp, #4]
  46939. 801416c: 69fb ldr r3, [r7, #28]
  46940. 801416e: 9300 str r3, [sp, #0]
  46941. 8014170: 68bb ldr r3, [r7, #8]
  46942. 8014172: 6a79 ldr r1, [r7, #36] @ 0x24
  46943. 8014174: 68f8 ldr r0, [r7, #12]
  46944. 8014176: f001 fdfa bl 8015d6e <xTaskCreate>
  46945. 801417a: 4603 mov r3, r0
  46946. 801417c: 2b01 cmp r3, #1
  46947. 801417e: d001 beq.n 8014184 <osThreadNew+0x11c>
  46948. hTask = NULL;
  46949. 8014180: 2300 movs r3, #0
  46950. 8014182: 613b str r3, [r7, #16]
  46951. #endif
  46952. }
  46953. }
  46954. }
  46955. return ((osThreadId_t)hTask);
  46956. 8014184: 693b ldr r3, [r7, #16]
  46957. }
  46958. 8014186: 4618 mov r0, r3
  46959. 8014188: 3728 adds r7, #40 @ 0x28
  46960. 801418a: 46bd mov sp, r7
  46961. 801418c: bd80 pop {r7, pc}
  46962. 0801418e <osDelay>:
  46963. /* Return flags before clearing */
  46964. return (rflags);
  46965. }
  46966. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  46967. osStatus_t osDelay (uint32_t ticks) {
  46968. 801418e: b580 push {r7, lr}
  46969. 8014190: b084 sub sp, #16
  46970. 8014192: af00 add r7, sp, #0
  46971. 8014194: 6078 str r0, [r7, #4]
  46972. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46973. 8014196: f3ef 8305 mrs r3, IPSR
  46974. 801419a: 60bb str r3, [r7, #8]
  46975. return(result);
  46976. 801419c: 68bb ldr r3, [r7, #8]
  46977. osStatus_t stat;
  46978. if (IS_IRQ()) {
  46979. 801419e: 2b00 cmp r3, #0
  46980. 80141a0: d003 beq.n 80141aa <osDelay+0x1c>
  46981. stat = osErrorISR;
  46982. 80141a2: f06f 0305 mvn.w r3, #5
  46983. 80141a6: 60fb str r3, [r7, #12]
  46984. 80141a8: e007 b.n 80141ba <osDelay+0x2c>
  46985. }
  46986. else {
  46987. stat = osOK;
  46988. 80141aa: 2300 movs r3, #0
  46989. 80141ac: 60fb str r3, [r7, #12]
  46990. if (ticks != 0U) {
  46991. 80141ae: 687b ldr r3, [r7, #4]
  46992. 80141b0: 2b00 cmp r3, #0
  46993. 80141b2: d002 beq.n 80141ba <osDelay+0x2c>
  46994. vTaskDelay(ticks);
  46995. 80141b4: 6878 ldr r0, [r7, #4]
  46996. 80141b6: f001 ff37 bl 8016028 <vTaskDelay>
  46997. }
  46998. }
  46999. return (stat);
  47000. 80141ba: 68fb ldr r3, [r7, #12]
  47001. }
  47002. 80141bc: 4618 mov r0, r3
  47003. 80141be: 3710 adds r7, #16
  47004. 80141c0: 46bd mov sp, r7
  47005. 80141c2: bd80 pop {r7, pc}
  47006. 080141c4 <TimerCallback>:
  47007. }
  47008. /*---------------------------------------------------------------------------*/
  47009. #if (configUSE_OS2_TIMER == 1)
  47010. static void TimerCallback (TimerHandle_t hTimer) {
  47011. 80141c4: b580 push {r7, lr}
  47012. 80141c6: b084 sub sp, #16
  47013. 80141c8: af00 add r7, sp, #0
  47014. 80141ca: 6078 str r0, [r7, #4]
  47015. TimerCallback_t *callb;
  47016. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  47017. 80141cc: 6878 ldr r0, [r7, #4]
  47018. 80141ce: f003 fc3d bl 8017a4c <pvTimerGetTimerID>
  47019. 80141d2: 60f8 str r0, [r7, #12]
  47020. if (callb != NULL) {
  47021. 80141d4: 68fb ldr r3, [r7, #12]
  47022. 80141d6: 2b00 cmp r3, #0
  47023. 80141d8: d005 beq.n 80141e6 <TimerCallback+0x22>
  47024. callb->func (callb->arg);
  47025. 80141da: 68fb ldr r3, [r7, #12]
  47026. 80141dc: 681b ldr r3, [r3, #0]
  47027. 80141de: 68fa ldr r2, [r7, #12]
  47028. 80141e0: 6852 ldr r2, [r2, #4]
  47029. 80141e2: 4610 mov r0, r2
  47030. 80141e4: 4798 blx r3
  47031. }
  47032. }
  47033. 80141e6: bf00 nop
  47034. 80141e8: 3710 adds r7, #16
  47035. 80141ea: 46bd mov sp, r7
  47036. 80141ec: bd80 pop {r7, pc}
  47037. ...
  47038. 080141f0 <osTimerNew>:
  47039. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  47040. 80141f0: b580 push {r7, lr}
  47041. 80141f2: b08c sub sp, #48 @ 0x30
  47042. 80141f4: af02 add r7, sp, #8
  47043. 80141f6: 60f8 str r0, [r7, #12]
  47044. 80141f8: 607a str r2, [r7, #4]
  47045. 80141fa: 603b str r3, [r7, #0]
  47046. 80141fc: 460b mov r3, r1
  47047. 80141fe: 72fb strb r3, [r7, #11]
  47048. TimerHandle_t hTimer;
  47049. TimerCallback_t *callb;
  47050. UBaseType_t reload;
  47051. int32_t mem;
  47052. hTimer = NULL;
  47053. 8014200: 2300 movs r3, #0
  47054. 8014202: 623b str r3, [r7, #32]
  47055. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47056. 8014204: f3ef 8305 mrs r3, IPSR
  47057. 8014208: 613b str r3, [r7, #16]
  47058. return(result);
  47059. 801420a: 693b ldr r3, [r7, #16]
  47060. if (!IS_IRQ() && (func != NULL)) {
  47061. 801420c: 2b00 cmp r3, #0
  47062. 801420e: d163 bne.n 80142d8 <osTimerNew+0xe8>
  47063. 8014210: 68fb ldr r3, [r7, #12]
  47064. 8014212: 2b00 cmp r3, #0
  47065. 8014214: d060 beq.n 80142d8 <osTimerNew+0xe8>
  47066. /* Allocate memory to store callback function and argument */
  47067. callb = pvPortMalloc (sizeof(TimerCallback_t));
  47068. 8014216: 2008 movs r0, #8
  47069. 8014218: f003 fe90 bl 8017f3c <pvPortMalloc>
  47070. 801421c: 6178 str r0, [r7, #20]
  47071. if (callb != NULL) {
  47072. 801421e: 697b ldr r3, [r7, #20]
  47073. 8014220: 2b00 cmp r3, #0
  47074. 8014222: d059 beq.n 80142d8 <osTimerNew+0xe8>
  47075. callb->func = func;
  47076. 8014224: 697b ldr r3, [r7, #20]
  47077. 8014226: 68fa ldr r2, [r7, #12]
  47078. 8014228: 601a str r2, [r3, #0]
  47079. callb->arg = argument;
  47080. 801422a: 697b ldr r3, [r7, #20]
  47081. 801422c: 687a ldr r2, [r7, #4]
  47082. 801422e: 605a str r2, [r3, #4]
  47083. if (type == osTimerOnce) {
  47084. 8014230: 7afb ldrb r3, [r7, #11]
  47085. 8014232: 2b00 cmp r3, #0
  47086. 8014234: d102 bne.n 801423c <osTimerNew+0x4c>
  47087. reload = pdFALSE;
  47088. 8014236: 2300 movs r3, #0
  47089. 8014238: 61fb str r3, [r7, #28]
  47090. 801423a: e001 b.n 8014240 <osTimerNew+0x50>
  47091. } else {
  47092. reload = pdTRUE;
  47093. 801423c: 2301 movs r3, #1
  47094. 801423e: 61fb str r3, [r7, #28]
  47095. }
  47096. mem = -1;
  47097. 8014240: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47098. 8014244: 61bb str r3, [r7, #24]
  47099. name = NULL;
  47100. 8014246: 2300 movs r3, #0
  47101. 8014248: 627b str r3, [r7, #36] @ 0x24
  47102. if (attr != NULL) {
  47103. 801424a: 683b ldr r3, [r7, #0]
  47104. 801424c: 2b00 cmp r3, #0
  47105. 801424e: d01c beq.n 801428a <osTimerNew+0x9a>
  47106. if (attr->name != NULL) {
  47107. 8014250: 683b ldr r3, [r7, #0]
  47108. 8014252: 681b ldr r3, [r3, #0]
  47109. 8014254: 2b00 cmp r3, #0
  47110. 8014256: d002 beq.n 801425e <osTimerNew+0x6e>
  47111. name = attr->name;
  47112. 8014258: 683b ldr r3, [r7, #0]
  47113. 801425a: 681b ldr r3, [r3, #0]
  47114. 801425c: 627b str r3, [r7, #36] @ 0x24
  47115. }
  47116. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  47117. 801425e: 683b ldr r3, [r7, #0]
  47118. 8014260: 689b ldr r3, [r3, #8]
  47119. 8014262: 2b00 cmp r3, #0
  47120. 8014264: d006 beq.n 8014274 <osTimerNew+0x84>
  47121. 8014266: 683b ldr r3, [r7, #0]
  47122. 8014268: 68db ldr r3, [r3, #12]
  47123. 801426a: 2b2b cmp r3, #43 @ 0x2b
  47124. 801426c: d902 bls.n 8014274 <osTimerNew+0x84>
  47125. mem = 1;
  47126. 801426e: 2301 movs r3, #1
  47127. 8014270: 61bb str r3, [r7, #24]
  47128. 8014272: e00c b.n 801428e <osTimerNew+0x9e>
  47129. }
  47130. else {
  47131. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47132. 8014274: 683b ldr r3, [r7, #0]
  47133. 8014276: 689b ldr r3, [r3, #8]
  47134. 8014278: 2b00 cmp r3, #0
  47135. 801427a: d108 bne.n 801428e <osTimerNew+0x9e>
  47136. 801427c: 683b ldr r3, [r7, #0]
  47137. 801427e: 68db ldr r3, [r3, #12]
  47138. 8014280: 2b00 cmp r3, #0
  47139. 8014282: d104 bne.n 801428e <osTimerNew+0x9e>
  47140. mem = 0;
  47141. 8014284: 2300 movs r3, #0
  47142. 8014286: 61bb str r3, [r7, #24]
  47143. 8014288: e001 b.n 801428e <osTimerNew+0x9e>
  47144. }
  47145. }
  47146. }
  47147. else {
  47148. mem = 0;
  47149. 801428a: 2300 movs r3, #0
  47150. 801428c: 61bb str r3, [r7, #24]
  47151. }
  47152. if (mem == 1) {
  47153. 801428e: 69bb ldr r3, [r7, #24]
  47154. 8014290: 2b01 cmp r3, #1
  47155. 8014292: d10c bne.n 80142ae <osTimerNew+0xbe>
  47156. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47157. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  47158. 8014294: 683b ldr r3, [r7, #0]
  47159. 8014296: 689b ldr r3, [r3, #8]
  47160. 8014298: 9301 str r3, [sp, #4]
  47161. 801429a: 4b12 ldr r3, [pc, #72] @ (80142e4 <osTimerNew+0xf4>)
  47162. 801429c: 9300 str r3, [sp, #0]
  47163. 801429e: 697b ldr r3, [r7, #20]
  47164. 80142a0: 69fa ldr r2, [r7, #28]
  47165. 80142a2: 2101 movs r1, #1
  47166. 80142a4: 6a78 ldr r0, [r7, #36] @ 0x24
  47167. 80142a6: f003 f81a bl 80172de <xTimerCreateStatic>
  47168. 80142aa: 6238 str r0, [r7, #32]
  47169. 80142ac: e00b b.n 80142c6 <osTimerNew+0xd6>
  47170. #endif
  47171. }
  47172. else {
  47173. if (mem == 0) {
  47174. 80142ae: 69bb ldr r3, [r7, #24]
  47175. 80142b0: 2b00 cmp r3, #0
  47176. 80142b2: d108 bne.n 80142c6 <osTimerNew+0xd6>
  47177. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47178. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  47179. 80142b4: 4b0b ldr r3, [pc, #44] @ (80142e4 <osTimerNew+0xf4>)
  47180. 80142b6: 9300 str r3, [sp, #0]
  47181. 80142b8: 697b ldr r3, [r7, #20]
  47182. 80142ba: 69fa ldr r2, [r7, #28]
  47183. 80142bc: 2101 movs r1, #1
  47184. 80142be: 6a78 ldr r0, [r7, #36] @ 0x24
  47185. 80142c0: f002 ffec bl 801729c <xTimerCreate>
  47186. 80142c4: 6238 str r0, [r7, #32]
  47187. #endif
  47188. }
  47189. }
  47190. if ((hTimer == NULL) && (callb != NULL)) {
  47191. 80142c6: 6a3b ldr r3, [r7, #32]
  47192. 80142c8: 2b00 cmp r3, #0
  47193. 80142ca: d105 bne.n 80142d8 <osTimerNew+0xe8>
  47194. 80142cc: 697b ldr r3, [r7, #20]
  47195. 80142ce: 2b00 cmp r3, #0
  47196. 80142d0: d002 beq.n 80142d8 <osTimerNew+0xe8>
  47197. vPortFree (callb);
  47198. 80142d2: 6978 ldr r0, [r7, #20]
  47199. 80142d4: f003 ff00 bl 80180d8 <vPortFree>
  47200. }
  47201. }
  47202. }
  47203. return ((osTimerId_t)hTimer);
  47204. 80142d8: 6a3b ldr r3, [r7, #32]
  47205. }
  47206. 80142da: 4618 mov r0, r3
  47207. 80142dc: 3728 adds r7, #40 @ 0x28
  47208. 80142de: 46bd mov sp, r7
  47209. 80142e0: bd80 pop {r7, pc}
  47210. 80142e2: bf00 nop
  47211. 80142e4: 080141c5 .word 0x080141c5
  47212. 080142e8 <osTimerStart>:
  47213. }
  47214. return (p);
  47215. }
  47216. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  47217. 80142e8: b580 push {r7, lr}
  47218. 80142ea: b088 sub sp, #32
  47219. 80142ec: af02 add r7, sp, #8
  47220. 80142ee: 6078 str r0, [r7, #4]
  47221. 80142f0: 6039 str r1, [r7, #0]
  47222. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47223. 80142f2: 687b ldr r3, [r7, #4]
  47224. 80142f4: 613b str r3, [r7, #16]
  47225. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47226. 80142f6: f3ef 8305 mrs r3, IPSR
  47227. 80142fa: 60fb str r3, [r7, #12]
  47228. return(result);
  47229. 80142fc: 68fb ldr r3, [r7, #12]
  47230. osStatus_t stat;
  47231. if (IS_IRQ()) {
  47232. 80142fe: 2b00 cmp r3, #0
  47233. 8014300: d003 beq.n 801430a <osTimerStart+0x22>
  47234. stat = osErrorISR;
  47235. 8014302: f06f 0305 mvn.w r3, #5
  47236. 8014306: 617b str r3, [r7, #20]
  47237. 8014308: e017 b.n 801433a <osTimerStart+0x52>
  47238. }
  47239. else if (hTimer == NULL) {
  47240. 801430a: 693b ldr r3, [r7, #16]
  47241. 801430c: 2b00 cmp r3, #0
  47242. 801430e: d103 bne.n 8014318 <osTimerStart+0x30>
  47243. stat = osErrorParameter;
  47244. 8014310: f06f 0303 mvn.w r3, #3
  47245. 8014314: 617b str r3, [r7, #20]
  47246. 8014316: e010 b.n 801433a <osTimerStart+0x52>
  47247. }
  47248. else {
  47249. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  47250. 8014318: 2300 movs r3, #0
  47251. 801431a: 9300 str r3, [sp, #0]
  47252. 801431c: 2300 movs r3, #0
  47253. 801431e: 683a ldr r2, [r7, #0]
  47254. 8014320: 2104 movs r1, #4
  47255. 8014322: 6938 ldr r0, [r7, #16]
  47256. 8014324: f003 f858 bl 80173d8 <xTimerGenericCommand>
  47257. 8014328: 4603 mov r3, r0
  47258. 801432a: 2b01 cmp r3, #1
  47259. 801432c: d102 bne.n 8014334 <osTimerStart+0x4c>
  47260. stat = osOK;
  47261. 801432e: 2300 movs r3, #0
  47262. 8014330: 617b str r3, [r7, #20]
  47263. 8014332: e002 b.n 801433a <osTimerStart+0x52>
  47264. } else {
  47265. stat = osErrorResource;
  47266. 8014334: f06f 0302 mvn.w r3, #2
  47267. 8014338: 617b str r3, [r7, #20]
  47268. }
  47269. }
  47270. return (stat);
  47271. 801433a: 697b ldr r3, [r7, #20]
  47272. }
  47273. 801433c: 4618 mov r0, r3
  47274. 801433e: 3718 adds r7, #24
  47275. 8014340: 46bd mov sp, r7
  47276. 8014342: bd80 pop {r7, pc}
  47277. 08014344 <osTimerStop>:
  47278. osStatus_t osTimerStop (osTimerId_t timer_id) {
  47279. 8014344: b580 push {r7, lr}
  47280. 8014346: b088 sub sp, #32
  47281. 8014348: af02 add r7, sp, #8
  47282. 801434a: 6078 str r0, [r7, #4]
  47283. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  47284. 801434c: 687b ldr r3, [r7, #4]
  47285. 801434e: 613b str r3, [r7, #16]
  47286. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47287. 8014350: f3ef 8305 mrs r3, IPSR
  47288. 8014354: 60fb str r3, [r7, #12]
  47289. return(result);
  47290. 8014356: 68fb ldr r3, [r7, #12]
  47291. osStatus_t stat;
  47292. if (IS_IRQ()) {
  47293. 8014358: 2b00 cmp r3, #0
  47294. 801435a: d003 beq.n 8014364 <osTimerStop+0x20>
  47295. stat = osErrorISR;
  47296. 801435c: f06f 0305 mvn.w r3, #5
  47297. 8014360: 617b str r3, [r7, #20]
  47298. 8014362: e021 b.n 80143a8 <osTimerStop+0x64>
  47299. }
  47300. else if (hTimer == NULL) {
  47301. 8014364: 693b ldr r3, [r7, #16]
  47302. 8014366: 2b00 cmp r3, #0
  47303. 8014368: d103 bne.n 8014372 <osTimerStop+0x2e>
  47304. stat = osErrorParameter;
  47305. 801436a: f06f 0303 mvn.w r3, #3
  47306. 801436e: 617b str r3, [r7, #20]
  47307. 8014370: e01a b.n 80143a8 <osTimerStop+0x64>
  47308. }
  47309. else {
  47310. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  47311. 8014372: 6938 ldr r0, [r7, #16]
  47312. 8014374: f003 fb40 bl 80179f8 <xTimerIsTimerActive>
  47313. 8014378: 4603 mov r3, r0
  47314. 801437a: 2b00 cmp r3, #0
  47315. 801437c: d103 bne.n 8014386 <osTimerStop+0x42>
  47316. stat = osErrorResource;
  47317. 801437e: f06f 0302 mvn.w r3, #2
  47318. 8014382: 617b str r3, [r7, #20]
  47319. 8014384: e010 b.n 80143a8 <osTimerStop+0x64>
  47320. }
  47321. else {
  47322. if (xTimerStop (hTimer, 0) == pdPASS) {
  47323. 8014386: 2300 movs r3, #0
  47324. 8014388: 9300 str r3, [sp, #0]
  47325. 801438a: 2300 movs r3, #0
  47326. 801438c: 2200 movs r2, #0
  47327. 801438e: 2103 movs r1, #3
  47328. 8014390: 6938 ldr r0, [r7, #16]
  47329. 8014392: f003 f821 bl 80173d8 <xTimerGenericCommand>
  47330. 8014396: 4603 mov r3, r0
  47331. 8014398: 2b01 cmp r3, #1
  47332. 801439a: d102 bne.n 80143a2 <osTimerStop+0x5e>
  47333. stat = osOK;
  47334. 801439c: 2300 movs r3, #0
  47335. 801439e: 617b str r3, [r7, #20]
  47336. 80143a0: e002 b.n 80143a8 <osTimerStop+0x64>
  47337. } else {
  47338. stat = osError;
  47339. 80143a2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47340. 80143a6: 617b str r3, [r7, #20]
  47341. }
  47342. }
  47343. }
  47344. return (stat);
  47345. 80143a8: 697b ldr r3, [r7, #20]
  47346. }
  47347. 80143aa: 4618 mov r0, r3
  47348. 80143ac: 3718 adds r7, #24
  47349. 80143ae: 46bd mov sp, r7
  47350. 80143b0: bd80 pop {r7, pc}
  47351. 080143b2 <osMutexNew>:
  47352. }
  47353. /*---------------------------------------------------------------------------*/
  47354. #if (configUSE_OS2_MUTEX == 1)
  47355. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  47356. 80143b2: b580 push {r7, lr}
  47357. 80143b4: b088 sub sp, #32
  47358. 80143b6: af00 add r7, sp, #0
  47359. 80143b8: 6078 str r0, [r7, #4]
  47360. int32_t mem;
  47361. #if (configQUEUE_REGISTRY_SIZE > 0)
  47362. const char *name;
  47363. #endif
  47364. hMutex = NULL;
  47365. 80143ba: 2300 movs r3, #0
  47366. 80143bc: 61fb str r3, [r7, #28]
  47367. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47368. 80143be: f3ef 8305 mrs r3, IPSR
  47369. 80143c2: 60bb str r3, [r7, #8]
  47370. return(result);
  47371. 80143c4: 68bb ldr r3, [r7, #8]
  47372. if (!IS_IRQ()) {
  47373. 80143c6: 2b00 cmp r3, #0
  47374. 80143c8: d174 bne.n 80144b4 <osMutexNew+0x102>
  47375. if (attr != NULL) {
  47376. 80143ca: 687b ldr r3, [r7, #4]
  47377. 80143cc: 2b00 cmp r3, #0
  47378. 80143ce: d003 beq.n 80143d8 <osMutexNew+0x26>
  47379. type = attr->attr_bits;
  47380. 80143d0: 687b ldr r3, [r7, #4]
  47381. 80143d2: 685b ldr r3, [r3, #4]
  47382. 80143d4: 61bb str r3, [r7, #24]
  47383. 80143d6: e001 b.n 80143dc <osMutexNew+0x2a>
  47384. } else {
  47385. type = 0U;
  47386. 80143d8: 2300 movs r3, #0
  47387. 80143da: 61bb str r3, [r7, #24]
  47388. }
  47389. if ((type & osMutexRecursive) == osMutexRecursive) {
  47390. 80143dc: 69bb ldr r3, [r7, #24]
  47391. 80143de: f003 0301 and.w r3, r3, #1
  47392. 80143e2: 2b00 cmp r3, #0
  47393. 80143e4: d002 beq.n 80143ec <osMutexNew+0x3a>
  47394. rmtx = 1U;
  47395. 80143e6: 2301 movs r3, #1
  47396. 80143e8: 617b str r3, [r7, #20]
  47397. 80143ea: e001 b.n 80143f0 <osMutexNew+0x3e>
  47398. } else {
  47399. rmtx = 0U;
  47400. 80143ec: 2300 movs r3, #0
  47401. 80143ee: 617b str r3, [r7, #20]
  47402. }
  47403. if ((type & osMutexRobust) != osMutexRobust) {
  47404. 80143f0: 69bb ldr r3, [r7, #24]
  47405. 80143f2: f003 0308 and.w r3, r3, #8
  47406. 80143f6: 2b00 cmp r3, #0
  47407. 80143f8: d15c bne.n 80144b4 <osMutexNew+0x102>
  47408. mem = -1;
  47409. 80143fa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47410. 80143fe: 613b str r3, [r7, #16]
  47411. if (attr != NULL) {
  47412. 8014400: 687b ldr r3, [r7, #4]
  47413. 8014402: 2b00 cmp r3, #0
  47414. 8014404: d015 beq.n 8014432 <osMutexNew+0x80>
  47415. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  47416. 8014406: 687b ldr r3, [r7, #4]
  47417. 8014408: 689b ldr r3, [r3, #8]
  47418. 801440a: 2b00 cmp r3, #0
  47419. 801440c: d006 beq.n 801441c <osMutexNew+0x6a>
  47420. 801440e: 687b ldr r3, [r7, #4]
  47421. 8014410: 68db ldr r3, [r3, #12]
  47422. 8014412: 2b4f cmp r3, #79 @ 0x4f
  47423. 8014414: d902 bls.n 801441c <osMutexNew+0x6a>
  47424. mem = 1;
  47425. 8014416: 2301 movs r3, #1
  47426. 8014418: 613b str r3, [r7, #16]
  47427. 801441a: e00c b.n 8014436 <osMutexNew+0x84>
  47428. }
  47429. else {
  47430. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  47431. 801441c: 687b ldr r3, [r7, #4]
  47432. 801441e: 689b ldr r3, [r3, #8]
  47433. 8014420: 2b00 cmp r3, #0
  47434. 8014422: d108 bne.n 8014436 <osMutexNew+0x84>
  47435. 8014424: 687b ldr r3, [r7, #4]
  47436. 8014426: 68db ldr r3, [r3, #12]
  47437. 8014428: 2b00 cmp r3, #0
  47438. 801442a: d104 bne.n 8014436 <osMutexNew+0x84>
  47439. mem = 0;
  47440. 801442c: 2300 movs r3, #0
  47441. 801442e: 613b str r3, [r7, #16]
  47442. 8014430: e001 b.n 8014436 <osMutexNew+0x84>
  47443. }
  47444. }
  47445. }
  47446. else {
  47447. mem = 0;
  47448. 8014432: 2300 movs r3, #0
  47449. 8014434: 613b str r3, [r7, #16]
  47450. }
  47451. if (mem == 1) {
  47452. 8014436: 693b ldr r3, [r7, #16]
  47453. 8014438: 2b01 cmp r3, #1
  47454. 801443a: d112 bne.n 8014462 <osMutexNew+0xb0>
  47455. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47456. if (rmtx != 0U) {
  47457. 801443c: 697b ldr r3, [r7, #20]
  47458. 801443e: 2b00 cmp r3, #0
  47459. 8014440: d007 beq.n 8014452 <osMutexNew+0xa0>
  47460. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47461. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  47462. 8014442: 687b ldr r3, [r7, #4]
  47463. 8014444: 689b ldr r3, [r3, #8]
  47464. 8014446: 4619 mov r1, r3
  47465. 8014448: 2004 movs r0, #4
  47466. 801444a: f000 fc50 bl 8014cee <xQueueCreateMutexStatic>
  47467. 801444e: 61f8 str r0, [r7, #28]
  47468. 8014450: e016 b.n 8014480 <osMutexNew+0xce>
  47469. #endif
  47470. }
  47471. else {
  47472. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  47473. 8014452: 687b ldr r3, [r7, #4]
  47474. 8014454: 689b ldr r3, [r3, #8]
  47475. 8014456: 4619 mov r1, r3
  47476. 8014458: 2001 movs r0, #1
  47477. 801445a: f000 fc48 bl 8014cee <xQueueCreateMutexStatic>
  47478. 801445e: 61f8 str r0, [r7, #28]
  47479. 8014460: e00e b.n 8014480 <osMutexNew+0xce>
  47480. }
  47481. #endif
  47482. }
  47483. else {
  47484. if (mem == 0) {
  47485. 8014462: 693b ldr r3, [r7, #16]
  47486. 8014464: 2b00 cmp r3, #0
  47487. 8014466: d10b bne.n 8014480 <osMutexNew+0xce>
  47488. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47489. if (rmtx != 0U) {
  47490. 8014468: 697b ldr r3, [r7, #20]
  47491. 801446a: 2b00 cmp r3, #0
  47492. 801446c: d004 beq.n 8014478 <osMutexNew+0xc6>
  47493. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47494. hMutex = xSemaphoreCreateRecursiveMutex ();
  47495. 801446e: 2004 movs r0, #4
  47496. 8014470: f000 fc25 bl 8014cbe <xQueueCreateMutex>
  47497. 8014474: 61f8 str r0, [r7, #28]
  47498. 8014476: e003 b.n 8014480 <osMutexNew+0xce>
  47499. #endif
  47500. } else {
  47501. hMutex = xSemaphoreCreateMutex ();
  47502. 8014478: 2001 movs r0, #1
  47503. 801447a: f000 fc20 bl 8014cbe <xQueueCreateMutex>
  47504. 801447e: 61f8 str r0, [r7, #28]
  47505. #endif
  47506. }
  47507. }
  47508. #if (configQUEUE_REGISTRY_SIZE > 0)
  47509. if (hMutex != NULL) {
  47510. 8014480: 69fb ldr r3, [r7, #28]
  47511. 8014482: 2b00 cmp r3, #0
  47512. 8014484: d00c beq.n 80144a0 <osMutexNew+0xee>
  47513. if (attr != NULL) {
  47514. 8014486: 687b ldr r3, [r7, #4]
  47515. 8014488: 2b00 cmp r3, #0
  47516. 801448a: d003 beq.n 8014494 <osMutexNew+0xe2>
  47517. name = attr->name;
  47518. 801448c: 687b ldr r3, [r7, #4]
  47519. 801448e: 681b ldr r3, [r3, #0]
  47520. 8014490: 60fb str r3, [r7, #12]
  47521. 8014492: e001 b.n 8014498 <osMutexNew+0xe6>
  47522. } else {
  47523. name = NULL;
  47524. 8014494: 2300 movs r3, #0
  47525. 8014496: 60fb str r3, [r7, #12]
  47526. }
  47527. vQueueAddToRegistry (hMutex, name);
  47528. 8014498: 68f9 ldr r1, [r7, #12]
  47529. 801449a: 69f8 ldr r0, [r7, #28]
  47530. 801449c: f001 f9ea bl 8015874 <vQueueAddToRegistry>
  47531. }
  47532. #endif
  47533. if ((hMutex != NULL) && (rmtx != 0U)) {
  47534. 80144a0: 69fb ldr r3, [r7, #28]
  47535. 80144a2: 2b00 cmp r3, #0
  47536. 80144a4: d006 beq.n 80144b4 <osMutexNew+0x102>
  47537. 80144a6: 697b ldr r3, [r7, #20]
  47538. 80144a8: 2b00 cmp r3, #0
  47539. 80144aa: d003 beq.n 80144b4 <osMutexNew+0x102>
  47540. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  47541. 80144ac: 69fb ldr r3, [r7, #28]
  47542. 80144ae: f043 0301 orr.w r3, r3, #1
  47543. 80144b2: 61fb str r3, [r7, #28]
  47544. }
  47545. }
  47546. }
  47547. return ((osMutexId_t)hMutex);
  47548. 80144b4: 69fb ldr r3, [r7, #28]
  47549. }
  47550. 80144b6: 4618 mov r0, r3
  47551. 80144b8: 3720 adds r7, #32
  47552. 80144ba: 46bd mov sp, r7
  47553. 80144bc: bd80 pop {r7, pc}
  47554. 080144be <osMutexAcquire>:
  47555. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  47556. 80144be: b580 push {r7, lr}
  47557. 80144c0: b086 sub sp, #24
  47558. 80144c2: af00 add r7, sp, #0
  47559. 80144c4: 6078 str r0, [r7, #4]
  47560. 80144c6: 6039 str r1, [r7, #0]
  47561. SemaphoreHandle_t hMutex;
  47562. osStatus_t stat;
  47563. uint32_t rmtx;
  47564. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47565. 80144c8: 687b ldr r3, [r7, #4]
  47566. 80144ca: f023 0301 bic.w r3, r3, #1
  47567. 80144ce: 613b str r3, [r7, #16]
  47568. rmtx = (uint32_t)mutex_id & 1U;
  47569. 80144d0: 687b ldr r3, [r7, #4]
  47570. 80144d2: f003 0301 and.w r3, r3, #1
  47571. 80144d6: 60fb str r3, [r7, #12]
  47572. stat = osOK;
  47573. 80144d8: 2300 movs r3, #0
  47574. 80144da: 617b str r3, [r7, #20]
  47575. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47576. 80144dc: f3ef 8305 mrs r3, IPSR
  47577. 80144e0: 60bb str r3, [r7, #8]
  47578. return(result);
  47579. 80144e2: 68bb ldr r3, [r7, #8]
  47580. if (IS_IRQ()) {
  47581. 80144e4: 2b00 cmp r3, #0
  47582. 80144e6: d003 beq.n 80144f0 <osMutexAcquire+0x32>
  47583. stat = osErrorISR;
  47584. 80144e8: f06f 0305 mvn.w r3, #5
  47585. 80144ec: 617b str r3, [r7, #20]
  47586. 80144ee: e02c b.n 801454a <osMutexAcquire+0x8c>
  47587. }
  47588. else if (hMutex == NULL) {
  47589. 80144f0: 693b ldr r3, [r7, #16]
  47590. 80144f2: 2b00 cmp r3, #0
  47591. 80144f4: d103 bne.n 80144fe <osMutexAcquire+0x40>
  47592. stat = osErrorParameter;
  47593. 80144f6: f06f 0303 mvn.w r3, #3
  47594. 80144fa: 617b str r3, [r7, #20]
  47595. 80144fc: e025 b.n 801454a <osMutexAcquire+0x8c>
  47596. }
  47597. else {
  47598. if (rmtx != 0U) {
  47599. 80144fe: 68fb ldr r3, [r7, #12]
  47600. 8014500: 2b00 cmp r3, #0
  47601. 8014502: d011 beq.n 8014528 <osMutexAcquire+0x6a>
  47602. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47603. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  47604. 8014504: 6839 ldr r1, [r7, #0]
  47605. 8014506: 6938 ldr r0, [r7, #16]
  47606. 8014508: f000 fc41 bl 8014d8e <xQueueTakeMutexRecursive>
  47607. 801450c: 4603 mov r3, r0
  47608. 801450e: 2b01 cmp r3, #1
  47609. 8014510: d01b beq.n 801454a <osMutexAcquire+0x8c>
  47610. if (timeout != 0U) {
  47611. 8014512: 683b ldr r3, [r7, #0]
  47612. 8014514: 2b00 cmp r3, #0
  47613. 8014516: d003 beq.n 8014520 <osMutexAcquire+0x62>
  47614. stat = osErrorTimeout;
  47615. 8014518: f06f 0301 mvn.w r3, #1
  47616. 801451c: 617b str r3, [r7, #20]
  47617. 801451e: e014 b.n 801454a <osMutexAcquire+0x8c>
  47618. } else {
  47619. stat = osErrorResource;
  47620. 8014520: f06f 0302 mvn.w r3, #2
  47621. 8014524: 617b str r3, [r7, #20]
  47622. 8014526: e010 b.n 801454a <osMutexAcquire+0x8c>
  47623. }
  47624. }
  47625. #endif
  47626. }
  47627. else {
  47628. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  47629. 8014528: 6839 ldr r1, [r7, #0]
  47630. 801452a: 6938 ldr r0, [r7, #16]
  47631. 801452c: f000 fee8 bl 8015300 <xQueueSemaphoreTake>
  47632. 8014530: 4603 mov r3, r0
  47633. 8014532: 2b01 cmp r3, #1
  47634. 8014534: d009 beq.n 801454a <osMutexAcquire+0x8c>
  47635. if (timeout != 0U) {
  47636. 8014536: 683b ldr r3, [r7, #0]
  47637. 8014538: 2b00 cmp r3, #0
  47638. 801453a: d003 beq.n 8014544 <osMutexAcquire+0x86>
  47639. stat = osErrorTimeout;
  47640. 801453c: f06f 0301 mvn.w r3, #1
  47641. 8014540: 617b str r3, [r7, #20]
  47642. 8014542: e002 b.n 801454a <osMutexAcquire+0x8c>
  47643. } else {
  47644. stat = osErrorResource;
  47645. 8014544: f06f 0302 mvn.w r3, #2
  47646. 8014548: 617b str r3, [r7, #20]
  47647. }
  47648. }
  47649. }
  47650. }
  47651. return (stat);
  47652. 801454a: 697b ldr r3, [r7, #20]
  47653. }
  47654. 801454c: 4618 mov r0, r3
  47655. 801454e: 3718 adds r7, #24
  47656. 8014550: 46bd mov sp, r7
  47657. 8014552: bd80 pop {r7, pc}
  47658. 08014554 <osMutexRelease>:
  47659. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  47660. 8014554: b580 push {r7, lr}
  47661. 8014556: b086 sub sp, #24
  47662. 8014558: af00 add r7, sp, #0
  47663. 801455a: 6078 str r0, [r7, #4]
  47664. SemaphoreHandle_t hMutex;
  47665. osStatus_t stat;
  47666. uint32_t rmtx;
  47667. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  47668. 801455c: 687b ldr r3, [r7, #4]
  47669. 801455e: f023 0301 bic.w r3, r3, #1
  47670. 8014562: 613b str r3, [r7, #16]
  47671. rmtx = (uint32_t)mutex_id & 1U;
  47672. 8014564: 687b ldr r3, [r7, #4]
  47673. 8014566: f003 0301 and.w r3, r3, #1
  47674. 801456a: 60fb str r3, [r7, #12]
  47675. stat = osOK;
  47676. 801456c: 2300 movs r3, #0
  47677. 801456e: 617b str r3, [r7, #20]
  47678. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47679. 8014570: f3ef 8305 mrs r3, IPSR
  47680. 8014574: 60bb str r3, [r7, #8]
  47681. return(result);
  47682. 8014576: 68bb ldr r3, [r7, #8]
  47683. if (IS_IRQ()) {
  47684. 8014578: 2b00 cmp r3, #0
  47685. 801457a: d003 beq.n 8014584 <osMutexRelease+0x30>
  47686. stat = osErrorISR;
  47687. 801457c: f06f 0305 mvn.w r3, #5
  47688. 8014580: 617b str r3, [r7, #20]
  47689. 8014582: e01f b.n 80145c4 <osMutexRelease+0x70>
  47690. }
  47691. else if (hMutex == NULL) {
  47692. 8014584: 693b ldr r3, [r7, #16]
  47693. 8014586: 2b00 cmp r3, #0
  47694. 8014588: d103 bne.n 8014592 <osMutexRelease+0x3e>
  47695. stat = osErrorParameter;
  47696. 801458a: f06f 0303 mvn.w r3, #3
  47697. 801458e: 617b str r3, [r7, #20]
  47698. 8014590: e018 b.n 80145c4 <osMutexRelease+0x70>
  47699. }
  47700. else {
  47701. if (rmtx != 0U) {
  47702. 8014592: 68fb ldr r3, [r7, #12]
  47703. 8014594: 2b00 cmp r3, #0
  47704. 8014596: d009 beq.n 80145ac <osMutexRelease+0x58>
  47705. #if (configUSE_RECURSIVE_MUTEXES == 1)
  47706. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  47707. 8014598: 6938 ldr r0, [r7, #16]
  47708. 801459a: f000 fbc3 bl 8014d24 <xQueueGiveMutexRecursive>
  47709. 801459e: 4603 mov r3, r0
  47710. 80145a0: 2b01 cmp r3, #1
  47711. 80145a2: d00f beq.n 80145c4 <osMutexRelease+0x70>
  47712. stat = osErrorResource;
  47713. 80145a4: f06f 0302 mvn.w r3, #2
  47714. 80145a8: 617b str r3, [r7, #20]
  47715. 80145aa: e00b b.n 80145c4 <osMutexRelease+0x70>
  47716. }
  47717. #endif
  47718. }
  47719. else {
  47720. if (xSemaphoreGive (hMutex) != pdPASS) {
  47721. 80145ac: 2300 movs r3, #0
  47722. 80145ae: 2200 movs r2, #0
  47723. 80145b0: 2100 movs r1, #0
  47724. 80145b2: 6938 ldr r0, [r7, #16]
  47725. 80145b4: f000 fc22 bl 8014dfc <xQueueGenericSend>
  47726. 80145b8: 4603 mov r3, r0
  47727. 80145ba: 2b01 cmp r3, #1
  47728. 80145bc: d002 beq.n 80145c4 <osMutexRelease+0x70>
  47729. stat = osErrorResource;
  47730. 80145be: f06f 0302 mvn.w r3, #2
  47731. 80145c2: 617b str r3, [r7, #20]
  47732. }
  47733. }
  47734. }
  47735. return (stat);
  47736. 80145c4: 697b ldr r3, [r7, #20]
  47737. }
  47738. 80145c6: 4618 mov r0, r3
  47739. 80145c8: 3718 adds r7, #24
  47740. 80145ca: 46bd mov sp, r7
  47741. 80145cc: bd80 pop {r7, pc}
  47742. 080145ce <osMessageQueueNew>:
  47743. return (stat);
  47744. }
  47745. /*---------------------------------------------------------------------------*/
  47746. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  47747. 80145ce: b580 push {r7, lr}
  47748. 80145d0: b08a sub sp, #40 @ 0x28
  47749. 80145d2: af02 add r7, sp, #8
  47750. 80145d4: 60f8 str r0, [r7, #12]
  47751. 80145d6: 60b9 str r1, [r7, #8]
  47752. 80145d8: 607a str r2, [r7, #4]
  47753. int32_t mem;
  47754. #if (configQUEUE_REGISTRY_SIZE > 0)
  47755. const char *name;
  47756. #endif
  47757. hQueue = NULL;
  47758. 80145da: 2300 movs r3, #0
  47759. 80145dc: 61fb str r3, [r7, #28]
  47760. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47761. 80145de: f3ef 8305 mrs r3, IPSR
  47762. 80145e2: 613b str r3, [r7, #16]
  47763. return(result);
  47764. 80145e4: 693b ldr r3, [r7, #16]
  47765. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  47766. 80145e6: 2b00 cmp r3, #0
  47767. 80145e8: d15f bne.n 80146aa <osMessageQueueNew+0xdc>
  47768. 80145ea: 68fb ldr r3, [r7, #12]
  47769. 80145ec: 2b00 cmp r3, #0
  47770. 80145ee: d05c beq.n 80146aa <osMessageQueueNew+0xdc>
  47771. 80145f0: 68bb ldr r3, [r7, #8]
  47772. 80145f2: 2b00 cmp r3, #0
  47773. 80145f4: d059 beq.n 80146aa <osMessageQueueNew+0xdc>
  47774. mem = -1;
  47775. 80145f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47776. 80145fa: 61bb str r3, [r7, #24]
  47777. if (attr != NULL) {
  47778. 80145fc: 687b ldr r3, [r7, #4]
  47779. 80145fe: 2b00 cmp r3, #0
  47780. 8014600: d029 beq.n 8014656 <osMessageQueueNew+0x88>
  47781. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47782. 8014602: 687b ldr r3, [r7, #4]
  47783. 8014604: 689b ldr r3, [r3, #8]
  47784. 8014606: 2b00 cmp r3, #0
  47785. 8014608: d012 beq.n 8014630 <osMessageQueueNew+0x62>
  47786. 801460a: 687b ldr r3, [r7, #4]
  47787. 801460c: 68db ldr r3, [r3, #12]
  47788. 801460e: 2b4f cmp r3, #79 @ 0x4f
  47789. 8014610: d90e bls.n 8014630 <osMessageQueueNew+0x62>
  47790. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47791. 8014612: 687b ldr r3, [r7, #4]
  47792. 8014614: 691b ldr r3, [r3, #16]
  47793. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  47794. 8014616: 2b00 cmp r3, #0
  47795. 8014618: d00a beq.n 8014630 <osMessageQueueNew+0x62>
  47796. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  47797. 801461a: 687b ldr r3, [r7, #4]
  47798. 801461c: 695a ldr r2, [r3, #20]
  47799. 801461e: 68fb ldr r3, [r7, #12]
  47800. 8014620: 68b9 ldr r1, [r7, #8]
  47801. 8014622: fb01 f303 mul.w r3, r1, r3
  47802. 8014626: 429a cmp r2, r3
  47803. 8014628: d302 bcc.n 8014630 <osMessageQueueNew+0x62>
  47804. mem = 1;
  47805. 801462a: 2301 movs r3, #1
  47806. 801462c: 61bb str r3, [r7, #24]
  47807. 801462e: e014 b.n 801465a <osMessageQueueNew+0x8c>
  47808. }
  47809. else {
  47810. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47811. 8014630: 687b ldr r3, [r7, #4]
  47812. 8014632: 689b ldr r3, [r3, #8]
  47813. 8014634: 2b00 cmp r3, #0
  47814. 8014636: d110 bne.n 801465a <osMessageQueueNew+0x8c>
  47815. 8014638: 687b ldr r3, [r7, #4]
  47816. 801463a: 68db ldr r3, [r3, #12]
  47817. 801463c: 2b00 cmp r3, #0
  47818. 801463e: d10c bne.n 801465a <osMessageQueueNew+0x8c>
  47819. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47820. 8014640: 687b ldr r3, [r7, #4]
  47821. 8014642: 691b ldr r3, [r3, #16]
  47822. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  47823. 8014644: 2b00 cmp r3, #0
  47824. 8014646: d108 bne.n 801465a <osMessageQueueNew+0x8c>
  47825. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  47826. 8014648: 687b ldr r3, [r7, #4]
  47827. 801464a: 695b ldr r3, [r3, #20]
  47828. 801464c: 2b00 cmp r3, #0
  47829. 801464e: d104 bne.n 801465a <osMessageQueueNew+0x8c>
  47830. mem = 0;
  47831. 8014650: 2300 movs r3, #0
  47832. 8014652: 61bb str r3, [r7, #24]
  47833. 8014654: e001 b.n 801465a <osMessageQueueNew+0x8c>
  47834. }
  47835. }
  47836. }
  47837. else {
  47838. mem = 0;
  47839. 8014656: 2300 movs r3, #0
  47840. 8014658: 61bb str r3, [r7, #24]
  47841. }
  47842. if (mem == 1) {
  47843. 801465a: 69bb ldr r3, [r7, #24]
  47844. 801465c: 2b01 cmp r3, #1
  47845. 801465e: d10b bne.n 8014678 <osMessageQueueNew+0xaa>
  47846. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  47847. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  47848. 8014660: 687b ldr r3, [r7, #4]
  47849. 8014662: 691a ldr r2, [r3, #16]
  47850. 8014664: 687b ldr r3, [r7, #4]
  47851. 8014666: 689b ldr r3, [r3, #8]
  47852. 8014668: 2100 movs r1, #0
  47853. 801466a: 9100 str r1, [sp, #0]
  47854. 801466c: 68b9 ldr r1, [r7, #8]
  47855. 801466e: 68f8 ldr r0, [r7, #12]
  47856. 8014670: f000 fa30 bl 8014ad4 <xQueueGenericCreateStatic>
  47857. 8014674: 61f8 str r0, [r7, #28]
  47858. 8014676: e008 b.n 801468a <osMessageQueueNew+0xbc>
  47859. #endif
  47860. }
  47861. else {
  47862. if (mem == 0) {
  47863. 8014678: 69bb ldr r3, [r7, #24]
  47864. 801467a: 2b00 cmp r3, #0
  47865. 801467c: d105 bne.n 801468a <osMessageQueueNew+0xbc>
  47866. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  47867. hQueue = xQueueCreate (msg_count, msg_size);
  47868. 801467e: 2200 movs r2, #0
  47869. 8014680: 68b9 ldr r1, [r7, #8]
  47870. 8014682: 68f8 ldr r0, [r7, #12]
  47871. 8014684: f000 faa3 bl 8014bce <xQueueGenericCreate>
  47872. 8014688: 61f8 str r0, [r7, #28]
  47873. #endif
  47874. }
  47875. }
  47876. #if (configQUEUE_REGISTRY_SIZE > 0)
  47877. if (hQueue != NULL) {
  47878. 801468a: 69fb ldr r3, [r7, #28]
  47879. 801468c: 2b00 cmp r3, #0
  47880. 801468e: d00c beq.n 80146aa <osMessageQueueNew+0xdc>
  47881. if (attr != NULL) {
  47882. 8014690: 687b ldr r3, [r7, #4]
  47883. 8014692: 2b00 cmp r3, #0
  47884. 8014694: d003 beq.n 801469e <osMessageQueueNew+0xd0>
  47885. name = attr->name;
  47886. 8014696: 687b ldr r3, [r7, #4]
  47887. 8014698: 681b ldr r3, [r3, #0]
  47888. 801469a: 617b str r3, [r7, #20]
  47889. 801469c: e001 b.n 80146a2 <osMessageQueueNew+0xd4>
  47890. } else {
  47891. name = NULL;
  47892. 801469e: 2300 movs r3, #0
  47893. 80146a0: 617b str r3, [r7, #20]
  47894. }
  47895. vQueueAddToRegistry (hQueue, name);
  47896. 80146a2: 6979 ldr r1, [r7, #20]
  47897. 80146a4: 69f8 ldr r0, [r7, #28]
  47898. 80146a6: f001 f8e5 bl 8015874 <vQueueAddToRegistry>
  47899. }
  47900. #endif
  47901. }
  47902. return ((osMessageQueueId_t)hQueue);
  47903. 80146aa: 69fb ldr r3, [r7, #28]
  47904. }
  47905. 80146ac: 4618 mov r0, r3
  47906. 80146ae: 3720 adds r7, #32
  47907. 80146b0: 46bd mov sp, r7
  47908. 80146b2: bd80 pop {r7, pc}
  47909. 080146b4 <osMessageQueuePut>:
  47910. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  47911. 80146b4: b580 push {r7, lr}
  47912. 80146b6: b088 sub sp, #32
  47913. 80146b8: af00 add r7, sp, #0
  47914. 80146ba: 60f8 str r0, [r7, #12]
  47915. 80146bc: 60b9 str r1, [r7, #8]
  47916. 80146be: 603b str r3, [r7, #0]
  47917. 80146c0: 4613 mov r3, r2
  47918. 80146c2: 71fb strb r3, [r7, #7]
  47919. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  47920. 80146c4: 68fb ldr r3, [r7, #12]
  47921. 80146c6: 61bb str r3, [r7, #24]
  47922. osStatus_t stat;
  47923. BaseType_t yield;
  47924. (void)msg_prio; /* Message priority is ignored */
  47925. stat = osOK;
  47926. 80146c8: 2300 movs r3, #0
  47927. 80146ca: 61fb str r3, [r7, #28]
  47928. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  47929. 80146cc: f3ef 8305 mrs r3, IPSR
  47930. 80146d0: 617b str r3, [r7, #20]
  47931. return(result);
  47932. 80146d2: 697b ldr r3, [r7, #20]
  47933. if (IS_IRQ()) {
  47934. 80146d4: 2b00 cmp r3, #0
  47935. 80146d6: d028 beq.n 801472a <osMessageQueuePut+0x76>
  47936. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  47937. 80146d8: 69bb ldr r3, [r7, #24]
  47938. 80146da: 2b00 cmp r3, #0
  47939. 80146dc: d005 beq.n 80146ea <osMessageQueuePut+0x36>
  47940. 80146de: 68bb ldr r3, [r7, #8]
  47941. 80146e0: 2b00 cmp r3, #0
  47942. 80146e2: d002 beq.n 80146ea <osMessageQueuePut+0x36>
  47943. 80146e4: 683b ldr r3, [r7, #0]
  47944. 80146e6: 2b00 cmp r3, #0
  47945. 80146e8: d003 beq.n 80146f2 <osMessageQueuePut+0x3e>
  47946. stat = osErrorParameter;
  47947. 80146ea: f06f 0303 mvn.w r3, #3
  47948. 80146ee: 61fb str r3, [r7, #28]
  47949. 80146f0: e038 b.n 8014764 <osMessageQueuePut+0xb0>
  47950. }
  47951. else {
  47952. yield = pdFALSE;
  47953. 80146f2: 2300 movs r3, #0
  47954. 80146f4: 613b str r3, [r7, #16]
  47955. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  47956. 80146f6: f107 0210 add.w r2, r7, #16
  47957. 80146fa: 2300 movs r3, #0
  47958. 80146fc: 68b9 ldr r1, [r7, #8]
  47959. 80146fe: 69b8 ldr r0, [r7, #24]
  47960. 8014700: f000 fc7e bl 8015000 <xQueueGenericSendFromISR>
  47961. 8014704: 4603 mov r3, r0
  47962. 8014706: 2b01 cmp r3, #1
  47963. 8014708: d003 beq.n 8014712 <osMessageQueuePut+0x5e>
  47964. stat = osErrorResource;
  47965. 801470a: f06f 0302 mvn.w r3, #2
  47966. 801470e: 61fb str r3, [r7, #28]
  47967. 8014710: e028 b.n 8014764 <osMessageQueuePut+0xb0>
  47968. } else {
  47969. portYIELD_FROM_ISR (yield);
  47970. 8014712: 693b ldr r3, [r7, #16]
  47971. 8014714: 2b00 cmp r3, #0
  47972. 8014716: d025 beq.n 8014764 <osMessageQueuePut+0xb0>
  47973. 8014718: 4b15 ldr r3, [pc, #84] @ (8014770 <osMessageQueuePut+0xbc>)
  47974. 801471a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47975. 801471e: 601a str r2, [r3, #0]
  47976. 8014720: f3bf 8f4f dsb sy
  47977. 8014724: f3bf 8f6f isb sy
  47978. 8014728: e01c b.n 8014764 <osMessageQueuePut+0xb0>
  47979. }
  47980. }
  47981. }
  47982. else {
  47983. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  47984. 801472a: 69bb ldr r3, [r7, #24]
  47985. 801472c: 2b00 cmp r3, #0
  47986. 801472e: d002 beq.n 8014736 <osMessageQueuePut+0x82>
  47987. 8014730: 68bb ldr r3, [r7, #8]
  47988. 8014732: 2b00 cmp r3, #0
  47989. 8014734: d103 bne.n 801473e <osMessageQueuePut+0x8a>
  47990. stat = osErrorParameter;
  47991. 8014736: f06f 0303 mvn.w r3, #3
  47992. 801473a: 61fb str r3, [r7, #28]
  47993. 801473c: e012 b.n 8014764 <osMessageQueuePut+0xb0>
  47994. }
  47995. else {
  47996. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  47997. 801473e: 2300 movs r3, #0
  47998. 8014740: 683a ldr r2, [r7, #0]
  47999. 8014742: 68b9 ldr r1, [r7, #8]
  48000. 8014744: 69b8 ldr r0, [r7, #24]
  48001. 8014746: f000 fb59 bl 8014dfc <xQueueGenericSend>
  48002. 801474a: 4603 mov r3, r0
  48003. 801474c: 2b01 cmp r3, #1
  48004. 801474e: d009 beq.n 8014764 <osMessageQueuePut+0xb0>
  48005. if (timeout != 0U) {
  48006. 8014750: 683b ldr r3, [r7, #0]
  48007. 8014752: 2b00 cmp r3, #0
  48008. 8014754: d003 beq.n 801475e <osMessageQueuePut+0xaa>
  48009. stat = osErrorTimeout;
  48010. 8014756: f06f 0301 mvn.w r3, #1
  48011. 801475a: 61fb str r3, [r7, #28]
  48012. 801475c: e002 b.n 8014764 <osMessageQueuePut+0xb0>
  48013. } else {
  48014. stat = osErrorResource;
  48015. 801475e: f06f 0302 mvn.w r3, #2
  48016. 8014762: 61fb str r3, [r7, #28]
  48017. }
  48018. }
  48019. }
  48020. }
  48021. return (stat);
  48022. 8014764: 69fb ldr r3, [r7, #28]
  48023. }
  48024. 8014766: 4618 mov r0, r3
  48025. 8014768: 3720 adds r7, #32
  48026. 801476a: 46bd mov sp, r7
  48027. 801476c: bd80 pop {r7, pc}
  48028. 801476e: bf00 nop
  48029. 8014770: e000ed04 .word 0xe000ed04
  48030. 08014774 <osMessageQueueGet>:
  48031. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  48032. 8014774: b580 push {r7, lr}
  48033. 8014776: b088 sub sp, #32
  48034. 8014778: af00 add r7, sp, #0
  48035. 801477a: 60f8 str r0, [r7, #12]
  48036. 801477c: 60b9 str r1, [r7, #8]
  48037. 801477e: 607a str r2, [r7, #4]
  48038. 8014780: 603b str r3, [r7, #0]
  48039. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  48040. 8014782: 68fb ldr r3, [r7, #12]
  48041. 8014784: 61bb str r3, [r7, #24]
  48042. osStatus_t stat;
  48043. BaseType_t yield;
  48044. (void)msg_prio; /* Message priority is ignored */
  48045. stat = osOK;
  48046. 8014786: 2300 movs r3, #0
  48047. 8014788: 61fb str r3, [r7, #28]
  48048. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  48049. 801478a: f3ef 8305 mrs r3, IPSR
  48050. 801478e: 617b str r3, [r7, #20]
  48051. return(result);
  48052. 8014790: 697b ldr r3, [r7, #20]
  48053. if (IS_IRQ()) {
  48054. 8014792: 2b00 cmp r3, #0
  48055. 8014794: d028 beq.n 80147e8 <osMessageQueueGet+0x74>
  48056. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  48057. 8014796: 69bb ldr r3, [r7, #24]
  48058. 8014798: 2b00 cmp r3, #0
  48059. 801479a: d005 beq.n 80147a8 <osMessageQueueGet+0x34>
  48060. 801479c: 68bb ldr r3, [r7, #8]
  48061. 801479e: 2b00 cmp r3, #0
  48062. 80147a0: d002 beq.n 80147a8 <osMessageQueueGet+0x34>
  48063. 80147a2: 683b ldr r3, [r7, #0]
  48064. 80147a4: 2b00 cmp r3, #0
  48065. 80147a6: d003 beq.n 80147b0 <osMessageQueueGet+0x3c>
  48066. stat = osErrorParameter;
  48067. 80147a8: f06f 0303 mvn.w r3, #3
  48068. 80147ac: 61fb str r3, [r7, #28]
  48069. 80147ae: e037 b.n 8014820 <osMessageQueueGet+0xac>
  48070. }
  48071. else {
  48072. yield = pdFALSE;
  48073. 80147b0: 2300 movs r3, #0
  48074. 80147b2: 613b str r3, [r7, #16]
  48075. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  48076. 80147b4: f107 0310 add.w r3, r7, #16
  48077. 80147b8: 461a mov r2, r3
  48078. 80147ba: 68b9 ldr r1, [r7, #8]
  48079. 80147bc: 69b8 ldr r0, [r7, #24]
  48080. 80147be: f000 feaf bl 8015520 <xQueueReceiveFromISR>
  48081. 80147c2: 4603 mov r3, r0
  48082. 80147c4: 2b01 cmp r3, #1
  48083. 80147c6: d003 beq.n 80147d0 <osMessageQueueGet+0x5c>
  48084. stat = osErrorResource;
  48085. 80147c8: f06f 0302 mvn.w r3, #2
  48086. 80147cc: 61fb str r3, [r7, #28]
  48087. 80147ce: e027 b.n 8014820 <osMessageQueueGet+0xac>
  48088. } else {
  48089. portYIELD_FROM_ISR (yield);
  48090. 80147d0: 693b ldr r3, [r7, #16]
  48091. 80147d2: 2b00 cmp r3, #0
  48092. 80147d4: d024 beq.n 8014820 <osMessageQueueGet+0xac>
  48093. 80147d6: 4b15 ldr r3, [pc, #84] @ (801482c <osMessageQueueGet+0xb8>)
  48094. 80147d8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48095. 80147dc: 601a str r2, [r3, #0]
  48096. 80147de: f3bf 8f4f dsb sy
  48097. 80147e2: f3bf 8f6f isb sy
  48098. 80147e6: e01b b.n 8014820 <osMessageQueueGet+0xac>
  48099. }
  48100. }
  48101. }
  48102. else {
  48103. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  48104. 80147e8: 69bb ldr r3, [r7, #24]
  48105. 80147ea: 2b00 cmp r3, #0
  48106. 80147ec: d002 beq.n 80147f4 <osMessageQueueGet+0x80>
  48107. 80147ee: 68bb ldr r3, [r7, #8]
  48108. 80147f0: 2b00 cmp r3, #0
  48109. 80147f2: d103 bne.n 80147fc <osMessageQueueGet+0x88>
  48110. stat = osErrorParameter;
  48111. 80147f4: f06f 0303 mvn.w r3, #3
  48112. 80147f8: 61fb str r3, [r7, #28]
  48113. 80147fa: e011 b.n 8014820 <osMessageQueueGet+0xac>
  48114. }
  48115. else {
  48116. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  48117. 80147fc: 683a ldr r2, [r7, #0]
  48118. 80147fe: 68b9 ldr r1, [r7, #8]
  48119. 8014800: 69b8 ldr r0, [r7, #24]
  48120. 8014802: f000 fc9b bl 801513c <xQueueReceive>
  48121. 8014806: 4603 mov r3, r0
  48122. 8014808: 2b01 cmp r3, #1
  48123. 801480a: d009 beq.n 8014820 <osMessageQueueGet+0xac>
  48124. if (timeout != 0U) {
  48125. 801480c: 683b ldr r3, [r7, #0]
  48126. 801480e: 2b00 cmp r3, #0
  48127. 8014810: d003 beq.n 801481a <osMessageQueueGet+0xa6>
  48128. stat = osErrorTimeout;
  48129. 8014812: f06f 0301 mvn.w r3, #1
  48130. 8014816: 61fb str r3, [r7, #28]
  48131. 8014818: e002 b.n 8014820 <osMessageQueueGet+0xac>
  48132. } else {
  48133. stat = osErrorResource;
  48134. 801481a: f06f 0302 mvn.w r3, #2
  48135. 801481e: 61fb str r3, [r7, #28]
  48136. }
  48137. }
  48138. }
  48139. }
  48140. return (stat);
  48141. 8014820: 69fb ldr r3, [r7, #28]
  48142. }
  48143. 8014822: 4618 mov r0, r3
  48144. 8014824: 3720 adds r7, #32
  48145. 8014826: 46bd mov sp, r7
  48146. 8014828: bd80 pop {r7, pc}
  48147. 801482a: bf00 nop
  48148. 801482c: e000ed04 .word 0xe000ed04
  48149. 08014830 <vApplicationGetIdleTaskMemory>:
  48150. /*
  48151. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48152. equals to 1 and is required for static memory allocation support.
  48153. */
  48154. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  48155. 8014830: b480 push {r7}
  48156. 8014832: b085 sub sp, #20
  48157. 8014834: af00 add r7, sp, #0
  48158. 8014836: 60f8 str r0, [r7, #12]
  48159. 8014838: 60b9 str r1, [r7, #8]
  48160. 801483a: 607a str r2, [r7, #4]
  48161. /* Idle task control block and stack */
  48162. static StaticTask_t Idle_TCB;
  48163. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  48164. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  48165. 801483c: 68fb ldr r3, [r7, #12]
  48166. 801483e: 4a07 ldr r2, [pc, #28] @ (801485c <vApplicationGetIdleTaskMemory+0x2c>)
  48167. 8014840: 601a str r2, [r3, #0]
  48168. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  48169. 8014842: 68bb ldr r3, [r7, #8]
  48170. 8014844: 4a06 ldr r2, [pc, #24] @ (8014860 <vApplicationGetIdleTaskMemory+0x30>)
  48171. 8014846: 601a str r2, [r3, #0]
  48172. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  48173. 8014848: 687b ldr r3, [r7, #4]
  48174. 801484a: f44f 7200 mov.w r2, #512 @ 0x200
  48175. 801484e: 601a str r2, [r3, #0]
  48176. }
  48177. 8014850: bf00 nop
  48178. 8014852: 3714 adds r7, #20
  48179. 8014854: 46bd mov sp, r7
  48180. 8014856: f85d 7b04 ldr.w r7, [sp], #4
  48181. 801485a: 4770 bx lr
  48182. 801485c: 24001068 .word 0x24001068
  48183. 8014860: 24001110 .word 0x24001110
  48184. 08014864 <vApplicationGetTimerTaskMemory>:
  48185. /*
  48186. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  48187. equals to 1 and is required for static memory allocation support.
  48188. */
  48189. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  48190. 8014864: b480 push {r7}
  48191. 8014866: b085 sub sp, #20
  48192. 8014868: af00 add r7, sp, #0
  48193. 801486a: 60f8 str r0, [r7, #12]
  48194. 801486c: 60b9 str r1, [r7, #8]
  48195. 801486e: 607a str r2, [r7, #4]
  48196. /* Timer task control block and stack */
  48197. static StaticTask_t Timer_TCB;
  48198. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  48199. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  48200. 8014870: 68fb ldr r3, [r7, #12]
  48201. 8014872: 4a07 ldr r2, [pc, #28] @ (8014890 <vApplicationGetTimerTaskMemory+0x2c>)
  48202. 8014874: 601a str r2, [r3, #0]
  48203. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  48204. 8014876: 68bb ldr r3, [r7, #8]
  48205. 8014878: 4a06 ldr r2, [pc, #24] @ (8014894 <vApplicationGetTimerTaskMemory+0x30>)
  48206. 801487a: 601a str r2, [r3, #0]
  48207. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  48208. 801487c: 687b ldr r3, [r7, #4]
  48209. 801487e: f44f 6280 mov.w r2, #1024 @ 0x400
  48210. 8014882: 601a str r2, [r3, #0]
  48211. }
  48212. 8014884: bf00 nop
  48213. 8014886: 3714 adds r7, #20
  48214. 8014888: 46bd mov sp, r7
  48215. 801488a: f85d 7b04 ldr.w r7, [sp], #4
  48216. 801488e: 4770 bx lr
  48217. 8014890: 24001910 .word 0x24001910
  48218. 8014894: 240019b8 .word 0x240019b8
  48219. 08014898 <vListInitialise>:
  48220. /*-----------------------------------------------------------
  48221. * PUBLIC LIST API documented in list.h
  48222. *----------------------------------------------------------*/
  48223. void vListInitialise( List_t * const pxList )
  48224. {
  48225. 8014898: b480 push {r7}
  48226. 801489a: b083 sub sp, #12
  48227. 801489c: af00 add r7, sp, #0
  48228. 801489e: 6078 str r0, [r7, #4]
  48229. /* The list structure contains a list item which is used to mark the
  48230. end of the list. To initialise the list the list end is inserted
  48231. as the only list entry. */
  48232. 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. */
  48233. 80148a0: 687b ldr r3, [r7, #4]
  48234. 80148a2: f103 0208 add.w r2, r3, #8
  48235. 80148a6: 687b ldr r3, [r7, #4]
  48236. 80148a8: 605a str r2, [r3, #4]
  48237. /* The list end value is the highest possible value in the list to
  48238. ensure it remains at the end of the list. */
  48239. pxList->xListEnd.xItemValue = portMAX_DELAY;
  48240. 80148aa: 687b ldr r3, [r7, #4]
  48241. 80148ac: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48242. 80148b0: 609a str r2, [r3, #8]
  48243. /* The list end next and previous pointers point to itself so we know
  48244. when the list is empty. */
  48245. 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. */
  48246. 80148b2: 687b ldr r3, [r7, #4]
  48247. 80148b4: f103 0208 add.w r2, r3, #8
  48248. 80148b8: 687b ldr r3, [r7, #4]
  48249. 80148ba: 60da str r2, [r3, #12]
  48250. 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. */
  48251. 80148bc: 687b ldr r3, [r7, #4]
  48252. 80148be: f103 0208 add.w r2, r3, #8
  48253. 80148c2: 687b ldr r3, [r7, #4]
  48254. 80148c4: 611a str r2, [r3, #16]
  48255. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  48256. 80148c6: 687b ldr r3, [r7, #4]
  48257. 80148c8: 2200 movs r2, #0
  48258. 80148ca: 601a str r2, [r3, #0]
  48259. /* Write known values into the list if
  48260. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48261. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  48262. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  48263. }
  48264. 80148cc: bf00 nop
  48265. 80148ce: 370c adds r7, #12
  48266. 80148d0: 46bd mov sp, r7
  48267. 80148d2: f85d 7b04 ldr.w r7, [sp], #4
  48268. 80148d6: 4770 bx lr
  48269. 080148d8 <vListInitialiseItem>:
  48270. /*-----------------------------------------------------------*/
  48271. void vListInitialiseItem( ListItem_t * const pxItem )
  48272. {
  48273. 80148d8: b480 push {r7}
  48274. 80148da: b083 sub sp, #12
  48275. 80148dc: af00 add r7, sp, #0
  48276. 80148de: 6078 str r0, [r7, #4]
  48277. /* Make sure the list item is not recorded as being on a list. */
  48278. pxItem->pxContainer = NULL;
  48279. 80148e0: 687b ldr r3, [r7, #4]
  48280. 80148e2: 2200 movs r2, #0
  48281. 80148e4: 611a str r2, [r3, #16]
  48282. /* Write known values into the list item if
  48283. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  48284. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48285. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  48286. }
  48287. 80148e6: bf00 nop
  48288. 80148e8: 370c adds r7, #12
  48289. 80148ea: 46bd mov sp, r7
  48290. 80148ec: f85d 7b04 ldr.w r7, [sp], #4
  48291. 80148f0: 4770 bx lr
  48292. 080148f2 <vListInsertEnd>:
  48293. /*-----------------------------------------------------------*/
  48294. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  48295. {
  48296. 80148f2: b480 push {r7}
  48297. 80148f4: b085 sub sp, #20
  48298. 80148f6: af00 add r7, sp, #0
  48299. 80148f8: 6078 str r0, [r7, #4]
  48300. 80148fa: 6039 str r1, [r7, #0]
  48301. ListItem_t * const pxIndex = pxList->pxIndex;
  48302. 80148fc: 687b ldr r3, [r7, #4]
  48303. 80148fe: 685b ldr r3, [r3, #4]
  48304. 8014900: 60fb str r3, [r7, #12]
  48305. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  48306. /* Insert a new list item into pxList, but rather than sort the list,
  48307. makes the new list item the last item to be removed by a call to
  48308. listGET_OWNER_OF_NEXT_ENTRY(). */
  48309. pxNewListItem->pxNext = pxIndex;
  48310. 8014902: 683b ldr r3, [r7, #0]
  48311. 8014904: 68fa ldr r2, [r7, #12]
  48312. 8014906: 605a str r2, [r3, #4]
  48313. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  48314. 8014908: 68fb ldr r3, [r7, #12]
  48315. 801490a: 689a ldr r2, [r3, #8]
  48316. 801490c: 683b ldr r3, [r7, #0]
  48317. 801490e: 609a str r2, [r3, #8]
  48318. /* Only used during decision coverage testing. */
  48319. mtCOVERAGE_TEST_DELAY();
  48320. pxIndex->pxPrevious->pxNext = pxNewListItem;
  48321. 8014910: 68fb ldr r3, [r7, #12]
  48322. 8014912: 689b ldr r3, [r3, #8]
  48323. 8014914: 683a ldr r2, [r7, #0]
  48324. 8014916: 605a str r2, [r3, #4]
  48325. pxIndex->pxPrevious = pxNewListItem;
  48326. 8014918: 68fb ldr r3, [r7, #12]
  48327. 801491a: 683a ldr r2, [r7, #0]
  48328. 801491c: 609a str r2, [r3, #8]
  48329. /* Remember which list the item is in. */
  48330. pxNewListItem->pxContainer = pxList;
  48331. 801491e: 683b ldr r3, [r7, #0]
  48332. 8014920: 687a ldr r2, [r7, #4]
  48333. 8014922: 611a str r2, [r3, #16]
  48334. ( pxList->uxNumberOfItems )++;
  48335. 8014924: 687b ldr r3, [r7, #4]
  48336. 8014926: 681b ldr r3, [r3, #0]
  48337. 8014928: 1c5a adds r2, r3, #1
  48338. 801492a: 687b ldr r3, [r7, #4]
  48339. 801492c: 601a str r2, [r3, #0]
  48340. }
  48341. 801492e: bf00 nop
  48342. 8014930: 3714 adds r7, #20
  48343. 8014932: 46bd mov sp, r7
  48344. 8014934: f85d 7b04 ldr.w r7, [sp], #4
  48345. 8014938: 4770 bx lr
  48346. 0801493a <vListInsert>:
  48347. /*-----------------------------------------------------------*/
  48348. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  48349. {
  48350. 801493a: b480 push {r7}
  48351. 801493c: b085 sub sp, #20
  48352. 801493e: af00 add r7, sp, #0
  48353. 8014940: 6078 str r0, [r7, #4]
  48354. 8014942: 6039 str r1, [r7, #0]
  48355. ListItem_t *pxIterator;
  48356. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  48357. 8014944: 683b ldr r3, [r7, #0]
  48358. 8014946: 681b ldr r3, [r3, #0]
  48359. 8014948: 60bb str r3, [r7, #8]
  48360. new list item should be placed after it. This ensures that TCBs which are
  48361. stored in ready lists (all of which have the same xItemValue value) get a
  48362. share of the CPU. However, if the xItemValue is the same as the back marker
  48363. the iteration loop below will not end. Therefore the value is checked
  48364. first, and the algorithm slightly modified if necessary. */
  48365. if( xValueOfInsertion == portMAX_DELAY )
  48366. 801494a: 68bb ldr r3, [r7, #8]
  48367. 801494c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48368. 8014950: d103 bne.n 801495a <vListInsert+0x20>
  48369. {
  48370. pxIterator = pxList->xListEnd.pxPrevious;
  48371. 8014952: 687b ldr r3, [r7, #4]
  48372. 8014954: 691b ldr r3, [r3, #16]
  48373. 8014956: 60fb str r3, [r7, #12]
  48374. 8014958: e00c b.n 8014974 <vListInsert+0x3a>
  48375. 4) Using a queue or semaphore before it has been initialised or
  48376. before the scheduler has been started (are interrupts firing
  48377. before vTaskStartScheduler() has been called?).
  48378. **********************************************************************/
  48379. 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. */
  48380. 801495a: 687b ldr r3, [r7, #4]
  48381. 801495c: 3308 adds r3, #8
  48382. 801495e: 60fb str r3, [r7, #12]
  48383. 8014960: e002 b.n 8014968 <vListInsert+0x2e>
  48384. 8014962: 68fb ldr r3, [r7, #12]
  48385. 8014964: 685b ldr r3, [r3, #4]
  48386. 8014966: 60fb str r3, [r7, #12]
  48387. 8014968: 68fb ldr r3, [r7, #12]
  48388. 801496a: 685b ldr r3, [r3, #4]
  48389. 801496c: 681b ldr r3, [r3, #0]
  48390. 801496e: 68ba ldr r2, [r7, #8]
  48391. 8014970: 429a cmp r2, r3
  48392. 8014972: d2f6 bcs.n 8014962 <vListInsert+0x28>
  48393. /* There is nothing to do here, just iterating to the wanted
  48394. insertion position. */
  48395. }
  48396. }
  48397. pxNewListItem->pxNext = pxIterator->pxNext;
  48398. 8014974: 68fb ldr r3, [r7, #12]
  48399. 8014976: 685a ldr r2, [r3, #4]
  48400. 8014978: 683b ldr r3, [r7, #0]
  48401. 801497a: 605a str r2, [r3, #4]
  48402. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  48403. 801497c: 683b ldr r3, [r7, #0]
  48404. 801497e: 685b ldr r3, [r3, #4]
  48405. 8014980: 683a ldr r2, [r7, #0]
  48406. 8014982: 609a str r2, [r3, #8]
  48407. pxNewListItem->pxPrevious = pxIterator;
  48408. 8014984: 683b ldr r3, [r7, #0]
  48409. 8014986: 68fa ldr r2, [r7, #12]
  48410. 8014988: 609a str r2, [r3, #8]
  48411. pxIterator->pxNext = pxNewListItem;
  48412. 801498a: 68fb ldr r3, [r7, #12]
  48413. 801498c: 683a ldr r2, [r7, #0]
  48414. 801498e: 605a str r2, [r3, #4]
  48415. /* Remember which list the item is in. This allows fast removal of the
  48416. item later. */
  48417. pxNewListItem->pxContainer = pxList;
  48418. 8014990: 683b ldr r3, [r7, #0]
  48419. 8014992: 687a ldr r2, [r7, #4]
  48420. 8014994: 611a str r2, [r3, #16]
  48421. ( pxList->uxNumberOfItems )++;
  48422. 8014996: 687b ldr r3, [r7, #4]
  48423. 8014998: 681b ldr r3, [r3, #0]
  48424. 801499a: 1c5a adds r2, r3, #1
  48425. 801499c: 687b ldr r3, [r7, #4]
  48426. 801499e: 601a str r2, [r3, #0]
  48427. }
  48428. 80149a0: bf00 nop
  48429. 80149a2: 3714 adds r7, #20
  48430. 80149a4: 46bd mov sp, r7
  48431. 80149a6: f85d 7b04 ldr.w r7, [sp], #4
  48432. 80149aa: 4770 bx lr
  48433. 080149ac <uxListRemove>:
  48434. /*-----------------------------------------------------------*/
  48435. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  48436. {
  48437. 80149ac: b480 push {r7}
  48438. 80149ae: b085 sub sp, #20
  48439. 80149b0: af00 add r7, sp, #0
  48440. 80149b2: 6078 str r0, [r7, #4]
  48441. /* The list item knows which list it is in. Obtain the list from the list
  48442. item. */
  48443. List_t * const pxList = pxItemToRemove->pxContainer;
  48444. 80149b4: 687b ldr r3, [r7, #4]
  48445. 80149b6: 691b ldr r3, [r3, #16]
  48446. 80149b8: 60fb str r3, [r7, #12]
  48447. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  48448. 80149ba: 687b ldr r3, [r7, #4]
  48449. 80149bc: 685b ldr r3, [r3, #4]
  48450. 80149be: 687a ldr r2, [r7, #4]
  48451. 80149c0: 6892 ldr r2, [r2, #8]
  48452. 80149c2: 609a str r2, [r3, #8]
  48453. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  48454. 80149c4: 687b ldr r3, [r7, #4]
  48455. 80149c6: 689b ldr r3, [r3, #8]
  48456. 80149c8: 687a ldr r2, [r7, #4]
  48457. 80149ca: 6852 ldr r2, [r2, #4]
  48458. 80149cc: 605a str r2, [r3, #4]
  48459. /* Only used during decision coverage testing. */
  48460. mtCOVERAGE_TEST_DELAY();
  48461. /* Make sure the index is left pointing to a valid item. */
  48462. if( pxList->pxIndex == pxItemToRemove )
  48463. 80149ce: 68fb ldr r3, [r7, #12]
  48464. 80149d0: 685b ldr r3, [r3, #4]
  48465. 80149d2: 687a ldr r2, [r7, #4]
  48466. 80149d4: 429a cmp r2, r3
  48467. 80149d6: d103 bne.n 80149e0 <uxListRemove+0x34>
  48468. {
  48469. pxList->pxIndex = pxItemToRemove->pxPrevious;
  48470. 80149d8: 687b ldr r3, [r7, #4]
  48471. 80149da: 689a ldr r2, [r3, #8]
  48472. 80149dc: 68fb ldr r3, [r7, #12]
  48473. 80149de: 605a str r2, [r3, #4]
  48474. else
  48475. {
  48476. mtCOVERAGE_TEST_MARKER();
  48477. }
  48478. pxItemToRemove->pxContainer = NULL;
  48479. 80149e0: 687b ldr r3, [r7, #4]
  48480. 80149e2: 2200 movs r2, #0
  48481. 80149e4: 611a str r2, [r3, #16]
  48482. ( pxList->uxNumberOfItems )--;
  48483. 80149e6: 68fb ldr r3, [r7, #12]
  48484. 80149e8: 681b ldr r3, [r3, #0]
  48485. 80149ea: 1e5a subs r2, r3, #1
  48486. 80149ec: 68fb ldr r3, [r7, #12]
  48487. 80149ee: 601a str r2, [r3, #0]
  48488. return pxList->uxNumberOfItems;
  48489. 80149f0: 68fb ldr r3, [r7, #12]
  48490. 80149f2: 681b ldr r3, [r3, #0]
  48491. }
  48492. 80149f4: 4618 mov r0, r3
  48493. 80149f6: 3714 adds r7, #20
  48494. 80149f8: 46bd mov sp, r7
  48495. 80149fa: f85d 7b04 ldr.w r7, [sp], #4
  48496. 80149fe: 4770 bx lr
  48497. 08014a00 <xQueueGenericReset>:
  48498. } \
  48499. taskEXIT_CRITICAL()
  48500. /*-----------------------------------------------------------*/
  48501. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  48502. {
  48503. 8014a00: b580 push {r7, lr}
  48504. 8014a02: b084 sub sp, #16
  48505. 8014a04: af00 add r7, sp, #0
  48506. 8014a06: 6078 str r0, [r7, #4]
  48507. 8014a08: 6039 str r1, [r7, #0]
  48508. Queue_t * const pxQueue = xQueue;
  48509. 8014a0a: 687b ldr r3, [r7, #4]
  48510. 8014a0c: 60fb str r3, [r7, #12]
  48511. configASSERT( pxQueue );
  48512. 8014a0e: 68fb ldr r3, [r7, #12]
  48513. 8014a10: 2b00 cmp r3, #0
  48514. 8014a12: d10b bne.n 8014a2c <xQueueGenericReset+0x2c>
  48515. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  48516. {
  48517. uint32_t ulNewBASEPRI;
  48518. __asm volatile
  48519. 8014a14: f04f 0350 mov.w r3, #80 @ 0x50
  48520. 8014a18: f383 8811 msr BASEPRI, r3
  48521. 8014a1c: f3bf 8f6f isb sy
  48522. 8014a20: f3bf 8f4f dsb sy
  48523. 8014a24: 60bb str r3, [r7, #8]
  48524. " msr basepri, %0 \n" \
  48525. " isb \n" \
  48526. " dsb \n" \
  48527. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48528. );
  48529. }
  48530. 8014a26: bf00 nop
  48531. 8014a28: bf00 nop
  48532. 8014a2a: e7fd b.n 8014a28 <xQueueGenericReset+0x28>
  48533. taskENTER_CRITICAL();
  48534. 8014a2c: f003 f964 bl 8017cf8 <vPortEnterCritical>
  48535. {
  48536. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48537. 8014a30: 68fb ldr r3, [r7, #12]
  48538. 8014a32: 681a ldr r2, [r3, #0]
  48539. 8014a34: 68fb ldr r3, [r7, #12]
  48540. 8014a36: 6bdb ldr r3, [r3, #60] @ 0x3c
  48541. 8014a38: 68f9 ldr r1, [r7, #12]
  48542. 8014a3a: 6c09 ldr r1, [r1, #64] @ 0x40
  48543. 8014a3c: fb01 f303 mul.w r3, r1, r3
  48544. 8014a40: 441a add r2, r3
  48545. 8014a42: 68fb ldr r3, [r7, #12]
  48546. 8014a44: 609a str r2, [r3, #8]
  48547. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  48548. 8014a46: 68fb ldr r3, [r7, #12]
  48549. 8014a48: 2200 movs r2, #0
  48550. 8014a4a: 639a str r2, [r3, #56] @ 0x38
  48551. pxQueue->pcWriteTo = pxQueue->pcHead;
  48552. 8014a4c: 68fb ldr r3, [r7, #12]
  48553. 8014a4e: 681a ldr r2, [r3, #0]
  48554. 8014a50: 68fb ldr r3, [r7, #12]
  48555. 8014a52: 605a str r2, [r3, #4]
  48556. 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. */
  48557. 8014a54: 68fb ldr r3, [r7, #12]
  48558. 8014a56: 681a ldr r2, [r3, #0]
  48559. 8014a58: 68fb ldr r3, [r7, #12]
  48560. 8014a5a: 6bdb ldr r3, [r3, #60] @ 0x3c
  48561. 8014a5c: 3b01 subs r3, #1
  48562. 8014a5e: 68f9 ldr r1, [r7, #12]
  48563. 8014a60: 6c09 ldr r1, [r1, #64] @ 0x40
  48564. 8014a62: fb01 f303 mul.w r3, r1, r3
  48565. 8014a66: 441a add r2, r3
  48566. 8014a68: 68fb ldr r3, [r7, #12]
  48567. 8014a6a: 60da str r2, [r3, #12]
  48568. pxQueue->cRxLock = queueUNLOCKED;
  48569. 8014a6c: 68fb ldr r3, [r7, #12]
  48570. 8014a6e: 22ff movs r2, #255 @ 0xff
  48571. 8014a70: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48572. pxQueue->cTxLock = queueUNLOCKED;
  48573. 8014a74: 68fb ldr r3, [r7, #12]
  48574. 8014a76: 22ff movs r2, #255 @ 0xff
  48575. 8014a78: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48576. if( xNewQueue == pdFALSE )
  48577. 8014a7c: 683b ldr r3, [r7, #0]
  48578. 8014a7e: 2b00 cmp r3, #0
  48579. 8014a80: d114 bne.n 8014aac <xQueueGenericReset+0xac>
  48580. /* If there are tasks blocked waiting to read from the queue, then
  48581. the tasks will remain blocked as after this function exits the queue
  48582. will still be empty. If there are tasks blocked waiting to write to
  48583. the queue, then one should be unblocked as after this function exits
  48584. it will be possible to write to it. */
  48585. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48586. 8014a82: 68fb ldr r3, [r7, #12]
  48587. 8014a84: 691b ldr r3, [r3, #16]
  48588. 8014a86: 2b00 cmp r3, #0
  48589. 8014a88: d01a beq.n 8014ac0 <xQueueGenericReset+0xc0>
  48590. {
  48591. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48592. 8014a8a: 68fb ldr r3, [r7, #12]
  48593. 8014a8c: 3310 adds r3, #16
  48594. 8014a8e: 4618 mov r0, r3
  48595. 8014a90: f001 fdac bl 80165ec <xTaskRemoveFromEventList>
  48596. 8014a94: 4603 mov r3, r0
  48597. 8014a96: 2b00 cmp r3, #0
  48598. 8014a98: d012 beq.n 8014ac0 <xQueueGenericReset+0xc0>
  48599. {
  48600. queueYIELD_IF_USING_PREEMPTION();
  48601. 8014a9a: 4b0d ldr r3, [pc, #52] @ (8014ad0 <xQueueGenericReset+0xd0>)
  48602. 8014a9c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48603. 8014aa0: 601a str r2, [r3, #0]
  48604. 8014aa2: f3bf 8f4f dsb sy
  48605. 8014aa6: f3bf 8f6f isb sy
  48606. 8014aaa: e009 b.n 8014ac0 <xQueueGenericReset+0xc0>
  48607. }
  48608. }
  48609. else
  48610. {
  48611. /* Ensure the event queues start in the correct state. */
  48612. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  48613. 8014aac: 68fb ldr r3, [r7, #12]
  48614. 8014aae: 3310 adds r3, #16
  48615. 8014ab0: 4618 mov r0, r3
  48616. 8014ab2: f7ff fef1 bl 8014898 <vListInitialise>
  48617. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  48618. 8014ab6: 68fb ldr r3, [r7, #12]
  48619. 8014ab8: 3324 adds r3, #36 @ 0x24
  48620. 8014aba: 4618 mov r0, r3
  48621. 8014abc: f7ff feec bl 8014898 <vListInitialise>
  48622. }
  48623. }
  48624. taskEXIT_CRITICAL();
  48625. 8014ac0: f003 f94c bl 8017d5c <vPortExitCritical>
  48626. /* A value is returned for calling semantic consistency with previous
  48627. versions. */
  48628. return pdPASS;
  48629. 8014ac4: 2301 movs r3, #1
  48630. }
  48631. 8014ac6: 4618 mov r0, r3
  48632. 8014ac8: 3710 adds r7, #16
  48633. 8014aca: 46bd mov sp, r7
  48634. 8014acc: bd80 pop {r7, pc}
  48635. 8014ace: bf00 nop
  48636. 8014ad0: e000ed04 .word 0xe000ed04
  48637. 08014ad4 <xQueueGenericCreateStatic>:
  48638. /*-----------------------------------------------------------*/
  48639. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48640. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  48641. {
  48642. 8014ad4: b580 push {r7, lr}
  48643. 8014ad6: b08e sub sp, #56 @ 0x38
  48644. 8014ad8: af02 add r7, sp, #8
  48645. 8014ada: 60f8 str r0, [r7, #12]
  48646. 8014adc: 60b9 str r1, [r7, #8]
  48647. 8014ade: 607a str r2, [r7, #4]
  48648. 8014ae0: 603b str r3, [r7, #0]
  48649. Queue_t *pxNewQueue;
  48650. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48651. 8014ae2: 68fb ldr r3, [r7, #12]
  48652. 8014ae4: 2b00 cmp r3, #0
  48653. 8014ae6: d10b bne.n 8014b00 <xQueueGenericCreateStatic+0x2c>
  48654. __asm volatile
  48655. 8014ae8: f04f 0350 mov.w r3, #80 @ 0x50
  48656. 8014aec: f383 8811 msr BASEPRI, r3
  48657. 8014af0: f3bf 8f6f isb sy
  48658. 8014af4: f3bf 8f4f dsb sy
  48659. 8014af8: 62bb str r3, [r7, #40] @ 0x28
  48660. }
  48661. 8014afa: bf00 nop
  48662. 8014afc: bf00 nop
  48663. 8014afe: e7fd b.n 8014afc <xQueueGenericCreateStatic+0x28>
  48664. /* The StaticQueue_t structure and the queue storage area must be
  48665. supplied. */
  48666. configASSERT( pxStaticQueue != NULL );
  48667. 8014b00: 683b ldr r3, [r7, #0]
  48668. 8014b02: 2b00 cmp r3, #0
  48669. 8014b04: d10b bne.n 8014b1e <xQueueGenericCreateStatic+0x4a>
  48670. __asm volatile
  48671. 8014b06: f04f 0350 mov.w r3, #80 @ 0x50
  48672. 8014b0a: f383 8811 msr BASEPRI, r3
  48673. 8014b0e: f3bf 8f6f isb sy
  48674. 8014b12: f3bf 8f4f dsb sy
  48675. 8014b16: 627b str r3, [r7, #36] @ 0x24
  48676. }
  48677. 8014b18: bf00 nop
  48678. 8014b1a: bf00 nop
  48679. 8014b1c: e7fd b.n 8014b1a <xQueueGenericCreateStatic+0x46>
  48680. /* A queue storage area should be provided if the item size is not 0, and
  48681. should not be provided if the item size is 0. */
  48682. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  48683. 8014b1e: 687b ldr r3, [r7, #4]
  48684. 8014b20: 2b00 cmp r3, #0
  48685. 8014b22: d002 beq.n 8014b2a <xQueueGenericCreateStatic+0x56>
  48686. 8014b24: 68bb ldr r3, [r7, #8]
  48687. 8014b26: 2b00 cmp r3, #0
  48688. 8014b28: d001 beq.n 8014b2e <xQueueGenericCreateStatic+0x5a>
  48689. 8014b2a: 2301 movs r3, #1
  48690. 8014b2c: e000 b.n 8014b30 <xQueueGenericCreateStatic+0x5c>
  48691. 8014b2e: 2300 movs r3, #0
  48692. 8014b30: 2b00 cmp r3, #0
  48693. 8014b32: d10b bne.n 8014b4c <xQueueGenericCreateStatic+0x78>
  48694. __asm volatile
  48695. 8014b34: f04f 0350 mov.w r3, #80 @ 0x50
  48696. 8014b38: f383 8811 msr BASEPRI, r3
  48697. 8014b3c: f3bf 8f6f isb sy
  48698. 8014b40: f3bf 8f4f dsb sy
  48699. 8014b44: 623b str r3, [r7, #32]
  48700. }
  48701. 8014b46: bf00 nop
  48702. 8014b48: bf00 nop
  48703. 8014b4a: e7fd b.n 8014b48 <xQueueGenericCreateStatic+0x74>
  48704. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  48705. 8014b4c: 687b ldr r3, [r7, #4]
  48706. 8014b4e: 2b00 cmp r3, #0
  48707. 8014b50: d102 bne.n 8014b58 <xQueueGenericCreateStatic+0x84>
  48708. 8014b52: 68bb ldr r3, [r7, #8]
  48709. 8014b54: 2b00 cmp r3, #0
  48710. 8014b56: d101 bne.n 8014b5c <xQueueGenericCreateStatic+0x88>
  48711. 8014b58: 2301 movs r3, #1
  48712. 8014b5a: e000 b.n 8014b5e <xQueueGenericCreateStatic+0x8a>
  48713. 8014b5c: 2300 movs r3, #0
  48714. 8014b5e: 2b00 cmp r3, #0
  48715. 8014b60: d10b bne.n 8014b7a <xQueueGenericCreateStatic+0xa6>
  48716. __asm volatile
  48717. 8014b62: f04f 0350 mov.w r3, #80 @ 0x50
  48718. 8014b66: f383 8811 msr BASEPRI, r3
  48719. 8014b6a: f3bf 8f6f isb sy
  48720. 8014b6e: f3bf 8f4f dsb sy
  48721. 8014b72: 61fb str r3, [r7, #28]
  48722. }
  48723. 8014b74: bf00 nop
  48724. 8014b76: bf00 nop
  48725. 8014b78: e7fd b.n 8014b76 <xQueueGenericCreateStatic+0xa2>
  48726. #if( configASSERT_DEFINED == 1 )
  48727. {
  48728. /* Sanity check that the size of the structure used to declare a
  48729. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  48730. the real queue and semaphore structures. */
  48731. volatile size_t xSize = sizeof( StaticQueue_t );
  48732. 8014b7a: 2350 movs r3, #80 @ 0x50
  48733. 8014b7c: 617b str r3, [r7, #20]
  48734. configASSERT( xSize == sizeof( Queue_t ) );
  48735. 8014b7e: 697b ldr r3, [r7, #20]
  48736. 8014b80: 2b50 cmp r3, #80 @ 0x50
  48737. 8014b82: d00b beq.n 8014b9c <xQueueGenericCreateStatic+0xc8>
  48738. __asm volatile
  48739. 8014b84: f04f 0350 mov.w r3, #80 @ 0x50
  48740. 8014b88: f383 8811 msr BASEPRI, r3
  48741. 8014b8c: f3bf 8f6f isb sy
  48742. 8014b90: f3bf 8f4f dsb sy
  48743. 8014b94: 61bb str r3, [r7, #24]
  48744. }
  48745. 8014b96: bf00 nop
  48746. 8014b98: bf00 nop
  48747. 8014b9a: e7fd b.n 8014b98 <xQueueGenericCreateStatic+0xc4>
  48748. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  48749. 8014b9c: 697b ldr r3, [r7, #20]
  48750. #endif /* configASSERT_DEFINED */
  48751. /* The address of a statically allocated queue was passed in, use it.
  48752. The address of a statically allocated storage area was also passed in
  48753. but is already set. */
  48754. 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. */
  48755. 8014b9e: 683b ldr r3, [r7, #0]
  48756. 8014ba0: 62fb str r3, [r7, #44] @ 0x2c
  48757. if( pxNewQueue != NULL )
  48758. 8014ba2: 6afb ldr r3, [r7, #44] @ 0x2c
  48759. 8014ba4: 2b00 cmp r3, #0
  48760. 8014ba6: d00d beq.n 8014bc4 <xQueueGenericCreateStatic+0xf0>
  48761. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48762. {
  48763. /* Queues can be allocated wither statically or dynamically, so
  48764. note this queue was allocated statically in case the queue is
  48765. later deleted. */
  48766. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  48767. 8014ba8: 6afb ldr r3, [r7, #44] @ 0x2c
  48768. 8014baa: 2201 movs r2, #1
  48769. 8014bac: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48770. }
  48771. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48772. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48773. 8014bb0: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  48774. 8014bb4: 6afb ldr r3, [r7, #44] @ 0x2c
  48775. 8014bb6: 9300 str r3, [sp, #0]
  48776. 8014bb8: 4613 mov r3, r2
  48777. 8014bba: 687a ldr r2, [r7, #4]
  48778. 8014bbc: 68b9 ldr r1, [r7, #8]
  48779. 8014bbe: 68f8 ldr r0, [r7, #12]
  48780. 8014bc0: f000 f840 bl 8014c44 <prvInitialiseNewQueue>
  48781. {
  48782. traceQUEUE_CREATE_FAILED( ucQueueType );
  48783. mtCOVERAGE_TEST_MARKER();
  48784. }
  48785. return pxNewQueue;
  48786. 8014bc4: 6afb ldr r3, [r7, #44] @ 0x2c
  48787. }
  48788. 8014bc6: 4618 mov r0, r3
  48789. 8014bc8: 3730 adds r7, #48 @ 0x30
  48790. 8014bca: 46bd mov sp, r7
  48791. 8014bcc: bd80 pop {r7, pc}
  48792. 08014bce <xQueueGenericCreate>:
  48793. /*-----------------------------------------------------------*/
  48794. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  48795. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  48796. {
  48797. 8014bce: b580 push {r7, lr}
  48798. 8014bd0: b08a sub sp, #40 @ 0x28
  48799. 8014bd2: af02 add r7, sp, #8
  48800. 8014bd4: 60f8 str r0, [r7, #12]
  48801. 8014bd6: 60b9 str r1, [r7, #8]
  48802. 8014bd8: 4613 mov r3, r2
  48803. 8014bda: 71fb strb r3, [r7, #7]
  48804. Queue_t *pxNewQueue;
  48805. size_t xQueueSizeInBytes;
  48806. uint8_t *pucQueueStorage;
  48807. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  48808. 8014bdc: 68fb ldr r3, [r7, #12]
  48809. 8014bde: 2b00 cmp r3, #0
  48810. 8014be0: d10b bne.n 8014bfa <xQueueGenericCreate+0x2c>
  48811. __asm volatile
  48812. 8014be2: f04f 0350 mov.w r3, #80 @ 0x50
  48813. 8014be6: f383 8811 msr BASEPRI, r3
  48814. 8014bea: f3bf 8f6f isb sy
  48815. 8014bee: f3bf 8f4f dsb sy
  48816. 8014bf2: 613b str r3, [r7, #16]
  48817. }
  48818. 8014bf4: bf00 nop
  48819. 8014bf6: bf00 nop
  48820. 8014bf8: e7fd b.n 8014bf6 <xQueueGenericCreate+0x28>
  48821. /* Allocate enough space to hold the maximum number of items that
  48822. can be in the queue at any time. It is valid for uxItemSize to be
  48823. zero in the case the queue is used as a semaphore. */
  48824. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  48825. 8014bfa: 68fb ldr r3, [r7, #12]
  48826. 8014bfc: 68ba ldr r2, [r7, #8]
  48827. 8014bfe: fb02 f303 mul.w r3, r2, r3
  48828. 8014c02: 61fb str r3, [r7, #28]
  48829. alignment requirements of the Queue_t structure - which in this case
  48830. is an int8_t *. Therefore, whenever the stack alignment requirements
  48831. are greater than or equal to the pointer to char requirements the cast
  48832. is safe. In other cases alignment requirements are not strict (one or
  48833. two bytes). */
  48834. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  48835. 8014c04: 69fb ldr r3, [r7, #28]
  48836. 8014c06: 3350 adds r3, #80 @ 0x50
  48837. 8014c08: 4618 mov r0, r3
  48838. 8014c0a: f003 f997 bl 8017f3c <pvPortMalloc>
  48839. 8014c0e: 61b8 str r0, [r7, #24]
  48840. if( pxNewQueue != NULL )
  48841. 8014c10: 69bb ldr r3, [r7, #24]
  48842. 8014c12: 2b00 cmp r3, #0
  48843. 8014c14: d011 beq.n 8014c3a <xQueueGenericCreate+0x6c>
  48844. {
  48845. /* Jump past the queue structure to find the location of the queue
  48846. storage area. */
  48847. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  48848. 8014c16: 69bb ldr r3, [r7, #24]
  48849. 8014c18: 617b str r3, [r7, #20]
  48850. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  48851. 8014c1a: 697b ldr r3, [r7, #20]
  48852. 8014c1c: 3350 adds r3, #80 @ 0x50
  48853. 8014c1e: 617b str r3, [r7, #20]
  48854. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  48855. {
  48856. /* Queues can be created either statically or dynamically, so
  48857. note this task was created dynamically in case it is later
  48858. deleted. */
  48859. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  48860. 8014c20: 69bb ldr r3, [r7, #24]
  48861. 8014c22: 2200 movs r2, #0
  48862. 8014c24: f883 2046 strb.w r2, [r3, #70] @ 0x46
  48863. }
  48864. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48865. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  48866. 8014c28: 79fa ldrb r2, [r7, #7]
  48867. 8014c2a: 69bb ldr r3, [r7, #24]
  48868. 8014c2c: 9300 str r3, [sp, #0]
  48869. 8014c2e: 4613 mov r3, r2
  48870. 8014c30: 697a ldr r2, [r7, #20]
  48871. 8014c32: 68b9 ldr r1, [r7, #8]
  48872. 8014c34: 68f8 ldr r0, [r7, #12]
  48873. 8014c36: f000 f805 bl 8014c44 <prvInitialiseNewQueue>
  48874. {
  48875. traceQUEUE_CREATE_FAILED( ucQueueType );
  48876. mtCOVERAGE_TEST_MARKER();
  48877. }
  48878. return pxNewQueue;
  48879. 8014c3a: 69bb ldr r3, [r7, #24]
  48880. }
  48881. 8014c3c: 4618 mov r0, r3
  48882. 8014c3e: 3720 adds r7, #32
  48883. 8014c40: 46bd mov sp, r7
  48884. 8014c42: bd80 pop {r7, pc}
  48885. 08014c44 <prvInitialiseNewQueue>:
  48886. #endif /* configSUPPORT_STATIC_ALLOCATION */
  48887. /*-----------------------------------------------------------*/
  48888. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  48889. {
  48890. 8014c44: b580 push {r7, lr}
  48891. 8014c46: b084 sub sp, #16
  48892. 8014c48: af00 add r7, sp, #0
  48893. 8014c4a: 60f8 str r0, [r7, #12]
  48894. 8014c4c: 60b9 str r1, [r7, #8]
  48895. 8014c4e: 607a str r2, [r7, #4]
  48896. 8014c50: 70fb strb r3, [r7, #3]
  48897. /* Remove compiler warnings about unused parameters should
  48898. configUSE_TRACE_FACILITY not be set to 1. */
  48899. ( void ) ucQueueType;
  48900. if( uxItemSize == ( UBaseType_t ) 0 )
  48901. 8014c52: 68bb ldr r3, [r7, #8]
  48902. 8014c54: 2b00 cmp r3, #0
  48903. 8014c56: d103 bne.n 8014c60 <prvInitialiseNewQueue+0x1c>
  48904. {
  48905. /* No RAM was allocated for the queue storage area, but PC head cannot
  48906. be set to NULL because NULL is used as a key to say the queue is used as
  48907. a mutex. Therefore just set pcHead to point to the queue as a benign
  48908. value that is known to be within the memory map. */
  48909. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  48910. 8014c58: 69bb ldr r3, [r7, #24]
  48911. 8014c5a: 69ba ldr r2, [r7, #24]
  48912. 8014c5c: 601a str r2, [r3, #0]
  48913. 8014c5e: e002 b.n 8014c66 <prvInitialiseNewQueue+0x22>
  48914. }
  48915. else
  48916. {
  48917. /* Set the head to the start of the queue storage area. */
  48918. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  48919. 8014c60: 69bb ldr r3, [r7, #24]
  48920. 8014c62: 687a ldr r2, [r7, #4]
  48921. 8014c64: 601a str r2, [r3, #0]
  48922. }
  48923. /* Initialise the queue members as described where the queue type is
  48924. defined. */
  48925. pxNewQueue->uxLength = uxQueueLength;
  48926. 8014c66: 69bb ldr r3, [r7, #24]
  48927. 8014c68: 68fa ldr r2, [r7, #12]
  48928. 8014c6a: 63da str r2, [r3, #60] @ 0x3c
  48929. pxNewQueue->uxItemSize = uxItemSize;
  48930. 8014c6c: 69bb ldr r3, [r7, #24]
  48931. 8014c6e: 68ba ldr r2, [r7, #8]
  48932. 8014c70: 641a str r2, [r3, #64] @ 0x40
  48933. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  48934. 8014c72: 2101 movs r1, #1
  48935. 8014c74: 69b8 ldr r0, [r7, #24]
  48936. 8014c76: f7ff fec3 bl 8014a00 <xQueueGenericReset>
  48937. #if ( configUSE_TRACE_FACILITY == 1 )
  48938. {
  48939. pxNewQueue->ucQueueType = ucQueueType;
  48940. 8014c7a: 69bb ldr r3, [r7, #24]
  48941. 8014c7c: 78fa ldrb r2, [r7, #3]
  48942. 8014c7e: f883 204c strb.w r2, [r3, #76] @ 0x4c
  48943. pxNewQueue->pxQueueSetContainer = NULL;
  48944. }
  48945. #endif /* configUSE_QUEUE_SETS */
  48946. traceQUEUE_CREATE( pxNewQueue );
  48947. }
  48948. 8014c82: bf00 nop
  48949. 8014c84: 3710 adds r7, #16
  48950. 8014c86: 46bd mov sp, r7
  48951. 8014c88: bd80 pop {r7, pc}
  48952. 08014c8a <prvInitialiseMutex>:
  48953. /*-----------------------------------------------------------*/
  48954. #if( configUSE_MUTEXES == 1 )
  48955. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  48956. {
  48957. 8014c8a: b580 push {r7, lr}
  48958. 8014c8c: b082 sub sp, #8
  48959. 8014c8e: af00 add r7, sp, #0
  48960. 8014c90: 6078 str r0, [r7, #4]
  48961. if( pxNewQueue != NULL )
  48962. 8014c92: 687b ldr r3, [r7, #4]
  48963. 8014c94: 2b00 cmp r3, #0
  48964. 8014c96: d00e beq.n 8014cb6 <prvInitialiseMutex+0x2c>
  48965. {
  48966. /* The queue create function will set all the queue structure members
  48967. correctly for a generic queue, but this function is creating a
  48968. mutex. Overwrite those members that need to be set differently -
  48969. in particular the information required for priority inheritance. */
  48970. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  48971. 8014c98: 687b ldr r3, [r7, #4]
  48972. 8014c9a: 2200 movs r2, #0
  48973. 8014c9c: 609a str r2, [r3, #8]
  48974. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  48975. 8014c9e: 687b ldr r3, [r7, #4]
  48976. 8014ca0: 2200 movs r2, #0
  48977. 8014ca2: 601a str r2, [r3, #0]
  48978. /* In case this is a recursive mutex. */
  48979. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  48980. 8014ca4: 687b ldr r3, [r7, #4]
  48981. 8014ca6: 2200 movs r2, #0
  48982. 8014ca8: 60da str r2, [r3, #12]
  48983. traceCREATE_MUTEX( pxNewQueue );
  48984. /* Start with the semaphore in the expected state. */
  48985. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  48986. 8014caa: 2300 movs r3, #0
  48987. 8014cac: 2200 movs r2, #0
  48988. 8014cae: 2100 movs r1, #0
  48989. 8014cb0: 6878 ldr r0, [r7, #4]
  48990. 8014cb2: f000 f8a3 bl 8014dfc <xQueueGenericSend>
  48991. }
  48992. else
  48993. {
  48994. traceCREATE_MUTEX_FAILED();
  48995. }
  48996. }
  48997. 8014cb6: bf00 nop
  48998. 8014cb8: 3708 adds r7, #8
  48999. 8014cba: 46bd mov sp, r7
  49000. 8014cbc: bd80 pop {r7, pc}
  49001. 08014cbe <xQueueCreateMutex>:
  49002. /*-----------------------------------------------------------*/
  49003. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  49004. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  49005. {
  49006. 8014cbe: b580 push {r7, lr}
  49007. 8014cc0: b086 sub sp, #24
  49008. 8014cc2: af00 add r7, sp, #0
  49009. 8014cc4: 4603 mov r3, r0
  49010. 8014cc6: 71fb strb r3, [r7, #7]
  49011. QueueHandle_t xNewQueue;
  49012. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49013. 8014cc8: 2301 movs r3, #1
  49014. 8014cca: 617b str r3, [r7, #20]
  49015. 8014ccc: 2300 movs r3, #0
  49016. 8014cce: 613b str r3, [r7, #16]
  49017. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  49018. 8014cd0: 79fb ldrb r3, [r7, #7]
  49019. 8014cd2: 461a mov r2, r3
  49020. 8014cd4: 6939 ldr r1, [r7, #16]
  49021. 8014cd6: 6978 ldr r0, [r7, #20]
  49022. 8014cd8: f7ff ff79 bl 8014bce <xQueueGenericCreate>
  49023. 8014cdc: 60f8 str r0, [r7, #12]
  49024. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49025. 8014cde: 68f8 ldr r0, [r7, #12]
  49026. 8014ce0: f7ff ffd3 bl 8014c8a <prvInitialiseMutex>
  49027. return xNewQueue;
  49028. 8014ce4: 68fb ldr r3, [r7, #12]
  49029. }
  49030. 8014ce6: 4618 mov r0, r3
  49031. 8014ce8: 3718 adds r7, #24
  49032. 8014cea: 46bd mov sp, r7
  49033. 8014cec: bd80 pop {r7, pc}
  49034. 08014cee <xQueueCreateMutexStatic>:
  49035. /*-----------------------------------------------------------*/
  49036. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  49037. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  49038. {
  49039. 8014cee: b580 push {r7, lr}
  49040. 8014cf0: b088 sub sp, #32
  49041. 8014cf2: af02 add r7, sp, #8
  49042. 8014cf4: 4603 mov r3, r0
  49043. 8014cf6: 6039 str r1, [r7, #0]
  49044. 8014cf8: 71fb strb r3, [r7, #7]
  49045. QueueHandle_t xNewQueue;
  49046. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  49047. 8014cfa: 2301 movs r3, #1
  49048. 8014cfc: 617b str r3, [r7, #20]
  49049. 8014cfe: 2300 movs r3, #0
  49050. 8014d00: 613b str r3, [r7, #16]
  49051. /* Prevent compiler warnings about unused parameters if
  49052. configUSE_TRACE_FACILITY does not equal 1. */
  49053. ( void ) ucQueueType;
  49054. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  49055. 8014d02: 79fb ldrb r3, [r7, #7]
  49056. 8014d04: 9300 str r3, [sp, #0]
  49057. 8014d06: 683b ldr r3, [r7, #0]
  49058. 8014d08: 2200 movs r2, #0
  49059. 8014d0a: 6939 ldr r1, [r7, #16]
  49060. 8014d0c: 6978 ldr r0, [r7, #20]
  49061. 8014d0e: f7ff fee1 bl 8014ad4 <xQueueGenericCreateStatic>
  49062. 8014d12: 60f8 str r0, [r7, #12]
  49063. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  49064. 8014d14: 68f8 ldr r0, [r7, #12]
  49065. 8014d16: f7ff ffb8 bl 8014c8a <prvInitialiseMutex>
  49066. return xNewQueue;
  49067. 8014d1a: 68fb ldr r3, [r7, #12]
  49068. }
  49069. 8014d1c: 4618 mov r0, r3
  49070. 8014d1e: 3718 adds r7, #24
  49071. 8014d20: 46bd mov sp, r7
  49072. 8014d22: bd80 pop {r7, pc}
  49073. 08014d24 <xQueueGiveMutexRecursive>:
  49074. /*-----------------------------------------------------------*/
  49075. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49076. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  49077. {
  49078. 8014d24: b590 push {r4, r7, lr}
  49079. 8014d26: b087 sub sp, #28
  49080. 8014d28: af00 add r7, sp, #0
  49081. 8014d2a: 6078 str r0, [r7, #4]
  49082. BaseType_t xReturn;
  49083. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49084. 8014d2c: 687b ldr r3, [r7, #4]
  49085. 8014d2e: 613b str r3, [r7, #16]
  49086. configASSERT( pxMutex );
  49087. 8014d30: 693b ldr r3, [r7, #16]
  49088. 8014d32: 2b00 cmp r3, #0
  49089. 8014d34: d10b bne.n 8014d4e <xQueueGiveMutexRecursive+0x2a>
  49090. __asm volatile
  49091. 8014d36: f04f 0350 mov.w r3, #80 @ 0x50
  49092. 8014d3a: f383 8811 msr BASEPRI, r3
  49093. 8014d3e: f3bf 8f6f isb sy
  49094. 8014d42: f3bf 8f4f dsb sy
  49095. 8014d46: 60fb str r3, [r7, #12]
  49096. }
  49097. 8014d48: bf00 nop
  49098. 8014d4a: bf00 nop
  49099. 8014d4c: e7fd b.n 8014d4a <xQueueGiveMutexRecursive+0x26>
  49100. change outside of this task. If this task does not hold the mutex then
  49101. pxMutexHolder can never coincidentally equal the tasks handle, and as
  49102. this is the only condition we are interested in it does not matter if
  49103. pxMutexHolder is accessed simultaneously by another task. Therefore no
  49104. mutual exclusion is required to test the pxMutexHolder variable. */
  49105. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49106. 8014d4e: 693b ldr r3, [r7, #16]
  49107. 8014d50: 689c ldr r4, [r3, #8]
  49108. 8014d52: f001 fe39 bl 80169c8 <xTaskGetCurrentTaskHandle>
  49109. 8014d56: 4603 mov r3, r0
  49110. 8014d58: 429c cmp r4, r3
  49111. 8014d5a: d111 bne.n 8014d80 <xQueueGiveMutexRecursive+0x5c>
  49112. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  49113. the task handle, therefore no underflow check is required. Also,
  49114. uxRecursiveCallCount is only modified by the mutex holder, and as
  49115. there can only be one, no mutual exclusion is required to modify the
  49116. uxRecursiveCallCount member. */
  49117. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  49118. 8014d5c: 693b ldr r3, [r7, #16]
  49119. 8014d5e: 68db ldr r3, [r3, #12]
  49120. 8014d60: 1e5a subs r2, r3, #1
  49121. 8014d62: 693b ldr r3, [r7, #16]
  49122. 8014d64: 60da str r2, [r3, #12]
  49123. /* Has the recursive call count unwound to 0? */
  49124. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  49125. 8014d66: 693b ldr r3, [r7, #16]
  49126. 8014d68: 68db ldr r3, [r3, #12]
  49127. 8014d6a: 2b00 cmp r3, #0
  49128. 8014d6c: d105 bne.n 8014d7a <xQueueGiveMutexRecursive+0x56>
  49129. {
  49130. /* Return the mutex. This will automatically unblock any other
  49131. task that might be waiting to access the mutex. */
  49132. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  49133. 8014d6e: 2300 movs r3, #0
  49134. 8014d70: 2200 movs r2, #0
  49135. 8014d72: 2100 movs r1, #0
  49136. 8014d74: 6938 ldr r0, [r7, #16]
  49137. 8014d76: f000 f841 bl 8014dfc <xQueueGenericSend>
  49138. else
  49139. {
  49140. mtCOVERAGE_TEST_MARKER();
  49141. }
  49142. xReturn = pdPASS;
  49143. 8014d7a: 2301 movs r3, #1
  49144. 8014d7c: 617b str r3, [r7, #20]
  49145. 8014d7e: e001 b.n 8014d84 <xQueueGiveMutexRecursive+0x60>
  49146. }
  49147. else
  49148. {
  49149. /* The mutex cannot be given because the calling task is not the
  49150. holder. */
  49151. xReturn = pdFAIL;
  49152. 8014d80: 2300 movs r3, #0
  49153. 8014d82: 617b str r3, [r7, #20]
  49154. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49155. }
  49156. return xReturn;
  49157. 8014d84: 697b ldr r3, [r7, #20]
  49158. }
  49159. 8014d86: 4618 mov r0, r3
  49160. 8014d88: 371c adds r7, #28
  49161. 8014d8a: 46bd mov sp, r7
  49162. 8014d8c: bd90 pop {r4, r7, pc}
  49163. 08014d8e <xQueueTakeMutexRecursive>:
  49164. /*-----------------------------------------------------------*/
  49165. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  49166. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  49167. {
  49168. 8014d8e: b590 push {r4, r7, lr}
  49169. 8014d90: b087 sub sp, #28
  49170. 8014d92: af00 add r7, sp, #0
  49171. 8014d94: 6078 str r0, [r7, #4]
  49172. 8014d96: 6039 str r1, [r7, #0]
  49173. BaseType_t xReturn;
  49174. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  49175. 8014d98: 687b ldr r3, [r7, #4]
  49176. 8014d9a: 613b str r3, [r7, #16]
  49177. configASSERT( pxMutex );
  49178. 8014d9c: 693b ldr r3, [r7, #16]
  49179. 8014d9e: 2b00 cmp r3, #0
  49180. 8014da0: d10b bne.n 8014dba <xQueueTakeMutexRecursive+0x2c>
  49181. __asm volatile
  49182. 8014da2: f04f 0350 mov.w r3, #80 @ 0x50
  49183. 8014da6: f383 8811 msr BASEPRI, r3
  49184. 8014daa: f3bf 8f6f isb sy
  49185. 8014dae: f3bf 8f4f dsb sy
  49186. 8014db2: 60fb str r3, [r7, #12]
  49187. }
  49188. 8014db4: bf00 nop
  49189. 8014db6: bf00 nop
  49190. 8014db8: e7fd b.n 8014db6 <xQueueTakeMutexRecursive+0x28>
  49191. /* Comments regarding mutual exclusion as per those within
  49192. xQueueGiveMutexRecursive(). */
  49193. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  49194. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  49195. 8014dba: 693b ldr r3, [r7, #16]
  49196. 8014dbc: 689c ldr r4, [r3, #8]
  49197. 8014dbe: f001 fe03 bl 80169c8 <xTaskGetCurrentTaskHandle>
  49198. 8014dc2: 4603 mov r3, r0
  49199. 8014dc4: 429c cmp r4, r3
  49200. 8014dc6: d107 bne.n 8014dd8 <xQueueTakeMutexRecursive+0x4a>
  49201. {
  49202. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49203. 8014dc8: 693b ldr r3, [r7, #16]
  49204. 8014dca: 68db ldr r3, [r3, #12]
  49205. 8014dcc: 1c5a adds r2, r3, #1
  49206. 8014dce: 693b ldr r3, [r7, #16]
  49207. 8014dd0: 60da str r2, [r3, #12]
  49208. xReturn = pdPASS;
  49209. 8014dd2: 2301 movs r3, #1
  49210. 8014dd4: 617b str r3, [r7, #20]
  49211. 8014dd6: e00c b.n 8014df2 <xQueueTakeMutexRecursive+0x64>
  49212. }
  49213. else
  49214. {
  49215. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  49216. 8014dd8: 6839 ldr r1, [r7, #0]
  49217. 8014dda: 6938 ldr r0, [r7, #16]
  49218. 8014ddc: f000 fa90 bl 8015300 <xQueueSemaphoreTake>
  49219. 8014de0: 6178 str r0, [r7, #20]
  49220. /* pdPASS will only be returned if the mutex was successfully
  49221. obtained. The calling task may have entered the Blocked state
  49222. before reaching here. */
  49223. if( xReturn != pdFAIL )
  49224. 8014de2: 697b ldr r3, [r7, #20]
  49225. 8014de4: 2b00 cmp r3, #0
  49226. 8014de6: d004 beq.n 8014df2 <xQueueTakeMutexRecursive+0x64>
  49227. {
  49228. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  49229. 8014de8: 693b ldr r3, [r7, #16]
  49230. 8014dea: 68db ldr r3, [r3, #12]
  49231. 8014dec: 1c5a adds r2, r3, #1
  49232. 8014dee: 693b ldr r3, [r7, #16]
  49233. 8014df0: 60da str r2, [r3, #12]
  49234. {
  49235. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  49236. }
  49237. }
  49238. return xReturn;
  49239. 8014df2: 697b ldr r3, [r7, #20]
  49240. }
  49241. 8014df4: 4618 mov r0, r3
  49242. 8014df6: 371c adds r7, #28
  49243. 8014df8: 46bd mov sp, r7
  49244. 8014dfa: bd90 pop {r4, r7, pc}
  49245. 08014dfc <xQueueGenericSend>:
  49246. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  49247. /*-----------------------------------------------------------*/
  49248. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  49249. {
  49250. 8014dfc: b580 push {r7, lr}
  49251. 8014dfe: b08e sub sp, #56 @ 0x38
  49252. 8014e00: af00 add r7, sp, #0
  49253. 8014e02: 60f8 str r0, [r7, #12]
  49254. 8014e04: 60b9 str r1, [r7, #8]
  49255. 8014e06: 607a str r2, [r7, #4]
  49256. 8014e08: 603b str r3, [r7, #0]
  49257. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  49258. 8014e0a: 2300 movs r3, #0
  49259. 8014e0c: 637b str r3, [r7, #52] @ 0x34
  49260. TimeOut_t xTimeOut;
  49261. Queue_t * const pxQueue = xQueue;
  49262. 8014e0e: 68fb ldr r3, [r7, #12]
  49263. 8014e10: 633b str r3, [r7, #48] @ 0x30
  49264. configASSERT( pxQueue );
  49265. 8014e12: 6b3b ldr r3, [r7, #48] @ 0x30
  49266. 8014e14: 2b00 cmp r3, #0
  49267. 8014e16: d10b bne.n 8014e30 <xQueueGenericSend+0x34>
  49268. __asm volatile
  49269. 8014e18: f04f 0350 mov.w r3, #80 @ 0x50
  49270. 8014e1c: f383 8811 msr BASEPRI, r3
  49271. 8014e20: f3bf 8f6f isb sy
  49272. 8014e24: f3bf 8f4f dsb sy
  49273. 8014e28: 62bb str r3, [r7, #40] @ 0x28
  49274. }
  49275. 8014e2a: bf00 nop
  49276. 8014e2c: bf00 nop
  49277. 8014e2e: e7fd b.n 8014e2c <xQueueGenericSend+0x30>
  49278. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49279. 8014e30: 68bb ldr r3, [r7, #8]
  49280. 8014e32: 2b00 cmp r3, #0
  49281. 8014e34: d103 bne.n 8014e3e <xQueueGenericSend+0x42>
  49282. 8014e36: 6b3b ldr r3, [r7, #48] @ 0x30
  49283. 8014e38: 6c1b ldr r3, [r3, #64] @ 0x40
  49284. 8014e3a: 2b00 cmp r3, #0
  49285. 8014e3c: d101 bne.n 8014e42 <xQueueGenericSend+0x46>
  49286. 8014e3e: 2301 movs r3, #1
  49287. 8014e40: e000 b.n 8014e44 <xQueueGenericSend+0x48>
  49288. 8014e42: 2300 movs r3, #0
  49289. 8014e44: 2b00 cmp r3, #0
  49290. 8014e46: d10b bne.n 8014e60 <xQueueGenericSend+0x64>
  49291. __asm volatile
  49292. 8014e48: f04f 0350 mov.w r3, #80 @ 0x50
  49293. 8014e4c: f383 8811 msr BASEPRI, r3
  49294. 8014e50: f3bf 8f6f isb sy
  49295. 8014e54: f3bf 8f4f dsb sy
  49296. 8014e58: 627b str r3, [r7, #36] @ 0x24
  49297. }
  49298. 8014e5a: bf00 nop
  49299. 8014e5c: bf00 nop
  49300. 8014e5e: e7fd b.n 8014e5c <xQueueGenericSend+0x60>
  49301. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49302. 8014e60: 683b ldr r3, [r7, #0]
  49303. 8014e62: 2b02 cmp r3, #2
  49304. 8014e64: d103 bne.n 8014e6e <xQueueGenericSend+0x72>
  49305. 8014e66: 6b3b ldr r3, [r7, #48] @ 0x30
  49306. 8014e68: 6bdb ldr r3, [r3, #60] @ 0x3c
  49307. 8014e6a: 2b01 cmp r3, #1
  49308. 8014e6c: d101 bne.n 8014e72 <xQueueGenericSend+0x76>
  49309. 8014e6e: 2301 movs r3, #1
  49310. 8014e70: e000 b.n 8014e74 <xQueueGenericSend+0x78>
  49311. 8014e72: 2300 movs r3, #0
  49312. 8014e74: 2b00 cmp r3, #0
  49313. 8014e76: d10b bne.n 8014e90 <xQueueGenericSend+0x94>
  49314. __asm volatile
  49315. 8014e78: f04f 0350 mov.w r3, #80 @ 0x50
  49316. 8014e7c: f383 8811 msr BASEPRI, r3
  49317. 8014e80: f3bf 8f6f isb sy
  49318. 8014e84: f3bf 8f4f dsb sy
  49319. 8014e88: 623b str r3, [r7, #32]
  49320. }
  49321. 8014e8a: bf00 nop
  49322. 8014e8c: bf00 nop
  49323. 8014e8e: e7fd b.n 8014e8c <xQueueGenericSend+0x90>
  49324. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49325. {
  49326. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49327. 8014e90: f001 fdaa bl 80169e8 <xTaskGetSchedulerState>
  49328. 8014e94: 4603 mov r3, r0
  49329. 8014e96: 2b00 cmp r3, #0
  49330. 8014e98: d102 bne.n 8014ea0 <xQueueGenericSend+0xa4>
  49331. 8014e9a: 687b ldr r3, [r7, #4]
  49332. 8014e9c: 2b00 cmp r3, #0
  49333. 8014e9e: d101 bne.n 8014ea4 <xQueueGenericSend+0xa8>
  49334. 8014ea0: 2301 movs r3, #1
  49335. 8014ea2: e000 b.n 8014ea6 <xQueueGenericSend+0xaa>
  49336. 8014ea4: 2300 movs r3, #0
  49337. 8014ea6: 2b00 cmp r3, #0
  49338. 8014ea8: d10b bne.n 8014ec2 <xQueueGenericSend+0xc6>
  49339. __asm volatile
  49340. 8014eaa: f04f 0350 mov.w r3, #80 @ 0x50
  49341. 8014eae: f383 8811 msr BASEPRI, r3
  49342. 8014eb2: f3bf 8f6f isb sy
  49343. 8014eb6: f3bf 8f4f dsb sy
  49344. 8014eba: 61fb str r3, [r7, #28]
  49345. }
  49346. 8014ebc: bf00 nop
  49347. 8014ebe: bf00 nop
  49348. 8014ec0: e7fd b.n 8014ebe <xQueueGenericSend+0xc2>
  49349. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49350. allow return statements within the function itself. This is done in the
  49351. interest of execution time efficiency. */
  49352. for( ;; )
  49353. {
  49354. taskENTER_CRITICAL();
  49355. 8014ec2: f002 ff19 bl 8017cf8 <vPortEnterCritical>
  49356. {
  49357. /* Is there room on the queue now? The running task must be the
  49358. highest priority task wanting to access the queue. If the head item
  49359. in the queue is to be overwritten then it does not matter if the
  49360. queue is full. */
  49361. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49362. 8014ec6: 6b3b ldr r3, [r7, #48] @ 0x30
  49363. 8014ec8: 6b9a ldr r2, [r3, #56] @ 0x38
  49364. 8014eca: 6b3b ldr r3, [r7, #48] @ 0x30
  49365. 8014ecc: 6bdb ldr r3, [r3, #60] @ 0x3c
  49366. 8014ece: 429a cmp r2, r3
  49367. 8014ed0: d302 bcc.n 8014ed8 <xQueueGenericSend+0xdc>
  49368. 8014ed2: 683b ldr r3, [r7, #0]
  49369. 8014ed4: 2b02 cmp r3, #2
  49370. 8014ed6: d129 bne.n 8014f2c <xQueueGenericSend+0x130>
  49371. }
  49372. }
  49373. }
  49374. #else /* configUSE_QUEUE_SETS */
  49375. {
  49376. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49377. 8014ed8: 683a ldr r2, [r7, #0]
  49378. 8014eda: 68b9 ldr r1, [r7, #8]
  49379. 8014edc: 6b38 ldr r0, [r7, #48] @ 0x30
  49380. 8014ede: f000 fbb9 bl 8015654 <prvCopyDataToQueue>
  49381. 8014ee2: 62f8 str r0, [r7, #44] @ 0x2c
  49382. /* If there was a task waiting for data to arrive on the
  49383. queue then unblock it now. */
  49384. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49385. 8014ee4: 6b3b ldr r3, [r7, #48] @ 0x30
  49386. 8014ee6: 6a5b ldr r3, [r3, #36] @ 0x24
  49387. 8014ee8: 2b00 cmp r3, #0
  49388. 8014eea: d010 beq.n 8014f0e <xQueueGenericSend+0x112>
  49389. {
  49390. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49391. 8014eec: 6b3b ldr r3, [r7, #48] @ 0x30
  49392. 8014eee: 3324 adds r3, #36 @ 0x24
  49393. 8014ef0: 4618 mov r0, r3
  49394. 8014ef2: f001 fb7b bl 80165ec <xTaskRemoveFromEventList>
  49395. 8014ef6: 4603 mov r3, r0
  49396. 8014ef8: 2b00 cmp r3, #0
  49397. 8014efa: d013 beq.n 8014f24 <xQueueGenericSend+0x128>
  49398. {
  49399. /* The unblocked task has a priority higher than
  49400. our own so yield immediately. Yes it is ok to do
  49401. this from within the critical section - the kernel
  49402. takes care of that. */
  49403. queueYIELD_IF_USING_PREEMPTION();
  49404. 8014efc: 4b3f ldr r3, [pc, #252] @ (8014ffc <xQueueGenericSend+0x200>)
  49405. 8014efe: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49406. 8014f02: 601a str r2, [r3, #0]
  49407. 8014f04: f3bf 8f4f dsb sy
  49408. 8014f08: f3bf 8f6f isb sy
  49409. 8014f0c: e00a b.n 8014f24 <xQueueGenericSend+0x128>
  49410. else
  49411. {
  49412. mtCOVERAGE_TEST_MARKER();
  49413. }
  49414. }
  49415. else if( xYieldRequired != pdFALSE )
  49416. 8014f0e: 6afb ldr r3, [r7, #44] @ 0x2c
  49417. 8014f10: 2b00 cmp r3, #0
  49418. 8014f12: d007 beq.n 8014f24 <xQueueGenericSend+0x128>
  49419. {
  49420. /* This path is a special case that will only get
  49421. executed if the task was holding multiple mutexes and
  49422. the mutexes were given back in an order that is
  49423. different to that in which they were taken. */
  49424. queueYIELD_IF_USING_PREEMPTION();
  49425. 8014f14: 4b39 ldr r3, [pc, #228] @ (8014ffc <xQueueGenericSend+0x200>)
  49426. 8014f16: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49427. 8014f1a: 601a str r2, [r3, #0]
  49428. 8014f1c: f3bf 8f4f dsb sy
  49429. 8014f20: f3bf 8f6f isb sy
  49430. mtCOVERAGE_TEST_MARKER();
  49431. }
  49432. }
  49433. #endif /* configUSE_QUEUE_SETS */
  49434. taskEXIT_CRITICAL();
  49435. 8014f24: f002 ff1a bl 8017d5c <vPortExitCritical>
  49436. return pdPASS;
  49437. 8014f28: 2301 movs r3, #1
  49438. 8014f2a: e063 b.n 8014ff4 <xQueueGenericSend+0x1f8>
  49439. }
  49440. else
  49441. {
  49442. if( xTicksToWait == ( TickType_t ) 0 )
  49443. 8014f2c: 687b ldr r3, [r7, #4]
  49444. 8014f2e: 2b00 cmp r3, #0
  49445. 8014f30: d103 bne.n 8014f3a <xQueueGenericSend+0x13e>
  49446. {
  49447. /* The queue was full and no block time is specified (or
  49448. the block time has expired) so leave now. */
  49449. taskEXIT_CRITICAL();
  49450. 8014f32: f002 ff13 bl 8017d5c <vPortExitCritical>
  49451. /* Return to the original privilege level before exiting
  49452. the function. */
  49453. traceQUEUE_SEND_FAILED( pxQueue );
  49454. return errQUEUE_FULL;
  49455. 8014f36: 2300 movs r3, #0
  49456. 8014f38: e05c b.n 8014ff4 <xQueueGenericSend+0x1f8>
  49457. }
  49458. else if( xEntryTimeSet == pdFALSE )
  49459. 8014f3a: 6b7b ldr r3, [r7, #52] @ 0x34
  49460. 8014f3c: 2b00 cmp r3, #0
  49461. 8014f3e: d106 bne.n 8014f4e <xQueueGenericSend+0x152>
  49462. {
  49463. /* The queue was full and a block time was specified so
  49464. configure the timeout structure. */
  49465. vTaskInternalSetTimeOutState( &xTimeOut );
  49466. 8014f40: f107 0314 add.w r3, r7, #20
  49467. 8014f44: 4618 mov r0, r3
  49468. 8014f46: f001 fbdd bl 8016704 <vTaskInternalSetTimeOutState>
  49469. xEntryTimeSet = pdTRUE;
  49470. 8014f4a: 2301 movs r3, #1
  49471. 8014f4c: 637b str r3, [r7, #52] @ 0x34
  49472. /* Entry time was already set. */
  49473. mtCOVERAGE_TEST_MARKER();
  49474. }
  49475. }
  49476. }
  49477. taskEXIT_CRITICAL();
  49478. 8014f4e: f002 ff05 bl 8017d5c <vPortExitCritical>
  49479. /* Interrupts and other tasks can send to and receive from the queue
  49480. now the critical section has been exited. */
  49481. vTaskSuspendAll();
  49482. 8014f52: f001 f90f bl 8016174 <vTaskSuspendAll>
  49483. prvLockQueue( pxQueue );
  49484. 8014f56: f002 fecf bl 8017cf8 <vPortEnterCritical>
  49485. 8014f5a: 6b3b ldr r3, [r7, #48] @ 0x30
  49486. 8014f5c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49487. 8014f60: b25b sxtb r3, r3
  49488. 8014f62: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49489. 8014f66: d103 bne.n 8014f70 <xQueueGenericSend+0x174>
  49490. 8014f68: 6b3b ldr r3, [r7, #48] @ 0x30
  49491. 8014f6a: 2200 movs r2, #0
  49492. 8014f6c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49493. 8014f70: 6b3b ldr r3, [r7, #48] @ 0x30
  49494. 8014f72: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49495. 8014f76: b25b sxtb r3, r3
  49496. 8014f78: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49497. 8014f7c: d103 bne.n 8014f86 <xQueueGenericSend+0x18a>
  49498. 8014f7e: 6b3b ldr r3, [r7, #48] @ 0x30
  49499. 8014f80: 2200 movs r2, #0
  49500. 8014f82: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49501. 8014f86: f002 fee9 bl 8017d5c <vPortExitCritical>
  49502. /* Update the timeout state to see if it has expired yet. */
  49503. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  49504. 8014f8a: 1d3a adds r2, r7, #4
  49505. 8014f8c: f107 0314 add.w r3, r7, #20
  49506. 8014f90: 4611 mov r1, r2
  49507. 8014f92: 4618 mov r0, r3
  49508. 8014f94: f001 fbcc bl 8016730 <xTaskCheckForTimeOut>
  49509. 8014f98: 4603 mov r3, r0
  49510. 8014f9a: 2b00 cmp r3, #0
  49511. 8014f9c: d124 bne.n 8014fe8 <xQueueGenericSend+0x1ec>
  49512. {
  49513. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  49514. 8014f9e: 6b38 ldr r0, [r7, #48] @ 0x30
  49515. 8014fa0: f000 fc50 bl 8015844 <prvIsQueueFull>
  49516. 8014fa4: 4603 mov r3, r0
  49517. 8014fa6: 2b00 cmp r3, #0
  49518. 8014fa8: d018 beq.n 8014fdc <xQueueGenericSend+0x1e0>
  49519. {
  49520. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  49521. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  49522. 8014faa: 6b3b ldr r3, [r7, #48] @ 0x30
  49523. 8014fac: 3310 adds r3, #16
  49524. 8014fae: 687a ldr r2, [r7, #4]
  49525. 8014fb0: 4611 mov r1, r2
  49526. 8014fb2: 4618 mov r0, r3
  49527. 8014fb4: f001 fac8 bl 8016548 <vTaskPlaceOnEventList>
  49528. /* Unlocking the queue means queue events can effect the
  49529. event list. It is possible that interrupts occurring now
  49530. remove this task from the event list again - but as the
  49531. scheduler is suspended the task will go onto the pending
  49532. ready last instead of the actual ready list. */
  49533. prvUnlockQueue( pxQueue );
  49534. 8014fb8: 6b38 ldr r0, [r7, #48] @ 0x30
  49535. 8014fba: f000 fbdb bl 8015774 <prvUnlockQueue>
  49536. /* Resuming the scheduler will move tasks from the pending
  49537. ready list into the ready list - so it is feasible that this
  49538. task is already in a ready list before it yields - in which
  49539. case the yield will not cause a context switch unless there
  49540. is also a higher priority task in the pending ready list. */
  49541. if( xTaskResumeAll() == pdFALSE )
  49542. 8014fbe: f001 f8e7 bl 8016190 <xTaskResumeAll>
  49543. 8014fc2: 4603 mov r3, r0
  49544. 8014fc4: 2b00 cmp r3, #0
  49545. 8014fc6: f47f af7c bne.w 8014ec2 <xQueueGenericSend+0xc6>
  49546. {
  49547. portYIELD_WITHIN_API();
  49548. 8014fca: 4b0c ldr r3, [pc, #48] @ (8014ffc <xQueueGenericSend+0x200>)
  49549. 8014fcc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49550. 8014fd0: 601a str r2, [r3, #0]
  49551. 8014fd2: f3bf 8f4f dsb sy
  49552. 8014fd6: f3bf 8f6f isb sy
  49553. 8014fda: e772 b.n 8014ec2 <xQueueGenericSend+0xc6>
  49554. }
  49555. }
  49556. else
  49557. {
  49558. /* Try again. */
  49559. prvUnlockQueue( pxQueue );
  49560. 8014fdc: 6b38 ldr r0, [r7, #48] @ 0x30
  49561. 8014fde: f000 fbc9 bl 8015774 <prvUnlockQueue>
  49562. ( void ) xTaskResumeAll();
  49563. 8014fe2: f001 f8d5 bl 8016190 <xTaskResumeAll>
  49564. 8014fe6: e76c b.n 8014ec2 <xQueueGenericSend+0xc6>
  49565. }
  49566. }
  49567. else
  49568. {
  49569. /* The timeout has expired. */
  49570. prvUnlockQueue( pxQueue );
  49571. 8014fe8: 6b38 ldr r0, [r7, #48] @ 0x30
  49572. 8014fea: f000 fbc3 bl 8015774 <prvUnlockQueue>
  49573. ( void ) xTaskResumeAll();
  49574. 8014fee: f001 f8cf bl 8016190 <xTaskResumeAll>
  49575. traceQUEUE_SEND_FAILED( pxQueue );
  49576. return errQUEUE_FULL;
  49577. 8014ff2: 2300 movs r3, #0
  49578. }
  49579. } /*lint -restore */
  49580. }
  49581. 8014ff4: 4618 mov r0, r3
  49582. 8014ff6: 3738 adds r7, #56 @ 0x38
  49583. 8014ff8: 46bd mov sp, r7
  49584. 8014ffa: bd80 pop {r7, pc}
  49585. 8014ffc: e000ed04 .word 0xe000ed04
  49586. 08015000 <xQueueGenericSendFromISR>:
  49587. /*-----------------------------------------------------------*/
  49588. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  49589. {
  49590. 8015000: b580 push {r7, lr}
  49591. 8015002: b090 sub sp, #64 @ 0x40
  49592. 8015004: af00 add r7, sp, #0
  49593. 8015006: 60f8 str r0, [r7, #12]
  49594. 8015008: 60b9 str r1, [r7, #8]
  49595. 801500a: 607a str r2, [r7, #4]
  49596. 801500c: 603b str r3, [r7, #0]
  49597. BaseType_t xReturn;
  49598. UBaseType_t uxSavedInterruptStatus;
  49599. Queue_t * const pxQueue = xQueue;
  49600. 801500e: 68fb ldr r3, [r7, #12]
  49601. 8015010: 63bb str r3, [r7, #56] @ 0x38
  49602. configASSERT( pxQueue );
  49603. 8015012: 6bbb ldr r3, [r7, #56] @ 0x38
  49604. 8015014: 2b00 cmp r3, #0
  49605. 8015016: d10b bne.n 8015030 <xQueueGenericSendFromISR+0x30>
  49606. __asm volatile
  49607. 8015018: f04f 0350 mov.w r3, #80 @ 0x50
  49608. 801501c: f383 8811 msr BASEPRI, r3
  49609. 8015020: f3bf 8f6f isb sy
  49610. 8015024: f3bf 8f4f dsb sy
  49611. 8015028: 62bb str r3, [r7, #40] @ 0x28
  49612. }
  49613. 801502a: bf00 nop
  49614. 801502c: bf00 nop
  49615. 801502e: e7fd b.n 801502c <xQueueGenericSendFromISR+0x2c>
  49616. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49617. 8015030: 68bb ldr r3, [r7, #8]
  49618. 8015032: 2b00 cmp r3, #0
  49619. 8015034: d103 bne.n 801503e <xQueueGenericSendFromISR+0x3e>
  49620. 8015036: 6bbb ldr r3, [r7, #56] @ 0x38
  49621. 8015038: 6c1b ldr r3, [r3, #64] @ 0x40
  49622. 801503a: 2b00 cmp r3, #0
  49623. 801503c: d101 bne.n 8015042 <xQueueGenericSendFromISR+0x42>
  49624. 801503e: 2301 movs r3, #1
  49625. 8015040: e000 b.n 8015044 <xQueueGenericSendFromISR+0x44>
  49626. 8015042: 2300 movs r3, #0
  49627. 8015044: 2b00 cmp r3, #0
  49628. 8015046: d10b bne.n 8015060 <xQueueGenericSendFromISR+0x60>
  49629. __asm volatile
  49630. 8015048: f04f 0350 mov.w r3, #80 @ 0x50
  49631. 801504c: f383 8811 msr BASEPRI, r3
  49632. 8015050: f3bf 8f6f isb sy
  49633. 8015054: f3bf 8f4f dsb sy
  49634. 8015058: 627b str r3, [r7, #36] @ 0x24
  49635. }
  49636. 801505a: bf00 nop
  49637. 801505c: bf00 nop
  49638. 801505e: e7fd b.n 801505c <xQueueGenericSendFromISR+0x5c>
  49639. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  49640. 8015060: 683b ldr r3, [r7, #0]
  49641. 8015062: 2b02 cmp r3, #2
  49642. 8015064: d103 bne.n 801506e <xQueueGenericSendFromISR+0x6e>
  49643. 8015066: 6bbb ldr r3, [r7, #56] @ 0x38
  49644. 8015068: 6bdb ldr r3, [r3, #60] @ 0x3c
  49645. 801506a: 2b01 cmp r3, #1
  49646. 801506c: d101 bne.n 8015072 <xQueueGenericSendFromISR+0x72>
  49647. 801506e: 2301 movs r3, #1
  49648. 8015070: e000 b.n 8015074 <xQueueGenericSendFromISR+0x74>
  49649. 8015072: 2300 movs r3, #0
  49650. 8015074: 2b00 cmp r3, #0
  49651. 8015076: d10b bne.n 8015090 <xQueueGenericSendFromISR+0x90>
  49652. __asm volatile
  49653. 8015078: f04f 0350 mov.w r3, #80 @ 0x50
  49654. 801507c: f383 8811 msr BASEPRI, r3
  49655. 8015080: f3bf 8f6f isb sy
  49656. 8015084: f3bf 8f4f dsb sy
  49657. 8015088: 623b str r3, [r7, #32]
  49658. }
  49659. 801508a: bf00 nop
  49660. 801508c: bf00 nop
  49661. 801508e: e7fd b.n 801508c <xQueueGenericSendFromISR+0x8c>
  49662. that have been assigned a priority at or (logically) below the maximum
  49663. system call interrupt priority. FreeRTOS maintains a separate interrupt
  49664. safe API to ensure interrupt entry is as fast and as simple as possible.
  49665. More information (albeit Cortex-M specific) is provided on the following
  49666. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49667. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49668. 8015090: f002 ff12 bl 8017eb8 <vPortValidateInterruptPriority>
  49669. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  49670. {
  49671. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  49672. __asm volatile
  49673. 8015094: f3ef 8211 mrs r2, BASEPRI
  49674. 8015098: f04f 0350 mov.w r3, #80 @ 0x50
  49675. 801509c: f383 8811 msr BASEPRI, r3
  49676. 80150a0: f3bf 8f6f isb sy
  49677. 80150a4: f3bf 8f4f dsb sy
  49678. 80150a8: 61fa str r2, [r7, #28]
  49679. 80150aa: 61bb str r3, [r7, #24]
  49680. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  49681. );
  49682. /* This return will not be reached but is necessary to prevent compiler
  49683. warnings. */
  49684. return ulOriginalBASEPRI;
  49685. 80150ac: 69fb ldr r3, [r7, #28]
  49686. /* Similar to xQueueGenericSend, except without blocking if there is no room
  49687. in the queue. Also don't directly wake a task that was blocked on a queue
  49688. read, instead return a flag to say whether a context switch is required or
  49689. not (i.e. has a task with a higher priority than us been woken by this
  49690. post). */
  49691. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49692. 80150ae: 637b str r3, [r7, #52] @ 0x34
  49693. {
  49694. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  49695. 80150b0: 6bbb ldr r3, [r7, #56] @ 0x38
  49696. 80150b2: 6b9a ldr r2, [r3, #56] @ 0x38
  49697. 80150b4: 6bbb ldr r3, [r7, #56] @ 0x38
  49698. 80150b6: 6bdb ldr r3, [r3, #60] @ 0x3c
  49699. 80150b8: 429a cmp r2, r3
  49700. 80150ba: d302 bcc.n 80150c2 <xQueueGenericSendFromISR+0xc2>
  49701. 80150bc: 683b ldr r3, [r7, #0]
  49702. 80150be: 2b02 cmp r3, #2
  49703. 80150c0: d12f bne.n 8015122 <xQueueGenericSendFromISR+0x122>
  49704. {
  49705. const int8_t cTxLock = pxQueue->cTxLock;
  49706. 80150c2: 6bbb ldr r3, [r7, #56] @ 0x38
  49707. 80150c4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49708. 80150c8: f887 3033 strb.w r3, [r7, #51] @ 0x33
  49709. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  49710. 80150cc: 6bbb ldr r3, [r7, #56] @ 0x38
  49711. 80150ce: 6b9b ldr r3, [r3, #56] @ 0x38
  49712. 80150d0: 62fb str r3, [r7, #44] @ 0x2c
  49713. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  49714. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  49715. in a task disinheriting a priority and prvCopyDataToQueue() can be
  49716. called here even though the disinherit function does not check if
  49717. the scheduler is suspended before accessing the ready lists. */
  49718. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  49719. 80150d2: 683a ldr r2, [r7, #0]
  49720. 80150d4: 68b9 ldr r1, [r7, #8]
  49721. 80150d6: 6bb8 ldr r0, [r7, #56] @ 0x38
  49722. 80150d8: f000 fabc bl 8015654 <prvCopyDataToQueue>
  49723. /* The event list is not altered if the queue is locked. This will
  49724. be done when the queue is unlocked later. */
  49725. if( cTxLock == queueUNLOCKED )
  49726. 80150dc: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  49727. 80150e0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49728. 80150e4: d112 bne.n 801510c <xQueueGenericSendFromISR+0x10c>
  49729. }
  49730. }
  49731. }
  49732. #else /* configUSE_QUEUE_SETS */
  49733. {
  49734. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49735. 80150e6: 6bbb ldr r3, [r7, #56] @ 0x38
  49736. 80150e8: 6a5b ldr r3, [r3, #36] @ 0x24
  49737. 80150ea: 2b00 cmp r3, #0
  49738. 80150ec: d016 beq.n 801511c <xQueueGenericSendFromISR+0x11c>
  49739. {
  49740. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49741. 80150ee: 6bbb ldr r3, [r7, #56] @ 0x38
  49742. 80150f0: 3324 adds r3, #36 @ 0x24
  49743. 80150f2: 4618 mov r0, r3
  49744. 80150f4: f001 fa7a bl 80165ec <xTaskRemoveFromEventList>
  49745. 80150f8: 4603 mov r3, r0
  49746. 80150fa: 2b00 cmp r3, #0
  49747. 80150fc: d00e beq.n 801511c <xQueueGenericSendFromISR+0x11c>
  49748. {
  49749. /* The task waiting has a higher priority so record that a
  49750. context switch is required. */
  49751. if( pxHigherPriorityTaskWoken != NULL )
  49752. 80150fe: 687b ldr r3, [r7, #4]
  49753. 8015100: 2b00 cmp r3, #0
  49754. 8015102: d00b beq.n 801511c <xQueueGenericSendFromISR+0x11c>
  49755. {
  49756. *pxHigherPriorityTaskWoken = pdTRUE;
  49757. 8015104: 687b ldr r3, [r7, #4]
  49758. 8015106: 2201 movs r2, #1
  49759. 8015108: 601a str r2, [r3, #0]
  49760. 801510a: e007 b.n 801511c <xQueueGenericSendFromISR+0x11c>
  49761. }
  49762. else
  49763. {
  49764. /* Increment the lock count so the task that unlocks the queue
  49765. knows that data was posted while it was locked. */
  49766. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  49767. 801510c: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  49768. 8015110: 3301 adds r3, #1
  49769. 8015112: b2db uxtb r3, r3
  49770. 8015114: b25a sxtb r2, r3
  49771. 8015116: 6bbb ldr r3, [r7, #56] @ 0x38
  49772. 8015118: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49773. }
  49774. xReturn = pdPASS;
  49775. 801511c: 2301 movs r3, #1
  49776. 801511e: 63fb str r3, [r7, #60] @ 0x3c
  49777. {
  49778. 8015120: e001 b.n 8015126 <xQueueGenericSendFromISR+0x126>
  49779. }
  49780. else
  49781. {
  49782. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  49783. xReturn = errQUEUE_FULL;
  49784. 8015122: 2300 movs r3, #0
  49785. 8015124: 63fb str r3, [r7, #60] @ 0x3c
  49786. 8015126: 6b7b ldr r3, [r7, #52] @ 0x34
  49787. 8015128: 617b str r3, [r7, #20]
  49788. }
  49789. /*-----------------------------------------------------------*/
  49790. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  49791. {
  49792. __asm volatile
  49793. 801512a: 697b ldr r3, [r7, #20]
  49794. 801512c: f383 8811 msr BASEPRI, r3
  49795. (
  49796. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  49797. );
  49798. }
  49799. 8015130: bf00 nop
  49800. }
  49801. }
  49802. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49803. return xReturn;
  49804. 8015132: 6bfb ldr r3, [r7, #60] @ 0x3c
  49805. }
  49806. 8015134: 4618 mov r0, r3
  49807. 8015136: 3740 adds r7, #64 @ 0x40
  49808. 8015138: 46bd mov sp, r7
  49809. 801513a: bd80 pop {r7, pc}
  49810. 0801513c <xQueueReceive>:
  49811. return xReturn;
  49812. }
  49813. /*-----------------------------------------------------------*/
  49814. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  49815. {
  49816. 801513c: b580 push {r7, lr}
  49817. 801513e: b08c sub sp, #48 @ 0x30
  49818. 8015140: af00 add r7, sp, #0
  49819. 8015142: 60f8 str r0, [r7, #12]
  49820. 8015144: 60b9 str r1, [r7, #8]
  49821. 8015146: 607a str r2, [r7, #4]
  49822. BaseType_t xEntryTimeSet = pdFALSE;
  49823. 8015148: 2300 movs r3, #0
  49824. 801514a: 62fb str r3, [r7, #44] @ 0x2c
  49825. TimeOut_t xTimeOut;
  49826. Queue_t * const pxQueue = xQueue;
  49827. 801514c: 68fb ldr r3, [r7, #12]
  49828. 801514e: 62bb str r3, [r7, #40] @ 0x28
  49829. /* Check the pointer is not NULL. */
  49830. configASSERT( ( pxQueue ) );
  49831. 8015150: 6abb ldr r3, [r7, #40] @ 0x28
  49832. 8015152: 2b00 cmp r3, #0
  49833. 8015154: d10b bne.n 801516e <xQueueReceive+0x32>
  49834. __asm volatile
  49835. 8015156: f04f 0350 mov.w r3, #80 @ 0x50
  49836. 801515a: f383 8811 msr BASEPRI, r3
  49837. 801515e: f3bf 8f6f isb sy
  49838. 8015162: f3bf 8f4f dsb sy
  49839. 8015166: 623b str r3, [r7, #32]
  49840. }
  49841. 8015168: bf00 nop
  49842. 801516a: bf00 nop
  49843. 801516c: e7fd b.n 801516a <xQueueReceive+0x2e>
  49844. /* The buffer into which data is received can only be NULL if the data size
  49845. is zero (so no data is copied into the buffer. */
  49846. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  49847. 801516e: 68bb ldr r3, [r7, #8]
  49848. 8015170: 2b00 cmp r3, #0
  49849. 8015172: d103 bne.n 801517c <xQueueReceive+0x40>
  49850. 8015174: 6abb ldr r3, [r7, #40] @ 0x28
  49851. 8015176: 6c1b ldr r3, [r3, #64] @ 0x40
  49852. 8015178: 2b00 cmp r3, #0
  49853. 801517a: d101 bne.n 8015180 <xQueueReceive+0x44>
  49854. 801517c: 2301 movs r3, #1
  49855. 801517e: e000 b.n 8015182 <xQueueReceive+0x46>
  49856. 8015180: 2300 movs r3, #0
  49857. 8015182: 2b00 cmp r3, #0
  49858. 8015184: d10b bne.n 801519e <xQueueReceive+0x62>
  49859. __asm volatile
  49860. 8015186: f04f 0350 mov.w r3, #80 @ 0x50
  49861. 801518a: f383 8811 msr BASEPRI, r3
  49862. 801518e: f3bf 8f6f isb sy
  49863. 8015192: f3bf 8f4f dsb sy
  49864. 8015196: 61fb str r3, [r7, #28]
  49865. }
  49866. 8015198: bf00 nop
  49867. 801519a: bf00 nop
  49868. 801519c: e7fd b.n 801519a <xQueueReceive+0x5e>
  49869. /* Cannot block if the scheduler is suspended. */
  49870. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  49871. {
  49872. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  49873. 801519e: f001 fc23 bl 80169e8 <xTaskGetSchedulerState>
  49874. 80151a2: 4603 mov r3, r0
  49875. 80151a4: 2b00 cmp r3, #0
  49876. 80151a6: d102 bne.n 80151ae <xQueueReceive+0x72>
  49877. 80151a8: 687b ldr r3, [r7, #4]
  49878. 80151aa: 2b00 cmp r3, #0
  49879. 80151ac: d101 bne.n 80151b2 <xQueueReceive+0x76>
  49880. 80151ae: 2301 movs r3, #1
  49881. 80151b0: e000 b.n 80151b4 <xQueueReceive+0x78>
  49882. 80151b2: 2300 movs r3, #0
  49883. 80151b4: 2b00 cmp r3, #0
  49884. 80151b6: d10b bne.n 80151d0 <xQueueReceive+0x94>
  49885. __asm volatile
  49886. 80151b8: f04f 0350 mov.w r3, #80 @ 0x50
  49887. 80151bc: f383 8811 msr BASEPRI, r3
  49888. 80151c0: f3bf 8f6f isb sy
  49889. 80151c4: f3bf 8f4f dsb sy
  49890. 80151c8: 61bb str r3, [r7, #24]
  49891. }
  49892. 80151ca: bf00 nop
  49893. 80151cc: bf00 nop
  49894. 80151ce: e7fd b.n 80151cc <xQueueReceive+0x90>
  49895. /*lint -save -e904 This function relaxes the coding standard somewhat to
  49896. allow return statements within the function itself. This is done in the
  49897. interest of execution time efficiency. */
  49898. for( ;; )
  49899. {
  49900. taskENTER_CRITICAL();
  49901. 80151d0: f002 fd92 bl 8017cf8 <vPortEnterCritical>
  49902. {
  49903. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49904. 80151d4: 6abb ldr r3, [r7, #40] @ 0x28
  49905. 80151d6: 6b9b ldr r3, [r3, #56] @ 0x38
  49906. 80151d8: 627b str r3, [r7, #36] @ 0x24
  49907. /* Is there data in the queue now? To be running the calling task
  49908. must be the highest priority task wanting to access the queue. */
  49909. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49910. 80151da: 6a7b ldr r3, [r7, #36] @ 0x24
  49911. 80151dc: 2b00 cmp r3, #0
  49912. 80151de: d01f beq.n 8015220 <xQueueReceive+0xe4>
  49913. {
  49914. /* Data available, remove one item. */
  49915. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49916. 80151e0: 68b9 ldr r1, [r7, #8]
  49917. 80151e2: 6ab8 ldr r0, [r7, #40] @ 0x28
  49918. 80151e4: f000 faa0 bl 8015728 <prvCopyDataFromQueue>
  49919. traceQUEUE_RECEIVE( pxQueue );
  49920. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49921. 80151e8: 6a7b ldr r3, [r7, #36] @ 0x24
  49922. 80151ea: 1e5a subs r2, r3, #1
  49923. 80151ec: 6abb ldr r3, [r7, #40] @ 0x28
  49924. 80151ee: 639a str r2, [r3, #56] @ 0x38
  49925. /* There is now space in the queue, were any tasks waiting to
  49926. post to the queue? If so, unblock the highest priority waiting
  49927. task. */
  49928. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49929. 80151f0: 6abb ldr r3, [r7, #40] @ 0x28
  49930. 80151f2: 691b ldr r3, [r3, #16]
  49931. 80151f4: 2b00 cmp r3, #0
  49932. 80151f6: d00f beq.n 8015218 <xQueueReceive+0xdc>
  49933. {
  49934. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49935. 80151f8: 6abb ldr r3, [r7, #40] @ 0x28
  49936. 80151fa: 3310 adds r3, #16
  49937. 80151fc: 4618 mov r0, r3
  49938. 80151fe: f001 f9f5 bl 80165ec <xTaskRemoveFromEventList>
  49939. 8015202: 4603 mov r3, r0
  49940. 8015204: 2b00 cmp r3, #0
  49941. 8015206: d007 beq.n 8015218 <xQueueReceive+0xdc>
  49942. {
  49943. queueYIELD_IF_USING_PREEMPTION();
  49944. 8015208: 4b3c ldr r3, [pc, #240] @ (80152fc <xQueueReceive+0x1c0>)
  49945. 801520a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49946. 801520e: 601a str r2, [r3, #0]
  49947. 8015210: f3bf 8f4f dsb sy
  49948. 8015214: f3bf 8f6f isb sy
  49949. else
  49950. {
  49951. mtCOVERAGE_TEST_MARKER();
  49952. }
  49953. taskEXIT_CRITICAL();
  49954. 8015218: f002 fda0 bl 8017d5c <vPortExitCritical>
  49955. return pdPASS;
  49956. 801521c: 2301 movs r3, #1
  49957. 801521e: e069 b.n 80152f4 <xQueueReceive+0x1b8>
  49958. }
  49959. else
  49960. {
  49961. if( xTicksToWait == ( TickType_t ) 0 )
  49962. 8015220: 687b ldr r3, [r7, #4]
  49963. 8015222: 2b00 cmp r3, #0
  49964. 8015224: d103 bne.n 801522e <xQueueReceive+0xf2>
  49965. {
  49966. /* The queue was empty and no block time is specified (or
  49967. the block time has expired) so leave now. */
  49968. taskEXIT_CRITICAL();
  49969. 8015226: f002 fd99 bl 8017d5c <vPortExitCritical>
  49970. traceQUEUE_RECEIVE_FAILED( pxQueue );
  49971. return errQUEUE_EMPTY;
  49972. 801522a: 2300 movs r3, #0
  49973. 801522c: e062 b.n 80152f4 <xQueueReceive+0x1b8>
  49974. }
  49975. else if( xEntryTimeSet == pdFALSE )
  49976. 801522e: 6afb ldr r3, [r7, #44] @ 0x2c
  49977. 8015230: 2b00 cmp r3, #0
  49978. 8015232: d106 bne.n 8015242 <xQueueReceive+0x106>
  49979. {
  49980. /* The queue was empty and a block time was specified so
  49981. configure the timeout structure. */
  49982. vTaskInternalSetTimeOutState( &xTimeOut );
  49983. 8015234: f107 0310 add.w r3, r7, #16
  49984. 8015238: 4618 mov r0, r3
  49985. 801523a: f001 fa63 bl 8016704 <vTaskInternalSetTimeOutState>
  49986. xEntryTimeSet = pdTRUE;
  49987. 801523e: 2301 movs r3, #1
  49988. 8015240: 62fb str r3, [r7, #44] @ 0x2c
  49989. /* Entry time was already set. */
  49990. mtCOVERAGE_TEST_MARKER();
  49991. }
  49992. }
  49993. }
  49994. taskEXIT_CRITICAL();
  49995. 8015242: f002 fd8b bl 8017d5c <vPortExitCritical>
  49996. /* Interrupts and other tasks can send to and receive from the queue
  49997. now the critical section has been exited. */
  49998. vTaskSuspendAll();
  49999. 8015246: f000 ff95 bl 8016174 <vTaskSuspendAll>
  50000. prvLockQueue( pxQueue );
  50001. 801524a: f002 fd55 bl 8017cf8 <vPortEnterCritical>
  50002. 801524e: 6abb ldr r3, [r7, #40] @ 0x28
  50003. 8015250: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50004. 8015254: b25b sxtb r3, r3
  50005. 8015256: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50006. 801525a: d103 bne.n 8015264 <xQueueReceive+0x128>
  50007. 801525c: 6abb ldr r3, [r7, #40] @ 0x28
  50008. 801525e: 2200 movs r2, #0
  50009. 8015260: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50010. 8015264: 6abb ldr r3, [r7, #40] @ 0x28
  50011. 8015266: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50012. 801526a: b25b sxtb r3, r3
  50013. 801526c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50014. 8015270: d103 bne.n 801527a <xQueueReceive+0x13e>
  50015. 8015272: 6abb ldr r3, [r7, #40] @ 0x28
  50016. 8015274: 2200 movs r2, #0
  50017. 8015276: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50018. 801527a: f002 fd6f bl 8017d5c <vPortExitCritical>
  50019. /* Update the timeout state to see if it has expired yet. */
  50020. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50021. 801527e: 1d3a adds r2, r7, #4
  50022. 8015280: f107 0310 add.w r3, r7, #16
  50023. 8015284: 4611 mov r1, r2
  50024. 8015286: 4618 mov r0, r3
  50025. 8015288: f001 fa52 bl 8016730 <xTaskCheckForTimeOut>
  50026. 801528c: 4603 mov r3, r0
  50027. 801528e: 2b00 cmp r3, #0
  50028. 8015290: d123 bne.n 80152da <xQueueReceive+0x19e>
  50029. {
  50030. /* The timeout has not expired. If the queue is still empty place
  50031. the task on the list of tasks waiting to receive from the queue. */
  50032. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50033. 8015292: 6ab8 ldr r0, [r7, #40] @ 0x28
  50034. 8015294: f000 fac0 bl 8015818 <prvIsQueueEmpty>
  50035. 8015298: 4603 mov r3, r0
  50036. 801529a: 2b00 cmp r3, #0
  50037. 801529c: d017 beq.n 80152ce <xQueueReceive+0x192>
  50038. {
  50039. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50040. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50041. 801529e: 6abb ldr r3, [r7, #40] @ 0x28
  50042. 80152a0: 3324 adds r3, #36 @ 0x24
  50043. 80152a2: 687a ldr r2, [r7, #4]
  50044. 80152a4: 4611 mov r1, r2
  50045. 80152a6: 4618 mov r0, r3
  50046. 80152a8: f001 f94e bl 8016548 <vTaskPlaceOnEventList>
  50047. prvUnlockQueue( pxQueue );
  50048. 80152ac: 6ab8 ldr r0, [r7, #40] @ 0x28
  50049. 80152ae: f000 fa61 bl 8015774 <prvUnlockQueue>
  50050. if( xTaskResumeAll() == pdFALSE )
  50051. 80152b2: f000 ff6d bl 8016190 <xTaskResumeAll>
  50052. 80152b6: 4603 mov r3, r0
  50053. 80152b8: 2b00 cmp r3, #0
  50054. 80152ba: d189 bne.n 80151d0 <xQueueReceive+0x94>
  50055. {
  50056. portYIELD_WITHIN_API();
  50057. 80152bc: 4b0f ldr r3, [pc, #60] @ (80152fc <xQueueReceive+0x1c0>)
  50058. 80152be: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50059. 80152c2: 601a str r2, [r3, #0]
  50060. 80152c4: f3bf 8f4f dsb sy
  50061. 80152c8: f3bf 8f6f isb sy
  50062. 80152cc: e780 b.n 80151d0 <xQueueReceive+0x94>
  50063. }
  50064. else
  50065. {
  50066. /* The queue contains data again. Loop back to try and read the
  50067. data. */
  50068. prvUnlockQueue( pxQueue );
  50069. 80152ce: 6ab8 ldr r0, [r7, #40] @ 0x28
  50070. 80152d0: f000 fa50 bl 8015774 <prvUnlockQueue>
  50071. ( void ) xTaskResumeAll();
  50072. 80152d4: f000 ff5c bl 8016190 <xTaskResumeAll>
  50073. 80152d8: e77a b.n 80151d0 <xQueueReceive+0x94>
  50074. }
  50075. else
  50076. {
  50077. /* Timed out. If there is no data in the queue exit, otherwise loop
  50078. back and attempt to read the data. */
  50079. prvUnlockQueue( pxQueue );
  50080. 80152da: 6ab8 ldr r0, [r7, #40] @ 0x28
  50081. 80152dc: f000 fa4a bl 8015774 <prvUnlockQueue>
  50082. ( void ) xTaskResumeAll();
  50083. 80152e0: f000 ff56 bl 8016190 <xTaskResumeAll>
  50084. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50085. 80152e4: 6ab8 ldr r0, [r7, #40] @ 0x28
  50086. 80152e6: f000 fa97 bl 8015818 <prvIsQueueEmpty>
  50087. 80152ea: 4603 mov r3, r0
  50088. 80152ec: 2b00 cmp r3, #0
  50089. 80152ee: f43f af6f beq.w 80151d0 <xQueueReceive+0x94>
  50090. {
  50091. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50092. return errQUEUE_EMPTY;
  50093. 80152f2: 2300 movs r3, #0
  50094. {
  50095. mtCOVERAGE_TEST_MARKER();
  50096. }
  50097. }
  50098. } /*lint -restore */
  50099. }
  50100. 80152f4: 4618 mov r0, r3
  50101. 80152f6: 3730 adds r7, #48 @ 0x30
  50102. 80152f8: 46bd mov sp, r7
  50103. 80152fa: bd80 pop {r7, pc}
  50104. 80152fc: e000ed04 .word 0xe000ed04
  50105. 08015300 <xQueueSemaphoreTake>:
  50106. /*-----------------------------------------------------------*/
  50107. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  50108. {
  50109. 8015300: b580 push {r7, lr}
  50110. 8015302: b08e sub sp, #56 @ 0x38
  50111. 8015304: af00 add r7, sp, #0
  50112. 8015306: 6078 str r0, [r7, #4]
  50113. 8015308: 6039 str r1, [r7, #0]
  50114. BaseType_t xEntryTimeSet = pdFALSE;
  50115. 801530a: 2300 movs r3, #0
  50116. 801530c: 637b str r3, [r7, #52] @ 0x34
  50117. TimeOut_t xTimeOut;
  50118. Queue_t * const pxQueue = xQueue;
  50119. 801530e: 687b ldr r3, [r7, #4]
  50120. 8015310: 62fb str r3, [r7, #44] @ 0x2c
  50121. #if( configUSE_MUTEXES == 1 )
  50122. BaseType_t xInheritanceOccurred = pdFALSE;
  50123. 8015312: 2300 movs r3, #0
  50124. 8015314: 633b str r3, [r7, #48] @ 0x30
  50125. #endif
  50126. /* Check the queue pointer is not NULL. */
  50127. configASSERT( ( pxQueue ) );
  50128. 8015316: 6afb ldr r3, [r7, #44] @ 0x2c
  50129. 8015318: 2b00 cmp r3, #0
  50130. 801531a: d10b bne.n 8015334 <xQueueSemaphoreTake+0x34>
  50131. __asm volatile
  50132. 801531c: f04f 0350 mov.w r3, #80 @ 0x50
  50133. 8015320: f383 8811 msr BASEPRI, r3
  50134. 8015324: f3bf 8f6f isb sy
  50135. 8015328: f3bf 8f4f dsb sy
  50136. 801532c: 623b str r3, [r7, #32]
  50137. }
  50138. 801532e: bf00 nop
  50139. 8015330: bf00 nop
  50140. 8015332: e7fd b.n 8015330 <xQueueSemaphoreTake+0x30>
  50141. /* Check this really is a semaphore, in which case the item size will be
  50142. 0. */
  50143. configASSERT( pxQueue->uxItemSize == 0 );
  50144. 8015334: 6afb ldr r3, [r7, #44] @ 0x2c
  50145. 8015336: 6c1b ldr r3, [r3, #64] @ 0x40
  50146. 8015338: 2b00 cmp r3, #0
  50147. 801533a: d00b beq.n 8015354 <xQueueSemaphoreTake+0x54>
  50148. __asm volatile
  50149. 801533c: f04f 0350 mov.w r3, #80 @ 0x50
  50150. 8015340: f383 8811 msr BASEPRI, r3
  50151. 8015344: f3bf 8f6f isb sy
  50152. 8015348: f3bf 8f4f dsb sy
  50153. 801534c: 61fb str r3, [r7, #28]
  50154. }
  50155. 801534e: bf00 nop
  50156. 8015350: bf00 nop
  50157. 8015352: e7fd b.n 8015350 <xQueueSemaphoreTake+0x50>
  50158. /* Cannot block if the scheduler is suspended. */
  50159. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  50160. {
  50161. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  50162. 8015354: f001 fb48 bl 80169e8 <xTaskGetSchedulerState>
  50163. 8015358: 4603 mov r3, r0
  50164. 801535a: 2b00 cmp r3, #0
  50165. 801535c: d102 bne.n 8015364 <xQueueSemaphoreTake+0x64>
  50166. 801535e: 683b ldr r3, [r7, #0]
  50167. 8015360: 2b00 cmp r3, #0
  50168. 8015362: d101 bne.n 8015368 <xQueueSemaphoreTake+0x68>
  50169. 8015364: 2301 movs r3, #1
  50170. 8015366: e000 b.n 801536a <xQueueSemaphoreTake+0x6a>
  50171. 8015368: 2300 movs r3, #0
  50172. 801536a: 2b00 cmp r3, #0
  50173. 801536c: d10b bne.n 8015386 <xQueueSemaphoreTake+0x86>
  50174. __asm volatile
  50175. 801536e: f04f 0350 mov.w r3, #80 @ 0x50
  50176. 8015372: f383 8811 msr BASEPRI, r3
  50177. 8015376: f3bf 8f6f isb sy
  50178. 801537a: f3bf 8f4f dsb sy
  50179. 801537e: 61bb str r3, [r7, #24]
  50180. }
  50181. 8015380: bf00 nop
  50182. 8015382: bf00 nop
  50183. 8015384: e7fd b.n 8015382 <xQueueSemaphoreTake+0x82>
  50184. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  50185. statements within the function itself. This is done in the interest
  50186. of execution time efficiency. */
  50187. for( ;; )
  50188. {
  50189. taskENTER_CRITICAL();
  50190. 8015386: f002 fcb7 bl 8017cf8 <vPortEnterCritical>
  50191. {
  50192. /* Semaphores are queues with an item size of 0, and where the
  50193. number of messages in the queue is the semaphore's count value. */
  50194. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  50195. 801538a: 6afb ldr r3, [r7, #44] @ 0x2c
  50196. 801538c: 6b9b ldr r3, [r3, #56] @ 0x38
  50197. 801538e: 62bb str r3, [r7, #40] @ 0x28
  50198. /* Is there data in the queue now? To be running the calling task
  50199. must be the highest priority task wanting to access the queue. */
  50200. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  50201. 8015390: 6abb ldr r3, [r7, #40] @ 0x28
  50202. 8015392: 2b00 cmp r3, #0
  50203. 8015394: d024 beq.n 80153e0 <xQueueSemaphoreTake+0xe0>
  50204. {
  50205. traceQUEUE_RECEIVE( pxQueue );
  50206. /* Semaphores are queues with a data size of zero and where the
  50207. messages waiting is the semaphore's count. Reduce the count. */
  50208. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  50209. 8015396: 6abb ldr r3, [r7, #40] @ 0x28
  50210. 8015398: 1e5a subs r2, r3, #1
  50211. 801539a: 6afb ldr r3, [r7, #44] @ 0x2c
  50212. 801539c: 639a str r2, [r3, #56] @ 0x38
  50213. #if ( configUSE_MUTEXES == 1 )
  50214. {
  50215. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50216. 801539e: 6afb ldr r3, [r7, #44] @ 0x2c
  50217. 80153a0: 681b ldr r3, [r3, #0]
  50218. 80153a2: 2b00 cmp r3, #0
  50219. 80153a4: d104 bne.n 80153b0 <xQueueSemaphoreTake+0xb0>
  50220. {
  50221. /* Record the information required to implement
  50222. priority inheritance should it become necessary. */
  50223. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  50224. 80153a6: f001 fc99 bl 8016cdc <pvTaskIncrementMutexHeldCount>
  50225. 80153aa: 4602 mov r2, r0
  50226. 80153ac: 6afb ldr r3, [r7, #44] @ 0x2c
  50227. 80153ae: 609a str r2, [r3, #8]
  50228. }
  50229. #endif /* configUSE_MUTEXES */
  50230. /* Check to see if other tasks are blocked waiting to give the
  50231. semaphore, and if so, unblock the highest priority such task. */
  50232. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50233. 80153b0: 6afb ldr r3, [r7, #44] @ 0x2c
  50234. 80153b2: 691b ldr r3, [r3, #16]
  50235. 80153b4: 2b00 cmp r3, #0
  50236. 80153b6: d00f beq.n 80153d8 <xQueueSemaphoreTake+0xd8>
  50237. {
  50238. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50239. 80153b8: 6afb ldr r3, [r7, #44] @ 0x2c
  50240. 80153ba: 3310 adds r3, #16
  50241. 80153bc: 4618 mov r0, r3
  50242. 80153be: f001 f915 bl 80165ec <xTaskRemoveFromEventList>
  50243. 80153c2: 4603 mov r3, r0
  50244. 80153c4: 2b00 cmp r3, #0
  50245. 80153c6: d007 beq.n 80153d8 <xQueueSemaphoreTake+0xd8>
  50246. {
  50247. queueYIELD_IF_USING_PREEMPTION();
  50248. 80153c8: 4b54 ldr r3, [pc, #336] @ (801551c <xQueueSemaphoreTake+0x21c>)
  50249. 80153ca: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50250. 80153ce: 601a str r2, [r3, #0]
  50251. 80153d0: f3bf 8f4f dsb sy
  50252. 80153d4: f3bf 8f6f isb sy
  50253. else
  50254. {
  50255. mtCOVERAGE_TEST_MARKER();
  50256. }
  50257. taskEXIT_CRITICAL();
  50258. 80153d8: f002 fcc0 bl 8017d5c <vPortExitCritical>
  50259. return pdPASS;
  50260. 80153dc: 2301 movs r3, #1
  50261. 80153de: e098 b.n 8015512 <xQueueSemaphoreTake+0x212>
  50262. }
  50263. else
  50264. {
  50265. if( xTicksToWait == ( TickType_t ) 0 )
  50266. 80153e0: 683b ldr r3, [r7, #0]
  50267. 80153e2: 2b00 cmp r3, #0
  50268. 80153e4: d112 bne.n 801540c <xQueueSemaphoreTake+0x10c>
  50269. /* For inheritance to have occurred there must have been an
  50270. initial timeout, and an adjusted timeout cannot become 0, as
  50271. if it were 0 the function would have exited. */
  50272. #if( configUSE_MUTEXES == 1 )
  50273. {
  50274. configASSERT( xInheritanceOccurred == pdFALSE );
  50275. 80153e6: 6b3b ldr r3, [r7, #48] @ 0x30
  50276. 80153e8: 2b00 cmp r3, #0
  50277. 80153ea: d00b beq.n 8015404 <xQueueSemaphoreTake+0x104>
  50278. __asm volatile
  50279. 80153ec: f04f 0350 mov.w r3, #80 @ 0x50
  50280. 80153f0: f383 8811 msr BASEPRI, r3
  50281. 80153f4: f3bf 8f6f isb sy
  50282. 80153f8: f3bf 8f4f dsb sy
  50283. 80153fc: 617b str r3, [r7, #20]
  50284. }
  50285. 80153fe: bf00 nop
  50286. 8015400: bf00 nop
  50287. 8015402: e7fd b.n 8015400 <xQueueSemaphoreTake+0x100>
  50288. }
  50289. #endif /* configUSE_MUTEXES */
  50290. /* The semaphore count was 0 and no block time is specified
  50291. (or the block time has expired) so exit now. */
  50292. taskEXIT_CRITICAL();
  50293. 8015404: f002 fcaa bl 8017d5c <vPortExitCritical>
  50294. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50295. return errQUEUE_EMPTY;
  50296. 8015408: 2300 movs r3, #0
  50297. 801540a: e082 b.n 8015512 <xQueueSemaphoreTake+0x212>
  50298. }
  50299. else if( xEntryTimeSet == pdFALSE )
  50300. 801540c: 6b7b ldr r3, [r7, #52] @ 0x34
  50301. 801540e: 2b00 cmp r3, #0
  50302. 8015410: d106 bne.n 8015420 <xQueueSemaphoreTake+0x120>
  50303. {
  50304. /* The semaphore count was 0 and a block time was specified
  50305. so configure the timeout structure ready to block. */
  50306. vTaskInternalSetTimeOutState( &xTimeOut );
  50307. 8015412: f107 030c add.w r3, r7, #12
  50308. 8015416: 4618 mov r0, r3
  50309. 8015418: f001 f974 bl 8016704 <vTaskInternalSetTimeOutState>
  50310. xEntryTimeSet = pdTRUE;
  50311. 801541c: 2301 movs r3, #1
  50312. 801541e: 637b str r3, [r7, #52] @ 0x34
  50313. /* Entry time was already set. */
  50314. mtCOVERAGE_TEST_MARKER();
  50315. }
  50316. }
  50317. }
  50318. taskEXIT_CRITICAL();
  50319. 8015420: f002 fc9c bl 8017d5c <vPortExitCritical>
  50320. /* Interrupts and other tasks can give to and take from the semaphore
  50321. now the critical section has been exited. */
  50322. vTaskSuspendAll();
  50323. 8015424: f000 fea6 bl 8016174 <vTaskSuspendAll>
  50324. prvLockQueue( pxQueue );
  50325. 8015428: f002 fc66 bl 8017cf8 <vPortEnterCritical>
  50326. 801542c: 6afb ldr r3, [r7, #44] @ 0x2c
  50327. 801542e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50328. 8015432: b25b sxtb r3, r3
  50329. 8015434: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50330. 8015438: d103 bne.n 8015442 <xQueueSemaphoreTake+0x142>
  50331. 801543a: 6afb ldr r3, [r7, #44] @ 0x2c
  50332. 801543c: 2200 movs r2, #0
  50333. 801543e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50334. 8015442: 6afb ldr r3, [r7, #44] @ 0x2c
  50335. 8015444: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50336. 8015448: b25b sxtb r3, r3
  50337. 801544a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50338. 801544e: d103 bne.n 8015458 <xQueueSemaphoreTake+0x158>
  50339. 8015450: 6afb ldr r3, [r7, #44] @ 0x2c
  50340. 8015452: 2200 movs r2, #0
  50341. 8015454: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50342. 8015458: f002 fc80 bl 8017d5c <vPortExitCritical>
  50343. /* Update the timeout state to see if it has expired yet. */
  50344. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  50345. 801545c: 463a mov r2, r7
  50346. 801545e: f107 030c add.w r3, r7, #12
  50347. 8015462: 4611 mov r1, r2
  50348. 8015464: 4618 mov r0, r3
  50349. 8015466: f001 f963 bl 8016730 <xTaskCheckForTimeOut>
  50350. 801546a: 4603 mov r3, r0
  50351. 801546c: 2b00 cmp r3, #0
  50352. 801546e: d132 bne.n 80154d6 <xQueueSemaphoreTake+0x1d6>
  50353. {
  50354. /* A block time is specified and not expired. If the semaphore
  50355. count is 0 then enter the Blocked state to wait for a semaphore to
  50356. become available. As semaphores are implemented with queues the
  50357. queue being empty is equivalent to the semaphore count being 0. */
  50358. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50359. 8015470: 6af8 ldr r0, [r7, #44] @ 0x2c
  50360. 8015472: f000 f9d1 bl 8015818 <prvIsQueueEmpty>
  50361. 8015476: 4603 mov r3, r0
  50362. 8015478: 2b00 cmp r3, #0
  50363. 801547a: d026 beq.n 80154ca <xQueueSemaphoreTake+0x1ca>
  50364. {
  50365. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  50366. #if ( configUSE_MUTEXES == 1 )
  50367. {
  50368. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50369. 801547c: 6afb ldr r3, [r7, #44] @ 0x2c
  50370. 801547e: 681b ldr r3, [r3, #0]
  50371. 8015480: 2b00 cmp r3, #0
  50372. 8015482: d109 bne.n 8015498 <xQueueSemaphoreTake+0x198>
  50373. {
  50374. taskENTER_CRITICAL();
  50375. 8015484: f002 fc38 bl 8017cf8 <vPortEnterCritical>
  50376. {
  50377. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  50378. 8015488: 6afb ldr r3, [r7, #44] @ 0x2c
  50379. 801548a: 689b ldr r3, [r3, #8]
  50380. 801548c: 4618 mov r0, r3
  50381. 801548e: f001 fac9 bl 8016a24 <xTaskPriorityInherit>
  50382. 8015492: 6338 str r0, [r7, #48] @ 0x30
  50383. }
  50384. taskEXIT_CRITICAL();
  50385. 8015494: f002 fc62 bl 8017d5c <vPortExitCritical>
  50386. mtCOVERAGE_TEST_MARKER();
  50387. }
  50388. }
  50389. #endif
  50390. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  50391. 8015498: 6afb ldr r3, [r7, #44] @ 0x2c
  50392. 801549a: 3324 adds r3, #36 @ 0x24
  50393. 801549c: 683a ldr r2, [r7, #0]
  50394. 801549e: 4611 mov r1, r2
  50395. 80154a0: 4618 mov r0, r3
  50396. 80154a2: f001 f851 bl 8016548 <vTaskPlaceOnEventList>
  50397. prvUnlockQueue( pxQueue );
  50398. 80154a6: 6af8 ldr r0, [r7, #44] @ 0x2c
  50399. 80154a8: f000 f964 bl 8015774 <prvUnlockQueue>
  50400. if( xTaskResumeAll() == pdFALSE )
  50401. 80154ac: f000 fe70 bl 8016190 <xTaskResumeAll>
  50402. 80154b0: 4603 mov r3, r0
  50403. 80154b2: 2b00 cmp r3, #0
  50404. 80154b4: f47f af67 bne.w 8015386 <xQueueSemaphoreTake+0x86>
  50405. {
  50406. portYIELD_WITHIN_API();
  50407. 80154b8: 4b18 ldr r3, [pc, #96] @ (801551c <xQueueSemaphoreTake+0x21c>)
  50408. 80154ba: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50409. 80154be: 601a str r2, [r3, #0]
  50410. 80154c0: f3bf 8f4f dsb sy
  50411. 80154c4: f3bf 8f6f isb sy
  50412. 80154c8: e75d b.n 8015386 <xQueueSemaphoreTake+0x86>
  50413. }
  50414. else
  50415. {
  50416. /* There was no timeout and the semaphore count was not 0, so
  50417. attempt to take the semaphore again. */
  50418. prvUnlockQueue( pxQueue );
  50419. 80154ca: 6af8 ldr r0, [r7, #44] @ 0x2c
  50420. 80154cc: f000 f952 bl 8015774 <prvUnlockQueue>
  50421. ( void ) xTaskResumeAll();
  50422. 80154d0: f000 fe5e bl 8016190 <xTaskResumeAll>
  50423. 80154d4: e757 b.n 8015386 <xQueueSemaphoreTake+0x86>
  50424. }
  50425. }
  50426. else
  50427. {
  50428. /* Timed out. */
  50429. prvUnlockQueue( pxQueue );
  50430. 80154d6: 6af8 ldr r0, [r7, #44] @ 0x2c
  50431. 80154d8: f000 f94c bl 8015774 <prvUnlockQueue>
  50432. ( void ) xTaskResumeAll();
  50433. 80154dc: f000 fe58 bl 8016190 <xTaskResumeAll>
  50434. /* If the semaphore count is 0 exit now as the timeout has
  50435. expired. Otherwise return to attempt to take the semaphore that is
  50436. known to be available. As semaphores are implemented by queues the
  50437. queue being empty is equivalent to the semaphore count being 0. */
  50438. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  50439. 80154e0: 6af8 ldr r0, [r7, #44] @ 0x2c
  50440. 80154e2: f000 f999 bl 8015818 <prvIsQueueEmpty>
  50441. 80154e6: 4603 mov r3, r0
  50442. 80154e8: 2b00 cmp r3, #0
  50443. 80154ea: f43f af4c beq.w 8015386 <xQueueSemaphoreTake+0x86>
  50444. #if ( configUSE_MUTEXES == 1 )
  50445. {
  50446. /* xInheritanceOccurred could only have be set if
  50447. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  50448. test the mutex type again to check it is actually a mutex. */
  50449. if( xInheritanceOccurred != pdFALSE )
  50450. 80154ee: 6b3b ldr r3, [r7, #48] @ 0x30
  50451. 80154f0: 2b00 cmp r3, #0
  50452. 80154f2: d00d beq.n 8015510 <xQueueSemaphoreTake+0x210>
  50453. {
  50454. taskENTER_CRITICAL();
  50455. 80154f4: f002 fc00 bl 8017cf8 <vPortEnterCritical>
  50456. /* This task blocking on the mutex caused another
  50457. task to inherit this task's priority. Now this task
  50458. has timed out the priority should be disinherited
  50459. again, but only as low as the next highest priority
  50460. task that is waiting for the same mutex. */
  50461. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  50462. 80154f8: 6af8 ldr r0, [r7, #44] @ 0x2c
  50463. 80154fa: f000 f893 bl 8015624 <prvGetDisinheritPriorityAfterTimeout>
  50464. 80154fe: 6278 str r0, [r7, #36] @ 0x24
  50465. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  50466. 8015500: 6afb ldr r3, [r7, #44] @ 0x2c
  50467. 8015502: 689b ldr r3, [r3, #8]
  50468. 8015504: 6a79 ldr r1, [r7, #36] @ 0x24
  50469. 8015506: 4618 mov r0, r3
  50470. 8015508: f001 fb64 bl 8016bd4 <vTaskPriorityDisinheritAfterTimeout>
  50471. }
  50472. taskEXIT_CRITICAL();
  50473. 801550c: f002 fc26 bl 8017d5c <vPortExitCritical>
  50474. }
  50475. }
  50476. #endif /* configUSE_MUTEXES */
  50477. traceQUEUE_RECEIVE_FAILED( pxQueue );
  50478. return errQUEUE_EMPTY;
  50479. 8015510: 2300 movs r3, #0
  50480. {
  50481. mtCOVERAGE_TEST_MARKER();
  50482. }
  50483. }
  50484. } /*lint -restore */
  50485. }
  50486. 8015512: 4618 mov r0, r3
  50487. 8015514: 3738 adds r7, #56 @ 0x38
  50488. 8015516: 46bd mov sp, r7
  50489. 8015518: bd80 pop {r7, pc}
  50490. 801551a: bf00 nop
  50491. 801551c: e000ed04 .word 0xe000ed04
  50492. 08015520 <xQueueReceiveFromISR>:
  50493. } /*lint -restore */
  50494. }
  50495. /*-----------------------------------------------------------*/
  50496. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  50497. {
  50498. 8015520: b580 push {r7, lr}
  50499. 8015522: b08e sub sp, #56 @ 0x38
  50500. 8015524: af00 add r7, sp, #0
  50501. 8015526: 60f8 str r0, [r7, #12]
  50502. 8015528: 60b9 str r1, [r7, #8]
  50503. 801552a: 607a str r2, [r7, #4]
  50504. BaseType_t xReturn;
  50505. UBaseType_t uxSavedInterruptStatus;
  50506. Queue_t * const pxQueue = xQueue;
  50507. 801552c: 68fb ldr r3, [r7, #12]
  50508. 801552e: 633b str r3, [r7, #48] @ 0x30
  50509. configASSERT( pxQueue );
  50510. 8015530: 6b3b ldr r3, [r7, #48] @ 0x30
  50511. 8015532: 2b00 cmp r3, #0
  50512. 8015534: d10b bne.n 801554e <xQueueReceiveFromISR+0x2e>
  50513. __asm volatile
  50514. 8015536: f04f 0350 mov.w r3, #80 @ 0x50
  50515. 801553a: f383 8811 msr BASEPRI, r3
  50516. 801553e: f3bf 8f6f isb sy
  50517. 8015542: f3bf 8f4f dsb sy
  50518. 8015546: 623b str r3, [r7, #32]
  50519. }
  50520. 8015548: bf00 nop
  50521. 801554a: bf00 nop
  50522. 801554c: e7fd b.n 801554a <xQueueReceiveFromISR+0x2a>
  50523. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  50524. 801554e: 68bb ldr r3, [r7, #8]
  50525. 8015550: 2b00 cmp r3, #0
  50526. 8015552: d103 bne.n 801555c <xQueueReceiveFromISR+0x3c>
  50527. 8015554: 6b3b ldr r3, [r7, #48] @ 0x30
  50528. 8015556: 6c1b ldr r3, [r3, #64] @ 0x40
  50529. 8015558: 2b00 cmp r3, #0
  50530. 801555a: d101 bne.n 8015560 <xQueueReceiveFromISR+0x40>
  50531. 801555c: 2301 movs r3, #1
  50532. 801555e: e000 b.n 8015562 <xQueueReceiveFromISR+0x42>
  50533. 8015560: 2300 movs r3, #0
  50534. 8015562: 2b00 cmp r3, #0
  50535. 8015564: d10b bne.n 801557e <xQueueReceiveFromISR+0x5e>
  50536. __asm volatile
  50537. 8015566: f04f 0350 mov.w r3, #80 @ 0x50
  50538. 801556a: f383 8811 msr BASEPRI, r3
  50539. 801556e: f3bf 8f6f isb sy
  50540. 8015572: f3bf 8f4f dsb sy
  50541. 8015576: 61fb str r3, [r7, #28]
  50542. }
  50543. 8015578: bf00 nop
  50544. 801557a: bf00 nop
  50545. 801557c: e7fd b.n 801557a <xQueueReceiveFromISR+0x5a>
  50546. that have been assigned a priority at or (logically) below the maximum
  50547. system call interrupt priority. FreeRTOS maintains a separate interrupt
  50548. safe API to ensure interrupt entry is as fast and as simple as possible.
  50549. More information (albeit Cortex-M specific) is provided on the following
  50550. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  50551. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  50552. 801557e: f002 fc9b bl 8017eb8 <vPortValidateInterruptPriority>
  50553. __asm volatile
  50554. 8015582: f3ef 8211 mrs r2, BASEPRI
  50555. 8015586: f04f 0350 mov.w r3, #80 @ 0x50
  50556. 801558a: f383 8811 msr BASEPRI, r3
  50557. 801558e: f3bf 8f6f isb sy
  50558. 8015592: f3bf 8f4f dsb sy
  50559. 8015596: 61ba str r2, [r7, #24]
  50560. 8015598: 617b str r3, [r7, #20]
  50561. return ulOriginalBASEPRI;
  50562. 801559a: 69bb ldr r3, [r7, #24]
  50563. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  50564. 801559c: 62fb str r3, [r7, #44] @ 0x2c
  50565. {
  50566. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50567. 801559e: 6b3b ldr r3, [r7, #48] @ 0x30
  50568. 80155a0: 6b9b ldr r3, [r3, #56] @ 0x38
  50569. 80155a2: 62bb str r3, [r7, #40] @ 0x28
  50570. /* Cannot block in an ISR, so check there is data available. */
  50571. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50572. 80155a4: 6abb ldr r3, [r7, #40] @ 0x28
  50573. 80155a6: 2b00 cmp r3, #0
  50574. 80155a8: d02f beq.n 801560a <xQueueReceiveFromISR+0xea>
  50575. {
  50576. const int8_t cRxLock = pxQueue->cRxLock;
  50577. 80155aa: 6b3b ldr r3, [r7, #48] @ 0x30
  50578. 80155ac: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  50579. 80155b0: f887 3027 strb.w r3, [r7, #39] @ 0x27
  50580. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  50581. prvCopyDataFromQueue( pxQueue, pvBuffer );
  50582. 80155b4: 68b9 ldr r1, [r7, #8]
  50583. 80155b6: 6b38 ldr r0, [r7, #48] @ 0x30
  50584. 80155b8: f000 f8b6 bl 8015728 <prvCopyDataFromQueue>
  50585. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  50586. 80155bc: 6abb ldr r3, [r7, #40] @ 0x28
  50587. 80155be: 1e5a subs r2, r3, #1
  50588. 80155c0: 6b3b ldr r3, [r7, #48] @ 0x30
  50589. 80155c2: 639a str r2, [r3, #56] @ 0x38
  50590. /* If the queue is locked the event list will not be modified.
  50591. Instead update the lock count so the task that unlocks the queue
  50592. will know that an ISR has removed data while the queue was
  50593. locked. */
  50594. if( cRxLock == queueUNLOCKED )
  50595. 80155c4: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  50596. 80155c8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50597. 80155cc: d112 bne.n 80155f4 <xQueueReceiveFromISR+0xd4>
  50598. {
  50599. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  50600. 80155ce: 6b3b ldr r3, [r7, #48] @ 0x30
  50601. 80155d0: 691b ldr r3, [r3, #16]
  50602. 80155d2: 2b00 cmp r3, #0
  50603. 80155d4: d016 beq.n 8015604 <xQueueReceiveFromISR+0xe4>
  50604. {
  50605. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  50606. 80155d6: 6b3b ldr r3, [r7, #48] @ 0x30
  50607. 80155d8: 3310 adds r3, #16
  50608. 80155da: 4618 mov r0, r3
  50609. 80155dc: f001 f806 bl 80165ec <xTaskRemoveFromEventList>
  50610. 80155e0: 4603 mov r3, r0
  50611. 80155e2: 2b00 cmp r3, #0
  50612. 80155e4: d00e beq.n 8015604 <xQueueReceiveFromISR+0xe4>
  50613. {
  50614. /* The task waiting has a higher priority than us so
  50615. force a context switch. */
  50616. if( pxHigherPriorityTaskWoken != NULL )
  50617. 80155e6: 687b ldr r3, [r7, #4]
  50618. 80155e8: 2b00 cmp r3, #0
  50619. 80155ea: d00b beq.n 8015604 <xQueueReceiveFromISR+0xe4>
  50620. {
  50621. *pxHigherPriorityTaskWoken = pdTRUE;
  50622. 80155ec: 687b ldr r3, [r7, #4]
  50623. 80155ee: 2201 movs r2, #1
  50624. 80155f0: 601a str r2, [r3, #0]
  50625. 80155f2: e007 b.n 8015604 <xQueueReceiveFromISR+0xe4>
  50626. }
  50627. else
  50628. {
  50629. /* Increment the lock count so the task that unlocks the queue
  50630. knows that data was removed while it was locked. */
  50631. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  50632. 80155f4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  50633. 80155f8: 3301 adds r3, #1
  50634. 80155fa: b2db uxtb r3, r3
  50635. 80155fc: b25a sxtb r2, r3
  50636. 80155fe: 6b3b ldr r3, [r7, #48] @ 0x30
  50637. 8015600: f883 2044 strb.w r2, [r3, #68] @ 0x44
  50638. }
  50639. xReturn = pdPASS;
  50640. 8015604: 2301 movs r3, #1
  50641. 8015606: 637b str r3, [r7, #52] @ 0x34
  50642. 8015608: e001 b.n 801560e <xQueueReceiveFromISR+0xee>
  50643. }
  50644. else
  50645. {
  50646. xReturn = pdFAIL;
  50647. 801560a: 2300 movs r3, #0
  50648. 801560c: 637b str r3, [r7, #52] @ 0x34
  50649. 801560e: 6afb ldr r3, [r7, #44] @ 0x2c
  50650. 8015610: 613b str r3, [r7, #16]
  50651. __asm volatile
  50652. 8015612: 693b ldr r3, [r7, #16]
  50653. 8015614: f383 8811 msr BASEPRI, r3
  50654. }
  50655. 8015618: bf00 nop
  50656. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  50657. }
  50658. }
  50659. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  50660. return xReturn;
  50661. 801561a: 6b7b ldr r3, [r7, #52] @ 0x34
  50662. }
  50663. 801561c: 4618 mov r0, r3
  50664. 801561e: 3738 adds r7, #56 @ 0x38
  50665. 8015620: 46bd mov sp, r7
  50666. 8015622: bd80 pop {r7, pc}
  50667. 08015624 <prvGetDisinheritPriorityAfterTimeout>:
  50668. /*-----------------------------------------------------------*/
  50669. #if( configUSE_MUTEXES == 1 )
  50670. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  50671. {
  50672. 8015624: b480 push {r7}
  50673. 8015626: b085 sub sp, #20
  50674. 8015628: af00 add r7, sp, #0
  50675. 801562a: 6078 str r0, [r7, #4]
  50676. priority, but the waiting task times out, then the holder should
  50677. disinherit the priority - but only down to the highest priority of any
  50678. other tasks that are waiting for the same mutex. For this purpose,
  50679. return the priority of the highest priority task that is waiting for the
  50680. mutex. */
  50681. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  50682. 801562c: 687b ldr r3, [r7, #4]
  50683. 801562e: 6a5b ldr r3, [r3, #36] @ 0x24
  50684. 8015630: 2b00 cmp r3, #0
  50685. 8015632: d006 beq.n 8015642 <prvGetDisinheritPriorityAfterTimeout+0x1e>
  50686. {
  50687. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  50688. 8015634: 687b ldr r3, [r7, #4]
  50689. 8015636: 6b1b ldr r3, [r3, #48] @ 0x30
  50690. 8015638: 681b ldr r3, [r3, #0]
  50691. 801563a: f1c3 0338 rsb r3, r3, #56 @ 0x38
  50692. 801563e: 60fb str r3, [r7, #12]
  50693. 8015640: e001 b.n 8015646 <prvGetDisinheritPriorityAfterTimeout+0x22>
  50694. }
  50695. else
  50696. {
  50697. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  50698. 8015642: 2300 movs r3, #0
  50699. 8015644: 60fb str r3, [r7, #12]
  50700. }
  50701. return uxHighestPriorityOfWaitingTasks;
  50702. 8015646: 68fb ldr r3, [r7, #12]
  50703. }
  50704. 8015648: 4618 mov r0, r3
  50705. 801564a: 3714 adds r7, #20
  50706. 801564c: 46bd mov sp, r7
  50707. 801564e: f85d 7b04 ldr.w r7, [sp], #4
  50708. 8015652: 4770 bx lr
  50709. 08015654 <prvCopyDataToQueue>:
  50710. #endif /* configUSE_MUTEXES */
  50711. /*-----------------------------------------------------------*/
  50712. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  50713. {
  50714. 8015654: b580 push {r7, lr}
  50715. 8015656: b086 sub sp, #24
  50716. 8015658: af00 add r7, sp, #0
  50717. 801565a: 60f8 str r0, [r7, #12]
  50718. 801565c: 60b9 str r1, [r7, #8]
  50719. 801565e: 607a str r2, [r7, #4]
  50720. BaseType_t xReturn = pdFALSE;
  50721. 8015660: 2300 movs r3, #0
  50722. 8015662: 617b str r3, [r7, #20]
  50723. UBaseType_t uxMessagesWaiting;
  50724. /* This function is called from a critical section. */
  50725. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  50726. 8015664: 68fb ldr r3, [r7, #12]
  50727. 8015666: 6b9b ldr r3, [r3, #56] @ 0x38
  50728. 8015668: 613b str r3, [r7, #16]
  50729. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  50730. 801566a: 68fb ldr r3, [r7, #12]
  50731. 801566c: 6c1b ldr r3, [r3, #64] @ 0x40
  50732. 801566e: 2b00 cmp r3, #0
  50733. 8015670: d10d bne.n 801568e <prvCopyDataToQueue+0x3a>
  50734. {
  50735. #if ( configUSE_MUTEXES == 1 )
  50736. {
  50737. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  50738. 8015672: 68fb ldr r3, [r7, #12]
  50739. 8015674: 681b ldr r3, [r3, #0]
  50740. 8015676: 2b00 cmp r3, #0
  50741. 8015678: d14d bne.n 8015716 <prvCopyDataToQueue+0xc2>
  50742. {
  50743. /* The mutex is no longer being held. */
  50744. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  50745. 801567a: 68fb ldr r3, [r7, #12]
  50746. 801567c: 689b ldr r3, [r3, #8]
  50747. 801567e: 4618 mov r0, r3
  50748. 8015680: f001 fa38 bl 8016af4 <xTaskPriorityDisinherit>
  50749. 8015684: 6178 str r0, [r7, #20]
  50750. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  50751. 8015686: 68fb ldr r3, [r7, #12]
  50752. 8015688: 2200 movs r2, #0
  50753. 801568a: 609a str r2, [r3, #8]
  50754. 801568c: e043 b.n 8015716 <prvCopyDataToQueue+0xc2>
  50755. mtCOVERAGE_TEST_MARKER();
  50756. }
  50757. }
  50758. #endif /* configUSE_MUTEXES */
  50759. }
  50760. else if( xPosition == queueSEND_TO_BACK )
  50761. 801568e: 687b ldr r3, [r7, #4]
  50762. 8015690: 2b00 cmp r3, #0
  50763. 8015692: d119 bne.n 80156c8 <prvCopyDataToQueue+0x74>
  50764. {
  50765. ( 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. */
  50766. 8015694: 68fb ldr r3, [r7, #12]
  50767. 8015696: 6858 ldr r0, [r3, #4]
  50768. 8015698: 68fb ldr r3, [r7, #12]
  50769. 801569a: 6c1b ldr r3, [r3, #64] @ 0x40
  50770. 801569c: 461a mov r2, r3
  50771. 801569e: 68b9 ldr r1, [r7, #8]
  50772. 80156a0: f002 fec4 bl 801842c <memcpy>
  50773. 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. */
  50774. 80156a4: 68fb ldr r3, [r7, #12]
  50775. 80156a6: 685a ldr r2, [r3, #4]
  50776. 80156a8: 68fb ldr r3, [r7, #12]
  50777. 80156aa: 6c1b ldr r3, [r3, #64] @ 0x40
  50778. 80156ac: 441a add r2, r3
  50779. 80156ae: 68fb ldr r3, [r7, #12]
  50780. 80156b0: 605a str r2, [r3, #4]
  50781. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50782. 80156b2: 68fb ldr r3, [r7, #12]
  50783. 80156b4: 685a ldr r2, [r3, #4]
  50784. 80156b6: 68fb ldr r3, [r7, #12]
  50785. 80156b8: 689b ldr r3, [r3, #8]
  50786. 80156ba: 429a cmp r2, r3
  50787. 80156bc: d32b bcc.n 8015716 <prvCopyDataToQueue+0xc2>
  50788. {
  50789. pxQueue->pcWriteTo = pxQueue->pcHead;
  50790. 80156be: 68fb ldr r3, [r7, #12]
  50791. 80156c0: 681a ldr r2, [r3, #0]
  50792. 80156c2: 68fb ldr r3, [r7, #12]
  50793. 80156c4: 605a str r2, [r3, #4]
  50794. 80156c6: e026 b.n 8015716 <prvCopyDataToQueue+0xc2>
  50795. mtCOVERAGE_TEST_MARKER();
  50796. }
  50797. }
  50798. else
  50799. {
  50800. ( 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. */
  50801. 80156c8: 68fb ldr r3, [r7, #12]
  50802. 80156ca: 68d8 ldr r0, [r3, #12]
  50803. 80156cc: 68fb ldr r3, [r7, #12]
  50804. 80156ce: 6c1b ldr r3, [r3, #64] @ 0x40
  50805. 80156d0: 461a mov r2, r3
  50806. 80156d2: 68b9 ldr r1, [r7, #8]
  50807. 80156d4: f002 feaa bl 801842c <memcpy>
  50808. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  50809. 80156d8: 68fb ldr r3, [r7, #12]
  50810. 80156da: 68da ldr r2, [r3, #12]
  50811. 80156dc: 68fb ldr r3, [r7, #12]
  50812. 80156de: 6c1b ldr r3, [r3, #64] @ 0x40
  50813. 80156e0: 425b negs r3, r3
  50814. 80156e2: 441a add r2, r3
  50815. 80156e4: 68fb ldr r3, [r7, #12]
  50816. 80156e6: 60da str r2, [r3, #12]
  50817. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  50818. 80156e8: 68fb ldr r3, [r7, #12]
  50819. 80156ea: 68da ldr r2, [r3, #12]
  50820. 80156ec: 68fb ldr r3, [r7, #12]
  50821. 80156ee: 681b ldr r3, [r3, #0]
  50822. 80156f0: 429a cmp r2, r3
  50823. 80156f2: d207 bcs.n 8015704 <prvCopyDataToQueue+0xb0>
  50824. {
  50825. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  50826. 80156f4: 68fb ldr r3, [r7, #12]
  50827. 80156f6: 689a ldr r2, [r3, #8]
  50828. 80156f8: 68fb ldr r3, [r7, #12]
  50829. 80156fa: 6c1b ldr r3, [r3, #64] @ 0x40
  50830. 80156fc: 425b negs r3, r3
  50831. 80156fe: 441a add r2, r3
  50832. 8015700: 68fb ldr r3, [r7, #12]
  50833. 8015702: 60da str r2, [r3, #12]
  50834. else
  50835. {
  50836. mtCOVERAGE_TEST_MARKER();
  50837. }
  50838. if( xPosition == queueOVERWRITE )
  50839. 8015704: 687b ldr r3, [r7, #4]
  50840. 8015706: 2b02 cmp r3, #2
  50841. 8015708: d105 bne.n 8015716 <prvCopyDataToQueue+0xc2>
  50842. {
  50843. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  50844. 801570a: 693b ldr r3, [r7, #16]
  50845. 801570c: 2b00 cmp r3, #0
  50846. 801570e: d002 beq.n 8015716 <prvCopyDataToQueue+0xc2>
  50847. {
  50848. /* An item is not being added but overwritten, so subtract
  50849. one from the recorded number of items in the queue so when
  50850. one is added again below the number of recorded items remains
  50851. correct. */
  50852. --uxMessagesWaiting;
  50853. 8015710: 693b ldr r3, [r7, #16]
  50854. 8015712: 3b01 subs r3, #1
  50855. 8015714: 613b str r3, [r7, #16]
  50856. {
  50857. mtCOVERAGE_TEST_MARKER();
  50858. }
  50859. }
  50860. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  50861. 8015716: 693b ldr r3, [r7, #16]
  50862. 8015718: 1c5a adds r2, r3, #1
  50863. 801571a: 68fb ldr r3, [r7, #12]
  50864. 801571c: 639a str r2, [r3, #56] @ 0x38
  50865. return xReturn;
  50866. 801571e: 697b ldr r3, [r7, #20]
  50867. }
  50868. 8015720: 4618 mov r0, r3
  50869. 8015722: 3718 adds r7, #24
  50870. 8015724: 46bd mov sp, r7
  50871. 8015726: bd80 pop {r7, pc}
  50872. 08015728 <prvCopyDataFromQueue>:
  50873. /*-----------------------------------------------------------*/
  50874. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  50875. {
  50876. 8015728: b580 push {r7, lr}
  50877. 801572a: b082 sub sp, #8
  50878. 801572c: af00 add r7, sp, #0
  50879. 801572e: 6078 str r0, [r7, #4]
  50880. 8015730: 6039 str r1, [r7, #0]
  50881. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  50882. 8015732: 687b ldr r3, [r7, #4]
  50883. 8015734: 6c1b ldr r3, [r3, #64] @ 0x40
  50884. 8015736: 2b00 cmp r3, #0
  50885. 8015738: d018 beq.n 801576c <prvCopyDataFromQueue+0x44>
  50886. {
  50887. 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. */
  50888. 801573a: 687b ldr r3, [r7, #4]
  50889. 801573c: 68da ldr r2, [r3, #12]
  50890. 801573e: 687b ldr r3, [r7, #4]
  50891. 8015740: 6c1b ldr r3, [r3, #64] @ 0x40
  50892. 8015742: 441a add r2, r3
  50893. 8015744: 687b ldr r3, [r7, #4]
  50894. 8015746: 60da str r2, [r3, #12]
  50895. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  50896. 8015748: 687b ldr r3, [r7, #4]
  50897. 801574a: 68da ldr r2, [r3, #12]
  50898. 801574c: 687b ldr r3, [r7, #4]
  50899. 801574e: 689b ldr r3, [r3, #8]
  50900. 8015750: 429a cmp r2, r3
  50901. 8015752: d303 bcc.n 801575c <prvCopyDataFromQueue+0x34>
  50902. {
  50903. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  50904. 8015754: 687b ldr r3, [r7, #4]
  50905. 8015756: 681a ldr r2, [r3, #0]
  50906. 8015758: 687b ldr r3, [r7, #4]
  50907. 801575a: 60da str r2, [r3, #12]
  50908. }
  50909. else
  50910. {
  50911. mtCOVERAGE_TEST_MARKER();
  50912. }
  50913. ( 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. */
  50914. 801575c: 687b ldr r3, [r7, #4]
  50915. 801575e: 68d9 ldr r1, [r3, #12]
  50916. 8015760: 687b ldr r3, [r7, #4]
  50917. 8015762: 6c1b ldr r3, [r3, #64] @ 0x40
  50918. 8015764: 461a mov r2, r3
  50919. 8015766: 6838 ldr r0, [r7, #0]
  50920. 8015768: f002 fe60 bl 801842c <memcpy>
  50921. }
  50922. }
  50923. 801576c: bf00 nop
  50924. 801576e: 3708 adds r7, #8
  50925. 8015770: 46bd mov sp, r7
  50926. 8015772: bd80 pop {r7, pc}
  50927. 08015774 <prvUnlockQueue>:
  50928. /*-----------------------------------------------------------*/
  50929. static void prvUnlockQueue( Queue_t * const pxQueue )
  50930. {
  50931. 8015774: b580 push {r7, lr}
  50932. 8015776: b084 sub sp, #16
  50933. 8015778: af00 add r7, sp, #0
  50934. 801577a: 6078 str r0, [r7, #4]
  50935. /* The lock counts contains the number of extra data items placed or
  50936. removed from the queue while the queue was locked. When a queue is
  50937. locked items can be added or removed, but the event lists cannot be
  50938. updated. */
  50939. taskENTER_CRITICAL();
  50940. 801577c: f002 fabc bl 8017cf8 <vPortEnterCritical>
  50941. {
  50942. int8_t cTxLock = pxQueue->cTxLock;
  50943. 8015780: 687b ldr r3, [r7, #4]
  50944. 8015782: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  50945. 8015786: 73fb strb r3, [r7, #15]
  50946. /* See if data was added to the queue while it was locked. */
  50947. while( cTxLock > queueLOCKED_UNMODIFIED )
  50948. 8015788: e011 b.n 80157ae <prvUnlockQueue+0x3a>
  50949. }
  50950. #else /* configUSE_QUEUE_SETS */
  50951. {
  50952. /* Tasks that are removed from the event list will get added to
  50953. the pending ready list as the scheduler is still suspended. */
  50954. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  50955. 801578a: 687b ldr r3, [r7, #4]
  50956. 801578c: 6a5b ldr r3, [r3, #36] @ 0x24
  50957. 801578e: 2b00 cmp r3, #0
  50958. 8015790: d012 beq.n 80157b8 <prvUnlockQueue+0x44>
  50959. {
  50960. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  50961. 8015792: 687b ldr r3, [r7, #4]
  50962. 8015794: 3324 adds r3, #36 @ 0x24
  50963. 8015796: 4618 mov r0, r3
  50964. 8015798: f000 ff28 bl 80165ec <xTaskRemoveFromEventList>
  50965. 801579c: 4603 mov r3, r0
  50966. 801579e: 2b00 cmp r3, #0
  50967. 80157a0: d001 beq.n 80157a6 <prvUnlockQueue+0x32>
  50968. {
  50969. /* The task waiting has a higher priority so record that
  50970. a context switch is required. */
  50971. vTaskMissedYield();
  50972. 80157a2: f001 f829 bl 80167f8 <vTaskMissedYield>
  50973. break;
  50974. }
  50975. }
  50976. #endif /* configUSE_QUEUE_SETS */
  50977. --cTxLock;
  50978. 80157a6: 7bfb ldrb r3, [r7, #15]
  50979. 80157a8: 3b01 subs r3, #1
  50980. 80157aa: b2db uxtb r3, r3
  50981. 80157ac: 73fb strb r3, [r7, #15]
  50982. while( cTxLock > queueLOCKED_UNMODIFIED )
  50983. 80157ae: f997 300f ldrsb.w r3, [r7, #15]
  50984. 80157b2: 2b00 cmp r3, #0
  50985. 80157b4: dce9 bgt.n 801578a <prvUnlockQueue+0x16>
  50986. 80157b6: e000 b.n 80157ba <prvUnlockQueue+0x46>
  50987. break;
  50988. 80157b8: bf00 nop
  50989. }
  50990. pxQueue->cTxLock = queueUNLOCKED;
  50991. 80157ba: 687b ldr r3, [r7, #4]
  50992. 80157bc: 22ff movs r2, #255 @ 0xff
  50993. 80157be: f883 2045 strb.w r2, [r3, #69] @ 0x45
  50994. }
  50995. taskEXIT_CRITICAL();
  50996. 80157c2: f002 facb bl 8017d5c <vPortExitCritical>
  50997. /* Do the same for the Rx lock. */
  50998. taskENTER_CRITICAL();
  50999. 80157c6: f002 fa97 bl 8017cf8 <vPortEnterCritical>
  51000. {
  51001. int8_t cRxLock = pxQueue->cRxLock;
  51002. 80157ca: 687b ldr r3, [r7, #4]
  51003. 80157cc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51004. 80157d0: 73bb strb r3, [r7, #14]
  51005. while( cRxLock > queueLOCKED_UNMODIFIED )
  51006. 80157d2: e011 b.n 80157f8 <prvUnlockQueue+0x84>
  51007. {
  51008. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  51009. 80157d4: 687b ldr r3, [r7, #4]
  51010. 80157d6: 691b ldr r3, [r3, #16]
  51011. 80157d8: 2b00 cmp r3, #0
  51012. 80157da: d012 beq.n 8015802 <prvUnlockQueue+0x8e>
  51013. {
  51014. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  51015. 80157dc: 687b ldr r3, [r7, #4]
  51016. 80157de: 3310 adds r3, #16
  51017. 80157e0: 4618 mov r0, r3
  51018. 80157e2: f000 ff03 bl 80165ec <xTaskRemoveFromEventList>
  51019. 80157e6: 4603 mov r3, r0
  51020. 80157e8: 2b00 cmp r3, #0
  51021. 80157ea: d001 beq.n 80157f0 <prvUnlockQueue+0x7c>
  51022. {
  51023. vTaskMissedYield();
  51024. 80157ec: f001 f804 bl 80167f8 <vTaskMissedYield>
  51025. else
  51026. {
  51027. mtCOVERAGE_TEST_MARKER();
  51028. }
  51029. --cRxLock;
  51030. 80157f0: 7bbb ldrb r3, [r7, #14]
  51031. 80157f2: 3b01 subs r3, #1
  51032. 80157f4: b2db uxtb r3, r3
  51033. 80157f6: 73bb strb r3, [r7, #14]
  51034. while( cRxLock > queueLOCKED_UNMODIFIED )
  51035. 80157f8: f997 300e ldrsb.w r3, [r7, #14]
  51036. 80157fc: 2b00 cmp r3, #0
  51037. 80157fe: dce9 bgt.n 80157d4 <prvUnlockQueue+0x60>
  51038. 8015800: e000 b.n 8015804 <prvUnlockQueue+0x90>
  51039. }
  51040. else
  51041. {
  51042. break;
  51043. 8015802: bf00 nop
  51044. }
  51045. }
  51046. pxQueue->cRxLock = queueUNLOCKED;
  51047. 8015804: 687b ldr r3, [r7, #4]
  51048. 8015806: 22ff movs r2, #255 @ 0xff
  51049. 8015808: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51050. }
  51051. taskEXIT_CRITICAL();
  51052. 801580c: f002 faa6 bl 8017d5c <vPortExitCritical>
  51053. }
  51054. 8015810: bf00 nop
  51055. 8015812: 3710 adds r7, #16
  51056. 8015814: 46bd mov sp, r7
  51057. 8015816: bd80 pop {r7, pc}
  51058. 08015818 <prvIsQueueEmpty>:
  51059. /*-----------------------------------------------------------*/
  51060. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  51061. {
  51062. 8015818: b580 push {r7, lr}
  51063. 801581a: b084 sub sp, #16
  51064. 801581c: af00 add r7, sp, #0
  51065. 801581e: 6078 str r0, [r7, #4]
  51066. BaseType_t xReturn;
  51067. taskENTER_CRITICAL();
  51068. 8015820: f002 fa6a bl 8017cf8 <vPortEnterCritical>
  51069. {
  51070. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  51071. 8015824: 687b ldr r3, [r7, #4]
  51072. 8015826: 6b9b ldr r3, [r3, #56] @ 0x38
  51073. 8015828: 2b00 cmp r3, #0
  51074. 801582a: d102 bne.n 8015832 <prvIsQueueEmpty+0x1a>
  51075. {
  51076. xReturn = pdTRUE;
  51077. 801582c: 2301 movs r3, #1
  51078. 801582e: 60fb str r3, [r7, #12]
  51079. 8015830: e001 b.n 8015836 <prvIsQueueEmpty+0x1e>
  51080. }
  51081. else
  51082. {
  51083. xReturn = pdFALSE;
  51084. 8015832: 2300 movs r3, #0
  51085. 8015834: 60fb str r3, [r7, #12]
  51086. }
  51087. }
  51088. taskEXIT_CRITICAL();
  51089. 8015836: f002 fa91 bl 8017d5c <vPortExitCritical>
  51090. return xReturn;
  51091. 801583a: 68fb ldr r3, [r7, #12]
  51092. }
  51093. 801583c: 4618 mov r0, r3
  51094. 801583e: 3710 adds r7, #16
  51095. 8015840: 46bd mov sp, r7
  51096. 8015842: bd80 pop {r7, pc}
  51097. 08015844 <prvIsQueueFull>:
  51098. return xReturn;
  51099. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  51100. /*-----------------------------------------------------------*/
  51101. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  51102. {
  51103. 8015844: b580 push {r7, lr}
  51104. 8015846: b084 sub sp, #16
  51105. 8015848: af00 add r7, sp, #0
  51106. 801584a: 6078 str r0, [r7, #4]
  51107. BaseType_t xReturn;
  51108. taskENTER_CRITICAL();
  51109. 801584c: f002 fa54 bl 8017cf8 <vPortEnterCritical>
  51110. {
  51111. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  51112. 8015850: 687b ldr r3, [r7, #4]
  51113. 8015852: 6b9a ldr r2, [r3, #56] @ 0x38
  51114. 8015854: 687b ldr r3, [r7, #4]
  51115. 8015856: 6bdb ldr r3, [r3, #60] @ 0x3c
  51116. 8015858: 429a cmp r2, r3
  51117. 801585a: d102 bne.n 8015862 <prvIsQueueFull+0x1e>
  51118. {
  51119. xReturn = pdTRUE;
  51120. 801585c: 2301 movs r3, #1
  51121. 801585e: 60fb str r3, [r7, #12]
  51122. 8015860: e001 b.n 8015866 <prvIsQueueFull+0x22>
  51123. }
  51124. else
  51125. {
  51126. xReturn = pdFALSE;
  51127. 8015862: 2300 movs r3, #0
  51128. 8015864: 60fb str r3, [r7, #12]
  51129. }
  51130. }
  51131. taskEXIT_CRITICAL();
  51132. 8015866: f002 fa79 bl 8017d5c <vPortExitCritical>
  51133. return xReturn;
  51134. 801586a: 68fb ldr r3, [r7, #12]
  51135. }
  51136. 801586c: 4618 mov r0, r3
  51137. 801586e: 3710 adds r7, #16
  51138. 8015870: 46bd mov sp, r7
  51139. 8015872: bd80 pop {r7, pc}
  51140. 08015874 <vQueueAddToRegistry>:
  51141. /*-----------------------------------------------------------*/
  51142. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  51143. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  51144. {
  51145. 8015874: b480 push {r7}
  51146. 8015876: b085 sub sp, #20
  51147. 8015878: af00 add r7, sp, #0
  51148. 801587a: 6078 str r0, [r7, #4]
  51149. 801587c: 6039 str r1, [r7, #0]
  51150. UBaseType_t ux;
  51151. /* See if there is an empty space in the registry. A NULL name denotes
  51152. a free slot. */
  51153. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51154. 801587e: 2300 movs r3, #0
  51155. 8015880: 60fb str r3, [r7, #12]
  51156. 8015882: e014 b.n 80158ae <vQueueAddToRegistry+0x3a>
  51157. {
  51158. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  51159. 8015884: 4a0f ldr r2, [pc, #60] @ (80158c4 <vQueueAddToRegistry+0x50>)
  51160. 8015886: 68fb ldr r3, [r7, #12]
  51161. 8015888: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  51162. 801588c: 2b00 cmp r3, #0
  51163. 801588e: d10b bne.n 80158a8 <vQueueAddToRegistry+0x34>
  51164. {
  51165. /* Store the information on this queue. */
  51166. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  51167. 8015890: 490c ldr r1, [pc, #48] @ (80158c4 <vQueueAddToRegistry+0x50>)
  51168. 8015892: 68fb ldr r3, [r7, #12]
  51169. 8015894: 683a ldr r2, [r7, #0]
  51170. 8015896: f841 2033 str.w r2, [r1, r3, lsl #3]
  51171. xQueueRegistry[ ux ].xHandle = xQueue;
  51172. 801589a: 4a0a ldr r2, [pc, #40] @ (80158c4 <vQueueAddToRegistry+0x50>)
  51173. 801589c: 68fb ldr r3, [r7, #12]
  51174. 801589e: 00db lsls r3, r3, #3
  51175. 80158a0: 4413 add r3, r2
  51176. 80158a2: 687a ldr r2, [r7, #4]
  51177. 80158a4: 605a str r2, [r3, #4]
  51178. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  51179. break;
  51180. 80158a6: e006 b.n 80158b6 <vQueueAddToRegistry+0x42>
  51181. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  51182. 80158a8: 68fb ldr r3, [r7, #12]
  51183. 80158aa: 3301 adds r3, #1
  51184. 80158ac: 60fb str r3, [r7, #12]
  51185. 80158ae: 68fb ldr r3, [r7, #12]
  51186. 80158b0: 2b07 cmp r3, #7
  51187. 80158b2: d9e7 bls.n 8015884 <vQueueAddToRegistry+0x10>
  51188. else
  51189. {
  51190. mtCOVERAGE_TEST_MARKER();
  51191. }
  51192. }
  51193. }
  51194. 80158b4: bf00 nop
  51195. 80158b6: bf00 nop
  51196. 80158b8: 3714 adds r7, #20
  51197. 80158ba: 46bd mov sp, r7
  51198. 80158bc: f85d 7b04 ldr.w r7, [sp], #4
  51199. 80158c0: 4770 bx lr
  51200. 80158c2: bf00 nop
  51201. 80158c4: 240029b8 .word 0x240029b8
  51202. 080158c8 <vQueueWaitForMessageRestricted>:
  51203. /*-----------------------------------------------------------*/
  51204. #if ( configUSE_TIMERS == 1 )
  51205. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  51206. {
  51207. 80158c8: b580 push {r7, lr}
  51208. 80158ca: b086 sub sp, #24
  51209. 80158cc: af00 add r7, sp, #0
  51210. 80158ce: 60f8 str r0, [r7, #12]
  51211. 80158d0: 60b9 str r1, [r7, #8]
  51212. 80158d2: 607a str r2, [r7, #4]
  51213. Queue_t * const pxQueue = xQueue;
  51214. 80158d4: 68fb ldr r3, [r7, #12]
  51215. 80158d6: 617b str r3, [r7, #20]
  51216. will not actually cause the task to block, just place it on a blocked
  51217. list. It will not block until the scheduler is unlocked - at which
  51218. time a yield will be performed. If an item is added to the queue while
  51219. the queue is locked, and the calling task blocks on the queue, then the
  51220. calling task will be immediately unblocked when the queue is unlocked. */
  51221. prvLockQueue( pxQueue );
  51222. 80158d8: f002 fa0e bl 8017cf8 <vPortEnterCritical>
  51223. 80158dc: 697b ldr r3, [r7, #20]
  51224. 80158de: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  51225. 80158e2: b25b sxtb r3, r3
  51226. 80158e4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51227. 80158e8: d103 bne.n 80158f2 <vQueueWaitForMessageRestricted+0x2a>
  51228. 80158ea: 697b ldr r3, [r7, #20]
  51229. 80158ec: 2200 movs r2, #0
  51230. 80158ee: f883 2044 strb.w r2, [r3, #68] @ 0x44
  51231. 80158f2: 697b ldr r3, [r7, #20]
  51232. 80158f4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  51233. 80158f8: b25b sxtb r3, r3
  51234. 80158fa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51235. 80158fe: d103 bne.n 8015908 <vQueueWaitForMessageRestricted+0x40>
  51236. 8015900: 697b ldr r3, [r7, #20]
  51237. 8015902: 2200 movs r2, #0
  51238. 8015904: f883 2045 strb.w r2, [r3, #69] @ 0x45
  51239. 8015908: f002 fa28 bl 8017d5c <vPortExitCritical>
  51240. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  51241. 801590c: 697b ldr r3, [r7, #20]
  51242. 801590e: 6b9b ldr r3, [r3, #56] @ 0x38
  51243. 8015910: 2b00 cmp r3, #0
  51244. 8015912: d106 bne.n 8015922 <vQueueWaitForMessageRestricted+0x5a>
  51245. {
  51246. /* There is nothing in the queue, block for the specified period. */
  51247. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  51248. 8015914: 697b ldr r3, [r7, #20]
  51249. 8015916: 3324 adds r3, #36 @ 0x24
  51250. 8015918: 687a ldr r2, [r7, #4]
  51251. 801591a: 68b9 ldr r1, [r7, #8]
  51252. 801591c: 4618 mov r0, r3
  51253. 801591e: f000 fe39 bl 8016594 <vTaskPlaceOnEventListRestricted>
  51254. }
  51255. else
  51256. {
  51257. mtCOVERAGE_TEST_MARKER();
  51258. }
  51259. prvUnlockQueue( pxQueue );
  51260. 8015922: 6978 ldr r0, [r7, #20]
  51261. 8015924: f7ff ff26 bl 8015774 <prvUnlockQueue>
  51262. }
  51263. 8015928: bf00 nop
  51264. 801592a: 3718 adds r7, #24
  51265. 801592c: 46bd mov sp, r7
  51266. 801592e: bd80 pop {r7, pc}
  51267. 08015930 <xStreamBufferSpacesAvailable>:
  51268. return xReturn;
  51269. }
  51270. /*-----------------------------------------------------------*/
  51271. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  51272. {
  51273. 8015930: b480 push {r7}
  51274. 8015932: b087 sub sp, #28
  51275. 8015934: af00 add r7, sp, #0
  51276. 8015936: 6078 str r0, [r7, #4]
  51277. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51278. 8015938: 687b ldr r3, [r7, #4]
  51279. 801593a: 613b str r3, [r7, #16]
  51280. size_t xSpace;
  51281. configASSERT( pxStreamBuffer );
  51282. 801593c: 693b ldr r3, [r7, #16]
  51283. 801593e: 2b00 cmp r3, #0
  51284. 8015940: d10b bne.n 801595a <xStreamBufferSpacesAvailable+0x2a>
  51285. __asm volatile
  51286. 8015942: f04f 0350 mov.w r3, #80 @ 0x50
  51287. 8015946: f383 8811 msr BASEPRI, r3
  51288. 801594a: f3bf 8f6f isb sy
  51289. 801594e: f3bf 8f4f dsb sy
  51290. 8015952: 60fb str r3, [r7, #12]
  51291. }
  51292. 8015954: bf00 nop
  51293. 8015956: bf00 nop
  51294. 8015958: e7fd b.n 8015956 <xStreamBufferSpacesAvailable+0x26>
  51295. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  51296. 801595a: 693b ldr r3, [r7, #16]
  51297. 801595c: 689a ldr r2, [r3, #8]
  51298. 801595e: 693b ldr r3, [r7, #16]
  51299. 8015960: 681b ldr r3, [r3, #0]
  51300. 8015962: 4413 add r3, r2
  51301. 8015964: 617b str r3, [r7, #20]
  51302. xSpace -= pxStreamBuffer->xHead;
  51303. 8015966: 693b ldr r3, [r7, #16]
  51304. 8015968: 685b ldr r3, [r3, #4]
  51305. 801596a: 697a ldr r2, [r7, #20]
  51306. 801596c: 1ad3 subs r3, r2, r3
  51307. 801596e: 617b str r3, [r7, #20]
  51308. xSpace -= ( size_t ) 1;
  51309. 8015970: 697b ldr r3, [r7, #20]
  51310. 8015972: 3b01 subs r3, #1
  51311. 8015974: 617b str r3, [r7, #20]
  51312. if( xSpace >= pxStreamBuffer->xLength )
  51313. 8015976: 693b ldr r3, [r7, #16]
  51314. 8015978: 689b ldr r3, [r3, #8]
  51315. 801597a: 697a ldr r2, [r7, #20]
  51316. 801597c: 429a cmp r2, r3
  51317. 801597e: d304 bcc.n 801598a <xStreamBufferSpacesAvailable+0x5a>
  51318. {
  51319. xSpace -= pxStreamBuffer->xLength;
  51320. 8015980: 693b ldr r3, [r7, #16]
  51321. 8015982: 689b ldr r3, [r3, #8]
  51322. 8015984: 697a ldr r2, [r7, #20]
  51323. 8015986: 1ad3 subs r3, r2, r3
  51324. 8015988: 617b str r3, [r7, #20]
  51325. else
  51326. {
  51327. mtCOVERAGE_TEST_MARKER();
  51328. }
  51329. return xSpace;
  51330. 801598a: 697b ldr r3, [r7, #20]
  51331. }
  51332. 801598c: 4618 mov r0, r3
  51333. 801598e: 371c adds r7, #28
  51334. 8015990: 46bd mov sp, r7
  51335. 8015992: f85d 7b04 ldr.w r7, [sp], #4
  51336. 8015996: 4770 bx lr
  51337. 08015998 <xStreamBufferSend>:
  51338. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  51339. const void *pvTxData,
  51340. size_t xDataLengthBytes,
  51341. TickType_t xTicksToWait )
  51342. {
  51343. 8015998: b580 push {r7, lr}
  51344. 801599a: b090 sub sp, #64 @ 0x40
  51345. 801599c: af02 add r7, sp, #8
  51346. 801599e: 60f8 str r0, [r7, #12]
  51347. 80159a0: 60b9 str r1, [r7, #8]
  51348. 80159a2: 607a str r2, [r7, #4]
  51349. 80159a4: 603b str r3, [r7, #0]
  51350. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  51351. 80159a6: 68fb ldr r3, [r7, #12]
  51352. 80159a8: 62fb str r3, [r7, #44] @ 0x2c
  51353. size_t xReturn, xSpace = 0;
  51354. 80159aa: 2300 movs r3, #0
  51355. 80159ac: 637b str r3, [r7, #52] @ 0x34
  51356. size_t xRequiredSpace = xDataLengthBytes;
  51357. 80159ae: 687b ldr r3, [r7, #4]
  51358. 80159b0: 633b str r3, [r7, #48] @ 0x30
  51359. TimeOut_t xTimeOut;
  51360. configASSERT( pvTxData );
  51361. 80159b2: 68bb ldr r3, [r7, #8]
  51362. 80159b4: 2b00 cmp r3, #0
  51363. 80159b6: d10b bne.n 80159d0 <xStreamBufferSend+0x38>
  51364. __asm volatile
  51365. 80159b8: f04f 0350 mov.w r3, #80 @ 0x50
  51366. 80159bc: f383 8811 msr BASEPRI, r3
  51367. 80159c0: f3bf 8f6f isb sy
  51368. 80159c4: f3bf 8f4f dsb sy
  51369. 80159c8: 627b str r3, [r7, #36] @ 0x24
  51370. }
  51371. 80159ca: bf00 nop
  51372. 80159cc: bf00 nop
  51373. 80159ce: e7fd b.n 80159cc <xStreamBufferSend+0x34>
  51374. configASSERT( pxStreamBuffer );
  51375. 80159d0: 6afb ldr r3, [r7, #44] @ 0x2c
  51376. 80159d2: 2b00 cmp r3, #0
  51377. 80159d4: d10b bne.n 80159ee <xStreamBufferSend+0x56>
  51378. __asm volatile
  51379. 80159d6: f04f 0350 mov.w r3, #80 @ 0x50
  51380. 80159da: f383 8811 msr BASEPRI, r3
  51381. 80159de: f3bf 8f6f isb sy
  51382. 80159e2: f3bf 8f4f dsb sy
  51383. 80159e6: 623b str r3, [r7, #32]
  51384. }
  51385. 80159e8: bf00 nop
  51386. 80159ea: bf00 nop
  51387. 80159ec: e7fd b.n 80159ea <xStreamBufferSend+0x52>
  51388. /* This send function is used to write to both message buffers and stream
  51389. buffers. If this is a message buffer then the space needed must be
  51390. increased by the amount of bytes needed to store the length of the
  51391. message. */
  51392. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  51393. 80159ee: 6afb ldr r3, [r7, #44] @ 0x2c
  51394. 80159f0: 7f1b ldrb r3, [r3, #28]
  51395. 80159f2: f003 0301 and.w r3, r3, #1
  51396. 80159f6: 2b00 cmp r3, #0
  51397. 80159f8: d012 beq.n 8015a20 <xStreamBufferSend+0x88>
  51398. {
  51399. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  51400. 80159fa: 6b3b ldr r3, [r7, #48] @ 0x30
  51401. 80159fc: 3304 adds r3, #4
  51402. 80159fe: 633b str r3, [r7, #48] @ 0x30
  51403. /* Overflow? */
  51404. configASSERT( xRequiredSpace > xDataLengthBytes );
  51405. 8015a00: 6b3a ldr r2, [r7, #48] @ 0x30
  51406. 8015a02: 687b ldr r3, [r7, #4]
  51407. 8015a04: 429a cmp r2, r3
  51408. 8015a06: d80b bhi.n 8015a20 <xStreamBufferSend+0x88>
  51409. __asm volatile
  51410. 8015a08: f04f 0350 mov.w r3, #80 @ 0x50
  51411. 8015a0c: f383 8811 msr BASEPRI, r3
  51412. 8015a10: f3bf 8f6f isb sy
  51413. 8015a14: f3bf 8f4f dsb sy
  51414. 8015a18: 61fb str r3, [r7, #28]
  51415. }
  51416. 8015a1a: bf00 nop
  51417. 8015a1c: bf00 nop
  51418. 8015a1e: e7fd b.n 8015a1c <xStreamBufferSend+0x84>
  51419. else
  51420. {
  51421. mtCOVERAGE_TEST_MARKER();
  51422. }
  51423. if( xTicksToWait != ( TickType_t ) 0 )
  51424. 8015a20: 683b ldr r3, [r7, #0]
  51425. 8015a22: 2b00 cmp r3, #0
  51426. 8015a24: d03f beq.n 8015aa6 <xStreamBufferSend+0x10e>
  51427. {
  51428. vTaskSetTimeOutState( &xTimeOut );
  51429. 8015a26: f107 0310 add.w r3, r7, #16
  51430. 8015a2a: 4618 mov r0, r3
  51431. 8015a2c: f000 fe42 bl 80166b4 <vTaskSetTimeOutState>
  51432. do
  51433. {
  51434. /* Wait until the required number of bytes are free in the message
  51435. buffer. */
  51436. taskENTER_CRITICAL();
  51437. 8015a30: f002 f962 bl 8017cf8 <vPortEnterCritical>
  51438. {
  51439. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51440. 8015a34: 6af8 ldr r0, [r7, #44] @ 0x2c
  51441. 8015a36: f7ff ff7b bl 8015930 <xStreamBufferSpacesAvailable>
  51442. 8015a3a: 6378 str r0, [r7, #52] @ 0x34
  51443. if( xSpace < xRequiredSpace )
  51444. 8015a3c: 6b7a ldr r2, [r7, #52] @ 0x34
  51445. 8015a3e: 6b3b ldr r3, [r7, #48] @ 0x30
  51446. 8015a40: 429a cmp r2, r3
  51447. 8015a42: d218 bcs.n 8015a76 <xStreamBufferSend+0xde>
  51448. {
  51449. /* Clear notification state as going to wait for space. */
  51450. ( void ) xTaskNotifyStateClear( NULL );
  51451. 8015a44: 2000 movs r0, #0
  51452. 8015a46: f001 fb65 bl 8017114 <xTaskNotifyStateClear>
  51453. /* Should only be one writer. */
  51454. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  51455. 8015a4a: 6afb ldr r3, [r7, #44] @ 0x2c
  51456. 8015a4c: 695b ldr r3, [r3, #20]
  51457. 8015a4e: 2b00 cmp r3, #0
  51458. 8015a50: d00b beq.n 8015a6a <xStreamBufferSend+0xd2>
  51459. __asm volatile
  51460. 8015a52: f04f 0350 mov.w r3, #80 @ 0x50
  51461. 8015a56: f383 8811 msr BASEPRI, r3
  51462. 8015a5a: f3bf 8f6f isb sy
  51463. 8015a5e: f3bf 8f4f dsb sy
  51464. 8015a62: 61bb str r3, [r7, #24]
  51465. }
  51466. 8015a64: bf00 nop
  51467. 8015a66: bf00 nop
  51468. 8015a68: e7fd b.n 8015a66 <xStreamBufferSend+0xce>
  51469. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  51470. 8015a6a: f000 ffad bl 80169c8 <xTaskGetCurrentTaskHandle>
  51471. 8015a6e: 4602 mov r2, r0
  51472. 8015a70: 6afb ldr r3, [r7, #44] @ 0x2c
  51473. 8015a72: 615a str r2, [r3, #20]
  51474. 8015a74: e002 b.n 8015a7c <xStreamBufferSend+0xe4>
  51475. }
  51476. else
  51477. {
  51478. taskEXIT_CRITICAL();
  51479. 8015a76: f002 f971 bl 8017d5c <vPortExitCritical>
  51480. break;
  51481. 8015a7a: e014 b.n 8015aa6 <xStreamBufferSend+0x10e>
  51482. }
  51483. }
  51484. taskEXIT_CRITICAL();
  51485. 8015a7c: f002 f96e bl 8017d5c <vPortExitCritical>
  51486. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  51487. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  51488. 8015a80: 683b ldr r3, [r7, #0]
  51489. 8015a82: 2200 movs r2, #0
  51490. 8015a84: 2100 movs r1, #0
  51491. 8015a86: 2000 movs r0, #0
  51492. 8015a88: f001 f93c bl 8016d04 <xTaskNotifyWait>
  51493. pxStreamBuffer->xTaskWaitingToSend = NULL;
  51494. 8015a8c: 6afb ldr r3, [r7, #44] @ 0x2c
  51495. 8015a8e: 2200 movs r2, #0
  51496. 8015a90: 615a str r2, [r3, #20]
  51497. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  51498. 8015a92: 463a mov r2, r7
  51499. 8015a94: f107 0310 add.w r3, r7, #16
  51500. 8015a98: 4611 mov r1, r2
  51501. 8015a9a: 4618 mov r0, r3
  51502. 8015a9c: f000 fe48 bl 8016730 <xTaskCheckForTimeOut>
  51503. 8015aa0: 4603 mov r3, r0
  51504. 8015aa2: 2b00 cmp r3, #0
  51505. 8015aa4: d0c4 beq.n 8015a30 <xStreamBufferSend+0x98>
  51506. else
  51507. {
  51508. mtCOVERAGE_TEST_MARKER();
  51509. }
  51510. if( xSpace == ( size_t ) 0 )
  51511. 8015aa6: 6b7b ldr r3, [r7, #52] @ 0x34
  51512. 8015aa8: 2b00 cmp r3, #0
  51513. 8015aaa: d103 bne.n 8015ab4 <xStreamBufferSend+0x11c>
  51514. {
  51515. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  51516. 8015aac: 6af8 ldr r0, [r7, #44] @ 0x2c
  51517. 8015aae: f7ff ff3f bl 8015930 <xStreamBufferSpacesAvailable>
  51518. 8015ab2: 6378 str r0, [r7, #52] @ 0x34
  51519. else
  51520. {
  51521. mtCOVERAGE_TEST_MARKER();
  51522. }
  51523. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  51524. 8015ab4: 6b3b ldr r3, [r7, #48] @ 0x30
  51525. 8015ab6: 9300 str r3, [sp, #0]
  51526. 8015ab8: 6b7b ldr r3, [r7, #52] @ 0x34
  51527. 8015aba: 687a ldr r2, [r7, #4]
  51528. 8015abc: 68b9 ldr r1, [r7, #8]
  51529. 8015abe: 6af8 ldr r0, [r7, #44] @ 0x2c
  51530. 8015ac0: f000 f823 bl 8015b0a <prvWriteMessageToBuffer>
  51531. 8015ac4: 62b8 str r0, [r7, #40] @ 0x28
  51532. if( xReturn > ( size_t ) 0 )
  51533. 8015ac6: 6abb ldr r3, [r7, #40] @ 0x28
  51534. 8015ac8: 2b00 cmp r3, #0
  51535. 8015aca: d019 beq.n 8015b00 <xStreamBufferSend+0x168>
  51536. {
  51537. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  51538. /* Was a task waiting for the data? */
  51539. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  51540. 8015acc: 6af8 ldr r0, [r7, #44] @ 0x2c
  51541. 8015ace: f000 f8ce bl 8015c6e <prvBytesInBuffer>
  51542. 8015ad2: 4602 mov r2, r0
  51543. 8015ad4: 6afb ldr r3, [r7, #44] @ 0x2c
  51544. 8015ad6: 68db ldr r3, [r3, #12]
  51545. 8015ad8: 429a cmp r2, r3
  51546. 8015ada: d311 bcc.n 8015b00 <xStreamBufferSend+0x168>
  51547. {
  51548. sbSEND_COMPLETED( pxStreamBuffer );
  51549. 8015adc: f000 fb4a bl 8016174 <vTaskSuspendAll>
  51550. 8015ae0: 6afb ldr r3, [r7, #44] @ 0x2c
  51551. 8015ae2: 691b ldr r3, [r3, #16]
  51552. 8015ae4: 2b00 cmp r3, #0
  51553. 8015ae6: d009 beq.n 8015afc <xStreamBufferSend+0x164>
  51554. 8015ae8: 6afb ldr r3, [r7, #44] @ 0x2c
  51555. 8015aea: 6918 ldr r0, [r3, #16]
  51556. 8015aec: 2300 movs r3, #0
  51557. 8015aee: 2200 movs r2, #0
  51558. 8015af0: 2100 movs r1, #0
  51559. 8015af2: f001 f967 bl 8016dc4 <xTaskGenericNotify>
  51560. 8015af6: 6afb ldr r3, [r7, #44] @ 0x2c
  51561. 8015af8: 2200 movs r2, #0
  51562. 8015afa: 611a str r2, [r3, #16]
  51563. 8015afc: f000 fb48 bl 8016190 <xTaskResumeAll>
  51564. {
  51565. mtCOVERAGE_TEST_MARKER();
  51566. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  51567. }
  51568. return xReturn;
  51569. 8015b00: 6abb ldr r3, [r7, #40] @ 0x28
  51570. }
  51571. 8015b02: 4618 mov r0, r3
  51572. 8015b04: 3738 adds r7, #56 @ 0x38
  51573. 8015b06: 46bd mov sp, r7
  51574. 8015b08: bd80 pop {r7, pc}
  51575. 08015b0a <prvWriteMessageToBuffer>:
  51576. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  51577. const void * pvTxData,
  51578. size_t xDataLengthBytes,
  51579. size_t xSpace,
  51580. size_t xRequiredSpace )
  51581. {
  51582. 8015b0a: b580 push {r7, lr}
  51583. 8015b0c: b086 sub sp, #24
  51584. 8015b0e: af00 add r7, sp, #0
  51585. 8015b10: 60f8 str r0, [r7, #12]
  51586. 8015b12: 60b9 str r1, [r7, #8]
  51587. 8015b14: 607a str r2, [r7, #4]
  51588. 8015b16: 603b str r3, [r7, #0]
  51589. BaseType_t xShouldWrite;
  51590. size_t xReturn;
  51591. if( xSpace == ( size_t ) 0 )
  51592. 8015b18: 683b ldr r3, [r7, #0]
  51593. 8015b1a: 2b00 cmp r3, #0
  51594. 8015b1c: d102 bne.n 8015b24 <prvWriteMessageToBuffer+0x1a>
  51595. {
  51596. /* Doesn't matter if this is a stream buffer or a message buffer, there
  51597. is no space to write. */
  51598. xShouldWrite = pdFALSE;
  51599. 8015b1e: 2300 movs r3, #0
  51600. 8015b20: 617b str r3, [r7, #20]
  51601. 8015b22: e01d b.n 8015b60 <prvWriteMessageToBuffer+0x56>
  51602. }
  51603. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  51604. 8015b24: 68fb ldr r3, [r7, #12]
  51605. 8015b26: 7f1b ldrb r3, [r3, #28]
  51606. 8015b28: f003 0301 and.w r3, r3, #1
  51607. 8015b2c: 2b00 cmp r3, #0
  51608. 8015b2e: d108 bne.n 8015b42 <prvWriteMessageToBuffer+0x38>
  51609. {
  51610. /* This is a stream buffer, as opposed to a message buffer, so writing a
  51611. stream of bytes rather than discrete messages. Write as many bytes as
  51612. possible. */
  51613. xShouldWrite = pdTRUE;
  51614. 8015b30: 2301 movs r3, #1
  51615. 8015b32: 617b str r3, [r7, #20]
  51616. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  51617. 8015b34: 687a ldr r2, [r7, #4]
  51618. 8015b36: 683b ldr r3, [r7, #0]
  51619. 8015b38: 4293 cmp r3, r2
  51620. 8015b3a: bf28 it cs
  51621. 8015b3c: 4613 movcs r3, r2
  51622. 8015b3e: 607b str r3, [r7, #4]
  51623. 8015b40: e00e b.n 8015b60 <prvWriteMessageToBuffer+0x56>
  51624. }
  51625. else if( xSpace >= xRequiredSpace )
  51626. 8015b42: 683a ldr r2, [r7, #0]
  51627. 8015b44: 6a3b ldr r3, [r7, #32]
  51628. 8015b46: 429a cmp r2, r3
  51629. 8015b48: d308 bcc.n 8015b5c <prvWriteMessageToBuffer+0x52>
  51630. {
  51631. /* This is a message buffer, as opposed to a stream buffer, and there
  51632. is enough space to write both the message length and the message itself
  51633. into the buffer. Start by writing the length of the data, the data
  51634. itself will be written later in this function. */
  51635. xShouldWrite = pdTRUE;
  51636. 8015b4a: 2301 movs r3, #1
  51637. 8015b4c: 617b str r3, [r7, #20]
  51638. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  51639. 8015b4e: 1d3b adds r3, r7, #4
  51640. 8015b50: 2204 movs r2, #4
  51641. 8015b52: 4619 mov r1, r3
  51642. 8015b54: 68f8 ldr r0, [r7, #12]
  51643. 8015b56: f000 f815 bl 8015b84 <prvWriteBytesToBuffer>
  51644. 8015b5a: e001 b.n 8015b60 <prvWriteMessageToBuffer+0x56>
  51645. }
  51646. else
  51647. {
  51648. /* There is space available, but not enough space. */
  51649. xShouldWrite = pdFALSE;
  51650. 8015b5c: 2300 movs r3, #0
  51651. 8015b5e: 617b str r3, [r7, #20]
  51652. }
  51653. if( xShouldWrite != pdFALSE )
  51654. 8015b60: 697b ldr r3, [r7, #20]
  51655. 8015b62: 2b00 cmp r3, #0
  51656. 8015b64: d007 beq.n 8015b76 <prvWriteMessageToBuffer+0x6c>
  51657. {
  51658. /* Writes the data itself. */
  51659. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  51660. 8015b66: 687b ldr r3, [r7, #4]
  51661. 8015b68: 461a mov r2, r3
  51662. 8015b6a: 68b9 ldr r1, [r7, #8]
  51663. 8015b6c: 68f8 ldr r0, [r7, #12]
  51664. 8015b6e: f000 f809 bl 8015b84 <prvWriteBytesToBuffer>
  51665. 8015b72: 6138 str r0, [r7, #16]
  51666. 8015b74: e001 b.n 8015b7a <prvWriteMessageToBuffer+0x70>
  51667. }
  51668. else
  51669. {
  51670. xReturn = 0;
  51671. 8015b76: 2300 movs r3, #0
  51672. 8015b78: 613b str r3, [r7, #16]
  51673. }
  51674. return xReturn;
  51675. 8015b7a: 693b ldr r3, [r7, #16]
  51676. }
  51677. 8015b7c: 4618 mov r0, r3
  51678. 8015b7e: 3718 adds r7, #24
  51679. 8015b80: 46bd mov sp, r7
  51680. 8015b82: bd80 pop {r7, pc}
  51681. 08015b84 <prvWriteBytesToBuffer>:
  51682. return xReturn;
  51683. }
  51684. /*-----------------------------------------------------------*/
  51685. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  51686. {
  51687. 8015b84: b580 push {r7, lr}
  51688. 8015b86: b08a sub sp, #40 @ 0x28
  51689. 8015b88: af00 add r7, sp, #0
  51690. 8015b8a: 60f8 str r0, [r7, #12]
  51691. 8015b8c: 60b9 str r1, [r7, #8]
  51692. 8015b8e: 607a str r2, [r7, #4]
  51693. size_t xNextHead, xFirstLength;
  51694. configASSERT( xCount > ( size_t ) 0 );
  51695. 8015b90: 687b ldr r3, [r7, #4]
  51696. 8015b92: 2b00 cmp r3, #0
  51697. 8015b94: d10b bne.n 8015bae <prvWriteBytesToBuffer+0x2a>
  51698. __asm volatile
  51699. 8015b96: f04f 0350 mov.w r3, #80 @ 0x50
  51700. 8015b9a: f383 8811 msr BASEPRI, r3
  51701. 8015b9e: f3bf 8f6f isb sy
  51702. 8015ba2: f3bf 8f4f dsb sy
  51703. 8015ba6: 61fb str r3, [r7, #28]
  51704. }
  51705. 8015ba8: bf00 nop
  51706. 8015baa: bf00 nop
  51707. 8015bac: e7fd b.n 8015baa <prvWriteBytesToBuffer+0x26>
  51708. xNextHead = pxStreamBuffer->xHead;
  51709. 8015bae: 68fb ldr r3, [r7, #12]
  51710. 8015bb0: 685b ldr r3, [r3, #4]
  51711. 8015bb2: 627b str r3, [r7, #36] @ 0x24
  51712. /* Calculate the number of bytes that can be added in the first write -
  51713. which may be less than the total number of bytes that need to be added if
  51714. the buffer will wrap back to the beginning. */
  51715. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  51716. 8015bb4: 68fb ldr r3, [r7, #12]
  51717. 8015bb6: 689a ldr r2, [r3, #8]
  51718. 8015bb8: 6a7b ldr r3, [r7, #36] @ 0x24
  51719. 8015bba: 1ad3 subs r3, r2, r3
  51720. 8015bbc: 687a ldr r2, [r7, #4]
  51721. 8015bbe: 4293 cmp r3, r2
  51722. 8015bc0: bf28 it cs
  51723. 8015bc2: 4613 movcs r3, r2
  51724. 8015bc4: 623b str r3, [r7, #32]
  51725. /* Write as many bytes as can be written in the first write. */
  51726. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  51727. 8015bc6: 6a7a ldr r2, [r7, #36] @ 0x24
  51728. 8015bc8: 6a3b ldr r3, [r7, #32]
  51729. 8015bca: 441a add r2, r3
  51730. 8015bcc: 68fb ldr r3, [r7, #12]
  51731. 8015bce: 689b ldr r3, [r3, #8]
  51732. 8015bd0: 429a cmp r2, r3
  51733. 8015bd2: d90b bls.n 8015bec <prvWriteBytesToBuffer+0x68>
  51734. __asm volatile
  51735. 8015bd4: f04f 0350 mov.w r3, #80 @ 0x50
  51736. 8015bd8: f383 8811 msr BASEPRI, r3
  51737. 8015bdc: f3bf 8f6f isb sy
  51738. 8015be0: f3bf 8f4f dsb sy
  51739. 8015be4: 61bb str r3, [r7, #24]
  51740. }
  51741. 8015be6: bf00 nop
  51742. 8015be8: bf00 nop
  51743. 8015bea: e7fd b.n 8015be8 <prvWriteBytesToBuffer+0x64>
  51744. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51745. 8015bec: 68fb ldr r3, [r7, #12]
  51746. 8015bee: 699a ldr r2, [r3, #24]
  51747. 8015bf0: 6a7b ldr r3, [r7, #36] @ 0x24
  51748. 8015bf2: 4413 add r3, r2
  51749. 8015bf4: 6a3a ldr r2, [r7, #32]
  51750. 8015bf6: 68b9 ldr r1, [r7, #8]
  51751. 8015bf8: 4618 mov r0, r3
  51752. 8015bfa: f002 fc17 bl 801842c <memcpy>
  51753. /* If the number of bytes written was less than the number that could be
  51754. written in the first write... */
  51755. if( xCount > xFirstLength )
  51756. 8015bfe: 687a ldr r2, [r7, #4]
  51757. 8015c00: 6a3b ldr r3, [r7, #32]
  51758. 8015c02: 429a cmp r2, r3
  51759. 8015c04: d91d bls.n 8015c42 <prvWriteBytesToBuffer+0xbe>
  51760. {
  51761. /* ...then write the remaining bytes to the start of the buffer. */
  51762. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  51763. 8015c06: 687a ldr r2, [r7, #4]
  51764. 8015c08: 6a3b ldr r3, [r7, #32]
  51765. 8015c0a: 1ad2 subs r2, r2, r3
  51766. 8015c0c: 68fb ldr r3, [r7, #12]
  51767. 8015c0e: 689b ldr r3, [r3, #8]
  51768. 8015c10: 429a cmp r2, r3
  51769. 8015c12: d90b bls.n 8015c2c <prvWriteBytesToBuffer+0xa8>
  51770. __asm volatile
  51771. 8015c14: f04f 0350 mov.w r3, #80 @ 0x50
  51772. 8015c18: f383 8811 msr BASEPRI, r3
  51773. 8015c1c: f3bf 8f6f isb sy
  51774. 8015c20: f3bf 8f4f dsb sy
  51775. 8015c24: 617b str r3, [r7, #20]
  51776. }
  51777. 8015c26: bf00 nop
  51778. 8015c28: bf00 nop
  51779. 8015c2a: e7fd b.n 8015c28 <prvWriteBytesToBuffer+0xa4>
  51780. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  51781. 8015c2c: 68fb ldr r3, [r7, #12]
  51782. 8015c2e: 6998 ldr r0, [r3, #24]
  51783. 8015c30: 68ba ldr r2, [r7, #8]
  51784. 8015c32: 6a3b ldr r3, [r7, #32]
  51785. 8015c34: 18d1 adds r1, r2, r3
  51786. 8015c36: 687a ldr r2, [r7, #4]
  51787. 8015c38: 6a3b ldr r3, [r7, #32]
  51788. 8015c3a: 1ad3 subs r3, r2, r3
  51789. 8015c3c: 461a mov r2, r3
  51790. 8015c3e: f002 fbf5 bl 801842c <memcpy>
  51791. else
  51792. {
  51793. mtCOVERAGE_TEST_MARKER();
  51794. }
  51795. xNextHead += xCount;
  51796. 8015c42: 6a7a ldr r2, [r7, #36] @ 0x24
  51797. 8015c44: 687b ldr r3, [r7, #4]
  51798. 8015c46: 4413 add r3, r2
  51799. 8015c48: 627b str r3, [r7, #36] @ 0x24
  51800. if( xNextHead >= pxStreamBuffer->xLength )
  51801. 8015c4a: 68fb ldr r3, [r7, #12]
  51802. 8015c4c: 689b ldr r3, [r3, #8]
  51803. 8015c4e: 6a7a ldr r2, [r7, #36] @ 0x24
  51804. 8015c50: 429a cmp r2, r3
  51805. 8015c52: d304 bcc.n 8015c5e <prvWriteBytesToBuffer+0xda>
  51806. {
  51807. xNextHead -= pxStreamBuffer->xLength;
  51808. 8015c54: 68fb ldr r3, [r7, #12]
  51809. 8015c56: 689b ldr r3, [r3, #8]
  51810. 8015c58: 6a7a ldr r2, [r7, #36] @ 0x24
  51811. 8015c5a: 1ad3 subs r3, r2, r3
  51812. 8015c5c: 627b str r3, [r7, #36] @ 0x24
  51813. else
  51814. {
  51815. mtCOVERAGE_TEST_MARKER();
  51816. }
  51817. pxStreamBuffer->xHead = xNextHead;
  51818. 8015c5e: 68fb ldr r3, [r7, #12]
  51819. 8015c60: 6a7a ldr r2, [r7, #36] @ 0x24
  51820. 8015c62: 605a str r2, [r3, #4]
  51821. return xCount;
  51822. 8015c64: 687b ldr r3, [r7, #4]
  51823. }
  51824. 8015c66: 4618 mov r0, r3
  51825. 8015c68: 3728 adds r7, #40 @ 0x28
  51826. 8015c6a: 46bd mov sp, r7
  51827. 8015c6c: bd80 pop {r7, pc}
  51828. 08015c6e <prvBytesInBuffer>:
  51829. return xCount;
  51830. }
  51831. /*-----------------------------------------------------------*/
  51832. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  51833. {
  51834. 8015c6e: b480 push {r7}
  51835. 8015c70: b085 sub sp, #20
  51836. 8015c72: af00 add r7, sp, #0
  51837. 8015c74: 6078 str r0, [r7, #4]
  51838. /* Returns the distance between xTail and xHead. */
  51839. size_t xCount;
  51840. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  51841. 8015c76: 687b ldr r3, [r7, #4]
  51842. 8015c78: 689a ldr r2, [r3, #8]
  51843. 8015c7a: 687b ldr r3, [r7, #4]
  51844. 8015c7c: 685b ldr r3, [r3, #4]
  51845. 8015c7e: 4413 add r3, r2
  51846. 8015c80: 60fb str r3, [r7, #12]
  51847. xCount -= pxStreamBuffer->xTail;
  51848. 8015c82: 687b ldr r3, [r7, #4]
  51849. 8015c84: 681b ldr r3, [r3, #0]
  51850. 8015c86: 68fa ldr r2, [r7, #12]
  51851. 8015c88: 1ad3 subs r3, r2, r3
  51852. 8015c8a: 60fb str r3, [r7, #12]
  51853. if ( xCount >= pxStreamBuffer->xLength )
  51854. 8015c8c: 687b ldr r3, [r7, #4]
  51855. 8015c8e: 689b ldr r3, [r3, #8]
  51856. 8015c90: 68fa ldr r2, [r7, #12]
  51857. 8015c92: 429a cmp r2, r3
  51858. 8015c94: d304 bcc.n 8015ca0 <prvBytesInBuffer+0x32>
  51859. {
  51860. xCount -= pxStreamBuffer->xLength;
  51861. 8015c96: 687b ldr r3, [r7, #4]
  51862. 8015c98: 689b ldr r3, [r3, #8]
  51863. 8015c9a: 68fa ldr r2, [r7, #12]
  51864. 8015c9c: 1ad3 subs r3, r2, r3
  51865. 8015c9e: 60fb str r3, [r7, #12]
  51866. else
  51867. {
  51868. mtCOVERAGE_TEST_MARKER();
  51869. }
  51870. return xCount;
  51871. 8015ca0: 68fb ldr r3, [r7, #12]
  51872. }
  51873. 8015ca2: 4618 mov r0, r3
  51874. 8015ca4: 3714 adds r7, #20
  51875. 8015ca6: 46bd mov sp, r7
  51876. 8015ca8: f85d 7b04 ldr.w r7, [sp], #4
  51877. 8015cac: 4770 bx lr
  51878. 08015cae <xTaskCreateStatic>:
  51879. const uint32_t ulStackDepth,
  51880. void * const pvParameters,
  51881. UBaseType_t uxPriority,
  51882. StackType_t * const puxStackBuffer,
  51883. StaticTask_t * const pxTaskBuffer )
  51884. {
  51885. 8015cae: b580 push {r7, lr}
  51886. 8015cb0: b08e sub sp, #56 @ 0x38
  51887. 8015cb2: af04 add r7, sp, #16
  51888. 8015cb4: 60f8 str r0, [r7, #12]
  51889. 8015cb6: 60b9 str r1, [r7, #8]
  51890. 8015cb8: 607a str r2, [r7, #4]
  51891. 8015cba: 603b str r3, [r7, #0]
  51892. TCB_t *pxNewTCB;
  51893. TaskHandle_t xReturn;
  51894. configASSERT( puxStackBuffer != NULL );
  51895. 8015cbc: 6b7b ldr r3, [r7, #52] @ 0x34
  51896. 8015cbe: 2b00 cmp r3, #0
  51897. 8015cc0: d10b bne.n 8015cda <xTaskCreateStatic+0x2c>
  51898. __asm volatile
  51899. 8015cc2: f04f 0350 mov.w r3, #80 @ 0x50
  51900. 8015cc6: f383 8811 msr BASEPRI, r3
  51901. 8015cca: f3bf 8f6f isb sy
  51902. 8015cce: f3bf 8f4f dsb sy
  51903. 8015cd2: 623b str r3, [r7, #32]
  51904. }
  51905. 8015cd4: bf00 nop
  51906. 8015cd6: bf00 nop
  51907. 8015cd8: e7fd b.n 8015cd6 <xTaskCreateStatic+0x28>
  51908. configASSERT( pxTaskBuffer != NULL );
  51909. 8015cda: 6bbb ldr r3, [r7, #56] @ 0x38
  51910. 8015cdc: 2b00 cmp r3, #0
  51911. 8015cde: d10b bne.n 8015cf8 <xTaskCreateStatic+0x4a>
  51912. __asm volatile
  51913. 8015ce0: f04f 0350 mov.w r3, #80 @ 0x50
  51914. 8015ce4: f383 8811 msr BASEPRI, r3
  51915. 8015ce8: f3bf 8f6f isb sy
  51916. 8015cec: f3bf 8f4f dsb sy
  51917. 8015cf0: 61fb str r3, [r7, #28]
  51918. }
  51919. 8015cf2: bf00 nop
  51920. 8015cf4: bf00 nop
  51921. 8015cf6: e7fd b.n 8015cf4 <xTaskCreateStatic+0x46>
  51922. #if( configASSERT_DEFINED == 1 )
  51923. {
  51924. /* Sanity check that the size of the structure used to declare a
  51925. variable of type StaticTask_t equals the size of the real task
  51926. structure. */
  51927. volatile size_t xSize = sizeof( StaticTask_t );
  51928. 8015cf8: 23a8 movs r3, #168 @ 0xa8
  51929. 8015cfa: 613b str r3, [r7, #16]
  51930. configASSERT( xSize == sizeof( TCB_t ) );
  51931. 8015cfc: 693b ldr r3, [r7, #16]
  51932. 8015cfe: 2ba8 cmp r3, #168 @ 0xa8
  51933. 8015d00: d00b beq.n 8015d1a <xTaskCreateStatic+0x6c>
  51934. __asm volatile
  51935. 8015d02: f04f 0350 mov.w r3, #80 @ 0x50
  51936. 8015d06: f383 8811 msr BASEPRI, r3
  51937. 8015d0a: f3bf 8f6f isb sy
  51938. 8015d0e: f3bf 8f4f dsb sy
  51939. 8015d12: 61bb str r3, [r7, #24]
  51940. }
  51941. 8015d14: bf00 nop
  51942. 8015d16: bf00 nop
  51943. 8015d18: e7fd b.n 8015d16 <xTaskCreateStatic+0x68>
  51944. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  51945. 8015d1a: 693b ldr r3, [r7, #16]
  51946. }
  51947. #endif /* configASSERT_DEFINED */
  51948. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  51949. 8015d1c: 6bbb ldr r3, [r7, #56] @ 0x38
  51950. 8015d1e: 2b00 cmp r3, #0
  51951. 8015d20: d01e beq.n 8015d60 <xTaskCreateStatic+0xb2>
  51952. 8015d22: 6b7b ldr r3, [r7, #52] @ 0x34
  51953. 8015d24: 2b00 cmp r3, #0
  51954. 8015d26: d01b beq.n 8015d60 <xTaskCreateStatic+0xb2>
  51955. {
  51956. /* The memory used for the task's TCB and stack are passed into this
  51957. function - use them. */
  51958. 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. */
  51959. 8015d28: 6bbb ldr r3, [r7, #56] @ 0x38
  51960. 8015d2a: 627b str r3, [r7, #36] @ 0x24
  51961. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  51962. 8015d2c: 6a7b ldr r3, [r7, #36] @ 0x24
  51963. 8015d2e: 6b7a ldr r2, [r7, #52] @ 0x34
  51964. 8015d30: 631a str r2, [r3, #48] @ 0x30
  51965. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  51966. {
  51967. /* Tasks can be created statically or dynamically, so note this
  51968. task was created statically in case the task is later deleted. */
  51969. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  51970. 8015d32: 6a7b ldr r3, [r7, #36] @ 0x24
  51971. 8015d34: 2202 movs r2, #2
  51972. 8015d36: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  51973. }
  51974. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  51975. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  51976. 8015d3a: 2300 movs r3, #0
  51977. 8015d3c: 9303 str r3, [sp, #12]
  51978. 8015d3e: 6a7b ldr r3, [r7, #36] @ 0x24
  51979. 8015d40: 9302 str r3, [sp, #8]
  51980. 8015d42: f107 0314 add.w r3, r7, #20
  51981. 8015d46: 9301 str r3, [sp, #4]
  51982. 8015d48: 6b3b ldr r3, [r7, #48] @ 0x30
  51983. 8015d4a: 9300 str r3, [sp, #0]
  51984. 8015d4c: 683b ldr r3, [r7, #0]
  51985. 8015d4e: 687a ldr r2, [r7, #4]
  51986. 8015d50: 68b9 ldr r1, [r7, #8]
  51987. 8015d52: 68f8 ldr r0, [r7, #12]
  51988. 8015d54: f000 f850 bl 8015df8 <prvInitialiseNewTask>
  51989. prvAddNewTaskToReadyList( pxNewTCB );
  51990. 8015d58: 6a78 ldr r0, [r7, #36] @ 0x24
  51991. 8015d5a: f000 f8f5 bl 8015f48 <prvAddNewTaskToReadyList>
  51992. 8015d5e: e001 b.n 8015d64 <xTaskCreateStatic+0xb6>
  51993. }
  51994. else
  51995. {
  51996. xReturn = NULL;
  51997. 8015d60: 2300 movs r3, #0
  51998. 8015d62: 617b str r3, [r7, #20]
  51999. }
  52000. return xReturn;
  52001. 8015d64: 697b ldr r3, [r7, #20]
  52002. }
  52003. 8015d66: 4618 mov r0, r3
  52004. 8015d68: 3728 adds r7, #40 @ 0x28
  52005. 8015d6a: 46bd mov sp, r7
  52006. 8015d6c: bd80 pop {r7, pc}
  52007. 08015d6e <xTaskCreate>:
  52008. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  52009. const configSTACK_DEPTH_TYPE usStackDepth,
  52010. void * const pvParameters,
  52011. UBaseType_t uxPriority,
  52012. TaskHandle_t * const pxCreatedTask )
  52013. {
  52014. 8015d6e: b580 push {r7, lr}
  52015. 8015d70: b08c sub sp, #48 @ 0x30
  52016. 8015d72: af04 add r7, sp, #16
  52017. 8015d74: 60f8 str r0, [r7, #12]
  52018. 8015d76: 60b9 str r1, [r7, #8]
  52019. 8015d78: 603b str r3, [r7, #0]
  52020. 8015d7a: 4613 mov r3, r2
  52021. 8015d7c: 80fb strh r3, [r7, #6]
  52022. #else /* portSTACK_GROWTH */
  52023. {
  52024. StackType_t *pxStack;
  52025. /* Allocate space for the stack used by the task being created. */
  52026. 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. */
  52027. 8015d7e: 88fb ldrh r3, [r7, #6]
  52028. 8015d80: 009b lsls r3, r3, #2
  52029. 8015d82: 4618 mov r0, r3
  52030. 8015d84: f002 f8da bl 8017f3c <pvPortMalloc>
  52031. 8015d88: 6178 str r0, [r7, #20]
  52032. if( pxStack != NULL )
  52033. 8015d8a: 697b ldr r3, [r7, #20]
  52034. 8015d8c: 2b00 cmp r3, #0
  52035. 8015d8e: d00e beq.n 8015dae <xTaskCreate+0x40>
  52036. {
  52037. /* Allocate space for the TCB. */
  52038. 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. */
  52039. 8015d90: 20a8 movs r0, #168 @ 0xa8
  52040. 8015d92: f002 f8d3 bl 8017f3c <pvPortMalloc>
  52041. 8015d96: 61f8 str r0, [r7, #28]
  52042. if( pxNewTCB != NULL )
  52043. 8015d98: 69fb ldr r3, [r7, #28]
  52044. 8015d9a: 2b00 cmp r3, #0
  52045. 8015d9c: d003 beq.n 8015da6 <xTaskCreate+0x38>
  52046. {
  52047. /* Store the stack location in the TCB. */
  52048. pxNewTCB->pxStack = pxStack;
  52049. 8015d9e: 69fb ldr r3, [r7, #28]
  52050. 8015da0: 697a ldr r2, [r7, #20]
  52051. 8015da2: 631a str r2, [r3, #48] @ 0x30
  52052. 8015da4: e005 b.n 8015db2 <xTaskCreate+0x44>
  52053. }
  52054. else
  52055. {
  52056. /* The stack cannot be used as the TCB was not created. Free
  52057. it again. */
  52058. vPortFree( pxStack );
  52059. 8015da6: 6978 ldr r0, [r7, #20]
  52060. 8015da8: f002 f996 bl 80180d8 <vPortFree>
  52061. 8015dac: e001 b.n 8015db2 <xTaskCreate+0x44>
  52062. }
  52063. }
  52064. else
  52065. {
  52066. pxNewTCB = NULL;
  52067. 8015dae: 2300 movs r3, #0
  52068. 8015db0: 61fb str r3, [r7, #28]
  52069. }
  52070. }
  52071. #endif /* portSTACK_GROWTH */
  52072. if( pxNewTCB != NULL )
  52073. 8015db2: 69fb ldr r3, [r7, #28]
  52074. 8015db4: 2b00 cmp r3, #0
  52075. 8015db6: d017 beq.n 8015de8 <xTaskCreate+0x7a>
  52076. {
  52077. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  52078. {
  52079. /* Tasks can be created statically or dynamically, so note this
  52080. task was created dynamically in case it is later deleted. */
  52081. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  52082. 8015db8: 69fb ldr r3, [r7, #28]
  52083. 8015dba: 2200 movs r2, #0
  52084. 8015dbc: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  52085. }
  52086. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  52087. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  52088. 8015dc0: 88fa ldrh r2, [r7, #6]
  52089. 8015dc2: 2300 movs r3, #0
  52090. 8015dc4: 9303 str r3, [sp, #12]
  52091. 8015dc6: 69fb ldr r3, [r7, #28]
  52092. 8015dc8: 9302 str r3, [sp, #8]
  52093. 8015dca: 6afb ldr r3, [r7, #44] @ 0x2c
  52094. 8015dcc: 9301 str r3, [sp, #4]
  52095. 8015dce: 6abb ldr r3, [r7, #40] @ 0x28
  52096. 8015dd0: 9300 str r3, [sp, #0]
  52097. 8015dd2: 683b ldr r3, [r7, #0]
  52098. 8015dd4: 68b9 ldr r1, [r7, #8]
  52099. 8015dd6: 68f8 ldr r0, [r7, #12]
  52100. 8015dd8: f000 f80e bl 8015df8 <prvInitialiseNewTask>
  52101. prvAddNewTaskToReadyList( pxNewTCB );
  52102. 8015ddc: 69f8 ldr r0, [r7, #28]
  52103. 8015dde: f000 f8b3 bl 8015f48 <prvAddNewTaskToReadyList>
  52104. xReturn = pdPASS;
  52105. 8015de2: 2301 movs r3, #1
  52106. 8015de4: 61bb str r3, [r7, #24]
  52107. 8015de6: e002 b.n 8015dee <xTaskCreate+0x80>
  52108. }
  52109. else
  52110. {
  52111. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  52112. 8015de8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  52113. 8015dec: 61bb str r3, [r7, #24]
  52114. }
  52115. return xReturn;
  52116. 8015dee: 69bb ldr r3, [r7, #24]
  52117. }
  52118. 8015df0: 4618 mov r0, r3
  52119. 8015df2: 3720 adds r7, #32
  52120. 8015df4: 46bd mov sp, r7
  52121. 8015df6: bd80 pop {r7, pc}
  52122. 08015df8 <prvInitialiseNewTask>:
  52123. void * const pvParameters,
  52124. UBaseType_t uxPriority,
  52125. TaskHandle_t * const pxCreatedTask,
  52126. TCB_t *pxNewTCB,
  52127. const MemoryRegion_t * const xRegions )
  52128. {
  52129. 8015df8: b580 push {r7, lr}
  52130. 8015dfa: b088 sub sp, #32
  52131. 8015dfc: af00 add r7, sp, #0
  52132. 8015dfe: 60f8 str r0, [r7, #12]
  52133. 8015e00: 60b9 str r1, [r7, #8]
  52134. 8015e02: 607a str r2, [r7, #4]
  52135. 8015e04: 603b str r3, [r7, #0]
  52136. /* Avoid dependency on memset() if it is not required. */
  52137. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  52138. {
  52139. /* Fill the stack with a known value to assist debugging. */
  52140. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  52141. 8015e06: 6b3b ldr r3, [r7, #48] @ 0x30
  52142. 8015e08: 6b18 ldr r0, [r3, #48] @ 0x30
  52143. 8015e0a: 687b ldr r3, [r7, #4]
  52144. 8015e0c: 009b lsls r3, r3, #2
  52145. 8015e0e: 461a mov r2, r3
  52146. 8015e10: 21a5 movs r1, #165 @ 0xa5
  52147. 8015e12: f002 fa81 bl 8018318 <memset>
  52148. grows from high memory to low (as per the 80x86) or vice versa.
  52149. portSTACK_GROWTH is used to make the result positive or negative as required
  52150. by the port. */
  52151. #if( portSTACK_GROWTH < 0 )
  52152. {
  52153. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  52154. 8015e16: 6b3b ldr r3, [r7, #48] @ 0x30
  52155. 8015e18: 6b1a ldr r2, [r3, #48] @ 0x30
  52156. 8015e1a: 6879 ldr r1, [r7, #4]
  52157. 8015e1c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  52158. 8015e20: 440b add r3, r1
  52159. 8015e22: 009b lsls r3, r3, #2
  52160. 8015e24: 4413 add r3, r2
  52161. 8015e26: 61bb str r3, [r7, #24]
  52162. 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(). */
  52163. 8015e28: 69bb ldr r3, [r7, #24]
  52164. 8015e2a: f023 0307 bic.w r3, r3, #7
  52165. 8015e2e: 61bb str r3, [r7, #24]
  52166. /* Check the alignment of the calculated top of stack is correct. */
  52167. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  52168. 8015e30: 69bb ldr r3, [r7, #24]
  52169. 8015e32: f003 0307 and.w r3, r3, #7
  52170. 8015e36: 2b00 cmp r3, #0
  52171. 8015e38: d00b beq.n 8015e52 <prvInitialiseNewTask+0x5a>
  52172. __asm volatile
  52173. 8015e3a: f04f 0350 mov.w r3, #80 @ 0x50
  52174. 8015e3e: f383 8811 msr BASEPRI, r3
  52175. 8015e42: f3bf 8f6f isb sy
  52176. 8015e46: f3bf 8f4f dsb sy
  52177. 8015e4a: 617b str r3, [r7, #20]
  52178. }
  52179. 8015e4c: bf00 nop
  52180. 8015e4e: bf00 nop
  52181. 8015e50: e7fd b.n 8015e4e <prvInitialiseNewTask+0x56>
  52182. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  52183. }
  52184. #endif /* portSTACK_GROWTH */
  52185. /* Store the task name in the TCB. */
  52186. if( pcName != NULL )
  52187. 8015e52: 68bb ldr r3, [r7, #8]
  52188. 8015e54: 2b00 cmp r3, #0
  52189. 8015e56: d01f beq.n 8015e98 <prvInitialiseNewTask+0xa0>
  52190. {
  52191. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52192. 8015e58: 2300 movs r3, #0
  52193. 8015e5a: 61fb str r3, [r7, #28]
  52194. 8015e5c: e012 b.n 8015e84 <prvInitialiseNewTask+0x8c>
  52195. {
  52196. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  52197. 8015e5e: 68ba ldr r2, [r7, #8]
  52198. 8015e60: 69fb ldr r3, [r7, #28]
  52199. 8015e62: 4413 add r3, r2
  52200. 8015e64: 7819 ldrb r1, [r3, #0]
  52201. 8015e66: 6b3a ldr r2, [r7, #48] @ 0x30
  52202. 8015e68: 69fb ldr r3, [r7, #28]
  52203. 8015e6a: 4413 add r3, r2
  52204. 8015e6c: 3334 adds r3, #52 @ 0x34
  52205. 8015e6e: 460a mov r2, r1
  52206. 8015e70: 701a strb r2, [r3, #0]
  52207. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  52208. configMAX_TASK_NAME_LEN characters just in case the memory after the
  52209. string is not accessible (extremely unlikely). */
  52210. if( pcName[ x ] == ( char ) 0x00 )
  52211. 8015e72: 68ba ldr r2, [r7, #8]
  52212. 8015e74: 69fb ldr r3, [r7, #28]
  52213. 8015e76: 4413 add r3, r2
  52214. 8015e78: 781b ldrb r3, [r3, #0]
  52215. 8015e7a: 2b00 cmp r3, #0
  52216. 8015e7c: d006 beq.n 8015e8c <prvInitialiseNewTask+0x94>
  52217. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  52218. 8015e7e: 69fb ldr r3, [r7, #28]
  52219. 8015e80: 3301 adds r3, #1
  52220. 8015e82: 61fb str r3, [r7, #28]
  52221. 8015e84: 69fb ldr r3, [r7, #28]
  52222. 8015e86: 2b0f cmp r3, #15
  52223. 8015e88: d9e9 bls.n 8015e5e <prvInitialiseNewTask+0x66>
  52224. 8015e8a: e000 b.n 8015e8e <prvInitialiseNewTask+0x96>
  52225. {
  52226. break;
  52227. 8015e8c: bf00 nop
  52228. }
  52229. }
  52230. /* Ensure the name string is terminated in the case that the string length
  52231. was greater or equal to configMAX_TASK_NAME_LEN. */
  52232. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  52233. 8015e8e: 6b3b ldr r3, [r7, #48] @ 0x30
  52234. 8015e90: 2200 movs r2, #0
  52235. 8015e92: f883 2043 strb.w r2, [r3, #67] @ 0x43
  52236. 8015e96: e003 b.n 8015ea0 <prvInitialiseNewTask+0xa8>
  52237. }
  52238. else
  52239. {
  52240. /* The task has not been given a name, so just ensure there is a NULL
  52241. terminator when it is read out. */
  52242. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  52243. 8015e98: 6b3b ldr r3, [r7, #48] @ 0x30
  52244. 8015e9a: 2200 movs r2, #0
  52245. 8015e9c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  52246. }
  52247. /* This is used as an array index so must ensure it's not too large. First
  52248. remove the privilege bit if one is present. */
  52249. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  52250. 8015ea0: 6abb ldr r3, [r7, #40] @ 0x28
  52251. 8015ea2: 2b37 cmp r3, #55 @ 0x37
  52252. 8015ea4: d901 bls.n 8015eaa <prvInitialiseNewTask+0xb2>
  52253. {
  52254. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  52255. 8015ea6: 2337 movs r3, #55 @ 0x37
  52256. 8015ea8: 62bb str r3, [r7, #40] @ 0x28
  52257. else
  52258. {
  52259. mtCOVERAGE_TEST_MARKER();
  52260. }
  52261. pxNewTCB->uxPriority = uxPriority;
  52262. 8015eaa: 6b3b ldr r3, [r7, #48] @ 0x30
  52263. 8015eac: 6aba ldr r2, [r7, #40] @ 0x28
  52264. 8015eae: 62da str r2, [r3, #44] @ 0x2c
  52265. #if ( configUSE_MUTEXES == 1 )
  52266. {
  52267. pxNewTCB->uxBasePriority = uxPriority;
  52268. 8015eb0: 6b3b ldr r3, [r7, #48] @ 0x30
  52269. 8015eb2: 6aba ldr r2, [r7, #40] @ 0x28
  52270. 8015eb4: 64da str r2, [r3, #76] @ 0x4c
  52271. pxNewTCB->uxMutexesHeld = 0;
  52272. 8015eb6: 6b3b ldr r3, [r7, #48] @ 0x30
  52273. 8015eb8: 2200 movs r2, #0
  52274. 8015eba: 651a str r2, [r3, #80] @ 0x50
  52275. }
  52276. #endif /* configUSE_MUTEXES */
  52277. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  52278. 8015ebc: 6b3b ldr r3, [r7, #48] @ 0x30
  52279. 8015ebe: 3304 adds r3, #4
  52280. 8015ec0: 4618 mov r0, r3
  52281. 8015ec2: f7fe fd09 bl 80148d8 <vListInitialiseItem>
  52282. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  52283. 8015ec6: 6b3b ldr r3, [r7, #48] @ 0x30
  52284. 8015ec8: 3318 adds r3, #24
  52285. 8015eca: 4618 mov r0, r3
  52286. 8015ecc: f7fe fd04 bl 80148d8 <vListInitialiseItem>
  52287. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  52288. back to the containing TCB from a generic item in a list. */
  52289. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  52290. 8015ed0: 6b3b ldr r3, [r7, #48] @ 0x30
  52291. 8015ed2: 6b3a ldr r2, [r7, #48] @ 0x30
  52292. 8015ed4: 611a str r2, [r3, #16]
  52293. /* Event lists are always in priority order. */
  52294. 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. */
  52295. 8015ed6: 6abb ldr r3, [r7, #40] @ 0x28
  52296. 8015ed8: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52297. 8015edc: 6b3b ldr r3, [r7, #48] @ 0x30
  52298. 8015ede: 619a str r2, [r3, #24]
  52299. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  52300. 8015ee0: 6b3b ldr r3, [r7, #48] @ 0x30
  52301. 8015ee2: 6b3a ldr r2, [r7, #48] @ 0x30
  52302. 8015ee4: 625a str r2, [r3, #36] @ 0x24
  52303. }
  52304. #endif
  52305. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  52306. {
  52307. pxNewTCB->ulNotifiedValue = 0;
  52308. 8015ee6: 6b3b ldr r3, [r7, #48] @ 0x30
  52309. 8015ee8: 2200 movs r2, #0
  52310. 8015eea: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  52311. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  52312. 8015eee: 6b3b ldr r3, [r7, #48] @ 0x30
  52313. 8015ef0: 2200 movs r2, #0
  52314. 8015ef2: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  52315. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52316. {
  52317. /* Initialise this task's Newlib reent structure.
  52318. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52319. for additional information. */
  52320. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  52321. 8015ef6: 6b3b ldr r3, [r7, #48] @ 0x30
  52322. 8015ef8: 3354 adds r3, #84 @ 0x54
  52323. 8015efa: 224c movs r2, #76 @ 0x4c
  52324. 8015efc: 2100 movs r1, #0
  52325. 8015efe: 4618 mov r0, r3
  52326. 8015f00: f002 fa0a bl 8018318 <memset>
  52327. 8015f04: 6b3b ldr r3, [r7, #48] @ 0x30
  52328. 8015f06: 4a0d ldr r2, [pc, #52] @ (8015f3c <prvInitialiseNewTask+0x144>)
  52329. 8015f08: 659a str r2, [r3, #88] @ 0x58
  52330. 8015f0a: 6b3b ldr r3, [r7, #48] @ 0x30
  52331. 8015f0c: 4a0c ldr r2, [pc, #48] @ (8015f40 <prvInitialiseNewTask+0x148>)
  52332. 8015f0e: 65da str r2, [r3, #92] @ 0x5c
  52333. 8015f10: 6b3b ldr r3, [r7, #48] @ 0x30
  52334. 8015f12: 4a0c ldr r2, [pc, #48] @ (8015f44 <prvInitialiseNewTask+0x14c>)
  52335. 8015f14: 661a str r2, [r3, #96] @ 0x60
  52336. }
  52337. #endif /* portSTACK_GROWTH */
  52338. }
  52339. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  52340. {
  52341. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  52342. 8015f16: 683a ldr r2, [r7, #0]
  52343. 8015f18: 68f9 ldr r1, [r7, #12]
  52344. 8015f1a: 69b8 ldr r0, [r7, #24]
  52345. 8015f1c: f001 fdb8 bl 8017a90 <pxPortInitialiseStack>
  52346. 8015f20: 4602 mov r2, r0
  52347. 8015f22: 6b3b ldr r3, [r7, #48] @ 0x30
  52348. 8015f24: 601a str r2, [r3, #0]
  52349. }
  52350. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  52351. }
  52352. #endif /* portUSING_MPU_WRAPPERS */
  52353. if( pxCreatedTask != NULL )
  52354. 8015f26: 6afb ldr r3, [r7, #44] @ 0x2c
  52355. 8015f28: 2b00 cmp r3, #0
  52356. 8015f2a: d002 beq.n 8015f32 <prvInitialiseNewTask+0x13a>
  52357. {
  52358. /* Pass the handle out in an anonymous way. The handle can be used to
  52359. change the created task's priority, delete the created task, etc.*/
  52360. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  52361. 8015f2c: 6afb ldr r3, [r7, #44] @ 0x2c
  52362. 8015f2e: 6b3a ldr r2, [r7, #48] @ 0x30
  52363. 8015f30: 601a str r2, [r3, #0]
  52364. }
  52365. else
  52366. {
  52367. mtCOVERAGE_TEST_MARKER();
  52368. }
  52369. }
  52370. 8015f32: bf00 nop
  52371. 8015f34: 3720 adds r7, #32
  52372. 8015f36: 46bd mov sp, r7
  52373. 8015f38: bd80 pop {r7, pc}
  52374. 8015f3a: bf00 nop
  52375. 8015f3c: 2401304c .word 0x2401304c
  52376. 8015f40: 240130b4 .word 0x240130b4
  52377. 8015f44: 2401311c .word 0x2401311c
  52378. 08015f48 <prvAddNewTaskToReadyList>:
  52379. /*-----------------------------------------------------------*/
  52380. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  52381. {
  52382. 8015f48: b580 push {r7, lr}
  52383. 8015f4a: b082 sub sp, #8
  52384. 8015f4c: af00 add r7, sp, #0
  52385. 8015f4e: 6078 str r0, [r7, #4]
  52386. /* Ensure interrupts don't access the task lists while the lists are being
  52387. updated. */
  52388. taskENTER_CRITICAL();
  52389. 8015f50: f001 fed2 bl 8017cf8 <vPortEnterCritical>
  52390. {
  52391. uxCurrentNumberOfTasks++;
  52392. 8015f54: 4b2d ldr r3, [pc, #180] @ (801600c <prvAddNewTaskToReadyList+0xc4>)
  52393. 8015f56: 681b ldr r3, [r3, #0]
  52394. 8015f58: 3301 adds r3, #1
  52395. 8015f5a: 4a2c ldr r2, [pc, #176] @ (801600c <prvAddNewTaskToReadyList+0xc4>)
  52396. 8015f5c: 6013 str r3, [r2, #0]
  52397. if( pxCurrentTCB == NULL )
  52398. 8015f5e: 4b2c ldr r3, [pc, #176] @ (8016010 <prvAddNewTaskToReadyList+0xc8>)
  52399. 8015f60: 681b ldr r3, [r3, #0]
  52400. 8015f62: 2b00 cmp r3, #0
  52401. 8015f64: d109 bne.n 8015f7a <prvAddNewTaskToReadyList+0x32>
  52402. {
  52403. /* There are no other tasks, or all the other tasks are in
  52404. the suspended state - make this the current task. */
  52405. pxCurrentTCB = pxNewTCB;
  52406. 8015f66: 4a2a ldr r2, [pc, #168] @ (8016010 <prvAddNewTaskToReadyList+0xc8>)
  52407. 8015f68: 687b ldr r3, [r7, #4]
  52408. 8015f6a: 6013 str r3, [r2, #0]
  52409. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  52410. 8015f6c: 4b27 ldr r3, [pc, #156] @ (801600c <prvAddNewTaskToReadyList+0xc4>)
  52411. 8015f6e: 681b ldr r3, [r3, #0]
  52412. 8015f70: 2b01 cmp r3, #1
  52413. 8015f72: d110 bne.n 8015f96 <prvAddNewTaskToReadyList+0x4e>
  52414. {
  52415. /* This is the first task to be created so do the preliminary
  52416. initialisation required. We will not recover if this call
  52417. fails, but we will report the failure. */
  52418. prvInitialiseTaskLists();
  52419. 8015f74: f000 fc64 bl 8016840 <prvInitialiseTaskLists>
  52420. 8015f78: e00d b.n 8015f96 <prvAddNewTaskToReadyList+0x4e>
  52421. else
  52422. {
  52423. /* If the scheduler is not already running, make this task the
  52424. current task if it is the highest priority task to be created
  52425. so far. */
  52426. if( xSchedulerRunning == pdFALSE )
  52427. 8015f7a: 4b26 ldr r3, [pc, #152] @ (8016014 <prvAddNewTaskToReadyList+0xcc>)
  52428. 8015f7c: 681b ldr r3, [r3, #0]
  52429. 8015f7e: 2b00 cmp r3, #0
  52430. 8015f80: d109 bne.n 8015f96 <prvAddNewTaskToReadyList+0x4e>
  52431. {
  52432. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  52433. 8015f82: 4b23 ldr r3, [pc, #140] @ (8016010 <prvAddNewTaskToReadyList+0xc8>)
  52434. 8015f84: 681b ldr r3, [r3, #0]
  52435. 8015f86: 6ada ldr r2, [r3, #44] @ 0x2c
  52436. 8015f88: 687b ldr r3, [r7, #4]
  52437. 8015f8a: 6adb ldr r3, [r3, #44] @ 0x2c
  52438. 8015f8c: 429a cmp r2, r3
  52439. 8015f8e: d802 bhi.n 8015f96 <prvAddNewTaskToReadyList+0x4e>
  52440. {
  52441. pxCurrentTCB = pxNewTCB;
  52442. 8015f90: 4a1f ldr r2, [pc, #124] @ (8016010 <prvAddNewTaskToReadyList+0xc8>)
  52443. 8015f92: 687b ldr r3, [r7, #4]
  52444. 8015f94: 6013 str r3, [r2, #0]
  52445. {
  52446. mtCOVERAGE_TEST_MARKER();
  52447. }
  52448. }
  52449. uxTaskNumber++;
  52450. 8015f96: 4b20 ldr r3, [pc, #128] @ (8016018 <prvAddNewTaskToReadyList+0xd0>)
  52451. 8015f98: 681b ldr r3, [r3, #0]
  52452. 8015f9a: 3301 adds r3, #1
  52453. 8015f9c: 4a1e ldr r2, [pc, #120] @ (8016018 <prvAddNewTaskToReadyList+0xd0>)
  52454. 8015f9e: 6013 str r3, [r2, #0]
  52455. #if ( configUSE_TRACE_FACILITY == 1 )
  52456. {
  52457. /* Add a counter into the TCB for tracing only. */
  52458. pxNewTCB->uxTCBNumber = uxTaskNumber;
  52459. 8015fa0: 4b1d ldr r3, [pc, #116] @ (8016018 <prvAddNewTaskToReadyList+0xd0>)
  52460. 8015fa2: 681a ldr r2, [r3, #0]
  52461. 8015fa4: 687b ldr r3, [r7, #4]
  52462. 8015fa6: 645a str r2, [r3, #68] @ 0x44
  52463. }
  52464. #endif /* configUSE_TRACE_FACILITY */
  52465. traceTASK_CREATE( pxNewTCB );
  52466. prvAddTaskToReadyList( pxNewTCB );
  52467. 8015fa8: 687b ldr r3, [r7, #4]
  52468. 8015faa: 6ada ldr r2, [r3, #44] @ 0x2c
  52469. 8015fac: 4b1b ldr r3, [pc, #108] @ (801601c <prvAddNewTaskToReadyList+0xd4>)
  52470. 8015fae: 681b ldr r3, [r3, #0]
  52471. 8015fb0: 429a cmp r2, r3
  52472. 8015fb2: d903 bls.n 8015fbc <prvAddNewTaskToReadyList+0x74>
  52473. 8015fb4: 687b ldr r3, [r7, #4]
  52474. 8015fb6: 6adb ldr r3, [r3, #44] @ 0x2c
  52475. 8015fb8: 4a18 ldr r2, [pc, #96] @ (801601c <prvAddNewTaskToReadyList+0xd4>)
  52476. 8015fba: 6013 str r3, [r2, #0]
  52477. 8015fbc: 687b ldr r3, [r7, #4]
  52478. 8015fbe: 6ada ldr r2, [r3, #44] @ 0x2c
  52479. 8015fc0: 4613 mov r3, r2
  52480. 8015fc2: 009b lsls r3, r3, #2
  52481. 8015fc4: 4413 add r3, r2
  52482. 8015fc6: 009b lsls r3, r3, #2
  52483. 8015fc8: 4a15 ldr r2, [pc, #84] @ (8016020 <prvAddNewTaskToReadyList+0xd8>)
  52484. 8015fca: 441a add r2, r3
  52485. 8015fcc: 687b ldr r3, [r7, #4]
  52486. 8015fce: 3304 adds r3, #4
  52487. 8015fd0: 4619 mov r1, r3
  52488. 8015fd2: 4610 mov r0, r2
  52489. 8015fd4: f7fe fc8d bl 80148f2 <vListInsertEnd>
  52490. portSETUP_TCB( pxNewTCB );
  52491. }
  52492. taskEXIT_CRITICAL();
  52493. 8015fd8: f001 fec0 bl 8017d5c <vPortExitCritical>
  52494. if( xSchedulerRunning != pdFALSE )
  52495. 8015fdc: 4b0d ldr r3, [pc, #52] @ (8016014 <prvAddNewTaskToReadyList+0xcc>)
  52496. 8015fde: 681b ldr r3, [r3, #0]
  52497. 8015fe0: 2b00 cmp r3, #0
  52498. 8015fe2: d00e beq.n 8016002 <prvAddNewTaskToReadyList+0xba>
  52499. {
  52500. /* If the created task is of a higher priority than the current task
  52501. then it should run now. */
  52502. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  52503. 8015fe4: 4b0a ldr r3, [pc, #40] @ (8016010 <prvAddNewTaskToReadyList+0xc8>)
  52504. 8015fe6: 681b ldr r3, [r3, #0]
  52505. 8015fe8: 6ada ldr r2, [r3, #44] @ 0x2c
  52506. 8015fea: 687b ldr r3, [r7, #4]
  52507. 8015fec: 6adb ldr r3, [r3, #44] @ 0x2c
  52508. 8015fee: 429a cmp r2, r3
  52509. 8015ff0: d207 bcs.n 8016002 <prvAddNewTaskToReadyList+0xba>
  52510. {
  52511. taskYIELD_IF_USING_PREEMPTION();
  52512. 8015ff2: 4b0c ldr r3, [pc, #48] @ (8016024 <prvAddNewTaskToReadyList+0xdc>)
  52513. 8015ff4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52514. 8015ff8: 601a str r2, [r3, #0]
  52515. 8015ffa: f3bf 8f4f dsb sy
  52516. 8015ffe: f3bf 8f6f isb sy
  52517. }
  52518. else
  52519. {
  52520. mtCOVERAGE_TEST_MARKER();
  52521. }
  52522. }
  52523. 8016002: bf00 nop
  52524. 8016004: 3708 adds r7, #8
  52525. 8016006: 46bd mov sp, r7
  52526. 8016008: bd80 pop {r7, pc}
  52527. 801600a: bf00 nop
  52528. 801600c: 24002ecc .word 0x24002ecc
  52529. 8016010: 240029f8 .word 0x240029f8
  52530. 8016014: 24002ed8 .word 0x24002ed8
  52531. 8016018: 24002ee8 .word 0x24002ee8
  52532. 801601c: 24002ed4 .word 0x24002ed4
  52533. 8016020: 240029fc .word 0x240029fc
  52534. 8016024: e000ed04 .word 0xe000ed04
  52535. 08016028 <vTaskDelay>:
  52536. /*-----------------------------------------------------------*/
  52537. #if ( INCLUDE_vTaskDelay == 1 )
  52538. void vTaskDelay( const TickType_t xTicksToDelay )
  52539. {
  52540. 8016028: b580 push {r7, lr}
  52541. 801602a: b084 sub sp, #16
  52542. 801602c: af00 add r7, sp, #0
  52543. 801602e: 6078 str r0, [r7, #4]
  52544. BaseType_t xAlreadyYielded = pdFALSE;
  52545. 8016030: 2300 movs r3, #0
  52546. 8016032: 60fb str r3, [r7, #12]
  52547. /* A delay time of zero just forces a reschedule. */
  52548. if( xTicksToDelay > ( TickType_t ) 0U )
  52549. 8016034: 687b ldr r3, [r7, #4]
  52550. 8016036: 2b00 cmp r3, #0
  52551. 8016038: d018 beq.n 801606c <vTaskDelay+0x44>
  52552. {
  52553. configASSERT( uxSchedulerSuspended == 0 );
  52554. 801603a: 4b14 ldr r3, [pc, #80] @ (801608c <vTaskDelay+0x64>)
  52555. 801603c: 681b ldr r3, [r3, #0]
  52556. 801603e: 2b00 cmp r3, #0
  52557. 8016040: d00b beq.n 801605a <vTaskDelay+0x32>
  52558. __asm volatile
  52559. 8016042: f04f 0350 mov.w r3, #80 @ 0x50
  52560. 8016046: f383 8811 msr BASEPRI, r3
  52561. 801604a: f3bf 8f6f isb sy
  52562. 801604e: f3bf 8f4f dsb sy
  52563. 8016052: 60bb str r3, [r7, #8]
  52564. }
  52565. 8016054: bf00 nop
  52566. 8016056: bf00 nop
  52567. 8016058: e7fd b.n 8016056 <vTaskDelay+0x2e>
  52568. vTaskSuspendAll();
  52569. 801605a: f000 f88b bl 8016174 <vTaskSuspendAll>
  52570. list or removed from the blocked list until the scheduler
  52571. is resumed.
  52572. This task cannot be in an event list as it is the currently
  52573. executing task. */
  52574. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  52575. 801605e: 2100 movs r1, #0
  52576. 8016060: 6878 ldr r0, [r7, #4]
  52577. 8016062: f001 f87d bl 8017160 <prvAddCurrentTaskToDelayedList>
  52578. }
  52579. xAlreadyYielded = xTaskResumeAll();
  52580. 8016066: f000 f893 bl 8016190 <xTaskResumeAll>
  52581. 801606a: 60f8 str r0, [r7, #12]
  52582. mtCOVERAGE_TEST_MARKER();
  52583. }
  52584. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  52585. have put ourselves to sleep. */
  52586. if( xAlreadyYielded == pdFALSE )
  52587. 801606c: 68fb ldr r3, [r7, #12]
  52588. 801606e: 2b00 cmp r3, #0
  52589. 8016070: d107 bne.n 8016082 <vTaskDelay+0x5a>
  52590. {
  52591. portYIELD_WITHIN_API();
  52592. 8016072: 4b07 ldr r3, [pc, #28] @ (8016090 <vTaskDelay+0x68>)
  52593. 8016074: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52594. 8016078: 601a str r2, [r3, #0]
  52595. 801607a: f3bf 8f4f dsb sy
  52596. 801607e: f3bf 8f6f isb sy
  52597. }
  52598. else
  52599. {
  52600. mtCOVERAGE_TEST_MARKER();
  52601. }
  52602. }
  52603. 8016082: bf00 nop
  52604. 8016084: 3710 adds r7, #16
  52605. 8016086: 46bd mov sp, r7
  52606. 8016088: bd80 pop {r7, pc}
  52607. 801608a: bf00 nop
  52608. 801608c: 24002ef4 .word 0x24002ef4
  52609. 8016090: e000ed04 .word 0xe000ed04
  52610. 08016094 <vTaskStartScheduler>:
  52611. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  52612. /*-----------------------------------------------------------*/
  52613. void vTaskStartScheduler( void )
  52614. {
  52615. 8016094: b580 push {r7, lr}
  52616. 8016096: b08a sub sp, #40 @ 0x28
  52617. 8016098: af04 add r7, sp, #16
  52618. BaseType_t xReturn;
  52619. /* Add the idle task at the lowest priority. */
  52620. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  52621. {
  52622. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  52623. 801609a: 2300 movs r3, #0
  52624. 801609c: 60bb str r3, [r7, #8]
  52625. StackType_t *pxIdleTaskStackBuffer = NULL;
  52626. 801609e: 2300 movs r3, #0
  52627. 80160a0: 607b str r3, [r7, #4]
  52628. uint32_t ulIdleTaskStackSize;
  52629. /* The Idle task is created using user provided RAM - obtain the
  52630. address of the RAM then create the idle task. */
  52631. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  52632. 80160a2: 463a mov r2, r7
  52633. 80160a4: 1d39 adds r1, r7, #4
  52634. 80160a6: f107 0308 add.w r3, r7, #8
  52635. 80160aa: 4618 mov r0, r3
  52636. 80160ac: f7fe fbc0 bl 8014830 <vApplicationGetIdleTaskMemory>
  52637. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  52638. 80160b0: 6839 ldr r1, [r7, #0]
  52639. 80160b2: 687b ldr r3, [r7, #4]
  52640. 80160b4: 68ba ldr r2, [r7, #8]
  52641. 80160b6: 9202 str r2, [sp, #8]
  52642. 80160b8: 9301 str r3, [sp, #4]
  52643. 80160ba: 2300 movs r3, #0
  52644. 80160bc: 9300 str r3, [sp, #0]
  52645. 80160be: 2300 movs r3, #0
  52646. 80160c0: 460a mov r2, r1
  52647. 80160c2: 4924 ldr r1, [pc, #144] @ (8016154 <vTaskStartScheduler+0xc0>)
  52648. 80160c4: 4824 ldr r0, [pc, #144] @ (8016158 <vTaskStartScheduler+0xc4>)
  52649. 80160c6: f7ff fdf2 bl 8015cae <xTaskCreateStatic>
  52650. 80160ca: 4603 mov r3, r0
  52651. 80160cc: 4a23 ldr r2, [pc, #140] @ (801615c <vTaskStartScheduler+0xc8>)
  52652. 80160ce: 6013 str r3, [r2, #0]
  52653. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  52654. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  52655. pxIdleTaskStackBuffer,
  52656. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  52657. if( xIdleTaskHandle != NULL )
  52658. 80160d0: 4b22 ldr r3, [pc, #136] @ (801615c <vTaskStartScheduler+0xc8>)
  52659. 80160d2: 681b ldr r3, [r3, #0]
  52660. 80160d4: 2b00 cmp r3, #0
  52661. 80160d6: d002 beq.n 80160de <vTaskStartScheduler+0x4a>
  52662. {
  52663. xReturn = pdPASS;
  52664. 80160d8: 2301 movs r3, #1
  52665. 80160da: 617b str r3, [r7, #20]
  52666. 80160dc: e001 b.n 80160e2 <vTaskStartScheduler+0x4e>
  52667. }
  52668. else
  52669. {
  52670. xReturn = pdFAIL;
  52671. 80160de: 2300 movs r3, #0
  52672. 80160e0: 617b str r3, [r7, #20]
  52673. }
  52674. #endif /* configSUPPORT_STATIC_ALLOCATION */
  52675. #if ( configUSE_TIMERS == 1 )
  52676. {
  52677. if( xReturn == pdPASS )
  52678. 80160e2: 697b ldr r3, [r7, #20]
  52679. 80160e4: 2b01 cmp r3, #1
  52680. 80160e6: d102 bne.n 80160ee <vTaskStartScheduler+0x5a>
  52681. {
  52682. xReturn = xTimerCreateTimerTask();
  52683. 80160e8: f001 f88e bl 8017208 <xTimerCreateTimerTask>
  52684. 80160ec: 6178 str r0, [r7, #20]
  52685. mtCOVERAGE_TEST_MARKER();
  52686. }
  52687. }
  52688. #endif /* configUSE_TIMERS */
  52689. if( xReturn == pdPASS )
  52690. 80160ee: 697b ldr r3, [r7, #20]
  52691. 80160f0: 2b01 cmp r3, #1
  52692. 80160f2: d11b bne.n 801612c <vTaskStartScheduler+0x98>
  52693. __asm volatile
  52694. 80160f4: f04f 0350 mov.w r3, #80 @ 0x50
  52695. 80160f8: f383 8811 msr BASEPRI, r3
  52696. 80160fc: f3bf 8f6f isb sy
  52697. 8016100: f3bf 8f4f dsb sy
  52698. 8016104: 613b str r3, [r7, #16]
  52699. }
  52700. 8016106: bf00 nop
  52701. {
  52702. /* Switch Newlib's _impure_ptr variable to point to the _reent
  52703. structure specific to the task that will run first.
  52704. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52705. for additional information. */
  52706. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  52707. 8016108: 4b15 ldr r3, [pc, #84] @ (8016160 <vTaskStartScheduler+0xcc>)
  52708. 801610a: 681b ldr r3, [r3, #0]
  52709. 801610c: 3354 adds r3, #84 @ 0x54
  52710. 801610e: 4a15 ldr r2, [pc, #84] @ (8016164 <vTaskStartScheduler+0xd0>)
  52711. 8016110: 6013 str r3, [r2, #0]
  52712. }
  52713. #endif /* configUSE_NEWLIB_REENTRANT */
  52714. xNextTaskUnblockTime = portMAX_DELAY;
  52715. 8016112: 4b15 ldr r3, [pc, #84] @ (8016168 <vTaskStartScheduler+0xd4>)
  52716. 8016114: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52717. 8016118: 601a str r2, [r3, #0]
  52718. xSchedulerRunning = pdTRUE;
  52719. 801611a: 4b14 ldr r3, [pc, #80] @ (801616c <vTaskStartScheduler+0xd8>)
  52720. 801611c: 2201 movs r2, #1
  52721. 801611e: 601a str r2, [r3, #0]
  52722. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  52723. 8016120: 4b13 ldr r3, [pc, #76] @ (8016170 <vTaskStartScheduler+0xdc>)
  52724. 8016122: 2200 movs r2, #0
  52725. 8016124: 601a str r2, [r3, #0]
  52726. traceTASK_SWITCHED_IN();
  52727. /* Setting up the timer tick is hardware specific and thus in the
  52728. portable interface. */
  52729. if( xPortStartScheduler() != pdFALSE )
  52730. 8016126: f001 fd43 bl 8017bb0 <xPortStartScheduler>
  52731. }
  52732. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  52733. meaning xIdleTaskHandle is not used anywhere else. */
  52734. ( void ) xIdleTaskHandle;
  52735. }
  52736. 801612a: e00f b.n 801614c <vTaskStartScheduler+0xb8>
  52737. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  52738. 801612c: 697b ldr r3, [r7, #20]
  52739. 801612e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52740. 8016132: d10b bne.n 801614c <vTaskStartScheduler+0xb8>
  52741. __asm volatile
  52742. 8016134: f04f 0350 mov.w r3, #80 @ 0x50
  52743. 8016138: f383 8811 msr BASEPRI, r3
  52744. 801613c: f3bf 8f6f isb sy
  52745. 8016140: f3bf 8f4f dsb sy
  52746. 8016144: 60fb str r3, [r7, #12]
  52747. }
  52748. 8016146: bf00 nop
  52749. 8016148: bf00 nop
  52750. 801614a: e7fd b.n 8016148 <vTaskStartScheduler+0xb4>
  52751. }
  52752. 801614c: bf00 nop
  52753. 801614e: 3718 adds r7, #24
  52754. 8016150: 46bd mov sp, r7
  52755. 8016152: bd80 pop {r7, pc}
  52756. 8016154: 08018690 .word 0x08018690
  52757. 8016158: 08016811 .word 0x08016811
  52758. 801615c: 24002ef0 .word 0x24002ef0
  52759. 8016160: 240029f8 .word 0x240029f8
  52760. 8016164: 24000048 .word 0x24000048
  52761. 8016168: 24002eec .word 0x24002eec
  52762. 801616c: 24002ed8 .word 0x24002ed8
  52763. 8016170: 24002ed0 .word 0x24002ed0
  52764. 08016174 <vTaskSuspendAll>:
  52765. vPortEndScheduler();
  52766. }
  52767. /*----------------------------------------------------------*/
  52768. void vTaskSuspendAll( void )
  52769. {
  52770. 8016174: b480 push {r7}
  52771. 8016176: af00 add r7, sp, #0
  52772. do not otherwise exhibit real time behaviour. */
  52773. portSOFTWARE_BARRIER();
  52774. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  52775. is used to allow calls to vTaskSuspendAll() to nest. */
  52776. ++uxSchedulerSuspended;
  52777. 8016178: 4b04 ldr r3, [pc, #16] @ (801618c <vTaskSuspendAll+0x18>)
  52778. 801617a: 681b ldr r3, [r3, #0]
  52779. 801617c: 3301 adds r3, #1
  52780. 801617e: 4a03 ldr r2, [pc, #12] @ (801618c <vTaskSuspendAll+0x18>)
  52781. 8016180: 6013 str r3, [r2, #0]
  52782. /* Enforces ordering for ports and optimised compilers that may otherwise place
  52783. the above increment elsewhere. */
  52784. portMEMORY_BARRIER();
  52785. }
  52786. 8016182: bf00 nop
  52787. 8016184: 46bd mov sp, r7
  52788. 8016186: f85d 7b04 ldr.w r7, [sp], #4
  52789. 801618a: 4770 bx lr
  52790. 801618c: 24002ef4 .word 0x24002ef4
  52791. 08016190 <xTaskResumeAll>:
  52792. #endif /* configUSE_TICKLESS_IDLE */
  52793. /*----------------------------------------------------------*/
  52794. BaseType_t xTaskResumeAll( void )
  52795. {
  52796. 8016190: b580 push {r7, lr}
  52797. 8016192: b084 sub sp, #16
  52798. 8016194: af00 add r7, sp, #0
  52799. TCB_t *pxTCB = NULL;
  52800. 8016196: 2300 movs r3, #0
  52801. 8016198: 60fb str r3, [r7, #12]
  52802. BaseType_t xAlreadyYielded = pdFALSE;
  52803. 801619a: 2300 movs r3, #0
  52804. 801619c: 60bb str r3, [r7, #8]
  52805. /* If uxSchedulerSuspended is zero then this function does not match a
  52806. previous call to vTaskSuspendAll(). */
  52807. configASSERT( uxSchedulerSuspended );
  52808. 801619e: 4b42 ldr r3, [pc, #264] @ (80162a8 <xTaskResumeAll+0x118>)
  52809. 80161a0: 681b ldr r3, [r3, #0]
  52810. 80161a2: 2b00 cmp r3, #0
  52811. 80161a4: d10b bne.n 80161be <xTaskResumeAll+0x2e>
  52812. __asm volatile
  52813. 80161a6: f04f 0350 mov.w r3, #80 @ 0x50
  52814. 80161aa: f383 8811 msr BASEPRI, r3
  52815. 80161ae: f3bf 8f6f isb sy
  52816. 80161b2: f3bf 8f4f dsb sy
  52817. 80161b6: 603b str r3, [r7, #0]
  52818. }
  52819. 80161b8: bf00 nop
  52820. 80161ba: bf00 nop
  52821. 80161bc: e7fd b.n 80161ba <xTaskResumeAll+0x2a>
  52822. /* It is possible that an ISR caused a task to be removed from an event
  52823. list while the scheduler was suspended. If this was the case then the
  52824. removed task will have been added to the xPendingReadyList. Once the
  52825. scheduler has been resumed it is safe to move all the pending ready
  52826. tasks from this list into their appropriate ready list. */
  52827. taskENTER_CRITICAL();
  52828. 80161be: f001 fd9b bl 8017cf8 <vPortEnterCritical>
  52829. {
  52830. --uxSchedulerSuspended;
  52831. 80161c2: 4b39 ldr r3, [pc, #228] @ (80162a8 <xTaskResumeAll+0x118>)
  52832. 80161c4: 681b ldr r3, [r3, #0]
  52833. 80161c6: 3b01 subs r3, #1
  52834. 80161c8: 4a37 ldr r2, [pc, #220] @ (80162a8 <xTaskResumeAll+0x118>)
  52835. 80161ca: 6013 str r3, [r2, #0]
  52836. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52837. 80161cc: 4b36 ldr r3, [pc, #216] @ (80162a8 <xTaskResumeAll+0x118>)
  52838. 80161ce: 681b ldr r3, [r3, #0]
  52839. 80161d0: 2b00 cmp r3, #0
  52840. 80161d2: d162 bne.n 801629a <xTaskResumeAll+0x10a>
  52841. {
  52842. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  52843. 80161d4: 4b35 ldr r3, [pc, #212] @ (80162ac <xTaskResumeAll+0x11c>)
  52844. 80161d6: 681b ldr r3, [r3, #0]
  52845. 80161d8: 2b00 cmp r3, #0
  52846. 80161da: d05e beq.n 801629a <xTaskResumeAll+0x10a>
  52847. {
  52848. /* Move any readied tasks from the pending list into the
  52849. appropriate ready list. */
  52850. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52851. 80161dc: e02f b.n 801623e <xTaskResumeAll+0xae>
  52852. {
  52853. 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. */
  52854. 80161de: 4b34 ldr r3, [pc, #208] @ (80162b0 <xTaskResumeAll+0x120>)
  52855. 80161e0: 68db ldr r3, [r3, #12]
  52856. 80161e2: 68db ldr r3, [r3, #12]
  52857. 80161e4: 60fb str r3, [r7, #12]
  52858. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  52859. 80161e6: 68fb ldr r3, [r7, #12]
  52860. 80161e8: 3318 adds r3, #24
  52861. 80161ea: 4618 mov r0, r3
  52862. 80161ec: f7fe fbde bl 80149ac <uxListRemove>
  52863. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52864. 80161f0: 68fb ldr r3, [r7, #12]
  52865. 80161f2: 3304 adds r3, #4
  52866. 80161f4: 4618 mov r0, r3
  52867. 80161f6: f7fe fbd9 bl 80149ac <uxListRemove>
  52868. prvAddTaskToReadyList( pxTCB );
  52869. 80161fa: 68fb ldr r3, [r7, #12]
  52870. 80161fc: 6ada ldr r2, [r3, #44] @ 0x2c
  52871. 80161fe: 4b2d ldr r3, [pc, #180] @ (80162b4 <xTaskResumeAll+0x124>)
  52872. 8016200: 681b ldr r3, [r3, #0]
  52873. 8016202: 429a cmp r2, r3
  52874. 8016204: d903 bls.n 801620e <xTaskResumeAll+0x7e>
  52875. 8016206: 68fb ldr r3, [r7, #12]
  52876. 8016208: 6adb ldr r3, [r3, #44] @ 0x2c
  52877. 801620a: 4a2a ldr r2, [pc, #168] @ (80162b4 <xTaskResumeAll+0x124>)
  52878. 801620c: 6013 str r3, [r2, #0]
  52879. 801620e: 68fb ldr r3, [r7, #12]
  52880. 8016210: 6ada ldr r2, [r3, #44] @ 0x2c
  52881. 8016212: 4613 mov r3, r2
  52882. 8016214: 009b lsls r3, r3, #2
  52883. 8016216: 4413 add r3, r2
  52884. 8016218: 009b lsls r3, r3, #2
  52885. 801621a: 4a27 ldr r2, [pc, #156] @ (80162b8 <xTaskResumeAll+0x128>)
  52886. 801621c: 441a add r2, r3
  52887. 801621e: 68fb ldr r3, [r7, #12]
  52888. 8016220: 3304 adds r3, #4
  52889. 8016222: 4619 mov r1, r3
  52890. 8016224: 4610 mov r0, r2
  52891. 8016226: f7fe fb64 bl 80148f2 <vListInsertEnd>
  52892. /* If the moved task has a priority higher than the current
  52893. task then a yield must be performed. */
  52894. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  52895. 801622a: 68fb ldr r3, [r7, #12]
  52896. 801622c: 6ada ldr r2, [r3, #44] @ 0x2c
  52897. 801622e: 4b23 ldr r3, [pc, #140] @ (80162bc <xTaskResumeAll+0x12c>)
  52898. 8016230: 681b ldr r3, [r3, #0]
  52899. 8016232: 6adb ldr r3, [r3, #44] @ 0x2c
  52900. 8016234: 429a cmp r2, r3
  52901. 8016236: d302 bcc.n 801623e <xTaskResumeAll+0xae>
  52902. {
  52903. xYieldPending = pdTRUE;
  52904. 8016238: 4b21 ldr r3, [pc, #132] @ (80162c0 <xTaskResumeAll+0x130>)
  52905. 801623a: 2201 movs r2, #1
  52906. 801623c: 601a str r2, [r3, #0]
  52907. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  52908. 801623e: 4b1c ldr r3, [pc, #112] @ (80162b0 <xTaskResumeAll+0x120>)
  52909. 8016240: 681b ldr r3, [r3, #0]
  52910. 8016242: 2b00 cmp r3, #0
  52911. 8016244: d1cb bne.n 80161de <xTaskResumeAll+0x4e>
  52912. {
  52913. mtCOVERAGE_TEST_MARKER();
  52914. }
  52915. }
  52916. if( pxTCB != NULL )
  52917. 8016246: 68fb ldr r3, [r7, #12]
  52918. 8016248: 2b00 cmp r3, #0
  52919. 801624a: d001 beq.n 8016250 <xTaskResumeAll+0xc0>
  52920. which may have prevented the next unblock time from being
  52921. re-calculated, in which case re-calculate it now. Mainly
  52922. important for low power tickless implementations, where
  52923. this can prevent an unnecessary exit from low power
  52924. state. */
  52925. prvResetNextTaskUnblockTime();
  52926. 801624c: f000 fb9c bl 8016988 <prvResetNextTaskUnblockTime>
  52927. /* If any ticks occurred while the scheduler was suspended then
  52928. they should be processed now. This ensures the tick count does
  52929. not slip, and that any delayed tasks are resumed at the correct
  52930. time. */
  52931. {
  52932. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  52933. 8016250: 4b1c ldr r3, [pc, #112] @ (80162c4 <xTaskResumeAll+0x134>)
  52934. 8016252: 681b ldr r3, [r3, #0]
  52935. 8016254: 607b str r3, [r7, #4]
  52936. if( xPendedCounts > ( TickType_t ) 0U )
  52937. 8016256: 687b ldr r3, [r7, #4]
  52938. 8016258: 2b00 cmp r3, #0
  52939. 801625a: d010 beq.n 801627e <xTaskResumeAll+0xee>
  52940. {
  52941. do
  52942. {
  52943. if( xTaskIncrementTick() != pdFALSE )
  52944. 801625c: f000 f846 bl 80162ec <xTaskIncrementTick>
  52945. 8016260: 4603 mov r3, r0
  52946. 8016262: 2b00 cmp r3, #0
  52947. 8016264: d002 beq.n 801626c <xTaskResumeAll+0xdc>
  52948. {
  52949. xYieldPending = pdTRUE;
  52950. 8016266: 4b16 ldr r3, [pc, #88] @ (80162c0 <xTaskResumeAll+0x130>)
  52951. 8016268: 2201 movs r2, #1
  52952. 801626a: 601a str r2, [r3, #0]
  52953. }
  52954. else
  52955. {
  52956. mtCOVERAGE_TEST_MARKER();
  52957. }
  52958. --xPendedCounts;
  52959. 801626c: 687b ldr r3, [r7, #4]
  52960. 801626e: 3b01 subs r3, #1
  52961. 8016270: 607b str r3, [r7, #4]
  52962. } while( xPendedCounts > ( TickType_t ) 0U );
  52963. 8016272: 687b ldr r3, [r7, #4]
  52964. 8016274: 2b00 cmp r3, #0
  52965. 8016276: d1f1 bne.n 801625c <xTaskResumeAll+0xcc>
  52966. xPendedTicks = 0;
  52967. 8016278: 4b12 ldr r3, [pc, #72] @ (80162c4 <xTaskResumeAll+0x134>)
  52968. 801627a: 2200 movs r2, #0
  52969. 801627c: 601a str r2, [r3, #0]
  52970. {
  52971. mtCOVERAGE_TEST_MARKER();
  52972. }
  52973. }
  52974. if( xYieldPending != pdFALSE )
  52975. 801627e: 4b10 ldr r3, [pc, #64] @ (80162c0 <xTaskResumeAll+0x130>)
  52976. 8016280: 681b ldr r3, [r3, #0]
  52977. 8016282: 2b00 cmp r3, #0
  52978. 8016284: d009 beq.n 801629a <xTaskResumeAll+0x10a>
  52979. {
  52980. #if( configUSE_PREEMPTION != 0 )
  52981. {
  52982. xAlreadyYielded = pdTRUE;
  52983. 8016286: 2301 movs r3, #1
  52984. 8016288: 60bb str r3, [r7, #8]
  52985. }
  52986. #endif
  52987. taskYIELD_IF_USING_PREEMPTION();
  52988. 801628a: 4b0f ldr r3, [pc, #60] @ (80162c8 <xTaskResumeAll+0x138>)
  52989. 801628c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52990. 8016290: 601a str r2, [r3, #0]
  52991. 8016292: f3bf 8f4f dsb sy
  52992. 8016296: f3bf 8f6f isb sy
  52993. else
  52994. {
  52995. mtCOVERAGE_TEST_MARKER();
  52996. }
  52997. }
  52998. taskEXIT_CRITICAL();
  52999. 801629a: f001 fd5f bl 8017d5c <vPortExitCritical>
  53000. return xAlreadyYielded;
  53001. 801629e: 68bb ldr r3, [r7, #8]
  53002. }
  53003. 80162a0: 4618 mov r0, r3
  53004. 80162a2: 3710 adds r7, #16
  53005. 80162a4: 46bd mov sp, r7
  53006. 80162a6: bd80 pop {r7, pc}
  53007. 80162a8: 24002ef4 .word 0x24002ef4
  53008. 80162ac: 24002ecc .word 0x24002ecc
  53009. 80162b0: 24002e8c .word 0x24002e8c
  53010. 80162b4: 24002ed4 .word 0x24002ed4
  53011. 80162b8: 240029fc .word 0x240029fc
  53012. 80162bc: 240029f8 .word 0x240029f8
  53013. 80162c0: 24002ee0 .word 0x24002ee0
  53014. 80162c4: 24002edc .word 0x24002edc
  53015. 80162c8: e000ed04 .word 0xe000ed04
  53016. 080162cc <xTaskGetTickCount>:
  53017. /*-----------------------------------------------------------*/
  53018. TickType_t xTaskGetTickCount( void )
  53019. {
  53020. 80162cc: b480 push {r7}
  53021. 80162ce: b083 sub sp, #12
  53022. 80162d0: af00 add r7, sp, #0
  53023. TickType_t xTicks;
  53024. /* Critical section required if running on a 16 bit processor. */
  53025. portTICK_TYPE_ENTER_CRITICAL();
  53026. {
  53027. xTicks = xTickCount;
  53028. 80162d2: 4b05 ldr r3, [pc, #20] @ (80162e8 <xTaskGetTickCount+0x1c>)
  53029. 80162d4: 681b ldr r3, [r3, #0]
  53030. 80162d6: 607b str r3, [r7, #4]
  53031. }
  53032. portTICK_TYPE_EXIT_CRITICAL();
  53033. return xTicks;
  53034. 80162d8: 687b ldr r3, [r7, #4]
  53035. }
  53036. 80162da: 4618 mov r0, r3
  53037. 80162dc: 370c adds r7, #12
  53038. 80162de: 46bd mov sp, r7
  53039. 80162e0: f85d 7b04 ldr.w r7, [sp], #4
  53040. 80162e4: 4770 bx lr
  53041. 80162e6: bf00 nop
  53042. 80162e8: 24002ed0 .word 0x24002ed0
  53043. 080162ec <xTaskIncrementTick>:
  53044. #endif /* INCLUDE_xTaskAbortDelay */
  53045. /*----------------------------------------------------------*/
  53046. BaseType_t xTaskIncrementTick( void )
  53047. {
  53048. 80162ec: b580 push {r7, lr}
  53049. 80162ee: b086 sub sp, #24
  53050. 80162f0: af00 add r7, sp, #0
  53051. TCB_t * pxTCB;
  53052. TickType_t xItemValue;
  53053. BaseType_t xSwitchRequired = pdFALSE;
  53054. 80162f2: 2300 movs r3, #0
  53055. 80162f4: 617b str r3, [r7, #20]
  53056. /* Called by the portable layer each time a tick interrupt occurs.
  53057. Increments the tick then checks to see if the new tick value will cause any
  53058. tasks to be unblocked. */
  53059. traceTASK_INCREMENT_TICK( xTickCount );
  53060. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53061. 80162f6: 4b4f ldr r3, [pc, #316] @ (8016434 <xTaskIncrementTick+0x148>)
  53062. 80162f8: 681b ldr r3, [r3, #0]
  53063. 80162fa: 2b00 cmp r3, #0
  53064. 80162fc: f040 8090 bne.w 8016420 <xTaskIncrementTick+0x134>
  53065. {
  53066. /* Minor optimisation. The tick count cannot change in this
  53067. block. */
  53068. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  53069. 8016300: 4b4d ldr r3, [pc, #308] @ (8016438 <xTaskIncrementTick+0x14c>)
  53070. 8016302: 681b ldr r3, [r3, #0]
  53071. 8016304: 3301 adds r3, #1
  53072. 8016306: 613b str r3, [r7, #16]
  53073. /* Increment the RTOS tick, switching the delayed and overflowed
  53074. delayed lists if it wraps to 0. */
  53075. xTickCount = xConstTickCount;
  53076. 8016308: 4a4b ldr r2, [pc, #300] @ (8016438 <xTaskIncrementTick+0x14c>)
  53077. 801630a: 693b ldr r3, [r7, #16]
  53078. 801630c: 6013 str r3, [r2, #0]
  53079. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  53080. 801630e: 693b ldr r3, [r7, #16]
  53081. 8016310: 2b00 cmp r3, #0
  53082. 8016312: d121 bne.n 8016358 <xTaskIncrementTick+0x6c>
  53083. {
  53084. taskSWITCH_DELAYED_LISTS();
  53085. 8016314: 4b49 ldr r3, [pc, #292] @ (801643c <xTaskIncrementTick+0x150>)
  53086. 8016316: 681b ldr r3, [r3, #0]
  53087. 8016318: 681b ldr r3, [r3, #0]
  53088. 801631a: 2b00 cmp r3, #0
  53089. 801631c: d00b beq.n 8016336 <xTaskIncrementTick+0x4a>
  53090. __asm volatile
  53091. 801631e: f04f 0350 mov.w r3, #80 @ 0x50
  53092. 8016322: f383 8811 msr BASEPRI, r3
  53093. 8016326: f3bf 8f6f isb sy
  53094. 801632a: f3bf 8f4f dsb sy
  53095. 801632e: 603b str r3, [r7, #0]
  53096. }
  53097. 8016330: bf00 nop
  53098. 8016332: bf00 nop
  53099. 8016334: e7fd b.n 8016332 <xTaskIncrementTick+0x46>
  53100. 8016336: 4b41 ldr r3, [pc, #260] @ (801643c <xTaskIncrementTick+0x150>)
  53101. 8016338: 681b ldr r3, [r3, #0]
  53102. 801633a: 60fb str r3, [r7, #12]
  53103. 801633c: 4b40 ldr r3, [pc, #256] @ (8016440 <xTaskIncrementTick+0x154>)
  53104. 801633e: 681b ldr r3, [r3, #0]
  53105. 8016340: 4a3e ldr r2, [pc, #248] @ (801643c <xTaskIncrementTick+0x150>)
  53106. 8016342: 6013 str r3, [r2, #0]
  53107. 8016344: 4a3e ldr r2, [pc, #248] @ (8016440 <xTaskIncrementTick+0x154>)
  53108. 8016346: 68fb ldr r3, [r7, #12]
  53109. 8016348: 6013 str r3, [r2, #0]
  53110. 801634a: 4b3e ldr r3, [pc, #248] @ (8016444 <xTaskIncrementTick+0x158>)
  53111. 801634c: 681b ldr r3, [r3, #0]
  53112. 801634e: 3301 adds r3, #1
  53113. 8016350: 4a3c ldr r2, [pc, #240] @ (8016444 <xTaskIncrementTick+0x158>)
  53114. 8016352: 6013 str r3, [r2, #0]
  53115. 8016354: f000 fb18 bl 8016988 <prvResetNextTaskUnblockTime>
  53116. /* See if this tick has made a timeout expire. Tasks are stored in
  53117. the queue in the order of their wake time - meaning once one task
  53118. has been found whose block time has not expired there is no need to
  53119. look any further down the list. */
  53120. if( xConstTickCount >= xNextTaskUnblockTime )
  53121. 8016358: 4b3b ldr r3, [pc, #236] @ (8016448 <xTaskIncrementTick+0x15c>)
  53122. 801635a: 681b ldr r3, [r3, #0]
  53123. 801635c: 693a ldr r2, [r7, #16]
  53124. 801635e: 429a cmp r2, r3
  53125. 8016360: d349 bcc.n 80163f6 <xTaskIncrementTick+0x10a>
  53126. {
  53127. for( ;; )
  53128. {
  53129. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53130. 8016362: 4b36 ldr r3, [pc, #216] @ (801643c <xTaskIncrementTick+0x150>)
  53131. 8016364: 681b ldr r3, [r3, #0]
  53132. 8016366: 681b ldr r3, [r3, #0]
  53133. 8016368: 2b00 cmp r3, #0
  53134. 801636a: d104 bne.n 8016376 <xTaskIncrementTick+0x8a>
  53135. /* The delayed list is empty. Set xNextTaskUnblockTime
  53136. to the maximum possible value so it is extremely
  53137. unlikely that the
  53138. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  53139. next time through. */
  53140. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53141. 801636c: 4b36 ldr r3, [pc, #216] @ (8016448 <xTaskIncrementTick+0x15c>)
  53142. 801636e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  53143. 8016372: 601a str r2, [r3, #0]
  53144. break;
  53145. 8016374: e03f b.n 80163f6 <xTaskIncrementTick+0x10a>
  53146. {
  53147. /* The delayed list is not empty, get the value of the
  53148. item at the head of the delayed list. This is the time
  53149. at which the task at the head of the delayed list must
  53150. be removed from the Blocked state. */
  53151. 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. */
  53152. 8016376: 4b31 ldr r3, [pc, #196] @ (801643c <xTaskIncrementTick+0x150>)
  53153. 8016378: 681b ldr r3, [r3, #0]
  53154. 801637a: 68db ldr r3, [r3, #12]
  53155. 801637c: 68db ldr r3, [r3, #12]
  53156. 801637e: 60bb str r3, [r7, #8]
  53157. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  53158. 8016380: 68bb ldr r3, [r7, #8]
  53159. 8016382: 685b ldr r3, [r3, #4]
  53160. 8016384: 607b str r3, [r7, #4]
  53161. if( xConstTickCount < xItemValue )
  53162. 8016386: 693a ldr r2, [r7, #16]
  53163. 8016388: 687b ldr r3, [r7, #4]
  53164. 801638a: 429a cmp r2, r3
  53165. 801638c: d203 bcs.n 8016396 <xTaskIncrementTick+0xaa>
  53166. /* It is not time to unblock this item yet, but the
  53167. item value is the time at which the task at the head
  53168. of the blocked list must be removed from the Blocked
  53169. state - so record the item value in
  53170. xNextTaskUnblockTime. */
  53171. xNextTaskUnblockTime = xItemValue;
  53172. 801638e: 4a2e ldr r2, [pc, #184] @ (8016448 <xTaskIncrementTick+0x15c>)
  53173. 8016390: 687b ldr r3, [r7, #4]
  53174. 8016392: 6013 str r3, [r2, #0]
  53175. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  53176. 8016394: e02f b.n 80163f6 <xTaskIncrementTick+0x10a>
  53177. {
  53178. mtCOVERAGE_TEST_MARKER();
  53179. }
  53180. /* It is time to remove the item from the Blocked state. */
  53181. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53182. 8016396: 68bb ldr r3, [r7, #8]
  53183. 8016398: 3304 adds r3, #4
  53184. 801639a: 4618 mov r0, r3
  53185. 801639c: f7fe fb06 bl 80149ac <uxListRemove>
  53186. /* Is the task waiting on an event also? If so remove
  53187. it from the event list. */
  53188. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  53189. 80163a0: 68bb ldr r3, [r7, #8]
  53190. 80163a2: 6a9b ldr r3, [r3, #40] @ 0x28
  53191. 80163a4: 2b00 cmp r3, #0
  53192. 80163a6: d004 beq.n 80163b2 <xTaskIncrementTick+0xc6>
  53193. {
  53194. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  53195. 80163a8: 68bb ldr r3, [r7, #8]
  53196. 80163aa: 3318 adds r3, #24
  53197. 80163ac: 4618 mov r0, r3
  53198. 80163ae: f7fe fafd bl 80149ac <uxListRemove>
  53199. mtCOVERAGE_TEST_MARKER();
  53200. }
  53201. /* Place the unblocked task into the appropriate ready
  53202. list. */
  53203. prvAddTaskToReadyList( pxTCB );
  53204. 80163b2: 68bb ldr r3, [r7, #8]
  53205. 80163b4: 6ada ldr r2, [r3, #44] @ 0x2c
  53206. 80163b6: 4b25 ldr r3, [pc, #148] @ (801644c <xTaskIncrementTick+0x160>)
  53207. 80163b8: 681b ldr r3, [r3, #0]
  53208. 80163ba: 429a cmp r2, r3
  53209. 80163bc: d903 bls.n 80163c6 <xTaskIncrementTick+0xda>
  53210. 80163be: 68bb ldr r3, [r7, #8]
  53211. 80163c0: 6adb ldr r3, [r3, #44] @ 0x2c
  53212. 80163c2: 4a22 ldr r2, [pc, #136] @ (801644c <xTaskIncrementTick+0x160>)
  53213. 80163c4: 6013 str r3, [r2, #0]
  53214. 80163c6: 68bb ldr r3, [r7, #8]
  53215. 80163c8: 6ada ldr r2, [r3, #44] @ 0x2c
  53216. 80163ca: 4613 mov r3, r2
  53217. 80163cc: 009b lsls r3, r3, #2
  53218. 80163ce: 4413 add r3, r2
  53219. 80163d0: 009b lsls r3, r3, #2
  53220. 80163d2: 4a1f ldr r2, [pc, #124] @ (8016450 <xTaskIncrementTick+0x164>)
  53221. 80163d4: 441a add r2, r3
  53222. 80163d6: 68bb ldr r3, [r7, #8]
  53223. 80163d8: 3304 adds r3, #4
  53224. 80163da: 4619 mov r1, r3
  53225. 80163dc: 4610 mov r0, r2
  53226. 80163de: f7fe fa88 bl 80148f2 <vListInsertEnd>
  53227. {
  53228. /* Preemption is on, but a context switch should
  53229. only be performed if the unblocked task has a
  53230. priority that is equal to or higher than the
  53231. currently executing task. */
  53232. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  53233. 80163e2: 68bb ldr r3, [r7, #8]
  53234. 80163e4: 6ada ldr r2, [r3, #44] @ 0x2c
  53235. 80163e6: 4b1b ldr r3, [pc, #108] @ (8016454 <xTaskIncrementTick+0x168>)
  53236. 80163e8: 681b ldr r3, [r3, #0]
  53237. 80163ea: 6adb ldr r3, [r3, #44] @ 0x2c
  53238. 80163ec: 429a cmp r2, r3
  53239. 80163ee: d3b8 bcc.n 8016362 <xTaskIncrementTick+0x76>
  53240. {
  53241. xSwitchRequired = pdTRUE;
  53242. 80163f0: 2301 movs r3, #1
  53243. 80163f2: 617b str r3, [r7, #20]
  53244. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  53245. 80163f4: e7b5 b.n 8016362 <xTaskIncrementTick+0x76>
  53246. /* Tasks of equal priority to the currently running task will share
  53247. processing time (time slice) if preemption is on, and the application
  53248. writer has not explicitly turned time slicing off. */
  53249. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  53250. {
  53251. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  53252. 80163f6: 4b17 ldr r3, [pc, #92] @ (8016454 <xTaskIncrementTick+0x168>)
  53253. 80163f8: 681b ldr r3, [r3, #0]
  53254. 80163fa: 6ada ldr r2, [r3, #44] @ 0x2c
  53255. 80163fc: 4914 ldr r1, [pc, #80] @ (8016450 <xTaskIncrementTick+0x164>)
  53256. 80163fe: 4613 mov r3, r2
  53257. 8016400: 009b lsls r3, r3, #2
  53258. 8016402: 4413 add r3, r2
  53259. 8016404: 009b lsls r3, r3, #2
  53260. 8016406: 440b add r3, r1
  53261. 8016408: 681b ldr r3, [r3, #0]
  53262. 801640a: 2b01 cmp r3, #1
  53263. 801640c: d901 bls.n 8016412 <xTaskIncrementTick+0x126>
  53264. {
  53265. xSwitchRequired = pdTRUE;
  53266. 801640e: 2301 movs r3, #1
  53267. 8016410: 617b str r3, [r7, #20]
  53268. }
  53269. #endif /* configUSE_TICK_HOOK */
  53270. #if ( configUSE_PREEMPTION == 1 )
  53271. {
  53272. if( xYieldPending != pdFALSE )
  53273. 8016412: 4b11 ldr r3, [pc, #68] @ (8016458 <xTaskIncrementTick+0x16c>)
  53274. 8016414: 681b ldr r3, [r3, #0]
  53275. 8016416: 2b00 cmp r3, #0
  53276. 8016418: d007 beq.n 801642a <xTaskIncrementTick+0x13e>
  53277. {
  53278. xSwitchRequired = pdTRUE;
  53279. 801641a: 2301 movs r3, #1
  53280. 801641c: 617b str r3, [r7, #20]
  53281. 801641e: e004 b.n 801642a <xTaskIncrementTick+0x13e>
  53282. }
  53283. #endif /* configUSE_PREEMPTION */
  53284. }
  53285. else
  53286. {
  53287. ++xPendedTicks;
  53288. 8016420: 4b0e ldr r3, [pc, #56] @ (801645c <xTaskIncrementTick+0x170>)
  53289. 8016422: 681b ldr r3, [r3, #0]
  53290. 8016424: 3301 adds r3, #1
  53291. 8016426: 4a0d ldr r2, [pc, #52] @ (801645c <xTaskIncrementTick+0x170>)
  53292. 8016428: 6013 str r3, [r2, #0]
  53293. vApplicationTickHook();
  53294. }
  53295. #endif
  53296. }
  53297. return xSwitchRequired;
  53298. 801642a: 697b ldr r3, [r7, #20]
  53299. }
  53300. 801642c: 4618 mov r0, r3
  53301. 801642e: 3718 adds r7, #24
  53302. 8016430: 46bd mov sp, r7
  53303. 8016432: bd80 pop {r7, pc}
  53304. 8016434: 24002ef4 .word 0x24002ef4
  53305. 8016438: 24002ed0 .word 0x24002ed0
  53306. 801643c: 24002e84 .word 0x24002e84
  53307. 8016440: 24002e88 .word 0x24002e88
  53308. 8016444: 24002ee4 .word 0x24002ee4
  53309. 8016448: 24002eec .word 0x24002eec
  53310. 801644c: 24002ed4 .word 0x24002ed4
  53311. 8016450: 240029fc .word 0x240029fc
  53312. 8016454: 240029f8 .word 0x240029f8
  53313. 8016458: 24002ee0 .word 0x24002ee0
  53314. 801645c: 24002edc .word 0x24002edc
  53315. 08016460 <vTaskSwitchContext>:
  53316. #endif /* configUSE_APPLICATION_TASK_TAG */
  53317. /*-----------------------------------------------------------*/
  53318. void vTaskSwitchContext( void )
  53319. {
  53320. 8016460: b580 push {r7, lr}
  53321. 8016462: b084 sub sp, #16
  53322. 8016464: af00 add r7, sp, #0
  53323. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  53324. 8016466: 4b32 ldr r3, [pc, #200] @ (8016530 <vTaskSwitchContext+0xd0>)
  53325. 8016468: 681b ldr r3, [r3, #0]
  53326. 801646a: 2b00 cmp r3, #0
  53327. 801646c: d003 beq.n 8016476 <vTaskSwitchContext+0x16>
  53328. {
  53329. /* The scheduler is currently suspended - do not allow a context
  53330. switch. */
  53331. xYieldPending = pdTRUE;
  53332. 801646e: 4b31 ldr r3, [pc, #196] @ (8016534 <vTaskSwitchContext+0xd4>)
  53333. 8016470: 2201 movs r2, #1
  53334. 8016472: 601a str r2, [r3, #0]
  53335. for additional information. */
  53336. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53337. }
  53338. #endif /* configUSE_NEWLIB_REENTRANT */
  53339. }
  53340. }
  53341. 8016474: e058 b.n 8016528 <vTaskSwitchContext+0xc8>
  53342. xYieldPending = pdFALSE;
  53343. 8016476: 4b2f ldr r3, [pc, #188] @ (8016534 <vTaskSwitchContext+0xd4>)
  53344. 8016478: 2200 movs r2, #0
  53345. 801647a: 601a str r2, [r3, #0]
  53346. taskCHECK_FOR_STACK_OVERFLOW();
  53347. 801647c: 4b2e ldr r3, [pc, #184] @ (8016538 <vTaskSwitchContext+0xd8>)
  53348. 801647e: 681b ldr r3, [r3, #0]
  53349. 8016480: 681a ldr r2, [r3, #0]
  53350. 8016482: 4b2d ldr r3, [pc, #180] @ (8016538 <vTaskSwitchContext+0xd8>)
  53351. 8016484: 681b ldr r3, [r3, #0]
  53352. 8016486: 6b1b ldr r3, [r3, #48] @ 0x30
  53353. 8016488: 429a cmp r2, r3
  53354. 801648a: d808 bhi.n 801649e <vTaskSwitchContext+0x3e>
  53355. 801648c: 4b2a ldr r3, [pc, #168] @ (8016538 <vTaskSwitchContext+0xd8>)
  53356. 801648e: 681a ldr r2, [r3, #0]
  53357. 8016490: 4b29 ldr r3, [pc, #164] @ (8016538 <vTaskSwitchContext+0xd8>)
  53358. 8016492: 681b ldr r3, [r3, #0]
  53359. 8016494: 3334 adds r3, #52 @ 0x34
  53360. 8016496: 4619 mov r1, r3
  53361. 8016498: 4610 mov r0, r2
  53362. 801649a: f7ea f899 bl 80005d0 <vApplicationStackOverflowHook>
  53363. 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. */
  53364. 801649e: 4b27 ldr r3, [pc, #156] @ (801653c <vTaskSwitchContext+0xdc>)
  53365. 80164a0: 681b ldr r3, [r3, #0]
  53366. 80164a2: 60fb str r3, [r7, #12]
  53367. 80164a4: e011 b.n 80164ca <vTaskSwitchContext+0x6a>
  53368. 80164a6: 68fb ldr r3, [r7, #12]
  53369. 80164a8: 2b00 cmp r3, #0
  53370. 80164aa: d10b bne.n 80164c4 <vTaskSwitchContext+0x64>
  53371. __asm volatile
  53372. 80164ac: f04f 0350 mov.w r3, #80 @ 0x50
  53373. 80164b0: f383 8811 msr BASEPRI, r3
  53374. 80164b4: f3bf 8f6f isb sy
  53375. 80164b8: f3bf 8f4f dsb sy
  53376. 80164bc: 607b str r3, [r7, #4]
  53377. }
  53378. 80164be: bf00 nop
  53379. 80164c0: bf00 nop
  53380. 80164c2: e7fd b.n 80164c0 <vTaskSwitchContext+0x60>
  53381. 80164c4: 68fb ldr r3, [r7, #12]
  53382. 80164c6: 3b01 subs r3, #1
  53383. 80164c8: 60fb str r3, [r7, #12]
  53384. 80164ca: 491d ldr r1, [pc, #116] @ (8016540 <vTaskSwitchContext+0xe0>)
  53385. 80164cc: 68fa ldr r2, [r7, #12]
  53386. 80164ce: 4613 mov r3, r2
  53387. 80164d0: 009b lsls r3, r3, #2
  53388. 80164d2: 4413 add r3, r2
  53389. 80164d4: 009b lsls r3, r3, #2
  53390. 80164d6: 440b add r3, r1
  53391. 80164d8: 681b ldr r3, [r3, #0]
  53392. 80164da: 2b00 cmp r3, #0
  53393. 80164dc: d0e3 beq.n 80164a6 <vTaskSwitchContext+0x46>
  53394. 80164de: 68fa ldr r2, [r7, #12]
  53395. 80164e0: 4613 mov r3, r2
  53396. 80164e2: 009b lsls r3, r3, #2
  53397. 80164e4: 4413 add r3, r2
  53398. 80164e6: 009b lsls r3, r3, #2
  53399. 80164e8: 4a15 ldr r2, [pc, #84] @ (8016540 <vTaskSwitchContext+0xe0>)
  53400. 80164ea: 4413 add r3, r2
  53401. 80164ec: 60bb str r3, [r7, #8]
  53402. 80164ee: 68bb ldr r3, [r7, #8]
  53403. 80164f0: 685b ldr r3, [r3, #4]
  53404. 80164f2: 685a ldr r2, [r3, #4]
  53405. 80164f4: 68bb ldr r3, [r7, #8]
  53406. 80164f6: 605a str r2, [r3, #4]
  53407. 80164f8: 68bb ldr r3, [r7, #8]
  53408. 80164fa: 685a ldr r2, [r3, #4]
  53409. 80164fc: 68bb ldr r3, [r7, #8]
  53410. 80164fe: 3308 adds r3, #8
  53411. 8016500: 429a cmp r2, r3
  53412. 8016502: d104 bne.n 801650e <vTaskSwitchContext+0xae>
  53413. 8016504: 68bb ldr r3, [r7, #8]
  53414. 8016506: 685b ldr r3, [r3, #4]
  53415. 8016508: 685a ldr r2, [r3, #4]
  53416. 801650a: 68bb ldr r3, [r7, #8]
  53417. 801650c: 605a str r2, [r3, #4]
  53418. 801650e: 68bb ldr r3, [r7, #8]
  53419. 8016510: 685b ldr r3, [r3, #4]
  53420. 8016512: 68db ldr r3, [r3, #12]
  53421. 8016514: 4a08 ldr r2, [pc, #32] @ (8016538 <vTaskSwitchContext+0xd8>)
  53422. 8016516: 6013 str r3, [r2, #0]
  53423. 8016518: 4a08 ldr r2, [pc, #32] @ (801653c <vTaskSwitchContext+0xdc>)
  53424. 801651a: 68fb ldr r3, [r7, #12]
  53425. 801651c: 6013 str r3, [r2, #0]
  53426. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  53427. 801651e: 4b06 ldr r3, [pc, #24] @ (8016538 <vTaskSwitchContext+0xd8>)
  53428. 8016520: 681b ldr r3, [r3, #0]
  53429. 8016522: 3354 adds r3, #84 @ 0x54
  53430. 8016524: 4a07 ldr r2, [pc, #28] @ (8016544 <vTaskSwitchContext+0xe4>)
  53431. 8016526: 6013 str r3, [r2, #0]
  53432. }
  53433. 8016528: bf00 nop
  53434. 801652a: 3710 adds r7, #16
  53435. 801652c: 46bd mov sp, r7
  53436. 801652e: bd80 pop {r7, pc}
  53437. 8016530: 24002ef4 .word 0x24002ef4
  53438. 8016534: 24002ee0 .word 0x24002ee0
  53439. 8016538: 240029f8 .word 0x240029f8
  53440. 801653c: 24002ed4 .word 0x24002ed4
  53441. 8016540: 240029fc .word 0x240029fc
  53442. 8016544: 24000048 .word 0x24000048
  53443. 08016548 <vTaskPlaceOnEventList>:
  53444. /*-----------------------------------------------------------*/
  53445. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  53446. {
  53447. 8016548: b580 push {r7, lr}
  53448. 801654a: b084 sub sp, #16
  53449. 801654c: af00 add r7, sp, #0
  53450. 801654e: 6078 str r0, [r7, #4]
  53451. 8016550: 6039 str r1, [r7, #0]
  53452. configASSERT( pxEventList );
  53453. 8016552: 687b ldr r3, [r7, #4]
  53454. 8016554: 2b00 cmp r3, #0
  53455. 8016556: d10b bne.n 8016570 <vTaskPlaceOnEventList+0x28>
  53456. __asm volatile
  53457. 8016558: f04f 0350 mov.w r3, #80 @ 0x50
  53458. 801655c: f383 8811 msr BASEPRI, r3
  53459. 8016560: f3bf 8f6f isb sy
  53460. 8016564: f3bf 8f4f dsb sy
  53461. 8016568: 60fb str r3, [r7, #12]
  53462. }
  53463. 801656a: bf00 nop
  53464. 801656c: bf00 nop
  53465. 801656e: e7fd b.n 801656c <vTaskPlaceOnEventList+0x24>
  53466. /* Place the event list item of the TCB in the appropriate event list.
  53467. This is placed in the list in priority order so the highest priority task
  53468. is the first to be woken by the event. The queue that contains the event
  53469. list is locked, preventing simultaneous access from interrupts. */
  53470. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53471. 8016570: 4b07 ldr r3, [pc, #28] @ (8016590 <vTaskPlaceOnEventList+0x48>)
  53472. 8016572: 681b ldr r3, [r3, #0]
  53473. 8016574: 3318 adds r3, #24
  53474. 8016576: 4619 mov r1, r3
  53475. 8016578: 6878 ldr r0, [r7, #4]
  53476. 801657a: f7fe f9de bl 801493a <vListInsert>
  53477. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53478. 801657e: 2101 movs r1, #1
  53479. 8016580: 6838 ldr r0, [r7, #0]
  53480. 8016582: f000 fded bl 8017160 <prvAddCurrentTaskToDelayedList>
  53481. }
  53482. 8016586: bf00 nop
  53483. 8016588: 3710 adds r7, #16
  53484. 801658a: 46bd mov sp, r7
  53485. 801658c: bd80 pop {r7, pc}
  53486. 801658e: bf00 nop
  53487. 8016590: 240029f8 .word 0x240029f8
  53488. 08016594 <vTaskPlaceOnEventListRestricted>:
  53489. /*-----------------------------------------------------------*/
  53490. #if( configUSE_TIMERS == 1 )
  53491. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  53492. {
  53493. 8016594: b580 push {r7, lr}
  53494. 8016596: b086 sub sp, #24
  53495. 8016598: af00 add r7, sp, #0
  53496. 801659a: 60f8 str r0, [r7, #12]
  53497. 801659c: 60b9 str r1, [r7, #8]
  53498. 801659e: 607a str r2, [r7, #4]
  53499. configASSERT( pxEventList );
  53500. 80165a0: 68fb ldr r3, [r7, #12]
  53501. 80165a2: 2b00 cmp r3, #0
  53502. 80165a4: d10b bne.n 80165be <vTaskPlaceOnEventListRestricted+0x2a>
  53503. __asm volatile
  53504. 80165a6: f04f 0350 mov.w r3, #80 @ 0x50
  53505. 80165aa: f383 8811 msr BASEPRI, r3
  53506. 80165ae: f3bf 8f6f isb sy
  53507. 80165b2: f3bf 8f4f dsb sy
  53508. 80165b6: 617b str r3, [r7, #20]
  53509. }
  53510. 80165b8: bf00 nop
  53511. 80165ba: bf00 nop
  53512. 80165bc: e7fd b.n 80165ba <vTaskPlaceOnEventListRestricted+0x26>
  53513. /* Place the event list item of the TCB in the appropriate event list.
  53514. In this case it is assume that this is the only task that is going to
  53515. be waiting on this event list, so the faster vListInsertEnd() function
  53516. can be used in place of vListInsert. */
  53517. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  53518. 80165be: 4b0a ldr r3, [pc, #40] @ (80165e8 <vTaskPlaceOnEventListRestricted+0x54>)
  53519. 80165c0: 681b ldr r3, [r3, #0]
  53520. 80165c2: 3318 adds r3, #24
  53521. 80165c4: 4619 mov r1, r3
  53522. 80165c6: 68f8 ldr r0, [r7, #12]
  53523. 80165c8: f7fe f993 bl 80148f2 <vListInsertEnd>
  53524. /* If the task should block indefinitely then set the block time to a
  53525. value that will be recognised as an indefinite delay inside the
  53526. prvAddCurrentTaskToDelayedList() function. */
  53527. if( xWaitIndefinitely != pdFALSE )
  53528. 80165cc: 687b ldr r3, [r7, #4]
  53529. 80165ce: 2b00 cmp r3, #0
  53530. 80165d0: d002 beq.n 80165d8 <vTaskPlaceOnEventListRestricted+0x44>
  53531. {
  53532. xTicksToWait = portMAX_DELAY;
  53533. 80165d2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  53534. 80165d6: 60bb str r3, [r7, #8]
  53535. }
  53536. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  53537. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  53538. 80165d8: 6879 ldr r1, [r7, #4]
  53539. 80165da: 68b8 ldr r0, [r7, #8]
  53540. 80165dc: f000 fdc0 bl 8017160 <prvAddCurrentTaskToDelayedList>
  53541. }
  53542. 80165e0: bf00 nop
  53543. 80165e2: 3718 adds r7, #24
  53544. 80165e4: 46bd mov sp, r7
  53545. 80165e6: bd80 pop {r7, pc}
  53546. 80165e8: 240029f8 .word 0x240029f8
  53547. 080165ec <xTaskRemoveFromEventList>:
  53548. #endif /* configUSE_TIMERS */
  53549. /*-----------------------------------------------------------*/
  53550. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  53551. {
  53552. 80165ec: b580 push {r7, lr}
  53553. 80165ee: b086 sub sp, #24
  53554. 80165f0: af00 add r7, sp, #0
  53555. 80165f2: 6078 str r0, [r7, #4]
  53556. get called - the lock count on the queue will get modified instead. This
  53557. means exclusive access to the event list is guaranteed here.
  53558. This function assumes that a check has already been made to ensure that
  53559. pxEventList is not empty. */
  53560. 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. */
  53561. 80165f4: 687b ldr r3, [r7, #4]
  53562. 80165f6: 68db ldr r3, [r3, #12]
  53563. 80165f8: 68db ldr r3, [r3, #12]
  53564. 80165fa: 613b str r3, [r7, #16]
  53565. configASSERT( pxUnblockedTCB );
  53566. 80165fc: 693b ldr r3, [r7, #16]
  53567. 80165fe: 2b00 cmp r3, #0
  53568. 8016600: d10b bne.n 801661a <xTaskRemoveFromEventList+0x2e>
  53569. __asm volatile
  53570. 8016602: f04f 0350 mov.w r3, #80 @ 0x50
  53571. 8016606: f383 8811 msr BASEPRI, r3
  53572. 801660a: f3bf 8f6f isb sy
  53573. 801660e: f3bf 8f4f dsb sy
  53574. 8016612: 60fb str r3, [r7, #12]
  53575. }
  53576. 8016614: bf00 nop
  53577. 8016616: bf00 nop
  53578. 8016618: e7fd b.n 8016616 <xTaskRemoveFromEventList+0x2a>
  53579. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  53580. 801661a: 693b ldr r3, [r7, #16]
  53581. 801661c: 3318 adds r3, #24
  53582. 801661e: 4618 mov r0, r3
  53583. 8016620: f7fe f9c4 bl 80149ac <uxListRemove>
  53584. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53585. 8016624: 4b1d ldr r3, [pc, #116] @ (801669c <xTaskRemoveFromEventList+0xb0>)
  53586. 8016626: 681b ldr r3, [r3, #0]
  53587. 8016628: 2b00 cmp r3, #0
  53588. 801662a: d11d bne.n 8016668 <xTaskRemoveFromEventList+0x7c>
  53589. {
  53590. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  53591. 801662c: 693b ldr r3, [r7, #16]
  53592. 801662e: 3304 adds r3, #4
  53593. 8016630: 4618 mov r0, r3
  53594. 8016632: f7fe f9bb bl 80149ac <uxListRemove>
  53595. prvAddTaskToReadyList( pxUnblockedTCB );
  53596. 8016636: 693b ldr r3, [r7, #16]
  53597. 8016638: 6ada ldr r2, [r3, #44] @ 0x2c
  53598. 801663a: 4b19 ldr r3, [pc, #100] @ (80166a0 <xTaskRemoveFromEventList+0xb4>)
  53599. 801663c: 681b ldr r3, [r3, #0]
  53600. 801663e: 429a cmp r2, r3
  53601. 8016640: d903 bls.n 801664a <xTaskRemoveFromEventList+0x5e>
  53602. 8016642: 693b ldr r3, [r7, #16]
  53603. 8016644: 6adb ldr r3, [r3, #44] @ 0x2c
  53604. 8016646: 4a16 ldr r2, [pc, #88] @ (80166a0 <xTaskRemoveFromEventList+0xb4>)
  53605. 8016648: 6013 str r3, [r2, #0]
  53606. 801664a: 693b ldr r3, [r7, #16]
  53607. 801664c: 6ada ldr r2, [r3, #44] @ 0x2c
  53608. 801664e: 4613 mov r3, r2
  53609. 8016650: 009b lsls r3, r3, #2
  53610. 8016652: 4413 add r3, r2
  53611. 8016654: 009b lsls r3, r3, #2
  53612. 8016656: 4a13 ldr r2, [pc, #76] @ (80166a4 <xTaskRemoveFromEventList+0xb8>)
  53613. 8016658: 441a add r2, r3
  53614. 801665a: 693b ldr r3, [r7, #16]
  53615. 801665c: 3304 adds r3, #4
  53616. 801665e: 4619 mov r1, r3
  53617. 8016660: 4610 mov r0, r2
  53618. 8016662: f7fe f946 bl 80148f2 <vListInsertEnd>
  53619. 8016666: e005 b.n 8016674 <xTaskRemoveFromEventList+0x88>
  53620. }
  53621. else
  53622. {
  53623. /* The delayed and ready lists cannot be accessed, so hold this task
  53624. pending until the scheduler is resumed. */
  53625. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  53626. 8016668: 693b ldr r3, [r7, #16]
  53627. 801666a: 3318 adds r3, #24
  53628. 801666c: 4619 mov r1, r3
  53629. 801666e: 480e ldr r0, [pc, #56] @ (80166a8 <xTaskRemoveFromEventList+0xbc>)
  53630. 8016670: f7fe f93f bl 80148f2 <vListInsertEnd>
  53631. }
  53632. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  53633. 8016674: 693b ldr r3, [r7, #16]
  53634. 8016676: 6ada ldr r2, [r3, #44] @ 0x2c
  53635. 8016678: 4b0c ldr r3, [pc, #48] @ (80166ac <xTaskRemoveFromEventList+0xc0>)
  53636. 801667a: 681b ldr r3, [r3, #0]
  53637. 801667c: 6adb ldr r3, [r3, #44] @ 0x2c
  53638. 801667e: 429a cmp r2, r3
  53639. 8016680: d905 bls.n 801668e <xTaskRemoveFromEventList+0xa2>
  53640. {
  53641. /* Return true if the task removed from the event list has a higher
  53642. priority than the calling task. This allows the calling task to know if
  53643. it should force a context switch now. */
  53644. xReturn = pdTRUE;
  53645. 8016682: 2301 movs r3, #1
  53646. 8016684: 617b str r3, [r7, #20]
  53647. /* Mark that a yield is pending in case the user is not using the
  53648. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  53649. xYieldPending = pdTRUE;
  53650. 8016686: 4b0a ldr r3, [pc, #40] @ (80166b0 <xTaskRemoveFromEventList+0xc4>)
  53651. 8016688: 2201 movs r2, #1
  53652. 801668a: 601a str r2, [r3, #0]
  53653. 801668c: e001 b.n 8016692 <xTaskRemoveFromEventList+0xa6>
  53654. }
  53655. else
  53656. {
  53657. xReturn = pdFALSE;
  53658. 801668e: 2300 movs r3, #0
  53659. 8016690: 617b str r3, [r7, #20]
  53660. }
  53661. return xReturn;
  53662. 8016692: 697b ldr r3, [r7, #20]
  53663. }
  53664. 8016694: 4618 mov r0, r3
  53665. 8016696: 3718 adds r7, #24
  53666. 8016698: 46bd mov sp, r7
  53667. 801669a: bd80 pop {r7, pc}
  53668. 801669c: 24002ef4 .word 0x24002ef4
  53669. 80166a0: 24002ed4 .word 0x24002ed4
  53670. 80166a4: 240029fc .word 0x240029fc
  53671. 80166a8: 24002e8c .word 0x24002e8c
  53672. 80166ac: 240029f8 .word 0x240029f8
  53673. 80166b0: 24002ee0 .word 0x24002ee0
  53674. 080166b4 <vTaskSetTimeOutState>:
  53675. }
  53676. }
  53677. /*-----------------------------------------------------------*/
  53678. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  53679. {
  53680. 80166b4: b580 push {r7, lr}
  53681. 80166b6: b084 sub sp, #16
  53682. 80166b8: af00 add r7, sp, #0
  53683. 80166ba: 6078 str r0, [r7, #4]
  53684. configASSERT( pxTimeOut );
  53685. 80166bc: 687b ldr r3, [r7, #4]
  53686. 80166be: 2b00 cmp r3, #0
  53687. 80166c0: d10b bne.n 80166da <vTaskSetTimeOutState+0x26>
  53688. __asm volatile
  53689. 80166c2: f04f 0350 mov.w r3, #80 @ 0x50
  53690. 80166c6: f383 8811 msr BASEPRI, r3
  53691. 80166ca: f3bf 8f6f isb sy
  53692. 80166ce: f3bf 8f4f dsb sy
  53693. 80166d2: 60fb str r3, [r7, #12]
  53694. }
  53695. 80166d4: bf00 nop
  53696. 80166d6: bf00 nop
  53697. 80166d8: e7fd b.n 80166d6 <vTaskSetTimeOutState+0x22>
  53698. taskENTER_CRITICAL();
  53699. 80166da: f001 fb0d bl 8017cf8 <vPortEnterCritical>
  53700. {
  53701. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53702. 80166de: 4b07 ldr r3, [pc, #28] @ (80166fc <vTaskSetTimeOutState+0x48>)
  53703. 80166e0: 681a ldr r2, [r3, #0]
  53704. 80166e2: 687b ldr r3, [r7, #4]
  53705. 80166e4: 601a str r2, [r3, #0]
  53706. pxTimeOut->xTimeOnEntering = xTickCount;
  53707. 80166e6: 4b06 ldr r3, [pc, #24] @ (8016700 <vTaskSetTimeOutState+0x4c>)
  53708. 80166e8: 681a ldr r2, [r3, #0]
  53709. 80166ea: 687b ldr r3, [r7, #4]
  53710. 80166ec: 605a str r2, [r3, #4]
  53711. }
  53712. taskEXIT_CRITICAL();
  53713. 80166ee: f001 fb35 bl 8017d5c <vPortExitCritical>
  53714. }
  53715. 80166f2: bf00 nop
  53716. 80166f4: 3710 adds r7, #16
  53717. 80166f6: 46bd mov sp, r7
  53718. 80166f8: bd80 pop {r7, pc}
  53719. 80166fa: bf00 nop
  53720. 80166fc: 24002ee4 .word 0x24002ee4
  53721. 8016700: 24002ed0 .word 0x24002ed0
  53722. 08016704 <vTaskInternalSetTimeOutState>:
  53723. /*-----------------------------------------------------------*/
  53724. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  53725. {
  53726. 8016704: b480 push {r7}
  53727. 8016706: b083 sub sp, #12
  53728. 8016708: af00 add r7, sp, #0
  53729. 801670a: 6078 str r0, [r7, #4]
  53730. /* For internal use only as it does not use a critical section. */
  53731. pxTimeOut->xOverflowCount = xNumOfOverflows;
  53732. 801670c: 4b06 ldr r3, [pc, #24] @ (8016728 <vTaskInternalSetTimeOutState+0x24>)
  53733. 801670e: 681a ldr r2, [r3, #0]
  53734. 8016710: 687b ldr r3, [r7, #4]
  53735. 8016712: 601a str r2, [r3, #0]
  53736. pxTimeOut->xTimeOnEntering = xTickCount;
  53737. 8016714: 4b05 ldr r3, [pc, #20] @ (801672c <vTaskInternalSetTimeOutState+0x28>)
  53738. 8016716: 681a ldr r2, [r3, #0]
  53739. 8016718: 687b ldr r3, [r7, #4]
  53740. 801671a: 605a str r2, [r3, #4]
  53741. }
  53742. 801671c: bf00 nop
  53743. 801671e: 370c adds r7, #12
  53744. 8016720: 46bd mov sp, r7
  53745. 8016722: f85d 7b04 ldr.w r7, [sp], #4
  53746. 8016726: 4770 bx lr
  53747. 8016728: 24002ee4 .word 0x24002ee4
  53748. 801672c: 24002ed0 .word 0x24002ed0
  53749. 08016730 <xTaskCheckForTimeOut>:
  53750. /*-----------------------------------------------------------*/
  53751. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  53752. {
  53753. 8016730: b580 push {r7, lr}
  53754. 8016732: b088 sub sp, #32
  53755. 8016734: af00 add r7, sp, #0
  53756. 8016736: 6078 str r0, [r7, #4]
  53757. 8016738: 6039 str r1, [r7, #0]
  53758. BaseType_t xReturn;
  53759. configASSERT( pxTimeOut );
  53760. 801673a: 687b ldr r3, [r7, #4]
  53761. 801673c: 2b00 cmp r3, #0
  53762. 801673e: d10b bne.n 8016758 <xTaskCheckForTimeOut+0x28>
  53763. __asm volatile
  53764. 8016740: f04f 0350 mov.w r3, #80 @ 0x50
  53765. 8016744: f383 8811 msr BASEPRI, r3
  53766. 8016748: f3bf 8f6f isb sy
  53767. 801674c: f3bf 8f4f dsb sy
  53768. 8016750: 613b str r3, [r7, #16]
  53769. }
  53770. 8016752: bf00 nop
  53771. 8016754: bf00 nop
  53772. 8016756: e7fd b.n 8016754 <xTaskCheckForTimeOut+0x24>
  53773. configASSERT( pxTicksToWait );
  53774. 8016758: 683b ldr r3, [r7, #0]
  53775. 801675a: 2b00 cmp r3, #0
  53776. 801675c: d10b bne.n 8016776 <xTaskCheckForTimeOut+0x46>
  53777. __asm volatile
  53778. 801675e: f04f 0350 mov.w r3, #80 @ 0x50
  53779. 8016762: f383 8811 msr BASEPRI, r3
  53780. 8016766: f3bf 8f6f isb sy
  53781. 801676a: f3bf 8f4f dsb sy
  53782. 801676e: 60fb str r3, [r7, #12]
  53783. }
  53784. 8016770: bf00 nop
  53785. 8016772: bf00 nop
  53786. 8016774: e7fd b.n 8016772 <xTaskCheckForTimeOut+0x42>
  53787. taskENTER_CRITICAL();
  53788. 8016776: f001 fabf bl 8017cf8 <vPortEnterCritical>
  53789. {
  53790. /* Minor optimisation. The tick count cannot change in this block. */
  53791. const TickType_t xConstTickCount = xTickCount;
  53792. 801677a: 4b1d ldr r3, [pc, #116] @ (80167f0 <xTaskCheckForTimeOut+0xc0>)
  53793. 801677c: 681b ldr r3, [r3, #0]
  53794. 801677e: 61bb str r3, [r7, #24]
  53795. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  53796. 8016780: 687b ldr r3, [r7, #4]
  53797. 8016782: 685b ldr r3, [r3, #4]
  53798. 8016784: 69ba ldr r2, [r7, #24]
  53799. 8016786: 1ad3 subs r3, r2, r3
  53800. 8016788: 617b str r3, [r7, #20]
  53801. }
  53802. else
  53803. #endif
  53804. #if ( INCLUDE_vTaskSuspend == 1 )
  53805. if( *pxTicksToWait == portMAX_DELAY )
  53806. 801678a: 683b ldr r3, [r7, #0]
  53807. 801678c: 681b ldr r3, [r3, #0]
  53808. 801678e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53809. 8016792: d102 bne.n 801679a <xTaskCheckForTimeOut+0x6a>
  53810. {
  53811. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  53812. specified is the maximum block time then the task should block
  53813. indefinitely, and therefore never time out. */
  53814. xReturn = pdFALSE;
  53815. 8016794: 2300 movs r3, #0
  53816. 8016796: 61fb str r3, [r7, #28]
  53817. 8016798: e023 b.n 80167e2 <xTaskCheckForTimeOut+0xb2>
  53818. }
  53819. else
  53820. #endif
  53821. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  53822. 801679a: 687b ldr r3, [r7, #4]
  53823. 801679c: 681a ldr r2, [r3, #0]
  53824. 801679e: 4b15 ldr r3, [pc, #84] @ (80167f4 <xTaskCheckForTimeOut+0xc4>)
  53825. 80167a0: 681b ldr r3, [r3, #0]
  53826. 80167a2: 429a cmp r2, r3
  53827. 80167a4: d007 beq.n 80167b6 <xTaskCheckForTimeOut+0x86>
  53828. 80167a6: 687b ldr r3, [r7, #4]
  53829. 80167a8: 685b ldr r3, [r3, #4]
  53830. 80167aa: 69ba ldr r2, [r7, #24]
  53831. 80167ac: 429a cmp r2, r3
  53832. 80167ae: d302 bcc.n 80167b6 <xTaskCheckForTimeOut+0x86>
  53833. /* The tick count is greater than the time at which
  53834. vTaskSetTimeout() was called, but has also overflowed since
  53835. vTaskSetTimeOut() was called. It must have wrapped all the way
  53836. around and gone past again. This passed since vTaskSetTimeout()
  53837. was called. */
  53838. xReturn = pdTRUE;
  53839. 80167b0: 2301 movs r3, #1
  53840. 80167b2: 61fb str r3, [r7, #28]
  53841. 80167b4: e015 b.n 80167e2 <xTaskCheckForTimeOut+0xb2>
  53842. }
  53843. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  53844. 80167b6: 683b ldr r3, [r7, #0]
  53845. 80167b8: 681b ldr r3, [r3, #0]
  53846. 80167ba: 697a ldr r2, [r7, #20]
  53847. 80167bc: 429a cmp r2, r3
  53848. 80167be: d20b bcs.n 80167d8 <xTaskCheckForTimeOut+0xa8>
  53849. {
  53850. /* Not a genuine timeout. Adjust parameters for time remaining. */
  53851. *pxTicksToWait -= xElapsedTime;
  53852. 80167c0: 683b ldr r3, [r7, #0]
  53853. 80167c2: 681a ldr r2, [r3, #0]
  53854. 80167c4: 697b ldr r3, [r7, #20]
  53855. 80167c6: 1ad2 subs r2, r2, r3
  53856. 80167c8: 683b ldr r3, [r7, #0]
  53857. 80167ca: 601a str r2, [r3, #0]
  53858. vTaskInternalSetTimeOutState( pxTimeOut );
  53859. 80167cc: 6878 ldr r0, [r7, #4]
  53860. 80167ce: f7ff ff99 bl 8016704 <vTaskInternalSetTimeOutState>
  53861. xReturn = pdFALSE;
  53862. 80167d2: 2300 movs r3, #0
  53863. 80167d4: 61fb str r3, [r7, #28]
  53864. 80167d6: e004 b.n 80167e2 <xTaskCheckForTimeOut+0xb2>
  53865. }
  53866. else
  53867. {
  53868. *pxTicksToWait = 0;
  53869. 80167d8: 683b ldr r3, [r7, #0]
  53870. 80167da: 2200 movs r2, #0
  53871. 80167dc: 601a str r2, [r3, #0]
  53872. xReturn = pdTRUE;
  53873. 80167de: 2301 movs r3, #1
  53874. 80167e0: 61fb str r3, [r7, #28]
  53875. }
  53876. }
  53877. taskEXIT_CRITICAL();
  53878. 80167e2: f001 fabb bl 8017d5c <vPortExitCritical>
  53879. return xReturn;
  53880. 80167e6: 69fb ldr r3, [r7, #28]
  53881. }
  53882. 80167e8: 4618 mov r0, r3
  53883. 80167ea: 3720 adds r7, #32
  53884. 80167ec: 46bd mov sp, r7
  53885. 80167ee: bd80 pop {r7, pc}
  53886. 80167f0: 24002ed0 .word 0x24002ed0
  53887. 80167f4: 24002ee4 .word 0x24002ee4
  53888. 080167f8 <vTaskMissedYield>:
  53889. /*-----------------------------------------------------------*/
  53890. void vTaskMissedYield( void )
  53891. {
  53892. 80167f8: b480 push {r7}
  53893. 80167fa: af00 add r7, sp, #0
  53894. xYieldPending = pdTRUE;
  53895. 80167fc: 4b03 ldr r3, [pc, #12] @ (801680c <vTaskMissedYield+0x14>)
  53896. 80167fe: 2201 movs r2, #1
  53897. 8016800: 601a str r2, [r3, #0]
  53898. }
  53899. 8016802: bf00 nop
  53900. 8016804: 46bd mov sp, r7
  53901. 8016806: f85d 7b04 ldr.w r7, [sp], #4
  53902. 801680a: 4770 bx lr
  53903. 801680c: 24002ee0 .word 0x24002ee0
  53904. 08016810 <prvIdleTask>:
  53905. *
  53906. * void prvIdleTask( void *pvParameters );
  53907. *
  53908. */
  53909. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  53910. {
  53911. 8016810: b580 push {r7, lr}
  53912. 8016812: b082 sub sp, #8
  53913. 8016814: af00 add r7, sp, #0
  53914. 8016816: 6078 str r0, [r7, #4]
  53915. for( ;; )
  53916. {
  53917. /* See if any tasks have deleted themselves - if so then the idle task
  53918. is responsible for freeing the deleted task's TCB and stack. */
  53919. prvCheckTasksWaitingTermination();
  53920. 8016818: f000 f852 bl 80168c0 <prvCheckTasksWaitingTermination>
  53921. A critical region is not required here as we are just reading from
  53922. the list, and an occasional incorrect value will not matter. If
  53923. the ready list at the idle priority contains more than one task
  53924. then a task other than the idle task is ready to execute. */
  53925. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  53926. 801681c: 4b06 ldr r3, [pc, #24] @ (8016838 <prvIdleTask+0x28>)
  53927. 801681e: 681b ldr r3, [r3, #0]
  53928. 8016820: 2b01 cmp r3, #1
  53929. 8016822: d9f9 bls.n 8016818 <prvIdleTask+0x8>
  53930. {
  53931. taskYIELD();
  53932. 8016824: 4b05 ldr r3, [pc, #20] @ (801683c <prvIdleTask+0x2c>)
  53933. 8016826: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53934. 801682a: 601a str r2, [r3, #0]
  53935. 801682c: f3bf 8f4f dsb sy
  53936. 8016830: f3bf 8f6f isb sy
  53937. prvCheckTasksWaitingTermination();
  53938. 8016834: e7f0 b.n 8016818 <prvIdleTask+0x8>
  53939. 8016836: bf00 nop
  53940. 8016838: 240029fc .word 0x240029fc
  53941. 801683c: e000ed04 .word 0xe000ed04
  53942. 08016840 <prvInitialiseTaskLists>:
  53943. #endif /* portUSING_MPU_WRAPPERS */
  53944. /*-----------------------------------------------------------*/
  53945. static void prvInitialiseTaskLists( void )
  53946. {
  53947. 8016840: b580 push {r7, lr}
  53948. 8016842: b082 sub sp, #8
  53949. 8016844: af00 add r7, sp, #0
  53950. UBaseType_t uxPriority;
  53951. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53952. 8016846: 2300 movs r3, #0
  53953. 8016848: 607b str r3, [r7, #4]
  53954. 801684a: e00c b.n 8016866 <prvInitialiseTaskLists+0x26>
  53955. {
  53956. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  53957. 801684c: 687a ldr r2, [r7, #4]
  53958. 801684e: 4613 mov r3, r2
  53959. 8016850: 009b lsls r3, r3, #2
  53960. 8016852: 4413 add r3, r2
  53961. 8016854: 009b lsls r3, r3, #2
  53962. 8016856: 4a12 ldr r2, [pc, #72] @ (80168a0 <prvInitialiseTaskLists+0x60>)
  53963. 8016858: 4413 add r3, r2
  53964. 801685a: 4618 mov r0, r3
  53965. 801685c: f7fe f81c bl 8014898 <vListInitialise>
  53966. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  53967. 8016860: 687b ldr r3, [r7, #4]
  53968. 8016862: 3301 adds r3, #1
  53969. 8016864: 607b str r3, [r7, #4]
  53970. 8016866: 687b ldr r3, [r7, #4]
  53971. 8016868: 2b37 cmp r3, #55 @ 0x37
  53972. 801686a: d9ef bls.n 801684c <prvInitialiseTaskLists+0xc>
  53973. }
  53974. vListInitialise( &xDelayedTaskList1 );
  53975. 801686c: 480d ldr r0, [pc, #52] @ (80168a4 <prvInitialiseTaskLists+0x64>)
  53976. 801686e: f7fe f813 bl 8014898 <vListInitialise>
  53977. vListInitialise( &xDelayedTaskList2 );
  53978. 8016872: 480d ldr r0, [pc, #52] @ (80168a8 <prvInitialiseTaskLists+0x68>)
  53979. 8016874: f7fe f810 bl 8014898 <vListInitialise>
  53980. vListInitialise( &xPendingReadyList );
  53981. 8016878: 480c ldr r0, [pc, #48] @ (80168ac <prvInitialiseTaskLists+0x6c>)
  53982. 801687a: f7fe f80d bl 8014898 <vListInitialise>
  53983. #if ( INCLUDE_vTaskDelete == 1 )
  53984. {
  53985. vListInitialise( &xTasksWaitingTermination );
  53986. 801687e: 480c ldr r0, [pc, #48] @ (80168b0 <prvInitialiseTaskLists+0x70>)
  53987. 8016880: f7fe f80a bl 8014898 <vListInitialise>
  53988. }
  53989. #endif /* INCLUDE_vTaskDelete */
  53990. #if ( INCLUDE_vTaskSuspend == 1 )
  53991. {
  53992. vListInitialise( &xSuspendedTaskList );
  53993. 8016884: 480b ldr r0, [pc, #44] @ (80168b4 <prvInitialiseTaskLists+0x74>)
  53994. 8016886: f7fe f807 bl 8014898 <vListInitialise>
  53995. }
  53996. #endif /* INCLUDE_vTaskSuspend */
  53997. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  53998. using list2. */
  53999. pxDelayedTaskList = &xDelayedTaskList1;
  54000. 801688a: 4b0b ldr r3, [pc, #44] @ (80168b8 <prvInitialiseTaskLists+0x78>)
  54001. 801688c: 4a05 ldr r2, [pc, #20] @ (80168a4 <prvInitialiseTaskLists+0x64>)
  54002. 801688e: 601a str r2, [r3, #0]
  54003. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  54004. 8016890: 4b0a ldr r3, [pc, #40] @ (80168bc <prvInitialiseTaskLists+0x7c>)
  54005. 8016892: 4a05 ldr r2, [pc, #20] @ (80168a8 <prvInitialiseTaskLists+0x68>)
  54006. 8016894: 601a str r2, [r3, #0]
  54007. }
  54008. 8016896: bf00 nop
  54009. 8016898: 3708 adds r7, #8
  54010. 801689a: 46bd mov sp, r7
  54011. 801689c: bd80 pop {r7, pc}
  54012. 801689e: bf00 nop
  54013. 80168a0: 240029fc .word 0x240029fc
  54014. 80168a4: 24002e5c .word 0x24002e5c
  54015. 80168a8: 24002e70 .word 0x24002e70
  54016. 80168ac: 24002e8c .word 0x24002e8c
  54017. 80168b0: 24002ea0 .word 0x24002ea0
  54018. 80168b4: 24002eb8 .word 0x24002eb8
  54019. 80168b8: 24002e84 .word 0x24002e84
  54020. 80168bc: 24002e88 .word 0x24002e88
  54021. 080168c0 <prvCheckTasksWaitingTermination>:
  54022. /*-----------------------------------------------------------*/
  54023. static void prvCheckTasksWaitingTermination( void )
  54024. {
  54025. 80168c0: b580 push {r7, lr}
  54026. 80168c2: b082 sub sp, #8
  54027. 80168c4: af00 add r7, sp, #0
  54028. {
  54029. TCB_t *pxTCB;
  54030. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  54031. being called too often in the idle task. */
  54032. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54033. 80168c6: e019 b.n 80168fc <prvCheckTasksWaitingTermination+0x3c>
  54034. {
  54035. taskENTER_CRITICAL();
  54036. 80168c8: f001 fa16 bl 8017cf8 <vPortEnterCritical>
  54037. {
  54038. 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. */
  54039. 80168cc: 4b10 ldr r3, [pc, #64] @ (8016910 <prvCheckTasksWaitingTermination+0x50>)
  54040. 80168ce: 68db ldr r3, [r3, #12]
  54041. 80168d0: 68db ldr r3, [r3, #12]
  54042. 80168d2: 607b str r3, [r7, #4]
  54043. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  54044. 80168d4: 687b ldr r3, [r7, #4]
  54045. 80168d6: 3304 adds r3, #4
  54046. 80168d8: 4618 mov r0, r3
  54047. 80168da: f7fe f867 bl 80149ac <uxListRemove>
  54048. --uxCurrentNumberOfTasks;
  54049. 80168de: 4b0d ldr r3, [pc, #52] @ (8016914 <prvCheckTasksWaitingTermination+0x54>)
  54050. 80168e0: 681b ldr r3, [r3, #0]
  54051. 80168e2: 3b01 subs r3, #1
  54052. 80168e4: 4a0b ldr r2, [pc, #44] @ (8016914 <prvCheckTasksWaitingTermination+0x54>)
  54053. 80168e6: 6013 str r3, [r2, #0]
  54054. --uxDeletedTasksWaitingCleanUp;
  54055. 80168e8: 4b0b ldr r3, [pc, #44] @ (8016918 <prvCheckTasksWaitingTermination+0x58>)
  54056. 80168ea: 681b ldr r3, [r3, #0]
  54057. 80168ec: 3b01 subs r3, #1
  54058. 80168ee: 4a0a ldr r2, [pc, #40] @ (8016918 <prvCheckTasksWaitingTermination+0x58>)
  54059. 80168f0: 6013 str r3, [r2, #0]
  54060. }
  54061. taskEXIT_CRITICAL();
  54062. 80168f2: f001 fa33 bl 8017d5c <vPortExitCritical>
  54063. prvDeleteTCB( pxTCB );
  54064. 80168f6: 6878 ldr r0, [r7, #4]
  54065. 80168f8: f000 f810 bl 801691c <prvDeleteTCB>
  54066. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  54067. 80168fc: 4b06 ldr r3, [pc, #24] @ (8016918 <prvCheckTasksWaitingTermination+0x58>)
  54068. 80168fe: 681b ldr r3, [r3, #0]
  54069. 8016900: 2b00 cmp r3, #0
  54070. 8016902: d1e1 bne.n 80168c8 <prvCheckTasksWaitingTermination+0x8>
  54071. }
  54072. }
  54073. #endif /* INCLUDE_vTaskDelete */
  54074. }
  54075. 8016904: bf00 nop
  54076. 8016906: bf00 nop
  54077. 8016908: 3708 adds r7, #8
  54078. 801690a: 46bd mov sp, r7
  54079. 801690c: bd80 pop {r7, pc}
  54080. 801690e: bf00 nop
  54081. 8016910: 24002ea0 .word 0x24002ea0
  54082. 8016914: 24002ecc .word 0x24002ecc
  54083. 8016918: 24002eb4 .word 0x24002eb4
  54084. 0801691c <prvDeleteTCB>:
  54085. /*-----------------------------------------------------------*/
  54086. #if ( INCLUDE_vTaskDelete == 1 )
  54087. static void prvDeleteTCB( TCB_t *pxTCB )
  54088. {
  54089. 801691c: b580 push {r7, lr}
  54090. 801691e: b084 sub sp, #16
  54091. 8016920: af00 add r7, sp, #0
  54092. 8016922: 6078 str r0, [r7, #4]
  54093. to the task to free any memory allocated at the application level.
  54094. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  54095. for additional information. */
  54096. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  54097. {
  54098. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  54099. 8016924: 687b ldr r3, [r7, #4]
  54100. 8016926: 3354 adds r3, #84 @ 0x54
  54101. 8016928: 4618 mov r0, r3
  54102. 801692a: f001 fcfd bl 8018328 <_reclaim_reent>
  54103. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  54104. {
  54105. /* The task could have been allocated statically or dynamically, so
  54106. check what was statically allocated before trying to free the
  54107. memory. */
  54108. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  54109. 801692e: 687b ldr r3, [r7, #4]
  54110. 8016930: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54111. 8016934: 2b00 cmp r3, #0
  54112. 8016936: d108 bne.n 801694a <prvDeleteTCB+0x2e>
  54113. {
  54114. /* Both the stack and TCB were allocated dynamically, so both
  54115. must be freed. */
  54116. vPortFree( pxTCB->pxStack );
  54117. 8016938: 687b ldr r3, [r7, #4]
  54118. 801693a: 6b1b ldr r3, [r3, #48] @ 0x30
  54119. 801693c: 4618 mov r0, r3
  54120. 801693e: f001 fbcb bl 80180d8 <vPortFree>
  54121. vPortFree( pxTCB );
  54122. 8016942: 6878 ldr r0, [r7, #4]
  54123. 8016944: f001 fbc8 bl 80180d8 <vPortFree>
  54124. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54125. mtCOVERAGE_TEST_MARKER();
  54126. }
  54127. }
  54128. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  54129. }
  54130. 8016948: e019 b.n 801697e <prvDeleteTCB+0x62>
  54131. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  54132. 801694a: 687b ldr r3, [r7, #4]
  54133. 801694c: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54134. 8016950: 2b01 cmp r3, #1
  54135. 8016952: d103 bne.n 801695c <prvDeleteTCB+0x40>
  54136. vPortFree( pxTCB );
  54137. 8016954: 6878 ldr r0, [r7, #4]
  54138. 8016956: f001 fbbf bl 80180d8 <vPortFree>
  54139. }
  54140. 801695a: e010 b.n 801697e <prvDeleteTCB+0x62>
  54141. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  54142. 801695c: 687b ldr r3, [r7, #4]
  54143. 801695e: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  54144. 8016962: 2b02 cmp r3, #2
  54145. 8016964: d00b beq.n 801697e <prvDeleteTCB+0x62>
  54146. __asm volatile
  54147. 8016966: f04f 0350 mov.w r3, #80 @ 0x50
  54148. 801696a: f383 8811 msr BASEPRI, r3
  54149. 801696e: f3bf 8f6f isb sy
  54150. 8016972: f3bf 8f4f dsb sy
  54151. 8016976: 60fb str r3, [r7, #12]
  54152. }
  54153. 8016978: bf00 nop
  54154. 801697a: bf00 nop
  54155. 801697c: e7fd b.n 801697a <prvDeleteTCB+0x5e>
  54156. }
  54157. 801697e: bf00 nop
  54158. 8016980: 3710 adds r7, #16
  54159. 8016982: 46bd mov sp, r7
  54160. 8016984: bd80 pop {r7, pc}
  54161. ...
  54162. 08016988 <prvResetNextTaskUnblockTime>:
  54163. #endif /* INCLUDE_vTaskDelete */
  54164. /*-----------------------------------------------------------*/
  54165. static void prvResetNextTaskUnblockTime( void )
  54166. {
  54167. 8016988: b480 push {r7}
  54168. 801698a: b083 sub sp, #12
  54169. 801698c: af00 add r7, sp, #0
  54170. TCB_t *pxTCB;
  54171. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  54172. 801698e: 4b0c ldr r3, [pc, #48] @ (80169c0 <prvResetNextTaskUnblockTime+0x38>)
  54173. 8016990: 681b ldr r3, [r3, #0]
  54174. 8016992: 681b ldr r3, [r3, #0]
  54175. 8016994: 2b00 cmp r3, #0
  54176. 8016996: d104 bne.n 80169a2 <prvResetNextTaskUnblockTime+0x1a>
  54177. {
  54178. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  54179. the maximum possible value so it is extremely unlikely that the
  54180. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  54181. there is an item in the delayed list. */
  54182. xNextTaskUnblockTime = portMAX_DELAY;
  54183. 8016998: 4b0a ldr r3, [pc, #40] @ (80169c4 <prvResetNextTaskUnblockTime+0x3c>)
  54184. 801699a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  54185. 801699e: 601a str r2, [r3, #0]
  54186. which the task at the head of the delayed list should be removed
  54187. from the Blocked state. */
  54188. ( 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. */
  54189. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54190. }
  54191. }
  54192. 80169a0: e008 b.n 80169b4 <prvResetNextTaskUnblockTime+0x2c>
  54193. ( 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. */
  54194. 80169a2: 4b07 ldr r3, [pc, #28] @ (80169c0 <prvResetNextTaskUnblockTime+0x38>)
  54195. 80169a4: 681b ldr r3, [r3, #0]
  54196. 80169a6: 68db ldr r3, [r3, #12]
  54197. 80169a8: 68db ldr r3, [r3, #12]
  54198. 80169aa: 607b str r3, [r7, #4]
  54199. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  54200. 80169ac: 687b ldr r3, [r7, #4]
  54201. 80169ae: 685b ldr r3, [r3, #4]
  54202. 80169b0: 4a04 ldr r2, [pc, #16] @ (80169c4 <prvResetNextTaskUnblockTime+0x3c>)
  54203. 80169b2: 6013 str r3, [r2, #0]
  54204. }
  54205. 80169b4: bf00 nop
  54206. 80169b6: 370c adds r7, #12
  54207. 80169b8: 46bd mov sp, r7
  54208. 80169ba: f85d 7b04 ldr.w r7, [sp], #4
  54209. 80169be: 4770 bx lr
  54210. 80169c0: 24002e84 .word 0x24002e84
  54211. 80169c4: 24002eec .word 0x24002eec
  54212. 080169c8 <xTaskGetCurrentTaskHandle>:
  54213. /*-----------------------------------------------------------*/
  54214. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  54215. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  54216. {
  54217. 80169c8: b480 push {r7}
  54218. 80169ca: b083 sub sp, #12
  54219. 80169cc: af00 add r7, sp, #0
  54220. TaskHandle_t xReturn;
  54221. /* A critical section is not required as this is not called from
  54222. an interrupt and the current TCB will always be the same for any
  54223. individual execution thread. */
  54224. xReturn = pxCurrentTCB;
  54225. 80169ce: 4b05 ldr r3, [pc, #20] @ (80169e4 <xTaskGetCurrentTaskHandle+0x1c>)
  54226. 80169d0: 681b ldr r3, [r3, #0]
  54227. 80169d2: 607b str r3, [r7, #4]
  54228. return xReturn;
  54229. 80169d4: 687b ldr r3, [r7, #4]
  54230. }
  54231. 80169d6: 4618 mov r0, r3
  54232. 80169d8: 370c adds r7, #12
  54233. 80169da: 46bd mov sp, r7
  54234. 80169dc: f85d 7b04 ldr.w r7, [sp], #4
  54235. 80169e0: 4770 bx lr
  54236. 80169e2: bf00 nop
  54237. 80169e4: 240029f8 .word 0x240029f8
  54238. 080169e8 <xTaskGetSchedulerState>:
  54239. /*-----------------------------------------------------------*/
  54240. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  54241. BaseType_t xTaskGetSchedulerState( void )
  54242. {
  54243. 80169e8: b480 push {r7}
  54244. 80169ea: b083 sub sp, #12
  54245. 80169ec: af00 add r7, sp, #0
  54246. BaseType_t xReturn;
  54247. if( xSchedulerRunning == pdFALSE )
  54248. 80169ee: 4b0b ldr r3, [pc, #44] @ (8016a1c <xTaskGetSchedulerState+0x34>)
  54249. 80169f0: 681b ldr r3, [r3, #0]
  54250. 80169f2: 2b00 cmp r3, #0
  54251. 80169f4: d102 bne.n 80169fc <xTaskGetSchedulerState+0x14>
  54252. {
  54253. xReturn = taskSCHEDULER_NOT_STARTED;
  54254. 80169f6: 2301 movs r3, #1
  54255. 80169f8: 607b str r3, [r7, #4]
  54256. 80169fa: e008 b.n 8016a0e <xTaskGetSchedulerState+0x26>
  54257. }
  54258. else
  54259. {
  54260. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  54261. 80169fc: 4b08 ldr r3, [pc, #32] @ (8016a20 <xTaskGetSchedulerState+0x38>)
  54262. 80169fe: 681b ldr r3, [r3, #0]
  54263. 8016a00: 2b00 cmp r3, #0
  54264. 8016a02: d102 bne.n 8016a0a <xTaskGetSchedulerState+0x22>
  54265. {
  54266. xReturn = taskSCHEDULER_RUNNING;
  54267. 8016a04: 2302 movs r3, #2
  54268. 8016a06: 607b str r3, [r7, #4]
  54269. 8016a08: e001 b.n 8016a0e <xTaskGetSchedulerState+0x26>
  54270. }
  54271. else
  54272. {
  54273. xReturn = taskSCHEDULER_SUSPENDED;
  54274. 8016a0a: 2300 movs r3, #0
  54275. 8016a0c: 607b str r3, [r7, #4]
  54276. }
  54277. }
  54278. return xReturn;
  54279. 8016a0e: 687b ldr r3, [r7, #4]
  54280. }
  54281. 8016a10: 4618 mov r0, r3
  54282. 8016a12: 370c adds r7, #12
  54283. 8016a14: 46bd mov sp, r7
  54284. 8016a16: f85d 7b04 ldr.w r7, [sp], #4
  54285. 8016a1a: 4770 bx lr
  54286. 8016a1c: 24002ed8 .word 0x24002ed8
  54287. 8016a20: 24002ef4 .word 0x24002ef4
  54288. 08016a24 <xTaskPriorityInherit>:
  54289. /*-----------------------------------------------------------*/
  54290. #if ( configUSE_MUTEXES == 1 )
  54291. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  54292. {
  54293. 8016a24: b580 push {r7, lr}
  54294. 8016a26: b084 sub sp, #16
  54295. 8016a28: af00 add r7, sp, #0
  54296. 8016a2a: 6078 str r0, [r7, #4]
  54297. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  54298. 8016a2c: 687b ldr r3, [r7, #4]
  54299. 8016a2e: 60bb str r3, [r7, #8]
  54300. BaseType_t xReturn = pdFALSE;
  54301. 8016a30: 2300 movs r3, #0
  54302. 8016a32: 60fb str r3, [r7, #12]
  54303. /* If the mutex was given back by an interrupt while the queue was
  54304. locked then the mutex holder might now be NULL. _RB_ Is this still
  54305. needed as interrupts can no longer use mutexes? */
  54306. if( pxMutexHolder != NULL )
  54307. 8016a34: 687b ldr r3, [r7, #4]
  54308. 8016a36: 2b00 cmp r3, #0
  54309. 8016a38: d051 beq.n 8016ade <xTaskPriorityInherit+0xba>
  54310. {
  54311. /* If the holder of the mutex has a priority below the priority of
  54312. the task attempting to obtain the mutex then it will temporarily
  54313. inherit the priority of the task attempting to obtain the mutex. */
  54314. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  54315. 8016a3a: 68bb ldr r3, [r7, #8]
  54316. 8016a3c: 6ada ldr r2, [r3, #44] @ 0x2c
  54317. 8016a3e: 4b2a ldr r3, [pc, #168] @ (8016ae8 <xTaskPriorityInherit+0xc4>)
  54318. 8016a40: 681b ldr r3, [r3, #0]
  54319. 8016a42: 6adb ldr r3, [r3, #44] @ 0x2c
  54320. 8016a44: 429a cmp r2, r3
  54321. 8016a46: d241 bcs.n 8016acc <xTaskPriorityInherit+0xa8>
  54322. {
  54323. /* Adjust the mutex holder state to account for its new
  54324. priority. Only reset the event list item value if the value is
  54325. not being used for anything else. */
  54326. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54327. 8016a48: 68bb ldr r3, [r7, #8]
  54328. 8016a4a: 699b ldr r3, [r3, #24]
  54329. 8016a4c: 2b00 cmp r3, #0
  54330. 8016a4e: db06 blt.n 8016a5e <xTaskPriorityInherit+0x3a>
  54331. {
  54332. 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. */
  54333. 8016a50: 4b25 ldr r3, [pc, #148] @ (8016ae8 <xTaskPriorityInherit+0xc4>)
  54334. 8016a52: 681b ldr r3, [r3, #0]
  54335. 8016a54: 6adb ldr r3, [r3, #44] @ 0x2c
  54336. 8016a56: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54337. 8016a5a: 68bb ldr r3, [r7, #8]
  54338. 8016a5c: 619a str r2, [r3, #24]
  54339. mtCOVERAGE_TEST_MARKER();
  54340. }
  54341. /* If the task being modified is in the ready state it will need
  54342. to be moved into a new list. */
  54343. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  54344. 8016a5e: 68bb ldr r3, [r7, #8]
  54345. 8016a60: 6959 ldr r1, [r3, #20]
  54346. 8016a62: 68bb ldr r3, [r7, #8]
  54347. 8016a64: 6ada ldr r2, [r3, #44] @ 0x2c
  54348. 8016a66: 4613 mov r3, r2
  54349. 8016a68: 009b lsls r3, r3, #2
  54350. 8016a6a: 4413 add r3, r2
  54351. 8016a6c: 009b lsls r3, r3, #2
  54352. 8016a6e: 4a1f ldr r2, [pc, #124] @ (8016aec <xTaskPriorityInherit+0xc8>)
  54353. 8016a70: 4413 add r3, r2
  54354. 8016a72: 4299 cmp r1, r3
  54355. 8016a74: d122 bne.n 8016abc <xTaskPriorityInherit+0x98>
  54356. {
  54357. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54358. 8016a76: 68bb ldr r3, [r7, #8]
  54359. 8016a78: 3304 adds r3, #4
  54360. 8016a7a: 4618 mov r0, r3
  54361. 8016a7c: f7fd ff96 bl 80149ac <uxListRemove>
  54362. {
  54363. mtCOVERAGE_TEST_MARKER();
  54364. }
  54365. /* Inherit the priority before being moved into the new list. */
  54366. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54367. 8016a80: 4b19 ldr r3, [pc, #100] @ (8016ae8 <xTaskPriorityInherit+0xc4>)
  54368. 8016a82: 681b ldr r3, [r3, #0]
  54369. 8016a84: 6ada ldr r2, [r3, #44] @ 0x2c
  54370. 8016a86: 68bb ldr r3, [r7, #8]
  54371. 8016a88: 62da str r2, [r3, #44] @ 0x2c
  54372. prvAddTaskToReadyList( pxMutexHolderTCB );
  54373. 8016a8a: 68bb ldr r3, [r7, #8]
  54374. 8016a8c: 6ada ldr r2, [r3, #44] @ 0x2c
  54375. 8016a8e: 4b18 ldr r3, [pc, #96] @ (8016af0 <xTaskPriorityInherit+0xcc>)
  54376. 8016a90: 681b ldr r3, [r3, #0]
  54377. 8016a92: 429a cmp r2, r3
  54378. 8016a94: d903 bls.n 8016a9e <xTaskPriorityInherit+0x7a>
  54379. 8016a96: 68bb ldr r3, [r7, #8]
  54380. 8016a98: 6adb ldr r3, [r3, #44] @ 0x2c
  54381. 8016a9a: 4a15 ldr r2, [pc, #84] @ (8016af0 <xTaskPriorityInherit+0xcc>)
  54382. 8016a9c: 6013 str r3, [r2, #0]
  54383. 8016a9e: 68bb ldr r3, [r7, #8]
  54384. 8016aa0: 6ada ldr r2, [r3, #44] @ 0x2c
  54385. 8016aa2: 4613 mov r3, r2
  54386. 8016aa4: 009b lsls r3, r3, #2
  54387. 8016aa6: 4413 add r3, r2
  54388. 8016aa8: 009b lsls r3, r3, #2
  54389. 8016aaa: 4a10 ldr r2, [pc, #64] @ (8016aec <xTaskPriorityInherit+0xc8>)
  54390. 8016aac: 441a add r2, r3
  54391. 8016aae: 68bb ldr r3, [r7, #8]
  54392. 8016ab0: 3304 adds r3, #4
  54393. 8016ab2: 4619 mov r1, r3
  54394. 8016ab4: 4610 mov r0, r2
  54395. 8016ab6: f7fd ff1c bl 80148f2 <vListInsertEnd>
  54396. 8016aba: e004 b.n 8016ac6 <xTaskPriorityInherit+0xa2>
  54397. }
  54398. else
  54399. {
  54400. /* Just inherit the priority. */
  54401. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  54402. 8016abc: 4b0a ldr r3, [pc, #40] @ (8016ae8 <xTaskPriorityInherit+0xc4>)
  54403. 8016abe: 681b ldr r3, [r3, #0]
  54404. 8016ac0: 6ada ldr r2, [r3, #44] @ 0x2c
  54405. 8016ac2: 68bb ldr r3, [r7, #8]
  54406. 8016ac4: 62da str r2, [r3, #44] @ 0x2c
  54407. }
  54408. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  54409. /* Inheritance occurred. */
  54410. xReturn = pdTRUE;
  54411. 8016ac6: 2301 movs r3, #1
  54412. 8016ac8: 60fb str r3, [r7, #12]
  54413. 8016aca: e008 b.n 8016ade <xTaskPriorityInherit+0xba>
  54414. }
  54415. else
  54416. {
  54417. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  54418. 8016acc: 68bb ldr r3, [r7, #8]
  54419. 8016ace: 6cda ldr r2, [r3, #76] @ 0x4c
  54420. 8016ad0: 4b05 ldr r3, [pc, #20] @ (8016ae8 <xTaskPriorityInherit+0xc4>)
  54421. 8016ad2: 681b ldr r3, [r3, #0]
  54422. 8016ad4: 6adb ldr r3, [r3, #44] @ 0x2c
  54423. 8016ad6: 429a cmp r2, r3
  54424. 8016ad8: d201 bcs.n 8016ade <xTaskPriorityInherit+0xba>
  54425. current priority of the mutex holder is not lower than the
  54426. priority of the task attempting to take the mutex.
  54427. Therefore the mutex holder must have already inherited a
  54428. priority, but inheritance would have occurred if that had
  54429. not been the case. */
  54430. xReturn = pdTRUE;
  54431. 8016ada: 2301 movs r3, #1
  54432. 8016adc: 60fb str r3, [r7, #12]
  54433. else
  54434. {
  54435. mtCOVERAGE_TEST_MARKER();
  54436. }
  54437. return xReturn;
  54438. 8016ade: 68fb ldr r3, [r7, #12]
  54439. }
  54440. 8016ae0: 4618 mov r0, r3
  54441. 8016ae2: 3710 adds r7, #16
  54442. 8016ae4: 46bd mov sp, r7
  54443. 8016ae6: bd80 pop {r7, pc}
  54444. 8016ae8: 240029f8 .word 0x240029f8
  54445. 8016aec: 240029fc .word 0x240029fc
  54446. 8016af0: 24002ed4 .word 0x24002ed4
  54447. 08016af4 <xTaskPriorityDisinherit>:
  54448. /*-----------------------------------------------------------*/
  54449. #if ( configUSE_MUTEXES == 1 )
  54450. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  54451. {
  54452. 8016af4: b580 push {r7, lr}
  54453. 8016af6: b086 sub sp, #24
  54454. 8016af8: af00 add r7, sp, #0
  54455. 8016afa: 6078 str r0, [r7, #4]
  54456. TCB_t * const pxTCB = pxMutexHolder;
  54457. 8016afc: 687b ldr r3, [r7, #4]
  54458. 8016afe: 613b str r3, [r7, #16]
  54459. BaseType_t xReturn = pdFALSE;
  54460. 8016b00: 2300 movs r3, #0
  54461. 8016b02: 617b str r3, [r7, #20]
  54462. if( pxMutexHolder != NULL )
  54463. 8016b04: 687b ldr r3, [r7, #4]
  54464. 8016b06: 2b00 cmp r3, #0
  54465. 8016b08: d058 beq.n 8016bbc <xTaskPriorityDisinherit+0xc8>
  54466. {
  54467. /* A task can only have an inherited priority if it holds the mutex.
  54468. If the mutex is held by a task then it cannot be given from an
  54469. interrupt, and if a mutex is given by the holding task then it must
  54470. be the running state task. */
  54471. configASSERT( pxTCB == pxCurrentTCB );
  54472. 8016b0a: 4b2f ldr r3, [pc, #188] @ (8016bc8 <xTaskPriorityDisinherit+0xd4>)
  54473. 8016b0c: 681b ldr r3, [r3, #0]
  54474. 8016b0e: 693a ldr r2, [r7, #16]
  54475. 8016b10: 429a cmp r2, r3
  54476. 8016b12: d00b beq.n 8016b2c <xTaskPriorityDisinherit+0x38>
  54477. __asm volatile
  54478. 8016b14: f04f 0350 mov.w r3, #80 @ 0x50
  54479. 8016b18: f383 8811 msr BASEPRI, r3
  54480. 8016b1c: f3bf 8f6f isb sy
  54481. 8016b20: f3bf 8f4f dsb sy
  54482. 8016b24: 60fb str r3, [r7, #12]
  54483. }
  54484. 8016b26: bf00 nop
  54485. 8016b28: bf00 nop
  54486. 8016b2a: e7fd b.n 8016b28 <xTaskPriorityDisinherit+0x34>
  54487. configASSERT( pxTCB->uxMutexesHeld );
  54488. 8016b2c: 693b ldr r3, [r7, #16]
  54489. 8016b2e: 6d1b ldr r3, [r3, #80] @ 0x50
  54490. 8016b30: 2b00 cmp r3, #0
  54491. 8016b32: d10b bne.n 8016b4c <xTaskPriorityDisinherit+0x58>
  54492. __asm volatile
  54493. 8016b34: f04f 0350 mov.w r3, #80 @ 0x50
  54494. 8016b38: f383 8811 msr BASEPRI, r3
  54495. 8016b3c: f3bf 8f6f isb sy
  54496. 8016b40: f3bf 8f4f dsb sy
  54497. 8016b44: 60bb str r3, [r7, #8]
  54498. }
  54499. 8016b46: bf00 nop
  54500. 8016b48: bf00 nop
  54501. 8016b4a: e7fd b.n 8016b48 <xTaskPriorityDisinherit+0x54>
  54502. ( pxTCB->uxMutexesHeld )--;
  54503. 8016b4c: 693b ldr r3, [r7, #16]
  54504. 8016b4e: 6d1b ldr r3, [r3, #80] @ 0x50
  54505. 8016b50: 1e5a subs r2, r3, #1
  54506. 8016b52: 693b ldr r3, [r7, #16]
  54507. 8016b54: 651a str r2, [r3, #80] @ 0x50
  54508. /* Has the holder of the mutex inherited the priority of another
  54509. task? */
  54510. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  54511. 8016b56: 693b ldr r3, [r7, #16]
  54512. 8016b58: 6ada ldr r2, [r3, #44] @ 0x2c
  54513. 8016b5a: 693b ldr r3, [r7, #16]
  54514. 8016b5c: 6cdb ldr r3, [r3, #76] @ 0x4c
  54515. 8016b5e: 429a cmp r2, r3
  54516. 8016b60: d02c beq.n 8016bbc <xTaskPriorityDisinherit+0xc8>
  54517. {
  54518. /* Only disinherit if no other mutexes are held. */
  54519. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  54520. 8016b62: 693b ldr r3, [r7, #16]
  54521. 8016b64: 6d1b ldr r3, [r3, #80] @ 0x50
  54522. 8016b66: 2b00 cmp r3, #0
  54523. 8016b68: d128 bne.n 8016bbc <xTaskPriorityDisinherit+0xc8>
  54524. /* A task can only have an inherited priority if it holds
  54525. the mutex. If the mutex is held by a task then it cannot be
  54526. given from an interrupt, and if a mutex is given by the
  54527. holding task then it must be the running state task. Remove
  54528. the holding task from the ready/delayed list. */
  54529. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54530. 8016b6a: 693b ldr r3, [r7, #16]
  54531. 8016b6c: 3304 adds r3, #4
  54532. 8016b6e: 4618 mov r0, r3
  54533. 8016b70: f7fd ff1c bl 80149ac <uxListRemove>
  54534. }
  54535. /* Disinherit the priority before adding the task into the
  54536. new ready list. */
  54537. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54538. pxTCB->uxPriority = pxTCB->uxBasePriority;
  54539. 8016b74: 693b ldr r3, [r7, #16]
  54540. 8016b76: 6cda ldr r2, [r3, #76] @ 0x4c
  54541. 8016b78: 693b ldr r3, [r7, #16]
  54542. 8016b7a: 62da str r2, [r3, #44] @ 0x2c
  54543. /* Reset the event list item value. It cannot be in use for
  54544. any other purpose if this task is running, and it must be
  54545. running to give back the mutex. */
  54546. 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. */
  54547. 8016b7c: 693b ldr r3, [r7, #16]
  54548. 8016b7e: 6adb ldr r3, [r3, #44] @ 0x2c
  54549. 8016b80: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54550. 8016b84: 693b ldr r3, [r7, #16]
  54551. 8016b86: 619a str r2, [r3, #24]
  54552. prvAddTaskToReadyList( pxTCB );
  54553. 8016b88: 693b ldr r3, [r7, #16]
  54554. 8016b8a: 6ada ldr r2, [r3, #44] @ 0x2c
  54555. 8016b8c: 4b0f ldr r3, [pc, #60] @ (8016bcc <xTaskPriorityDisinherit+0xd8>)
  54556. 8016b8e: 681b ldr r3, [r3, #0]
  54557. 8016b90: 429a cmp r2, r3
  54558. 8016b92: d903 bls.n 8016b9c <xTaskPriorityDisinherit+0xa8>
  54559. 8016b94: 693b ldr r3, [r7, #16]
  54560. 8016b96: 6adb ldr r3, [r3, #44] @ 0x2c
  54561. 8016b98: 4a0c ldr r2, [pc, #48] @ (8016bcc <xTaskPriorityDisinherit+0xd8>)
  54562. 8016b9a: 6013 str r3, [r2, #0]
  54563. 8016b9c: 693b ldr r3, [r7, #16]
  54564. 8016b9e: 6ada ldr r2, [r3, #44] @ 0x2c
  54565. 8016ba0: 4613 mov r3, r2
  54566. 8016ba2: 009b lsls r3, r3, #2
  54567. 8016ba4: 4413 add r3, r2
  54568. 8016ba6: 009b lsls r3, r3, #2
  54569. 8016ba8: 4a09 ldr r2, [pc, #36] @ (8016bd0 <xTaskPriorityDisinherit+0xdc>)
  54570. 8016baa: 441a add r2, r3
  54571. 8016bac: 693b ldr r3, [r7, #16]
  54572. 8016bae: 3304 adds r3, #4
  54573. 8016bb0: 4619 mov r1, r3
  54574. 8016bb2: 4610 mov r0, r2
  54575. 8016bb4: f7fd fe9d bl 80148f2 <vListInsertEnd>
  54576. in an order different to that in which they were taken.
  54577. If a context switch did not occur when the first mutex was
  54578. returned, even if a task was waiting on it, then a context
  54579. switch should occur when the last mutex is returned whether
  54580. a task is waiting on it or not. */
  54581. xReturn = pdTRUE;
  54582. 8016bb8: 2301 movs r3, #1
  54583. 8016bba: 617b str r3, [r7, #20]
  54584. else
  54585. {
  54586. mtCOVERAGE_TEST_MARKER();
  54587. }
  54588. return xReturn;
  54589. 8016bbc: 697b ldr r3, [r7, #20]
  54590. }
  54591. 8016bbe: 4618 mov r0, r3
  54592. 8016bc0: 3718 adds r7, #24
  54593. 8016bc2: 46bd mov sp, r7
  54594. 8016bc4: bd80 pop {r7, pc}
  54595. 8016bc6: bf00 nop
  54596. 8016bc8: 240029f8 .word 0x240029f8
  54597. 8016bcc: 24002ed4 .word 0x24002ed4
  54598. 8016bd0: 240029fc .word 0x240029fc
  54599. 08016bd4 <vTaskPriorityDisinheritAfterTimeout>:
  54600. /*-----------------------------------------------------------*/
  54601. #if ( configUSE_MUTEXES == 1 )
  54602. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  54603. {
  54604. 8016bd4: b580 push {r7, lr}
  54605. 8016bd6: b088 sub sp, #32
  54606. 8016bd8: af00 add r7, sp, #0
  54607. 8016bda: 6078 str r0, [r7, #4]
  54608. 8016bdc: 6039 str r1, [r7, #0]
  54609. TCB_t * const pxTCB = pxMutexHolder;
  54610. 8016bde: 687b ldr r3, [r7, #4]
  54611. 8016be0: 61bb str r3, [r7, #24]
  54612. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  54613. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  54614. 8016be2: 2301 movs r3, #1
  54615. 8016be4: 617b str r3, [r7, #20]
  54616. if( pxMutexHolder != NULL )
  54617. 8016be6: 687b ldr r3, [r7, #4]
  54618. 8016be8: 2b00 cmp r3, #0
  54619. 8016bea: d06c beq.n 8016cc6 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54620. {
  54621. /* If pxMutexHolder is not NULL then the holder must hold at least
  54622. one mutex. */
  54623. configASSERT( pxTCB->uxMutexesHeld );
  54624. 8016bec: 69bb ldr r3, [r7, #24]
  54625. 8016bee: 6d1b ldr r3, [r3, #80] @ 0x50
  54626. 8016bf0: 2b00 cmp r3, #0
  54627. 8016bf2: d10b bne.n 8016c0c <vTaskPriorityDisinheritAfterTimeout+0x38>
  54628. __asm volatile
  54629. 8016bf4: f04f 0350 mov.w r3, #80 @ 0x50
  54630. 8016bf8: f383 8811 msr BASEPRI, r3
  54631. 8016bfc: f3bf 8f6f isb sy
  54632. 8016c00: f3bf 8f4f dsb sy
  54633. 8016c04: 60fb str r3, [r7, #12]
  54634. }
  54635. 8016c06: bf00 nop
  54636. 8016c08: bf00 nop
  54637. 8016c0a: e7fd b.n 8016c08 <vTaskPriorityDisinheritAfterTimeout+0x34>
  54638. /* Determine the priority to which the priority of the task that
  54639. holds the mutex should be set. This will be the greater of the
  54640. holding task's base priority and the priority of the highest
  54641. priority task that is waiting to obtain the mutex. */
  54642. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  54643. 8016c0c: 69bb ldr r3, [r7, #24]
  54644. 8016c0e: 6cdb ldr r3, [r3, #76] @ 0x4c
  54645. 8016c10: 683a ldr r2, [r7, #0]
  54646. 8016c12: 429a cmp r2, r3
  54647. 8016c14: d902 bls.n 8016c1c <vTaskPriorityDisinheritAfterTimeout+0x48>
  54648. {
  54649. uxPriorityToUse = uxHighestPriorityWaitingTask;
  54650. 8016c16: 683b ldr r3, [r7, #0]
  54651. 8016c18: 61fb str r3, [r7, #28]
  54652. 8016c1a: e002 b.n 8016c22 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  54653. }
  54654. else
  54655. {
  54656. uxPriorityToUse = pxTCB->uxBasePriority;
  54657. 8016c1c: 69bb ldr r3, [r7, #24]
  54658. 8016c1e: 6cdb ldr r3, [r3, #76] @ 0x4c
  54659. 8016c20: 61fb str r3, [r7, #28]
  54660. }
  54661. /* Does the priority need to change? */
  54662. if( pxTCB->uxPriority != uxPriorityToUse )
  54663. 8016c22: 69bb ldr r3, [r7, #24]
  54664. 8016c24: 6adb ldr r3, [r3, #44] @ 0x2c
  54665. 8016c26: 69fa ldr r2, [r7, #28]
  54666. 8016c28: 429a cmp r2, r3
  54667. 8016c2a: d04c beq.n 8016cc6 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54668. {
  54669. /* Only disinherit if no other mutexes are held. This is a
  54670. simplification in the priority inheritance implementation. If
  54671. the task that holds the mutex is also holding other mutexes then
  54672. the other mutexes may have caused the priority inheritance. */
  54673. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  54674. 8016c2c: 69bb ldr r3, [r7, #24]
  54675. 8016c2e: 6d1b ldr r3, [r3, #80] @ 0x50
  54676. 8016c30: 697a ldr r2, [r7, #20]
  54677. 8016c32: 429a cmp r2, r3
  54678. 8016c34: d147 bne.n 8016cc6 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54679. {
  54680. /* If a task has timed out because it already holds the
  54681. mutex it was trying to obtain then it cannot of inherited
  54682. its own priority. */
  54683. configASSERT( pxTCB != pxCurrentTCB );
  54684. 8016c36: 4b26 ldr r3, [pc, #152] @ (8016cd0 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  54685. 8016c38: 681b ldr r3, [r3, #0]
  54686. 8016c3a: 69ba ldr r2, [r7, #24]
  54687. 8016c3c: 429a cmp r2, r3
  54688. 8016c3e: d10b bne.n 8016c58 <vTaskPriorityDisinheritAfterTimeout+0x84>
  54689. __asm volatile
  54690. 8016c40: f04f 0350 mov.w r3, #80 @ 0x50
  54691. 8016c44: f383 8811 msr BASEPRI, r3
  54692. 8016c48: f3bf 8f6f isb sy
  54693. 8016c4c: f3bf 8f4f dsb sy
  54694. 8016c50: 60bb str r3, [r7, #8]
  54695. }
  54696. 8016c52: bf00 nop
  54697. 8016c54: bf00 nop
  54698. 8016c56: e7fd b.n 8016c54 <vTaskPriorityDisinheritAfterTimeout+0x80>
  54699. /* Disinherit the priority, remembering the previous
  54700. priority to facilitate determining the subject task's
  54701. state. */
  54702. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  54703. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  54704. 8016c58: 69bb ldr r3, [r7, #24]
  54705. 8016c5a: 6adb ldr r3, [r3, #44] @ 0x2c
  54706. 8016c5c: 613b str r3, [r7, #16]
  54707. pxTCB->uxPriority = uxPriorityToUse;
  54708. 8016c5e: 69bb ldr r3, [r7, #24]
  54709. 8016c60: 69fa ldr r2, [r7, #28]
  54710. 8016c62: 62da str r2, [r3, #44] @ 0x2c
  54711. /* Only reset the event list item value if the value is not
  54712. being used for anything else. */
  54713. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  54714. 8016c64: 69bb ldr r3, [r7, #24]
  54715. 8016c66: 699b ldr r3, [r3, #24]
  54716. 8016c68: 2b00 cmp r3, #0
  54717. 8016c6a: db04 blt.n 8016c76 <vTaskPriorityDisinheritAfterTimeout+0xa2>
  54718. {
  54719. 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. */
  54720. 8016c6c: 69fb ldr r3, [r7, #28]
  54721. 8016c6e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  54722. 8016c72: 69bb ldr r3, [r7, #24]
  54723. 8016c74: 619a str r2, [r3, #24]
  54724. then the task that holds the mutex could be in either the
  54725. Ready, Blocked or Suspended states. Only remove the task
  54726. from its current state list if it is in the Ready state as
  54727. the task's priority is going to change and there is one
  54728. Ready list per priority. */
  54729. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  54730. 8016c76: 69bb ldr r3, [r7, #24]
  54731. 8016c78: 6959 ldr r1, [r3, #20]
  54732. 8016c7a: 693a ldr r2, [r7, #16]
  54733. 8016c7c: 4613 mov r3, r2
  54734. 8016c7e: 009b lsls r3, r3, #2
  54735. 8016c80: 4413 add r3, r2
  54736. 8016c82: 009b lsls r3, r3, #2
  54737. 8016c84: 4a13 ldr r2, [pc, #76] @ (8016cd4 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54738. 8016c86: 4413 add r3, r2
  54739. 8016c88: 4299 cmp r1, r3
  54740. 8016c8a: d11c bne.n 8016cc6 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  54741. {
  54742. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  54743. 8016c8c: 69bb ldr r3, [r7, #24]
  54744. 8016c8e: 3304 adds r3, #4
  54745. 8016c90: 4618 mov r0, r3
  54746. 8016c92: f7fd fe8b bl 80149ac <uxListRemove>
  54747. else
  54748. {
  54749. mtCOVERAGE_TEST_MARKER();
  54750. }
  54751. prvAddTaskToReadyList( pxTCB );
  54752. 8016c96: 69bb ldr r3, [r7, #24]
  54753. 8016c98: 6ada ldr r2, [r3, #44] @ 0x2c
  54754. 8016c9a: 4b0f ldr r3, [pc, #60] @ (8016cd8 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54755. 8016c9c: 681b ldr r3, [r3, #0]
  54756. 8016c9e: 429a cmp r2, r3
  54757. 8016ca0: d903 bls.n 8016caa <vTaskPriorityDisinheritAfterTimeout+0xd6>
  54758. 8016ca2: 69bb ldr r3, [r7, #24]
  54759. 8016ca4: 6adb ldr r3, [r3, #44] @ 0x2c
  54760. 8016ca6: 4a0c ldr r2, [pc, #48] @ (8016cd8 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  54761. 8016ca8: 6013 str r3, [r2, #0]
  54762. 8016caa: 69bb ldr r3, [r7, #24]
  54763. 8016cac: 6ada ldr r2, [r3, #44] @ 0x2c
  54764. 8016cae: 4613 mov r3, r2
  54765. 8016cb0: 009b lsls r3, r3, #2
  54766. 8016cb2: 4413 add r3, r2
  54767. 8016cb4: 009b lsls r3, r3, #2
  54768. 8016cb6: 4a07 ldr r2, [pc, #28] @ (8016cd4 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  54769. 8016cb8: 441a add r2, r3
  54770. 8016cba: 69bb ldr r3, [r7, #24]
  54771. 8016cbc: 3304 adds r3, #4
  54772. 8016cbe: 4619 mov r1, r3
  54773. 8016cc0: 4610 mov r0, r2
  54774. 8016cc2: f7fd fe16 bl 80148f2 <vListInsertEnd>
  54775. }
  54776. else
  54777. {
  54778. mtCOVERAGE_TEST_MARKER();
  54779. }
  54780. }
  54781. 8016cc6: bf00 nop
  54782. 8016cc8: 3720 adds r7, #32
  54783. 8016cca: 46bd mov sp, r7
  54784. 8016ccc: bd80 pop {r7, pc}
  54785. 8016cce: bf00 nop
  54786. 8016cd0: 240029f8 .word 0x240029f8
  54787. 8016cd4: 240029fc .word 0x240029fc
  54788. 8016cd8: 24002ed4 .word 0x24002ed4
  54789. 08016cdc <pvTaskIncrementMutexHeldCount>:
  54790. /*-----------------------------------------------------------*/
  54791. #if ( configUSE_MUTEXES == 1 )
  54792. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  54793. {
  54794. 8016cdc: b480 push {r7}
  54795. 8016cde: af00 add r7, sp, #0
  54796. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  54797. then pxCurrentTCB will be NULL. */
  54798. if( pxCurrentTCB != NULL )
  54799. 8016ce0: 4b07 ldr r3, [pc, #28] @ (8016d00 <pvTaskIncrementMutexHeldCount+0x24>)
  54800. 8016ce2: 681b ldr r3, [r3, #0]
  54801. 8016ce4: 2b00 cmp r3, #0
  54802. 8016ce6: d004 beq.n 8016cf2 <pvTaskIncrementMutexHeldCount+0x16>
  54803. {
  54804. ( pxCurrentTCB->uxMutexesHeld )++;
  54805. 8016ce8: 4b05 ldr r3, [pc, #20] @ (8016d00 <pvTaskIncrementMutexHeldCount+0x24>)
  54806. 8016cea: 681b ldr r3, [r3, #0]
  54807. 8016cec: 6d1a ldr r2, [r3, #80] @ 0x50
  54808. 8016cee: 3201 adds r2, #1
  54809. 8016cf0: 651a str r2, [r3, #80] @ 0x50
  54810. }
  54811. return pxCurrentTCB;
  54812. 8016cf2: 4b03 ldr r3, [pc, #12] @ (8016d00 <pvTaskIncrementMutexHeldCount+0x24>)
  54813. 8016cf4: 681b ldr r3, [r3, #0]
  54814. }
  54815. 8016cf6: 4618 mov r0, r3
  54816. 8016cf8: 46bd mov sp, r7
  54817. 8016cfa: f85d 7b04 ldr.w r7, [sp], #4
  54818. 8016cfe: 4770 bx lr
  54819. 8016d00: 240029f8 .word 0x240029f8
  54820. 08016d04 <xTaskNotifyWait>:
  54821. /*-----------------------------------------------------------*/
  54822. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54823. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  54824. {
  54825. 8016d04: b580 push {r7, lr}
  54826. 8016d06: b086 sub sp, #24
  54827. 8016d08: af00 add r7, sp, #0
  54828. 8016d0a: 60f8 str r0, [r7, #12]
  54829. 8016d0c: 60b9 str r1, [r7, #8]
  54830. 8016d0e: 607a str r2, [r7, #4]
  54831. 8016d10: 603b str r3, [r7, #0]
  54832. BaseType_t xReturn;
  54833. taskENTER_CRITICAL();
  54834. 8016d12: f000 fff1 bl 8017cf8 <vPortEnterCritical>
  54835. {
  54836. /* Only block if a notification is not already pending. */
  54837. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54838. 8016d16: 4b29 ldr r3, [pc, #164] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54839. 8016d18: 681b ldr r3, [r3, #0]
  54840. 8016d1a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54841. 8016d1e: b2db uxtb r3, r3
  54842. 8016d20: 2b02 cmp r3, #2
  54843. 8016d22: d01c beq.n 8016d5e <xTaskNotifyWait+0x5a>
  54844. {
  54845. /* Clear bits in the task's notification value as bits may get
  54846. set by the notifying task or interrupt. This can be used to
  54847. clear the value to zero. */
  54848. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  54849. 8016d24: 4b25 ldr r3, [pc, #148] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54850. 8016d26: 681b ldr r3, [r3, #0]
  54851. 8016d28: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54852. 8016d2c: 68fa ldr r2, [r7, #12]
  54853. 8016d2e: 43d2 mvns r2, r2
  54854. 8016d30: 400a ands r2, r1
  54855. 8016d32: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54856. /* Mark this task as waiting for a notification. */
  54857. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  54858. 8016d36: 4b21 ldr r3, [pc, #132] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54859. 8016d38: 681b ldr r3, [r3, #0]
  54860. 8016d3a: 2201 movs r2, #1
  54861. 8016d3c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54862. if( xTicksToWait > ( TickType_t ) 0 )
  54863. 8016d40: 683b ldr r3, [r7, #0]
  54864. 8016d42: 2b00 cmp r3, #0
  54865. 8016d44: d00b beq.n 8016d5e <xTaskNotifyWait+0x5a>
  54866. {
  54867. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  54868. 8016d46: 2101 movs r1, #1
  54869. 8016d48: 6838 ldr r0, [r7, #0]
  54870. 8016d4a: f000 fa09 bl 8017160 <prvAddCurrentTaskToDelayedList>
  54871. /* All ports are written to allow a yield in a critical
  54872. section (some will yield immediately, others wait until the
  54873. critical section exits) - but it is not something that
  54874. application code should ever do. */
  54875. portYIELD_WITHIN_API();
  54876. 8016d4e: 4b1c ldr r3, [pc, #112] @ (8016dc0 <xTaskNotifyWait+0xbc>)
  54877. 8016d50: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54878. 8016d54: 601a str r2, [r3, #0]
  54879. 8016d56: f3bf 8f4f dsb sy
  54880. 8016d5a: f3bf 8f6f isb sy
  54881. else
  54882. {
  54883. mtCOVERAGE_TEST_MARKER();
  54884. }
  54885. }
  54886. taskEXIT_CRITICAL();
  54887. 8016d5e: f000 fffd bl 8017d5c <vPortExitCritical>
  54888. taskENTER_CRITICAL();
  54889. 8016d62: f000 ffc9 bl 8017cf8 <vPortEnterCritical>
  54890. {
  54891. traceTASK_NOTIFY_WAIT();
  54892. if( pulNotificationValue != NULL )
  54893. 8016d66: 687b ldr r3, [r7, #4]
  54894. 8016d68: 2b00 cmp r3, #0
  54895. 8016d6a: d005 beq.n 8016d78 <xTaskNotifyWait+0x74>
  54896. {
  54897. /* Output the current notification value, which may or may not
  54898. have changed. */
  54899. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  54900. 8016d6c: 4b13 ldr r3, [pc, #76] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54901. 8016d6e: 681b ldr r3, [r3, #0]
  54902. 8016d70: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  54903. 8016d74: 687b ldr r3, [r7, #4]
  54904. 8016d76: 601a str r2, [r3, #0]
  54905. /* If ucNotifyValue is set then either the task never entered the
  54906. blocked state (because a notification was already pending) or the
  54907. task unblocked because of a notification. Otherwise the task
  54908. unblocked because of a timeout. */
  54909. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  54910. 8016d78: 4b10 ldr r3, [pc, #64] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54911. 8016d7a: 681b ldr r3, [r3, #0]
  54912. 8016d7c: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  54913. 8016d80: b2db uxtb r3, r3
  54914. 8016d82: 2b02 cmp r3, #2
  54915. 8016d84: d002 beq.n 8016d8c <xTaskNotifyWait+0x88>
  54916. {
  54917. /* A notification was not received. */
  54918. xReturn = pdFALSE;
  54919. 8016d86: 2300 movs r3, #0
  54920. 8016d88: 617b str r3, [r7, #20]
  54921. 8016d8a: e00a b.n 8016da2 <xTaskNotifyWait+0x9e>
  54922. }
  54923. else
  54924. {
  54925. /* A notification was already pending or a notification was
  54926. received while the task was waiting. */
  54927. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  54928. 8016d8c: 4b0b ldr r3, [pc, #44] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54929. 8016d8e: 681b ldr r3, [r3, #0]
  54930. 8016d90: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  54931. 8016d94: 68ba ldr r2, [r7, #8]
  54932. 8016d96: 43d2 mvns r2, r2
  54933. 8016d98: 400a ands r2, r1
  54934. 8016d9a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  54935. xReturn = pdTRUE;
  54936. 8016d9e: 2301 movs r3, #1
  54937. 8016da0: 617b str r3, [r7, #20]
  54938. }
  54939. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  54940. 8016da2: 4b06 ldr r3, [pc, #24] @ (8016dbc <xTaskNotifyWait+0xb8>)
  54941. 8016da4: 681b ldr r3, [r3, #0]
  54942. 8016da6: 2200 movs r2, #0
  54943. 8016da8: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  54944. }
  54945. taskEXIT_CRITICAL();
  54946. 8016dac: f000 ffd6 bl 8017d5c <vPortExitCritical>
  54947. return xReturn;
  54948. 8016db0: 697b ldr r3, [r7, #20]
  54949. }
  54950. 8016db2: 4618 mov r0, r3
  54951. 8016db4: 3718 adds r7, #24
  54952. 8016db6: 46bd mov sp, r7
  54953. 8016db8: bd80 pop {r7, pc}
  54954. 8016dba: bf00 nop
  54955. 8016dbc: 240029f8 .word 0x240029f8
  54956. 8016dc0: e000ed04 .word 0xe000ed04
  54957. 08016dc4 <xTaskGenericNotify>:
  54958. /*-----------------------------------------------------------*/
  54959. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  54960. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  54961. {
  54962. 8016dc4: b580 push {r7, lr}
  54963. 8016dc6: b08a sub sp, #40 @ 0x28
  54964. 8016dc8: af00 add r7, sp, #0
  54965. 8016dca: 60f8 str r0, [r7, #12]
  54966. 8016dcc: 60b9 str r1, [r7, #8]
  54967. 8016dce: 603b str r3, [r7, #0]
  54968. 8016dd0: 4613 mov r3, r2
  54969. 8016dd2: 71fb strb r3, [r7, #7]
  54970. TCB_t * pxTCB;
  54971. BaseType_t xReturn = pdPASS;
  54972. 8016dd4: 2301 movs r3, #1
  54973. 8016dd6: 627b str r3, [r7, #36] @ 0x24
  54974. uint8_t ucOriginalNotifyState;
  54975. configASSERT( xTaskToNotify );
  54976. 8016dd8: 68fb ldr r3, [r7, #12]
  54977. 8016dda: 2b00 cmp r3, #0
  54978. 8016ddc: d10b bne.n 8016df6 <xTaskGenericNotify+0x32>
  54979. __asm volatile
  54980. 8016dde: f04f 0350 mov.w r3, #80 @ 0x50
  54981. 8016de2: f383 8811 msr BASEPRI, r3
  54982. 8016de6: f3bf 8f6f isb sy
  54983. 8016dea: f3bf 8f4f dsb sy
  54984. 8016dee: 61bb str r3, [r7, #24]
  54985. }
  54986. 8016df0: bf00 nop
  54987. 8016df2: bf00 nop
  54988. 8016df4: e7fd b.n 8016df2 <xTaskGenericNotify+0x2e>
  54989. pxTCB = xTaskToNotify;
  54990. 8016df6: 68fb ldr r3, [r7, #12]
  54991. 8016df8: 623b str r3, [r7, #32]
  54992. taskENTER_CRITICAL();
  54993. 8016dfa: f000 ff7d bl 8017cf8 <vPortEnterCritical>
  54994. {
  54995. if( pulPreviousNotificationValue != NULL )
  54996. 8016dfe: 683b ldr r3, [r7, #0]
  54997. 8016e00: 2b00 cmp r3, #0
  54998. 8016e02: d004 beq.n 8016e0e <xTaskGenericNotify+0x4a>
  54999. {
  55000. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55001. 8016e04: 6a3b ldr r3, [r7, #32]
  55002. 8016e06: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55003. 8016e0a: 683b ldr r3, [r7, #0]
  55004. 8016e0c: 601a str r2, [r3, #0]
  55005. }
  55006. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55007. 8016e0e: 6a3b ldr r3, [r7, #32]
  55008. 8016e10: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55009. 8016e14: 77fb strb r3, [r7, #31]
  55010. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55011. 8016e16: 6a3b ldr r3, [r7, #32]
  55012. 8016e18: 2202 movs r2, #2
  55013. 8016e1a: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55014. switch( eAction )
  55015. 8016e1e: 79fb ldrb r3, [r7, #7]
  55016. 8016e20: 2b04 cmp r3, #4
  55017. 8016e22: d82e bhi.n 8016e82 <xTaskGenericNotify+0xbe>
  55018. 8016e24: a201 add r2, pc, #4 @ (adr r2, 8016e2c <xTaskGenericNotify+0x68>)
  55019. 8016e26: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55020. 8016e2a: bf00 nop
  55021. 8016e2c: 08016ea7 .word 0x08016ea7
  55022. 8016e30: 08016e41 .word 0x08016e41
  55023. 8016e34: 08016e53 .word 0x08016e53
  55024. 8016e38: 08016e63 .word 0x08016e63
  55025. 8016e3c: 08016e6d .word 0x08016e6d
  55026. {
  55027. case eSetBits :
  55028. pxTCB->ulNotifiedValue |= ulValue;
  55029. 8016e40: 6a3b ldr r3, [r7, #32]
  55030. 8016e42: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55031. 8016e46: 68bb ldr r3, [r7, #8]
  55032. 8016e48: 431a orrs r2, r3
  55033. 8016e4a: 6a3b ldr r3, [r7, #32]
  55034. 8016e4c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55035. break;
  55036. 8016e50: e02c b.n 8016eac <xTaskGenericNotify+0xe8>
  55037. case eIncrement :
  55038. ( pxTCB->ulNotifiedValue )++;
  55039. 8016e52: 6a3b ldr r3, [r7, #32]
  55040. 8016e54: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55041. 8016e58: 1c5a adds r2, r3, #1
  55042. 8016e5a: 6a3b ldr r3, [r7, #32]
  55043. 8016e5c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55044. break;
  55045. 8016e60: e024 b.n 8016eac <xTaskGenericNotify+0xe8>
  55046. case eSetValueWithOverwrite :
  55047. pxTCB->ulNotifiedValue = ulValue;
  55048. 8016e62: 6a3b ldr r3, [r7, #32]
  55049. 8016e64: 68ba ldr r2, [r7, #8]
  55050. 8016e66: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55051. break;
  55052. 8016e6a: e01f b.n 8016eac <xTaskGenericNotify+0xe8>
  55053. case eSetValueWithoutOverwrite :
  55054. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55055. 8016e6c: 7ffb ldrb r3, [r7, #31]
  55056. 8016e6e: 2b02 cmp r3, #2
  55057. 8016e70: d004 beq.n 8016e7c <xTaskGenericNotify+0xb8>
  55058. {
  55059. pxTCB->ulNotifiedValue = ulValue;
  55060. 8016e72: 6a3b ldr r3, [r7, #32]
  55061. 8016e74: 68ba ldr r2, [r7, #8]
  55062. 8016e76: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55063. else
  55064. {
  55065. /* The value could not be written to the task. */
  55066. xReturn = pdFAIL;
  55067. }
  55068. break;
  55069. 8016e7a: e017 b.n 8016eac <xTaskGenericNotify+0xe8>
  55070. xReturn = pdFAIL;
  55071. 8016e7c: 2300 movs r3, #0
  55072. 8016e7e: 627b str r3, [r7, #36] @ 0x24
  55073. break;
  55074. 8016e80: e014 b.n 8016eac <xTaskGenericNotify+0xe8>
  55075. default:
  55076. /* Should not get here if all enums are handled.
  55077. Artificially force an assert by testing a value the
  55078. compiler can't assume is const. */
  55079. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55080. 8016e82: 6a3b ldr r3, [r7, #32]
  55081. 8016e84: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55082. 8016e88: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55083. 8016e8c: d00d beq.n 8016eaa <xTaskGenericNotify+0xe6>
  55084. __asm volatile
  55085. 8016e8e: f04f 0350 mov.w r3, #80 @ 0x50
  55086. 8016e92: f383 8811 msr BASEPRI, r3
  55087. 8016e96: f3bf 8f6f isb sy
  55088. 8016e9a: f3bf 8f4f dsb sy
  55089. 8016e9e: 617b str r3, [r7, #20]
  55090. }
  55091. 8016ea0: bf00 nop
  55092. 8016ea2: bf00 nop
  55093. 8016ea4: e7fd b.n 8016ea2 <xTaskGenericNotify+0xde>
  55094. break;
  55095. 8016ea6: bf00 nop
  55096. 8016ea8: e000 b.n 8016eac <xTaskGenericNotify+0xe8>
  55097. break;
  55098. 8016eaa: bf00 nop
  55099. traceTASK_NOTIFY();
  55100. /* If the task is in the blocked state specifically to wait for a
  55101. notification then unblock it now. */
  55102. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55103. 8016eac: 7ffb ldrb r3, [r7, #31]
  55104. 8016eae: 2b01 cmp r3, #1
  55105. 8016eb0: d13b bne.n 8016f2a <xTaskGenericNotify+0x166>
  55106. {
  55107. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55108. 8016eb2: 6a3b ldr r3, [r7, #32]
  55109. 8016eb4: 3304 adds r3, #4
  55110. 8016eb6: 4618 mov r0, r3
  55111. 8016eb8: f7fd fd78 bl 80149ac <uxListRemove>
  55112. prvAddTaskToReadyList( pxTCB );
  55113. 8016ebc: 6a3b ldr r3, [r7, #32]
  55114. 8016ebe: 6ada ldr r2, [r3, #44] @ 0x2c
  55115. 8016ec0: 4b1d ldr r3, [pc, #116] @ (8016f38 <xTaskGenericNotify+0x174>)
  55116. 8016ec2: 681b ldr r3, [r3, #0]
  55117. 8016ec4: 429a cmp r2, r3
  55118. 8016ec6: d903 bls.n 8016ed0 <xTaskGenericNotify+0x10c>
  55119. 8016ec8: 6a3b ldr r3, [r7, #32]
  55120. 8016eca: 6adb ldr r3, [r3, #44] @ 0x2c
  55121. 8016ecc: 4a1a ldr r2, [pc, #104] @ (8016f38 <xTaskGenericNotify+0x174>)
  55122. 8016ece: 6013 str r3, [r2, #0]
  55123. 8016ed0: 6a3b ldr r3, [r7, #32]
  55124. 8016ed2: 6ada ldr r2, [r3, #44] @ 0x2c
  55125. 8016ed4: 4613 mov r3, r2
  55126. 8016ed6: 009b lsls r3, r3, #2
  55127. 8016ed8: 4413 add r3, r2
  55128. 8016eda: 009b lsls r3, r3, #2
  55129. 8016edc: 4a17 ldr r2, [pc, #92] @ (8016f3c <xTaskGenericNotify+0x178>)
  55130. 8016ede: 441a add r2, r3
  55131. 8016ee0: 6a3b ldr r3, [r7, #32]
  55132. 8016ee2: 3304 adds r3, #4
  55133. 8016ee4: 4619 mov r1, r3
  55134. 8016ee6: 4610 mov r0, r2
  55135. 8016ee8: f7fd fd03 bl 80148f2 <vListInsertEnd>
  55136. /* The task should not have been on an event list. */
  55137. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55138. 8016eec: 6a3b ldr r3, [r7, #32]
  55139. 8016eee: 6a9b ldr r3, [r3, #40] @ 0x28
  55140. 8016ef0: 2b00 cmp r3, #0
  55141. 8016ef2: d00b beq.n 8016f0c <xTaskGenericNotify+0x148>
  55142. __asm volatile
  55143. 8016ef4: f04f 0350 mov.w r3, #80 @ 0x50
  55144. 8016ef8: f383 8811 msr BASEPRI, r3
  55145. 8016efc: f3bf 8f6f isb sy
  55146. 8016f00: f3bf 8f4f dsb sy
  55147. 8016f04: 613b str r3, [r7, #16]
  55148. }
  55149. 8016f06: bf00 nop
  55150. 8016f08: bf00 nop
  55151. 8016f0a: e7fd b.n 8016f08 <xTaskGenericNotify+0x144>
  55152. earliest possible time. */
  55153. prvResetNextTaskUnblockTime();
  55154. }
  55155. #endif
  55156. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55157. 8016f0c: 6a3b ldr r3, [r7, #32]
  55158. 8016f0e: 6ada ldr r2, [r3, #44] @ 0x2c
  55159. 8016f10: 4b0b ldr r3, [pc, #44] @ (8016f40 <xTaskGenericNotify+0x17c>)
  55160. 8016f12: 681b ldr r3, [r3, #0]
  55161. 8016f14: 6adb ldr r3, [r3, #44] @ 0x2c
  55162. 8016f16: 429a cmp r2, r3
  55163. 8016f18: d907 bls.n 8016f2a <xTaskGenericNotify+0x166>
  55164. {
  55165. /* The notified task has a priority above the currently
  55166. executing task so a yield is required. */
  55167. taskYIELD_IF_USING_PREEMPTION();
  55168. 8016f1a: 4b0a ldr r3, [pc, #40] @ (8016f44 <xTaskGenericNotify+0x180>)
  55169. 8016f1c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  55170. 8016f20: 601a str r2, [r3, #0]
  55171. 8016f22: f3bf 8f4f dsb sy
  55172. 8016f26: f3bf 8f6f isb sy
  55173. else
  55174. {
  55175. mtCOVERAGE_TEST_MARKER();
  55176. }
  55177. }
  55178. taskEXIT_CRITICAL();
  55179. 8016f2a: f000 ff17 bl 8017d5c <vPortExitCritical>
  55180. return xReturn;
  55181. 8016f2e: 6a7b ldr r3, [r7, #36] @ 0x24
  55182. }
  55183. 8016f30: 4618 mov r0, r3
  55184. 8016f32: 3728 adds r7, #40 @ 0x28
  55185. 8016f34: 46bd mov sp, r7
  55186. 8016f36: bd80 pop {r7, pc}
  55187. 8016f38: 24002ed4 .word 0x24002ed4
  55188. 8016f3c: 240029fc .word 0x240029fc
  55189. 8016f40: 240029f8 .word 0x240029f8
  55190. 8016f44: e000ed04 .word 0xe000ed04
  55191. 08016f48 <xTaskGenericNotifyFromISR>:
  55192. /*-----------------------------------------------------------*/
  55193. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55194. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  55195. {
  55196. 8016f48: b580 push {r7, lr}
  55197. 8016f4a: b08e sub sp, #56 @ 0x38
  55198. 8016f4c: af00 add r7, sp, #0
  55199. 8016f4e: 60f8 str r0, [r7, #12]
  55200. 8016f50: 60b9 str r1, [r7, #8]
  55201. 8016f52: 603b str r3, [r7, #0]
  55202. 8016f54: 4613 mov r3, r2
  55203. 8016f56: 71fb strb r3, [r7, #7]
  55204. TCB_t * pxTCB;
  55205. uint8_t ucOriginalNotifyState;
  55206. BaseType_t xReturn = pdPASS;
  55207. 8016f58: 2301 movs r3, #1
  55208. 8016f5a: 637b str r3, [r7, #52] @ 0x34
  55209. UBaseType_t uxSavedInterruptStatus;
  55210. configASSERT( xTaskToNotify );
  55211. 8016f5c: 68fb ldr r3, [r7, #12]
  55212. 8016f5e: 2b00 cmp r3, #0
  55213. 8016f60: d10b bne.n 8016f7a <xTaskGenericNotifyFromISR+0x32>
  55214. __asm volatile
  55215. 8016f62: f04f 0350 mov.w r3, #80 @ 0x50
  55216. 8016f66: f383 8811 msr BASEPRI, r3
  55217. 8016f6a: f3bf 8f6f isb sy
  55218. 8016f6e: f3bf 8f4f dsb sy
  55219. 8016f72: 627b str r3, [r7, #36] @ 0x24
  55220. }
  55221. 8016f74: bf00 nop
  55222. 8016f76: bf00 nop
  55223. 8016f78: e7fd b.n 8016f76 <xTaskGenericNotifyFromISR+0x2e>
  55224. below the maximum system call interrupt priority. FreeRTOS maintains a
  55225. separate interrupt safe API to ensure interrupt entry is as fast and as
  55226. simple as possible. More information (albeit Cortex-M specific) is
  55227. provided on the following link:
  55228. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  55229. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  55230. 8016f7a: f000 ff9d bl 8017eb8 <vPortValidateInterruptPriority>
  55231. pxTCB = xTaskToNotify;
  55232. 8016f7e: 68fb ldr r3, [r7, #12]
  55233. 8016f80: 633b str r3, [r7, #48] @ 0x30
  55234. __asm volatile
  55235. 8016f82: f3ef 8211 mrs r2, BASEPRI
  55236. 8016f86: f04f 0350 mov.w r3, #80 @ 0x50
  55237. 8016f8a: f383 8811 msr BASEPRI, r3
  55238. 8016f8e: f3bf 8f6f isb sy
  55239. 8016f92: f3bf 8f4f dsb sy
  55240. 8016f96: 623a str r2, [r7, #32]
  55241. 8016f98: 61fb str r3, [r7, #28]
  55242. return ulOriginalBASEPRI;
  55243. 8016f9a: 6a3b ldr r3, [r7, #32]
  55244. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  55245. 8016f9c: 62fb str r3, [r7, #44] @ 0x2c
  55246. {
  55247. if( pulPreviousNotificationValue != NULL )
  55248. 8016f9e: 683b ldr r3, [r7, #0]
  55249. 8016fa0: 2b00 cmp r3, #0
  55250. 8016fa2: d004 beq.n 8016fae <xTaskGenericNotifyFromISR+0x66>
  55251. {
  55252. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  55253. 8016fa4: 6b3b ldr r3, [r7, #48] @ 0x30
  55254. 8016fa6: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55255. 8016faa: 683b ldr r3, [r7, #0]
  55256. 8016fac: 601a str r2, [r3, #0]
  55257. }
  55258. ucOriginalNotifyState = pxTCB->ucNotifyState;
  55259. 8016fae: 6b3b ldr r3, [r7, #48] @ 0x30
  55260. 8016fb0: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55261. 8016fb4: f887 302b strb.w r3, [r7, #43] @ 0x2b
  55262. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  55263. 8016fb8: 6b3b ldr r3, [r7, #48] @ 0x30
  55264. 8016fba: 2202 movs r2, #2
  55265. 8016fbc: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55266. switch( eAction )
  55267. 8016fc0: 79fb ldrb r3, [r7, #7]
  55268. 8016fc2: 2b04 cmp r3, #4
  55269. 8016fc4: d82e bhi.n 8017024 <xTaskGenericNotifyFromISR+0xdc>
  55270. 8016fc6: a201 add r2, pc, #4 @ (adr r2, 8016fcc <xTaskGenericNotifyFromISR+0x84>)
  55271. 8016fc8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55272. 8016fcc: 08017049 .word 0x08017049
  55273. 8016fd0: 08016fe1 .word 0x08016fe1
  55274. 8016fd4: 08016ff3 .word 0x08016ff3
  55275. 8016fd8: 08017003 .word 0x08017003
  55276. 8016fdc: 0801700d .word 0x0801700d
  55277. {
  55278. case eSetBits :
  55279. pxTCB->ulNotifiedValue |= ulValue;
  55280. 8016fe0: 6b3b ldr r3, [r7, #48] @ 0x30
  55281. 8016fe2: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  55282. 8016fe6: 68bb ldr r3, [r7, #8]
  55283. 8016fe8: 431a orrs r2, r3
  55284. 8016fea: 6b3b ldr r3, [r7, #48] @ 0x30
  55285. 8016fec: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55286. break;
  55287. 8016ff0: e02d b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55288. case eIncrement :
  55289. ( pxTCB->ulNotifiedValue )++;
  55290. 8016ff2: 6b3b ldr r3, [r7, #48] @ 0x30
  55291. 8016ff4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55292. 8016ff8: 1c5a adds r2, r3, #1
  55293. 8016ffa: 6b3b ldr r3, [r7, #48] @ 0x30
  55294. 8016ffc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55295. break;
  55296. 8017000: e025 b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55297. case eSetValueWithOverwrite :
  55298. pxTCB->ulNotifiedValue = ulValue;
  55299. 8017002: 6b3b ldr r3, [r7, #48] @ 0x30
  55300. 8017004: 68ba ldr r2, [r7, #8]
  55301. 8017006: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55302. break;
  55303. 801700a: e020 b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55304. case eSetValueWithoutOverwrite :
  55305. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  55306. 801700c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55307. 8017010: 2b02 cmp r3, #2
  55308. 8017012: d004 beq.n 801701e <xTaskGenericNotifyFromISR+0xd6>
  55309. {
  55310. pxTCB->ulNotifiedValue = ulValue;
  55311. 8017014: 6b3b ldr r3, [r7, #48] @ 0x30
  55312. 8017016: 68ba ldr r2, [r7, #8]
  55313. 8017018: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  55314. else
  55315. {
  55316. /* The value could not be written to the task. */
  55317. xReturn = pdFAIL;
  55318. }
  55319. break;
  55320. 801701c: e017 b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55321. xReturn = pdFAIL;
  55322. 801701e: 2300 movs r3, #0
  55323. 8017020: 637b str r3, [r7, #52] @ 0x34
  55324. break;
  55325. 8017022: e014 b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55326. default:
  55327. /* Should not get here if all enums are handled.
  55328. Artificially force an assert by testing a value the
  55329. compiler can't assume is const. */
  55330. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  55331. 8017024: 6b3b ldr r3, [r7, #48] @ 0x30
  55332. 8017026: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  55333. 801702a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55334. 801702e: d00d beq.n 801704c <xTaskGenericNotifyFromISR+0x104>
  55335. __asm volatile
  55336. 8017030: f04f 0350 mov.w r3, #80 @ 0x50
  55337. 8017034: f383 8811 msr BASEPRI, r3
  55338. 8017038: f3bf 8f6f isb sy
  55339. 801703c: f3bf 8f4f dsb sy
  55340. 8017040: 61bb str r3, [r7, #24]
  55341. }
  55342. 8017042: bf00 nop
  55343. 8017044: bf00 nop
  55344. 8017046: e7fd b.n 8017044 <xTaskGenericNotifyFromISR+0xfc>
  55345. break;
  55346. 8017048: bf00 nop
  55347. 801704a: e000 b.n 801704e <xTaskGenericNotifyFromISR+0x106>
  55348. break;
  55349. 801704c: bf00 nop
  55350. traceTASK_NOTIFY_FROM_ISR();
  55351. /* If the task is in the blocked state specifically to wait for a
  55352. notification then unblock it now. */
  55353. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  55354. 801704e: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  55355. 8017052: 2b01 cmp r3, #1
  55356. 8017054: d147 bne.n 80170e6 <xTaskGenericNotifyFromISR+0x19e>
  55357. {
  55358. /* The task should not have been on an event list. */
  55359. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  55360. 8017056: 6b3b ldr r3, [r7, #48] @ 0x30
  55361. 8017058: 6a9b ldr r3, [r3, #40] @ 0x28
  55362. 801705a: 2b00 cmp r3, #0
  55363. 801705c: d00b beq.n 8017076 <xTaskGenericNotifyFromISR+0x12e>
  55364. __asm volatile
  55365. 801705e: f04f 0350 mov.w r3, #80 @ 0x50
  55366. 8017062: f383 8811 msr BASEPRI, r3
  55367. 8017066: f3bf 8f6f isb sy
  55368. 801706a: f3bf 8f4f dsb sy
  55369. 801706e: 617b str r3, [r7, #20]
  55370. }
  55371. 8017070: bf00 nop
  55372. 8017072: bf00 nop
  55373. 8017074: e7fd b.n 8017072 <xTaskGenericNotifyFromISR+0x12a>
  55374. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  55375. 8017076: 4b21 ldr r3, [pc, #132] @ (80170fc <xTaskGenericNotifyFromISR+0x1b4>)
  55376. 8017078: 681b ldr r3, [r3, #0]
  55377. 801707a: 2b00 cmp r3, #0
  55378. 801707c: d11d bne.n 80170ba <xTaskGenericNotifyFromISR+0x172>
  55379. {
  55380. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  55381. 801707e: 6b3b ldr r3, [r7, #48] @ 0x30
  55382. 8017080: 3304 adds r3, #4
  55383. 8017082: 4618 mov r0, r3
  55384. 8017084: f7fd fc92 bl 80149ac <uxListRemove>
  55385. prvAddTaskToReadyList( pxTCB );
  55386. 8017088: 6b3b ldr r3, [r7, #48] @ 0x30
  55387. 801708a: 6ada ldr r2, [r3, #44] @ 0x2c
  55388. 801708c: 4b1c ldr r3, [pc, #112] @ (8017100 <xTaskGenericNotifyFromISR+0x1b8>)
  55389. 801708e: 681b ldr r3, [r3, #0]
  55390. 8017090: 429a cmp r2, r3
  55391. 8017092: d903 bls.n 801709c <xTaskGenericNotifyFromISR+0x154>
  55392. 8017094: 6b3b ldr r3, [r7, #48] @ 0x30
  55393. 8017096: 6adb ldr r3, [r3, #44] @ 0x2c
  55394. 8017098: 4a19 ldr r2, [pc, #100] @ (8017100 <xTaskGenericNotifyFromISR+0x1b8>)
  55395. 801709a: 6013 str r3, [r2, #0]
  55396. 801709c: 6b3b ldr r3, [r7, #48] @ 0x30
  55397. 801709e: 6ada ldr r2, [r3, #44] @ 0x2c
  55398. 80170a0: 4613 mov r3, r2
  55399. 80170a2: 009b lsls r3, r3, #2
  55400. 80170a4: 4413 add r3, r2
  55401. 80170a6: 009b lsls r3, r3, #2
  55402. 80170a8: 4a16 ldr r2, [pc, #88] @ (8017104 <xTaskGenericNotifyFromISR+0x1bc>)
  55403. 80170aa: 441a add r2, r3
  55404. 80170ac: 6b3b ldr r3, [r7, #48] @ 0x30
  55405. 80170ae: 3304 adds r3, #4
  55406. 80170b0: 4619 mov r1, r3
  55407. 80170b2: 4610 mov r0, r2
  55408. 80170b4: f7fd fc1d bl 80148f2 <vListInsertEnd>
  55409. 80170b8: e005 b.n 80170c6 <xTaskGenericNotifyFromISR+0x17e>
  55410. }
  55411. else
  55412. {
  55413. /* The delayed and ready lists cannot be accessed, so hold
  55414. this task pending until the scheduler is resumed. */
  55415. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  55416. 80170ba: 6b3b ldr r3, [r7, #48] @ 0x30
  55417. 80170bc: 3318 adds r3, #24
  55418. 80170be: 4619 mov r1, r3
  55419. 80170c0: 4811 ldr r0, [pc, #68] @ (8017108 <xTaskGenericNotifyFromISR+0x1c0>)
  55420. 80170c2: f7fd fc16 bl 80148f2 <vListInsertEnd>
  55421. }
  55422. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  55423. 80170c6: 6b3b ldr r3, [r7, #48] @ 0x30
  55424. 80170c8: 6ada ldr r2, [r3, #44] @ 0x2c
  55425. 80170ca: 4b10 ldr r3, [pc, #64] @ (801710c <xTaskGenericNotifyFromISR+0x1c4>)
  55426. 80170cc: 681b ldr r3, [r3, #0]
  55427. 80170ce: 6adb ldr r3, [r3, #44] @ 0x2c
  55428. 80170d0: 429a cmp r2, r3
  55429. 80170d2: d908 bls.n 80170e6 <xTaskGenericNotifyFromISR+0x19e>
  55430. {
  55431. /* The notified task has a priority above the currently
  55432. executing task so a yield is required. */
  55433. if( pxHigherPriorityTaskWoken != NULL )
  55434. 80170d4: 6c3b ldr r3, [r7, #64] @ 0x40
  55435. 80170d6: 2b00 cmp r3, #0
  55436. 80170d8: d002 beq.n 80170e0 <xTaskGenericNotifyFromISR+0x198>
  55437. {
  55438. *pxHigherPriorityTaskWoken = pdTRUE;
  55439. 80170da: 6c3b ldr r3, [r7, #64] @ 0x40
  55440. 80170dc: 2201 movs r2, #1
  55441. 80170de: 601a str r2, [r3, #0]
  55442. }
  55443. /* Mark that a yield is pending in case the user is not
  55444. using the "xHigherPriorityTaskWoken" parameter to an ISR
  55445. safe FreeRTOS function. */
  55446. xYieldPending = pdTRUE;
  55447. 80170e0: 4b0b ldr r3, [pc, #44] @ (8017110 <xTaskGenericNotifyFromISR+0x1c8>)
  55448. 80170e2: 2201 movs r2, #1
  55449. 80170e4: 601a str r2, [r3, #0]
  55450. 80170e6: 6afb ldr r3, [r7, #44] @ 0x2c
  55451. 80170e8: 613b str r3, [r7, #16]
  55452. __asm volatile
  55453. 80170ea: 693b ldr r3, [r7, #16]
  55454. 80170ec: f383 8811 msr BASEPRI, r3
  55455. }
  55456. 80170f0: bf00 nop
  55457. }
  55458. }
  55459. }
  55460. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  55461. return xReturn;
  55462. 80170f2: 6b7b ldr r3, [r7, #52] @ 0x34
  55463. }
  55464. 80170f4: 4618 mov r0, r3
  55465. 80170f6: 3738 adds r7, #56 @ 0x38
  55466. 80170f8: 46bd mov sp, r7
  55467. 80170fa: bd80 pop {r7, pc}
  55468. 80170fc: 24002ef4 .word 0x24002ef4
  55469. 8017100: 24002ed4 .word 0x24002ed4
  55470. 8017104: 240029fc .word 0x240029fc
  55471. 8017108: 24002e8c .word 0x24002e8c
  55472. 801710c: 240029f8 .word 0x240029f8
  55473. 8017110: 24002ee0 .word 0x24002ee0
  55474. 08017114 <xTaskNotifyStateClear>:
  55475. /*-----------------------------------------------------------*/
  55476. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  55477. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  55478. {
  55479. 8017114: b580 push {r7, lr}
  55480. 8017116: b084 sub sp, #16
  55481. 8017118: af00 add r7, sp, #0
  55482. 801711a: 6078 str r0, [r7, #4]
  55483. TCB_t *pxTCB;
  55484. BaseType_t xReturn;
  55485. /* If null is passed in here then it is the calling task that is having
  55486. its notification state cleared. */
  55487. pxTCB = prvGetTCBFromHandle( xTask );
  55488. 801711c: 687b ldr r3, [r7, #4]
  55489. 801711e: 2b00 cmp r3, #0
  55490. 8017120: d102 bne.n 8017128 <xTaskNotifyStateClear+0x14>
  55491. 8017122: 4b0e ldr r3, [pc, #56] @ (801715c <xTaskNotifyStateClear+0x48>)
  55492. 8017124: 681b ldr r3, [r3, #0]
  55493. 8017126: e000 b.n 801712a <xTaskNotifyStateClear+0x16>
  55494. 8017128: 687b ldr r3, [r7, #4]
  55495. 801712a: 60bb str r3, [r7, #8]
  55496. taskENTER_CRITICAL();
  55497. 801712c: f000 fde4 bl 8017cf8 <vPortEnterCritical>
  55498. {
  55499. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  55500. 8017130: 68bb ldr r3, [r7, #8]
  55501. 8017132: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  55502. 8017136: b2db uxtb r3, r3
  55503. 8017138: 2b02 cmp r3, #2
  55504. 801713a: d106 bne.n 801714a <xTaskNotifyStateClear+0x36>
  55505. {
  55506. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  55507. 801713c: 68bb ldr r3, [r7, #8]
  55508. 801713e: 2200 movs r2, #0
  55509. 8017140: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  55510. xReturn = pdPASS;
  55511. 8017144: 2301 movs r3, #1
  55512. 8017146: 60fb str r3, [r7, #12]
  55513. 8017148: e001 b.n 801714e <xTaskNotifyStateClear+0x3a>
  55514. }
  55515. else
  55516. {
  55517. xReturn = pdFAIL;
  55518. 801714a: 2300 movs r3, #0
  55519. 801714c: 60fb str r3, [r7, #12]
  55520. }
  55521. }
  55522. taskEXIT_CRITICAL();
  55523. 801714e: f000 fe05 bl 8017d5c <vPortExitCritical>
  55524. return xReturn;
  55525. 8017152: 68fb ldr r3, [r7, #12]
  55526. }
  55527. 8017154: 4618 mov r0, r3
  55528. 8017156: 3710 adds r7, #16
  55529. 8017158: 46bd mov sp, r7
  55530. 801715a: bd80 pop {r7, pc}
  55531. 801715c: 240029f8 .word 0x240029f8
  55532. 08017160 <prvAddCurrentTaskToDelayedList>:
  55533. #endif
  55534. /*-----------------------------------------------------------*/
  55535. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  55536. {
  55537. 8017160: b580 push {r7, lr}
  55538. 8017162: b084 sub sp, #16
  55539. 8017164: af00 add r7, sp, #0
  55540. 8017166: 6078 str r0, [r7, #4]
  55541. 8017168: 6039 str r1, [r7, #0]
  55542. TickType_t xTimeToWake;
  55543. const TickType_t xConstTickCount = xTickCount;
  55544. 801716a: 4b21 ldr r3, [pc, #132] @ (80171f0 <prvAddCurrentTaskToDelayedList+0x90>)
  55545. 801716c: 681b ldr r3, [r3, #0]
  55546. 801716e: 60fb str r3, [r7, #12]
  55547. }
  55548. #endif
  55549. /* Remove the task from the ready list before adding it to the blocked list
  55550. as the same list item is used for both lists. */
  55551. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  55552. 8017170: 4b20 ldr r3, [pc, #128] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x94>)
  55553. 8017172: 681b ldr r3, [r3, #0]
  55554. 8017174: 3304 adds r3, #4
  55555. 8017176: 4618 mov r0, r3
  55556. 8017178: f7fd fc18 bl 80149ac <uxListRemove>
  55557. mtCOVERAGE_TEST_MARKER();
  55558. }
  55559. #if ( INCLUDE_vTaskSuspend == 1 )
  55560. {
  55561. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  55562. 801717c: 687b ldr r3, [r7, #4]
  55563. 801717e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55564. 8017182: d10a bne.n 801719a <prvAddCurrentTaskToDelayedList+0x3a>
  55565. 8017184: 683b ldr r3, [r7, #0]
  55566. 8017186: 2b00 cmp r3, #0
  55567. 8017188: d007 beq.n 801719a <prvAddCurrentTaskToDelayedList+0x3a>
  55568. {
  55569. /* Add the task to the suspended task list instead of a delayed task
  55570. list to ensure it is not woken by a timing event. It will block
  55571. indefinitely. */
  55572. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55573. 801718a: 4b1a ldr r3, [pc, #104] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x94>)
  55574. 801718c: 681b ldr r3, [r3, #0]
  55575. 801718e: 3304 adds r3, #4
  55576. 8017190: 4619 mov r1, r3
  55577. 8017192: 4819 ldr r0, [pc, #100] @ (80171f8 <prvAddCurrentTaskToDelayedList+0x98>)
  55578. 8017194: f7fd fbad bl 80148f2 <vListInsertEnd>
  55579. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  55580. ( void ) xCanBlockIndefinitely;
  55581. }
  55582. #endif /* INCLUDE_vTaskSuspend */
  55583. }
  55584. 8017198: e026 b.n 80171e8 <prvAddCurrentTaskToDelayedList+0x88>
  55585. xTimeToWake = xConstTickCount + xTicksToWait;
  55586. 801719a: 68fa ldr r2, [r7, #12]
  55587. 801719c: 687b ldr r3, [r7, #4]
  55588. 801719e: 4413 add r3, r2
  55589. 80171a0: 60bb str r3, [r7, #8]
  55590. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  55591. 80171a2: 4b14 ldr r3, [pc, #80] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x94>)
  55592. 80171a4: 681b ldr r3, [r3, #0]
  55593. 80171a6: 68ba ldr r2, [r7, #8]
  55594. 80171a8: 605a str r2, [r3, #4]
  55595. if( xTimeToWake < xConstTickCount )
  55596. 80171aa: 68ba ldr r2, [r7, #8]
  55597. 80171ac: 68fb ldr r3, [r7, #12]
  55598. 80171ae: 429a cmp r2, r3
  55599. 80171b0: d209 bcs.n 80171c6 <prvAddCurrentTaskToDelayedList+0x66>
  55600. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55601. 80171b2: 4b12 ldr r3, [pc, #72] @ (80171fc <prvAddCurrentTaskToDelayedList+0x9c>)
  55602. 80171b4: 681a ldr r2, [r3, #0]
  55603. 80171b6: 4b0f ldr r3, [pc, #60] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x94>)
  55604. 80171b8: 681b ldr r3, [r3, #0]
  55605. 80171ba: 3304 adds r3, #4
  55606. 80171bc: 4619 mov r1, r3
  55607. 80171be: 4610 mov r0, r2
  55608. 80171c0: f7fd fbbb bl 801493a <vListInsert>
  55609. }
  55610. 80171c4: e010 b.n 80171e8 <prvAddCurrentTaskToDelayedList+0x88>
  55611. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  55612. 80171c6: 4b0e ldr r3, [pc, #56] @ (8017200 <prvAddCurrentTaskToDelayedList+0xa0>)
  55613. 80171c8: 681a ldr r2, [r3, #0]
  55614. 80171ca: 4b0a ldr r3, [pc, #40] @ (80171f4 <prvAddCurrentTaskToDelayedList+0x94>)
  55615. 80171cc: 681b ldr r3, [r3, #0]
  55616. 80171ce: 3304 adds r3, #4
  55617. 80171d0: 4619 mov r1, r3
  55618. 80171d2: 4610 mov r0, r2
  55619. 80171d4: f7fd fbb1 bl 801493a <vListInsert>
  55620. if( xTimeToWake < xNextTaskUnblockTime )
  55621. 80171d8: 4b0a ldr r3, [pc, #40] @ (8017204 <prvAddCurrentTaskToDelayedList+0xa4>)
  55622. 80171da: 681b ldr r3, [r3, #0]
  55623. 80171dc: 68ba ldr r2, [r7, #8]
  55624. 80171de: 429a cmp r2, r3
  55625. 80171e0: d202 bcs.n 80171e8 <prvAddCurrentTaskToDelayedList+0x88>
  55626. xNextTaskUnblockTime = xTimeToWake;
  55627. 80171e2: 4a08 ldr r2, [pc, #32] @ (8017204 <prvAddCurrentTaskToDelayedList+0xa4>)
  55628. 80171e4: 68bb ldr r3, [r7, #8]
  55629. 80171e6: 6013 str r3, [r2, #0]
  55630. }
  55631. 80171e8: bf00 nop
  55632. 80171ea: 3710 adds r7, #16
  55633. 80171ec: 46bd mov sp, r7
  55634. 80171ee: bd80 pop {r7, pc}
  55635. 80171f0: 24002ed0 .word 0x24002ed0
  55636. 80171f4: 240029f8 .word 0x240029f8
  55637. 80171f8: 24002eb8 .word 0x24002eb8
  55638. 80171fc: 24002e88 .word 0x24002e88
  55639. 8017200: 24002e84 .word 0x24002e84
  55640. 8017204: 24002eec .word 0x24002eec
  55641. 08017208 <xTimerCreateTimerTask>:
  55642. TimerCallbackFunction_t pxCallbackFunction,
  55643. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  55644. /*-----------------------------------------------------------*/
  55645. BaseType_t xTimerCreateTimerTask( void )
  55646. {
  55647. 8017208: b580 push {r7, lr}
  55648. 801720a: b08a sub sp, #40 @ 0x28
  55649. 801720c: af04 add r7, sp, #16
  55650. BaseType_t xReturn = pdFAIL;
  55651. 801720e: 2300 movs r3, #0
  55652. 8017210: 617b str r3, [r7, #20]
  55653. /* This function is called when the scheduler is started if
  55654. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  55655. timer service task has been created/initialised. If timers have already
  55656. been created then the initialisation will already have been performed. */
  55657. prvCheckForValidListAndQueue();
  55658. 8017212: f000 fbb1 bl 8017978 <prvCheckForValidListAndQueue>
  55659. if( xTimerQueue != NULL )
  55660. 8017216: 4b1d ldr r3, [pc, #116] @ (801728c <xTimerCreateTimerTask+0x84>)
  55661. 8017218: 681b ldr r3, [r3, #0]
  55662. 801721a: 2b00 cmp r3, #0
  55663. 801721c: d021 beq.n 8017262 <xTimerCreateTimerTask+0x5a>
  55664. {
  55665. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  55666. {
  55667. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  55668. 801721e: 2300 movs r3, #0
  55669. 8017220: 60fb str r3, [r7, #12]
  55670. StackType_t *pxTimerTaskStackBuffer = NULL;
  55671. 8017222: 2300 movs r3, #0
  55672. 8017224: 60bb str r3, [r7, #8]
  55673. uint32_t ulTimerTaskStackSize;
  55674. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  55675. 8017226: 1d3a adds r2, r7, #4
  55676. 8017228: f107 0108 add.w r1, r7, #8
  55677. 801722c: f107 030c add.w r3, r7, #12
  55678. 8017230: 4618 mov r0, r3
  55679. 8017232: f7fd fb17 bl 8014864 <vApplicationGetTimerTaskMemory>
  55680. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  55681. 8017236: 6879 ldr r1, [r7, #4]
  55682. 8017238: 68bb ldr r3, [r7, #8]
  55683. 801723a: 68fa ldr r2, [r7, #12]
  55684. 801723c: 9202 str r2, [sp, #8]
  55685. 801723e: 9301 str r3, [sp, #4]
  55686. 8017240: 2302 movs r3, #2
  55687. 8017242: 9300 str r3, [sp, #0]
  55688. 8017244: 2300 movs r3, #0
  55689. 8017246: 460a mov r2, r1
  55690. 8017248: 4911 ldr r1, [pc, #68] @ (8017290 <xTimerCreateTimerTask+0x88>)
  55691. 801724a: 4812 ldr r0, [pc, #72] @ (8017294 <xTimerCreateTimerTask+0x8c>)
  55692. 801724c: f7fe fd2f bl 8015cae <xTaskCreateStatic>
  55693. 8017250: 4603 mov r3, r0
  55694. 8017252: 4a11 ldr r2, [pc, #68] @ (8017298 <xTimerCreateTimerTask+0x90>)
  55695. 8017254: 6013 str r3, [r2, #0]
  55696. NULL,
  55697. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  55698. pxTimerTaskStackBuffer,
  55699. pxTimerTaskTCBBuffer );
  55700. if( xTimerTaskHandle != NULL )
  55701. 8017256: 4b10 ldr r3, [pc, #64] @ (8017298 <xTimerCreateTimerTask+0x90>)
  55702. 8017258: 681b ldr r3, [r3, #0]
  55703. 801725a: 2b00 cmp r3, #0
  55704. 801725c: d001 beq.n 8017262 <xTimerCreateTimerTask+0x5a>
  55705. {
  55706. xReturn = pdPASS;
  55707. 801725e: 2301 movs r3, #1
  55708. 8017260: 617b str r3, [r7, #20]
  55709. else
  55710. {
  55711. mtCOVERAGE_TEST_MARKER();
  55712. }
  55713. configASSERT( xReturn );
  55714. 8017262: 697b ldr r3, [r7, #20]
  55715. 8017264: 2b00 cmp r3, #0
  55716. 8017266: d10b bne.n 8017280 <xTimerCreateTimerTask+0x78>
  55717. __asm volatile
  55718. 8017268: f04f 0350 mov.w r3, #80 @ 0x50
  55719. 801726c: f383 8811 msr BASEPRI, r3
  55720. 8017270: f3bf 8f6f isb sy
  55721. 8017274: f3bf 8f4f dsb sy
  55722. 8017278: 613b str r3, [r7, #16]
  55723. }
  55724. 801727a: bf00 nop
  55725. 801727c: bf00 nop
  55726. 801727e: e7fd b.n 801727c <xTimerCreateTimerTask+0x74>
  55727. return xReturn;
  55728. 8017280: 697b ldr r3, [r7, #20]
  55729. }
  55730. 8017282: 4618 mov r0, r3
  55731. 8017284: 3718 adds r7, #24
  55732. 8017286: 46bd mov sp, r7
  55733. 8017288: bd80 pop {r7, pc}
  55734. 801728a: bf00 nop
  55735. 801728c: 24002f28 .word 0x24002f28
  55736. 8017290: 08018698 .word 0x08018698
  55737. 8017294: 08017511 .word 0x08017511
  55738. 8017298: 24002f2c .word 0x24002f2c
  55739. 0801729c <xTimerCreate>:
  55740. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  55741. const TickType_t xTimerPeriodInTicks,
  55742. const UBaseType_t uxAutoReload,
  55743. void * const pvTimerID,
  55744. TimerCallbackFunction_t pxCallbackFunction )
  55745. {
  55746. 801729c: b580 push {r7, lr}
  55747. 801729e: b088 sub sp, #32
  55748. 80172a0: af02 add r7, sp, #8
  55749. 80172a2: 60f8 str r0, [r7, #12]
  55750. 80172a4: 60b9 str r1, [r7, #8]
  55751. 80172a6: 607a str r2, [r7, #4]
  55752. 80172a8: 603b str r3, [r7, #0]
  55753. Timer_t *pxNewTimer;
  55754. 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. */
  55755. 80172aa: 202c movs r0, #44 @ 0x2c
  55756. 80172ac: f000 fe46 bl 8017f3c <pvPortMalloc>
  55757. 80172b0: 6178 str r0, [r7, #20]
  55758. if( pxNewTimer != NULL )
  55759. 80172b2: 697b ldr r3, [r7, #20]
  55760. 80172b4: 2b00 cmp r3, #0
  55761. 80172b6: d00d beq.n 80172d4 <xTimerCreate+0x38>
  55762. {
  55763. /* Status is thus far zero as the timer is not created statically
  55764. and has not been started. The auto-reload bit may get set in
  55765. prvInitialiseNewTimer. */
  55766. pxNewTimer->ucStatus = 0x00;
  55767. 80172b8: 697b ldr r3, [r7, #20]
  55768. 80172ba: 2200 movs r2, #0
  55769. 80172bc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55770. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55771. 80172c0: 697b ldr r3, [r7, #20]
  55772. 80172c2: 9301 str r3, [sp, #4]
  55773. 80172c4: 6a3b ldr r3, [r7, #32]
  55774. 80172c6: 9300 str r3, [sp, #0]
  55775. 80172c8: 683b ldr r3, [r7, #0]
  55776. 80172ca: 687a ldr r2, [r7, #4]
  55777. 80172cc: 68b9 ldr r1, [r7, #8]
  55778. 80172ce: 68f8 ldr r0, [r7, #12]
  55779. 80172d0: f000 f845 bl 801735e <prvInitialiseNewTimer>
  55780. }
  55781. return pxNewTimer;
  55782. 80172d4: 697b ldr r3, [r7, #20]
  55783. }
  55784. 80172d6: 4618 mov r0, r3
  55785. 80172d8: 3718 adds r7, #24
  55786. 80172da: 46bd mov sp, r7
  55787. 80172dc: bd80 pop {r7, pc}
  55788. 080172de <xTimerCreateStatic>:
  55789. const TickType_t xTimerPeriodInTicks,
  55790. const UBaseType_t uxAutoReload,
  55791. void * const pvTimerID,
  55792. TimerCallbackFunction_t pxCallbackFunction,
  55793. StaticTimer_t *pxTimerBuffer )
  55794. {
  55795. 80172de: b580 push {r7, lr}
  55796. 80172e0: b08a sub sp, #40 @ 0x28
  55797. 80172e2: af02 add r7, sp, #8
  55798. 80172e4: 60f8 str r0, [r7, #12]
  55799. 80172e6: 60b9 str r1, [r7, #8]
  55800. 80172e8: 607a str r2, [r7, #4]
  55801. 80172ea: 603b str r3, [r7, #0]
  55802. #if( configASSERT_DEFINED == 1 )
  55803. {
  55804. /* Sanity check that the size of the structure used to declare a
  55805. variable of type StaticTimer_t equals the size of the real timer
  55806. structure. */
  55807. volatile size_t xSize = sizeof( StaticTimer_t );
  55808. 80172ec: 232c movs r3, #44 @ 0x2c
  55809. 80172ee: 613b str r3, [r7, #16]
  55810. configASSERT( xSize == sizeof( Timer_t ) );
  55811. 80172f0: 693b ldr r3, [r7, #16]
  55812. 80172f2: 2b2c cmp r3, #44 @ 0x2c
  55813. 80172f4: d00b beq.n 801730e <xTimerCreateStatic+0x30>
  55814. __asm volatile
  55815. 80172f6: f04f 0350 mov.w r3, #80 @ 0x50
  55816. 80172fa: f383 8811 msr BASEPRI, r3
  55817. 80172fe: f3bf 8f6f isb sy
  55818. 8017302: f3bf 8f4f dsb sy
  55819. 8017306: 61bb str r3, [r7, #24]
  55820. }
  55821. 8017308: bf00 nop
  55822. 801730a: bf00 nop
  55823. 801730c: e7fd b.n 801730a <xTimerCreateStatic+0x2c>
  55824. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  55825. 801730e: 693b ldr r3, [r7, #16]
  55826. }
  55827. #endif /* configASSERT_DEFINED */
  55828. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  55829. configASSERT( pxTimerBuffer );
  55830. 8017310: 6afb ldr r3, [r7, #44] @ 0x2c
  55831. 8017312: 2b00 cmp r3, #0
  55832. 8017314: d10b bne.n 801732e <xTimerCreateStatic+0x50>
  55833. __asm volatile
  55834. 8017316: f04f 0350 mov.w r3, #80 @ 0x50
  55835. 801731a: f383 8811 msr BASEPRI, r3
  55836. 801731e: f3bf 8f6f isb sy
  55837. 8017322: f3bf 8f4f dsb sy
  55838. 8017326: 617b str r3, [r7, #20]
  55839. }
  55840. 8017328: bf00 nop
  55841. 801732a: bf00 nop
  55842. 801732c: e7fd b.n 801732a <xTimerCreateStatic+0x4c>
  55843. 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. */
  55844. 801732e: 6afb ldr r3, [r7, #44] @ 0x2c
  55845. 8017330: 61fb str r3, [r7, #28]
  55846. if( pxNewTimer != NULL )
  55847. 8017332: 69fb ldr r3, [r7, #28]
  55848. 8017334: 2b00 cmp r3, #0
  55849. 8017336: d00d beq.n 8017354 <xTimerCreateStatic+0x76>
  55850. {
  55851. /* Timers can be created statically or dynamically so note this
  55852. timer was created statically in case it is later deleted. The
  55853. auto-reload bit may get set in prvInitialiseNewTimer(). */
  55854. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  55855. 8017338: 69fb ldr r3, [r7, #28]
  55856. 801733a: 2202 movs r2, #2
  55857. 801733c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55858. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  55859. 8017340: 69fb ldr r3, [r7, #28]
  55860. 8017342: 9301 str r3, [sp, #4]
  55861. 8017344: 6abb ldr r3, [r7, #40] @ 0x28
  55862. 8017346: 9300 str r3, [sp, #0]
  55863. 8017348: 683b ldr r3, [r7, #0]
  55864. 801734a: 687a ldr r2, [r7, #4]
  55865. 801734c: 68b9 ldr r1, [r7, #8]
  55866. 801734e: 68f8 ldr r0, [r7, #12]
  55867. 8017350: f000 f805 bl 801735e <prvInitialiseNewTimer>
  55868. }
  55869. return pxNewTimer;
  55870. 8017354: 69fb ldr r3, [r7, #28]
  55871. }
  55872. 8017356: 4618 mov r0, r3
  55873. 8017358: 3720 adds r7, #32
  55874. 801735a: 46bd mov sp, r7
  55875. 801735c: bd80 pop {r7, pc}
  55876. 0801735e <prvInitialiseNewTimer>:
  55877. const TickType_t xTimerPeriodInTicks,
  55878. const UBaseType_t uxAutoReload,
  55879. void * const pvTimerID,
  55880. TimerCallbackFunction_t pxCallbackFunction,
  55881. Timer_t *pxNewTimer )
  55882. {
  55883. 801735e: b580 push {r7, lr}
  55884. 8017360: b086 sub sp, #24
  55885. 8017362: af00 add r7, sp, #0
  55886. 8017364: 60f8 str r0, [r7, #12]
  55887. 8017366: 60b9 str r1, [r7, #8]
  55888. 8017368: 607a str r2, [r7, #4]
  55889. 801736a: 603b str r3, [r7, #0]
  55890. /* 0 is not a valid value for xTimerPeriodInTicks. */
  55891. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  55892. 801736c: 68bb ldr r3, [r7, #8]
  55893. 801736e: 2b00 cmp r3, #0
  55894. 8017370: d10b bne.n 801738a <prvInitialiseNewTimer+0x2c>
  55895. __asm volatile
  55896. 8017372: f04f 0350 mov.w r3, #80 @ 0x50
  55897. 8017376: f383 8811 msr BASEPRI, r3
  55898. 801737a: f3bf 8f6f isb sy
  55899. 801737e: f3bf 8f4f dsb sy
  55900. 8017382: 617b str r3, [r7, #20]
  55901. }
  55902. 8017384: bf00 nop
  55903. 8017386: bf00 nop
  55904. 8017388: e7fd b.n 8017386 <prvInitialiseNewTimer+0x28>
  55905. if( pxNewTimer != NULL )
  55906. 801738a: 6a7b ldr r3, [r7, #36] @ 0x24
  55907. 801738c: 2b00 cmp r3, #0
  55908. 801738e: d01e beq.n 80173ce <prvInitialiseNewTimer+0x70>
  55909. {
  55910. /* Ensure the infrastructure used by the timer service task has been
  55911. created/initialised. */
  55912. prvCheckForValidListAndQueue();
  55913. 8017390: f000 faf2 bl 8017978 <prvCheckForValidListAndQueue>
  55914. /* Initialise the timer structure members using the function
  55915. parameters. */
  55916. pxNewTimer->pcTimerName = pcTimerName;
  55917. 8017394: 6a7b ldr r3, [r7, #36] @ 0x24
  55918. 8017396: 68fa ldr r2, [r7, #12]
  55919. 8017398: 601a str r2, [r3, #0]
  55920. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  55921. 801739a: 6a7b ldr r3, [r7, #36] @ 0x24
  55922. 801739c: 68ba ldr r2, [r7, #8]
  55923. 801739e: 619a str r2, [r3, #24]
  55924. pxNewTimer->pvTimerID = pvTimerID;
  55925. 80173a0: 6a7b ldr r3, [r7, #36] @ 0x24
  55926. 80173a2: 683a ldr r2, [r7, #0]
  55927. 80173a4: 61da str r2, [r3, #28]
  55928. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  55929. 80173a6: 6a7b ldr r3, [r7, #36] @ 0x24
  55930. 80173a8: 6a3a ldr r2, [r7, #32]
  55931. 80173aa: 621a str r2, [r3, #32]
  55932. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  55933. 80173ac: 6a7b ldr r3, [r7, #36] @ 0x24
  55934. 80173ae: 3304 adds r3, #4
  55935. 80173b0: 4618 mov r0, r3
  55936. 80173b2: f7fd fa91 bl 80148d8 <vListInitialiseItem>
  55937. if( uxAutoReload != pdFALSE )
  55938. 80173b6: 687b ldr r3, [r7, #4]
  55939. 80173b8: 2b00 cmp r3, #0
  55940. 80173ba: d008 beq.n 80173ce <prvInitialiseNewTimer+0x70>
  55941. {
  55942. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  55943. 80173bc: 6a7b ldr r3, [r7, #36] @ 0x24
  55944. 80173be: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55945. 80173c2: f043 0304 orr.w r3, r3, #4
  55946. 80173c6: b2da uxtb r2, r3
  55947. 80173c8: 6a7b ldr r3, [r7, #36] @ 0x24
  55948. 80173ca: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55949. }
  55950. traceTIMER_CREATE( pxNewTimer );
  55951. }
  55952. }
  55953. 80173ce: bf00 nop
  55954. 80173d0: 3718 adds r7, #24
  55955. 80173d2: 46bd mov sp, r7
  55956. 80173d4: bd80 pop {r7, pc}
  55957. ...
  55958. 080173d8 <xTimerGenericCommand>:
  55959. /*-----------------------------------------------------------*/
  55960. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  55961. {
  55962. 80173d8: b580 push {r7, lr}
  55963. 80173da: b08a sub sp, #40 @ 0x28
  55964. 80173dc: af00 add r7, sp, #0
  55965. 80173de: 60f8 str r0, [r7, #12]
  55966. 80173e0: 60b9 str r1, [r7, #8]
  55967. 80173e2: 607a str r2, [r7, #4]
  55968. 80173e4: 603b str r3, [r7, #0]
  55969. BaseType_t xReturn = pdFAIL;
  55970. 80173e6: 2300 movs r3, #0
  55971. 80173e8: 627b str r3, [r7, #36] @ 0x24
  55972. DaemonTaskMessage_t xMessage;
  55973. configASSERT( xTimer );
  55974. 80173ea: 68fb ldr r3, [r7, #12]
  55975. 80173ec: 2b00 cmp r3, #0
  55976. 80173ee: d10b bne.n 8017408 <xTimerGenericCommand+0x30>
  55977. __asm volatile
  55978. 80173f0: f04f 0350 mov.w r3, #80 @ 0x50
  55979. 80173f4: f383 8811 msr BASEPRI, r3
  55980. 80173f8: f3bf 8f6f isb sy
  55981. 80173fc: f3bf 8f4f dsb sy
  55982. 8017400: 623b str r3, [r7, #32]
  55983. }
  55984. 8017402: bf00 nop
  55985. 8017404: bf00 nop
  55986. 8017406: e7fd b.n 8017404 <xTimerGenericCommand+0x2c>
  55987. /* Send a message to the timer service task to perform a particular action
  55988. on a particular timer definition. */
  55989. if( xTimerQueue != NULL )
  55990. 8017408: 4b19 ldr r3, [pc, #100] @ (8017470 <xTimerGenericCommand+0x98>)
  55991. 801740a: 681b ldr r3, [r3, #0]
  55992. 801740c: 2b00 cmp r3, #0
  55993. 801740e: d02a beq.n 8017466 <xTimerGenericCommand+0x8e>
  55994. {
  55995. /* Send a command to the timer service task to start the xTimer timer. */
  55996. xMessage.xMessageID = xCommandID;
  55997. 8017410: 68bb ldr r3, [r7, #8]
  55998. 8017412: 613b str r3, [r7, #16]
  55999. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  56000. 8017414: 687b ldr r3, [r7, #4]
  56001. 8017416: 617b str r3, [r7, #20]
  56002. xMessage.u.xTimerParameters.pxTimer = xTimer;
  56003. 8017418: 68fb ldr r3, [r7, #12]
  56004. 801741a: 61bb str r3, [r7, #24]
  56005. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  56006. 801741c: 68bb ldr r3, [r7, #8]
  56007. 801741e: 2b05 cmp r3, #5
  56008. 8017420: dc18 bgt.n 8017454 <xTimerGenericCommand+0x7c>
  56009. {
  56010. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  56011. 8017422: f7ff fae1 bl 80169e8 <xTaskGetSchedulerState>
  56012. 8017426: 4603 mov r3, r0
  56013. 8017428: 2b02 cmp r3, #2
  56014. 801742a: d109 bne.n 8017440 <xTimerGenericCommand+0x68>
  56015. {
  56016. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  56017. 801742c: 4b10 ldr r3, [pc, #64] @ (8017470 <xTimerGenericCommand+0x98>)
  56018. 801742e: 6818 ldr r0, [r3, #0]
  56019. 8017430: f107 0110 add.w r1, r7, #16
  56020. 8017434: 2300 movs r3, #0
  56021. 8017436: 6b3a ldr r2, [r7, #48] @ 0x30
  56022. 8017438: f7fd fce0 bl 8014dfc <xQueueGenericSend>
  56023. 801743c: 6278 str r0, [r7, #36] @ 0x24
  56024. 801743e: e012 b.n 8017466 <xTimerGenericCommand+0x8e>
  56025. }
  56026. else
  56027. {
  56028. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  56029. 8017440: 4b0b ldr r3, [pc, #44] @ (8017470 <xTimerGenericCommand+0x98>)
  56030. 8017442: 6818 ldr r0, [r3, #0]
  56031. 8017444: f107 0110 add.w r1, r7, #16
  56032. 8017448: 2300 movs r3, #0
  56033. 801744a: 2200 movs r2, #0
  56034. 801744c: f7fd fcd6 bl 8014dfc <xQueueGenericSend>
  56035. 8017450: 6278 str r0, [r7, #36] @ 0x24
  56036. 8017452: e008 b.n 8017466 <xTimerGenericCommand+0x8e>
  56037. }
  56038. }
  56039. else
  56040. {
  56041. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  56042. 8017454: 4b06 ldr r3, [pc, #24] @ (8017470 <xTimerGenericCommand+0x98>)
  56043. 8017456: 6818 ldr r0, [r3, #0]
  56044. 8017458: f107 0110 add.w r1, r7, #16
  56045. 801745c: 2300 movs r3, #0
  56046. 801745e: 683a ldr r2, [r7, #0]
  56047. 8017460: f7fd fdce bl 8015000 <xQueueGenericSendFromISR>
  56048. 8017464: 6278 str r0, [r7, #36] @ 0x24
  56049. else
  56050. {
  56051. mtCOVERAGE_TEST_MARKER();
  56052. }
  56053. return xReturn;
  56054. 8017466: 6a7b ldr r3, [r7, #36] @ 0x24
  56055. }
  56056. 8017468: 4618 mov r0, r3
  56057. 801746a: 3728 adds r7, #40 @ 0x28
  56058. 801746c: 46bd mov sp, r7
  56059. 801746e: bd80 pop {r7, pc}
  56060. 8017470: 24002f28 .word 0x24002f28
  56061. 08017474 <prvProcessExpiredTimer>:
  56062. return pxTimer->pcTimerName;
  56063. }
  56064. /*-----------------------------------------------------------*/
  56065. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  56066. {
  56067. 8017474: b580 push {r7, lr}
  56068. 8017476: b088 sub sp, #32
  56069. 8017478: af02 add r7, sp, #8
  56070. 801747a: 6078 str r0, [r7, #4]
  56071. 801747c: 6039 str r1, [r7, #0]
  56072. BaseType_t xResult;
  56073. 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. */
  56074. 801747e: 4b23 ldr r3, [pc, #140] @ (801750c <prvProcessExpiredTimer+0x98>)
  56075. 8017480: 681b ldr r3, [r3, #0]
  56076. 8017482: 68db ldr r3, [r3, #12]
  56077. 8017484: 68db ldr r3, [r3, #12]
  56078. 8017486: 617b str r3, [r7, #20]
  56079. /* Remove the timer from the list of active timers. A check has already
  56080. been performed to ensure the list is not empty. */
  56081. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56082. 8017488: 697b ldr r3, [r7, #20]
  56083. 801748a: 3304 adds r3, #4
  56084. 801748c: 4618 mov r0, r3
  56085. 801748e: f7fd fa8d bl 80149ac <uxListRemove>
  56086. traceTIMER_EXPIRED( pxTimer );
  56087. /* If the timer is an auto-reload timer then calculate the next
  56088. expiry time and re-insert the timer in the list of active timers. */
  56089. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56090. 8017492: 697b ldr r3, [r7, #20]
  56091. 8017494: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56092. 8017498: f003 0304 and.w r3, r3, #4
  56093. 801749c: 2b00 cmp r3, #0
  56094. 801749e: d023 beq.n 80174e8 <prvProcessExpiredTimer+0x74>
  56095. {
  56096. /* The timer is inserted into a list using a time relative to anything
  56097. other than the current time. It will therefore be inserted into the
  56098. correct list relative to the time this task thinks it is now. */
  56099. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  56100. 80174a0: 697b ldr r3, [r7, #20]
  56101. 80174a2: 699a ldr r2, [r3, #24]
  56102. 80174a4: 687b ldr r3, [r7, #4]
  56103. 80174a6: 18d1 adds r1, r2, r3
  56104. 80174a8: 687b ldr r3, [r7, #4]
  56105. 80174aa: 683a ldr r2, [r7, #0]
  56106. 80174ac: 6978 ldr r0, [r7, #20]
  56107. 80174ae: f000 f8d5 bl 801765c <prvInsertTimerInActiveList>
  56108. 80174b2: 4603 mov r3, r0
  56109. 80174b4: 2b00 cmp r3, #0
  56110. 80174b6: d020 beq.n 80174fa <prvProcessExpiredTimer+0x86>
  56111. {
  56112. /* The timer expired before it was added to the active timer
  56113. list. Reload it now. */
  56114. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56115. 80174b8: 2300 movs r3, #0
  56116. 80174ba: 9300 str r3, [sp, #0]
  56117. 80174bc: 2300 movs r3, #0
  56118. 80174be: 687a ldr r2, [r7, #4]
  56119. 80174c0: 2100 movs r1, #0
  56120. 80174c2: 6978 ldr r0, [r7, #20]
  56121. 80174c4: f7ff ff88 bl 80173d8 <xTimerGenericCommand>
  56122. 80174c8: 6138 str r0, [r7, #16]
  56123. configASSERT( xResult );
  56124. 80174ca: 693b ldr r3, [r7, #16]
  56125. 80174cc: 2b00 cmp r3, #0
  56126. 80174ce: d114 bne.n 80174fa <prvProcessExpiredTimer+0x86>
  56127. __asm volatile
  56128. 80174d0: f04f 0350 mov.w r3, #80 @ 0x50
  56129. 80174d4: f383 8811 msr BASEPRI, r3
  56130. 80174d8: f3bf 8f6f isb sy
  56131. 80174dc: f3bf 8f4f dsb sy
  56132. 80174e0: 60fb str r3, [r7, #12]
  56133. }
  56134. 80174e2: bf00 nop
  56135. 80174e4: bf00 nop
  56136. 80174e6: e7fd b.n 80174e4 <prvProcessExpiredTimer+0x70>
  56137. mtCOVERAGE_TEST_MARKER();
  56138. }
  56139. }
  56140. else
  56141. {
  56142. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56143. 80174e8: 697b ldr r3, [r7, #20]
  56144. 80174ea: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56145. 80174ee: f023 0301 bic.w r3, r3, #1
  56146. 80174f2: b2da uxtb r2, r3
  56147. 80174f4: 697b ldr r3, [r7, #20]
  56148. 80174f6: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56149. mtCOVERAGE_TEST_MARKER();
  56150. }
  56151. /* Call the timer callback. */
  56152. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56153. 80174fa: 697b ldr r3, [r7, #20]
  56154. 80174fc: 6a1b ldr r3, [r3, #32]
  56155. 80174fe: 6978 ldr r0, [r7, #20]
  56156. 8017500: 4798 blx r3
  56157. }
  56158. 8017502: bf00 nop
  56159. 8017504: 3718 adds r7, #24
  56160. 8017506: 46bd mov sp, r7
  56161. 8017508: bd80 pop {r7, pc}
  56162. 801750a: bf00 nop
  56163. 801750c: 24002f20 .word 0x24002f20
  56164. 08017510 <prvTimerTask>:
  56165. /*-----------------------------------------------------------*/
  56166. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  56167. {
  56168. 8017510: b580 push {r7, lr}
  56169. 8017512: b084 sub sp, #16
  56170. 8017514: af00 add r7, sp, #0
  56171. 8017516: 6078 str r0, [r7, #4]
  56172. for( ;; )
  56173. {
  56174. /* Query the timers list to see if it contains any timers, and if so,
  56175. obtain the time at which the next timer will expire. */
  56176. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56177. 8017518: f107 0308 add.w r3, r7, #8
  56178. 801751c: 4618 mov r0, r3
  56179. 801751e: f000 f859 bl 80175d4 <prvGetNextExpireTime>
  56180. 8017522: 60f8 str r0, [r7, #12]
  56181. /* If a timer has expired, process it. Otherwise, block this task
  56182. until either a timer does expire, or a command is received. */
  56183. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  56184. 8017524: 68bb ldr r3, [r7, #8]
  56185. 8017526: 4619 mov r1, r3
  56186. 8017528: 68f8 ldr r0, [r7, #12]
  56187. 801752a: f000 f805 bl 8017538 <prvProcessTimerOrBlockTask>
  56188. /* Empty the command queue. */
  56189. prvProcessReceivedCommands();
  56190. 801752e: f000 f8d7 bl 80176e0 <prvProcessReceivedCommands>
  56191. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  56192. 8017532: bf00 nop
  56193. 8017534: e7f0 b.n 8017518 <prvTimerTask+0x8>
  56194. ...
  56195. 08017538 <prvProcessTimerOrBlockTask>:
  56196. }
  56197. }
  56198. /*-----------------------------------------------------------*/
  56199. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  56200. {
  56201. 8017538: b580 push {r7, lr}
  56202. 801753a: b084 sub sp, #16
  56203. 801753c: af00 add r7, sp, #0
  56204. 801753e: 6078 str r0, [r7, #4]
  56205. 8017540: 6039 str r1, [r7, #0]
  56206. TickType_t xTimeNow;
  56207. BaseType_t xTimerListsWereSwitched;
  56208. vTaskSuspendAll();
  56209. 8017542: f7fe fe17 bl 8016174 <vTaskSuspendAll>
  56210. /* Obtain the time now to make an assessment as to whether the timer
  56211. has expired or not. If obtaining the time causes the lists to switch
  56212. then don't process this timer as any timers that remained in the list
  56213. when the lists were switched will have been processed within the
  56214. prvSampleTimeNow() function. */
  56215. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56216. 8017546: f107 0308 add.w r3, r7, #8
  56217. 801754a: 4618 mov r0, r3
  56218. 801754c: f000 f866 bl 801761c <prvSampleTimeNow>
  56219. 8017550: 60f8 str r0, [r7, #12]
  56220. if( xTimerListsWereSwitched == pdFALSE )
  56221. 8017552: 68bb ldr r3, [r7, #8]
  56222. 8017554: 2b00 cmp r3, #0
  56223. 8017556: d130 bne.n 80175ba <prvProcessTimerOrBlockTask+0x82>
  56224. {
  56225. /* The tick count has not overflowed, has the timer expired? */
  56226. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  56227. 8017558: 683b ldr r3, [r7, #0]
  56228. 801755a: 2b00 cmp r3, #0
  56229. 801755c: d10a bne.n 8017574 <prvProcessTimerOrBlockTask+0x3c>
  56230. 801755e: 687a ldr r2, [r7, #4]
  56231. 8017560: 68fb ldr r3, [r7, #12]
  56232. 8017562: 429a cmp r2, r3
  56233. 8017564: d806 bhi.n 8017574 <prvProcessTimerOrBlockTask+0x3c>
  56234. {
  56235. ( void ) xTaskResumeAll();
  56236. 8017566: f7fe fe13 bl 8016190 <xTaskResumeAll>
  56237. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  56238. 801756a: 68f9 ldr r1, [r7, #12]
  56239. 801756c: 6878 ldr r0, [r7, #4]
  56240. 801756e: f7ff ff81 bl 8017474 <prvProcessExpiredTimer>
  56241. else
  56242. {
  56243. ( void ) xTaskResumeAll();
  56244. }
  56245. }
  56246. }
  56247. 8017572: e024 b.n 80175be <prvProcessTimerOrBlockTask+0x86>
  56248. if( xListWasEmpty != pdFALSE )
  56249. 8017574: 683b ldr r3, [r7, #0]
  56250. 8017576: 2b00 cmp r3, #0
  56251. 8017578: d008 beq.n 801758c <prvProcessTimerOrBlockTask+0x54>
  56252. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  56253. 801757a: 4b13 ldr r3, [pc, #76] @ (80175c8 <prvProcessTimerOrBlockTask+0x90>)
  56254. 801757c: 681b ldr r3, [r3, #0]
  56255. 801757e: 681b ldr r3, [r3, #0]
  56256. 8017580: 2b00 cmp r3, #0
  56257. 8017582: d101 bne.n 8017588 <prvProcessTimerOrBlockTask+0x50>
  56258. 8017584: 2301 movs r3, #1
  56259. 8017586: e000 b.n 801758a <prvProcessTimerOrBlockTask+0x52>
  56260. 8017588: 2300 movs r3, #0
  56261. 801758a: 603b str r3, [r7, #0]
  56262. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  56263. 801758c: 4b0f ldr r3, [pc, #60] @ (80175cc <prvProcessTimerOrBlockTask+0x94>)
  56264. 801758e: 6818 ldr r0, [r3, #0]
  56265. 8017590: 687a ldr r2, [r7, #4]
  56266. 8017592: 68fb ldr r3, [r7, #12]
  56267. 8017594: 1ad3 subs r3, r2, r3
  56268. 8017596: 683a ldr r2, [r7, #0]
  56269. 8017598: 4619 mov r1, r3
  56270. 801759a: f7fe f995 bl 80158c8 <vQueueWaitForMessageRestricted>
  56271. if( xTaskResumeAll() == pdFALSE )
  56272. 801759e: f7fe fdf7 bl 8016190 <xTaskResumeAll>
  56273. 80175a2: 4603 mov r3, r0
  56274. 80175a4: 2b00 cmp r3, #0
  56275. 80175a6: d10a bne.n 80175be <prvProcessTimerOrBlockTask+0x86>
  56276. portYIELD_WITHIN_API();
  56277. 80175a8: 4b09 ldr r3, [pc, #36] @ (80175d0 <prvProcessTimerOrBlockTask+0x98>)
  56278. 80175aa: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56279. 80175ae: 601a str r2, [r3, #0]
  56280. 80175b0: f3bf 8f4f dsb sy
  56281. 80175b4: f3bf 8f6f isb sy
  56282. }
  56283. 80175b8: e001 b.n 80175be <prvProcessTimerOrBlockTask+0x86>
  56284. ( void ) xTaskResumeAll();
  56285. 80175ba: f7fe fde9 bl 8016190 <xTaskResumeAll>
  56286. }
  56287. 80175be: bf00 nop
  56288. 80175c0: 3710 adds r7, #16
  56289. 80175c2: 46bd mov sp, r7
  56290. 80175c4: bd80 pop {r7, pc}
  56291. 80175c6: bf00 nop
  56292. 80175c8: 24002f24 .word 0x24002f24
  56293. 80175cc: 24002f28 .word 0x24002f28
  56294. 80175d0: e000ed04 .word 0xe000ed04
  56295. 080175d4 <prvGetNextExpireTime>:
  56296. /*-----------------------------------------------------------*/
  56297. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  56298. {
  56299. 80175d4: b480 push {r7}
  56300. 80175d6: b085 sub sp, #20
  56301. 80175d8: af00 add r7, sp, #0
  56302. 80175da: 6078 str r0, [r7, #4]
  56303. the timer with the nearest expiry time will expire. If there are no
  56304. active timers then just set the next expire time to 0. That will cause
  56305. this task to unblock when the tick count overflows, at which point the
  56306. timer lists will be switched and the next expiry time can be
  56307. re-assessed. */
  56308. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  56309. 80175dc: 4b0e ldr r3, [pc, #56] @ (8017618 <prvGetNextExpireTime+0x44>)
  56310. 80175de: 681b ldr r3, [r3, #0]
  56311. 80175e0: 681b ldr r3, [r3, #0]
  56312. 80175e2: 2b00 cmp r3, #0
  56313. 80175e4: d101 bne.n 80175ea <prvGetNextExpireTime+0x16>
  56314. 80175e6: 2201 movs r2, #1
  56315. 80175e8: e000 b.n 80175ec <prvGetNextExpireTime+0x18>
  56316. 80175ea: 2200 movs r2, #0
  56317. 80175ec: 687b ldr r3, [r7, #4]
  56318. 80175ee: 601a str r2, [r3, #0]
  56319. if( *pxListWasEmpty == pdFALSE )
  56320. 80175f0: 687b ldr r3, [r7, #4]
  56321. 80175f2: 681b ldr r3, [r3, #0]
  56322. 80175f4: 2b00 cmp r3, #0
  56323. 80175f6: d105 bne.n 8017604 <prvGetNextExpireTime+0x30>
  56324. {
  56325. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56326. 80175f8: 4b07 ldr r3, [pc, #28] @ (8017618 <prvGetNextExpireTime+0x44>)
  56327. 80175fa: 681b ldr r3, [r3, #0]
  56328. 80175fc: 68db ldr r3, [r3, #12]
  56329. 80175fe: 681b ldr r3, [r3, #0]
  56330. 8017600: 60fb str r3, [r7, #12]
  56331. 8017602: e001 b.n 8017608 <prvGetNextExpireTime+0x34>
  56332. }
  56333. else
  56334. {
  56335. /* Ensure the task unblocks when the tick count rolls over. */
  56336. xNextExpireTime = ( TickType_t ) 0U;
  56337. 8017604: 2300 movs r3, #0
  56338. 8017606: 60fb str r3, [r7, #12]
  56339. }
  56340. return xNextExpireTime;
  56341. 8017608: 68fb ldr r3, [r7, #12]
  56342. }
  56343. 801760a: 4618 mov r0, r3
  56344. 801760c: 3714 adds r7, #20
  56345. 801760e: 46bd mov sp, r7
  56346. 8017610: f85d 7b04 ldr.w r7, [sp], #4
  56347. 8017614: 4770 bx lr
  56348. 8017616: bf00 nop
  56349. 8017618: 24002f20 .word 0x24002f20
  56350. 0801761c <prvSampleTimeNow>:
  56351. /*-----------------------------------------------------------*/
  56352. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  56353. {
  56354. 801761c: b580 push {r7, lr}
  56355. 801761e: b084 sub sp, #16
  56356. 8017620: af00 add r7, sp, #0
  56357. 8017622: 6078 str r0, [r7, #4]
  56358. TickType_t xTimeNow;
  56359. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  56360. xTimeNow = xTaskGetTickCount();
  56361. 8017624: f7fe fe52 bl 80162cc <xTaskGetTickCount>
  56362. 8017628: 60f8 str r0, [r7, #12]
  56363. if( xTimeNow < xLastTime )
  56364. 801762a: 4b0b ldr r3, [pc, #44] @ (8017658 <prvSampleTimeNow+0x3c>)
  56365. 801762c: 681b ldr r3, [r3, #0]
  56366. 801762e: 68fa ldr r2, [r7, #12]
  56367. 8017630: 429a cmp r2, r3
  56368. 8017632: d205 bcs.n 8017640 <prvSampleTimeNow+0x24>
  56369. {
  56370. prvSwitchTimerLists();
  56371. 8017634: f000 f93a bl 80178ac <prvSwitchTimerLists>
  56372. *pxTimerListsWereSwitched = pdTRUE;
  56373. 8017638: 687b ldr r3, [r7, #4]
  56374. 801763a: 2201 movs r2, #1
  56375. 801763c: 601a str r2, [r3, #0]
  56376. 801763e: e002 b.n 8017646 <prvSampleTimeNow+0x2a>
  56377. }
  56378. else
  56379. {
  56380. *pxTimerListsWereSwitched = pdFALSE;
  56381. 8017640: 687b ldr r3, [r7, #4]
  56382. 8017642: 2200 movs r2, #0
  56383. 8017644: 601a str r2, [r3, #0]
  56384. }
  56385. xLastTime = xTimeNow;
  56386. 8017646: 4a04 ldr r2, [pc, #16] @ (8017658 <prvSampleTimeNow+0x3c>)
  56387. 8017648: 68fb ldr r3, [r7, #12]
  56388. 801764a: 6013 str r3, [r2, #0]
  56389. return xTimeNow;
  56390. 801764c: 68fb ldr r3, [r7, #12]
  56391. }
  56392. 801764e: 4618 mov r0, r3
  56393. 8017650: 3710 adds r7, #16
  56394. 8017652: 46bd mov sp, r7
  56395. 8017654: bd80 pop {r7, pc}
  56396. 8017656: bf00 nop
  56397. 8017658: 24002f30 .word 0x24002f30
  56398. 0801765c <prvInsertTimerInActiveList>:
  56399. /*-----------------------------------------------------------*/
  56400. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  56401. {
  56402. 801765c: b580 push {r7, lr}
  56403. 801765e: b086 sub sp, #24
  56404. 8017660: af00 add r7, sp, #0
  56405. 8017662: 60f8 str r0, [r7, #12]
  56406. 8017664: 60b9 str r1, [r7, #8]
  56407. 8017666: 607a str r2, [r7, #4]
  56408. 8017668: 603b str r3, [r7, #0]
  56409. BaseType_t xProcessTimerNow = pdFALSE;
  56410. 801766a: 2300 movs r3, #0
  56411. 801766c: 617b str r3, [r7, #20]
  56412. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  56413. 801766e: 68fb ldr r3, [r7, #12]
  56414. 8017670: 68ba ldr r2, [r7, #8]
  56415. 8017672: 605a str r2, [r3, #4]
  56416. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56417. 8017674: 68fb ldr r3, [r7, #12]
  56418. 8017676: 68fa ldr r2, [r7, #12]
  56419. 8017678: 611a str r2, [r3, #16]
  56420. if( xNextExpiryTime <= xTimeNow )
  56421. 801767a: 68ba ldr r2, [r7, #8]
  56422. 801767c: 687b ldr r3, [r7, #4]
  56423. 801767e: 429a cmp r2, r3
  56424. 8017680: d812 bhi.n 80176a8 <prvInsertTimerInActiveList+0x4c>
  56425. {
  56426. /* Has the expiry time elapsed between the command to start/reset a
  56427. timer was issued, and the time the command was processed? */
  56428. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  56429. 8017682: 687a ldr r2, [r7, #4]
  56430. 8017684: 683b ldr r3, [r7, #0]
  56431. 8017686: 1ad2 subs r2, r2, r3
  56432. 8017688: 68fb ldr r3, [r7, #12]
  56433. 801768a: 699b ldr r3, [r3, #24]
  56434. 801768c: 429a cmp r2, r3
  56435. 801768e: d302 bcc.n 8017696 <prvInsertTimerInActiveList+0x3a>
  56436. {
  56437. /* The time between a command being issued and the command being
  56438. processed actually exceeds the timers period. */
  56439. xProcessTimerNow = pdTRUE;
  56440. 8017690: 2301 movs r3, #1
  56441. 8017692: 617b str r3, [r7, #20]
  56442. 8017694: e01b b.n 80176ce <prvInsertTimerInActiveList+0x72>
  56443. }
  56444. else
  56445. {
  56446. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  56447. 8017696: 4b10 ldr r3, [pc, #64] @ (80176d8 <prvInsertTimerInActiveList+0x7c>)
  56448. 8017698: 681a ldr r2, [r3, #0]
  56449. 801769a: 68fb ldr r3, [r7, #12]
  56450. 801769c: 3304 adds r3, #4
  56451. 801769e: 4619 mov r1, r3
  56452. 80176a0: 4610 mov r0, r2
  56453. 80176a2: f7fd f94a bl 801493a <vListInsert>
  56454. 80176a6: e012 b.n 80176ce <prvInsertTimerInActiveList+0x72>
  56455. }
  56456. }
  56457. else
  56458. {
  56459. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  56460. 80176a8: 687a ldr r2, [r7, #4]
  56461. 80176aa: 683b ldr r3, [r7, #0]
  56462. 80176ac: 429a cmp r2, r3
  56463. 80176ae: d206 bcs.n 80176be <prvInsertTimerInActiveList+0x62>
  56464. 80176b0: 68ba ldr r2, [r7, #8]
  56465. 80176b2: 683b ldr r3, [r7, #0]
  56466. 80176b4: 429a cmp r2, r3
  56467. 80176b6: d302 bcc.n 80176be <prvInsertTimerInActiveList+0x62>
  56468. {
  56469. /* If, since the command was issued, the tick count has overflowed
  56470. but the expiry time has not, then the timer must have already passed
  56471. its expiry time and should be processed immediately. */
  56472. xProcessTimerNow = pdTRUE;
  56473. 80176b8: 2301 movs r3, #1
  56474. 80176ba: 617b str r3, [r7, #20]
  56475. 80176bc: e007 b.n 80176ce <prvInsertTimerInActiveList+0x72>
  56476. }
  56477. else
  56478. {
  56479. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56480. 80176be: 4b07 ldr r3, [pc, #28] @ (80176dc <prvInsertTimerInActiveList+0x80>)
  56481. 80176c0: 681a ldr r2, [r3, #0]
  56482. 80176c2: 68fb ldr r3, [r7, #12]
  56483. 80176c4: 3304 adds r3, #4
  56484. 80176c6: 4619 mov r1, r3
  56485. 80176c8: 4610 mov r0, r2
  56486. 80176ca: f7fd f936 bl 801493a <vListInsert>
  56487. }
  56488. }
  56489. return xProcessTimerNow;
  56490. 80176ce: 697b ldr r3, [r7, #20]
  56491. }
  56492. 80176d0: 4618 mov r0, r3
  56493. 80176d2: 3718 adds r7, #24
  56494. 80176d4: 46bd mov sp, r7
  56495. 80176d6: bd80 pop {r7, pc}
  56496. 80176d8: 24002f24 .word 0x24002f24
  56497. 80176dc: 24002f20 .word 0x24002f20
  56498. 080176e0 <prvProcessReceivedCommands>:
  56499. /*-----------------------------------------------------------*/
  56500. static void prvProcessReceivedCommands( void )
  56501. {
  56502. 80176e0: b580 push {r7, lr}
  56503. 80176e2: b08e sub sp, #56 @ 0x38
  56504. 80176e4: af02 add r7, sp, #8
  56505. DaemonTaskMessage_t xMessage;
  56506. Timer_t *pxTimer;
  56507. BaseType_t xTimerListsWereSwitched, xResult;
  56508. TickType_t xTimeNow;
  56509. 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. */
  56510. 80176e6: e0ce b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56511. {
  56512. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  56513. {
  56514. /* Negative commands are pended function calls rather than timer
  56515. commands. */
  56516. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  56517. 80176e8: 687b ldr r3, [r7, #4]
  56518. 80176ea: 2b00 cmp r3, #0
  56519. 80176ec: da19 bge.n 8017722 <prvProcessReceivedCommands+0x42>
  56520. {
  56521. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  56522. 80176ee: 1d3b adds r3, r7, #4
  56523. 80176f0: 3304 adds r3, #4
  56524. 80176f2: 62fb str r3, [r7, #44] @ 0x2c
  56525. /* The timer uses the xCallbackParameters member to request a
  56526. callback be executed. Check the callback is not NULL. */
  56527. configASSERT( pxCallback );
  56528. 80176f4: 6afb ldr r3, [r7, #44] @ 0x2c
  56529. 80176f6: 2b00 cmp r3, #0
  56530. 80176f8: d10b bne.n 8017712 <prvProcessReceivedCommands+0x32>
  56531. __asm volatile
  56532. 80176fa: f04f 0350 mov.w r3, #80 @ 0x50
  56533. 80176fe: f383 8811 msr BASEPRI, r3
  56534. 8017702: f3bf 8f6f isb sy
  56535. 8017706: f3bf 8f4f dsb sy
  56536. 801770a: 61fb str r3, [r7, #28]
  56537. }
  56538. 801770c: bf00 nop
  56539. 801770e: bf00 nop
  56540. 8017710: e7fd b.n 801770e <prvProcessReceivedCommands+0x2e>
  56541. /* Call the function. */
  56542. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  56543. 8017712: 6afb ldr r3, [r7, #44] @ 0x2c
  56544. 8017714: 681b ldr r3, [r3, #0]
  56545. 8017716: 6afa ldr r2, [r7, #44] @ 0x2c
  56546. 8017718: 6850 ldr r0, [r2, #4]
  56547. 801771a: 6afa ldr r2, [r7, #44] @ 0x2c
  56548. 801771c: 6892 ldr r2, [r2, #8]
  56549. 801771e: 4611 mov r1, r2
  56550. 8017720: 4798 blx r3
  56551. }
  56552. #endif /* INCLUDE_xTimerPendFunctionCall */
  56553. /* Commands that are positive are timer commands rather than pended
  56554. function calls. */
  56555. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  56556. 8017722: 687b ldr r3, [r7, #4]
  56557. 8017724: 2b00 cmp r3, #0
  56558. 8017726: f2c0 80ae blt.w 8017886 <prvProcessReceivedCommands+0x1a6>
  56559. {
  56560. /* The messages uses the xTimerParameters member to work on a
  56561. software timer. */
  56562. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  56563. 801772a: 68fb ldr r3, [r7, #12]
  56564. 801772c: 62bb str r3, [r7, #40] @ 0x28
  56565. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  56566. 801772e: 6abb ldr r3, [r7, #40] @ 0x28
  56567. 8017730: 695b ldr r3, [r3, #20]
  56568. 8017732: 2b00 cmp r3, #0
  56569. 8017734: d004 beq.n 8017740 <prvProcessReceivedCommands+0x60>
  56570. {
  56571. /* The timer is in a list, remove it. */
  56572. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56573. 8017736: 6abb ldr r3, [r7, #40] @ 0x28
  56574. 8017738: 3304 adds r3, #4
  56575. 801773a: 4618 mov r0, r3
  56576. 801773c: f7fd f936 bl 80149ac <uxListRemove>
  56577. it must be present in the function call. prvSampleTimeNow() must be
  56578. called after the message is received from xTimerQueue so there is no
  56579. possibility of a higher priority task adding a message to the message
  56580. queue with a time that is ahead of the timer daemon task (because it
  56581. pre-empted the timer daemon task after the xTimeNow value was set). */
  56582. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  56583. 8017740: 463b mov r3, r7
  56584. 8017742: 4618 mov r0, r3
  56585. 8017744: f7ff ff6a bl 801761c <prvSampleTimeNow>
  56586. 8017748: 6278 str r0, [r7, #36] @ 0x24
  56587. switch( xMessage.xMessageID )
  56588. 801774a: 687b ldr r3, [r7, #4]
  56589. 801774c: 2b09 cmp r3, #9
  56590. 801774e: f200 8097 bhi.w 8017880 <prvProcessReceivedCommands+0x1a0>
  56591. 8017752: a201 add r2, pc, #4 @ (adr r2, 8017758 <prvProcessReceivedCommands+0x78>)
  56592. 8017754: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  56593. 8017758: 08017781 .word 0x08017781
  56594. 801775c: 08017781 .word 0x08017781
  56595. 8017760: 08017781 .word 0x08017781
  56596. 8017764: 080177f7 .word 0x080177f7
  56597. 8017768: 0801780b .word 0x0801780b
  56598. 801776c: 08017857 .word 0x08017857
  56599. 8017770: 08017781 .word 0x08017781
  56600. 8017774: 08017781 .word 0x08017781
  56601. 8017778: 080177f7 .word 0x080177f7
  56602. 801777c: 0801780b .word 0x0801780b
  56603. case tmrCOMMAND_START_FROM_ISR :
  56604. case tmrCOMMAND_RESET :
  56605. case tmrCOMMAND_RESET_FROM_ISR :
  56606. case tmrCOMMAND_START_DONT_TRACE :
  56607. /* Start or restart a timer. */
  56608. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56609. 8017780: 6abb ldr r3, [r7, #40] @ 0x28
  56610. 8017782: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56611. 8017786: f043 0301 orr.w r3, r3, #1
  56612. 801778a: b2da uxtb r2, r3
  56613. 801778c: 6abb ldr r3, [r7, #40] @ 0x28
  56614. 801778e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56615. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  56616. 8017792: 68ba ldr r2, [r7, #8]
  56617. 8017794: 6abb ldr r3, [r7, #40] @ 0x28
  56618. 8017796: 699b ldr r3, [r3, #24]
  56619. 8017798: 18d1 adds r1, r2, r3
  56620. 801779a: 68bb ldr r3, [r7, #8]
  56621. 801779c: 6a7a ldr r2, [r7, #36] @ 0x24
  56622. 801779e: 6ab8 ldr r0, [r7, #40] @ 0x28
  56623. 80177a0: f7ff ff5c bl 801765c <prvInsertTimerInActiveList>
  56624. 80177a4: 4603 mov r3, r0
  56625. 80177a6: 2b00 cmp r3, #0
  56626. 80177a8: d06c beq.n 8017884 <prvProcessReceivedCommands+0x1a4>
  56627. {
  56628. /* The timer expired before it was added to the active
  56629. timer list. Process it now. */
  56630. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56631. 80177aa: 6abb ldr r3, [r7, #40] @ 0x28
  56632. 80177ac: 6a1b ldr r3, [r3, #32]
  56633. 80177ae: 6ab8 ldr r0, [r7, #40] @ 0x28
  56634. 80177b0: 4798 blx r3
  56635. traceTIMER_EXPIRED( pxTimer );
  56636. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56637. 80177b2: 6abb ldr r3, [r7, #40] @ 0x28
  56638. 80177b4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56639. 80177b8: f003 0304 and.w r3, r3, #4
  56640. 80177bc: 2b00 cmp r3, #0
  56641. 80177be: d061 beq.n 8017884 <prvProcessReceivedCommands+0x1a4>
  56642. {
  56643. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  56644. 80177c0: 68ba ldr r2, [r7, #8]
  56645. 80177c2: 6abb ldr r3, [r7, #40] @ 0x28
  56646. 80177c4: 699b ldr r3, [r3, #24]
  56647. 80177c6: 441a add r2, r3
  56648. 80177c8: 2300 movs r3, #0
  56649. 80177ca: 9300 str r3, [sp, #0]
  56650. 80177cc: 2300 movs r3, #0
  56651. 80177ce: 2100 movs r1, #0
  56652. 80177d0: 6ab8 ldr r0, [r7, #40] @ 0x28
  56653. 80177d2: f7ff fe01 bl 80173d8 <xTimerGenericCommand>
  56654. 80177d6: 6238 str r0, [r7, #32]
  56655. configASSERT( xResult );
  56656. 80177d8: 6a3b ldr r3, [r7, #32]
  56657. 80177da: 2b00 cmp r3, #0
  56658. 80177dc: d152 bne.n 8017884 <prvProcessReceivedCommands+0x1a4>
  56659. __asm volatile
  56660. 80177de: f04f 0350 mov.w r3, #80 @ 0x50
  56661. 80177e2: f383 8811 msr BASEPRI, r3
  56662. 80177e6: f3bf 8f6f isb sy
  56663. 80177ea: f3bf 8f4f dsb sy
  56664. 80177ee: 61bb str r3, [r7, #24]
  56665. }
  56666. 80177f0: bf00 nop
  56667. 80177f2: bf00 nop
  56668. 80177f4: e7fd b.n 80177f2 <prvProcessReceivedCommands+0x112>
  56669. break;
  56670. case tmrCOMMAND_STOP :
  56671. case tmrCOMMAND_STOP_FROM_ISR :
  56672. /* The timer has already been removed from the active list. */
  56673. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56674. 80177f6: 6abb ldr r3, [r7, #40] @ 0x28
  56675. 80177f8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56676. 80177fc: f023 0301 bic.w r3, r3, #1
  56677. 8017800: b2da uxtb r2, r3
  56678. 8017802: 6abb ldr r3, [r7, #40] @ 0x28
  56679. 8017804: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56680. break;
  56681. 8017808: e03d b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56682. case tmrCOMMAND_CHANGE_PERIOD :
  56683. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  56684. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  56685. 801780a: 6abb ldr r3, [r7, #40] @ 0x28
  56686. 801780c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56687. 8017810: f043 0301 orr.w r3, r3, #1
  56688. 8017814: b2da uxtb r2, r3
  56689. 8017816: 6abb ldr r3, [r7, #40] @ 0x28
  56690. 8017818: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56691. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  56692. 801781c: 68ba ldr r2, [r7, #8]
  56693. 801781e: 6abb ldr r3, [r7, #40] @ 0x28
  56694. 8017820: 619a str r2, [r3, #24]
  56695. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  56696. 8017822: 6abb ldr r3, [r7, #40] @ 0x28
  56697. 8017824: 699b ldr r3, [r3, #24]
  56698. 8017826: 2b00 cmp r3, #0
  56699. 8017828: d10b bne.n 8017842 <prvProcessReceivedCommands+0x162>
  56700. __asm volatile
  56701. 801782a: f04f 0350 mov.w r3, #80 @ 0x50
  56702. 801782e: f383 8811 msr BASEPRI, r3
  56703. 8017832: f3bf 8f6f isb sy
  56704. 8017836: f3bf 8f4f dsb sy
  56705. 801783a: 617b str r3, [r7, #20]
  56706. }
  56707. 801783c: bf00 nop
  56708. 801783e: bf00 nop
  56709. 8017840: e7fd b.n 801783e <prvProcessReceivedCommands+0x15e>
  56710. be longer or shorter than the old one. The command time is
  56711. therefore set to the current time, and as the period cannot
  56712. be zero the next expiry time can only be in the future,
  56713. meaning (unlike for the xTimerStart() case above) there is
  56714. no fail case that needs to be handled here. */
  56715. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  56716. 8017842: 6abb ldr r3, [r7, #40] @ 0x28
  56717. 8017844: 699a ldr r2, [r3, #24]
  56718. 8017846: 6a7b ldr r3, [r7, #36] @ 0x24
  56719. 8017848: 18d1 adds r1, r2, r3
  56720. 801784a: 6a7b ldr r3, [r7, #36] @ 0x24
  56721. 801784c: 6a7a ldr r2, [r7, #36] @ 0x24
  56722. 801784e: 6ab8 ldr r0, [r7, #40] @ 0x28
  56723. 8017850: f7ff ff04 bl 801765c <prvInsertTimerInActiveList>
  56724. break;
  56725. 8017854: e017 b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56726. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  56727. {
  56728. /* The timer has already been removed from the active list,
  56729. just free up the memory if the memory was dynamically
  56730. allocated. */
  56731. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  56732. 8017856: 6abb ldr r3, [r7, #40] @ 0x28
  56733. 8017858: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56734. 801785c: f003 0302 and.w r3, r3, #2
  56735. 8017860: 2b00 cmp r3, #0
  56736. 8017862: d103 bne.n 801786c <prvProcessReceivedCommands+0x18c>
  56737. {
  56738. vPortFree( pxTimer );
  56739. 8017864: 6ab8 ldr r0, [r7, #40] @ 0x28
  56740. 8017866: f000 fc37 bl 80180d8 <vPortFree>
  56741. no need to free the memory - just mark the timer as
  56742. "not active". */
  56743. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56744. }
  56745. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  56746. break;
  56747. 801786a: e00c b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56748. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  56749. 801786c: 6abb ldr r3, [r7, #40] @ 0x28
  56750. 801786e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56751. 8017872: f023 0301 bic.w r3, r3, #1
  56752. 8017876: b2da uxtb r2, r3
  56753. 8017878: 6abb ldr r3, [r7, #40] @ 0x28
  56754. 801787a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56755. break;
  56756. 801787e: e002 b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56757. default :
  56758. /* Don't expect to get here. */
  56759. break;
  56760. 8017880: bf00 nop
  56761. 8017882: e000 b.n 8017886 <prvProcessReceivedCommands+0x1a6>
  56762. break;
  56763. 8017884: bf00 nop
  56764. 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. */
  56765. 8017886: 4b08 ldr r3, [pc, #32] @ (80178a8 <prvProcessReceivedCommands+0x1c8>)
  56766. 8017888: 681b ldr r3, [r3, #0]
  56767. 801788a: 1d39 adds r1, r7, #4
  56768. 801788c: 2200 movs r2, #0
  56769. 801788e: 4618 mov r0, r3
  56770. 8017890: f7fd fc54 bl 801513c <xQueueReceive>
  56771. 8017894: 4603 mov r3, r0
  56772. 8017896: 2b00 cmp r3, #0
  56773. 8017898: f47f af26 bne.w 80176e8 <prvProcessReceivedCommands+0x8>
  56774. }
  56775. }
  56776. }
  56777. }
  56778. 801789c: bf00 nop
  56779. 801789e: bf00 nop
  56780. 80178a0: 3730 adds r7, #48 @ 0x30
  56781. 80178a2: 46bd mov sp, r7
  56782. 80178a4: bd80 pop {r7, pc}
  56783. 80178a6: bf00 nop
  56784. 80178a8: 24002f28 .word 0x24002f28
  56785. 080178ac <prvSwitchTimerLists>:
  56786. /*-----------------------------------------------------------*/
  56787. static void prvSwitchTimerLists( void )
  56788. {
  56789. 80178ac: b580 push {r7, lr}
  56790. 80178ae: b088 sub sp, #32
  56791. 80178b0: af02 add r7, sp, #8
  56792. /* The tick count has overflowed. The timer lists must be switched.
  56793. If there are any timers still referenced from the current timer list
  56794. then they must have expired and should be processed before the lists
  56795. are switched. */
  56796. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56797. 80178b2: e049 b.n 8017948 <prvSwitchTimerLists+0x9c>
  56798. {
  56799. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  56800. 80178b4: 4b2e ldr r3, [pc, #184] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56801. 80178b6: 681b ldr r3, [r3, #0]
  56802. 80178b8: 68db ldr r3, [r3, #12]
  56803. 80178ba: 681b ldr r3, [r3, #0]
  56804. 80178bc: 613b str r3, [r7, #16]
  56805. /* Remove the timer from the list. */
  56806. 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. */
  56807. 80178be: 4b2c ldr r3, [pc, #176] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56808. 80178c0: 681b ldr r3, [r3, #0]
  56809. 80178c2: 68db ldr r3, [r3, #12]
  56810. 80178c4: 68db ldr r3, [r3, #12]
  56811. 80178c6: 60fb str r3, [r7, #12]
  56812. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  56813. 80178c8: 68fb ldr r3, [r7, #12]
  56814. 80178ca: 3304 adds r3, #4
  56815. 80178cc: 4618 mov r0, r3
  56816. 80178ce: f7fd f86d bl 80149ac <uxListRemove>
  56817. traceTIMER_EXPIRED( pxTimer );
  56818. /* Execute its callback, then send a command to restart the timer if
  56819. it is an auto-reload timer. It cannot be restarted here as the lists
  56820. have not yet been switched. */
  56821. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  56822. 80178d2: 68fb ldr r3, [r7, #12]
  56823. 80178d4: 6a1b ldr r3, [r3, #32]
  56824. 80178d6: 68f8 ldr r0, [r7, #12]
  56825. 80178d8: 4798 blx r3
  56826. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  56827. 80178da: 68fb ldr r3, [r7, #12]
  56828. 80178dc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56829. 80178e0: f003 0304 and.w r3, r3, #4
  56830. 80178e4: 2b00 cmp r3, #0
  56831. 80178e6: d02f beq.n 8017948 <prvSwitchTimerLists+0x9c>
  56832. the timer going into the same timer list then it has already expired
  56833. and the timer should be re-inserted into the current list so it is
  56834. processed again within this loop. Otherwise a command should be sent
  56835. to restart the timer to ensure it is only inserted into a list after
  56836. the lists have been swapped. */
  56837. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  56838. 80178e8: 68fb ldr r3, [r7, #12]
  56839. 80178ea: 699b ldr r3, [r3, #24]
  56840. 80178ec: 693a ldr r2, [r7, #16]
  56841. 80178ee: 4413 add r3, r2
  56842. 80178f0: 60bb str r3, [r7, #8]
  56843. if( xReloadTime > xNextExpireTime )
  56844. 80178f2: 68ba ldr r2, [r7, #8]
  56845. 80178f4: 693b ldr r3, [r7, #16]
  56846. 80178f6: 429a cmp r2, r3
  56847. 80178f8: d90e bls.n 8017918 <prvSwitchTimerLists+0x6c>
  56848. {
  56849. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  56850. 80178fa: 68fb ldr r3, [r7, #12]
  56851. 80178fc: 68ba ldr r2, [r7, #8]
  56852. 80178fe: 605a str r2, [r3, #4]
  56853. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  56854. 8017900: 68fb ldr r3, [r7, #12]
  56855. 8017902: 68fa ldr r2, [r7, #12]
  56856. 8017904: 611a str r2, [r3, #16]
  56857. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  56858. 8017906: 4b1a ldr r3, [pc, #104] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56859. 8017908: 681a ldr r2, [r3, #0]
  56860. 801790a: 68fb ldr r3, [r7, #12]
  56861. 801790c: 3304 adds r3, #4
  56862. 801790e: 4619 mov r1, r3
  56863. 8017910: 4610 mov r0, r2
  56864. 8017912: f7fd f812 bl 801493a <vListInsert>
  56865. 8017916: e017 b.n 8017948 <prvSwitchTimerLists+0x9c>
  56866. }
  56867. else
  56868. {
  56869. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  56870. 8017918: 2300 movs r3, #0
  56871. 801791a: 9300 str r3, [sp, #0]
  56872. 801791c: 2300 movs r3, #0
  56873. 801791e: 693a ldr r2, [r7, #16]
  56874. 8017920: 2100 movs r1, #0
  56875. 8017922: 68f8 ldr r0, [r7, #12]
  56876. 8017924: f7ff fd58 bl 80173d8 <xTimerGenericCommand>
  56877. 8017928: 6078 str r0, [r7, #4]
  56878. configASSERT( xResult );
  56879. 801792a: 687b ldr r3, [r7, #4]
  56880. 801792c: 2b00 cmp r3, #0
  56881. 801792e: d10b bne.n 8017948 <prvSwitchTimerLists+0x9c>
  56882. __asm volatile
  56883. 8017930: f04f 0350 mov.w r3, #80 @ 0x50
  56884. 8017934: f383 8811 msr BASEPRI, r3
  56885. 8017938: f3bf 8f6f isb sy
  56886. 801793c: f3bf 8f4f dsb sy
  56887. 8017940: 603b str r3, [r7, #0]
  56888. }
  56889. 8017942: bf00 nop
  56890. 8017944: bf00 nop
  56891. 8017946: e7fd b.n 8017944 <prvSwitchTimerLists+0x98>
  56892. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  56893. 8017948: 4b09 ldr r3, [pc, #36] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56894. 801794a: 681b ldr r3, [r3, #0]
  56895. 801794c: 681b ldr r3, [r3, #0]
  56896. 801794e: 2b00 cmp r3, #0
  56897. 8017950: d1b0 bne.n 80178b4 <prvSwitchTimerLists+0x8>
  56898. {
  56899. mtCOVERAGE_TEST_MARKER();
  56900. }
  56901. }
  56902. pxTemp = pxCurrentTimerList;
  56903. 8017952: 4b07 ldr r3, [pc, #28] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56904. 8017954: 681b ldr r3, [r3, #0]
  56905. 8017956: 617b str r3, [r7, #20]
  56906. pxCurrentTimerList = pxOverflowTimerList;
  56907. 8017958: 4b06 ldr r3, [pc, #24] @ (8017974 <prvSwitchTimerLists+0xc8>)
  56908. 801795a: 681b ldr r3, [r3, #0]
  56909. 801795c: 4a04 ldr r2, [pc, #16] @ (8017970 <prvSwitchTimerLists+0xc4>)
  56910. 801795e: 6013 str r3, [r2, #0]
  56911. pxOverflowTimerList = pxTemp;
  56912. 8017960: 4a04 ldr r2, [pc, #16] @ (8017974 <prvSwitchTimerLists+0xc8>)
  56913. 8017962: 697b ldr r3, [r7, #20]
  56914. 8017964: 6013 str r3, [r2, #0]
  56915. }
  56916. 8017966: bf00 nop
  56917. 8017968: 3718 adds r7, #24
  56918. 801796a: 46bd mov sp, r7
  56919. 801796c: bd80 pop {r7, pc}
  56920. 801796e: bf00 nop
  56921. 8017970: 24002f20 .word 0x24002f20
  56922. 8017974: 24002f24 .word 0x24002f24
  56923. 08017978 <prvCheckForValidListAndQueue>:
  56924. /*-----------------------------------------------------------*/
  56925. static void prvCheckForValidListAndQueue( void )
  56926. {
  56927. 8017978: b580 push {r7, lr}
  56928. 801797a: b082 sub sp, #8
  56929. 801797c: af02 add r7, sp, #8
  56930. /* Check that the list from which active timers are referenced, and the
  56931. queue used to communicate with the timer service, have been
  56932. initialised. */
  56933. taskENTER_CRITICAL();
  56934. 801797e: f000 f9bb bl 8017cf8 <vPortEnterCritical>
  56935. {
  56936. if( xTimerQueue == NULL )
  56937. 8017982: 4b15 ldr r3, [pc, #84] @ (80179d8 <prvCheckForValidListAndQueue+0x60>)
  56938. 8017984: 681b ldr r3, [r3, #0]
  56939. 8017986: 2b00 cmp r3, #0
  56940. 8017988: d120 bne.n 80179cc <prvCheckForValidListAndQueue+0x54>
  56941. {
  56942. vListInitialise( &xActiveTimerList1 );
  56943. 801798a: 4814 ldr r0, [pc, #80] @ (80179dc <prvCheckForValidListAndQueue+0x64>)
  56944. 801798c: f7fc ff84 bl 8014898 <vListInitialise>
  56945. vListInitialise( &xActiveTimerList2 );
  56946. 8017990: 4813 ldr r0, [pc, #76] @ (80179e0 <prvCheckForValidListAndQueue+0x68>)
  56947. 8017992: f7fc ff81 bl 8014898 <vListInitialise>
  56948. pxCurrentTimerList = &xActiveTimerList1;
  56949. 8017996: 4b13 ldr r3, [pc, #76] @ (80179e4 <prvCheckForValidListAndQueue+0x6c>)
  56950. 8017998: 4a10 ldr r2, [pc, #64] @ (80179dc <prvCheckForValidListAndQueue+0x64>)
  56951. 801799a: 601a str r2, [r3, #0]
  56952. pxOverflowTimerList = &xActiveTimerList2;
  56953. 801799c: 4b12 ldr r3, [pc, #72] @ (80179e8 <prvCheckForValidListAndQueue+0x70>)
  56954. 801799e: 4a10 ldr r2, [pc, #64] @ (80179e0 <prvCheckForValidListAndQueue+0x68>)
  56955. 80179a0: 601a str r2, [r3, #0]
  56956. /* The timer queue is allocated statically in case
  56957. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  56958. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  56959. 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. */
  56960. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  56961. 80179a2: 2300 movs r3, #0
  56962. 80179a4: 9300 str r3, [sp, #0]
  56963. 80179a6: 4b11 ldr r3, [pc, #68] @ (80179ec <prvCheckForValidListAndQueue+0x74>)
  56964. 80179a8: 4a11 ldr r2, [pc, #68] @ (80179f0 <prvCheckForValidListAndQueue+0x78>)
  56965. 80179aa: 2110 movs r1, #16
  56966. 80179ac: 200a movs r0, #10
  56967. 80179ae: f7fd f891 bl 8014ad4 <xQueueGenericCreateStatic>
  56968. 80179b2: 4603 mov r3, r0
  56969. 80179b4: 4a08 ldr r2, [pc, #32] @ (80179d8 <prvCheckForValidListAndQueue+0x60>)
  56970. 80179b6: 6013 str r3, [r2, #0]
  56971. }
  56972. #endif
  56973. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  56974. {
  56975. if( xTimerQueue != NULL )
  56976. 80179b8: 4b07 ldr r3, [pc, #28] @ (80179d8 <prvCheckForValidListAndQueue+0x60>)
  56977. 80179ba: 681b ldr r3, [r3, #0]
  56978. 80179bc: 2b00 cmp r3, #0
  56979. 80179be: d005 beq.n 80179cc <prvCheckForValidListAndQueue+0x54>
  56980. {
  56981. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  56982. 80179c0: 4b05 ldr r3, [pc, #20] @ (80179d8 <prvCheckForValidListAndQueue+0x60>)
  56983. 80179c2: 681b ldr r3, [r3, #0]
  56984. 80179c4: 490b ldr r1, [pc, #44] @ (80179f4 <prvCheckForValidListAndQueue+0x7c>)
  56985. 80179c6: 4618 mov r0, r3
  56986. 80179c8: f7fd ff54 bl 8015874 <vQueueAddToRegistry>
  56987. else
  56988. {
  56989. mtCOVERAGE_TEST_MARKER();
  56990. }
  56991. }
  56992. taskEXIT_CRITICAL();
  56993. 80179cc: f000 f9c6 bl 8017d5c <vPortExitCritical>
  56994. }
  56995. 80179d0: bf00 nop
  56996. 80179d2: 46bd mov sp, r7
  56997. 80179d4: bd80 pop {r7, pc}
  56998. 80179d6: bf00 nop
  56999. 80179d8: 24002f28 .word 0x24002f28
  57000. 80179dc: 24002ef8 .word 0x24002ef8
  57001. 80179e0: 24002f0c .word 0x24002f0c
  57002. 80179e4: 24002f20 .word 0x24002f20
  57003. 80179e8: 24002f24 .word 0x24002f24
  57004. 80179ec: 24002fd4 .word 0x24002fd4
  57005. 80179f0: 24002f34 .word 0x24002f34
  57006. 80179f4: 080186a0 .word 0x080186a0
  57007. 080179f8 <xTimerIsTimerActive>:
  57008. /*-----------------------------------------------------------*/
  57009. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  57010. {
  57011. 80179f8: b580 push {r7, lr}
  57012. 80179fa: b086 sub sp, #24
  57013. 80179fc: af00 add r7, sp, #0
  57014. 80179fe: 6078 str r0, [r7, #4]
  57015. BaseType_t xReturn;
  57016. Timer_t *pxTimer = xTimer;
  57017. 8017a00: 687b ldr r3, [r7, #4]
  57018. 8017a02: 613b str r3, [r7, #16]
  57019. configASSERT( xTimer );
  57020. 8017a04: 687b ldr r3, [r7, #4]
  57021. 8017a06: 2b00 cmp r3, #0
  57022. 8017a08: d10b bne.n 8017a22 <xTimerIsTimerActive+0x2a>
  57023. __asm volatile
  57024. 8017a0a: f04f 0350 mov.w r3, #80 @ 0x50
  57025. 8017a0e: f383 8811 msr BASEPRI, r3
  57026. 8017a12: f3bf 8f6f isb sy
  57027. 8017a16: f3bf 8f4f dsb sy
  57028. 8017a1a: 60fb str r3, [r7, #12]
  57029. }
  57030. 8017a1c: bf00 nop
  57031. 8017a1e: bf00 nop
  57032. 8017a20: e7fd b.n 8017a1e <xTimerIsTimerActive+0x26>
  57033. /* Is the timer in the list of active timers? */
  57034. taskENTER_CRITICAL();
  57035. 8017a22: f000 f969 bl 8017cf8 <vPortEnterCritical>
  57036. {
  57037. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  57038. 8017a26: 693b ldr r3, [r7, #16]
  57039. 8017a28: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57040. 8017a2c: f003 0301 and.w r3, r3, #1
  57041. 8017a30: 2b00 cmp r3, #0
  57042. 8017a32: d102 bne.n 8017a3a <xTimerIsTimerActive+0x42>
  57043. {
  57044. xReturn = pdFALSE;
  57045. 8017a34: 2300 movs r3, #0
  57046. 8017a36: 617b str r3, [r7, #20]
  57047. 8017a38: e001 b.n 8017a3e <xTimerIsTimerActive+0x46>
  57048. }
  57049. else
  57050. {
  57051. xReturn = pdTRUE;
  57052. 8017a3a: 2301 movs r3, #1
  57053. 8017a3c: 617b str r3, [r7, #20]
  57054. }
  57055. }
  57056. taskEXIT_CRITICAL();
  57057. 8017a3e: f000 f98d bl 8017d5c <vPortExitCritical>
  57058. return xReturn;
  57059. 8017a42: 697b ldr r3, [r7, #20]
  57060. } /*lint !e818 Can't be pointer to const due to the typedef. */
  57061. 8017a44: 4618 mov r0, r3
  57062. 8017a46: 3718 adds r7, #24
  57063. 8017a48: 46bd mov sp, r7
  57064. 8017a4a: bd80 pop {r7, pc}
  57065. 08017a4c <pvTimerGetTimerID>:
  57066. /*-----------------------------------------------------------*/
  57067. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  57068. {
  57069. 8017a4c: b580 push {r7, lr}
  57070. 8017a4e: b086 sub sp, #24
  57071. 8017a50: af00 add r7, sp, #0
  57072. 8017a52: 6078 str r0, [r7, #4]
  57073. Timer_t * const pxTimer = xTimer;
  57074. 8017a54: 687b ldr r3, [r7, #4]
  57075. 8017a56: 617b str r3, [r7, #20]
  57076. void *pvReturn;
  57077. configASSERT( xTimer );
  57078. 8017a58: 687b ldr r3, [r7, #4]
  57079. 8017a5a: 2b00 cmp r3, #0
  57080. 8017a5c: d10b bne.n 8017a76 <pvTimerGetTimerID+0x2a>
  57081. __asm volatile
  57082. 8017a5e: f04f 0350 mov.w r3, #80 @ 0x50
  57083. 8017a62: f383 8811 msr BASEPRI, r3
  57084. 8017a66: f3bf 8f6f isb sy
  57085. 8017a6a: f3bf 8f4f dsb sy
  57086. 8017a6e: 60fb str r3, [r7, #12]
  57087. }
  57088. 8017a70: bf00 nop
  57089. 8017a72: bf00 nop
  57090. 8017a74: e7fd b.n 8017a72 <pvTimerGetTimerID+0x26>
  57091. taskENTER_CRITICAL();
  57092. 8017a76: f000 f93f bl 8017cf8 <vPortEnterCritical>
  57093. {
  57094. pvReturn = pxTimer->pvTimerID;
  57095. 8017a7a: 697b ldr r3, [r7, #20]
  57096. 8017a7c: 69db ldr r3, [r3, #28]
  57097. 8017a7e: 613b str r3, [r7, #16]
  57098. }
  57099. taskEXIT_CRITICAL();
  57100. 8017a80: f000 f96c bl 8017d5c <vPortExitCritical>
  57101. return pvReturn;
  57102. 8017a84: 693b ldr r3, [r7, #16]
  57103. }
  57104. 8017a86: 4618 mov r0, r3
  57105. 8017a88: 3718 adds r7, #24
  57106. 8017a8a: 46bd mov sp, r7
  57107. 8017a8c: bd80 pop {r7, pc}
  57108. ...
  57109. 08017a90 <pxPortInitialiseStack>:
  57110. /*
  57111. * See header file for description.
  57112. */
  57113. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  57114. {
  57115. 8017a90: b480 push {r7}
  57116. 8017a92: b085 sub sp, #20
  57117. 8017a94: af00 add r7, sp, #0
  57118. 8017a96: 60f8 str r0, [r7, #12]
  57119. 8017a98: 60b9 str r1, [r7, #8]
  57120. 8017a9a: 607a str r2, [r7, #4]
  57121. /* Simulate the stack frame as it would be created by a context switch
  57122. interrupt. */
  57123. /* Offset added to account for the way the MCU uses the stack on entry/exit
  57124. of interrupts, and to ensure alignment. */
  57125. pxTopOfStack--;
  57126. 8017a9c: 68fb ldr r3, [r7, #12]
  57127. 8017a9e: 3b04 subs r3, #4
  57128. 8017aa0: 60fb str r3, [r7, #12]
  57129. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  57130. 8017aa2: 68fb ldr r3, [r7, #12]
  57131. 8017aa4: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  57132. 8017aa8: 601a str r2, [r3, #0]
  57133. pxTopOfStack--;
  57134. 8017aaa: 68fb ldr r3, [r7, #12]
  57135. 8017aac: 3b04 subs r3, #4
  57136. 8017aae: 60fb str r3, [r7, #12]
  57137. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  57138. 8017ab0: 68bb ldr r3, [r7, #8]
  57139. 8017ab2: f023 0201 bic.w r2, r3, #1
  57140. 8017ab6: 68fb ldr r3, [r7, #12]
  57141. 8017ab8: 601a str r2, [r3, #0]
  57142. pxTopOfStack--;
  57143. 8017aba: 68fb ldr r3, [r7, #12]
  57144. 8017abc: 3b04 subs r3, #4
  57145. 8017abe: 60fb str r3, [r7, #12]
  57146. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  57147. 8017ac0: 4a0c ldr r2, [pc, #48] @ (8017af4 <pxPortInitialiseStack+0x64>)
  57148. 8017ac2: 68fb ldr r3, [r7, #12]
  57149. 8017ac4: 601a str r2, [r3, #0]
  57150. /* Save code space by skipping register initialisation. */
  57151. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  57152. 8017ac6: 68fb ldr r3, [r7, #12]
  57153. 8017ac8: 3b14 subs r3, #20
  57154. 8017aca: 60fb str r3, [r7, #12]
  57155. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  57156. 8017acc: 687a ldr r2, [r7, #4]
  57157. 8017ace: 68fb ldr r3, [r7, #12]
  57158. 8017ad0: 601a str r2, [r3, #0]
  57159. /* A save method is being used that requires each task to maintain its
  57160. own exec return value. */
  57161. pxTopOfStack--;
  57162. 8017ad2: 68fb ldr r3, [r7, #12]
  57163. 8017ad4: 3b04 subs r3, #4
  57164. 8017ad6: 60fb str r3, [r7, #12]
  57165. *pxTopOfStack = portINITIAL_EXC_RETURN;
  57166. 8017ad8: 68fb ldr r3, [r7, #12]
  57167. 8017ada: f06f 0202 mvn.w r2, #2
  57168. 8017ade: 601a str r2, [r3, #0]
  57169. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  57170. 8017ae0: 68fb ldr r3, [r7, #12]
  57171. 8017ae2: 3b20 subs r3, #32
  57172. 8017ae4: 60fb str r3, [r7, #12]
  57173. return pxTopOfStack;
  57174. 8017ae6: 68fb ldr r3, [r7, #12]
  57175. }
  57176. 8017ae8: 4618 mov r0, r3
  57177. 8017aea: 3714 adds r7, #20
  57178. 8017aec: 46bd mov sp, r7
  57179. 8017aee: f85d 7b04 ldr.w r7, [sp], #4
  57180. 8017af2: 4770 bx lr
  57181. 8017af4: 08017af9 .word 0x08017af9
  57182. 08017af8 <prvTaskExitError>:
  57183. /*-----------------------------------------------------------*/
  57184. static void prvTaskExitError( void )
  57185. {
  57186. 8017af8: b480 push {r7}
  57187. 8017afa: b085 sub sp, #20
  57188. 8017afc: af00 add r7, sp, #0
  57189. volatile uint32_t ulDummy = 0;
  57190. 8017afe: 2300 movs r3, #0
  57191. 8017b00: 607b str r3, [r7, #4]
  57192. its caller as there is nothing to return to. If a task wants to exit it
  57193. should instead call vTaskDelete( NULL ).
  57194. Artificially force an assert() to be triggered if configASSERT() is
  57195. defined, then stop here so application writers can catch the error. */
  57196. configASSERT( uxCriticalNesting == ~0UL );
  57197. 8017b02: 4b13 ldr r3, [pc, #76] @ (8017b50 <prvTaskExitError+0x58>)
  57198. 8017b04: 681b ldr r3, [r3, #0]
  57199. 8017b06: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57200. 8017b0a: d00b beq.n 8017b24 <prvTaskExitError+0x2c>
  57201. __asm volatile
  57202. 8017b0c: f04f 0350 mov.w r3, #80 @ 0x50
  57203. 8017b10: f383 8811 msr BASEPRI, r3
  57204. 8017b14: f3bf 8f6f isb sy
  57205. 8017b18: f3bf 8f4f dsb sy
  57206. 8017b1c: 60fb str r3, [r7, #12]
  57207. }
  57208. 8017b1e: bf00 nop
  57209. 8017b20: bf00 nop
  57210. 8017b22: e7fd b.n 8017b20 <prvTaskExitError+0x28>
  57211. __asm volatile
  57212. 8017b24: f04f 0350 mov.w r3, #80 @ 0x50
  57213. 8017b28: f383 8811 msr BASEPRI, r3
  57214. 8017b2c: f3bf 8f6f isb sy
  57215. 8017b30: f3bf 8f4f dsb sy
  57216. 8017b34: 60bb str r3, [r7, #8]
  57217. }
  57218. 8017b36: bf00 nop
  57219. portDISABLE_INTERRUPTS();
  57220. while( ulDummy == 0 )
  57221. 8017b38: bf00 nop
  57222. 8017b3a: 687b ldr r3, [r7, #4]
  57223. 8017b3c: 2b00 cmp r3, #0
  57224. 8017b3e: d0fc beq.n 8017b3a <prvTaskExitError+0x42>
  57225. about code appearing after this function is called - making ulDummy
  57226. volatile makes the compiler think the function could return and
  57227. therefore not output an 'unreachable code' warning for code that appears
  57228. after it. */
  57229. }
  57230. }
  57231. 8017b40: bf00 nop
  57232. 8017b42: bf00 nop
  57233. 8017b44: 3714 adds r7, #20
  57234. 8017b46: 46bd mov sp, r7
  57235. 8017b48: f85d 7b04 ldr.w r7, [sp], #4
  57236. 8017b4c: 4770 bx lr
  57237. 8017b4e: bf00 nop
  57238. 8017b50: 24000044 .word 0x24000044
  57239. ...
  57240. 08017b60 <SVC_Handler>:
  57241. /*-----------------------------------------------------------*/
  57242. void vPortSVCHandler( void )
  57243. {
  57244. __asm volatile (
  57245. 8017b60: 4b07 ldr r3, [pc, #28] @ (8017b80 <pxCurrentTCBConst2>)
  57246. 8017b62: 6819 ldr r1, [r3, #0]
  57247. 8017b64: 6808 ldr r0, [r1, #0]
  57248. 8017b66: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57249. 8017b6a: f380 8809 msr PSP, r0
  57250. 8017b6e: f3bf 8f6f isb sy
  57251. 8017b72: f04f 0000 mov.w r0, #0
  57252. 8017b76: f380 8811 msr BASEPRI, r0
  57253. 8017b7a: 4770 bx lr
  57254. 8017b7c: f3af 8000 nop.w
  57255. 08017b80 <pxCurrentTCBConst2>:
  57256. 8017b80: 240029f8 .word 0x240029f8
  57257. " bx r14 \n"
  57258. " \n"
  57259. " .align 4 \n"
  57260. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  57261. );
  57262. }
  57263. 8017b84: bf00 nop
  57264. 8017b86: bf00 nop
  57265. 08017b88 <prvPortStartFirstTask>:
  57266. {
  57267. /* Start the first task. This also clears the bit that indicates the FPU is
  57268. in use in case the FPU was used before the scheduler was started - which
  57269. would otherwise result in the unnecessary leaving of space in the SVC stack
  57270. for lazy saving of FPU registers. */
  57271. __asm volatile(
  57272. 8017b88: 4808 ldr r0, [pc, #32] @ (8017bac <prvPortStartFirstTask+0x24>)
  57273. 8017b8a: 6800 ldr r0, [r0, #0]
  57274. 8017b8c: 6800 ldr r0, [r0, #0]
  57275. 8017b8e: f380 8808 msr MSP, r0
  57276. 8017b92: f04f 0000 mov.w r0, #0
  57277. 8017b96: f380 8814 msr CONTROL, r0
  57278. 8017b9a: b662 cpsie i
  57279. 8017b9c: b661 cpsie f
  57280. 8017b9e: f3bf 8f4f dsb sy
  57281. 8017ba2: f3bf 8f6f isb sy
  57282. 8017ba6: df00 svc 0
  57283. 8017ba8: bf00 nop
  57284. " dsb \n"
  57285. " isb \n"
  57286. " svc 0 \n" /* System call to start first task. */
  57287. " nop \n"
  57288. );
  57289. }
  57290. 8017baa: bf00 nop
  57291. 8017bac: e000ed08 .word 0xe000ed08
  57292. 08017bb0 <xPortStartScheduler>:
  57293. /*
  57294. * See header file for description.
  57295. */
  57296. BaseType_t xPortStartScheduler( void )
  57297. {
  57298. 8017bb0: b580 push {r7, lr}
  57299. 8017bb2: b086 sub sp, #24
  57300. 8017bb4: af00 add r7, sp, #0
  57301. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  57302. /* This port can be used on all revisions of the Cortex-M7 core other than
  57303. the r0p1 parts. r0p1 parts should use the port from the
  57304. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  57305. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  57306. 8017bb6: 4b47 ldr r3, [pc, #284] @ (8017cd4 <xPortStartScheduler+0x124>)
  57307. 8017bb8: 681b ldr r3, [r3, #0]
  57308. 8017bba: 4a47 ldr r2, [pc, #284] @ (8017cd8 <xPortStartScheduler+0x128>)
  57309. 8017bbc: 4293 cmp r3, r2
  57310. 8017bbe: d10b bne.n 8017bd8 <xPortStartScheduler+0x28>
  57311. __asm volatile
  57312. 8017bc0: f04f 0350 mov.w r3, #80 @ 0x50
  57313. 8017bc4: f383 8811 msr BASEPRI, r3
  57314. 8017bc8: f3bf 8f6f isb sy
  57315. 8017bcc: f3bf 8f4f dsb sy
  57316. 8017bd0: 613b str r3, [r7, #16]
  57317. }
  57318. 8017bd2: bf00 nop
  57319. 8017bd4: bf00 nop
  57320. 8017bd6: e7fd b.n 8017bd4 <xPortStartScheduler+0x24>
  57321. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  57322. 8017bd8: 4b3e ldr r3, [pc, #248] @ (8017cd4 <xPortStartScheduler+0x124>)
  57323. 8017bda: 681b ldr r3, [r3, #0]
  57324. 8017bdc: 4a3f ldr r2, [pc, #252] @ (8017cdc <xPortStartScheduler+0x12c>)
  57325. 8017bde: 4293 cmp r3, r2
  57326. 8017be0: d10b bne.n 8017bfa <xPortStartScheduler+0x4a>
  57327. __asm volatile
  57328. 8017be2: f04f 0350 mov.w r3, #80 @ 0x50
  57329. 8017be6: f383 8811 msr BASEPRI, r3
  57330. 8017bea: f3bf 8f6f isb sy
  57331. 8017bee: f3bf 8f4f dsb sy
  57332. 8017bf2: 60fb str r3, [r7, #12]
  57333. }
  57334. 8017bf4: bf00 nop
  57335. 8017bf6: bf00 nop
  57336. 8017bf8: e7fd b.n 8017bf6 <xPortStartScheduler+0x46>
  57337. #if( configASSERT_DEFINED == 1 )
  57338. {
  57339. volatile uint32_t ulOriginalPriority;
  57340. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  57341. 8017bfa: 4b39 ldr r3, [pc, #228] @ (8017ce0 <xPortStartScheduler+0x130>)
  57342. 8017bfc: 617b str r3, [r7, #20]
  57343. functions can be called. ISR safe functions are those that end in
  57344. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  57345. ensure interrupt entry is as fast and simple as possible.
  57346. Save the interrupt priority value that is about to be clobbered. */
  57347. ulOriginalPriority = *pucFirstUserPriorityRegister;
  57348. 8017bfe: 697b ldr r3, [r7, #20]
  57349. 8017c00: 781b ldrb r3, [r3, #0]
  57350. 8017c02: b2db uxtb r3, r3
  57351. 8017c04: 607b str r3, [r7, #4]
  57352. /* Determine the number of priority bits available. First write to all
  57353. possible bits. */
  57354. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  57355. 8017c06: 697b ldr r3, [r7, #20]
  57356. 8017c08: 22ff movs r2, #255 @ 0xff
  57357. 8017c0a: 701a strb r2, [r3, #0]
  57358. /* Read the value back to see how many bits stuck. */
  57359. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  57360. 8017c0c: 697b ldr r3, [r7, #20]
  57361. 8017c0e: 781b ldrb r3, [r3, #0]
  57362. 8017c10: b2db uxtb r3, r3
  57363. 8017c12: 70fb strb r3, [r7, #3]
  57364. /* Use the same mask on the maximum system call priority. */
  57365. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  57366. 8017c14: 78fb ldrb r3, [r7, #3]
  57367. 8017c16: b2db uxtb r3, r3
  57368. 8017c18: f003 0350 and.w r3, r3, #80 @ 0x50
  57369. 8017c1c: b2da uxtb r2, r3
  57370. 8017c1e: 4b31 ldr r3, [pc, #196] @ (8017ce4 <xPortStartScheduler+0x134>)
  57371. 8017c20: 701a strb r2, [r3, #0]
  57372. /* Calculate the maximum acceptable priority group value for the number
  57373. of bits read back. */
  57374. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  57375. 8017c22: 4b31 ldr r3, [pc, #196] @ (8017ce8 <xPortStartScheduler+0x138>)
  57376. 8017c24: 2207 movs r2, #7
  57377. 8017c26: 601a str r2, [r3, #0]
  57378. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57379. 8017c28: e009 b.n 8017c3e <xPortStartScheduler+0x8e>
  57380. {
  57381. ulMaxPRIGROUPValue--;
  57382. 8017c2a: 4b2f ldr r3, [pc, #188] @ (8017ce8 <xPortStartScheduler+0x138>)
  57383. 8017c2c: 681b ldr r3, [r3, #0]
  57384. 8017c2e: 3b01 subs r3, #1
  57385. 8017c30: 4a2d ldr r2, [pc, #180] @ (8017ce8 <xPortStartScheduler+0x138>)
  57386. 8017c32: 6013 str r3, [r2, #0]
  57387. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  57388. 8017c34: 78fb ldrb r3, [r7, #3]
  57389. 8017c36: b2db uxtb r3, r3
  57390. 8017c38: 005b lsls r3, r3, #1
  57391. 8017c3a: b2db uxtb r3, r3
  57392. 8017c3c: 70fb strb r3, [r7, #3]
  57393. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  57394. 8017c3e: 78fb ldrb r3, [r7, #3]
  57395. 8017c40: b2db uxtb r3, r3
  57396. 8017c42: f003 0380 and.w r3, r3, #128 @ 0x80
  57397. 8017c46: 2b80 cmp r3, #128 @ 0x80
  57398. 8017c48: d0ef beq.n 8017c2a <xPortStartScheduler+0x7a>
  57399. #ifdef configPRIO_BITS
  57400. {
  57401. /* Check the FreeRTOS configuration that defines the number of
  57402. priority bits matches the number of priority bits actually queried
  57403. from the hardware. */
  57404. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  57405. 8017c4a: 4b27 ldr r3, [pc, #156] @ (8017ce8 <xPortStartScheduler+0x138>)
  57406. 8017c4c: 681b ldr r3, [r3, #0]
  57407. 8017c4e: f1c3 0307 rsb r3, r3, #7
  57408. 8017c52: 2b04 cmp r3, #4
  57409. 8017c54: d00b beq.n 8017c6e <xPortStartScheduler+0xbe>
  57410. __asm volatile
  57411. 8017c56: f04f 0350 mov.w r3, #80 @ 0x50
  57412. 8017c5a: f383 8811 msr BASEPRI, r3
  57413. 8017c5e: f3bf 8f6f isb sy
  57414. 8017c62: f3bf 8f4f dsb sy
  57415. 8017c66: 60bb str r3, [r7, #8]
  57416. }
  57417. 8017c68: bf00 nop
  57418. 8017c6a: bf00 nop
  57419. 8017c6c: e7fd b.n 8017c6a <xPortStartScheduler+0xba>
  57420. }
  57421. #endif
  57422. /* Shift the priority group value back to its position within the AIRCR
  57423. register. */
  57424. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  57425. 8017c6e: 4b1e ldr r3, [pc, #120] @ (8017ce8 <xPortStartScheduler+0x138>)
  57426. 8017c70: 681b ldr r3, [r3, #0]
  57427. 8017c72: 021b lsls r3, r3, #8
  57428. 8017c74: 4a1c ldr r2, [pc, #112] @ (8017ce8 <xPortStartScheduler+0x138>)
  57429. 8017c76: 6013 str r3, [r2, #0]
  57430. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  57431. 8017c78: 4b1b ldr r3, [pc, #108] @ (8017ce8 <xPortStartScheduler+0x138>)
  57432. 8017c7a: 681b ldr r3, [r3, #0]
  57433. 8017c7c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  57434. 8017c80: 4a19 ldr r2, [pc, #100] @ (8017ce8 <xPortStartScheduler+0x138>)
  57435. 8017c82: 6013 str r3, [r2, #0]
  57436. /* Restore the clobbered interrupt priority register to its original
  57437. value. */
  57438. *pucFirstUserPriorityRegister = ulOriginalPriority;
  57439. 8017c84: 687b ldr r3, [r7, #4]
  57440. 8017c86: b2da uxtb r2, r3
  57441. 8017c88: 697b ldr r3, [r7, #20]
  57442. 8017c8a: 701a strb r2, [r3, #0]
  57443. }
  57444. #endif /* conifgASSERT_DEFINED */
  57445. /* Make PendSV and SysTick the lowest priority interrupts. */
  57446. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  57447. 8017c8c: 4b17 ldr r3, [pc, #92] @ (8017cec <xPortStartScheduler+0x13c>)
  57448. 8017c8e: 681b ldr r3, [r3, #0]
  57449. 8017c90: 4a16 ldr r2, [pc, #88] @ (8017cec <xPortStartScheduler+0x13c>)
  57450. 8017c92: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  57451. 8017c96: 6013 str r3, [r2, #0]
  57452. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  57453. 8017c98: 4b14 ldr r3, [pc, #80] @ (8017cec <xPortStartScheduler+0x13c>)
  57454. 8017c9a: 681b ldr r3, [r3, #0]
  57455. 8017c9c: 4a13 ldr r2, [pc, #76] @ (8017cec <xPortStartScheduler+0x13c>)
  57456. 8017c9e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  57457. 8017ca2: 6013 str r3, [r2, #0]
  57458. /* Start the timer that generates the tick ISR. Interrupts are disabled
  57459. here already. */
  57460. vPortSetupTimerInterrupt();
  57461. 8017ca4: f000 f8da bl 8017e5c <vPortSetupTimerInterrupt>
  57462. /* Initialise the critical nesting count ready for the first task. */
  57463. uxCriticalNesting = 0;
  57464. 8017ca8: 4b11 ldr r3, [pc, #68] @ (8017cf0 <xPortStartScheduler+0x140>)
  57465. 8017caa: 2200 movs r2, #0
  57466. 8017cac: 601a str r2, [r3, #0]
  57467. /* Ensure the VFP is enabled - it should be anyway. */
  57468. vPortEnableVFP();
  57469. 8017cae: f000 f8f9 bl 8017ea4 <vPortEnableVFP>
  57470. /* Lazy save always. */
  57471. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  57472. 8017cb2: 4b10 ldr r3, [pc, #64] @ (8017cf4 <xPortStartScheduler+0x144>)
  57473. 8017cb4: 681b ldr r3, [r3, #0]
  57474. 8017cb6: 4a0f ldr r2, [pc, #60] @ (8017cf4 <xPortStartScheduler+0x144>)
  57475. 8017cb8: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  57476. 8017cbc: 6013 str r3, [r2, #0]
  57477. /* Start the first task. */
  57478. prvPortStartFirstTask();
  57479. 8017cbe: f7ff ff63 bl 8017b88 <prvPortStartFirstTask>
  57480. exit error function to prevent compiler warnings about a static function
  57481. not being called in the case that the application writer overrides this
  57482. functionality by defining configTASK_RETURN_ADDRESS. Call
  57483. vTaskSwitchContext() so link time optimisation does not remove the
  57484. symbol. */
  57485. vTaskSwitchContext();
  57486. 8017cc2: f7fe fbcd bl 8016460 <vTaskSwitchContext>
  57487. prvTaskExitError();
  57488. 8017cc6: f7ff ff17 bl 8017af8 <prvTaskExitError>
  57489. /* Should not get here! */
  57490. return 0;
  57491. 8017cca: 2300 movs r3, #0
  57492. }
  57493. 8017ccc: 4618 mov r0, r3
  57494. 8017cce: 3718 adds r7, #24
  57495. 8017cd0: 46bd mov sp, r7
  57496. 8017cd2: bd80 pop {r7, pc}
  57497. 8017cd4: e000ed00 .word 0xe000ed00
  57498. 8017cd8: 410fc271 .word 0x410fc271
  57499. 8017cdc: 410fc270 .word 0x410fc270
  57500. 8017ce0: e000e400 .word 0xe000e400
  57501. 8017ce4: 24003024 .word 0x24003024
  57502. 8017ce8: 24003028 .word 0x24003028
  57503. 8017cec: e000ed20 .word 0xe000ed20
  57504. 8017cf0: 24000044 .word 0x24000044
  57505. 8017cf4: e000ef34 .word 0xe000ef34
  57506. 08017cf8 <vPortEnterCritical>:
  57507. configASSERT( uxCriticalNesting == 1000UL );
  57508. }
  57509. /*-----------------------------------------------------------*/
  57510. void vPortEnterCritical( void )
  57511. {
  57512. 8017cf8: b480 push {r7}
  57513. 8017cfa: b083 sub sp, #12
  57514. 8017cfc: af00 add r7, sp, #0
  57515. __asm volatile
  57516. 8017cfe: f04f 0350 mov.w r3, #80 @ 0x50
  57517. 8017d02: f383 8811 msr BASEPRI, r3
  57518. 8017d06: f3bf 8f6f isb sy
  57519. 8017d0a: f3bf 8f4f dsb sy
  57520. 8017d0e: 607b str r3, [r7, #4]
  57521. }
  57522. 8017d10: bf00 nop
  57523. portDISABLE_INTERRUPTS();
  57524. uxCriticalNesting++;
  57525. 8017d12: 4b10 ldr r3, [pc, #64] @ (8017d54 <vPortEnterCritical+0x5c>)
  57526. 8017d14: 681b ldr r3, [r3, #0]
  57527. 8017d16: 3301 adds r3, #1
  57528. 8017d18: 4a0e ldr r2, [pc, #56] @ (8017d54 <vPortEnterCritical+0x5c>)
  57529. 8017d1a: 6013 str r3, [r2, #0]
  57530. /* This is not the interrupt safe version of the enter critical function so
  57531. assert() if it is being called from an interrupt context. Only API
  57532. functions that end in "FromISR" can be used in an interrupt. Only assert if
  57533. the critical nesting count is 1 to protect against recursive calls if the
  57534. assert function also uses a critical section. */
  57535. if( uxCriticalNesting == 1 )
  57536. 8017d1c: 4b0d ldr r3, [pc, #52] @ (8017d54 <vPortEnterCritical+0x5c>)
  57537. 8017d1e: 681b ldr r3, [r3, #0]
  57538. 8017d20: 2b01 cmp r3, #1
  57539. 8017d22: d110 bne.n 8017d46 <vPortEnterCritical+0x4e>
  57540. {
  57541. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  57542. 8017d24: 4b0c ldr r3, [pc, #48] @ (8017d58 <vPortEnterCritical+0x60>)
  57543. 8017d26: 681b ldr r3, [r3, #0]
  57544. 8017d28: b2db uxtb r3, r3
  57545. 8017d2a: 2b00 cmp r3, #0
  57546. 8017d2c: d00b beq.n 8017d46 <vPortEnterCritical+0x4e>
  57547. __asm volatile
  57548. 8017d2e: f04f 0350 mov.w r3, #80 @ 0x50
  57549. 8017d32: f383 8811 msr BASEPRI, r3
  57550. 8017d36: f3bf 8f6f isb sy
  57551. 8017d3a: f3bf 8f4f dsb sy
  57552. 8017d3e: 603b str r3, [r7, #0]
  57553. }
  57554. 8017d40: bf00 nop
  57555. 8017d42: bf00 nop
  57556. 8017d44: e7fd b.n 8017d42 <vPortEnterCritical+0x4a>
  57557. }
  57558. }
  57559. 8017d46: bf00 nop
  57560. 8017d48: 370c adds r7, #12
  57561. 8017d4a: 46bd mov sp, r7
  57562. 8017d4c: f85d 7b04 ldr.w r7, [sp], #4
  57563. 8017d50: 4770 bx lr
  57564. 8017d52: bf00 nop
  57565. 8017d54: 24000044 .word 0x24000044
  57566. 8017d58: e000ed04 .word 0xe000ed04
  57567. 08017d5c <vPortExitCritical>:
  57568. /*-----------------------------------------------------------*/
  57569. void vPortExitCritical( void )
  57570. {
  57571. 8017d5c: b480 push {r7}
  57572. 8017d5e: b083 sub sp, #12
  57573. 8017d60: af00 add r7, sp, #0
  57574. configASSERT( uxCriticalNesting );
  57575. 8017d62: 4b12 ldr r3, [pc, #72] @ (8017dac <vPortExitCritical+0x50>)
  57576. 8017d64: 681b ldr r3, [r3, #0]
  57577. 8017d66: 2b00 cmp r3, #0
  57578. 8017d68: d10b bne.n 8017d82 <vPortExitCritical+0x26>
  57579. __asm volatile
  57580. 8017d6a: f04f 0350 mov.w r3, #80 @ 0x50
  57581. 8017d6e: f383 8811 msr BASEPRI, r3
  57582. 8017d72: f3bf 8f6f isb sy
  57583. 8017d76: f3bf 8f4f dsb sy
  57584. 8017d7a: 607b str r3, [r7, #4]
  57585. }
  57586. 8017d7c: bf00 nop
  57587. 8017d7e: bf00 nop
  57588. 8017d80: e7fd b.n 8017d7e <vPortExitCritical+0x22>
  57589. uxCriticalNesting--;
  57590. 8017d82: 4b0a ldr r3, [pc, #40] @ (8017dac <vPortExitCritical+0x50>)
  57591. 8017d84: 681b ldr r3, [r3, #0]
  57592. 8017d86: 3b01 subs r3, #1
  57593. 8017d88: 4a08 ldr r2, [pc, #32] @ (8017dac <vPortExitCritical+0x50>)
  57594. 8017d8a: 6013 str r3, [r2, #0]
  57595. if( uxCriticalNesting == 0 )
  57596. 8017d8c: 4b07 ldr r3, [pc, #28] @ (8017dac <vPortExitCritical+0x50>)
  57597. 8017d8e: 681b ldr r3, [r3, #0]
  57598. 8017d90: 2b00 cmp r3, #0
  57599. 8017d92: d105 bne.n 8017da0 <vPortExitCritical+0x44>
  57600. 8017d94: 2300 movs r3, #0
  57601. 8017d96: 603b str r3, [r7, #0]
  57602. __asm volatile
  57603. 8017d98: 683b ldr r3, [r7, #0]
  57604. 8017d9a: f383 8811 msr BASEPRI, r3
  57605. }
  57606. 8017d9e: bf00 nop
  57607. {
  57608. portENABLE_INTERRUPTS();
  57609. }
  57610. }
  57611. 8017da0: bf00 nop
  57612. 8017da2: 370c adds r7, #12
  57613. 8017da4: 46bd mov sp, r7
  57614. 8017da6: f85d 7b04 ldr.w r7, [sp], #4
  57615. 8017daa: 4770 bx lr
  57616. 8017dac: 24000044 .word 0x24000044
  57617. 08017db0 <PendSV_Handler>:
  57618. void xPortPendSVHandler( void )
  57619. {
  57620. /* This is a naked function. */
  57621. __asm volatile
  57622. 8017db0: f3ef 8009 mrs r0, PSP
  57623. 8017db4: f3bf 8f6f isb sy
  57624. 8017db8: 4b15 ldr r3, [pc, #84] @ (8017e10 <pxCurrentTCBConst>)
  57625. 8017dba: 681a ldr r2, [r3, #0]
  57626. 8017dbc: f01e 0f10 tst.w lr, #16
  57627. 8017dc0: bf08 it eq
  57628. 8017dc2: ed20 8a10 vstmdbeq r0!, {s16-s31}
  57629. 8017dc6: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57630. 8017dca: 6010 str r0, [r2, #0]
  57631. 8017dcc: e92d 0009 stmdb sp!, {r0, r3}
  57632. 8017dd0: f04f 0050 mov.w r0, #80 @ 0x50
  57633. 8017dd4: f380 8811 msr BASEPRI, r0
  57634. 8017dd8: f3bf 8f4f dsb sy
  57635. 8017ddc: f3bf 8f6f isb sy
  57636. 8017de0: f7fe fb3e bl 8016460 <vTaskSwitchContext>
  57637. 8017de4: f04f 0000 mov.w r0, #0
  57638. 8017de8: f380 8811 msr BASEPRI, r0
  57639. 8017dec: bc09 pop {r0, r3}
  57640. 8017dee: 6819 ldr r1, [r3, #0]
  57641. 8017df0: 6808 ldr r0, [r1, #0]
  57642. 8017df2: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57643. 8017df6: f01e 0f10 tst.w lr, #16
  57644. 8017dfa: bf08 it eq
  57645. 8017dfc: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  57646. 8017e00: f380 8809 msr PSP, r0
  57647. 8017e04: f3bf 8f6f isb sy
  57648. 8017e08: 4770 bx lr
  57649. 8017e0a: bf00 nop
  57650. 8017e0c: f3af 8000 nop.w
  57651. 08017e10 <pxCurrentTCBConst>:
  57652. 8017e10: 240029f8 .word 0x240029f8
  57653. " \n"
  57654. " .align 4 \n"
  57655. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  57656. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  57657. );
  57658. }
  57659. 8017e14: bf00 nop
  57660. 8017e16: bf00 nop
  57661. 08017e18 <xPortSysTickHandler>:
  57662. /*-----------------------------------------------------------*/
  57663. void xPortSysTickHandler( void )
  57664. {
  57665. 8017e18: b580 push {r7, lr}
  57666. 8017e1a: b082 sub sp, #8
  57667. 8017e1c: af00 add r7, sp, #0
  57668. __asm volatile
  57669. 8017e1e: f04f 0350 mov.w r3, #80 @ 0x50
  57670. 8017e22: f383 8811 msr BASEPRI, r3
  57671. 8017e26: f3bf 8f6f isb sy
  57672. 8017e2a: f3bf 8f4f dsb sy
  57673. 8017e2e: 607b str r3, [r7, #4]
  57674. }
  57675. 8017e30: bf00 nop
  57676. save and then restore the interrupt mask value as its value is already
  57677. known. */
  57678. portDISABLE_INTERRUPTS();
  57679. {
  57680. /* Increment the RTOS tick. */
  57681. if( xTaskIncrementTick() != pdFALSE )
  57682. 8017e32: f7fe fa5b bl 80162ec <xTaskIncrementTick>
  57683. 8017e36: 4603 mov r3, r0
  57684. 8017e38: 2b00 cmp r3, #0
  57685. 8017e3a: d003 beq.n 8017e44 <xPortSysTickHandler+0x2c>
  57686. {
  57687. /* A context switch is required. Context switching is performed in
  57688. the PendSV interrupt. Pend the PendSV interrupt. */
  57689. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  57690. 8017e3c: 4b06 ldr r3, [pc, #24] @ (8017e58 <xPortSysTickHandler+0x40>)
  57691. 8017e3e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  57692. 8017e42: 601a str r2, [r3, #0]
  57693. 8017e44: 2300 movs r3, #0
  57694. 8017e46: 603b str r3, [r7, #0]
  57695. __asm volatile
  57696. 8017e48: 683b ldr r3, [r7, #0]
  57697. 8017e4a: f383 8811 msr BASEPRI, r3
  57698. }
  57699. 8017e4e: bf00 nop
  57700. }
  57701. }
  57702. portENABLE_INTERRUPTS();
  57703. }
  57704. 8017e50: bf00 nop
  57705. 8017e52: 3708 adds r7, #8
  57706. 8017e54: 46bd mov sp, r7
  57707. 8017e56: bd80 pop {r7, pc}
  57708. 8017e58: e000ed04 .word 0xe000ed04
  57709. 08017e5c <vPortSetupTimerInterrupt>:
  57710. /*
  57711. * Setup the systick timer to generate the tick interrupts at the required
  57712. * frequency.
  57713. */
  57714. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  57715. {
  57716. 8017e5c: b480 push {r7}
  57717. 8017e5e: af00 add r7, sp, #0
  57718. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  57719. }
  57720. #endif /* configUSE_TICKLESS_IDLE */
  57721. /* Stop and clear the SysTick. */
  57722. portNVIC_SYSTICK_CTRL_REG = 0UL;
  57723. 8017e60: 4b0b ldr r3, [pc, #44] @ (8017e90 <vPortSetupTimerInterrupt+0x34>)
  57724. 8017e62: 2200 movs r2, #0
  57725. 8017e64: 601a str r2, [r3, #0]
  57726. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  57727. 8017e66: 4b0b ldr r3, [pc, #44] @ (8017e94 <vPortSetupTimerInterrupt+0x38>)
  57728. 8017e68: 2200 movs r2, #0
  57729. 8017e6a: 601a str r2, [r3, #0]
  57730. /* Configure SysTick to interrupt at the requested rate. */
  57731. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  57732. 8017e6c: 4b0a ldr r3, [pc, #40] @ (8017e98 <vPortSetupTimerInterrupt+0x3c>)
  57733. 8017e6e: 681b ldr r3, [r3, #0]
  57734. 8017e70: 4a0a ldr r2, [pc, #40] @ (8017e9c <vPortSetupTimerInterrupt+0x40>)
  57735. 8017e72: fba2 2303 umull r2, r3, r2, r3
  57736. 8017e76: 099b lsrs r3, r3, #6
  57737. 8017e78: 4a09 ldr r2, [pc, #36] @ (8017ea0 <vPortSetupTimerInterrupt+0x44>)
  57738. 8017e7a: 3b01 subs r3, #1
  57739. 8017e7c: 6013 str r3, [r2, #0]
  57740. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  57741. 8017e7e: 4b04 ldr r3, [pc, #16] @ (8017e90 <vPortSetupTimerInterrupt+0x34>)
  57742. 8017e80: 2207 movs r2, #7
  57743. 8017e82: 601a str r2, [r3, #0]
  57744. }
  57745. 8017e84: bf00 nop
  57746. 8017e86: 46bd mov sp, r7
  57747. 8017e88: f85d 7b04 ldr.w r7, [sp], #4
  57748. 8017e8c: 4770 bx lr
  57749. 8017e8e: bf00 nop
  57750. 8017e90: e000e010 .word 0xe000e010
  57751. 8017e94: e000e018 .word 0xe000e018
  57752. 8017e98: 24000034 .word 0x24000034
  57753. 8017e9c: 10624dd3 .word 0x10624dd3
  57754. 8017ea0: e000e014 .word 0xe000e014
  57755. 08017ea4 <vPortEnableVFP>:
  57756. /*-----------------------------------------------------------*/
  57757. /* This is a naked function. */
  57758. static void vPortEnableVFP( void )
  57759. {
  57760. __asm volatile
  57761. 8017ea4: f8df 000c ldr.w r0, [pc, #12] @ 8017eb4 <vPortEnableVFP+0x10>
  57762. 8017ea8: 6801 ldr r1, [r0, #0]
  57763. 8017eaa: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  57764. 8017eae: 6001 str r1, [r0, #0]
  57765. 8017eb0: 4770 bx lr
  57766. " \n"
  57767. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  57768. " str r1, [r0] \n"
  57769. " bx r14 "
  57770. );
  57771. }
  57772. 8017eb2: bf00 nop
  57773. 8017eb4: e000ed88 .word 0xe000ed88
  57774. 08017eb8 <vPortValidateInterruptPriority>:
  57775. /*-----------------------------------------------------------*/
  57776. #if( configASSERT_DEFINED == 1 )
  57777. void vPortValidateInterruptPriority( void )
  57778. {
  57779. 8017eb8: b480 push {r7}
  57780. 8017eba: b085 sub sp, #20
  57781. 8017ebc: af00 add r7, sp, #0
  57782. uint32_t ulCurrentInterrupt;
  57783. uint8_t ucCurrentPriority;
  57784. /* Obtain the number of the currently executing interrupt. */
  57785. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  57786. 8017ebe: f3ef 8305 mrs r3, IPSR
  57787. 8017ec2: 60fb str r3, [r7, #12]
  57788. /* Is the interrupt number a user defined interrupt? */
  57789. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  57790. 8017ec4: 68fb ldr r3, [r7, #12]
  57791. 8017ec6: 2b0f cmp r3, #15
  57792. 8017ec8: d915 bls.n 8017ef6 <vPortValidateInterruptPriority+0x3e>
  57793. {
  57794. /* Look up the interrupt's priority. */
  57795. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  57796. 8017eca: 4a18 ldr r2, [pc, #96] @ (8017f2c <vPortValidateInterruptPriority+0x74>)
  57797. 8017ecc: 68fb ldr r3, [r7, #12]
  57798. 8017ece: 4413 add r3, r2
  57799. 8017ed0: 781b ldrb r3, [r3, #0]
  57800. 8017ed2: 72fb strb r3, [r7, #11]
  57801. interrupt entry is as fast and simple as possible.
  57802. The following links provide detailed information:
  57803. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  57804. http://www.freertos.org/FAQHelp.html */
  57805. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  57806. 8017ed4: 4b16 ldr r3, [pc, #88] @ (8017f30 <vPortValidateInterruptPriority+0x78>)
  57807. 8017ed6: 781b ldrb r3, [r3, #0]
  57808. 8017ed8: 7afa ldrb r2, [r7, #11]
  57809. 8017eda: 429a cmp r2, r3
  57810. 8017edc: d20b bcs.n 8017ef6 <vPortValidateInterruptPriority+0x3e>
  57811. __asm volatile
  57812. 8017ede: f04f 0350 mov.w r3, #80 @ 0x50
  57813. 8017ee2: f383 8811 msr BASEPRI, r3
  57814. 8017ee6: f3bf 8f6f isb sy
  57815. 8017eea: f3bf 8f4f dsb sy
  57816. 8017eee: 607b str r3, [r7, #4]
  57817. }
  57818. 8017ef0: bf00 nop
  57819. 8017ef2: bf00 nop
  57820. 8017ef4: e7fd b.n 8017ef2 <vPortValidateInterruptPriority+0x3a>
  57821. configuration then the correct setting can be achieved on all Cortex-M
  57822. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  57823. scheduler. Note however that some vendor specific peripheral libraries
  57824. assume a non-zero priority group setting, in which cases using a value
  57825. of zero will result in unpredictable behaviour. */
  57826. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  57827. 8017ef6: 4b0f ldr r3, [pc, #60] @ (8017f34 <vPortValidateInterruptPriority+0x7c>)
  57828. 8017ef8: 681b ldr r3, [r3, #0]
  57829. 8017efa: f403 62e0 and.w r2, r3, #1792 @ 0x700
  57830. 8017efe: 4b0e ldr r3, [pc, #56] @ (8017f38 <vPortValidateInterruptPriority+0x80>)
  57831. 8017f00: 681b ldr r3, [r3, #0]
  57832. 8017f02: 429a cmp r2, r3
  57833. 8017f04: d90b bls.n 8017f1e <vPortValidateInterruptPriority+0x66>
  57834. __asm volatile
  57835. 8017f06: f04f 0350 mov.w r3, #80 @ 0x50
  57836. 8017f0a: f383 8811 msr BASEPRI, r3
  57837. 8017f0e: f3bf 8f6f isb sy
  57838. 8017f12: f3bf 8f4f dsb sy
  57839. 8017f16: 603b str r3, [r7, #0]
  57840. }
  57841. 8017f18: bf00 nop
  57842. 8017f1a: bf00 nop
  57843. 8017f1c: e7fd b.n 8017f1a <vPortValidateInterruptPriority+0x62>
  57844. }
  57845. 8017f1e: bf00 nop
  57846. 8017f20: 3714 adds r7, #20
  57847. 8017f22: 46bd mov sp, r7
  57848. 8017f24: f85d 7b04 ldr.w r7, [sp], #4
  57849. 8017f28: 4770 bx lr
  57850. 8017f2a: bf00 nop
  57851. 8017f2c: e000e3f0 .word 0xe000e3f0
  57852. 8017f30: 24003024 .word 0x24003024
  57853. 8017f34: e000ed0c .word 0xe000ed0c
  57854. 8017f38: 24003028 .word 0x24003028
  57855. 08017f3c <pvPortMalloc>:
  57856. static size_t xBlockAllocatedBit = 0;
  57857. /*-----------------------------------------------------------*/
  57858. void *pvPortMalloc( size_t xWantedSize )
  57859. {
  57860. 8017f3c: b580 push {r7, lr}
  57861. 8017f3e: b08a sub sp, #40 @ 0x28
  57862. 8017f40: af00 add r7, sp, #0
  57863. 8017f42: 6078 str r0, [r7, #4]
  57864. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  57865. void *pvReturn = NULL;
  57866. 8017f44: 2300 movs r3, #0
  57867. 8017f46: 61fb str r3, [r7, #28]
  57868. vTaskSuspendAll();
  57869. 8017f48: f7fe f914 bl 8016174 <vTaskSuspendAll>
  57870. {
  57871. /* If this is the first call to malloc then the heap will require
  57872. initialisation to setup the list of free blocks. */
  57873. if( pxEnd == NULL )
  57874. 8017f4c: 4b5c ldr r3, [pc, #368] @ (80180c0 <pvPortMalloc+0x184>)
  57875. 8017f4e: 681b ldr r3, [r3, #0]
  57876. 8017f50: 2b00 cmp r3, #0
  57877. 8017f52: d101 bne.n 8017f58 <pvPortMalloc+0x1c>
  57878. {
  57879. prvHeapInit();
  57880. 8017f54: f000 f924 bl 80181a0 <prvHeapInit>
  57881. /* Check the requested block size is not so large that the top bit is
  57882. set. The top bit of the block size member of the BlockLink_t structure
  57883. is used to determine who owns the block - the application or the
  57884. kernel, so it must be free. */
  57885. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  57886. 8017f58: 4b5a ldr r3, [pc, #360] @ (80180c4 <pvPortMalloc+0x188>)
  57887. 8017f5a: 681a ldr r2, [r3, #0]
  57888. 8017f5c: 687b ldr r3, [r7, #4]
  57889. 8017f5e: 4013 ands r3, r2
  57890. 8017f60: 2b00 cmp r3, #0
  57891. 8017f62: f040 8095 bne.w 8018090 <pvPortMalloc+0x154>
  57892. {
  57893. /* The wanted size is increased so it can contain a BlockLink_t
  57894. structure in addition to the requested amount of bytes. */
  57895. if( xWantedSize > 0 )
  57896. 8017f66: 687b ldr r3, [r7, #4]
  57897. 8017f68: 2b00 cmp r3, #0
  57898. 8017f6a: d01e beq.n 8017faa <pvPortMalloc+0x6e>
  57899. {
  57900. xWantedSize += xHeapStructSize;
  57901. 8017f6c: 2208 movs r2, #8
  57902. 8017f6e: 687b ldr r3, [r7, #4]
  57903. 8017f70: 4413 add r3, r2
  57904. 8017f72: 607b str r3, [r7, #4]
  57905. /* Ensure that blocks are always aligned to the required number
  57906. of bytes. */
  57907. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  57908. 8017f74: 687b ldr r3, [r7, #4]
  57909. 8017f76: f003 0307 and.w r3, r3, #7
  57910. 8017f7a: 2b00 cmp r3, #0
  57911. 8017f7c: d015 beq.n 8017faa <pvPortMalloc+0x6e>
  57912. {
  57913. /* Byte alignment required. */
  57914. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  57915. 8017f7e: 687b ldr r3, [r7, #4]
  57916. 8017f80: f023 0307 bic.w r3, r3, #7
  57917. 8017f84: 3308 adds r3, #8
  57918. 8017f86: 607b str r3, [r7, #4]
  57919. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  57920. 8017f88: 687b ldr r3, [r7, #4]
  57921. 8017f8a: f003 0307 and.w r3, r3, #7
  57922. 8017f8e: 2b00 cmp r3, #0
  57923. 8017f90: d00b beq.n 8017faa <pvPortMalloc+0x6e>
  57924. __asm volatile
  57925. 8017f92: f04f 0350 mov.w r3, #80 @ 0x50
  57926. 8017f96: f383 8811 msr BASEPRI, r3
  57927. 8017f9a: f3bf 8f6f isb sy
  57928. 8017f9e: f3bf 8f4f dsb sy
  57929. 8017fa2: 617b str r3, [r7, #20]
  57930. }
  57931. 8017fa4: bf00 nop
  57932. 8017fa6: bf00 nop
  57933. 8017fa8: e7fd b.n 8017fa6 <pvPortMalloc+0x6a>
  57934. else
  57935. {
  57936. mtCOVERAGE_TEST_MARKER();
  57937. }
  57938. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  57939. 8017faa: 687b ldr r3, [r7, #4]
  57940. 8017fac: 2b00 cmp r3, #0
  57941. 8017fae: d06f beq.n 8018090 <pvPortMalloc+0x154>
  57942. 8017fb0: 4b45 ldr r3, [pc, #276] @ (80180c8 <pvPortMalloc+0x18c>)
  57943. 8017fb2: 681b ldr r3, [r3, #0]
  57944. 8017fb4: 687a ldr r2, [r7, #4]
  57945. 8017fb6: 429a cmp r2, r3
  57946. 8017fb8: d86a bhi.n 8018090 <pvPortMalloc+0x154>
  57947. {
  57948. /* Traverse the list from the start (lowest address) block until
  57949. one of adequate size is found. */
  57950. pxPreviousBlock = &xStart;
  57951. 8017fba: 4b44 ldr r3, [pc, #272] @ (80180cc <pvPortMalloc+0x190>)
  57952. 8017fbc: 623b str r3, [r7, #32]
  57953. pxBlock = xStart.pxNextFreeBlock;
  57954. 8017fbe: 4b43 ldr r3, [pc, #268] @ (80180cc <pvPortMalloc+0x190>)
  57955. 8017fc0: 681b ldr r3, [r3, #0]
  57956. 8017fc2: 627b str r3, [r7, #36] @ 0x24
  57957. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57958. 8017fc4: e004 b.n 8017fd0 <pvPortMalloc+0x94>
  57959. {
  57960. pxPreviousBlock = pxBlock;
  57961. 8017fc6: 6a7b ldr r3, [r7, #36] @ 0x24
  57962. 8017fc8: 623b str r3, [r7, #32]
  57963. pxBlock = pxBlock->pxNextFreeBlock;
  57964. 8017fca: 6a7b ldr r3, [r7, #36] @ 0x24
  57965. 8017fcc: 681b ldr r3, [r3, #0]
  57966. 8017fce: 627b str r3, [r7, #36] @ 0x24
  57967. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  57968. 8017fd0: 6a7b ldr r3, [r7, #36] @ 0x24
  57969. 8017fd2: 685b ldr r3, [r3, #4]
  57970. 8017fd4: 687a ldr r2, [r7, #4]
  57971. 8017fd6: 429a cmp r2, r3
  57972. 8017fd8: d903 bls.n 8017fe2 <pvPortMalloc+0xa6>
  57973. 8017fda: 6a7b ldr r3, [r7, #36] @ 0x24
  57974. 8017fdc: 681b ldr r3, [r3, #0]
  57975. 8017fde: 2b00 cmp r3, #0
  57976. 8017fe0: d1f1 bne.n 8017fc6 <pvPortMalloc+0x8a>
  57977. }
  57978. /* If the end marker was reached then a block of adequate size
  57979. was not found. */
  57980. if( pxBlock != pxEnd )
  57981. 8017fe2: 4b37 ldr r3, [pc, #220] @ (80180c0 <pvPortMalloc+0x184>)
  57982. 8017fe4: 681b ldr r3, [r3, #0]
  57983. 8017fe6: 6a7a ldr r2, [r7, #36] @ 0x24
  57984. 8017fe8: 429a cmp r2, r3
  57985. 8017fea: d051 beq.n 8018090 <pvPortMalloc+0x154>
  57986. {
  57987. /* Return the memory space pointed to - jumping over the
  57988. BlockLink_t structure at its start. */
  57989. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  57990. 8017fec: 6a3b ldr r3, [r7, #32]
  57991. 8017fee: 681b ldr r3, [r3, #0]
  57992. 8017ff0: 2208 movs r2, #8
  57993. 8017ff2: 4413 add r3, r2
  57994. 8017ff4: 61fb str r3, [r7, #28]
  57995. /* This block is being returned for use so must be taken out
  57996. of the list of free blocks. */
  57997. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  57998. 8017ff6: 6a7b ldr r3, [r7, #36] @ 0x24
  57999. 8017ff8: 681a ldr r2, [r3, #0]
  58000. 8017ffa: 6a3b ldr r3, [r7, #32]
  58001. 8017ffc: 601a str r2, [r3, #0]
  58002. /* If the block is larger than required it can be split into
  58003. two. */
  58004. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  58005. 8017ffe: 6a7b ldr r3, [r7, #36] @ 0x24
  58006. 8018000: 685a ldr r2, [r3, #4]
  58007. 8018002: 687b ldr r3, [r7, #4]
  58008. 8018004: 1ad2 subs r2, r2, r3
  58009. 8018006: 2308 movs r3, #8
  58010. 8018008: 005b lsls r3, r3, #1
  58011. 801800a: 429a cmp r2, r3
  58012. 801800c: d920 bls.n 8018050 <pvPortMalloc+0x114>
  58013. {
  58014. /* This block is to be split into two. Create a new
  58015. block following the number of bytes requested. The void
  58016. cast is used to prevent byte alignment warnings from the
  58017. compiler. */
  58018. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  58019. 801800e: 6a7a ldr r2, [r7, #36] @ 0x24
  58020. 8018010: 687b ldr r3, [r7, #4]
  58021. 8018012: 4413 add r3, r2
  58022. 8018014: 61bb str r3, [r7, #24]
  58023. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  58024. 8018016: 69bb ldr r3, [r7, #24]
  58025. 8018018: f003 0307 and.w r3, r3, #7
  58026. 801801c: 2b00 cmp r3, #0
  58027. 801801e: d00b beq.n 8018038 <pvPortMalloc+0xfc>
  58028. __asm volatile
  58029. 8018020: f04f 0350 mov.w r3, #80 @ 0x50
  58030. 8018024: f383 8811 msr BASEPRI, r3
  58031. 8018028: f3bf 8f6f isb sy
  58032. 801802c: f3bf 8f4f dsb sy
  58033. 8018030: 613b str r3, [r7, #16]
  58034. }
  58035. 8018032: bf00 nop
  58036. 8018034: bf00 nop
  58037. 8018036: e7fd b.n 8018034 <pvPortMalloc+0xf8>
  58038. /* Calculate the sizes of two blocks split from the
  58039. single block. */
  58040. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  58041. 8018038: 6a7b ldr r3, [r7, #36] @ 0x24
  58042. 801803a: 685a ldr r2, [r3, #4]
  58043. 801803c: 687b ldr r3, [r7, #4]
  58044. 801803e: 1ad2 subs r2, r2, r3
  58045. 8018040: 69bb ldr r3, [r7, #24]
  58046. 8018042: 605a str r2, [r3, #4]
  58047. pxBlock->xBlockSize = xWantedSize;
  58048. 8018044: 6a7b ldr r3, [r7, #36] @ 0x24
  58049. 8018046: 687a ldr r2, [r7, #4]
  58050. 8018048: 605a str r2, [r3, #4]
  58051. /* Insert the new block into the list of free blocks. */
  58052. prvInsertBlockIntoFreeList( pxNewBlockLink );
  58053. 801804a: 69b8 ldr r0, [r7, #24]
  58054. 801804c: f000 f90a bl 8018264 <prvInsertBlockIntoFreeList>
  58055. else
  58056. {
  58057. mtCOVERAGE_TEST_MARKER();
  58058. }
  58059. xFreeBytesRemaining -= pxBlock->xBlockSize;
  58060. 8018050: 4b1d ldr r3, [pc, #116] @ (80180c8 <pvPortMalloc+0x18c>)
  58061. 8018052: 681a ldr r2, [r3, #0]
  58062. 8018054: 6a7b ldr r3, [r7, #36] @ 0x24
  58063. 8018056: 685b ldr r3, [r3, #4]
  58064. 8018058: 1ad3 subs r3, r2, r3
  58065. 801805a: 4a1b ldr r2, [pc, #108] @ (80180c8 <pvPortMalloc+0x18c>)
  58066. 801805c: 6013 str r3, [r2, #0]
  58067. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  58068. 801805e: 4b1a ldr r3, [pc, #104] @ (80180c8 <pvPortMalloc+0x18c>)
  58069. 8018060: 681a ldr r2, [r3, #0]
  58070. 8018062: 4b1b ldr r3, [pc, #108] @ (80180d0 <pvPortMalloc+0x194>)
  58071. 8018064: 681b ldr r3, [r3, #0]
  58072. 8018066: 429a cmp r2, r3
  58073. 8018068: d203 bcs.n 8018072 <pvPortMalloc+0x136>
  58074. {
  58075. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  58076. 801806a: 4b17 ldr r3, [pc, #92] @ (80180c8 <pvPortMalloc+0x18c>)
  58077. 801806c: 681b ldr r3, [r3, #0]
  58078. 801806e: 4a18 ldr r2, [pc, #96] @ (80180d0 <pvPortMalloc+0x194>)
  58079. 8018070: 6013 str r3, [r2, #0]
  58080. mtCOVERAGE_TEST_MARKER();
  58081. }
  58082. /* The block is being returned - it is allocated and owned
  58083. by the application and has no "next" block. */
  58084. pxBlock->xBlockSize |= xBlockAllocatedBit;
  58085. 8018072: 6a7b ldr r3, [r7, #36] @ 0x24
  58086. 8018074: 685a ldr r2, [r3, #4]
  58087. 8018076: 4b13 ldr r3, [pc, #76] @ (80180c4 <pvPortMalloc+0x188>)
  58088. 8018078: 681b ldr r3, [r3, #0]
  58089. 801807a: 431a orrs r2, r3
  58090. 801807c: 6a7b ldr r3, [r7, #36] @ 0x24
  58091. 801807e: 605a str r2, [r3, #4]
  58092. pxBlock->pxNextFreeBlock = NULL;
  58093. 8018080: 6a7b ldr r3, [r7, #36] @ 0x24
  58094. 8018082: 2200 movs r2, #0
  58095. 8018084: 601a str r2, [r3, #0]
  58096. xNumberOfSuccessfulAllocations++;
  58097. 8018086: 4b13 ldr r3, [pc, #76] @ (80180d4 <pvPortMalloc+0x198>)
  58098. 8018088: 681b ldr r3, [r3, #0]
  58099. 801808a: 3301 adds r3, #1
  58100. 801808c: 4a11 ldr r2, [pc, #68] @ (80180d4 <pvPortMalloc+0x198>)
  58101. 801808e: 6013 str r3, [r2, #0]
  58102. mtCOVERAGE_TEST_MARKER();
  58103. }
  58104. traceMALLOC( pvReturn, xWantedSize );
  58105. }
  58106. ( void ) xTaskResumeAll();
  58107. 8018090: f7fe f87e bl 8016190 <xTaskResumeAll>
  58108. mtCOVERAGE_TEST_MARKER();
  58109. }
  58110. }
  58111. #endif
  58112. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  58113. 8018094: 69fb ldr r3, [r7, #28]
  58114. 8018096: f003 0307 and.w r3, r3, #7
  58115. 801809a: 2b00 cmp r3, #0
  58116. 801809c: d00b beq.n 80180b6 <pvPortMalloc+0x17a>
  58117. __asm volatile
  58118. 801809e: f04f 0350 mov.w r3, #80 @ 0x50
  58119. 80180a2: f383 8811 msr BASEPRI, r3
  58120. 80180a6: f3bf 8f6f isb sy
  58121. 80180aa: f3bf 8f4f dsb sy
  58122. 80180ae: 60fb str r3, [r7, #12]
  58123. }
  58124. 80180b0: bf00 nop
  58125. 80180b2: bf00 nop
  58126. 80180b4: e7fd b.n 80180b2 <pvPortMalloc+0x176>
  58127. return pvReturn;
  58128. 80180b6: 69fb ldr r3, [r7, #28]
  58129. }
  58130. 80180b8: 4618 mov r0, r3
  58131. 80180ba: 3728 adds r7, #40 @ 0x28
  58132. 80180bc: 46bd mov sp, r7
  58133. 80180be: bd80 pop {r7, pc}
  58134. 80180c0: 24013034 .word 0x24013034
  58135. 80180c4: 24013048 .word 0x24013048
  58136. 80180c8: 24013038 .word 0x24013038
  58137. 80180cc: 2401302c .word 0x2401302c
  58138. 80180d0: 2401303c .word 0x2401303c
  58139. 80180d4: 24013040 .word 0x24013040
  58140. 080180d8 <vPortFree>:
  58141. /*-----------------------------------------------------------*/
  58142. void vPortFree( void *pv )
  58143. {
  58144. 80180d8: b580 push {r7, lr}
  58145. 80180da: b086 sub sp, #24
  58146. 80180dc: af00 add r7, sp, #0
  58147. 80180de: 6078 str r0, [r7, #4]
  58148. uint8_t *puc = ( uint8_t * ) pv;
  58149. 80180e0: 687b ldr r3, [r7, #4]
  58150. 80180e2: 617b str r3, [r7, #20]
  58151. BlockLink_t *pxLink;
  58152. if( pv != NULL )
  58153. 80180e4: 687b ldr r3, [r7, #4]
  58154. 80180e6: 2b00 cmp r3, #0
  58155. 80180e8: d04f beq.n 801818a <vPortFree+0xb2>
  58156. {
  58157. /* The memory being freed will have an BlockLink_t structure immediately
  58158. before it. */
  58159. puc -= xHeapStructSize;
  58160. 80180ea: 2308 movs r3, #8
  58161. 80180ec: 425b negs r3, r3
  58162. 80180ee: 697a ldr r2, [r7, #20]
  58163. 80180f0: 4413 add r3, r2
  58164. 80180f2: 617b str r3, [r7, #20]
  58165. /* This casting is to keep the compiler from issuing warnings. */
  58166. pxLink = ( void * ) puc;
  58167. 80180f4: 697b ldr r3, [r7, #20]
  58168. 80180f6: 613b str r3, [r7, #16]
  58169. /* Check the block is actually allocated. */
  58170. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  58171. 80180f8: 693b ldr r3, [r7, #16]
  58172. 80180fa: 685a ldr r2, [r3, #4]
  58173. 80180fc: 4b25 ldr r3, [pc, #148] @ (8018194 <vPortFree+0xbc>)
  58174. 80180fe: 681b ldr r3, [r3, #0]
  58175. 8018100: 4013 ands r3, r2
  58176. 8018102: 2b00 cmp r3, #0
  58177. 8018104: d10b bne.n 801811e <vPortFree+0x46>
  58178. __asm volatile
  58179. 8018106: f04f 0350 mov.w r3, #80 @ 0x50
  58180. 801810a: f383 8811 msr BASEPRI, r3
  58181. 801810e: f3bf 8f6f isb sy
  58182. 8018112: f3bf 8f4f dsb sy
  58183. 8018116: 60fb str r3, [r7, #12]
  58184. }
  58185. 8018118: bf00 nop
  58186. 801811a: bf00 nop
  58187. 801811c: e7fd b.n 801811a <vPortFree+0x42>
  58188. configASSERT( pxLink->pxNextFreeBlock == NULL );
  58189. 801811e: 693b ldr r3, [r7, #16]
  58190. 8018120: 681b ldr r3, [r3, #0]
  58191. 8018122: 2b00 cmp r3, #0
  58192. 8018124: d00b beq.n 801813e <vPortFree+0x66>
  58193. __asm volatile
  58194. 8018126: f04f 0350 mov.w r3, #80 @ 0x50
  58195. 801812a: f383 8811 msr BASEPRI, r3
  58196. 801812e: f3bf 8f6f isb sy
  58197. 8018132: f3bf 8f4f dsb sy
  58198. 8018136: 60bb str r3, [r7, #8]
  58199. }
  58200. 8018138: bf00 nop
  58201. 801813a: bf00 nop
  58202. 801813c: e7fd b.n 801813a <vPortFree+0x62>
  58203. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  58204. 801813e: 693b ldr r3, [r7, #16]
  58205. 8018140: 685a ldr r2, [r3, #4]
  58206. 8018142: 4b14 ldr r3, [pc, #80] @ (8018194 <vPortFree+0xbc>)
  58207. 8018144: 681b ldr r3, [r3, #0]
  58208. 8018146: 4013 ands r3, r2
  58209. 8018148: 2b00 cmp r3, #0
  58210. 801814a: d01e beq.n 801818a <vPortFree+0xb2>
  58211. {
  58212. if( pxLink->pxNextFreeBlock == NULL )
  58213. 801814c: 693b ldr r3, [r7, #16]
  58214. 801814e: 681b ldr r3, [r3, #0]
  58215. 8018150: 2b00 cmp r3, #0
  58216. 8018152: d11a bne.n 801818a <vPortFree+0xb2>
  58217. {
  58218. /* The block is being returned to the heap - it is no longer
  58219. allocated. */
  58220. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  58221. 8018154: 693b ldr r3, [r7, #16]
  58222. 8018156: 685a ldr r2, [r3, #4]
  58223. 8018158: 4b0e ldr r3, [pc, #56] @ (8018194 <vPortFree+0xbc>)
  58224. 801815a: 681b ldr r3, [r3, #0]
  58225. 801815c: 43db mvns r3, r3
  58226. 801815e: 401a ands r2, r3
  58227. 8018160: 693b ldr r3, [r7, #16]
  58228. 8018162: 605a str r2, [r3, #4]
  58229. vTaskSuspendAll();
  58230. 8018164: f7fe f806 bl 8016174 <vTaskSuspendAll>
  58231. {
  58232. /* Add this block to the list of free blocks. */
  58233. xFreeBytesRemaining += pxLink->xBlockSize;
  58234. 8018168: 693b ldr r3, [r7, #16]
  58235. 801816a: 685a ldr r2, [r3, #4]
  58236. 801816c: 4b0a ldr r3, [pc, #40] @ (8018198 <vPortFree+0xc0>)
  58237. 801816e: 681b ldr r3, [r3, #0]
  58238. 8018170: 4413 add r3, r2
  58239. 8018172: 4a09 ldr r2, [pc, #36] @ (8018198 <vPortFree+0xc0>)
  58240. 8018174: 6013 str r3, [r2, #0]
  58241. traceFREE( pv, pxLink->xBlockSize );
  58242. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  58243. 8018176: 6938 ldr r0, [r7, #16]
  58244. 8018178: f000 f874 bl 8018264 <prvInsertBlockIntoFreeList>
  58245. xNumberOfSuccessfulFrees++;
  58246. 801817c: 4b07 ldr r3, [pc, #28] @ (801819c <vPortFree+0xc4>)
  58247. 801817e: 681b ldr r3, [r3, #0]
  58248. 8018180: 3301 adds r3, #1
  58249. 8018182: 4a06 ldr r2, [pc, #24] @ (801819c <vPortFree+0xc4>)
  58250. 8018184: 6013 str r3, [r2, #0]
  58251. }
  58252. ( void ) xTaskResumeAll();
  58253. 8018186: f7fe f803 bl 8016190 <xTaskResumeAll>
  58254. else
  58255. {
  58256. mtCOVERAGE_TEST_MARKER();
  58257. }
  58258. }
  58259. }
  58260. 801818a: bf00 nop
  58261. 801818c: 3718 adds r7, #24
  58262. 801818e: 46bd mov sp, r7
  58263. 8018190: bd80 pop {r7, pc}
  58264. 8018192: bf00 nop
  58265. 8018194: 24013048 .word 0x24013048
  58266. 8018198: 24013038 .word 0x24013038
  58267. 801819c: 24013044 .word 0x24013044
  58268. 080181a0 <prvHeapInit>:
  58269. /* This just exists to keep the linker quiet. */
  58270. }
  58271. /*-----------------------------------------------------------*/
  58272. static void prvHeapInit( void )
  58273. {
  58274. 80181a0: b480 push {r7}
  58275. 80181a2: b085 sub sp, #20
  58276. 80181a4: af00 add r7, sp, #0
  58277. BlockLink_t *pxFirstFreeBlock;
  58278. uint8_t *pucAlignedHeap;
  58279. size_t uxAddress;
  58280. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  58281. 80181a6: f44f 3380 mov.w r3, #65536 @ 0x10000
  58282. 80181aa: 60bb str r3, [r7, #8]
  58283. /* Ensure the heap starts on a correctly aligned boundary. */
  58284. uxAddress = ( size_t ) ucHeap;
  58285. 80181ac: 4b27 ldr r3, [pc, #156] @ (801824c <prvHeapInit+0xac>)
  58286. 80181ae: 60fb str r3, [r7, #12]
  58287. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  58288. 80181b0: 68fb ldr r3, [r7, #12]
  58289. 80181b2: f003 0307 and.w r3, r3, #7
  58290. 80181b6: 2b00 cmp r3, #0
  58291. 80181b8: d00c beq.n 80181d4 <prvHeapInit+0x34>
  58292. {
  58293. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  58294. 80181ba: 68fb ldr r3, [r7, #12]
  58295. 80181bc: 3307 adds r3, #7
  58296. 80181be: 60fb str r3, [r7, #12]
  58297. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58298. 80181c0: 68fb ldr r3, [r7, #12]
  58299. 80181c2: f023 0307 bic.w r3, r3, #7
  58300. 80181c6: 60fb str r3, [r7, #12]
  58301. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  58302. 80181c8: 68ba ldr r2, [r7, #8]
  58303. 80181ca: 68fb ldr r3, [r7, #12]
  58304. 80181cc: 1ad3 subs r3, r2, r3
  58305. 80181ce: 4a1f ldr r2, [pc, #124] @ (801824c <prvHeapInit+0xac>)
  58306. 80181d0: 4413 add r3, r2
  58307. 80181d2: 60bb str r3, [r7, #8]
  58308. }
  58309. pucAlignedHeap = ( uint8_t * ) uxAddress;
  58310. 80181d4: 68fb ldr r3, [r7, #12]
  58311. 80181d6: 607b str r3, [r7, #4]
  58312. /* xStart is used to hold a pointer to the first item in the list of free
  58313. blocks. The void cast is used to prevent compiler warnings. */
  58314. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  58315. 80181d8: 4a1d ldr r2, [pc, #116] @ (8018250 <prvHeapInit+0xb0>)
  58316. 80181da: 687b ldr r3, [r7, #4]
  58317. 80181dc: 6013 str r3, [r2, #0]
  58318. xStart.xBlockSize = ( size_t ) 0;
  58319. 80181de: 4b1c ldr r3, [pc, #112] @ (8018250 <prvHeapInit+0xb0>)
  58320. 80181e0: 2200 movs r2, #0
  58321. 80181e2: 605a str r2, [r3, #4]
  58322. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  58323. at the end of the heap space. */
  58324. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  58325. 80181e4: 687b ldr r3, [r7, #4]
  58326. 80181e6: 68ba ldr r2, [r7, #8]
  58327. 80181e8: 4413 add r3, r2
  58328. 80181ea: 60fb str r3, [r7, #12]
  58329. uxAddress -= xHeapStructSize;
  58330. 80181ec: 2208 movs r2, #8
  58331. 80181ee: 68fb ldr r3, [r7, #12]
  58332. 80181f0: 1a9b subs r3, r3, r2
  58333. 80181f2: 60fb str r3, [r7, #12]
  58334. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  58335. 80181f4: 68fb ldr r3, [r7, #12]
  58336. 80181f6: f023 0307 bic.w r3, r3, #7
  58337. 80181fa: 60fb str r3, [r7, #12]
  58338. pxEnd = ( void * ) uxAddress;
  58339. 80181fc: 68fb ldr r3, [r7, #12]
  58340. 80181fe: 4a15 ldr r2, [pc, #84] @ (8018254 <prvHeapInit+0xb4>)
  58341. 8018200: 6013 str r3, [r2, #0]
  58342. pxEnd->xBlockSize = 0;
  58343. 8018202: 4b14 ldr r3, [pc, #80] @ (8018254 <prvHeapInit+0xb4>)
  58344. 8018204: 681b ldr r3, [r3, #0]
  58345. 8018206: 2200 movs r2, #0
  58346. 8018208: 605a str r2, [r3, #4]
  58347. pxEnd->pxNextFreeBlock = NULL;
  58348. 801820a: 4b12 ldr r3, [pc, #72] @ (8018254 <prvHeapInit+0xb4>)
  58349. 801820c: 681b ldr r3, [r3, #0]
  58350. 801820e: 2200 movs r2, #0
  58351. 8018210: 601a str r2, [r3, #0]
  58352. /* To start with there is a single free block that is sized to take up the
  58353. entire heap space, minus the space taken by pxEnd. */
  58354. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  58355. 8018212: 687b ldr r3, [r7, #4]
  58356. 8018214: 603b str r3, [r7, #0]
  58357. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  58358. 8018216: 683b ldr r3, [r7, #0]
  58359. 8018218: 68fa ldr r2, [r7, #12]
  58360. 801821a: 1ad2 subs r2, r2, r3
  58361. 801821c: 683b ldr r3, [r7, #0]
  58362. 801821e: 605a str r2, [r3, #4]
  58363. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  58364. 8018220: 4b0c ldr r3, [pc, #48] @ (8018254 <prvHeapInit+0xb4>)
  58365. 8018222: 681a ldr r2, [r3, #0]
  58366. 8018224: 683b ldr r3, [r7, #0]
  58367. 8018226: 601a str r2, [r3, #0]
  58368. /* Only one block exists - and it covers the entire usable heap space. */
  58369. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58370. 8018228: 683b ldr r3, [r7, #0]
  58371. 801822a: 685b ldr r3, [r3, #4]
  58372. 801822c: 4a0a ldr r2, [pc, #40] @ (8018258 <prvHeapInit+0xb8>)
  58373. 801822e: 6013 str r3, [r2, #0]
  58374. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  58375. 8018230: 683b ldr r3, [r7, #0]
  58376. 8018232: 685b ldr r3, [r3, #4]
  58377. 8018234: 4a09 ldr r2, [pc, #36] @ (801825c <prvHeapInit+0xbc>)
  58378. 8018236: 6013 str r3, [r2, #0]
  58379. /* Work out the position of the top bit in a size_t variable. */
  58380. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  58381. 8018238: 4b09 ldr r3, [pc, #36] @ (8018260 <prvHeapInit+0xc0>)
  58382. 801823a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  58383. 801823e: 601a str r2, [r3, #0]
  58384. }
  58385. 8018240: bf00 nop
  58386. 8018242: 3714 adds r7, #20
  58387. 8018244: 46bd mov sp, r7
  58388. 8018246: f85d 7b04 ldr.w r7, [sp], #4
  58389. 801824a: 4770 bx lr
  58390. 801824c: 2400302c .word 0x2400302c
  58391. 8018250: 2401302c .word 0x2401302c
  58392. 8018254: 24013034 .word 0x24013034
  58393. 8018258: 2401303c .word 0x2401303c
  58394. 801825c: 24013038 .word 0x24013038
  58395. 8018260: 24013048 .word 0x24013048
  58396. 08018264 <prvInsertBlockIntoFreeList>:
  58397. /*-----------------------------------------------------------*/
  58398. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  58399. {
  58400. 8018264: b480 push {r7}
  58401. 8018266: b085 sub sp, #20
  58402. 8018268: af00 add r7, sp, #0
  58403. 801826a: 6078 str r0, [r7, #4]
  58404. BlockLink_t *pxIterator;
  58405. uint8_t *puc;
  58406. /* Iterate through the list until a block is found that has a higher address
  58407. than the block being inserted. */
  58408. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  58409. 801826c: 4b28 ldr r3, [pc, #160] @ (8018310 <prvInsertBlockIntoFreeList+0xac>)
  58410. 801826e: 60fb str r3, [r7, #12]
  58411. 8018270: e002 b.n 8018278 <prvInsertBlockIntoFreeList+0x14>
  58412. 8018272: 68fb ldr r3, [r7, #12]
  58413. 8018274: 681b ldr r3, [r3, #0]
  58414. 8018276: 60fb str r3, [r7, #12]
  58415. 8018278: 68fb ldr r3, [r7, #12]
  58416. 801827a: 681b ldr r3, [r3, #0]
  58417. 801827c: 687a ldr r2, [r7, #4]
  58418. 801827e: 429a cmp r2, r3
  58419. 8018280: d8f7 bhi.n 8018272 <prvInsertBlockIntoFreeList+0xe>
  58420. /* Nothing to do here, just iterate to the right position. */
  58421. }
  58422. /* Do the block being inserted, and the block it is being inserted after
  58423. make a contiguous block of memory? */
  58424. puc = ( uint8_t * ) pxIterator;
  58425. 8018282: 68fb ldr r3, [r7, #12]
  58426. 8018284: 60bb str r3, [r7, #8]
  58427. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  58428. 8018286: 68fb ldr r3, [r7, #12]
  58429. 8018288: 685b ldr r3, [r3, #4]
  58430. 801828a: 68ba ldr r2, [r7, #8]
  58431. 801828c: 4413 add r3, r2
  58432. 801828e: 687a ldr r2, [r7, #4]
  58433. 8018290: 429a cmp r2, r3
  58434. 8018292: d108 bne.n 80182a6 <prvInsertBlockIntoFreeList+0x42>
  58435. {
  58436. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  58437. 8018294: 68fb ldr r3, [r7, #12]
  58438. 8018296: 685a ldr r2, [r3, #4]
  58439. 8018298: 687b ldr r3, [r7, #4]
  58440. 801829a: 685b ldr r3, [r3, #4]
  58441. 801829c: 441a add r2, r3
  58442. 801829e: 68fb ldr r3, [r7, #12]
  58443. 80182a0: 605a str r2, [r3, #4]
  58444. pxBlockToInsert = pxIterator;
  58445. 80182a2: 68fb ldr r3, [r7, #12]
  58446. 80182a4: 607b str r3, [r7, #4]
  58447. mtCOVERAGE_TEST_MARKER();
  58448. }
  58449. /* Do the block being inserted, and the block it is being inserted before
  58450. make a contiguous block of memory? */
  58451. puc = ( uint8_t * ) pxBlockToInsert;
  58452. 80182a6: 687b ldr r3, [r7, #4]
  58453. 80182a8: 60bb str r3, [r7, #8]
  58454. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  58455. 80182aa: 687b ldr r3, [r7, #4]
  58456. 80182ac: 685b ldr r3, [r3, #4]
  58457. 80182ae: 68ba ldr r2, [r7, #8]
  58458. 80182b0: 441a add r2, r3
  58459. 80182b2: 68fb ldr r3, [r7, #12]
  58460. 80182b4: 681b ldr r3, [r3, #0]
  58461. 80182b6: 429a cmp r2, r3
  58462. 80182b8: d118 bne.n 80182ec <prvInsertBlockIntoFreeList+0x88>
  58463. {
  58464. if( pxIterator->pxNextFreeBlock != pxEnd )
  58465. 80182ba: 68fb ldr r3, [r7, #12]
  58466. 80182bc: 681a ldr r2, [r3, #0]
  58467. 80182be: 4b15 ldr r3, [pc, #84] @ (8018314 <prvInsertBlockIntoFreeList+0xb0>)
  58468. 80182c0: 681b ldr r3, [r3, #0]
  58469. 80182c2: 429a cmp r2, r3
  58470. 80182c4: d00d beq.n 80182e2 <prvInsertBlockIntoFreeList+0x7e>
  58471. {
  58472. /* Form one big block from the two blocks. */
  58473. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  58474. 80182c6: 687b ldr r3, [r7, #4]
  58475. 80182c8: 685a ldr r2, [r3, #4]
  58476. 80182ca: 68fb ldr r3, [r7, #12]
  58477. 80182cc: 681b ldr r3, [r3, #0]
  58478. 80182ce: 685b ldr r3, [r3, #4]
  58479. 80182d0: 441a add r2, r3
  58480. 80182d2: 687b ldr r3, [r7, #4]
  58481. 80182d4: 605a str r2, [r3, #4]
  58482. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  58483. 80182d6: 68fb ldr r3, [r7, #12]
  58484. 80182d8: 681b ldr r3, [r3, #0]
  58485. 80182da: 681a ldr r2, [r3, #0]
  58486. 80182dc: 687b ldr r3, [r7, #4]
  58487. 80182de: 601a str r2, [r3, #0]
  58488. 80182e0: e008 b.n 80182f4 <prvInsertBlockIntoFreeList+0x90>
  58489. }
  58490. else
  58491. {
  58492. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  58493. 80182e2: 4b0c ldr r3, [pc, #48] @ (8018314 <prvInsertBlockIntoFreeList+0xb0>)
  58494. 80182e4: 681a ldr r2, [r3, #0]
  58495. 80182e6: 687b ldr r3, [r7, #4]
  58496. 80182e8: 601a str r2, [r3, #0]
  58497. 80182ea: e003 b.n 80182f4 <prvInsertBlockIntoFreeList+0x90>
  58498. }
  58499. }
  58500. else
  58501. {
  58502. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  58503. 80182ec: 68fb ldr r3, [r7, #12]
  58504. 80182ee: 681a ldr r2, [r3, #0]
  58505. 80182f0: 687b ldr r3, [r7, #4]
  58506. 80182f2: 601a str r2, [r3, #0]
  58507. /* If the block being inserted plugged a gab, so was merged with the block
  58508. before and the block after, then it's pxNextFreeBlock pointer will have
  58509. already been set, and should not be set here as that would make it point
  58510. to itself. */
  58511. if( pxIterator != pxBlockToInsert )
  58512. 80182f4: 68fa ldr r2, [r7, #12]
  58513. 80182f6: 687b ldr r3, [r7, #4]
  58514. 80182f8: 429a cmp r2, r3
  58515. 80182fa: d002 beq.n 8018302 <prvInsertBlockIntoFreeList+0x9e>
  58516. {
  58517. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  58518. 80182fc: 68fb ldr r3, [r7, #12]
  58519. 80182fe: 687a ldr r2, [r7, #4]
  58520. 8018300: 601a str r2, [r3, #0]
  58521. }
  58522. else
  58523. {
  58524. mtCOVERAGE_TEST_MARKER();
  58525. }
  58526. }
  58527. 8018302: bf00 nop
  58528. 8018304: 3714 adds r7, #20
  58529. 8018306: 46bd mov sp, r7
  58530. 8018308: f85d 7b04 ldr.w r7, [sp], #4
  58531. 801830c: 4770 bx lr
  58532. 801830e: bf00 nop
  58533. 8018310: 2401302c .word 0x2401302c
  58534. 8018314: 24013034 .word 0x24013034
  58535. 08018318 <memset>:
  58536. 8018318: 4402 add r2, r0
  58537. 801831a: 4603 mov r3, r0
  58538. 801831c: 4293 cmp r3, r2
  58539. 801831e: d100 bne.n 8018322 <memset+0xa>
  58540. 8018320: 4770 bx lr
  58541. 8018322: f803 1b01 strb.w r1, [r3], #1
  58542. 8018326: e7f9 b.n 801831c <memset+0x4>
  58543. 08018328 <_reclaim_reent>:
  58544. 8018328: 4b29 ldr r3, [pc, #164] @ (80183d0 <_reclaim_reent+0xa8>)
  58545. 801832a: 681b ldr r3, [r3, #0]
  58546. 801832c: 4283 cmp r3, r0
  58547. 801832e: b570 push {r4, r5, r6, lr}
  58548. 8018330: 4604 mov r4, r0
  58549. 8018332: d04b beq.n 80183cc <_reclaim_reent+0xa4>
  58550. 8018334: 69c3 ldr r3, [r0, #28]
  58551. 8018336: b1ab cbz r3, 8018364 <_reclaim_reent+0x3c>
  58552. 8018338: 68db ldr r3, [r3, #12]
  58553. 801833a: b16b cbz r3, 8018358 <_reclaim_reent+0x30>
  58554. 801833c: 2500 movs r5, #0
  58555. 801833e: 69e3 ldr r3, [r4, #28]
  58556. 8018340: 68db ldr r3, [r3, #12]
  58557. 8018342: 5959 ldr r1, [r3, r5]
  58558. 8018344: 2900 cmp r1, #0
  58559. 8018346: d13b bne.n 80183c0 <_reclaim_reent+0x98>
  58560. 8018348: 3504 adds r5, #4
  58561. 801834a: 2d80 cmp r5, #128 @ 0x80
  58562. 801834c: d1f7 bne.n 801833e <_reclaim_reent+0x16>
  58563. 801834e: 69e3 ldr r3, [r4, #28]
  58564. 8018350: 4620 mov r0, r4
  58565. 8018352: 68d9 ldr r1, [r3, #12]
  58566. 8018354: f000 f878 bl 8018448 <_free_r>
  58567. 8018358: 69e3 ldr r3, [r4, #28]
  58568. 801835a: 6819 ldr r1, [r3, #0]
  58569. 801835c: b111 cbz r1, 8018364 <_reclaim_reent+0x3c>
  58570. 801835e: 4620 mov r0, r4
  58571. 8018360: f000 f872 bl 8018448 <_free_r>
  58572. 8018364: 6961 ldr r1, [r4, #20]
  58573. 8018366: b111 cbz r1, 801836e <_reclaim_reent+0x46>
  58574. 8018368: 4620 mov r0, r4
  58575. 801836a: f000 f86d bl 8018448 <_free_r>
  58576. 801836e: 69e1 ldr r1, [r4, #28]
  58577. 8018370: b111 cbz r1, 8018378 <_reclaim_reent+0x50>
  58578. 8018372: 4620 mov r0, r4
  58579. 8018374: f000 f868 bl 8018448 <_free_r>
  58580. 8018378: 6b21 ldr r1, [r4, #48] @ 0x30
  58581. 801837a: b111 cbz r1, 8018382 <_reclaim_reent+0x5a>
  58582. 801837c: 4620 mov r0, r4
  58583. 801837e: f000 f863 bl 8018448 <_free_r>
  58584. 8018382: 6b61 ldr r1, [r4, #52] @ 0x34
  58585. 8018384: b111 cbz r1, 801838c <_reclaim_reent+0x64>
  58586. 8018386: 4620 mov r0, r4
  58587. 8018388: f000 f85e bl 8018448 <_free_r>
  58588. 801838c: 6ba1 ldr r1, [r4, #56] @ 0x38
  58589. 801838e: b111 cbz r1, 8018396 <_reclaim_reent+0x6e>
  58590. 8018390: 4620 mov r0, r4
  58591. 8018392: f000 f859 bl 8018448 <_free_r>
  58592. 8018396: 6ca1 ldr r1, [r4, #72] @ 0x48
  58593. 8018398: b111 cbz r1, 80183a0 <_reclaim_reent+0x78>
  58594. 801839a: 4620 mov r0, r4
  58595. 801839c: f000 f854 bl 8018448 <_free_r>
  58596. 80183a0: 6c61 ldr r1, [r4, #68] @ 0x44
  58597. 80183a2: b111 cbz r1, 80183aa <_reclaim_reent+0x82>
  58598. 80183a4: 4620 mov r0, r4
  58599. 80183a6: f000 f84f bl 8018448 <_free_r>
  58600. 80183aa: 6ae1 ldr r1, [r4, #44] @ 0x2c
  58601. 80183ac: b111 cbz r1, 80183b4 <_reclaim_reent+0x8c>
  58602. 80183ae: 4620 mov r0, r4
  58603. 80183b0: f000 f84a bl 8018448 <_free_r>
  58604. 80183b4: 6a23 ldr r3, [r4, #32]
  58605. 80183b6: b14b cbz r3, 80183cc <_reclaim_reent+0xa4>
  58606. 80183b8: 4620 mov r0, r4
  58607. 80183ba: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  58608. 80183be: 4718 bx r3
  58609. 80183c0: 680e ldr r6, [r1, #0]
  58610. 80183c2: 4620 mov r0, r4
  58611. 80183c4: f000 f840 bl 8018448 <_free_r>
  58612. 80183c8: 4631 mov r1, r6
  58613. 80183ca: e7bb b.n 8018344 <_reclaim_reent+0x1c>
  58614. 80183cc: bd70 pop {r4, r5, r6, pc}
  58615. 80183ce: bf00 nop
  58616. 80183d0: 24000048 .word 0x24000048
  58617. 080183d4 <__errno>:
  58618. 80183d4: 4b01 ldr r3, [pc, #4] @ (80183dc <__errno+0x8>)
  58619. 80183d6: 6818 ldr r0, [r3, #0]
  58620. 80183d8: 4770 bx lr
  58621. 80183da: bf00 nop
  58622. 80183dc: 24000048 .word 0x24000048
  58623. 080183e0 <__libc_init_array>:
  58624. 80183e0: b570 push {r4, r5, r6, lr}
  58625. 80183e2: 4d0d ldr r5, [pc, #52] @ (8018418 <__libc_init_array+0x38>)
  58626. 80183e4: 4c0d ldr r4, [pc, #52] @ (801841c <__libc_init_array+0x3c>)
  58627. 80183e6: 1b64 subs r4, r4, r5
  58628. 80183e8: 10a4 asrs r4, r4, #2
  58629. 80183ea: 2600 movs r6, #0
  58630. 80183ec: 42a6 cmp r6, r4
  58631. 80183ee: d109 bne.n 8018404 <__libc_init_array+0x24>
  58632. 80183f0: 4d0b ldr r5, [pc, #44] @ (8018420 <__libc_init_array+0x40>)
  58633. 80183f2: 4c0c ldr r4, [pc, #48] @ (8018424 <__libc_init_array+0x44>)
  58634. 80183f4: f000 f920 bl 8018638 <_init>
  58635. 80183f8: 1b64 subs r4, r4, r5
  58636. 80183fa: 10a4 asrs r4, r4, #2
  58637. 80183fc: 2600 movs r6, #0
  58638. 80183fe: 42a6 cmp r6, r4
  58639. 8018400: d105 bne.n 801840e <__libc_init_array+0x2e>
  58640. 8018402: bd70 pop {r4, r5, r6, pc}
  58641. 8018404: f855 3b04 ldr.w r3, [r5], #4
  58642. 8018408: 4798 blx r3
  58643. 801840a: 3601 adds r6, #1
  58644. 801840c: e7ee b.n 80183ec <__libc_init_array+0xc>
  58645. 801840e: f855 3b04 ldr.w r3, [r5], #4
  58646. 8018412: 4798 blx r3
  58647. 8018414: 3601 adds r6, #1
  58648. 8018416: e7f2 b.n 80183fe <__libc_init_array+0x1e>
  58649. 8018418: 0801875c .word 0x0801875c
  58650. 801841c: 0801875c .word 0x0801875c
  58651. 8018420: 0801875c .word 0x0801875c
  58652. 8018424: 08018760 .word 0x08018760
  58653. 08018428 <__retarget_lock_acquire_recursive>:
  58654. 8018428: 4770 bx lr
  58655. 0801842a <__retarget_lock_release_recursive>:
  58656. 801842a: 4770 bx lr
  58657. 0801842c <memcpy>:
  58658. 801842c: 440a add r2, r1
  58659. 801842e: 4291 cmp r1, r2
  58660. 8018430: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58661. 8018434: d100 bne.n 8018438 <memcpy+0xc>
  58662. 8018436: 4770 bx lr
  58663. 8018438: b510 push {r4, lr}
  58664. 801843a: f811 4b01 ldrb.w r4, [r1], #1
  58665. 801843e: f803 4f01 strb.w r4, [r3, #1]!
  58666. 8018442: 4291 cmp r1, r2
  58667. 8018444: d1f9 bne.n 801843a <memcpy+0xe>
  58668. 8018446: bd10 pop {r4, pc}
  58669. 08018448 <_free_r>:
  58670. 8018448: b538 push {r3, r4, r5, lr}
  58671. 801844a: 4605 mov r5, r0
  58672. 801844c: 2900 cmp r1, #0
  58673. 801844e: d041 beq.n 80184d4 <_free_r+0x8c>
  58674. 8018450: f851 3c04 ldr.w r3, [r1, #-4]
  58675. 8018454: 1f0c subs r4, r1, #4
  58676. 8018456: 2b00 cmp r3, #0
  58677. 8018458: bfb8 it lt
  58678. 801845a: 18e4 addlt r4, r4, r3
  58679. 801845c: f000 f83e bl 80184dc <__malloc_lock>
  58680. 8018460: 4a1d ldr r2, [pc, #116] @ (80184d8 <_free_r+0x90>)
  58681. 8018462: 6813 ldr r3, [r2, #0]
  58682. 8018464: b933 cbnz r3, 8018474 <_free_r+0x2c>
  58683. 8018466: 6063 str r3, [r4, #4]
  58684. 8018468: 6014 str r4, [r2, #0]
  58685. 801846a: 4628 mov r0, r5
  58686. 801846c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  58687. 8018470: f000 b83a b.w 80184e8 <__malloc_unlock>
  58688. 8018474: 42a3 cmp r3, r4
  58689. 8018476: d908 bls.n 801848a <_free_r+0x42>
  58690. 8018478: 6820 ldr r0, [r4, #0]
  58691. 801847a: 1821 adds r1, r4, r0
  58692. 801847c: 428b cmp r3, r1
  58693. 801847e: bf01 itttt eq
  58694. 8018480: 6819 ldreq r1, [r3, #0]
  58695. 8018482: 685b ldreq r3, [r3, #4]
  58696. 8018484: 1809 addeq r1, r1, r0
  58697. 8018486: 6021 streq r1, [r4, #0]
  58698. 8018488: e7ed b.n 8018466 <_free_r+0x1e>
  58699. 801848a: 461a mov r2, r3
  58700. 801848c: 685b ldr r3, [r3, #4]
  58701. 801848e: b10b cbz r3, 8018494 <_free_r+0x4c>
  58702. 8018490: 42a3 cmp r3, r4
  58703. 8018492: d9fa bls.n 801848a <_free_r+0x42>
  58704. 8018494: 6811 ldr r1, [r2, #0]
  58705. 8018496: 1850 adds r0, r2, r1
  58706. 8018498: 42a0 cmp r0, r4
  58707. 801849a: d10b bne.n 80184b4 <_free_r+0x6c>
  58708. 801849c: 6820 ldr r0, [r4, #0]
  58709. 801849e: 4401 add r1, r0
  58710. 80184a0: 1850 adds r0, r2, r1
  58711. 80184a2: 4283 cmp r3, r0
  58712. 80184a4: 6011 str r1, [r2, #0]
  58713. 80184a6: d1e0 bne.n 801846a <_free_r+0x22>
  58714. 80184a8: 6818 ldr r0, [r3, #0]
  58715. 80184aa: 685b ldr r3, [r3, #4]
  58716. 80184ac: 6053 str r3, [r2, #4]
  58717. 80184ae: 4408 add r0, r1
  58718. 80184b0: 6010 str r0, [r2, #0]
  58719. 80184b2: e7da b.n 801846a <_free_r+0x22>
  58720. 80184b4: d902 bls.n 80184bc <_free_r+0x74>
  58721. 80184b6: 230c movs r3, #12
  58722. 80184b8: 602b str r3, [r5, #0]
  58723. 80184ba: e7d6 b.n 801846a <_free_r+0x22>
  58724. 80184bc: 6820 ldr r0, [r4, #0]
  58725. 80184be: 1821 adds r1, r4, r0
  58726. 80184c0: 428b cmp r3, r1
  58727. 80184c2: bf04 itt eq
  58728. 80184c4: 6819 ldreq r1, [r3, #0]
  58729. 80184c6: 685b ldreq r3, [r3, #4]
  58730. 80184c8: 6063 str r3, [r4, #4]
  58731. 80184ca: bf04 itt eq
  58732. 80184cc: 1809 addeq r1, r1, r0
  58733. 80184ce: 6021 streq r1, [r4, #0]
  58734. 80184d0: 6054 str r4, [r2, #4]
  58735. 80184d2: e7ca b.n 801846a <_free_r+0x22>
  58736. 80184d4: bd38 pop {r3, r4, r5, pc}
  58737. 80184d6: bf00 nop
  58738. 80184d8: 24013188 .word 0x24013188
  58739. 080184dc <__malloc_lock>:
  58740. 80184dc: 4801 ldr r0, [pc, #4] @ (80184e4 <__malloc_lock+0x8>)
  58741. 80184de: f7ff bfa3 b.w 8018428 <__retarget_lock_acquire_recursive>
  58742. 80184e2: bf00 nop
  58743. 80184e4: 24013184 .word 0x24013184
  58744. 080184e8 <__malloc_unlock>:
  58745. 80184e8: 4801 ldr r0, [pc, #4] @ (80184f0 <__malloc_unlock+0x8>)
  58746. 80184ea: f7ff bf9e b.w 801842a <__retarget_lock_release_recursive>
  58747. 80184ee: bf00 nop
  58748. 80184f0: 24013184 .word 0x24013184
  58749. 080184f4 <fmodf>:
  58750. 80184f4: b508 push {r3, lr}
  58751. 80184f6: ed2d 8b02 vpush {d8}
  58752. 80184fa: eef0 8a40 vmov.f32 s17, s0
  58753. 80184fe: eeb0 8a60 vmov.f32 s16, s1
  58754. 8018502: f000 f817 bl 8018534 <__ieee754_fmodf>
  58755. 8018506: eef4 8a48 vcmp.f32 s17, s16
  58756. 801850a: eef1 fa10 vmrs APSR_nzcv, fpscr
  58757. 801850e: d60c bvs.n 801852a <fmodf+0x36>
  58758. 8018510: eddf 8a07 vldr s17, [pc, #28] @ 8018530 <fmodf+0x3c>
  58759. 8018514: eeb4 8a68 vcmp.f32 s16, s17
  58760. 8018518: eef1 fa10 vmrs APSR_nzcv, fpscr
  58761. 801851c: d105 bne.n 801852a <fmodf+0x36>
  58762. 801851e: f7ff ff59 bl 80183d4 <__errno>
  58763. 8018522: ee88 0aa8 vdiv.f32 s0, s17, s17
  58764. 8018526: 2321 movs r3, #33 @ 0x21
  58765. 8018528: 6003 str r3, [r0, #0]
  58766. 801852a: ecbd 8b02 vpop {d8}
  58767. 801852e: bd08 pop {r3, pc}
  58768. 8018530: 00000000 .word 0x00000000
  58769. 08018534 <__ieee754_fmodf>:
  58770. 8018534: b5f0 push {r4, r5, r6, r7, lr}
  58771. 8018536: ee10 5a90 vmov r5, s1
  58772. 801853a: f025 4000 bic.w r0, r5, #2147483648 @ 0x80000000
  58773. 801853e: 1e43 subs r3, r0, #1
  58774. 8018540: f1b3 4fff cmp.w r3, #2139095040 @ 0x7f800000
  58775. 8018544: d206 bcs.n 8018554 <__ieee754_fmodf+0x20>
  58776. 8018546: ee10 3a10 vmov r3, s0
  58777. 801854a: f023 4600 bic.w r6, r3, #2147483648 @ 0x80000000
  58778. 801854e: f1b6 4fff cmp.w r6, #2139095040 @ 0x7f800000
  58779. 8018552: d304 bcc.n 801855e <__ieee754_fmodf+0x2a>
  58780. 8018554: ee60 0a20 vmul.f32 s1, s0, s1
  58781. 8018558: ee80 0aa0 vdiv.f32 s0, s1, s1
  58782. 801855c: bdf0 pop {r4, r5, r6, r7, pc}
  58783. 801855e: 4286 cmp r6, r0
  58784. 8018560: dbfc blt.n 801855c <__ieee754_fmodf+0x28>
  58785. 8018562: f003 4400 and.w r4, r3, #2147483648 @ 0x80000000
  58786. 8018566: d105 bne.n 8018574 <__ieee754_fmodf+0x40>
  58787. 8018568: 4b32 ldr r3, [pc, #200] @ (8018634 <__ieee754_fmodf+0x100>)
  58788. 801856a: eb03 7354 add.w r3, r3, r4, lsr #29
  58789. 801856e: ed93 0a00 vldr s0, [r3]
  58790. 8018572: e7f3 b.n 801855c <__ieee754_fmodf+0x28>
  58791. 8018574: f013 4fff tst.w r3, #2139095040 @ 0x7f800000
  58792. 8018578: d140 bne.n 80185fc <__ieee754_fmodf+0xc8>
  58793. 801857a: 0232 lsls r2, r6, #8
  58794. 801857c: f06f 017d mvn.w r1, #125 @ 0x7d
  58795. 8018580: 2a00 cmp r2, #0
  58796. 8018582: dc38 bgt.n 80185f6 <__ieee754_fmodf+0xc2>
  58797. 8018584: f015 4fff tst.w r5, #2139095040 @ 0x7f800000
  58798. 8018588: d13e bne.n 8018608 <__ieee754_fmodf+0xd4>
  58799. 801858a: 0207 lsls r7, r0, #8
  58800. 801858c: f06f 027d mvn.w r2, #125 @ 0x7d
  58801. 8018590: 2f00 cmp r7, #0
  58802. 8018592: da36 bge.n 8018602 <__ieee754_fmodf+0xce>
  58803. 8018594: f111 0f7e cmn.w r1, #126 @ 0x7e
  58804. 8018598: bfb9 ittee lt
  58805. 801859a: f06f 037d mvnlt.w r3, #125 @ 0x7d
  58806. 801859e: 1a5b sublt r3, r3, r1
  58807. 80185a0: f3c3 0316 ubfxge r3, r3, #0, #23
  58808. 80185a4: f443 0300 orrge.w r3, r3, #8388608 @ 0x800000
  58809. 80185a8: bfb8 it lt
  58810. 80185aa: fa06 f303 lsllt.w r3, r6, r3
  58811. 80185ae: f112 0f7e cmn.w r2, #126 @ 0x7e
  58812. 80185b2: bfb5 itete lt
  58813. 80185b4: f06f 057d mvnlt.w r5, #125 @ 0x7d
  58814. 80185b8: f3c5 0516 ubfxge r5, r5, #0, #23
  58815. 80185bc: 1aad sublt r5, r5, r2
  58816. 80185be: f445 0000 orrge.w r0, r5, #8388608 @ 0x800000
  58817. 80185c2: bfb8 it lt
  58818. 80185c4: 40a8 lsllt r0, r5
  58819. 80185c6: 1a89 subs r1, r1, r2
  58820. 80185c8: 1a1d subs r5, r3, r0
  58821. 80185ca: bb01 cbnz r1, 801860e <__ieee754_fmodf+0xda>
  58822. 80185cc: ea13 0325 ands.w r3, r3, r5, asr #32
  58823. 80185d0: bf38 it cc
  58824. 80185d2: 462b movcc r3, r5
  58825. 80185d4: 2b00 cmp r3, #0
  58826. 80185d6: d0c7 beq.n 8018568 <__ieee754_fmodf+0x34>
  58827. 80185d8: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  58828. 80185dc: db1f blt.n 801861e <__ieee754_fmodf+0xea>
  58829. 80185de: f112 0f7e cmn.w r2, #126 @ 0x7e
  58830. 80185e2: db1f blt.n 8018624 <__ieee754_fmodf+0xf0>
  58831. 80185e4: f5a3 0300 sub.w r3, r3, #8388608 @ 0x800000
  58832. 80185e8: 327f adds r2, #127 @ 0x7f
  58833. 80185ea: 4323 orrs r3, r4
  58834. 80185ec: ea43 53c2 orr.w r3, r3, r2, lsl #23
  58835. 80185f0: ee00 3a10 vmov s0, r3
  58836. 80185f4: e7b2 b.n 801855c <__ieee754_fmodf+0x28>
  58837. 80185f6: 3901 subs r1, #1
  58838. 80185f8: 0052 lsls r2, r2, #1
  58839. 80185fa: e7c1 b.n 8018580 <__ieee754_fmodf+0x4c>
  58840. 80185fc: 15f1 asrs r1, r6, #23
  58841. 80185fe: 397f subs r1, #127 @ 0x7f
  58842. 8018600: e7c0 b.n 8018584 <__ieee754_fmodf+0x50>
  58843. 8018602: 3a01 subs r2, #1
  58844. 8018604: 007f lsls r7, r7, #1
  58845. 8018606: e7c3 b.n 8018590 <__ieee754_fmodf+0x5c>
  58846. 8018608: 15c2 asrs r2, r0, #23
  58847. 801860a: 3a7f subs r2, #127 @ 0x7f
  58848. 801860c: e7c2 b.n 8018594 <__ieee754_fmodf+0x60>
  58849. 801860e: 2d00 cmp r5, #0
  58850. 8018610: da02 bge.n 8018618 <__ieee754_fmodf+0xe4>
  58851. 8018612: 005b lsls r3, r3, #1
  58852. 8018614: 3901 subs r1, #1
  58853. 8018616: e7d7 b.n 80185c8 <__ieee754_fmodf+0x94>
  58854. 8018618: d0a6 beq.n 8018568 <__ieee754_fmodf+0x34>
  58855. 801861a: 006b lsls r3, r5, #1
  58856. 801861c: e7fa b.n 8018614 <__ieee754_fmodf+0xe0>
  58857. 801861e: 005b lsls r3, r3, #1
  58858. 8018620: 3a01 subs r2, #1
  58859. 8018622: e7d9 b.n 80185d8 <__ieee754_fmodf+0xa4>
  58860. 8018624: f1c2 22ff rsb r2, r2, #4278255360 @ 0xff00ff00
  58861. 8018628: f502 027f add.w r2, r2, #16711680 @ 0xff0000
  58862. 801862c: 3282 adds r2, #130 @ 0x82
  58863. 801862e: 4113 asrs r3, r2
  58864. 8018630: 4323 orrs r3, r4
  58865. 8018632: e7dd b.n 80185f0 <__ieee754_fmodf+0xbc>
  58866. 8018634: 0801874c .word 0x0801874c
  58867. 08018638 <_init>:
  58868. 8018638: b5f8 push {r3, r4, r5, r6, r7, lr}
  58869. 801863a: bf00 nop
  58870. 801863c: bcf8 pop {r3, r4, r5, r6, r7}
  58871. 801863e: bc08 pop {r3}
  58872. 8018640: 469e mov lr, r3
  58873. 8018642: 4770 bx lr
  58874. 08018644 <_fini>:
  58875. 8018644: b5f8 push {r3, r4, r5, r6, r7, lr}
  58876. 8018646: bf00 nop
  58877. 8018648: bcf8 pop {r3, r4, r5, r6, r7}
  58878. 801864a: bc08 pop {r3}
  58879. 801864c: 469e mov lr, r3
  58880. 801864e: 4770 bx lr